joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140022310
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.140008c90
cmp qword [rsp + 0x68], 0
jne 0x140022345
mov eax, 1
jmp 0x140022406
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 0x140022388
jmp 0x140022401
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 0x1400223a7
jmp 0x140022401
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.KERNEL32.dll_LockResource]
mov qword [rsp + 0x40], rax
cmp qword [rsp + 0x40], 0
je 0x1400223ec
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.140023a40
mov qword [rsp + 0x20], 1
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.KERNEL32.dll_FreeResource]
xor eax, eax
test eax, eax
jne 0x14002234e
mov rax, qword [rsp + 0x20]
add rsp, 0x50
pop rdi
ret
Function at 0x140037be0
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 0x140037c02
mov qword [rsp + 0x20], 1
jmp 0x140037c0b
mov qword [rsp + 0x20], 0
mov r9d, 0x9a3
lea r8, [0x1401c4870]
lea rdx, str.npBufLength___0
mov rcx, qword [rsp + 0x20]
call fcn.14001a3b0
mov rax, qword [rsp + 0x48]
shl rax, 1
mov r8d, 1
mov rdx, rax
mov rcx, qword [rsp + 0x40]
call fcn.140031b10
mov r9d, 0x9a4
lea r8, [0x1401c48e0]
lea rdx, str.IsValidAddress___psBuf____npBufLength__sizeof__TCHAR____TRUE_
mov rcx, rax
call fcn.14001a3b0
mov rdx, qword [rsp + 0x40]
mov ecx, dword [rsp + 0x48]
call qword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
test eax, eax
jbe 0x140037c7e
mov qword [rsp + 0x28], 1
jmp 0x140037c87
mov qword [rsp + 0x28], 0
mov rax, qword [rsp + 0x28]
add rsp, 0x30
pop rdi
ret

Function at 0x140037ca0
Capabilities:
Set current directory

Disassembly:
mov qword [rsp + 8], rcx
push rdi
sub rsp, 0x20
mov rcx, qword [rsp + 0x30]
call fcn.140008ec0
mov r9d, 0x9b6
lea r8, [0x1401c4980]
lea rdx, str.IsValidString__szNewDir_
mov rcx, rax
call fcn.14001a3b0
mov rcx, qword [rsp + 0x30]
call fcn.14001a600
test rax, rax
je 0x140037ce3
xor eax, eax
jmp 0x140037cf0
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_SetCurrentDirectoryW]
cdqe
add rsp, 0x20
pop rdi
ret

