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

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x450
mov rax, qword [0x1400db800]
xor rax, rsp
mov qword [rsp + 0x440], rax
xor r9d, r9d
mov rbx, rdx
mov rsi, rcx
lea rdx, [rsp + 0x20]
xor ecx, ecx
lea r8d, [r9 + 0x1a]
call qword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
lea rcx, [rsp + 0x20]
mov rax, 0xffffffffffffffff
nop word [rax + rax]
cmp word [rcx + rax*2 + 2], 0
lea rax, [rax + 1]
jne 0x14008cdb0
lea rdi, [rsp + 0x20]
lea rdi, [rdi + rax*2]
test rbx, rbx
je 0x14008cdd5
cmp word [rbx], 0
je 0x14008cdd5
mov rcx, rbx
jmp 0x14008cdf3
mov r8d, 0x104
lea rdx, [rsp + 0x230]
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
lea rcx, [rsp + 0x230]
call fcn.140001d70
lea rdx, [rsp + 0x228]
mov r9, rax
sub rdx, rdi
lea r8, [0x1400bc390]
sar rdx, 1
mov rcx, rdi
call fcn.140001040
lea rcx, [rsp + 0x20]
call fcn.14000a070
lea rdx, [rsp + 0x228]
mov rcx, rax
sub rdx, rax
sar rdx, 1
je 0x14008ce81
cmp rdx, 0x7fffffff
ja 0x14008ce7c
mov r8d, 0x7ffffffe
lea r9, str..ini
sub r8, rdx
sub r9, rax
lea rax, [r8 + rdx]
test rax, rax
je 0x14008ce71
movzx eax, word [r9 + rcx]
test ax, ax
je 0x14008ce71
mov word [rcx], ax
add rcx, 2
sub rdx, 1
jne 0x14008ce51
test rdx, rdx
lea rax, [rcx - 2]
cmovne rax, rcx
xor edx, edx
mov word [rax], dx
lea rdx, [rsp + 0x20]
mov rcx, rsi
call fcn.14008d610
mov rcx, qword [rsp + 0x440]
xor rcx, rsp
call fcn.140094850
lea r11, [rsp + 0x450]
mov rbx, qword [r11 + 0x10]
mov rsi, qword [r11 + 0x20]
mov rsp, r11
pop rdi
ret
Function at 0x14008d280
Capabilities:
Get file size
Read file on windows

