joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140022760
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov qword [rsp + 0x18], r8
mov dword [rsp + 0x10], edx
mov qword [rsp + 8], rcx
push rdi
sub rsp, 0xa0
lea rdi, [rsp + 0x20]
mov ecx, SafeArrayAllocDescriptor
mov eax, 0xcccccccc
rep stosd dword [rdi], eax
mov rcx, qword [rsp + 0xb0]
cmp dword [rsp + 0xb8], 0
jl 0x1400227b1
cmp dword [rsp + 0xb8], 4
jge 0x1400227b1
mov qword [rsp + 0x90], 1
jmp 0x1400227bd
mov qword [rsp + 0x90], 0
mov r9d, 0x244
lea r8, [0x1401b4a20]
lea rdx, str.enImageType___0__enImageType____NUM_VOL_RES_IMAGE_TYPES
mov rcx, qword [rsp + 0x90]
call fcn.14001ae00
cmp qword [rsp + 0xc0], 0
je 0x140022975
mov rax, qword [rsp + 0xb0]
mov rax, qword [rax]
mov rcx, qword [rsp + 0xb0]
call qword [rax]
mov qword [rsp + 0x20], rax
cmp dword [rsp + 0xb8], 0
je 0x14002281f
cmp dword [rsp + 0xb8], 3
jne 0x140022923
movzx eax, word [rsp + 0xc0]
mov r8d, 0xa
mov edx, eax
mov rcx, qword [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_FindResourceW]
mov qword [rsp + 0x28], rax
cmp qword [rsp + 0x28], 0
je 0x140022921
mov qword [rsp + 0x30], 0
mov rdx, qword [rsp + 0x28]
mov rcx, qword [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_LoadResource]
mov qword [rsp + 0x38], rax
cmp qword [rsp + 0x38], 0
je 0x1400228e1
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.KERNEL32.dll_LockResource]
mov qword [rsp + 0x40], rax
cmp qword [rsp + 0x40], 0
je 0x1400228d6
lea rcx, [rsp + 0x58]
call fcn.140023b60
nop
mov rdx, qword [rsp + 0x28]
mov rcx, qword [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_SizeofResource]
mov eax, eax
mov r8d, eax
mov rdx, qword [rsp + 0x40]
lea rcx, [rsp + 0x58]
call fcn.14001c510
test rax, rax
je 0x1400228cc
lea rcx, [rsp + 0x58]
call fcn.14001e740
mov qword [rsp + 0x30], rax
lea rcx, [rsp + 0x58]
call fcn.14001c2c0
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.KERNEL32.dll_FreeResource]
cmp qword [rsp + 0x30], 0
je 0x140022921
cmp dword [rsp + 0xb8], 3
jne 0x14002291a
mov rcx, qword [rsp + 0x30]
call fcn.140023620
mov qword [rsp + 0x88], rax
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.GDI32.dll_DeleteObject]
mov rax, qword [rsp + 0x88]
jmp 0x140022977
mov rax, qword [rsp + 0x30]
jmp 0x140022977
jmp 0x140022975
mov eax, dword [rsp + 0xb8]
mov dword [rsp + 0x98], eax
cmp dword [rsp + 0x98], 1
je 0x140022947
cmp dword [rsp + 0x98], 2
je 0x14002295e
jmp 0x140022975
movzx eax, word [rsp + 0xc0]
mov edx, eax
mov rcx, qword [rsp + 0x20]
call qword [sym.imp.USER32.dll_LoadCursorW]
jmp 0x140022977
movzx eax, word [rsp + 0xc0]
mov edx, eax
mov rcx, qword [rsp + 0x20]
call qword [sym.imp.USER32.dll_LoadIconW]
jmp 0x140022977
xor eax, eax
mov rdi, rax
mov rcx, rsp
lea rdx, [0x1401b7fa0]
call fcn.1400c02e0
mov rax, rdi
add rsp, 0xa0
pop rdi
ret
Function at 0x140022d60
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov qword [rsp + 0x20], r9
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rdi
sub rsp, 0x50
mov rcx, qword [rsp + 0x70]
call fcn.1400092d0
cmp qword [rsp + 0x68], 0
jne 0x140022d95
mov eax, 1
jmp 0x140022e56
mov qword [rsp + 0x20], 0
mov rax, qword [rsp + 0x60]
mov rax, qword [rax]
mov rcx, qword [rsp + 0x60]
call qword [rax]
mov qword [rsp + 0x28], rax
movzx eax, word [rsp + 0x68]
mov r8, qword [rsp + 0x78]
mov edx, eax
mov rcx, qword [rsp + 0x28]
call qword [sym.imp.KERNEL32.dll_FindResourceW]
mov qword [rsp + 0x30], rax
cmp qword [rsp + 0x30], 0
jne 0x140022dd8
jmp 0x140022e51
mov rdx, qword [rsp + 0x30]
mov rcx, qword [rsp + 0x28]
call qword [sym.imp.KERNEL32.dll_LoadResource]
mov qword [rsp + 0x38], rax
cmp qword [rsp + 0x38], 0
jne 0x140022df7
jmp 0x140022e51
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.KERNEL32.dll_LockResource]
mov qword [rsp + 0x40], rax
cmp qword [rsp + 0x40], 0
je 0x140022e3c
mov rdx, qword [rsp + 0x30]
mov rcx, qword [rsp + 0x28]
call qword [sym.imp.KERNEL32.dll_SizeofResource]
mov eax, eax
mov r8d, eax
mov rdx, qword [rsp + 0x40]
mov rcx, qword [rsp + 0x70]
call fcn.140024490
mov qword [rsp + 0x20], 1
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.KERNEL32.dll_FreeResource]
xor eax, eax
test eax, eax
jne 0x140022d9e
mov rax, qword [rsp + 0x20]
add rsp, 0x50
pop rdi
ret
Function at 0x140038630
Capabilities:
Get common file path

