joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1400ebec0
Capabilities:
Get common file path

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0x250
mov rax, qword [0x140148038]
xor rax, rsp
mov qword [rsp + 0x248], rax
mov sil, 1
cmp qword [0x14015a858], 0
je 0x1400ebf06
mov rcx, qword [rsp + 0x248]
xor rcx, rsp
call fcn.140096290
mov eax, esi
add rsp, 0x250
pop rbx
pop rdi
pop rsi
ret
mov rdi, qword [0x14015a830]
test rdi, rdi
je 0x1400ebfa7
test byte [0x14014b4f8], 1
je 0x1400ebee9
cmp byte [rdi + 0x17], 0
jns 0x1400ebf28
mov rdi, qword [rdi]
mov qword [rsp + 0x30], 0
mov dword [rsp + 0x28], 0x80
mov dword [rsp + 0x20], 4
mov rcx, rdi
mov edx, 4
mov r8d, 3
xor r9d, r9d
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov qword [0x14015a858], rax
inc rax
cmp rax, 1
ja 0x1400ebee9
lea rdi, [rsp + 0x40]
mov r8d, 0x208
mov rcx, rdi
mov dl, 0xaa
call fcn.1400983d0
mov word [rdi], 0
mov ecx, 0x104
mov rdx, rdi
call qword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
add eax, 0xfffffefb
cmp eax, 0xfffffefc
jae 0x1400ec06d
xor esi, esi
jmp 0x1400ebee9
mov ecx, 0x18
call fcn.140094d44
mov rdi, rax
lea rbx, [rsp + 0x40]
mov r8d, 0x208
mov rcx, rbx
mov dl, 0xaa
call fcn.1400983d0
xor ecx, ecx
mov rdx, rbx
mov r8d, 0x104
call qword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
movaps xmm0, xmmword [0x14012e710]
movups xmmword [rdi], xmm0
movabs rax, 0xaaaaaaaaaaaaaaaa
mov qword [rdi + 0x10], rax
mov rcx, rdi
mov rdx, rbx
call fcn.1400cfa50
movzx eax, byte [rdi + 0x17]
mov rcx, rdi
test al, al
jns 0x1400ec00f
mov rax, qword [rdi + 8]
mov rcx, qword [rdi]
test rax, rax
jne 0x1400ec035
lea rdx, str.debug.log
mov r8d, 9
mov rcx, rdi
call fcn.140044a40
mov qword [0x14015a830], rdi
jmp 0x1400ebf16
lea r8, [rax + rax]
test r8, r8
je 0x1400ec014
lea rdx, [r8 - 2]
cmp word [rcx + r8 - 2], 0x5c
mov r8, rdx
jne 0x1400ec039
cmp rdx, 0xfffffffffffffffe
je 0x1400ec014
sar rdx, 1
cmp rax, rdx
jbe 0x1400ec134
inc rdx
mov rcx, rdi
call fcn.1400cfb70
jmp 0x1400ec014
mov rdi, qword [0x14015a830]
lea rbx, [rsp + 0x40]
mov rcx, rbx
call fcn.1400b9930
mov rcx, rdi
mov rdx, rbx
mov r8, rax
call fcn.140044720
mov rcx, qword [0x14015a830]
call fcn.1400e44e0
cmp word [rax], 0x5c
je 0x1400ec0ba
mov rcx, qword [0x14015a830]
lea rdx, [0x14012f5ec]
mov r8d, 1
call fcn.140044a40
mov rcx, qword [0x14015a830]
lea rdx, str.debug.log
mov r8d, 9
call fcn.140044a40
mov rcx, qword [0x14015a830]
cmp byte [rcx + 0x17], 0
jns 0x1400ec0e3
mov rcx, qword [rcx]
mov qword [rsp + 0x30], 0
mov dword [rsp + 0x28], 0x80
mov dword [rsp + 0x20], 4
mov edx, 4
mov r8d, 3
xor r9d, r9d
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov qword [0x14015a858], rax
inc rax
cmp rax, 1
ja 0x1400ebee9
mov qword [0x14015a858], 0
jmp 0x1400ebfa0
mov rcx, rdi
call fcn.1400ce9d0
int3
Function at 0x1400f86e0
Capabilities:
Encode data using base64