Disassembly:
push rbx
push rbp
push r14
sub rsp, 0x40
xor r14d, r14d
mov rbx, rcx
mov rcx, qword [rcx + 0x10]
mov ebp, edx
mov qword [rsp + 0x70], r14
mov dword [rsp + 0x60], r14d
test rcx, rcx
jne 0x14008d2b2
mov eax, 0xe8
add rsp, 0x40
pop r14
pop rbp
pop rbx
ret
mov edx, 1
mov qword [rsp + 0x30], r14
mov r8d, edx
mov dword [rsp + 0x28], r14d
xor r9d, r9d
mov qword [rsp + 0x68], rsi
mov dword [rsp + 0x20], 3
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov rsi, rax
cmp rax, 0xffffffffffffffff
je 0x14008d3f4
lea rdx, [rsp + 0x74]
mov qword [rsp + 0x78], rdi
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetFileSize]
mov dword [rsp + 0x70], eax
cmp dword [rsp + 0x74], r14d
jne 0x14008d3d1
cmp eax, 0x100000
ja 0x14008d3d1
mov ecx, eax
add rcx, 2
call fcn.140094b74
mov rdi, rax
test rax, rax
je 0x14008d3ae
mov r8d, dword [rsp + 0x70]
lea r9, [rsp + 0x60]
mov rdx, rax
mov qword [rsp + 0x20], r14
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_ReadFile]
mov ecx, dword [rsp + 0x60]
mov eax, dword [rsp + 0x70]
cmp ecx, eax
jne 0x14008d372
mov word [rcx + rdi], r14w
mov r9d, ebp
mov r8d, dword [rsp + 0x70]
mov rcx, rbx
mov rdx, rdi
call fcn.14008d410
mov ebx, eax
mov eax, dword [rsp + 0x70]
jmp 0x14008d377
mov ebx, 0x1e
mov r8d, eax
xor edx, edx
add r8, 2
mov rcx, rdi
call fcn.1400b1140
mov rcx, rdi
call fcn.140062970
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rdi, qword [rsp + 0x78]
mov eax, ebx
mov rsi, qword [rsp + 0x68]
add rsp, 0x40
pop r14
pop rbp
pop rbx
ret
mov rcx, rsi
mov ebx, 8
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rdi, qword [rsp + 0x78]
mov eax, ebx
mov rsi, qword [rsp + 0x68]
add rsp, 0x40
pop r14
pop rbp
pop rbx
ret
mov rcx, rsi
mov ebx, 0xb
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rdi, qword [rsp + 0x78]
mov eax, ebx
mov rsi, qword [rsp + 0x68]
add rsp, 0x40
pop r14
pop rbp
pop rbx
ret
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov rsi, qword [rsp + 0x68]
add rsp, 0x40
pop r14
pop rbp
pop rbx
ret
Function at 0x14008e3a0
Capabilities:
Get common file path

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rsi
push rdi
sub rsp, 0x4b0
mov rax, qword [0x1400db800]
xor rax, rsp
mov qword [rsp + 0x4a0], rax
mov rbp, rdx
mov rsi, rcx
lea rdx, [rsp + 0x290]
mov ecx, 0x104
call qword [sym.imp.KERNEL32.dll_GetTempPathW]
mov r8d, 0x104
lea rdx, [rsp + 0x80]
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
lea rcx, [rsp + 0x80]
call fcn.140001d70
mov rcx, rax
mov rdi, rax
call fcn.14000a070
xor ecx, ecx
mov word [rax], cx
lea rcx, [rsp + 0x60]
call qword [sym.imp.KERNEL32.dll_GetSystemTimeAsFileTime]
lea rdx, [rsp + 0x68]
lea rcx, [rsp + 0x60]
call qword [sym.imp.KERNEL32.dll_FileTimeToLocalFileTime]
lea rdx, [rsp + 0x70]
lea rcx, [rsp + 0x68]
call qword [sym.imp.KERNEL32.dll_FileTimeToSystemTime]
movzx r8d, word [rsp + 0x7c]
mov rdx, rbp
movzx r9d, word [rsp + 0x78]
mov rcx, rsi
movzx eax, word [rsp + 0x7a]
movzx r10d, word [rsp + 0x76]
movzx r11d, word [rsp + 0x72]
movzx ebx, word [rsp + 0x70]
mov dword [rsp + 0x50], r8d
lea r8, str._s_s__04u_02u_02u__02u_02u_02u.dmp
mov dword [rsp + 0x48], eax
mov dword [rsp + 0x40], r9d
lea r9, [rsp + 0x290]
mov dword [rsp + 0x38], r10d
mov dword [rsp + 0x30], r11d
mov dword [rsp + 0x28], ebx
mov qword [rsp + 0x20], rdi
call fcn.140001040
mov rcx, qword [rsp + 0x4a0]
xor rcx, rsp
call fcn.140094850
mov rbx, qword [rsp + 0x4e0]
add rsp, 0x4b0
pop rdi
pop rsi
pop rbp
ret
Function at 0x14008eb80
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push rbx
push rdi
push r14
sub rsp, 0x20
mov r14, rdx
mov qword [rsp + 0x50], 0
mov edx, reloc.OLEAUT32.dll_SafeArrayGetDim
lea r9, [rsp + 0x50]
lea r8, [0x14008e950]
mov rdi, rcx
mov ebx, 0x716
call qword [sym.imp.KERNEL32.dll_EnumResourceNamesW]
mov rdx, qword [rsp + 0x50]
test rdx, rdx
je 0x14008ec26
mov r8d, reloc.OLEAUT32.dll_SafeArrayGetDim
mov qword [rsp + 0x48], rsi
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_FindResourceW]
mov rsi, rax
test rax, rax
je 0x14008ec21
mov rdx, rax
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_LoadResource]
test rax, rax
je 0x14008ec21
mov rcx, rax
mov qword [rsp + 0x40], rbp
call qword [sym.imp.KERNEL32.dll_LockResource]
mov rbp, rax
test rax, rax
je 0x14008ec1c
mov rdx, rsi
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_SizeofResource]
mov r8, r14
mov rcx, rbp
mov edx, eax
call fcn.14008ee50
mov ebx, eax
mov rbp, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
mov eax, ebx
add rsp, 0x20
pop r14
pop rdi
pop rbx
ret