Disassembly:
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rdi
sub rsp, 0x30
cmp qword [rsp + 0x48], 0
jle 0x140038652
mov qword [rsp + 0x20], 1
jmp 0x14003865b
mov qword [rsp + 0x20], 0
mov r9d, 0x9a3
lea r8, [0x1401c5020]
lea rdx, str.npBufLength___0
mov rcx, qword [rsp + 0x20]
call fcn.14001ae00
mov rax, qword [rsp + 0x48]
shl rax, 1
mov r8d, 1
mov rdx, rax
mov rcx, qword [rsp + 0x40]
call fcn.140032560
mov r9d, 0x9a4
lea r8, [0x1401c5090]
lea rdx, str.IsValidAddress___psBuf____npBufLength__sizeof__TCHAR____TRUE_
mov rcx, rax
call fcn.14001ae00
mov rdx, qword [rsp + 0x40]
mov ecx, dword [rsp + 0x48]
call qword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
test eax, eax
jbe 0x1400386ce
mov qword [rsp + 0x28], 1
jmp 0x1400386d7
mov qword [rsp + 0x28], 0
mov rax, qword [rsp + 0x28]
add rsp, 0x30
pop rdi
ret

Function at 0x1400386f0
Capabilities:
Set current directory

Disassembly:
mov qword [rsp + 8], rcx
push rdi
sub rsp, 0x20
mov rcx, qword [rsp + 0x30]
call fcn.140009600
mov r9d, 0x9b6
lea r8, [0x1401c5130]
lea rdx, str.IsValidString__szNewDir_
mov rcx, rax
call fcn.14001ae00
mov rcx, qword [rsp + 0x30]
call fcn.14001b050
test rax, rax
je 0x140038733
xor eax, eax
jmp 0x140038740
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_SetCurrentDirectoryW]
cdqe
add rsp, 0x20
pop rdi
ret

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

Disassembly:
mov qword [rsp + 8], rcx
push rdi
sub rsp, 0xb0
lea rdi, [rsp + 0x20]
mov ecx, 0x24
mov eax, 0xcccccccc
rep stosd dword [rdi], eax
mov rcx, qword [rsp + 0xc0]
mov rcx, qword [rsp + 0xc0]
call fcn.140009600
mov r9d, 0x71a
lea r8, [0x1401c3aa0]
lea rdx, [0x1401c3b00]
mov rcx, rax
call fcn.14001ae00
mov rcx, qword [rsp + 0xc0]
call fcn.14001b050
test rax, rax
je 0x140038cf5
xor eax, eax
jmp 0x140038d5c
lea rcx, [rsp + 0x30]
call fcn.140004cd0
nop
lea rdx, [rsp + 0x30]
mov rcx, qword [rsp + 0xc0]
call fcn.140038d80
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x140038d2e
mov qword [rsp + 0xa0], 1
jmp 0x140038d3a
mov qword [rsp + 0xa0], 0
mov rax, qword [rsp + 0xa0]
mov qword [rsp + 0x98], rax
lea rcx, [rsp + 0x30]
call fcn.140004db0
mov rax, qword [rsp + 0x98]
mov rdi, rax
mov rcx, rsp
lea rdx, [0x1401ca698]
call fcn.1400c02e0
mov rax, rdi
add rsp, 0xb0
pop rdi
ret
Function at 0x140039320
Capabilities:
Copy file

