joyce8/EMBER2024-capa huggingface dataset:
Function at 0x14001e750
Capabilities:
Query or enumerate registry value

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x18], rbp
mov qword [rax + 0x20], rsi
push rdi
sub rsp, 0x30
mov rdi, r9
mov rbx, r8
mov rsi, rdx
mov rbp, rcx
test rdx, rdx
je 0x14001e81a
test rbx, rbx
je 0x14001e81a
test r9, r9
je 0x14001e81a
and qword [r8], 0
xor r8d, r8d
and dword [r9], 0
mov rcx, qword [rcx + 8]
mov qword [rax - 0x10], r9
lea r9, [rax + 0x10]
and qword [rax - 0x18], 0
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x14001e816
cmp dword [rsp + 0x48], 3
jne 0x14001e816
cmp dword [rdi], eax
je 0x14001e816
mov ecx, dword [rdi]
call fcn.1400126c0
mov qword [rbx], rax
lea r9, [rsp + 0x48]
mov rcx, qword [rbp + 8]
xor r8d, r8d
mov qword [rsp + 0x28], rdi
mov rdx, rsi
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x14001e80a
cmp dword [rsp + 0x48], 3
jne 0x14001e80a
mov eax, 1
mov rbx, qword [rsp + 0x40]
mov rbp, qword [rsp + 0x50]
mov rsi, qword [rsp + 0x58]
add rsp, 0x30
pop rdi
ret
mov rcx, qword [rbx]
call fcn.1400126b8
and qword [rbx], 0
xor eax, eax
jmp 0x14001e7f5
call fcn.14001edb8
int3

Function at 0x14001ec34
Capabilities:
Set registry value

Disassembly:
push rbx
sub rsp, 0x30
xor ebx, ebx
cmp dword [rcx + 0x28], ebx
je 0x14001ec45
xor eax, eax
jmp 0x14001ec73
mov rcx, qword [rcx + 8]
lea rax, [rsp + 0x40]
mov r9d, 4
mov dword [rsp + 0x40], r8d
mov dword [rsp + 0x28], r9d
xor r8d, r8d
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test eax, eax
sete bl
mov eax, ebx
add rsp, 0x30
pop rbx
ret

Function at 0x14001ec7c
Capabilities:
Set registry value

Disassembly:
push rbx
sub rsp, 0x30
xor ebx, ebx
cmp dword [rcx + 0x28], ebx
je 0x14001ec8d
xor eax, eax
jmp 0x14001ecb1
mov rcx, qword [rcx + 8]
mov dword [rsp + 0x28], r9d
mov r9d, 3
mov qword [rsp + 0x20], r8
xor r8d, r8d
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test eax, eax
sete bl
mov eax, ebx
add rsp, 0x30
pop rbx
ret

Function at 0x140022ee8
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
xor ebx, ebx
mov rdi, rdx
mov rsi, rcx
test rdx, rdx
je 0x140022f46
call fcn.14001b8a4
mov r8d, 0xf0
mov rdx, rdi
mov rbp, qword [rax + 0x18]
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_FindResourceW]
test rax, rax
je 0x140022f46
mov rdx, rax
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_LoadResource]
test rax, rax
je 0x140022f51
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_LockResource]
mov rbx, rax
mov rdx, rbx
mov rcx, rsi
call fcn.140093294
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret
Function at 0x140023c98
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rbp
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
push r14
sub rsp, 0x20
mov rdi, rdx
mov rbx, rcx
test rcx, rcx
je 0x140023d51
mov rcx, qword [rcx + 0x40]
test rcx, rcx
je 0x140023d51
call qword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x140023d51
test rdi, rdi
je 0x140023d51
xor r14d, r14d
xor esi, esi
call fcn.14001b8a4
lea r8, str.AFX_DIALOG_LAYOUT
mov rdx, rdi
mov rbp, qword [rax + 0x18]
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_FindResourceW]
mov rdi, rax
test rax, rax
je 0x140023d31
mov rdx, rax
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_SizeofResource]
mov rdx, rdi
mov rcx, rbp
mov r14d, eax
call qword [sym.imp.KERNEL32.dll_LoadResource]
test rax, rax
je 0x140023d51
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_LockResource]
mov rsi, rax
mov r8d, r14d
mov rdx, rsi
mov rcx, rbx
call fcn.140093da4
mov edi, eax
test eax, eax
je 0x140023d4d
mov rcx, rbx
call fcn.140023960
mov eax, edi
jmp 0x140023d53
xor eax, eax
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
mov rdi, qword [rsp + 0x48]
add rsp, 0x20
pop r14
ret

