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

Disassembly:
sub rsp, 0x258
mov rax, qword [0x140415a10]
xor rax, rsp
mov qword [rsp + 0x240], rax
lea rcx, [rsp + 0x30]
mov edx, 0x104
call qword [sym.imp.KERNEL32.dll_GetWindowsDirectoryW]
lea r8, str.AppCompatProgramsAmcache.hve
lea rcx, [rsp + 0x30]
mov edx, 0x104
call fcn.1402b9308
lea r8, [rsp + 0x20]
lea rdx, [rsp + 0x28]
lea rcx, [rsp + 0x30]
call fcn.1400ce850
test al, al
jne 0x1400ceae1
xor eax, eax
mov rcx, qword [rsp + 0x240]
xor rcx, rsp
call fcn.1402b6d40
add rsp, 0x258
ret
mov qword [rsp + 0x260], rbx
mov ecx, 0x20
mov qword [rsp + 0x268], rbp
mov qword [rsp + 0x250], rsi
call fcn.1402b6dbc
mov rbx, rax
test rax, rax
je 0x1400ceb2e
lea rax, vtable.CommunityRemnantsAmcache.0
mov qword [rbx + 8], 0
mov qword [rbx + 0x10], 0
mov qword [rbx], rax
mov dword [rbx + 0x18], 0
jmp 0x1400ceb30
xor ebx, ebx
mov rsi, qword [rsp + 0x28]
mov ebp, dword [rsp + 0x20]
mov ecx, 0x18
mov qword [rbx + 0x10], rsi
mov dword [rbx + 0x18], ebp
call fcn.1402b6dbc
test rax, rax
je 0x1400ceb61
lea rcx, vtable.RegParser.0
mov qword [rax + 8], rsi
mov qword [rax + 0x10], rbp
mov qword [rax], rcx
mov rsi, qword [rsp + 0x250]
mov rbp, qword [rsp + 0x268]
mov qword [rbx + 8], rax
mov rax, rbx
mov rbx, qword [rsp + 0x260]
mov rcx, qword [rsp + 0x240]
xor rcx, rsp
call fcn.1402b6d40
add rsp, 0x258
ret
Function at 0x1400cf2d0
Capabilities:
Get volume information via ioctl

Disassembly:
mov r11, rsp
mov qword [r11 + 0x18], rbp
mov qword [r11 + 0x20], rdi
push r14
sub rsp, 0xd0
mov rax, qword [0x140415a10]
xor rax, rsp
mov qword [rsp + 0xc0], rax
mov eax, dword [0x140345f88]
movsd xmm0, qword [0x140345f80]
xor r14d, r14d
mov dword [r11 - 0x20], eax
movzx eax, word [0x140345f8c]
movzx ebp, cx
movsd qword [r11 - 0x28], xmm0
mov word [r11 - 0x20], cx
mov qword [rsp + 0x30], r14
lea r8d, [r14 + 3]
lea rcx, [r11 - 0x28]
xor r9d, r9d
mov edx, 0x80000000
mov dword [rsp + 0x28], r14d
mov word [r11 - 0x1c], ax
mov dword [rsp + 0x20], 3
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov rdi, rax
cmp rax, 0xffffffffffffffff
je 0x1400cf398
mov qword [rsp + 0x38], r14
lea rax, [rsp + 0x40]
xor r9d, r9d
mov qword [rsp + 0x30], rax
lea rax, [rsp + 0x50]
xor r8d, r8d
mov edx, 0x90064
mov rcx, rdi
mov dword [rsp + 0x28], 0x60
mov qword [rsp + 0x20], rax
call qword [sym.imp.KERNEL32.dll_DeviceIoControl]
test eax, eax
jne 0x1400cf39f
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
jmp 0x1400cf431
mov qword [rsp + 0xe0], rbx
mov qword [rsp + 0xe8], rsi
mov esi, dword [rsp + 0x80]
mov ecx, 0x38
add esi, 0x10
call fcn.1402b6dbc
mov rbx, rax
test rax, rax
je 0x1400cf3e3
lea rax, vtable.CommunityRemnantsNtfs.0
mov qword [rbx + 0x10], 0xffffffffffffffff
mov qword [rbx + 0x30], r14
mov qword [rbx], rax
jmp 0x1400cf3e6
mov rbx, r14
mov word [rbx + 8], bp
mov qword [rbx + 0x10], rdi
mov ecx, dword [rsp + 0x80]
mov dword [rbx + 0x18], ecx
mov ecx, esi
mov dword [rbx + 0x28], esi
call fcn.1402b7390
mov rsi, qword [rsp + 0xe8]
mov qword [rbx + 0x30], rax
mov rax, qword [rsp + 0x88]
mov ecx, dword [rsp + 0x80]
cqo
idiv rcx
mov qword [rbx + 0x20], rax
mov rax, rbx
mov rbx, qword [rsp + 0xe0]
mov rcx, qword [rsp + 0xc0]
xor rcx, rsp
call fcn.1402b6d40
lea r11, [rsp + 0xd0]
mov rbp, qword [r11 + 0x20]
mov rdi, qword [r11 + 0x28]
mov rsp, r11
pop r14
ret
Function at 0x1400d0240
Capabilities:
Create thread
Get system information on windows