Disassembly:
mov dword [rsp + 0x18], r8d
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rdi
sub rsp, 0x30
mov rcx, qword [rsp + 0x40]
call fcn.14001b050
test rax, rax
jne 0x140039352
mov rcx, qword [rsp + 0x48]
call fcn.14001b050
test rax, rax
je 0x140039359
xor eax, eax
jmp 0x140039450
mov eax, dword [rsp + 0x50]
mov dword [rsp + 0x24], eax
cmp dword [rsp + 0x24], 1
je 0x140039378
cmp dword [rsp + 0x24], 2
je 0x14003939b
cmp dword [rsp + 0x24], 3
je 0x140039391
jmp 0x1400393b9
mov rcx, qword [rsp + 0x48]
call fcn.140038c90
test rax, rax
je 0x140039391
mov eax, 1
jmp 0x140039450
mov dword [rsp + 0x20], 1
jmp 0x140039401
mov rdx, qword [rsp + 0x48]
mov rcx, qword [rsp + 0x40]
call fcn.140039220
test rax, rax
je 0x1400393b9
mov eax, 1
jmp 0x140039450
cmp dword [rsp + 0x50], 0
je 0x1400393d2
cmp dword [rsp + 0x50], 2
je 0x1400393d2
mov qword [rsp + 0x28], 0
jmp 0x1400393db
mov qword [rsp + 0x28], 1
mov r9d, 0x6d9
lea r8, [0x1401c3870]
lea rdx, str.enOverrideMode__FCOM_OVERRIDE__enOverrideMode__FCOM_FAST
mov rcx, qword [rsp + 0x28]
call fcn.14001ae00
mov dword [rsp + 0x20], 0
mov rdx, qword [rsp + 0x48]
mov rcx, qword [rsp + 0x40]
call fcn.140127730
test eax, eax
jne 0x140039439
mov rcx, qword [rsp + 0x40]
call fcn.140038c90
test rax, rax
jne 0x140039432
mov ecx, 2
call qword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
jmp 0x140039450
mov eax, 1
jmp 0x140039450
mov r8d, dword [rsp + 0x20]
mov rdx, qword [rsp + 0x48]
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.KERNEL32.dll_CopyFileW]
cdqe
add rsp, 0x30
pop rdi
ret
Function at 0x14003a4a0
Capabilities:
Create process on windows

Disassembly:
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rdi
sub rsp, 0x170
lea rdi, [rsp + 0x50]
mov ecx, 0x48
mov eax, 0xcccccccc
rep stosd dword [rdi], eax
mov rcx, qword [rsp + 0x180]
mov rcx, qword [rsp + 0x180]
call fcn.140009600
mov r9d, 0x87a
lea r8, [0x1401c4800]
lea rdx, str.IsValidString__szCommandLine_
mov rcx, rax
call fcn.14001ae00
mov rcx, qword [rsp + 0x180]
call fcn.14001b050
test rax, rax
je 0x14003a512
xor eax, eax
jmp 0x14003a669
mov r8d, 0x68
xor edx, edx
lea rcx, [rsp + 0x60]
call fcn.1400c31b0
mov dword [rsp + 0x60], 0x68
cmp qword [rsp + 0x190], 0
jl 0x14003a558
mov eax, dword [rsp + 0x9c]
or eax, 1
mov dword [rsp + 0x9c], eax
movzx eax, word [rsp + 0x190]
mov word [rsp + 0xa0], ax
lea rcx, [rsp + 0x118]
call fcn.140044d80
nop
mov rdx, qword [rsp + 0x180]
lea rcx, [rsp + 0x118]
call fcn.140046690
lea rcx, [rsp + 0x118]
call fcn.1400093a0
lea rcx, [rsp + 0xe8]
mov qword [rsp + 0x48], rcx
lea rcx, [rsp + 0x60]
mov qword [rsp + 0x40], rcx
mov qword [rsp + 0x38], 0
mov qword [rsp + 0x30], 0
mov dword [rsp + 0x28], 0
mov dword [rsp + 0x20], 0
xor r9d, r9d
xor r8d, r8d
mov rdx, rax
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
jne 0x14003a5f9
mov qword [rsp + 0x158], 0
lea rcx, [rsp + 0x118]
call fcn.140004d30
mov rax, qword [rsp + 0x158]
jmp 0x14003a669
cmp qword [rsp + 0x188], 0
je 0x14003a619
mov edx, 0xffffffff
mov rcx, qword [rsp + 0xe8]
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
jmp 0x14003a62c
mov edx, 0x1f4
mov rcx, qword [rsp + 0xe8]
call qword [sym.imp.USER32.dll_WaitForInputIdle]
mov rcx, qword [rsp + 0xf0]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rsp + 0xe8]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov qword [rsp + 0x160], 1
lea rcx, [rsp + 0x118]
call fcn.140004d30
mov rax, qword [rsp + 0x160]
mov rdi, rax
mov rcx, rsp
lea rdx, [0x1401cac80]
call fcn.1400c02e0
mov rax, rdi
add rsp, 0x170
pop rdi
ret
Function at 0x14003a950
Capabilities:
Create process on windows