Function at 0x140024cc4
Capabilities:
Get graphical window text

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
mov rbp, rcx
mov rbx, r8
mov rcx, qword [rcx + 0x40]
call fcn.140071214
mov rdi, rax
test rax, rax
je 0x140024d40
mov rcx, rax
call qword [sym.imp.USER32.dll_GetDlgCtrlID]
mov esi, eax
test rbx, rbx
je 0x140024d3b
cmp dword [rbx], 0x40
jb 0x140024d3b
mov rcx, qword [rbp + 0x40]
xor r9d, r9d
or dword [rbx + 4], 1
xor r8d, r8d
or qword [rbx + 0x30], 0xffffffffffffffff
mov edx, 0x87
mov qword [rbx + 8], rcx
mov rcx, rdi
mov qword [rbx + 0x10], rdi
call qword [sym.imp.USER32.dll_SendMessageW]
bt rax, 0xd
jb 0x140024d3b
or dword [rbx + 4], 0x80000002
mov rax, rsi
jmp 0x140024d44
or rax, 0xffffffffffffffff
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret

Function at 0x140036ae0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
mov rbx, r8
mov rdi, rdx
mov rbp, rcx
test r8, r8
jne 0x140036b0b
call fcn.14001b8a4
mov rbx, qword [rax + 0x18]
lea r8, [0x1401dfba8]
mov rdx, rdi
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FindResourceW]
mov rdi, rax
test rax, rax
je 0x140036b64
mov rdx, rax
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_LoadResource]
test rax, rax
je 0x140036b64
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_LockResource]
mov rsi, rax
test rax, rax
je 0x140036b64
mov rdx, rdi
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_SizeofResource]
mov rdx, rsi
mov rcx, rbp
mov r8d, eax
call fcn.140036b7c
jmp 0x140036b66
xor eax, eax
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret
Function at 0x140063bb8
Capabilities:
Get graphical window text

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x20
movsxd rsi, r8d
mov rbx, rdx
mov rdi, rcx
xor ebp, ebp
cmp qword [rcx + 0xd0], rbp
jne 0x140063bf2
mov r8d, esi
mov rcx, qword [rcx + 0x40]
call qword [sym.imp.USER32.dll_GetWindowTextW]
jmp 0x140063c96
call fcn.1400204a0
mov rcx, rax
test rax, rax
je 0x140063cb1
mov rax, qword [rax]
mov rax, qword [rax + 0x18]
call qword [case.0x1400456ce.0]
add rax, 0x18
mov qword [rsp + 0x30], rax
mov rcx, qword [rdi + 0xd0]
mov rax, qword [rcx]
lea rdx, [rsp + 0x30]
mov rax, qword [rax + 0x118]
call qword [case.0x1400456ce.0]
mov rdx, rsi
or rdi, 0xffffffffffffffff
mov r9, rdi
mov r8, qword [rsp + 0x30]
mov rcx, rbx
call fcn.1401bb230
test eax, eax
je 0x140063c5a
cmp eax, 0xc
je 0x140063cab
cmp eax, 0x50
jne 0x140063cbc
test rbx, rbx
jne 0x140063c63
mov ebx, ebp
jmp 0x140063c6e
mov rcx, rbx
call fcn.1401baa44
mov rbx, rax
mov rdx, qword [rsp + 0x30]
add rdx, 0xffffffffffffffe8
mov ecx, edi
lock xadd dword [rdx + 0x10], ecx
add ecx, edi
test ecx, ecx
jg 0x140063c94
mov rcx, qword [rdx]
mov rax, qword [rcx]
mov rax, qword [rax + 8]
call qword [case.0x1400456ce.0]
mov eax, ebx
mov rbx, qword [rsp + 0x38]
mov rbp, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
add rsp, 0x20
pop rdi
ret
call fcn.14001eddc
nop
mov ecx, 0x80004005
call fcn.140012d38
nop
call fcn.14001edb8
int3
Function at 0x14007225c
Capabilities:
Delete file

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
mov rdi, rcx
mov rbx, rdx
mov rcx, qword [rdx]
cmp dword [rcx - 0x10], 0
je 0x14007228e
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x14007228e
lea rcx, [rdi + 0x120]
mov rdx, rbx
call fcn.1400fb7a0
mov rbx, qword [rsp + 0x30]
mov eax, 1
add rsp, 0x20
pop rdi
ret
Function at 0x1400745c4
Capabilities:
Set registry value