Disassembly:
mov r11, rsp
push rbp
sub rsp, 0xd0
mov rax, qword [0x140415a10]
xor rax, rsp
mov qword [rsp + 0xb0], rax
cmp qword [rcx + 0xa0], 0
mov rbp, rcx
je 0x1400d0344
mov qword [r11 + 0x18], rsi
mov qword [r11 - 0x18], r14
lea rcx, [rsp + 0x38]
xor r14d, r14d
mov esi, r14d
call qword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov eax, dword [rsp + 0x58]
mov ecx, 2
cmp eax, ecx
cmovl eax, ecx
mov ecx, 8
cmp eax, ecx
cmovg eax, ecx
test eax, eax
jle 0x1400d0306
mov qword [rsp + 0xe8], rbx
mov qword [rsp + 0xc8], rdi
mov edi, eax
lea rbx, [rsp + 0x70]
nop word [rax + rax]
lea rax, [rsp + 0x30]
lea r8, [0x1400d0910]
mov r9, rbp
mov qword [rsp + 0x28], rax
xor edx, edx
xor ecx, ecx
mov dword [rsp + 0x20], r14d
call qword [sym.imp.KERNEL32.dll_CreateThread]
test rax, rax
je 0x1400d02f1
mov qword [rbx], rax
inc esi
add rbx, 8
dec rdi
jne 0x1400d02c0
mov rdi, qword [rsp + 0xc8]
mov rbx, qword [rsp + 0xe8]
mov rcx, qword [rbp + 0x40]
or edx, 0xffffffff
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov rcx, qword [rbp + 8]
call qword [sym.imp.KERNEL32.dll_SetEvent]
lea rdx, [rsp + 0x70]
or r9d, 0xffffffff
mov r8d, 1
mov ecx, esi
call qword [sym.imp.KERNEL32.dll_WaitForMultipleObjects]
mov r14, qword [rsp + 0xc0]
mov rsi, qword [rsp + 0xf0]
mov al, 1
mov rcx, qword [rsp + 0xb0]
xor rcx, rsp
call fcn.1402b6d40
add rsp, 0xd0
pop rbp
ret
Function at 0x1400d0360
Capabilities:
Query or enumerate registry key