Disassembly:
mov qword [rsp + 8], rcx
push rdi
sub rsp, 0x170
mov rcx, qword [rsp + 0x180]
call fcn.140009600
mov r9d, 0x8ae
lea r8, [0x1401c49a0]
lea rdx, [0x1401c4a00]
mov rcx, rax
call fcn.14001ae00
mov rdx, qword [rsp + 0x180]
lea rcx, [rsp + 0x30]
call fcn.140008cf0
mov qword [rsp + 0x138], rax
mov rax, qword [rsp + 0x138]
mov qword [rsp + 0x140], rax
mov r8, qword [rsp + 0x140]
lea rdx, str.__select___
lea rcx, [rsp + 0x88]
call fcn.140059100
mov qword [rsp + 0x148], rax
mov rax, qword [rsp + 0x148]
mov qword [rsp + 0x150], rax
lea r8, [0x1401c1844]
mov rdx, qword [rsp + 0x150]
lea rcx, [rsp + 0xe0]
call fcn.140058fc0
mov qword [rsp + 0x158], rax
mov rax, qword [rsp + 0x158]
mov qword [rsp + 0x160], rax
mov rcx, qword [rsp + 0x160]
call fcn.140052c70
mov dword [rsp + 0x28], 1
mov qword [rsp + 0x20], 0
mov r9, rax
lea r8, str.explorer.exe
lea rdx, [0x1401c4a40]
xor ecx, ecx
call qword [sym.imp.SHELL32.dll_ShellExecuteW]
nop
lea rcx, [rsp + 0xe0]
call fcn.140004db0
nop
lea rcx, [rsp + 0x88]
call fcn.140004db0
nop
lea rcx, [rsp + 0x30]
call fcn.140004db0
add rsp, 0x170
pop rdi
ret

Function at 0x14003ae90
Capabilities:
Get system information on windows

Disassembly:
push rdi
sub rsp, 0x70
lea rdi, [rsp + 0x20]
mov ecx, reloc.OLEAUT32.dll_SafeArrayLock
mov eax, 0xcccccccc
rep stosd dword [rdi], eax
lea rcx, [rsp + 0x28]
call qword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov eax, dword [rsp + 0x48]
mov edi, eax
mov rcx, rsp
lea rdx, [0x1401caf00]
call fcn.1400c02e0
mov eax, edi
add rsp, 0x70
pop rdi
ret
Function at 0x14003c480
Capabilities:
Query or enumerate registry value