Function at 0x14008f2b0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
push rdi
sub rsp, 0x30
mov rbx, rdx
mov rbp, rcx
mov edx, 0xfffffffa
call qword [sym.imp.USER32.dll_GetWindowLongPtrW]
mov r8d, 0xf0
mov rdx, rbx
mov rcx, rax
mov rdi, rax
call qword [sym.imp.KERNEL32.dll_FindResourceW]
test rax, rax
je 0x14008f38b
mov rdx, rax
mov qword [rsp + 0x40], rsi
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_LoadResource]
mov rsi, rax
test rax, rax
je 0x14008f37d
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_LockResource]
mov rbx, rax
cmp word [rax], 0
je 0x14008f37d
nop dword [rax]
movzx r8d, word [rbx + 2]
lea rdi, [rbx + 8]
cmp r8d, 0x401
jne 0x14008f33a
mov r8d, 0x180
jmp 0x14008f35d
cmp r8d, 0x403
jne 0x14008f34b
mov r8d, 0x143
jmp 0x14008f35d
cmp r8d, 0x180
je 0x14008f35d
cmp r8d, 0x143
jne 0x14008f371
movzx edx, word [rbx]
xor r9d, r9d
mov rcx, rbp
mov qword [rsp + 0x20], rdi
call qword [sym.imp.USER32.dll_SendDlgItemMessageA]
mov ebx, dword [rbx + 4]
add rbx, rdi
cmp word [rbx], 0
jne 0x14008f320
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_FreeResource]
mov rsi, qword [rsp + 0x40]
mov rbx, qword [rsp + 0x48]
xor eax, eax
mov rbp, qword [rsp + 0x50]
add rsp, 0x30
pop rdi
ret

Function at 0x14008fd20
Capabilities:
Get graphical window text

Disassembly:
mov qword [rsp + 0x10], rbx
push rdi
sub rsp, 0x20
mov rbx, rdx
mov rdi, rcx
test rcx, rcx
je 0x14008fda6
mov qword [rsp + 0x30], rsi
call qword [sym.imp.USER32.dll_GetWindowTextLengthW]
movsxd rsi, eax
test eax, eax
je 0x14008fd94
mov rcx, 0xffffffffffffffff
lea rdx, [rbx + 1]
add rdx, rsi
mov eax, 2
mul rdx
cmovo rax, rcx
mov rcx, rax
call fcn.140094b74
mov rbx, rax
test rax, rax
je 0x14008fd84
lea r8d, [rsi + 1]
mov rdx, rax
mov rcx, rdi
call qword [sym.imp.USER32.dll_GetWindowTextW]
mov rax, rbx
mov rsi, qword [rsp + 0x30]
mov rbx, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret
mov rsi, qword [rsp + 0x30]
xor eax, eax
mov rbx, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret
mov rbx, qword [rsp + 0x38]
xor eax, eax
add rsp, 0x20
pop rdi
ret
Function at 0x14008fec0
Capabilities:
Get graphical window text

Disassembly:
mov qword [rsp + 0x20], rbx
push rbp
push rsi
push rdi
sub rsp, 0x240
mov rax, qword [0x1400db800]
xor rax, rsp
mov qword [rsp + 0x230], rax
xor ebp, ebp
mov rdi, r8
mov rsi, rcx
test edx, edx
jne 0x14008ff00
mov r8d, 0x100
lea rdx, [rsp + 0x30]
call qword [sym.imp.USER32.dll_GetWindowTextW]
jmp 0x14008ff18
mov rcx, qword [0x1400e1228]
lea r8, [rsp + 0x30]
mov r9d, 0x100
call qword [sym.imp.USER32.dll_LoadStringW]
mov ecx, 0x2000
call fcn.140094b74
mov rbx, rax
test rax, rax
je 0x14008ff9f
call fcn.140001030
mov qword [rsp + 0x28], rdi
lea r9, [rsp + 0x30]
mov r8d, 0xfff
mov qword [rsp + 0x20], rbp
mov rdx, rbx
mov rcx, qword [rax]
or rcx, 1
call fcn.1400a05c4
test eax, eax
mov ecx, 0xffffffff
cmovs eax, ecx
test eax, eax
js 0x14008ff73
cdqe
cmp rax, 0xfff
ja 0x14008ff73
je 0x14008ff73
lea rdi, [rbx + rax*2]
jmp 0x14008ff81
lea rdi, [rbx + 0x1ffe]
mov word [rbx + 0x1ffe], bp
sub rdi, rbx
mov rdx, rbx
mov rcx, rsi
sar rdi, 1
call qword [sym.imp.USER32.dll_SetWindowTextW]
mov rcx, rbx
call fcn.140062970
mov eax, edi
jmp 0x14008ffa1
mov eax, ebp
mov rcx, qword [rsp + 0x230]
xor rcx, rsp
call fcn.140094850
mov rbx, qword [rsp + 0x278]
add rsp, 0x240
pop rdi
pop rsi
pop rbp
ret
Function at 0x140092530
Capabilities:
Get graphical window text