Disassembly:
push r15
push r14
push rsi
push rdi
push rbx
sub rsp, 0x30
mov rbx, rdx
mov rsi, rcx
mov rax, qword [rcx + 8]
cmp rax, qword [rcx + 0x10]
je 0x1400f871e
test rax, rax
je 0x1400f87e7
mov rcx, qword [rbx]
mov qword [rax], rcx
add rax, 8
mov qword [rsi + 8], rax
add rsp, 0x30
pop rbx
pop rdi
pop rsi
pop r14
pop r15
ret
sub rax, qword [rsi]
mov r15, rax
sar r15, 3
lea rcx, [r15 + 1]
mov rdx, rcx
shr rdx, 0x3d
jne 0x1400f8813
movabs rdx, 0x1fffffffffffffff
lea rdi, [rsi + 0x18]
mov r14, rax
shr r14, 2
cmp r14, rcx
cmovbe r14, rcx
movabs rcx, 0x7ffffffffffffff8
cmp rax, rcx
cmovae r14, rdx
test r14, r14
jne 0x1400f87da
xor eax, eax
shl r15, 3
add r15, rax
je 0x1400f87e7
lea rax, [rax + r14*8]
mov rcx, qword [rbx]
mov qword [r15], rcx
lea rcx, [r15 + 8]
mov rdx, qword [rsi]
mov r8, qword [rsi + 8]
cmp r8, rdx
je 0x1400f87a8
mov r9, qword [r8 - 8]
add r8, 0xfffffffffffffff8
mov qword [r15 - 8], r9
add r15, 0xfffffffffffffff8
cmp r8, rdx
jne 0x1400f8790
mov rdx, qword [rsi]
mov qword [rsi], r15
mov qword [rsi + 8], rcx
mov r8, qword [rsi + 0x10]
mov qword [rsi + 0x10], rax
test rdx, rdx
je 0x1400f8712
sub r8, rdx
sar r8, 3
mov rcx, rdi
add rsp, 0x30
pop rbx
pop rdi
pop rsi
pop r14
pop r15
jmp fcn.1400f8d50
mov rcx, rdi
mov rdx, r14
call fcn.1400f92d0
jmp 0x1400f876d
lea rax, str.null_pointer_given_to_construct_at
mov qword [rsp + 0x20], rax
lea rcx, str._s:_d:_assertion__s_failed:__s
lea rdx, str....._buildtools_third_partylibc_trunkinclude__memoryconstruct_at.h
lea r9, str.__location___nullptr
mov r8d, 0x25
call fcn.1400ceec0
mov rcx, rsi
call fcn.1400cee30
int3

Function at 0x1401017f0
Capabilities:
Write file on windows

Disassembly:
push r15
push r14
push r12
push rsi
push rdi
push rbx
sub rsp, 0x38
mov rsi, rdx
mov rdi, rcx
mov rax, qword [0x140148038]
xor rax, rsp
mov qword [rsp + 0x30], rax
mov ecx, 0xfffffff4
call qword [sym.imp.KERNEL32.dll_GetStdHandle]
mov rbx, rax
add rsi, rdi
xor r15d, r15d
lea r14, [rsp + 0x2c]
mov r12, qword [sym.imp.KERNEL32.dll_WriteFile]
cmp rdi, rsi
jae 0x140101878
mov dword [rsp + 0x2c], 0
mov r8d, esi
sub r8d, edi
mov qword [rsp + 0x20], r15
mov rcx, rbx
mov rdx, rdi
mov r9, r14
call r12
test eax, eax
sete dl
mov ecx, dword [rsp + 0x2c]
test rcx, rcx
sete al
or al, dl
mov edx, 0
jne 0x140101871
mov rdx, rcx
add rdi, rdx
cmp al, 1
jne 0x140101832
mov rcx, qword [rsp + 0x30]
xor rcx, rsp
call fcn.140096290
nop
add rsp, 0x38
pop rbx
pop rdi
pop rsi
pop r12
pop r14
pop r15
ret
Function at 0x140006480
Capabilities:
Encode data using xor

Disassembly:
push rbx
push rsi
mov esi, eax
movabs eax, dword [0xda8b088900409214]
test ebx, ebx
jle 0x1400064a1
mov eax, 0xff
call fcn.140001a80
xor byte [rsi], al
jne 0x140006491
pop rsi
pop rbx
ret
Function at 0x14000bb8c
Capabilities:
Parse pe header