Disassembly:
mov rax, rsp
push rbp
push rdi
push r14
lea rbp, [rax - 0x1d8]
sub rsp, 0x2c0
mov qword [rbp - 0x78], 0xfffffffffffffffe
mov qword [rax + 0x18], rbx
mov qword [rax + 0x20], rsi
mov rax, qword [0x140415a10]
xor rax, rsp
mov qword [rbp + 0x1b0], rax
mov rdi, rdx
mov rsi, rcx
xor r14d, r14d
mov qword [rsp + 0x58], r14
mov qword [rsp + 0x50], r14
mov qword [rsp + 0x48], r14
mov qword [rsp + 0x40], r14
mov qword [rsp + 0x38], r14
mov qword [rsp + 0x30], r14
mov qword [rsp + 0x28], r14
lea rax, [rsp + 0x60]
mov qword [rsp + 0x20], rax
xor r9d, r9d
xor r8d, r8d
xor edx, edx
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyW]
test eax, eax
jne 0x1400d0583
mov eax, dword [rsp + 0x60]
test eax, eax
je 0x1400d0583
mov ebx, r14d
nop dword [rax]
nop dword [rax + rax]
mov dword [rsp + 0x70], 0x100
mov qword [rsp + 0x38], r14
mov qword [rsp + 0x30], r14
mov qword [rsp + 0x28], r14
mov qword [rsp + 0x20], r14
lea r9, [rsp + 0x70]
lea r8, [rbp - 0x50]
mov edx, ebx
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
test eax, eax
jne 0x1400d0577
lea rdx, str.CurrentControlSet
lea rcx, [rbp - 0x50]
call fcn.1402b71dc
test eax, eax
jne 0x1400d04b4
mov qword [rbp - 0x58], 7
mov qword [rbp - 0x60], r14
mov word [rbp - 0x70], r14w
lea r8, [rbp - 0x70]
mov rdx, rdi
call fcn.1400d0650
test al, al
je 0x1400d04a4
lea rcx, [rbp - 0x70]
cmp qword [rbp - 0x58], 8
cmovae rcx, qword [rbp - 0x70]
lea rdx, str.HKLMSYSTEM_
call fcn.1402b71dc
test eax, eax
jne 0x1400d04a4
cmp qword [rbp - 0x58], 8
jb 0x1400d0577
mov rcx, qword [rbp - 0x70]
call fcn.1402150f0
jmp 0x1400d0577
cmp qword [rbp - 0x58], 8
jb 0x1400d04b4
mov rcx, qword [rbp - 0x70]
call fcn.1402150f0
lea rax, [rsp + 0x68]
mov qword [rsp + 0x20], rax
mov r9d, 0x20019
xor r8d, r8d
lea rdx, [rbp - 0x50]
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x1400d0577
lea rax, [rsp + 0x78]
mov qword [rsp + 0x58], rax
mov qword [rsp + 0x50], r14
mov qword [rsp + 0x48], r14
mov qword [rsp + 0x40], r14
mov qword [rsp + 0x38], r14
mov qword [rsp + 0x30], r14
mov qword [rsp + 0x28], r14
lea rax, [rsp + 0x74]
mov qword [rsp + 0x20], rax
xor r9d, r9d
xor r8d, r8d
xor edx, edx
mov rcx, qword [rsp + 0x68]
call qword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyW]
test eax, eax
jne 0x1400d056c
mov eax, dword [rsp + 0x78]
mov dword [rbp - 0x80], eax
mov eax, dword [rsp + 0x7c]
mov dword [rbp - 0x7c], eax
mov r11, qword [rbp - 0x80]
mov rcx, r11
call fcn.1400cb480
test rax, rax
je 0x1400d0554
mov r9, rax
mov r8, r11
mov rdx, qword [rsp + 0x68]
call fcn.1400d0770
cmp dword [rsp + 0x74], 0
jbe 0x1400d056c
mov rdx, qword [rsp + 0x68]
mov rcx, rsi
call fcn.1400d05c0
test al, al
jne 0x1400d0577
mov rcx, qword [rsp + 0x68]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
inc ebx
cmp ebx, dword [rsp + 0x60]
jb 0x1400d0400
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rcx, qword [rbp + 0x1b0]
xor rcx, rsp
call fcn.1402b6d40
lea r11, [rsp + 0x2c0]
mov rbx, qword [r11 + 0x30]
mov rsi, qword [r11 + 0x38]
mov rsp, r11
pop r14
pop rdi
pop rbp
ret
Function at 0x1400d1fb0
Capabilities:
Delete file

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
mov rbx, rcx
mov rcx, qword [rcx + 8]
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
setne dil
test dil, dil
jne 0x1400d1fed
mov rbx, qword [rbx + 8]
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.Error__d_while_deleting:__ls_r_n
mov edx, eax
mov r8, rbx
call fcn.1402b7a88
movzx eax, dil
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret
Function at 0x1400d3770
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov qword [rsp + 0x10], rbx
push rdi
sub rsp, 0x20
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov edx, 0x3e7
mov r8d, 0xa
mov rcx, rax
mov rbx, rax
call qword [sym.imp.KERNEL32.dll_FindResourceW]
mov rdi, rax
test rax, rax
je 0x1400d380a
mov rdx, rax
mov rcx, rbx
mov qword [rsp + 0x30], rsi
call qword [sym.imp.KERNEL32.dll_SizeofResource]
mov rdx, rdi
mov rcx, rbx
mov esi, eax
call qword [sym.imp.KERNEL32.dll_LoadResource]
mov rdi, rax
test rax, rax
je 0x1400d37fa
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_LockResource]
mov edx, esi
mov rcx, rax
call fcn.1400d3820
mov rcx, rdi
mov rbx, rax
call qword [sym.imp.KERNEL32.dll_FreeResource]
mov rsi, qword [rsp + 0x30]
mov rax, rbx
mov rbx, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret
mov rsi, qword [rsp + 0x30]
mov rbx, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret
mov rbx, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret

Function at 0x1400d4e40
Capabilities:
Encode data using xor
Hash data using murmur2

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rdi
mov eax, dword [rcx + 8]
mov r10, qword [rcx + 0x10]
sub eax, 0x500
mov edi, eax
je 0x1400d4ed6
mov rax, qword [str.WJIM]
mov rbx, r10
sub rbx, r10
cmp qword [r10], rax
jne 0x1400d4ecb
mov r9d, 0xdeadbbef
mov rcx, r10
mov r11d, 0x140
nop dword [rax + rax]
imul edx, dword [rcx], 0x5bd1e995
lea rcx, [rcx + 4]
mov r8d, edx
shr r8d, 0x18
xor r8d, edx
imul edx, r9d, 0x5bd1e995
imul r8d, r8d, 0x5bd1e995
xor r8d, edx
mov r9d, r8d
dec r11
jne 0x1400d4e80
mov ecx, r8d
shr ecx, 0xd
xor ecx, r8d
imul edx, ecx, 0x5bd1e995
mov ecx, edx
shr ecx, 0xf
xor ecx, edx
cmp ecx, 0xe22a4630
je 0x1400d4ee3
inc rbx
inc r10
cmp rbx, rdi
jb 0x1400d4e67
xor al, al
mov rbx, qword [rsp + 8]
mov rdi, qword [rsp + 0x10]
ret
mov rbx, qword [rsp + 8]
mov rdi, qword [rsp + 0x10]
mov al, 1
ret

Function at 0x1400d5160
Capabilities:
Terminate thread

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x20
mov rdx, qword [rcx + 0x48]
lea rax, vtable.EventStoreClient.0
mov rdi, rcx
mov qword [rcx], rax
test rdx, rdx
je 0x1400d51b7
mov rcx, qword [rcx + 0x38]
test rcx, rcx
je 0x1400d51b7
xor r9d, r9d
mov r8d, 0x1388
call qword [sym.imp.KERNEL32.dll_SignalObjectAndWait]
test eax, eax
je 0x1400d51ad
mov rcx, qword [rdi + 0x48]
xor edx, edx
call qword [sym.imp.KERNEL32.dll_TerminateThread]
mov rcx, qword [rdi + 0x48]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rdi + 0x50]
test rcx, rcx
je 0x1400d51c6
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rdi + 0x38]
test rcx, rcx
je 0x1400d51d5
call qword [sym.imp.KERNEL32.dll_CloseHandle]
lea rcx, [rdi + 0x80]
call fcn.140009660
mov rcx, qword [rdi + 0x80]
call fcn.1402150f0
xor esi, esi
mov qword [rdi + 0x80], rsi
cmp qword [rdi + 0x20], 8
jb 0x1400d5206
mov rcx, qword [rdi + 8]
call fcn.1402150f0
mov rbx, qword [rsp + 0x30]
mov qword [rdi + 0x18], rsi
mov qword [rdi + 0x20], 7
mov word [rdi + 8], si
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret
Function at 0x1400d5230
Capabilities:
Create thread

Disassembly:
push rbx
sub rsp, 0x40
mov qword [rsp + 0x30], 0xfffffffffffffffe
mov ecx, 0xa8
call fcn.1402b6dbc
mov qword [rsp + 0x50], rax
test rax, rax
je 0x1400d5260
mov rcx, rax
call fcn.1400d5050
mov rbx, rax
jmp 0x1400d5262
xor ebx, ebx
xor r9d, r9d
xor r8d, r8d
lea edx, [r9 + 1]
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateEventW]
mov qword [rbx + 0x50], rax
xor r9d, r9d
xor r8d, r8d
lea edx, [r9 + 1]
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateEventW]
mov qword [rbx + 0x38], rax
cmp qword [rbx + 0x50], 0
je 0x1400d52c3
test rax, rax
je 0x1400d52c3
lea rax, [rbx + 0x40]
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x20], 0
mov r9, rbx
lea r8, [0x1400d5400]
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateThread]
mov qword [rbx + 0x48], rax
cmp qword [rbx + 0x48], 0
jne 0x1400d52db
mov rax, qword [rbx]
mov edx, 1
mov rcx, rbx
call qword [rax]
xor eax, eax
jmp 0x1400d52de
mov rax, rbx
add rsp, 0x40
pop rbx
ret