Disassembly:
mov r11, rsp
push rbx
push rbp
push rdi
sub rsp, 0x240
mov rax, qword [0x1400db800]
xor rax, rsp
mov qword [rsp + 0x220], rax
xor edi, edi
mov rbx, rdx
mov rbp, rcx
test rdx, rdx
je 0x140092684
cmp dword [rdx], 4
jne 0x140092684
mov qword [r11 + 0x18], rsi
mov r8d, 0xf0
mov qword [r11 - 0x20], r14
mov r14, qword [rdx + 0x18]
lea rdx, [rsp + 0x40]
mov rcx, r14
mov qword [r11 - 0x28], r15
call qword [sym.imp.USER32.dll_GetWindowTextW]
lea edx, [rdi - 0x10]
mov rcx, r14
mov r15d, eax
call qword [sym.imp.USER32.dll_GetWindowLongW]
mov rcx, qword [rbx + 0x20]
lea r9, [rsp + 0x30]
mov r8d, r15d
lea rdx, [rsp + 0x40]
mov esi, eax
call qword [sym.imp.GDI32.dll_GetTextExtentPoint32W]
and esi, 0x300
cmp esi, 0x100
je 0x1400925ec
cmp esi, 0x200
je 0x1400925e3
cmp esi, 0x300
jne 0x1400925ef
mov eax, dword [rbx + 0x30]
sub eax, dword [rsp + 0x30]
cdq
sub eax, edx
sar eax, 1
mov edi, eax
jmp 0x1400925ef
mov edi, dword [rbx + 0x30]
sub edi, dword [rsp + 0x30]
jmp 0x1400925ef
mov edi, dword [rbx + 0x28]
mov eax, dword [rbx + 0x34]
mov r9, r14
sub eax, dword [rsp + 0x34]
mov rcx, rbp
mov r8, qword [rbx + 0x20]
cdq
sub eax, edx
mov edx, 0x138
sar eax, 1
mov esi, eax
call qword [sym.imp.USER32.dll_SendMessageW]
mov r14, qword [rsp + 0x238]
test rax, rax
jne 0x140092628
lea ecx, [rax + 1]
call qword [sym.imp.GDI32.dll_GetStockObject]
mov rcx, qword [rbx + 0x20]
lea rdx, [rbx + 0x28]
mov r8, rax
call qword [sym.imp.USER32.dll_FillRect]
test byte [rbx + 0x10], 1
mov edx, 0xff0000
mov ecx, 0xff
cmovne edx, ecx
mov rcx, qword [rbx + 0x20]
call qword [sym.imp.GDI32.dll_SetTextColor]
mov rcx, qword [rbx + 0x20]
lea r9, [rsp + 0x40]
mov r8d, esi
mov dword [rsp + 0x20], r15d
mov edx, edi
call qword [sym.imp.GDI32.dll_TextOutW]
mov r15, qword [rsp + 0x230]
mov eax, 1
mov rsi, qword [rsp + 0x270]
jmp 0x140092686
xor eax, eax
mov rcx, qword [rsp + 0x220]
xor rcx, rsp
call fcn.140094850
add rsp, 0x240
pop rdi
pop rbp
pop rbx
ret
Function at 0x140093040
Capabilities:
Create directory