Disassembly:
push rbp
push rbx
push rsi
push rdi
lea rbp, [rsp - 0x3f]
sub rsp, 0x88
mov rdi, rcx
mov esi, 1
mov rax, qword [rcx + 0x20]
neg rax
sbb rdx, rdx
mov qword [rbp + 7], rdx
cmp qword [rcx + 0x20], 0
je 0x1400747b2
xor esi, esi
and qword [rbp + 0x17], rsi
and dword [rbp + 0x1f], esi
and qword [rbp + 0x27], rsi
mov rax, qword [rcx]
lea rdx, [rbp + 0xf]
mov rax, qword [rax + 0x40]
call qword [case.0x1400456ce.0]
mov rbx, rax
call fcn.14001b8a4
mov rbx, qword [rbx]
xor edx, edx
mov rcx, qword [rax + 8]
call fcn.140019a20
and qword [rbp + 0x77], rsi
lea rcx, [rbp + 0x67]
mov qword [rsp + 0x40], rcx
lea rcx, [rbp + 0x77]
mov qword [rsp + 0x38], rcx
and qword [rsp + 0x30], rsi
mov dword [rsp + 0x28], 0x2001f
and dword [rsp + 0x20], esi
xor r9d, r9d
xor r8d, r8d
mov rdx, rbx
mov rcx, rax
call qword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
mov ebx, eax
test eax, eax
jne 0x140074674
mov rax, qword [rbp + 0x77]
mov qword [rbp + 0x17], rax
and dword [rbp + 0x1f], ebx
mov rdx, qword [rbp + 0xf]
add rdx, 0xffffffffffffffe8
or eax, 0xffffffff
lock xadd dword [rdx + 0x10], eax
sub eax, 1
jg 0x140074699
mov rcx, qword [rdx]
mov rax, qword [rcx]
mov rax, qword [rax + 8]
call qword [case.0x1400456ce.0]
test ebx, ebx
jne 0x1400747a3
call fcn.1400204a0
mov rcx, rax
test rax, rax
je 0x1400747c0
mov rax, qword [rax]
mov rax, qword [rax + 0x18]
call qword [case.0x1400456ce.0]
add rax, 0x18
mov qword [rbp + 0x6f], rax
call fcn.1400204a0
mov rcx, rax
test rax, rax
je 0x1400747cb
mov rax, qword [rax]
mov rax, qword [rax + 0x18]
call qword [case.0x1400456ce.0]
add rax, 0x18
mov qword [rbp + 0x7f], rax
lea rcx, [rdi + 8]
lea r9, [rbp + 0x7f]
lea r8, [rbp + 0x6f]
lea rdx, [rbp + 7]
call fcn.14007283c
mov rbx, qword [rbp + 0x7f]
test rbx, rbx
je 0x14007473b
mov rcx, rbx
call fcn.1401baa44
lea ecx, [rax*2 + 2]
mov dword [rsp + 0x28], ecx
mov qword [rsp + 0x20], rbx
mov r9d, 1
xor r8d, r8d
mov rdx, qword [rbp + 0x6f]
mov rcx, qword [rbp + 0x17]
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
nop
lea rdx, [rbx - 0x18]
or eax, 0xffffffff
lock xadd dword [rdx + 0x10], eax
sub eax, 1
jg 0x14007475d
mov rcx, qword [rdx]
mov rax, qword [rcx]
mov rax, qword [rax + 8]
call qword [case.0x1400456ce.0]
nop
mov rdx, qword [rbp + 0x6f]
add rdx, 0xffffffffffffffe8
or eax, 0xffffffff
lock xadd dword [rdx + 0x10], eax
sub eax, 1
jg 0x140074782
mov rcx, qword [rdx]
mov rax, qword [rcx]
mov rax, qword [rax + 8]
call qword [case.0x1400456ce.0]
cmp qword [rbp + 7], 0
jne 0x1400746a1
mov rcx, qword [rbp + 0x17]
test rcx, rcx
je 0x14007479c
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, 1
jmp 0x1400747b4
mov rcx, qword [rbp + 0x17]
test rcx, rcx
je 0x1400747b2
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
add rsp, 0x88
pop rdi
pop rsi
pop rbx
pop rbp
ret
mov ecx, 0x80004005
call fcn.140012d38
nop
mov ecx, 0x80004005
call fcn.140012d38
int3
Function at 0x140077814
Capabilities:
Extract resource via kernel32 functions