Disassembly:
mov dword [rsp + 0x18], r8d
mov dword [rsp + 0x10], edx
push rbp
mov rbp, rsp
sub rsp, 0x50
mov qword [rbp - 0x20], 0xfffffffffffffffe
mov qword [rsp + 0x60], rbx
mov ebx, ecx
test r8d, r8d
jne 0x14000bbfb
xor ecx, ecx
call qword [sym.imp.api_ms_win_core_libraryloader_l1_2_0.dll_GetModuleHandleW]
test rax, rax
je 0x14000bbfb
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x14000bbfb
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x14000bbfb
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x14000bbfb
cmp dword [rcx + 0x84], 0xe
jbe 0x14000bbfb
cmp dword [rcx + 0xf8], 0
je 0x14000bbfb
mov ecx, ebx
call fcn.14000bcac
mov byte [rbp + 0x28], 0
lea rax, [rbp + 0x18]
mov qword [rbp - 0x18], rax
lea rax, [rbp + 0x20]
mov qword [rbp - 0x10], rax
lea rax, [rbp + 0x28]
mov qword [rbp - 8], rax
mov eax, 2
mov dword [rbp - 0x2c], eax
mov dword [rbp - 0x28], eax
lea r9, [rbp - 0x2c]
lea r8, [rbp - 0x18]
lea rdx, [rbp - 0x28]
lea rcx, [rbp - 0x30]
call fcn.14000ba90
nop
cmp dword [rbp + 0x20], 0
je 0x14000bc49
mov rbx, qword [rsp + 0x60]
add rsp, 0x50
pop rbp
ret
mov ecx, ebx
call fcn.14000bc54
int3
xor r8d, r8d
lea edx, [r8 + 2]
jmp 0x14000bb8c

Function at 0x14000bd88
Capabilities:
Parse pe header

Disassembly:
xor r8d, r8d
xor edx, edx
jmp 0x14000bb8c

Function at 0x14000f150
Capabilities:
Get file size