Disassembly:
mov qword [rsp + 0x20], rbx
push rbp
push r12
push r15
sub rsp, 0x20
xor r12d, r12d
mov r15d, edx
mov rbp, rcx
mov ebx, r12d
test rcx, rcx
je 0x140093286
cmp word [rcx], bx
je 0x140093286
mov qword [rsp + 0x40], rsi
mov rcx, 0xffffffffffffffff
mov qword [rsp + 0x48], rdi
mov rdi, rcx
inc rdi
cmp word [rbp + rdi*2], bx
jne 0x140093080
add rdi, 5
mov eax, 2
mul rdi
cmovo rax, rcx
mov rcx, rax
call fcn.140094b74
mov rsi, rax
test rax, rax
jne 0x1400930b2
lea eax, [rsi + 8]
jmp 0x140093136
mov r8, rbp
mov qword [rsp + 0x50], r14
mov rdx, rdi
mov rcx, rsi
call fcn.140003870
lea r14, [0x1400c7638]
mov r8d, 4
mov rdx, r14
mov rcx, rsi
call fcn.1400a41ec
test eax, eax
jne 0x1400930ea
lea rax, [rsi + 0xc]
jmp 0x1400931e5
mov r8d, 4
lea rdx, [0x1400c7628]
mov rcx, rsi
call fcn.1400a41ec
test eax, eax
jne 0x14009310c
lea rax, [rsi + 0xc]
jmp 0x1400931e5
movzx eax, word [rsi]
cmp ax, 0x5c
jne 0x14009314f
cmp word [rsi + 2], ax
jne 0x14009314f
mov rcx, rsi
call fcn.140093640
test rax, rax
jne 0x1400931e5
mov eax, 0x4be
mov r14, qword [rsp + 0x50]
mov rsi, qword [rsp + 0x40]
mov rdi, qword [rsp + 0x48]
mov rbx, qword [rsp + 0x58]
add rsp, 0x20
pop r15
pop r12
pop rbp
ret
cmp word [rsi + 2], 0x3a
lea rcx, [rsi + 2]
jne 0x1400931d5
cmp word [rsi + 4], 0x5c
jne 0x1400931d5
test rdi, rdi
je 0x1400931bf
cmp rdi, 0x7fffffff
jbe 0x140093179
mov word [rsi], r12w
jmp 0x1400931bf
mov r8d, 0x7ffffffe
mov rdx, rdi
sub r8, rdi
mov rcx, rsi
sub r14, rsi
nop dword [rax + rax]
lea rax, [r8 + rdx]
test rax, rax
je 0x1400931b0
movzx eax, word [r14 + rcx]
test ax, ax
je 0x1400931b0
mov word [rcx], ax
add rcx, 2
sub rdx, 1
jne 0x140093190
test rdx, rdx
lea rax, [rcx - 2]
cmovne rax, rcx
mov word [rax], r12w
lea rdx, [rdi - 4]
mov r8, rbp
lea rcx, [rsi + 8]
call fcn.140003870
lea rax, [rsi + 0xc]
jmp 0x1400931e5
cmp ax, 0x2e
jne 0x1400931e2
call fcn.140093600
jmp 0x1400931e5
mov rax, rsi
lea rcx, [rax + 2]
lea rdx, [0x1400bca9c]
call fcn.1400a4218
mov rdi, rax
test rax, rax
je 0x14009324b
nop dword [rax]
xor edx, edx
mov word [rdi], r12w
mov rcx, rsi
mov ebx, r12d
call qword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x140093228
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
cmp eax, 0xb7
jne 0x140093247
mov ebx, r12d
lea rcx, [rdi + 2]
mov word [rdi], 0x5c
lea rdx, [0x1400bca9c]
call fcn.1400a4218
mov rdi, rax
test rax, rax
jne 0x140093200
jmp 0x14009324b
test eax, eax
jne 0x140093277
test r15d, r15d
je 0x140093277
cmp word [rbp], r12w
je 0x140093277
xor edx, edx
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x140093277
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
mov ebx, eax
cmove ebx, r12d
mov rcx, rsi
call fcn.140062970
mov eax, ebx
jmp 0x140093131
mov rbx, qword [rsp + 0x58]
xor eax, eax
add rsp, 0x20
pop r15
pop r12
pop rbp
ret
Function at 0x140093330
Capabilities:
Persist via run registry key
Query environment variable
Query or enumerate registry value