Function at 0x1400d55e0
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rbp
push rsi
push rdi
push r14
sub rsp, 0x50
mov rax, qword [0x140415a10]
xor rax, rsp
mov qword [rsp + 0x48], rax
mov r8d, dword [rdx + 0x48]
mov rdi, rdx
mov r14, rcx
lea rdx, str._08lu
lea rcx, [rsp + 0x38]
call fcn.1400d5b90
mov esi, dword [rdi + 0x48]
add esi, 9
movsxd rbx, esi
mov rcx, rbx
call fcn.1402b7390
mov rbp, rax
test rax, rax
jne 0x1400d5655
lea rdx, str.out_of_memory__needed__u_bytes_
lea ecx, [rax + 2]
mov r8d, esi
call fcn.14016fab0
mov dword [rdi + 0x34], 3
xor al, al
jmp 0x1400d5701
lea r8, [rsp + 0x38]
mov rdx, rbx
mov rcx, rax
call fcn.1402b96bc
cmp qword [rdi + 0x50], 0x10
lea r8, [rdi + 0x38]
jb 0x1400d5673
mov r8, qword [r8]
mov rdx, rbx
mov rcx, rbp
call fcn.1402b9720
mov rcx, qword [r14 + 0x28]
dec esi
lea r9, [rsp + 0x30]
mov r8d, esi
mov rdx, rbp
mov qword [rsp + 0x20], 0
call qword [sym.imp.KERNEL32.dll_WriteFile]
mov rcx, rbp
mov ebx, eax
call fcn.1402b7350
test ebx, ebx
jne 0x1400d56d6
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea r8, [0x140346d98]
lea rdx, str._s___error__d
lea ecx, [rbx + 2]
mov r9d, eax
call fcn.14016fab0
mov dword [rdi + 0x34], 4
xor al, al
jmp 0x1400d5701
mov r8d, dword [rsp + 0x30]
cmp esi, r8d
je 0x1400d56ff
lea rdx, str.not_enough_written___d_bytes__expected__d_bytes_
mov r9d, esi
mov ecx, 2
call fcn.14016fab0
mov dword [rdi + 0x34], 4
xor al, al
jmp 0x1400d5701
mov al, 1
mov rcx, qword [rsp + 0x48]
xor rcx, rsp
call fcn.1402b6d40
lea r11, [rsp + 0x50]
mov rbx, qword [r11 + 0x30]
mov rbp, qword [r11 + 0x38]
mov rsp, r11
pop r14
pop rdi
pop rsi
ret
Function at 0x1400d5a20
Capabilities:
Check if file exists

Disassembly:
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x40
xor ebp, ebp
mov rdi, rcx
mov rcx, qword [rcx + 0x28]
mov esi, ebp
cmp rcx, 0xffffffffffffffff
je 0x1400d5a64
xor r9d, r9d
xor r8d, r8d
xor edx, edx
mov qword [rsp + 0x28], rbp
mov qword [rsp + 0x20], rbp
call qword [sym.imp.KERNEL32.dll_PeekNamedPipe]
test eax, eax
jne 0x1400d5a84
mov qword [rdi + 0x28], 0xffffffffffffffff
mov qword [rsp + 0x50], rbx
cmp dword [rdi + 0x30], esi
jle 0x1400d5b3d
lea rbx, [rdi + 8]
inc esi
cmp qword [rbx + 0x18], 8
jb 0x1400d5a96
mov rcx, qword [rbx]
jmp 0x1400d5a99
mov al, 1
mov rbp, qword [rsp + 0x58]
mov rsi, qword [rsp + 0x60]
add rsp, 0x40
pop rdi
ret
mov rcx, rbx
mov edx, 0x64
call qword [sym.imp.KERNEL32.dll_WaitNamedPipeW]
test eax, eax
jne 0x1400d5ae8
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
je 0x1400d5add
cmp eax, 0x79
je 0x1400d5b34
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea r8, str.WaitNamedPipe
lea rdx, str._s___error__d
mov r9d, eax
mov ecx, 2
call fcn.14016fab0
xor al, al
jmp 0x1400d5b45
mov ecx, 0x64
call qword [sym.imp.KERNEL32.dll_Sleep]
cmp qword [rbx + 0x18], 8
jb 0x1400d5af4
mov rcx, qword [rbx]
jmp 0x1400d5af7
mov rcx, rbx
mov qword [rsp + 0x30], rbp
xor r9d, r9d
xor r8d, r8d
mov edx, 0xc0000000
mov dword [rsp + 0x28], 0x80
mov dword [rsp + 0x20], 3
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov qword [rdi + 0x28], rax
cmp rax, 0xffffffffffffffff
jne 0x1400d5b3d
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xe7
jne 0x1400d5b5a
cmp esi, dword [rdi + 0x30]
jl 0x1400d5a76
cmp qword [rdi + 0x28], 0xffffffffffffffff
setne al
mov rbx, qword [rsp + 0x50]
mov rbp, qword [rsp + 0x58]
mov rsi, qword [rsp + 0x60]
add rsp, 0x40
pop rdi
ret
cmp qword [rbx + 0x18], 8
jb 0x1400d5b64
mov rbx, qword [rbx]
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea r8, str.CreateFile
lea rdx, str._s___error__d:__s
mov ecx, 2
mov r9d, eax
mov qword [rsp + 0x20], rbx
call fcn.14016fab0
xor al, al
jmp 0x1400d5b45
Function at 0x1400d8ae0
Capabilities:
Query or enumerate registry value