Disassembly:
push rbx
sub rsp, 0x20
mov edx, dword [rcx + 0x14]
nop
shr edx, 3
test dl, 1
je 0x14000f166
mov al, 1
jmp 0x14000f1d2
mov eax, dword [rcx + 0x14]
nop
test al, 0xc0
je 0x14000f177
mov rax, qword [rcx + 8]
cmp qword [rcx], rax
je 0x14000f1d0
mov ecx, dword [rcx + 0x18]
nop
call fcn.140010024
mov rbx, rax
cmp rax, 0xffffffffffffffff
je 0x14000f1d0
and qword [rsp + 0x38], 0
lea r8, [rsp + 0x38]
mov r9d, 1
xor edx, edx
mov rcx, rax
call qword [sym.imp.api_ms_win_core_file_l1_1_0.dll_SetFilePointerEx]
test eax, eax
je 0x14000f1d0
and qword [rsp + 0x30], 0
lea rdx, [rsp + 0x30]
mov rcx, rbx
call qword [sym.imp.api_ms_win_core_file_l1_1_0.dll_GetFileSizeEx]
test eax, eax
je 0x14000f1d0
mov rax, qword [rsp + 0x30]
cmp qword [rsp + 0x38], rax
sete al
jmp 0x14000f1d2
xor al, al
add rsp, 0x20
pop rbx
ret
Function at 0x14001067c
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 0x20], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x30
movsxd r15, ecx
lea r9, [0x140065d30]
mov rax, r15
mov rbp, r15
and eax, 0x3f
sar rbp, 6
mov ecx, 4
xor esi, esi
mov r14, rdx
lea rdi, [rax + rax*8]
mov rax, qword [r9 + rbp*8]
lea r13d, [rcx + 6]
mov r10, qword [rax + rdi*8 + 0x28]
test r8, r8
je 0x1400106d3
cmp word [rdx], r13w
jne 0x1400106d3
or byte [rax + rdi*8 + 0x38], cl
jmp 0x1400106d8
and byte [rax + rdi*8 + 0x38], 0xfb
lea r8, [rdx + r8*2]
mov rbx, r14
cmp r14, r8
jae 0x140010809
mov r11d, 0xd
lea r12d, [r11 - 0xb]
movzx ecx, word [rdx]
cmp cx, 0x1a
je 0x14001082a
lea r9, [rdx + 2]
cmp cx, r11w
je 0x140010711
mov rdx, r9
mov word [rbx], cx
jmp 0x140010738
cmp r9, r8
jae 0x140010748
cmp word [r9], r13w
mov rax, r12
mov ecx, 4
cmove rax, rcx
add rdx, rax
mov eax, r13d
cmp word [r9], r13w
cmovne ax, r11w
mov word [rbx], ax
mov rax, r12
add rbx, rax
cmp rdx, r8
jb 0x1400106f2
jmp 0x140010809
lea r9, [rsp + 0x80]
mov word [rsp + 0x70], si
mov r8d, r12d
mov dword [rsp + 0x80], esi
lea rdx, [rsp + 0x70]
mov qword [rsp + 0x20], rsi
mov rcx, r10
call qword [sym.imp.api_ms_win_core_file_l1_1_0.dll_ReadFile]
test eax, eax
je 0x1400107fe
cmp dword [rsp + 0x80], esi
je 0x1400107fe
lea r8, [0x140065d30]
mov rax, qword [r8 + rbp*8]
test byte [rax + rdi*8 + 0x38], 0x48
je 0x1400107d6
movzx eax, word [rsp + 0x70]
cmp ax, r13w
jne 0x1400107a6
mov word [rbx], r13w
jmp 0x140010806
mov ecx, 0xd
mov word [rsp + 0x78], ax
mov word [rbx], cx
mov rax, qword [r8 + rbp*8]
lea rcx, [rax + rdi*8]
mov al, byte [rsp + rsi + 0x78]
mov byte [rcx + rsi + 0x3a], al
inc rsi
cmp rsi, r12
jl 0x1400107b3
mov rax, qword [r8 + rbp*8]
mov byte [rax + rdi*8 + 0x3c], r13b
jmp 0x140010806
cmp word [rsp + 0x70], r13w
jne 0x1400107e3
cmp rbx, r14
je 0x1400107a0
mov rdx, 0xfffffffffffffffe
mov ecx, r15d
lea r8d, [rdx + 3]
call fcn.140010598
cmp word [rsp + 0x70], r13w
je 0x140010809
mov ecx, 0xd
mov word [rbx], cx
add rbx, r12
sub rbx, r14
sar rbx, 1
lea eax, [rbx + rbx]
mov rbx, qword [rsp + 0x88]
add rsp, 0x30
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
lea r8, [0x140065d30]
mov rdx, qword [r8 + rbp*8]
mov al, byte [rdx + rdi*8 + 0x38]
test al, 0x40
jne 0x140010803
or al, r12b
mov byte [rdx + rdi*8 + 0x38], al
jmp 0x140010809
Function at 0x140015664
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.api_ms_win_core_libraryloader_l1_2_0.dll_GetModuleHandleW]
test rax, rax
je 0x1400156ae
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x1400156ae
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x1400156ae
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x1400156ae
cmp dword [rcx + 0x84], 0xe
jbe 0x1400156ae
cmp dword [rcx + 0xf8], 0
setne al
jmp 0x1400156b0
xor al, al
add rsp, 0x28
ret
Function at 0x1400226e4
Capabilities:
Query environment variable

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
call qword [sym.imp.api_ms_win_core_processenvironment_l1_1_0.dll_GetEnvironmentStringsW]
xor ebp, ebp
mov rbx, rax
test rax, rax
je 0x14002276b
mov rsi, rbx
cmp word [rax], bp
je 0x14002272a
or rax, 0xffffffffffffffff
inc rax
cmp word [rsi + rax*2], bp
jne 0x140022714
lea rsi, [rsi + rax*2]
add rsi, 2
cmp word [rsi], bp
jne 0x140022710
sub rsi, rbx
add rsi, 2
sar rsi, 1
add rsi, rsi
mov rcx, rsi
call fcn.140008090
mov rdi, rax
test rax, rax
je 0x140022758
mov r8, rsi
mov rdx, rbx
mov rcx, rax
call fcn.140016d80
mov rbp, rdi
xor ecx, ecx
call fcn.140008054
mov rcx, rbx
call qword [sym.imp.api_ms_win_core_processenvironment_l1_1_0.dll_FreeEnvironmentStringsW]
mov rax, rbp
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret
Function at 0x140024794
Capabilities:
Clear file content

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rbp
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
push r12
push r14
push r15
sub rsp, 0x20
mov rbx, rdx
mov rsi, r8
xor edx, edx
mov r14d, ecx
lea r8d, [rdx + 1]
call fcn.140010598
xor edx, edx
mov ecx, r14d
mov r12, rax
lea r8d, [rdx + 2]
call fcn.140010598
mov rbp, rbx
sub rbp, rax
cmp r12, 0xffffffffffffffff
je 0x1400248e4
cmp rax, 0xffffffffffffffff
je 0x1400248e4
xor edi, edi
test rbp, rbp
jle 0x14002488f
lea edx, [rdi + 1]
mov ecx, 0x1000
call fcn.14000a550
mov rbx, rax
test rax, rax
jne 0x14002481c
lea edi, [rax + 0xc]
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], edi
jmp 0x140024885
mov edx, 0x8000
mov ecx, r14d
call fcn.14001b930
mov r15d, eax
mov eax, 0x1000
mov r8d, ebp
cmp rbp, rax
mov r9, rsi
mov rdx, rbx
mov ecx, r14d
cmovge r8d, eax
call fcn.14000b784
cmp eax, 0xffffffff
je 0x140024865
cdqe
sub rbp, rax
test rbp, rbp
jg 0x14002482c
mov edx, r15d
mov ecx, r14d
call fcn.14001b930
jmp 0x140024885
cmp byte [rsi + 0x38], dil
je 0x14002487c
cmp dword [rsi + 0x34], 5
jne 0x14002487c
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], 0xd
cmp byte [rsi + 0x30], dil
je 0x140024885
mov edi, dword [rsi + 0x2c]
mov rcx, rbx
call fcn.140008054
jmp 0x1400248f8
jns 0x1400248f8
xor r8d, r8d
mov rdx, rbx
mov ecx, r14d
call fcn.140010598
cmp rax, 0xffffffffffffffff
jne 0x1400248b0
cmp byte [rsi + 0x30], dil
je 0x1400248f8
mov edi, dword [rsi + 0x2c]
jmp 0x1400248f8
mov ecx, r14d
call fcn.140010024
mov rcx, rax
call qword [sym.imp.api_ms_win_core_file_l1_1_0.dll_SetEndOfFile]
test eax, eax
jne 0x1400248f8
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
mov byte [rsi + 0x38], 1
mov edi, 0xd
mov dword [rsi + 0x34], eax
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], 0xd
jmp 0x1400248f8
xor edi, edi
cmp byte [rsi + 0x30], dil
je 0x1400248f1
mov eax, dword [rsi + 0x2c]
jmp 0x1400248f6
mov eax, 0x16
mov edi, eax
xor r8d, r8d
mov rdx, r12
mov ecx, r14d
call fcn.140010598
mov rbx, qword [rsp + 0x40]
mov eax, edi
mov rdi, qword [rsp + 0x58]
mov rbp, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
add rsp, 0x20
pop r15
pop r14
pop r12
ret