Disassembly:
mov qword [rsp + 0x10], rbx
push rbp
push rsi
push rdi
sub rsp, 0x30
mov rdi, qword [str.SoftwareMicrosoftWindowsCurrentVersionExplorerShell_Folders]
xor ebx, ebx
mov qword [rsp + 0x68], rbx
mov rbp, rdx
mov rsi, 0xffffffff80000001
lea r8d, [rbx + 0x57]
cmp ecx, 0x28
ja case.0x14009337d.1
movsxd rax, ecx
lea rdx, [0x140000000]
movzx eax, byte [rdx + rax + 0x9348c]
mov ecx, dword [rdx + rax*4 + 0x93470]
add rcx, rdx
jmp rcx
lea rbx, str.AppData
jmp case.0x14009337d.1
lea rbx, str.Programs
jmp case.0x14009337d.1
lea rbx, str.Desktop
jmp case.0x14009337d.1
lea rbx, str.Personal
jmp case.0x14009337d.1
mov r8d, 0x104
lea rcx, str.USERPROFILE
mov rdx, rbp
call qword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
test eax, eax
je 0x1400933c2
xor r8d, r8d
jmp case.0x14009337d.1
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov r8d, eax
jmp case.0x14009337d.1
mov rdi, qword [str.SoftwareMicrosoftWindowsCurrentVersion]
lea rbx, str.ProgramFilesDir
mov rsi, 0xffffffff80000002
test rdi, rdi
je 0x140093460
test rbx, rbx
je 0x140093460
lea rax, [rsp + 0x68]
mov dword [rsp + 0x50], 0x208
mov r9d, 1
mov qword [rsp + 0x20], rax
xor r8d, r8d
mov dword [rsp + 0x60], 0
mov rdx, rdi
mov rcx, rsi
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x140093463
mov rcx, qword [rsp + 0x68]
lea rax, [rsp + 0x50]
mov qword [rsp + 0x28], rax
lea r9, [rsp + 0x60]
xor r8d, r8d
mov qword [rsp + 0x20], rbp
mov rdx, rbx
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov rcx, qword [rsp + 0x68]
mov ebx, eax
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, ebx
mov rbx, qword [rsp + 0x58]
add rsp, 0x30
pop rdi
pop rsi
pop rbp
ret
mov eax, r8d
mov rbx, qword [rsp + 0x58]
add rsp, 0x30
pop rdi
pop rsi
pop rbp
ret

Function at 0x14009558c
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x1400955d6
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x1400955d6
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x1400955d6
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x1400955d6
cmp dword [rcx + 0x84], 0xe
jbe 0x1400955d6
cmp dword [rcx + 0xf8], 0
setne al
jmp 0x1400955d8
xor al, al
add rsp, 0x28
ret
Function at 0x1400a37e0
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 0x1400a364b
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x1400a364b
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x1400a364b
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x1400a364b
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x1400a364b
cmp dword [rcx + 0x84], 0xe
jbe 0x1400a364b
cmp dword [rcx + 0xf8], 0
je 0x1400a364b
mov ecx, ebx
call fcn.1400a36fc
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.1400a34d8
nop
cmp dword [rbp + 0x20], 0
je 0x1400a3699
mov rbx, qword [rsp + 0x60]
add rsp, 0x50
pop rbp
ret
mov ecx, ebx
call fcn.1400a36a4
int3
xor r8d, r8d
xor edx, edx
jmp 0x1400a35dc