Function at 0x140038240
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.140008ec0
mov r9d, 0x71a
lea r8, [0x1401c32f0]
lea rdx, [0x1401c3350]
mov rcx, rax
call fcn.14001a3b0
mov rcx, qword [rsp + 0xc0]
call fcn.14001a600
test rax, rax
je 0x1400382a5
xor eax, eax
jmp 0x14003830c
lea rcx, [rsp + 0x30]
call fcn.140004cd0
nop
lea rdx, [rsp + 0x30]
mov rcx, qword [rsp + 0xc0]
call fcn.140038330
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x1400382de
mov qword [rsp + 0xa0], 1
jmp 0x1400382ea
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, [0x1401c9ee8]
call fcn.1400bf880
mov rax, rdi
add rsp, 0xb0
pop rdi
ret
Function at 0x1400388d0
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.14001a600
test rax, rax
jne 0x140038902
mov rcx, qword [rsp + 0x48]
call fcn.14001a600
test rax, rax
je 0x140038909
xor eax, eax
jmp 0x140038a00
mov eax, dword [rsp + 0x50]
mov dword [rsp + 0x24], eax
cmp dword [rsp + 0x24], 1
je 0x140038928
cmp dword [rsp + 0x24], 2
je 0x14003894b
cmp dword [rsp + 0x24], 3
je 0x140038941
jmp 0x140038969
mov rcx, qword [rsp + 0x48]
call fcn.140038240
test rax, rax
je 0x140038941
mov eax, 1
jmp 0x140038a00
mov dword [rsp + 0x20], 1
jmp 0x1400389b1
mov rdx, qword [rsp + 0x48]
mov rcx, qword [rsp + 0x40]
call fcn.1400387d0
test rax, rax
je 0x140038969
mov eax, 1
jmp 0x140038a00
cmp dword [rsp + 0x50], 0
je 0x140038982
cmp dword [rsp + 0x50], 2
je 0x140038982
mov qword [rsp + 0x28], 0
jmp 0x14003898b
mov qword [rsp + 0x28], 1
mov r9d, 0x6d9
lea r8, [0x1401c30c0]
lea rdx, str.enOverrideMode__FCOM_OVERRIDE__enOverrideMode__FCOM_FAST
mov rcx, qword [rsp + 0x28]
call fcn.14001a3b0
mov dword [rsp + 0x20], 0
mov rdx, qword [rsp + 0x48]
mov rcx, qword [rsp + 0x40]
call fcn.140126cd0
test eax, eax
jne 0x1400389e9
mov rcx, qword [rsp + 0x40]
call fcn.140038240
test rax, rax
jne 0x1400389e2
mov ecx, 2
call qword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
jmp 0x140038a00
mov eax, 1
jmp 0x140038a00
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 0x140039a50
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.140008ec0
mov r9d, 0x87a
lea r8, [0x1401c4050]
lea rdx, str.IsValidString__szCommandLine_
mov rcx, rax
call fcn.14001a3b0
mov rcx, qword [rsp + 0x180]
call fcn.14001a600
test rax, rax
je 0x140039ac2
xor eax, eax
jmp 0x140039c19
mov r8d, 0x68
xor edx, edx
lea rcx, [rsp + 0x60]
call fcn.1400c2750
mov dword [rsp + 0x60], 0x68
cmp qword [rsp + 0x190], 0
jl 0x140039b08
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.140044330
nop
mov rdx, qword [rsp + 0x180]
lea rcx, [rsp + 0x118]
call fcn.140045c40
lea rcx, [rsp + 0x118]
call fcn.140008cb0
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 0x140039ba9
mov qword [rsp + 0x158], 0
lea rcx, [rsp + 0x118]
call fcn.140004d30
mov rax, qword [rsp + 0x158]
jmp 0x140039c19
cmp qword [rsp + 0x188], 0
je 0x140039bc9
mov edx, 0xffffffff
mov rcx, qword [rsp + 0xe8]
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
jmp 0x140039bdc
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, [0x1401ca4d0]
call fcn.1400bf880
mov rax, rdi
add rsp, 0x170
pop rdi
ret
Function at 0x140039f00
Capabilities:
Create process on windows

Disassembly:
mov qword [rsp + 8], rcx
push rdi
sub rsp, 0x170
mov rcx, qword [rsp + 0x180]
call fcn.140008ec0
mov r9d, 0x8ae
lea r8, [0x1401c41f0]
lea rdx, [0x1401c4250]
mov rcx, rax
call fcn.14001a3b0
mov rdx, qword [rsp + 0x180]
lea rcx, [rsp + 0x30]
call fcn.1400086b0
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.1400586b0
mov qword [rsp + 0x148], rax
mov rax, qword [rsp + 0x148]
mov qword [rsp + 0x150], rax
lea r8, [0x1401c1094]
mov rdx, qword [rsp + 0x150]
lea rcx, [rsp + 0xe0]
call fcn.140058570
mov qword [rsp + 0x158], rax
mov rax, qword [rsp + 0x158]
mov qword [rsp + 0x160], rax
mov rcx, qword [rsp + 0x160]
call fcn.140052220
mov dword [rsp + 0x28], 1
mov qword [rsp + 0x20], 0
mov r9, rax
lea r8, str.explorer.exe
lea rdx, [0x1401c4290]
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 0x14003a440
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, [0x1401ca750]
call fcn.1400bf880
mov eax, edi
add rsp, 0x70
pop rdi
ret
Function at 0x14003ba30
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.140008ec0
mov r9d, 0xa1e
lea r8, [0x1401c4d20]
lea rdx, [0x1401c4d80]
mov rcx, rax
call fcn.14001a3b0
mov rcx, qword [rsp + 0xa8]
call fcn.140008ec0
mov r9d, 0xa1f
lea r8, [0x1401c4da0]
lea rdx, [0x1401c4d08]
mov rcx, rax
call fcn.14001a3b0
mov edx, 1
mov rcx, qword [rsp + 0xb0]
call fcn.140041d70
mov r9d, 0xa20
lea r8, [0x1401c4e00]
lea rdx, [0x1401c4e60]
mov rcx, rax
call fcn.14001a3b0
mov rcx, qword [rsp + 0xa0]
call fcn.14001a600
test rax, rax
jne 0x14003bb0f
mov rcx, qword [rsp + 0xa8]
call fcn.14001a600
test rax, rax
jne 0x14003bb0f
mov qword [rsp + 0x78], 1
jmp 0x14003bb18
mov qword [rsp + 0x78], 0
mov r9d, 0xa21
lea r8, [0x1401c4ea0]
lea rdx, [0x1401c4f00]
mov rcx, qword [rsp + 0x78]
call fcn.14001a3b0
mov rcx, qword [rsp + 0xb0]
call fcn.140008c90
mov rcx, qword [rsp + 0xa0]
call fcn.140041050
mov qword [rsp + 0x30], rax
cmp qword [rsp + 0x30], 0
jne 0x14003bb64
xor eax, eax
jmp 0x14003bc58
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 0x14003bc24
cmp dword [rsp + 0x44], 3
jne 0x14003bbb6
mov qword [rsp + 0x80], 1
jmp 0x14003bbc2
mov qword [rsp + 0x80], 0
mov r9d, 0xa2d
lea r8, [0x1401c4f80]
lea rdx, str.dwType__REG_BINARY
mov rcx, qword [rsp + 0x80]
call fcn.14001a3b0
mov eax, dword [rsp + 0x64]
mov edx, eax
mov rcx, qword [rsp + 0xb0]
call fcn.1400449d0
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 0x14003bc44
mov qword [rsp + 0x88], 1
jmp 0x14003bc50
mov qword [rsp + 0x88], 0
mov rax, qword [rsp + 0x88]
mov rdi, rax
mov rcx, rsp
lea rdx, reloc.OLEAUT32.dll_SysReAllocString
call fcn.1400bf880
mov rax, rdi
add rsp, 0x90
pop rdi
ret
Function at 0x14003d320
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.140056620
mov r8, rax
lea rdx, [0x1401c1674]
lea rcx, [rsp + 0xc0]
call fcn.1400586b0
mov qword [rsp + 0x180], rax
mov rax, qword [rsp + 0x180]
mov qword [rsp + 0x188], rax
lea r8, [0x1401c138c]
mov rdx, qword [rsp + 0x188]
lea rcx, [rsp + 0x118]
call fcn.140058570
mov qword [rsp + 0x190], rax
mov rax, qword [rsp + 0x190]
mov qword [rsp + 0x198], rax
mov rcx, qword [rsp + 0x198]
call fcn.140052220
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, [0x1401cb250]
call fcn.1400bf880
add rsp, 0x1a0
pop rdi
ret