Disassembly:
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rdi
sub rsp, 0x90
lea rdi, [rsp + 0x30]
mov ecx, reloc.OLEAUT32.dll_SafeArrayGetElement
mov eax, 0xcccccccc
rep stosd dword [rdi], eax
mov rcx, qword [rsp + 0xa0]
mov rcx, qword [rsp + 0xa0]
call fcn.140009600
mov r9d, 0xa1e
lea r8, [0x1401c54d0]
lea rdx, [0x1401c5530]
mov rcx, rax
call fcn.14001ae00
mov rcx, qword [rsp + 0xa8]
call fcn.140009600
mov r9d, 0xa1f
lea r8, [0x1401c5550]
lea rdx, [0x1401c54b8]
mov rcx, rax
call fcn.14001ae00
mov edx, 1
mov rcx, qword [rsp + 0xb0]
call fcn.1400427c0
mov r9d, 0xa20
lea r8, [0x1401c55b0]
lea rdx, [0x1401c5610]
mov rcx, rax
call fcn.14001ae00
mov rcx, qword [rsp + 0xa0]
call fcn.14001b050
test rax, rax
jne 0x14003c55f
mov rcx, qword [rsp + 0xa8]
call fcn.14001b050
test rax, rax
jne 0x14003c55f
mov qword [rsp + 0x78], 1
jmp 0x14003c568
mov qword [rsp + 0x78], 0
mov r9d, 0xa21
lea r8, [0x1401c5650]
lea rdx, [0x1401c56b0]
mov rcx, qword [rsp + 0x78]
call fcn.14001ae00
mov rcx, qword [rsp + 0xb0]
call fcn.1400092d0
mov rcx, qword [rsp + 0xa0]
call fcn.140041aa0
mov qword [rsp + 0x30], rax
cmp qword [rsp + 0x30], 0
jne 0x14003c5b4
xor eax, eax
jmp 0x14003c6a8
lea rax, [rsp + 0x64]
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], 0
lea r9, [rsp + 0x44]
xor r8d, r8d
mov rdx, qword [rsp + 0xa8]
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov dword [rsp + 0x74], eax
cmp dword [rsp + 0x74], 0
jne 0x14003c674
cmp dword [rsp + 0x44], 3
jne 0x14003c606
mov qword [rsp + 0x80], 1
jmp 0x14003c612
mov qword [rsp + 0x80], 0
mov r9d, 0xa2d
lea r8, [0x1401c5730]
lea rdx, str.dwType__REG_BINARY
mov rcx, qword [rsp + 0x80]
call fcn.14001ae00
mov eax, dword [rsp + 0x64]
mov edx, eax
mov rcx, qword [rsp + 0xb0]
call fcn.140045420
lea rcx, [rsp + 0x64]
mov qword [rsp + 0x28], rcx
mov qword [rsp + 0x20], rax
lea r9, [rsp + 0x44]
xor r8d, r8d
mov rdx, qword [rsp + 0xa8]
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov dword [rsp + 0x74], eax
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [rsp + 0x74], 0
jne 0x14003c694
mov qword [rsp + 0x88], 1
jmp 0x14003c6a0
mov qword [rsp + 0x88], 0
mov rax, qword [rsp + 0x88]
mov rdi, rax
mov rcx, rsp
lea rdx, reloc.OLEAUT32.dll_SysReAllocString
call fcn.1400c02e0
mov rax, rdi
add rsp, 0x90
pop rdi
ret
Function at 0x14003dd70
Capabilities:
Print debug messages

Disassembly:
push rdi
sub rsp, 0x1a0
lea rdi, [rsp + 0x40]
mov ecx, 0x58
mov eax, 0xcccccccc
rep stosd dword [rdi], eax
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rsp + 0x40], eax
mov qword [rsp + 0x30], 0
mov dword [rsp + 0x28], 0
lea rax, [rsp + 0x58]
mov qword [rsp + 0x20], rax
mov r9d, 0x400
mov r8d, dword [rsp + 0x40]
xor edx, edx
mov ecx, 0x1300
call qword [sym.imp.KERNEL32.dll_FormatMessageW]
lea rcx, [rsp + 0x68]
call fcn.140004cd0
mov qword [rsp + 0x170], rax
mov rax, qword [rsp + 0x170]
mov qword [rsp + 0x178], rax
mov r9, qword [rsp + 0x58]
mov r8d, dword [rsp + 0x40]
lea rdx, str.LastError__u_:__s
mov rcx, qword [rsp + 0x178]
call fcn.140057070
mov r8, rax
lea rdx, [0x1401c1e24]
lea rcx, [rsp + 0xc0]
call fcn.140059100
mov qword [rsp + 0x180], rax
mov rax, qword [rsp + 0x180]
mov qword [rsp + 0x188], rax
lea r8, [0x1401c1b3c]
mov rdx, qword [rsp + 0x188]
lea rcx, [rsp + 0x118]
call fcn.140058fc0
mov qword [rsp + 0x190], rax
mov rax, qword [rsp + 0x190]
mov qword [rsp + 0x198], rax
mov rcx, qword [rsp + 0x198]
call fcn.140052c70
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_OutputDebugStringW]
nop
lea rcx, [rsp + 0x118]
call fcn.140004db0
nop
lea rcx, [rsp + 0xc0]
call fcn.140004db0
nop
lea rcx, [rsp + 0x68]
call fcn.140004db0
mov rcx, qword [rsp + 0x58]
call qword [sym.imp.KERNEL32.dll_LocalFree]
mov rcx, rsp
lea rdx, [0x1401cba00]
call fcn.1400c02e0
add rsp, 0x1a0
pop rdi
ret