Disassembly:
movzx edx, dx
jmp method.CDialog.virtual_720
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
mov qword [rcx + 0xf0], rdx
mov rbp, r8
mov rsi, rdx
mov rdi, rcx
cmp rdx, 0x10000
jae 0x14009469f
cmp dword [rcx + 0xe8], 0
jne 0x14009469f
movzx eax, si
mov dword [rcx + 0xe8], eax
call fcn.14001b8a4
mov r8d, 5
mov rdx, rsi
mov rbx, qword [rax + 0x18]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FindResourceW]
mov rdx, rax
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_LoadResource]
mov r9, rbx
mov r8, rbp
mov rdx, rax
mov rcx, rdi
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
jmp 0x140094a00
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
mov rdi, rcx
mov rsi, r9
mov rcx, rdx
mov rbx, r8
call qword [sym.imp.KERNEL32.dll_LockResource]
mov rbp, rax
test rbx, rbx
jne 0x140094a55
call fcn.140018760
mov rdx, rax
test rax, rax
je 0x140094a53
mov rcx, qword [rax]
mov rax, qword [rcx + 0xe8]
mov rcx, rdx
call qword [case.0x1400456ce.0]
mov rbx, rax
jmp 0x140094a55
xor ebx, ebx
and qword [rdi + 0x108], 0
mov r9, rsi
mov r8, rbx
mov rdx, rbp
mov rcx, rdi
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
jmp fcn.140094774

Function at 0x140077f64
Capabilities:
Get file size

Disassembly:
push rbx
sub rsp, 0x20
mov rbx, rcx
lea rdx, [rsp + 0x34]
mov rcx, qword [rcx + 8]
call qword [sym.imp.KERNEL32.dll_GetFileSize]
mov dword [rsp + 0x30], eax
cmp eax, 0xffffffff
jne 0x140077fa0
call qword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
je 0x140077fa0
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov rdx, qword [rbx + 0x18]
mov ecx, eax
call fcn.14011fae8
mov rax, qword [rsp + 0x30]
add rsp, 0x20
pop rbx
ret

Function at 0x1400782b4
Capabilities:
Read file on windows