Function at 0x14003efb0
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, [0x1401c2154]
mov rcx, qword [rsp + 0xf0]
call fcn.1401322f0
mov qword [rsp + 0x28], rax
cmp qword [rsp + 0x28], 0
je 0x14003f0b5
mov r9, qword [rsp + 0x28]
mov r8d, 0x40
mov edx, 1
lea rcx, [rsp + 0x40]
call fcn.140133270
cmp rax, 0x40
jne 0x14003f0ab
xor r8d, r8d
mov edx, dword [rsp + 0x7c]
mov rcx, qword [rsp + 0x28]
call fcn.140133e90
test eax, eax
jne 0x14003f0ab
mov r9, qword [rsp + 0x28]
mov r8d, 4
mov edx, 1
lea rcx, [rsp + 0x94]
call fcn.140133270
cmp rax, 4
jne 0x14003f0ab
cmp dword [rsp + 0x94], 0x4550
jne 0x14003f0ab
mov r9, qword [rsp + 0x28]
mov r8d, 2
mov edx, 1
lea rcx, [rsp + 0xb4]
call fcn.140133270
cmp rax, 2
jne 0x14003f0ab
movzx eax, word [rsp + 0xb4]
mov qword [rsp + 0x20], rax
mov rcx, qword [rsp + 0x28]
call fcn.140132770
mov rax, qword [rsp + 0x20]
mov rdi, rax
mov rcx, rsp
lea rdx, [0x1401cb730]
call fcn.1400bf880
mov rax, rdi
mov rcx, qword [rsp + 0xd0]
xor rcx, rsp
call fcn.1400bfb70
add rsp, 0xe0
pop rdi
ret
Function at 0x140040c30
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.140008ec0
mov r9d, 0x784
lea r8, [0x1401c3870]
lea rdx, str.IsValidString__szKeyName_
mov rcx, rax
call fcn.14001a3b0
mov rcx, qword [rsp + 0x178]
call fcn.140008ec0
mov r9d, 0x785
lea r8, [0x1401c38f0]
lea rdx, str.IsValidString__szKeyValue_
mov rcx, rax
call fcn.14001a3b0
mov rcx, qword [rsp + 0x170]
call fcn.14001a600
test rax, rax
jne 0x140040cdf
mov rcx, qword [rsp + 0x178]
call fcn.14001a600
test rax, rax
jne 0x140040cdf
mov qword [rsp + 0x128], 1
jmp 0x140040ceb
mov qword [rsp + 0x128], 0
mov r9d, 0x787
lea r8, [0x1401c3970]
lea rdx, str.IsEmptyStr__szKeyName___FALSE__IsEmptyStr__szKeyValue___FALSE
mov rcx, qword [rsp + 0x128]
call fcn.14001a3b0
mov rcx, qword [rsp + 0x178]
call fcn.1400e1a90
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 0x140040da9
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, [0x1401c0e64]
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.1400086b0
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.140058570
mov qword [rsp + 0x140], rax
mov rax, qword [rsp + 0x140]
mov qword [rsp + 0x148], rax
mov rcx, qword [rsp + 0x148]
call fcn.140052220
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 0x140040e67
mov dword [rsp + 0x150], 1
jmp 0x140040e72
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 0x140040eda
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, [0x1401c0edc]
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, [0x1401cbcf8]
call fcn.1400bf880
add rsp, 0x160
pop rdi
ret
Function at 0x140040f00
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.140008ec0
mov r9d, 0x89c
lea r8, [0x1401c40d0]
lea rdx, str.IsValidString__szSubKey_
mov rcx, rax
call fcn.14001a3b0
mov r8d, 1
mov edx, 0x208
mov rcx, qword [rsp + 0xa0]
call fcn.140031b10
mov r9d, 0x89d
lea r8, [0x1401c4150]
lea rdx, str.IsValidAddress___psRetData____260__sizeof__TCHAR____TRUE_
mov rcx, rax
call fcn.14001a3b0
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 0x140040fcb
xor eax, eax
jmp 0x14004101f
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 0x140040ffc
mov qword [rsp + 0x70], 1
jmp 0x140041005
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.1400bf880
mov rax, rdi
add rsp, 0x80
pop rdi
ret
Function at 0x1400434e0
Capabilities:
Log keystrokes via polling