Function at 0x14003fa00
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 8], rcx
push rdi
sub rsp, 0xe0
lea rdi, [rsp + 0x20]
mov ecx, 0x30
mov eax, 0xcccccccc
rep stosd dword [rdi], eax
mov rcx, qword [rsp + 0xf0]
mov rax, qword [0x1402558e8]
xor rax, rsp
mov qword [rsp + 0xd0], rax
mov qword [rsp + 0x20], 0
lea rdx, [0x1401c2904]
mov rcx, qword [rsp + 0xf0]
call fcn.140132d50
mov qword [rsp + 0x28], rax
cmp qword [rsp + 0x28], 0
je 0x14003fb05
mov r9, qword [rsp + 0x28]
mov r8d, 0x40
mov edx, 1
lea rcx, [rsp + 0x40]
call fcn.140133cd0
cmp rax, 0x40
jne 0x14003fafb
xor r8d, r8d
mov edx, dword [rsp + 0x7c]
mov rcx, qword [rsp + 0x28]
call fcn.1401348f0
test eax, eax
jne 0x14003fafb
mov r9, qword [rsp + 0x28]
mov r8d, 4
mov edx, 1
lea rcx, [rsp + 0x94]
call fcn.140133cd0
cmp rax, 4
jne 0x14003fafb
cmp dword [rsp + 0x94], 0x4550
jne 0x14003fafb
mov r9, qword [rsp + 0x28]
mov r8d, 2
mov edx, 1
lea rcx, [rsp + 0xb4]
call fcn.140133cd0
cmp rax, 2
jne 0x14003fafb
movzx eax, word [rsp + 0xb4]
mov qword [rsp + 0x20], rax
mov rcx, qword [rsp + 0x28]
call fcn.1401331d0
mov rax, qword [rsp + 0x20]
mov rdi, rax
mov rcx, rsp
lea rdx, [0x1401cbee0]
call fcn.1400c02e0
mov rax, rdi
mov rcx, qword [rsp + 0xd0]
xor rcx, rsp
call fcn.1400c05d0
add rsp, 0xe0
pop rdi
ret
Function at 0x140041680
Capabilities:
Set registry value