Function at 0x1400249d0
Capabilities:
Parse pe header

Disassembly:
mov eax, 0x5a4d
cmp word [rcx], ax
jne 0x1400249f8
movsxd rdx, dword [rcx + 0x3c]
add rdx, rcx
cmp dword [rdx], 0x4550
jne 0x1400249f8
xor eax, eax
mov ecx, 0x20b
cmp word [rdx + 0x18], cx
sete al
ret
xor eax, eax
ret
Function at 0x1400289b4
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
mov edi, r8d
mov rsi, rdx
mov rbp, rcx
call qword [sym.imp.KERNEL32.dll_LoadResource]
test rax, rax
je 0x140028a2b
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_LockResource]
mov rbx, rax
test rax, rax
je 0x140028a2b
mov rdx, rsi
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, eax
add rcx, rbx
and edi, 0xf
jbe 0x140028a18
cmp rbx, rcx
jae 0x140028a2b
movzx eax, word [rbx]
lea rbx, [rbx + rax*2]
add rbx, 2
add edi, 0xffffffff
jne 0x140028a03
cmp rbx, rcx
jae 0x140028a2b
movzx eax, word [rbx]
neg ax
sbb rax, rax
and rax, rbx
jmp 0x140028a2d
xor eax, eax
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret
Function at 0x140031f54
Capabilities:
Delete registry key