Disassembly:
push rbx
sub rsp, 0x30
mov rbx, rcx
test r8d, r8d
jne 0x1400782c6
xor eax, eax
jmp 0x1400782f4
mov rcx, qword [rcx + 8]
lea r9, [rsp + 0x50]
and qword [rsp + 0x20], 0
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x1400782f0
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov rdx, qword [rbx + 0x18]
mov ecx, eax
call fcn.14011fae8
mov eax, dword [rsp + 0x50]
add rsp, 0x30
pop rbx
ret

Function at 0x1400783d0
Capabilities:
Write file on windows

Disassembly:
test r8d, r8d
je 0x14007841f
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x30
and qword [rsp + 0x20], 0
lea rdi, [rcx + 0x18]
mov rcx, qword [rcx + 8]
lea r9, [rsp + 0x50]
mov ebx, r8d
call qword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x14007840f
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov rdx, qword [rdi]
mov ecx, eax
call fcn.14011fae8
cmp dword [rsp + 0x50], ebx
jne 0x140078420
mov rbx, qword [rsp + 0x40]
add rsp, 0x30
pop rdi
ret
mov rcx, rdi
call fcn.140012630
or edx, 0xffffffff
mov r8, rax
lea ecx, [rdx + 0xe]
call fcn.14011f648
int3
Function at 0x140094660
Capabilities:
Extract resource via kernel32 functions

Disassembly:
movzx edx, dx
jmp method.CDialog.virtual_720
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
mov qword [rcx + 0xf0], rdx
mov rbp, r8
mov rsi, rdx
mov rdi, rcx
cmp rdx, 0x10000
jae 0x14009469f
cmp dword [rcx + 0xe8], 0
jne 0x14009469f
movzx eax, si
mov dword [rcx + 0xe8], eax
call fcn.14001b8a4
mov r8d, 5
mov rdx, rsi
mov rbx, qword [rax + 0x18]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FindResourceW]
mov rdx, rax
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_LoadResource]
mov r9, rbx
mov r8, rbp
mov rdx, rax
mov rcx, rdi
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
jmp 0x140094a00
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
mov rdi, rcx
mov rsi, r9
mov rcx, rdx
mov rbx, r8
call qword [sym.imp.KERNEL32.dll_LockResource]
mov rbp, rax
test rbx, rbx
jne 0x140094a55
call fcn.140018760
mov rdx, rax
test rax, rax
je 0x140094a53
mov rcx, qword [rax]
mov rax, qword [rcx + 0xe8]
mov rcx, rdx
call qword [case.0x1400456ce.0]
mov rbx, rax
jmp 0x140094a55
xor ebx, ebx
and qword [rdi + 0x108], 0
mov r9, rsi
mov r8, rbx
mov rdx, rbp
mov rcx, rdi
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
jmp fcn.140094774

Function at 0x1400946ec
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rbp
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
push r14
sub rsp, 0x20
mov rbp, r8
mov rbx, rdx
mov r14, rcx
xor edi, edi
call fcn.14001b8a4
lea r8d, [rdi + 5]
mov rdx, rbx
mov rsi, qword [rax + 0x18]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_FindResourceW]
mov rdx, rax
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_LoadResource]
test rax, rax
je 0x140094746
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_LockResource]
mov rdi, rax
mov r9, rsi
mov r8, rbp
mov rdx, rdi
mov rcx, r14
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
mov rdi, qword [rsp + 0x48]
add rsp, 0x20
pop r14
jmp fcn.140094774
Function at 0x140097364
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
test byte [rdx + 4], 1
mov esi, r8d
mov rbx, qword [rdx + 0x10]
mov rdi, rdx
mov rbp, rcx
jne 0x1400973db
mov rcx, qword [rdi + 8]
mov r8d, 5
mov rdx, rbx
call qword [sym.imp.KERNEL32.dll_FindResourceW]
mov rbx, rax
test rax, rax
jne 0x1400973ab
call fcn.140075c14
mov rcx, qword [rdi + 8]
mov rdx, rbx
call qword [sym.imp.KERNEL32.dll_LoadResource]
mov rbx, rax
test rax, rax
jne 0x1400973c5
call fcn.140075c14
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_LockResource]
mov rbx, rax
test rax, rax
jne 0x1400973db
call fcn.140075c14
call fcn.14001b8a4
cmp qword [rax + 0x68], 0
je 0x1400973f5
mov rdx, rbx
mov rcx, rbp
call fcn.140096828
mov rbx, rax
mov edx, esi
mov rcx, rbx
call fcn.140097650
mov rcx, qword [rbp + 0xf8]
mov rsi, rax
test rcx, rcx
je 0x14009741c
call qword [sym.imp.KERNEL32.dll_GlobalFree]
and qword [rbp + 0xf8], 0
test rsi, rsi
je 0x14009742b
mov rbx, rsi
mov qword [rbp + 0xf8], rsi
or dword [rdi + 4], 1
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
mov qword [rdi + 0x10], rbx
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret

Function at 0x14009c948
Capabilities:
Create process on windows

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x30
mov rax, qword [rcx + 0x28]
xor ebx, ebx
mov rdi, rcx
cmp dword [rax - 0x10], ebx
je 0x14009c9b7
call fcn.140018760
test rax, rax
je 0x14009c986
mov rdx, qword [rax]
mov rcx, rax
mov rax, qword [rdx + 0xe8]
call qword [case.0x1400456ce.0]
test rax, rax
je 0x14009c986
mov rbx, qword [rax + 0x40]
mov rdx, qword [rdi + 0x18]
mov rcx, rbx
mov r9, qword [rdi + 0x10]
mov r8, qword [rdi + 0x28]
mov dword [rsp + 0x28], 1
mov qword [rsp + 0x20], rdx
xor edx, edx
call qword [sym.imp.SHELL32.dll_ShellExecuteW]
cmp rax, 0x20
jb 0x14009c9b7
mov eax, 1
jmp 0x14009c9b9
xor eax, eax
mov rbx, qword [rsp + 0x40]
add rsp, 0x30
pop rdi
ret
Function at 0x1400ebd68
Capabilities:
Log keystrokes via polling

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
mov eax, dword [rdx + 8]
mov rbx, rcx
mov ecx, 0x104
xor edi, edi
mov rsi, rdx
cmp eax, ecx
ja 0x1400ebf17
je 0x1400ebf3d
cmp eax, 0xa1
jb 0x1400ebf88
cmp eax, 0xa2
jbe 0x1400ebf3d
cmp eax, 0xa3
jbe 0x1400ebf88
cmp eax, 0xa5
jbe 0x1400ebf3d
cmp eax, 0xa6
jbe 0x1400ebf88
cmp eax, 0xa8
jbe 0x1400ebf3d
cmp eax, 0x100
jne 0x1400ebf88
cmp dword [rbx + 0x154], 0xffffffff
je 0x1400ebf3d
lea ecx, [rdi + 0x11]
call qword [sym.imp.USER32.dll_GetAsyncKeyState]
bt ax, 0xf
jae 0x1400ebf3d
mov rax, qword [rsi + 0x10]
sub rax, 0x21
je 0x1400ebe71
cmp rax, 1
jne 0x1400ebf3d
mov eax, dword [rbx + 0x154]
mov r8d, dword [rbx + 0x150]
lea esi, [rax + 1]
add eax, r8d
cmp esi, eax
jge 0x1400ebfa6
mov eax, esi
mov rcx, rbx
cdq
idiv r8d
mov rax, qword [rbx]
mov ebp, edx
mov rax, qword [rax + 0x4f8]
call qword [case.0x1400456ce.0]
test eax, eax
jne 0x1400ebeb9
mov ecx, dword [rbx + 0x154]
inc esi
mov r8d, dword [rbx + 0x150]
add ecx, r8d
cmp esi, ecx
jl 0x1400ebe37
jmp 0x1400ebfa6
mov ecx, dword [rbx + 0x154]
lea esi, [rcx - 1]
add esi, dword [rbx + 0x150]
cmp esi, ecx
jle 0x1400ebfa6
mov eax, esi
mov rcx, rbx
cdq
idiv dword [rbx + 0x150]
mov rax, qword [rbx]
mov ebp, edx
mov rax, qword [rax + 0x4f8]
call qword [case.0x1400456ce.0]
test eax, eax
jne 0x1400ebeb9
dec esi
cmp esi, dword [rbx + 0x154]
jg 0x1400ebe88
jmp 0x1400ebfa6
mov rax, qword [rbx]
mov edx, ebp
mov rcx, rbx
mov dword [rbx + 0x3b8], 1
mov rax, qword [rax + 0x428]
call qword [case.0x1400456ce.0]
mov rax, qword [rbx]
mov rcx, rbx
mov rax, qword [rax + 0x420]
call qword [case.0x1400456ce.0]
mov rcx, rax
call fcn.1400641c8
mov rax, qword [rbx]
mov rcx, rbx
mov edx, dword [rbx + 0x154]
mov rax, qword [rax + 0x4e0]
call qword [case.0x1400456ce.0]
mov dword [rbx + 0x3b8], edi
jmp 0x1400ebfa6
cmp eax, 0x200
jb 0x1400ebf88
cmp eax, 0x202
jbe 0x1400ebf3d
cmp eax, 0x203
jbe 0x1400ebf88
cmp eax, 0x205
jbe 0x1400ebf3d
add eax, 0xfffffdf9
cmp eax, 1
ja 0x1400ebf88
mov rax, qword [rbx + 0x1c0]
mov ebp, 0x407
test rax, rax
je 0x1400ebf65
mov rcx, qword [rax + 0x40]
test rcx, rcx
je 0x1400ebf65
mov r9, rsi
xor r8d, r8d
mov edx, ebp
call qword [sym.imp.USER32.dll_SendMessageW]
mov rax, qword [rbx + 0x1b8]
test rax, rax
je 0x1400ebf88
mov rcx, qword [rax + 0x40]
test rcx, rcx
je 0x1400ebf88
mov r9, rsi
xor r8d, r8d
mov edx, ebp
call qword [sym.imp.USER32.dll_SendMessageW]
cmp dword [rsi + 8], 0x203
jne 0x1400ebfad
lea rax, [rbx + 0x3208]
test rax, rax
je 0x1400ebfa1
mov rdi, qword [rax + 0x40]
cmp qword [rsi], rdi
jne 0x1400ebfad
mov eax, 1
jmp 0x1400ebfb8
mov rdx, rsi
mov rcx, rbx
call fcn.1400e4b18
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret
Function at 0x1401489d0
Capabilities:
Check if file exists
Get common file path
Get file attributes

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rbp
mov qword [rax + 0x18], rsi
push rdi
sub rsp, 0x40
and dword [rax - 0x18], 0
mov rbp, r9
mov rbx, r8
mov rdi, rdx
mov rsi, rcx
lea rcx, [rsp + 0x30]
call fcn.1401c145c
test eax, eax
jne 0x140148a34
mov eax, dword [rsp + 0x30]
lea r8, str._s_s_X.tmp
mov dword [rsp + 0x28], eax
mov r9, rsi
mov rdx, rbp
mov qword [rsp + 0x20], rdi
mov rcx, rbx
call fcn.14001a6ec
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x140148a46
jmp 0x1401489f4
mov r9, rbx
xor r8d, r8d
mov rdx, rdi
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_GetTempFileNameW]
mov rbx, qword [rsp + 0x50]
mov rbp, qword [rsp + 0x58]
mov rsi, qword [rsp + 0x60]
add rsp, 0x40
pop rdi
ret