Disassembly:
mov r11, rsp
push rsi
push rdi
push r13
push r14
push r15
sub rsp, 0x60
mov qword [r11 - 0x58], 0xfffffffffffffffe
mov qword [r11 + 0x10], rbx
mov qword [r11 + 0x18], rbp
mov rsi, r8
mov r15, rdx
mov r13, rcx
xor edi, edi
mov dword [r11 + 8], edi
lea rax, [r11 + 8]
mov qword [r11 - 0x60], rax
mov qword [r11 - 0x68], rdi
lea r9, [r11 + 0x20]
xor r8d, r8d
mov rcx, qword [rcx + 8]
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov ebx, eax
mov ecx, eax
call qword [sym.imp.KERNEL32.dll_SetLastError]
test ebx, ebx
jne 0x1400d8d14
cmp dword [rsp + 0x90], edi
jne 0x1400d8b5c
mov rdx, qword [0x140416ee8]
mov rcx, rsi
call fcn.1401fafa0
mov al, 1
jmp 0x1400d8d16
mov eax, dword [rsp + 0xa8]
cmp eax, 7
jne 0x1400d8c1d
lea rax, vtable.Core::Array_class_Core::String_.0
mov qword [rsp + 0x48], rax
mov dword [rsp + 0x50], edi
mov qword [rsp + 0x58], rdi
lea r8, [rsp + 0x48]
mov rdx, r15
mov rcx, r13
call fcn.1400d8d30
mov r14, qword [rsp + 0x58]
test al, al
jne 0x1400d8b9f
xor dil, dil
jmp 0x1400d8bee
mov rdx, qword [0x140416ee8]
mov rcx, rsi
call fcn.1401fafa0
mov eax, dword [rsp + 0x50]
test eax, eax
jle 0x1400d8beb
mov rbx, r14
mov ebp, eax
nop dword [rax + rax]
test rdi, rdi
jle 0x1400d8bd4
lea rdx, [0x140347124]
mov rcx, rsi
call fcn.1401fb190
mov rdx, qword [rbx]
mov rcx, rsi
call fcn.1401fb190
inc rdi
add rbx, 0x10
dec rbp
jne 0x1400d8bc0
mov dil, 1
test r14, r14
je 0x1400d8c14
lea r9, [fcn.140005eb0]
mov r8d, dword [r14 - 8]
mov edx, 0x10
mov rcx, r14
call fcn.1402b7cf4
lea rcx, [r14 - 8]
call fcn.1402b712c
movzx eax, dil
jmp 0x1400d8d16
cmp eax, 0xb
ja 0x1400d8d14
mov ecx, 0x816
bt ecx, eax
jae 0x1400d8d14
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov r14, rax
mov r8d, dword [rsp + 0x90]
mov edx, 8
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
mov rdi, rax
test rax, rax
je 0x1400d8d14
xor bpl, bpl
lea rax, [rsp + 0x90]
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], rdi
lea r9, [rsp + 0xa8]
xor r8d, r8d
mov rdx, r15
mov rcx, qword [r13 + 8]
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov ebx, eax
mov ecx, eax
call qword [sym.imp.KERNEL32.dll_SetLastError]
test ebx, ebx
jne 0x1400d8d00
mov eax, dword [rsp + 0xa8]
dec eax
je 0x1400d8cf2
dec eax
je 0x1400d8cf2
sub eax, 2
je 0x1400d8cd2
sub eax, 7
jne 0x1400d8d00
movzx edx, byte [rdi]
lea rcx, [rsp + 0x38]
call fcn.1400d6dd0
cmp dword [rsp + 0x40], ebx
jle 0x1400d8cfd
mov rcx, qword [rsp + 0x38]
call fcn.1402b7350
jmp 0x1400d8cfd
movzx edx, byte [rdi]
lea rcx, [rsp + 0x48]
call fcn.1400039c0
cmp dword [rsp + 0x50], 0
jle 0x1400d8cfd
mov rcx, qword [rsp + 0x48]
call fcn.1402b7350
jmp 0x1400d8cfd
mov rdx, rdi
mov rcx, rsi
call fcn.1401fafa0
mov bpl, 1
mov r8, rdi
xor edx, edx
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_HeapFree]
movzx eax, bpl
jmp 0x1400d8d16
xor al, al
lea r11, [rsp + 0x60]
mov rbx, qword [r11 + 0x38]
mov rbp, qword [r11 + 0x40]
mov rsp, r11
pop r15
pop r14
pop r13
pop rdi
pop rsi
ret
Function at 0x1400d8d30
Capabilities:
Query or enumerate registry value