Disassembly:
mov qword [rsp + 0x18], rbx
push rdi
sub rsp, 0xb0
mov rax, qword [0x140065c18]
xor rax, rsp
mov qword [rsp + 0xa0], rax
mov rdi, rdx
cmp qword [rcx], 0
je 0x140032111
mov rcx, qword [rcx + 8]
test rcx, rcx
je 0x140032111
call qword [sym.imp.api_ms_win_shcore_registry_l1_1_0.dll_SHDeleteKeyW]
mov ebx, eax
cmp eax, 0x80070002
je 0x140032052
mov rcx, qword [0x140063300]
mov rax, qword [rcx + 0x18]
lea rcx, [0x140063300]
call qword [case.0x140026b7f.0]
add rax, 0x18
mov qword [rsp + 0x38], rax
mov rax, qword [0x140063300]
lea rcx, [0x140063300]
mov rax, qword [rax + 0x18]
call qword [case.0x140026b7f.0]
add rax, 0x18
mov qword [rsp + 0x30], rax
mov r9, rdi
mov r8d, 0x4e23
lea rdx, [rsp + 0x30]
lea rcx, [rsp + 0x38]
call fcn.140033384
test ebx, ebx
js 0x1400320a4
mov rdx, qword [rsp + 0x30]
add rdx, 0xffffffffffffffe8
or ebx, 0xffffffff
mov eax, ebx
lock xadd dword [rdx + 0x10], eax
add eax, ebx
test eax, eax
jg 0x14003202c
mov rcx, qword [rdx]
mov rax, qword [rcx]
mov rax, qword [rax + 8]
call qword [case.0x140026b7f.0]
nop
mov rdx, qword [rsp + 0x38]
add rdx, 0xffffffffffffffe8
mov eax, ebx
lock xadd dword [rdx + 0x10], eax
add eax, ebx
test eax, eax
jg 0x140032052
mov rcx, qword [rdx]
mov rax, qword [rcx]
mov rax, qword [rax + 8]
call qword [case.0x140026b7f.0]
lea rax, [0x140063230]
mov rcx, qword [0x140063230]
cmp rcx, rax
je 0x140032083
test byte [rcx + 0x1c], 4
je 0x140032083
mov edx, 0x15
mov r9, rdi
lea r8, [0x1400563e8]
mov rcx, qword [rcx + 0x10]
call fcn.1400257fc
mov rcx, qword [rsp + 0xa0]
xor rcx, rsp
call fcn.140015190
mov rbx, qword [rsp + 0xd0]
add rsp, 0xb0
pop rdi
ret
lea rax, [0x140063230]
mov rcx, qword [0x140063230]
cmp rcx, rax
je 0x1400320d9
test byte [rcx + 0x1c], 1
je 0x1400320d9
mov edx, 0x14
mov dword [rsp + 0x20], ebx
mov r9, rdi
lea r8, [0x1400563e8]
mov rcx, qword [rcx + 0x10]
call fcn.140027694
lea rcx, [rsp + 0x30]
call fcn.140025d34
mov r9, rax
lea rcx, [rsp + 0x38]
call fcn.140025d34
mov r8, rax
mov edx, ebx
lea rcx, [rsp + 0x40]
call fcn.14002bb20
lea rdx, [0x140060440]
lea rcx, [rsp + 0x40]
call fcn.140017bf4
nop
lea rax, [0x140063230]
mov rcx, qword [0x140063230]
cmp rcx, rax
je 0x14003213f
test byte [rcx + 0x1c], 1
je 0x14003213f
mov edx, 0x1c
lea r8, [0x1400563e8]
mov rcx, qword [rcx + 0x10]
call fcn.1400257dc
mov ecx, 0x8007139f
call fcn.1400352a4
int3
Function at 0x14003384c
Capabilities:
Get token membership