Disassembly:
mov qword [rsp + 8], rcx
push rdi
sub rsp, 0x30
mov rcx, qword [rsp + 0x40]
call fcn.140043590
mov qword [rsp + 0x20], rax
cmp qword [rsp + 0x20], 0
je 0x140043576
cmp qword [rsp + 0x20], 0x11
je 0x140043528
mov ecx, reloc.OLEAUT32.dll_SafeArrayGetElemsize
call qword [sym.imp.USER32.dll_GetKeyState]
cwde
test eax, eax
jge 0x140043528
mov rax, qword [rsp + 0x20]
bts rax, 0xd
mov qword [rsp + 0x20], rax
cmp qword [rsp + 0x20], 0x10
je 0x14004354f
mov ecx, SafeArrayLock
call qword [sym.imp.USER32.dll_GetKeyState]
cwde
test eax, eax
jge 0x14004354f
mov rax, qword [rsp + 0x20]
bts rax, 0xf
mov qword [rsp + 0x20], rax
cmp qword [rsp + 0x20], 0x12
je 0x140043576
mov ecx, reloc.OLEAUT32.dll_SafeArrayGetUBound
call qword [sym.imp.USER32.dll_GetKeyState]
cwde
test eax, eax
jge 0x140043576
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 0x140047000
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 0x140047027
mov qword [rsp + 0x38], 1
jmp 0x140047030
mov qword [rsp + 0x38], 0
mov r9d, 0x1fe
lea r8, [0x1401d3030]
lea rdx, str.npReadDataSize____1
mov rcx, qword [rsp + 0x38]
call fcn.14001a3b0
mov rcx, qword [rsp + 0x58]
call fcn.140008ec0
mov r9d, 0x1ff
lea r8, [0x1401d30a0]
lea rdx, [0x1401d27a8]
mov rcx, rax
call fcn.14001a3b0
mov rcx, qword [rsp + 0x58]
call fcn.14001a600
test rax, rax
je 0x14004708f
mov rax, 0xffffffffffffffff
jmp 0x140047179
mov qword [rsp + 0x20], 0xffffffffffffffff
lea rdx, [0x1401d1ac4]
mov rcx, qword [rsp + 0x58]
call fcn.1401322f0
mov qword [rsp + 0x28], rax
cmp qword [rsp + 0x28], 0
je 0x14004716a
cmp qword [rsp + 0x60], 0xffffffffffffffff
jne 0x1400470f4
mov r8d, 2
xor edx, edx
mov rcx, qword [rsp + 0x28]
call fcn.140133e90
mov rcx, qword [rsp + 0x28]
call fcn.1401384a0
cdqe
mov qword [rsp + 0x60], rax
xor r8d, r8d
xor edx, edx
mov rcx, qword [rsp + 0x28]
call fcn.140133e90
cmp qword [rsp + 0x60], 0
jle 0x140047157
mov rdx, qword [rsp + 0x60]
mov rcx, qword [rsp + 0x50]
call fcn.1400449d0
mov r9, qword [rsp + 0x28]
mov r8, qword [rsp + 0x60]
mov edx, 1
mov rcx, rax
call fcn.140133270
mov qword [rsp + 0x30], rax
mov rcx, qword [rsp + 0x28]
call fcn.140137370
test eax, eax
jne 0x140047155
mov rdx, qword [rsp + 0x30]
mov rcx, qword [rsp + 0x50]
call fcn.140044b40
mov rcx, qword [rsp + 0x28]
call fcn.140132770
mov rax, qword [rsp + 0x30]
jmp 0x140047179
jmp 0x140047160
mov qword [rsp + 0x20], 0
mov rcx, qword [rsp + 0x28]
call fcn.140132770
mov rcx, qword [rsp + 0x50]
call fcn.140044d20
mov rax, qword [rsp + 0x20]
add rsp, 0x40
pop rdi
ret
Function at 0x140048390
Capabilities:
Print debug messages