Disassembly:
mov r11, rsp
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x60
mov qword [r11 - 0x68], 0xfffffffffffffffe
mov qword [r11 + 0x10], rbx
mov r15, r8
mov rbx, rdx
mov rdi, rcx
xor r12d, r12d
mov dword [r11 + 8], r12d
lea rax, [r11 + 8]
mov qword [r11 - 0x70], rax
mov qword [r11 - 0x78], r12
lea r9, [r11 + 0x20]
xor r8d, r8d
mov rcx, qword [rcx + 8]
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x1400d8f22
cmp dword [rsp + 0xb8], 7
jne 0x1400d8f22
lea rax, [0x140346ce0]
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x40], r12
mov edx, dword [rsp + 0xa0]
shr edx, 1
lea rcx, [rsp + 0x38]
call fcn.1401fcb40
lea rax, [rsp + 0xa0]
mov qword [rsp + 0x28], rax
mov rax, qword [rsp + 0x38]
mov qword [rsp + 0x20], rax
lea r9, [rsp + 0xb8]
xor r8d, r8d
mov rdx, rbx
mov rcx, qword [rdi + 8]
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x1400d8f0d
mov edx, dword [rsp + 0xa0]
cmp edx, 2
ja 0x1400d8e30
mov rcx, qword [r15 + 0x10]
test rcx, rcx
je 0x1400d8f0d
lea rbx, [rcx - 8]
lea r9, [fcn.140005eb0]
mov r8d, dword [rbx]
lea edx, [rax + 0x10]
call fcn.1402b7cf4
mov rcx, rbx
call fcn.1402b712c
mov qword [r15 + 0x10], r12
mov dword [r15 + 8], r12d
jmp 0x1400d8f0d
shr edx, 1
lea rcx, [rsp + 0x38]
call fcn.1401fde50
mov ebp, r12d
or r13d, 0xffffffff
nop dword [rax]
nop word [rax + rax]
mov esi, r12d
mov ebx, r12d
movsxd r14, ebp
nop dword [rax]
xor edx, edx
mov r8d, ebx
lea rcx, [rsp + 0x38]
call fcn.1401fd150
movsxd rdi, eax
test eax, eax
jle 0x1400d8eec
cmp r14, 1
jne 0x1400d8ea1
mov r9d, edi
sub r9d, ebx
mov r8d, ebx
lea rdx, [rsp + 0x48]
lea rcx, [rsp + 0x38]
call fcn.1401fed70
mov r8, rax
mov edx, esi
mov rcx, r15
call fcn.1400e28f0
inc esi
mov r8d, 2
lea rdx, [0x14034712c]
mov rax, qword [rsp + 0x38]
lea rax, [rax + rdi*2]
nop dword [rax]
movzx ecx, word [rdx]
cmp word [rax], cx
jne 0x1400d8ed7
add rax, 2
add rdx, 2
dec r8
je 0x1400d8ef4
jmp 0x1400d8ec0
mov r8d, 1
cmp word [rax], cx
cmovb r8d, r13d
test r8d, r8d
je 0x1400d8ef4
lea ebx, [rdi + 1]
test ebx, ebx
jns 0x1400d8e60
test ebp, ebp
jne 0x1400d8f02
mov edx, esi
mov rcx, r15
call fcn.1400c7e30
inc ebp
cmp ebp, 2
jl 0x1400d8e50
cmp dword [rsp + 0x40], 0
jle 0x1400d8f1e
mov rcx, qword [rsp + 0x38]
call fcn.1402b7350
mov al, 1
jmp 0x1400d8f24
xor al, al
mov rbx, qword [rsp + 0xa8]
add rsp, 0x60
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
Function at 0x1400e08a0
Capabilities:
Create process on windows
Get common file path