Disassembly:
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rdi
sub rsp, 0x160
lea rdi, [rsp + 0x50]
mov ecx, 0x44
mov eax, 0xcccccccc
rep stosd dword [rdi], eax
mov rcx, qword [rsp + 0x170]
mov rcx, qword [rsp + 0x170]
call fcn.140009600
mov r9d, 0x784
lea r8, [0x1401c4020]
lea rdx, str.IsValidString__szKeyName_
mov rcx, rax
call fcn.14001ae00
mov rcx, qword [rsp + 0x178]
call fcn.140009600
mov r9d, 0x785
lea r8, [0x1401c40a0]
lea rdx, str.IsValidString__szKeyValue_
mov rcx, rax
call fcn.14001ae00
mov rcx, qword [rsp + 0x170]
call fcn.14001b050
test rax, rax
jne 0x14004172f
mov rcx, qword [rsp + 0x178]
call fcn.14001b050
test rax, rax
jne 0x14004172f
mov qword [rsp + 0x128], 1
jmp 0x14004173b
mov qword [rsp + 0x128], 0
mov r9d, 0x787
lea r8, [0x1401c4120]
lea rdx, str.IsEmptyStr__szKeyName___FALSE__IsEmptyStr__szKeyValue___FALSE
mov rcx, qword [rsp + 0x128]
call fcn.14001ae00
mov rcx, qword [rsp + 0x178]
call fcn.1400e24f0
lea rax, [rax + rax + 2]
mov qword [rsp + 0x50], rax
mov qword [rsp + 0x40], 0
lea rax, [rsp + 0x68]
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x30], 0
mov dword [rsp + 0x28], 0x20006
mov dword [rsp + 0x20], 0
xor r9d, r9d
xor r8d, r8d
mov rdx, qword [rsp + 0x170]
mov rcx, 0xffffffff80000000
call qword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
jne 0x1400417f9
mov eax, dword [rsp + 0x50]
mov dword [rsp + 0x28], eax
mov rax, qword [rsp + 0x178]
mov qword [rsp + 0x20], rax
mov r9d, 1
xor r8d, r8d
lea rdx, [0x1401c1614]
mov rcx, qword [rsp + 0x68]
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov rcx, qword [rsp + 0x68]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea rdx, str.SoftwareClasses_
lea rcx, [rsp + 0x78]
call fcn.140008cf0
mov qword [rsp + 0x130], rax
mov rax, qword [rsp + 0x130]
mov qword [rsp + 0x138], rax
mov r8, qword [rsp + 0x170]
mov rdx, qword [rsp + 0x138]
lea rcx, [rsp + 0xd0]
call fcn.140058fc0
mov qword [rsp + 0x140], rax
mov rax, qword [rsp + 0x140]
mov qword [rsp + 0x148], rax
mov rcx, qword [rsp + 0x148]
call fcn.140052c70
mov qword [rsp + 0x40], 0
lea rcx, [rsp + 0x68]
mov qword [rsp + 0x38], rcx
mov qword [rsp + 0x30], 0
mov dword [rsp + 0x28], 0x20006
mov dword [rsp + 0x20], 0
xor r9d, r9d
xor r8d, r8d
mov rdx, rax
mov rcx, 0xffffffff80000001
call qword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
jne 0x1400418b7
mov dword [rsp + 0x150], 1
jmp 0x1400418c2
mov dword [rsp + 0x150], 0
movzx eax, byte [rsp + 0x150]
mov byte [rsp + 0x74], al
lea rcx, [rsp + 0xd0]
call fcn.140004db0
nop
lea rcx, [rsp + 0x78]
call fcn.140004db0
movzx eax, byte [rsp + 0x74]
test eax, eax
je 0x14004192a
mov eax, dword [rsp + 0x50]
mov dword [rsp + 0x28], eax
mov rax, qword [rsp + 0x178]
mov qword [rsp + 0x20], rax
mov r9d, 1
xor r8d, r8d
lea rdx, [0x1401c168c]
mov rcx, qword [rsp + 0x68]
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov rcx, qword [rsp + 0x68]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rcx, rsp
lea rdx, [0x1401cc4a8]
call fcn.1400c02e0
add rsp, 0x160
pop rdi
ret
Function at 0x140041950
Capabilities:
Query or enumerate registry value

Disassembly:
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rdi
sub rsp, 0x80
lea rdi, [rsp + 0x30]
mov ecx, reloc.OLEAUT32.dll_SafeArrayLock
mov eax, 0xcccccccc
rep stosd dword [rdi], eax
mov rcx, qword [rsp + 0x90]
mov rcx, qword [rsp + 0x98]
call fcn.140009600
mov r9d, 0x89c
lea r8, [0x1401c4880]
lea rdx, str.IsValidString__szSubKey_
mov rcx, rax
call fcn.14001ae00
mov r8d, 1
mov edx, 0x208
mov rcx, qword [rsp + 0xa0]
call fcn.140032560
mov r9d, 0x89d
lea r8, [0x1401c4900]
lea rdx, str.IsValidAddress___psRetData____260__sizeof__TCHAR____TRUE_
mov rcx, rax
call fcn.14001ae00
xor eax, eax
mov rcx, qword [rsp + 0xa0]
mov word [rcx], ax
lea rax, [rsp + 0x38]
mov qword [rsp + 0x20], rax
mov r9d, 1
xor r8d, r8d
mov rdx, qword [rsp + 0x98]
mov rcx, qword [rsp + 0x90]
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
je 0x140041a1b
xor eax, eax
jmp 0x140041a6f
mov dword [rsp + 0x54], 0x208
lea r9, [rsp + 0x54]
mov r8, qword [rsp + 0xa0]
xor edx, edx
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.ADVAPI32.dll_RegQueryValueW]
test eax, eax
jne 0x140041a4c
mov qword [rsp + 0x70], 1
jmp 0x140041a55
mov qword [rsp + 0x70], 0
mov rax, qword [rsp + 0x70]
mov qword [rsp + 0x68], rax
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rax, qword [rsp + 0x68]
mov rdi, rax
mov rcx, rsp
lea rdx, reloc.OLEAUT32.dll_SysReAllocString
call fcn.1400c02e0
mov rax, rdi
add rsp, 0x80
pop rdi
ret
Function at 0x140043f30
Capabilities:
Log keystrokes via polling