Disassembly:
mov r11, rsp
mov qword [r11 + 8], rbx
mov qword [r11 + 0x10], rdx
push rdi
sub rsp, 0x60
and qword [r11 + 0x10], 0
mov eax, r9d
neg eax
mov byte [rcx], 0
mov rdi, rcx
lea rcx, [r11 + 0x10]
sbb edx, edx
and qword [r11 - 0x48], 0
neg edx
inc edx
call fcn.1400339c0
mov ebx, eax
test eax, eax
jns 0x140033899
mov rcx, qword [rsp + 0x78]
test rcx, rcx
je 0x140033895
call fcn.140015174
mov eax, ebx
jmp 0x140033918
mov rbx, qword [rsp + 0x78]
lea r8, [rsp + 0x88]
and dword [rsp + 0x88], 0
mov rdx, rbx
xor ecx, ecx
mov byte [rdi], 0
call qword [sym.imp.ADVAPI32.dll_CheckTokenMembership]
test eax, eax
jne 0x1400338fa
call fcn.140035408
mov edi, eax
mov rcx, qword [0x140063230]
lea rax, [0x140063230]
cmp rcx, rax
je 0x140033909
test byte [rcx + 0x1c], 1
je 0x140033909
mov rcx, qword [rcx + 0x10]
lea r8, [0x140056438]
mov edx, 0x1a
mov r9d, edi
call fcn.140025858
jmp 0x140033909
cmp dword [rsp + 0x88], 0
setne al
mov byte [rdi], al
xor edi, edi
test rbx, rbx
je 0x140033916
mov rcx, rbx
call fcn.140015174
mov eax, edi
mov rbx, qword [rsp + 0x70]
add rsp, 0x60
pop rdi
ret

Function at 0x1400358fc
Capabilities:
Delete registry value

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x30
mov rdi, rdx
call qword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
mov ebx, eax
test eax, eax
jle 0x14003591e
movzx ebx, ax
or ebx, 0x80070000
mov eax, 0x80070002
cmp ebx, eax
je 0x140035966
test ebx, ebx
jns 0x140035964
mov rcx, qword [0x140063230]
lea rax, [0x140063230]
cmp rcx, rax
je 0x140035960
test byte [rcx + 0x1c], 1
je 0x140035960
mov rcx, qword [rcx + 0x10]
lea r8, [0x140056608]
mov edx, 0x20
mov dword [rsp + 0x20], ebx
mov r9, rdi
call fcn.140027694
mov eax, ebx
jmp 0x140035966
xor eax, eax
mov rbx, qword [rsp + 0x40]
add rsp, 0x30
pop rdi
ret
Function at 0x140035974
Capabilities:
Query or enumerate registry value

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
push r14
push r15
sub rsp, 0x30
mov r14, qword [r9]
mov rsi, r9
mov eax, r14d
mov r15, r8
mov dword [rsp + 0x68], eax
mov rbp, rdx
cmp rax, r14
je 0x1400359ab
mov ebx, 0x80070057
jmp 0x1400359f4
mov rbx, qword [rsp + 0x70]
lea rax, [rsp + 0x68]
mov qword [rsp + 0x28], rax
mov r9, r15
xor r8d, r8d
mov qword [rsp + 0x20], rbx
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov edi, eax
test eax, eax
jle 0x1400359da
movzx edi, ax
or edi, 0x80070000
test edi, edi
js 0x140035a2e
test rbx, rbx
je 0x140035a0f
mov eax, dword [rsp + 0x68]
cmp rax, qword [rsi]
jbe 0x140035a0f
mov ebx, 0x800700ea
mov qword [rsi], rax
mov eax, ebx
mov rbx, qword [rsp + 0x50]
mov rbp, qword [rsp + 0x58]
mov rsi, qword [rsp + 0x60]
add rsp, 0x30
pop r15
pop r14
pop rdi
ret
mov eax, dword [rsp + 0x68]
mov r9, rsi
mov qword [rsi], rax
mov rdx, r14
mov r8d, dword [r15]
mov rcx, rbp
mov qword [rsp + 0x20], rbx
call fcn.1400360f8
jmp 0x1400359f6
mov ebx, 0x80070002
cmp edi, ebx
jne 0x140035a6a
mov rcx, qword [0x140063230]
lea rax, [0x140063230]
cmp rcx, rax
je 0x1400359f4
test byte [rcx + 0x1c], 4
je 0x1400359f4
mov rcx, qword [rcx + 0x10]
lea r8, [0x140056608]
mov edx, 0x16
mov r9, rbp
call fcn.1400257fc
jmp 0x1400359f4
mov ebx, 0x800700ea
cmp edi, ebx
je 0x140035aaf
mov rcx, qword [0x140063230]
lea rax, [0x140063230]
cmp rcx, rax
je 0x140035aa8
test byte [rcx + 0x1c], 1
je 0x140035aa8
mov rcx, qword [rcx + 0x10]
lea r8, [0x140056608]
mov edx, 0x17
mov dword [rsp + 0x20], edi
mov r9, rbp
call fcn.140027694
mov ebx, edi
jmp 0x1400359f4
mov eax, dword [rsp + 0x68]
cmp qword [rsi], rax
jb 0x1400359f1
mov ebx, 0x8000ffff
jmp 0x1400359f4