Disassembly:
mov rax, rsp
push rbp
lea rbp, [rax - 0x1a8]
sub rsp, 0x2a0
mov qword [rsp + 0x70], 0xfffffffffffffffe
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
mov rax, qword [0x140415a10]
xor rax, rsp
mov qword [rbp + 0x190], rax
lea rdi, [rcx + 8]
mov r8d, 1
lea rdx, [0x140345d54]
mov rcx, rdi
call fcn.1401ff2c0
test al, al
je 0x1400e08fc
xor al, al
jmp 0x1400e0a3e
mov edx, 0x104
lea rcx, [rbp - 0x80]
call qword [sym.imp.KERNEL32.dll_GetWindowsDirectoryW]
xor esi, esi
mov qword [rsp + 0x48], rsi
lea edx, [rsi + 0xc]
lea rcx, [rsp + 0x40]
call fcn.1401fcb40
mov eax, dword [rsp + 0x48]
inc eax
movsxd rdx, eax
lea r9d, [rsi + 0xc]
lea r8, [0x14034b998]
mov rcx, qword [rsp + 0x40]
call fcn.1402ba94c
lea edx, [rsi + 0xc]
lea rcx, [rsp + 0x40]
call fcn.1401fde50
nop
lea rax, [rbp - 0x80]
or rbx, 0xffffffffffffffff
inc rbx
cmp word [rax + rbx*2], 0
jne 0x1400e0953
mov qword [rsp + 0x38], rsi
test ebx, ebx
jne 0x1400e0974
lea rax, [0x140346ce0]
mov qword [rsp + 0x30], rax
jmp 0x1400e099a
mov edx, ebx
lea rcx, [rsp + 0x30]
call fcn.1401fcb40
movsxd r9, ebx
mov eax, dword [rsp + 0x38]
inc eax
movsxd rdx, eax
lea r8, [rbp - 0x80]
mov rcx, qword [rsp + 0x30]
call fcn.1402ba94c
mov edx, ebx
lea rcx, [rsp + 0x30]
call fcn.1401fde50
nop
lea r8, [rsp + 0x40]
lea rdx, [rsp + 0x30]
lea rcx, [rsp + 0x60]
call fcn.1400d2ba0
nop
cmp dword [rsp + 0x38], 0
jle 0x1400e09ce
mov rcx, qword [rsp + 0x30]
call fcn.1402b7350
nop
cmp dword [rsp + 0x48], 0
jle 0x1400e09df
mov rcx, qword [rsp + 0x40]
call fcn.1402b7350
mov r8, qword [rdi]
lea rdx, str._select___s_
lea rcx, [rsp + 0x50]
call fcn.1401fcfe0
mov dword [rsp + 0x28], 0xa
mov qword [rsp + 0x20], rsi
mov r9, qword [rsp + 0x50]
mov r8, qword [rsp + 0x60]
lea rdx, [0x14034b9b8]
xor ecx, ecx
call qword [sym.imp.SHELL32.dll_ShellExecuteW]
cmp dword [rsp + 0x58], 0
jle 0x1400e0a2b
mov rcx, qword [rsp + 0x50]
call fcn.1402b7350
nop
cmp dword [rsp + 0x68], 0
jle 0x1400e0a3c
mov rcx, qword [rsp + 0x60]
call fcn.1402b7350
mov al, 1
mov rcx, qword [rbp + 0x190]
xor rcx, rsp
call fcn.1402b6d40
lea r11, [rsp + 0x2a0]
mov rbx, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
mov rdi, qword [r11 + 0x28]
mov rsp, r11
pop rbp
ret