Disassembly:
mov qword [rsp + 8], rcx
push rdi
sub rsp, 0x30
mov rcx, qword [rsp + 0x40]
call fcn.140043fe0
mov qword [rsp + 0x20], rax
cmp qword [rsp + 0x20], 0
je 0x140043fc6
cmp qword [rsp + 0x20], 0x11
je 0x140043f78
mov ecx, reloc.OLEAUT32.dll_SafeArrayGetElemsize
call qword [sym.imp.USER32.dll_GetKeyState]
cwde
test eax, eax
jge 0x140043f78
mov rax, qword [rsp + 0x20]
bts rax, 0xd
mov qword [rsp + 0x20], rax
cmp qword [rsp + 0x20], 0x10
je 0x140043f9f
mov ecx, SafeArrayLock
call qword [sym.imp.USER32.dll_GetKeyState]
cwde
test eax, eax
jge 0x140043f9f
mov rax, qword [rsp + 0x20]
bts rax, 0xf
mov qword [rsp + 0x20], rax
cmp qword [rsp + 0x20], 0x12
je 0x140043fc6
mov ecx, reloc.OLEAUT32.dll_SafeArrayGetUBound
call qword [sym.imp.USER32.dll_GetKeyState]
cwde
test eax, eax
jge 0x140043fc6
mov rax, qword [rsp + 0x20]
bts rax, 0xe
mov qword [rsp + 0x20], rax
mov rax, qword [rsp + 0x20]
add rsp, 0x30
pop rdi
ret

Function at 0x140047a50
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rdi
sub rsp, 0x40
cmp qword [rsp + 0x60], 0xffffffffffffffff
jl 0x140047a77
mov qword [rsp + 0x38], 1
jmp 0x140047a80
mov qword [rsp + 0x38], 0
mov r9d, 0x1fe
lea r8, [0x1401d37e0]
lea rdx, str.npReadDataSize____1
mov rcx, qword [rsp + 0x38]
call fcn.14001ae00
mov rcx, qword [rsp + 0x58]
call fcn.140009600
mov r9d, 0x1ff
lea r8, [0x1401d3850]
lea rdx, [0x1401d2f58]
mov rcx, rax
call fcn.14001ae00
mov rcx, qword [rsp + 0x58]
call fcn.14001b050
test rax, rax
je 0x140047adf
mov rax, 0xffffffffffffffff
jmp 0x140047bc9
mov qword [rsp + 0x20], 0xffffffffffffffff
lea rdx, [0x1401d2274]
mov rcx, qword [rsp + 0x58]
call fcn.140132d50
mov qword [rsp + 0x28], rax
cmp qword [rsp + 0x28], 0
je 0x140047bba
cmp qword [rsp + 0x60], 0xffffffffffffffff
jne 0x140047b44
mov r8d, 2
xor edx, edx
mov rcx, qword [rsp + 0x28]
call fcn.1401348f0
mov rcx, qword [rsp + 0x28]
call fcn.140138f00
cdqe
mov qword [rsp + 0x60], rax
xor r8d, r8d
xor edx, edx
mov rcx, qword [rsp + 0x28]
call fcn.1401348f0
cmp qword [rsp + 0x60], 0
jle 0x140047ba7
mov rdx, qword [rsp + 0x60]
mov rcx, qword [rsp + 0x50]
call fcn.140045420
mov r9, qword [rsp + 0x28]
mov r8, qword [rsp + 0x60]
mov edx, 1
mov rcx, rax
call fcn.140133cd0
mov qword [rsp + 0x30], rax
mov rcx, qword [rsp + 0x28]
call fcn.140137dd0
test eax, eax
jne 0x140047ba5
mov rdx, qword [rsp + 0x30]
mov rcx, qword [rsp + 0x50]
call fcn.140045590
mov rcx, qword [rsp + 0x28]
call fcn.1401331d0
mov rax, qword [rsp + 0x30]
jmp 0x140047bc9
jmp 0x140047bb0
mov qword [rsp + 0x20], 0
mov rcx, qword [rsp + 0x28]
call fcn.1401331d0
mov rcx, qword [rsp + 0x50]
call fcn.140045770
mov rax, qword [rsp + 0x20]
add rsp, 0x40
pop rdi
ret