Disassembly:
mov qword [rsp + 8], rcx
push rdi
sub rsp, 0x250
lea rdi, [rsp + 0x20]
mov ecx, 0x8c
mov eax, 0xcccccccc
rep stosd dword [rdi], eax
mov rcx, qword [rsp + 0x260]
mov rax, qword [0x1402558e8]
xor rax, rsp
mov qword [rsp + 0x248], rax
mov rax, qword [rsp + 0x260]
lea rcx, vtable.CPoolMem.0
mov qword [rax], rcx
mov rax, qword [rsp + 0x260]
cmp qword [rax + 8], 0
je 0x1400483f7
mov qword [rsp + 0x240], 1
jmp 0x140048403
mov qword [rsp + 0x240], 0
mov r9d, 0xb1
lea r8, [0x1401d61e0]
lea rdx, str.m_pbBufferBegin___NULL
mov rcx, qword [rsp + 0x240]
call fcn.14001a3b0
lea rax, [0x14025a210]
lock dec qword [rax]
cmp qword [0x14025a210], 0
je 0x14004845c
mov r8, qword [0x14025a210]
lea rdx, [0x1401d5fa8]
lea rcx, [rsp + 0x30]
call fcn.140042e50
lea rcx, [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_OutputDebugStringW]
mov rcx, qword [rsp + 0x260]
call fcn.140048af0
mov rax, qword [rsp + 0x260]
mov rcx, qword [rax + 8]
call fcn.140049660
nop
mov rax, qword [rsp + 0x260]
add rax, 0x50
mov rcx, rax
call fcn.140011820
mov rcx, rsp
lea rdx, [0x1401d8d50]
call fcn.1400bf880
nop
mov rcx, qword [rsp + 0x248]
xor rcx, rsp
call fcn.1400bfb70
add rsp, 0x250
pop rdi
ret

Function at 0x1400484c0
Capabilities:
Terminate process

Disassembly:
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rdi
sub rsp, 0x30
mov rdx, qword [rsp + 0x48]
mov rcx, qword [rsp + 0x40]
call fcn.140048530
mov qword [rsp + 0x20], rax
cmp qword [rsp + 0x20], 0
jne 0x140048510
mov r9d, 0xc8
lea r8, [0x1401d6250]
lea rdx, [0x1401d5d64]
xor ecx, ecx
call fcn.14001a3b0
mov ecx, 0xffffffff
call fcn.1401258f0
mov rax, qword [rsp + 0x20]
add rsp, 0x30
pop rdi
ret

Function at 0x140048750
Capabilities:
Terminate process

Disassembly:
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rdi
sub rsp, 0x30
mov r8, qword [rsp + 0x50]
mov rdx, qword [rsp + 0x48]
mov rcx, qword [rsp + 0x40]
call fcn.1400487c0
mov qword [rsp + 0x20], rax
cmp qword [rsp + 0x20], 0
jne 0x1400487aa
mov r9d, 0xd4
lea r8, [0x1401d62c0]
lea rdx, [0x1401d5fe4]
xor ecx, ecx
call fcn.14001a3b0
mov ecx, 0xffffffff
call fcn.1401258f0
mov rax, qword [rsp + 0x20]
add rsp, 0x30
pop rdi
ret