Function at 0x1400a4104
Capabilities:
Create thread

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x30
xor edi, edi
mov esi, edx
mov rbp, rcx
test r8, r8
jne 0x1400a413b
call fcn.1400a552c
mov dword [rax], DispGetParam
call fcn.1400a2508
xor eax, eax
jmp 0x1400a41c9
mov rdx, r9
mov rcx, r8
call fcn.1400a40a0
mov rbx, rax
test rax, rax
je 0x1400a41c6
lea rax, [rsp + 0x50]
mov rdx, rsi
mov qword [rsp + 0x28], rax
lea r8, [0x1400a3fcc]
mov eax, dword [rsp + 0x60]
mov r9, rbx
mov rcx, rbp
mov dword [rsp + 0x20], eax
call qword [sym.imp.KERNEL32.dll_CreateThread]
mov rdx, rax
test rax, rax
jne 0x1400a41b3
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
call fcn.1400a54a0
mov rcx, qword [rbx + 0x10]
test rcx, rcx
je 0x1400a419a
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rbx + 0x18]
test rcx, rcx
je 0x1400a41a9
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
mov rcx, rbx
call fcn.1400a5d2c
jmp 0x1400a41c6
mov rcx, qword [rsp + 0x68]
test rcx, rcx
je 0x1400a41c3
mov eax, dword [rsp + 0x50]
mov dword [rcx], eax
mov rdi, rdx
mov rax, rdi
mov rbx, qword [rsp + 0x40]
mov rbp, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x58]
add rsp, 0x30
pop rdi
ret
Function at 0x1400a9aec
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, [0x1400e1d50]
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 0x1400a9b43
cmp word [rdx], r13w
jne 0x1400a9b43
or byte [rax + rdi*8 + 0x38], cl
jmp 0x1400a9b48
and byte [rax + rdi*8 + 0x38], 0xfb
lea r8, [rdx + r8*2]
mov rbx, r14
cmp r14, r8
jae 0x1400a9c6d
mov r11d, SafeArrayGetDim
lea r12d, [r11 - 0xb]
movzx ecx, word [rdx]
cmp cx, 0x1a
je 0x1400a9c8e
lea r9, [rdx + 2]
cmp cx, r11w
je 0x1400a9b81
mov rdx, r9
mov word [rbx], cx
jmp 0x1400a9ba8
cmp r9, r8
jae 0x1400a9bb8
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 0x1400a9b62
jmp 0x1400a9c6d
lea r9, [rsp + 0x80]
mov qword [rsp + 0x20], rsi
mov r8d, r12d
lea rdx, [rsp + 0x70]
mov rcx, r10
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x1400a9c62
cmp dword [rsp + 0x80], esi
je 0x1400a9c62
lea r8, [0x1400e1d50]
mov rax, qword [r8 + rbp*8]
test byte [rax + rdi*8 + 0x38], 0x48
je 0x1400a9c3a
movzx eax, word [rsp + 0x70]
cmp ax, r13w
jne 0x1400a9c0a
mov word [rbx], r13w
jmp 0x1400a9c6a
mov ecx, SafeArrayGetDim
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 0x1400a9c17
mov rax, qword [r8 + rbp*8]
mov byte [rax + rdi*8 + 0x3c], r13b
jmp 0x1400a9c6a
cmp word [rsp + 0x70], r13w
jne 0x1400a9c47
cmp rbx, r14
je 0x1400a9c04
mov rdx, 0xfffffffffffffffe
mov ecx, r15d
lea r8d, [rdx + 3]
call fcn.1400af37c
cmp word [rsp + 0x70], r13w
je 0x1400a9c6d
mov ecx, SafeArrayGetDim
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, [0x1400e1d50]
mov rdx, qword [r8 + rbp*8]
mov al, byte [rdx + rdi*8 + 0x38]
test al, 0x40
jne 0x1400a9c67
or al, r12b
mov byte [rdx + rdi*8 + 0x38], al
jmp 0x1400a9c6d
Function at 0x1400aa4bc
Capabilities:
Get file size

Disassembly:
push rbx
sub rsp, 0x20
mov edx, dword [rcx + 0x14]
nop
shr edx, 3
test dl, 1
je 0x1400aa4d2
mov al, 1
jmp 0x1400aa532
mov eax, dword [rcx + 0x14]
nop
test al, 0xc0
je 0x1400aa4e3
mov rax, qword [rcx + 8]
cmp qword [rcx], rax
je 0x1400aa530
mov ecx, dword [rcx + 0x18]
nop
call fcn.1400aab1c
mov rbx, rax
cmp rax, 0xffffffffffffffff
je 0x1400aa530
mov r9d, 1
lea r8, [rsp + 0x38]
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetFilePointerEx]
test eax, eax
je 0x1400aa530
lea rdx, [rsp + 0x30]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
je 0x1400aa530
mov rax, qword [rsp + 0x30]
cmp qword [rsp + 0x38], rax
sete al
jmp 0x1400aa532
xor al, al
add rsp, 0x20
pop rbx
ret