Function at 0x140036278
Capabilities:
Set registry value

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x30
mov eax, r9d
mov rdi, rdx
cmp rax, r9
je 0x140036294
mov eax, 0x80070057
jmp 0x140036301
mov rax, qword [rsp + 0x60]
mov dword [rsp + 0x28], r9d
mov r9d, r8d
xor r8d, r8d
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov ebx, eax
test eax, eax
je 0x1400362ff
mov rcx, qword [0x140063230]
lea rax, [0x140063230]
cmp rcx, rax
je 0x1400362ea
test byte [rcx + 0x1c], 1
je 0x1400362ea
mov rcx, qword [rcx + 0x10]
lea r8, [0x140056608]
mov edx, 0x1a
mov dword [rsp + 0x20], ebx
mov r9, rdi
call fcn.140027694
test ebx, ebx
jle 0x1400362f9
movzx ebx, bx
or ebx, 0x80070000
test ebx, ebx
jns 0x1400362ff
mov eax, ebx
jmp 0x140036301
xor eax, eax
mov rbx, qword [rsp + 0x40]
add rsp, 0x30
pop rdi
ret
Function at 0x1400373d0
Capabilities:
Query environment variable

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x30
mov ebx, dword [rdx]
mov rdi, r8
mov rsi, rdx
mov r8d, ebx
mov rdx, rdi
mov rbp, rcx
call qword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
xor edx, edx
mov r9d, eax
test eax, eax
jne 0x140037444
call fcn.140035408
mov ebx, eax
mov rcx, qword [0x140063230]
lea rax, [0x140063230]
cmp rcx, rax
je 0x140037440
test byte [rcx + 0x1c], 1
je 0x140037440
mov rcx, qword [rcx + 0x10]
lea r8, str._dhZH06
mov edx, 0x27
mov dword [rsp + 0x20], ebx
mov r9, rbp
call fcn.140027694
mov eax, ebx
jmp 0x140037466
cmp r9d, ebx
ja 0x14003745a
lea eax, [r9 - 1]
cmp word [rdi + rax*2], dx
je 0x140037461
mov eax, 0x8000ffff
jmp 0x140037466
test ebx, ebx
je 0x140037461
mov word [rdi], dx
mov qword [rsi], r9
xor eax, eax
mov rbx, qword [rsp + 0x40]
mov rbp, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
add rsp, 0x30
pop rdi
ret

Function at 0x14003747c
Capabilities:
Check if file exists
Get file attributes

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x30
mov rbx, rcx
mov rdi, rdx
mov rcx, rdx
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x1400374e5
call fcn.140035408
mov ebx, eax
lea ecx, [rax + 0x7ff8fffe]
cmp ecx, 1
jbe 0x1400374e1
mov rcx, qword [0x140063230]
lea rax, [0x140063230]
cmp rcx, rax
je 0x1400374e1
test byte [rcx + 0x1c], 1
je 0x1400374e1
mov rcx, qword [rcx + 0x10]
lea r8, str._dhZH06
mov edx, 0x1e
mov dword [rsp + 0x20], ebx
mov r9, rdi
call fcn.140027694
mov eax, ebx
jmp 0x1400374e9
mov dword [rbx], eax
xor eax, eax
mov rbx, qword [rsp + 0x40]
add rsp, 0x30
pop rdi
ret

Function at 0x140038414
Capabilities:
Get geographical location

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
xor ebp, ebp
mov rsi, r9
mov rdi, r8
mov rbx, rdx
test rdx, rdx
je 0x140038484
test r8, r8
je 0x140038484
movzx ecx, cx
lea r8d, [rbp + 0x55]
mov r9d, 0x8000000
call qword [sym.imp.KERNEL32.dll_LCIDToLocaleName]
test eax, eax
je 0x140038484
lea r9d, [rbp + 0x55]
mov r8, rdi
lea edx, [rbp + 0x6d]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetLocaleInfoEx]
test rsi, rsi
je 0x14003847d
mov r8, rsi
mov word [rsi], bp
mov rdx, rdi
mov rcx, rbx
call fcn.14003849c
mov eax, 1
jmp 0x140038486
xor eax, eax
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret