joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140005cab
Capabilities:
Terminate process

Disassembly:
cmp rcx, qword [0x142453000]
jne 0x14000539e
rol rcx, 0x10
test cx, 0xffff
jne 0x14000539a
repz ret
ror rcx, 0x10
jmp 0x140005c04
mov qword [rsp + 8], rcx
sub rsp, 0x88
lea rcx, [0x1424559f0]
call qword [sym.imp.kernel32.dll_RtlCaptureContext]
mov rax, qword [0x142455ae8]
mov qword [rsp + 0x58], rax
xor r8d, r8d
lea rdx, [rsp + 0x60]
mov rcx, qword [rsp + 0x58]
call sub.kernel32.dll_RtlLookupFunctionEntry
mov qword [rsp + 0x50], rax
cmp qword [rsp + 0x50], 0
je 0x140005c89
mov qword [rsp + 0x38], 0
lea rax, [rsp + 0x48]
mov qword [rsp + 0x30], rax
lea rax, [rsp + 0x40]
mov qword [rsp + 0x28], rax
lea rax, [0x1424559f0]
mov qword [rsp + 0x20], rax
mov r9, qword [rsp + 0x50]
mov r8, qword [rsp + 0x58]
mov rdx, qword [rsp + 0x60]
xor ecx, ecx
call sub.kernel32.dll_RtlVirtualUnwind
jmp 0x140005cab
mov rax, qword [rsp + 0x88]
mov qword [0x142455ae8], rax
lea rax, [rsp + 0x88]
add rax, 8
mov qword [0x142455a88], rax
mov rax, qword [0x142455ae8]
mov qword [0x142455960], rax
mov rax, qword [rsp + 0x90]
mov qword [0x142455a70], rax
mov dword [0x142455950], 0xc0000409
mov dword [0x142455954], 1
mov rax, qword [0x142453000]
mov qword [rsp + 0x68], rax
mov rax, qword [0x142453008]
mov qword [rsp + 0x70], rax
call qword [sym.imp.kernel32.dll_IsDebuggerPresent]
mov dword [0x1424559e8], eax
mov ecx, 1
call fcn.140005764
xor ecx, ecx
call qword [sym.imp.kernel32.dll_SetUnhandledExceptionFilter]
lea rcx, str.PYEB
call qword [sym.imp.kernel32.dll_UnhandledExceptionFilter]
cmp dword [0x1424559e8], 0
jne 0x140005d32
mov ecx, 1
call fcn.140005764
call qword [sym.imp.kernel32.dll_GetCurrentProcess]
mov edx, 0xc0000409
mov rcx, rax
call qword [sym.imp.kernel32.dll_TerminateProcess]
add rsp, 0x88
ret
Function at 0x140011140
Capabilities:
Parse pe header

Disassembly:
mov eax, 0x5a4d
cmp word [rcx], ax
jne 0x140011168
movsxd rdx, dword [rcx + 0x3c]
add rdx, rcx
cmp dword [rdx], 0x4550
jne 0x140011168
xor eax, eax
mov ecx, 0x20b
cmp word [rdx + 0x18], cx
sete al
ret
xor eax, eax
ret
Function at 0x18001f1e8
Capabilities:
Set thread local storage value

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x20
mov rsi, rdx
mov r13, r8
mov edx, 1
mov r15, rcx
mov r12d, edx
mov r14d, edx
lea rdi, [rsi + 0x18]
cmp dword [rsi + 0x10], edx
jle 0x18001f281
lea ebx, [rdx + 7]
lea ebp, [rdx + 0xf]
test r13, r13
je 0x18001f246
mov rax, qword [r15 + 0x10]
cmp qword [rax + rbp + 8], r13
je 0x18001f246
mov rax, qword [rdi]
cmp qword [rbx + rax], 0
je 0x18001f26b
xor r12d, r12d
jmp 0x18001f26b
mov rax, qword [rdi]
mov rcx, qword [rbx + rax]
test rcx, rcx
je 0x18001f263
mov rax, qword [rcx]
mov rax, qword [rax]
call qword [case.0x18004530e.0]
mov edx, 1
mov rax, qword [rdi]
and qword [rbx + rax], 0
add r14d, edx
add rbp, 0x10
add rbx, 8
cmp r14d, dword [rsi + 0x10]
jl 0x18001f227
test r12d, r12d
je 0x18001f2c9
lea rcx, [r15 + 0x28]
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
lea rcx, [r15 + 0x18]
mov rdx, rsi
call fcn.18001ec60
lea rcx, [r15 + 0x28]
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov rcx, qword [rdi]
call qword [sym.imp.KERNEL32.dll_LocalFree]
mov rax, qword [rsi]
mov edx, 1
mov rcx, rsi
mov rax, qword [rax]
call qword [case.0x18004530e.0]
mov ecx, dword [r15]
xor edx, edx
call qword [sym.imp.KERNEL32.dll_TlsSetValue]
mov rbx, qword [rsp + 0x50]
mov rbp, qword [rsp + 0x58]
mov rsi, qword [rsp + 0x60]
add rsp, 0x20
pop r15
pop r14
pop r13
pop r12
pop rdi
ret

Function at 0x18002018c
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 edi, r8d
mov rsi, rdx
mov rbp, rcx
call qword [sym.imp.KERNEL32.dll_LoadResource]
test rax, rax
je 0x180020203
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_LockResource]
mov rbx, rax
test rax, rax
je 0x180020203
mov rdx, rsi
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, eax
add rcx, rbx
and edi, 0xf
jbe 0x1800201f0
cmp rbx, rcx
jae 0x180020203
movzx eax, word [rbx]
lea rbx, [rbx + rax*2]
add rbx, 2
add edi, 0xffffffff
jne 0x1800201db
cmp rbx, rcx
jae 0x180020203
movzx eax, word [rbx]
neg ax
sbb rax, rax
and rax, rbx
jmp 0x180020205
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 0x180025b60
Capabilities:
Get graphical window text

Disassembly:
sub rsp, 0x78
test rdx, rdx
je 0x180025bc8
mov r10, qword [rcx + 0x10]
test r10, r10
je 0x180025bb2
cmp qword [rcx + 0x18], 0
jne 0x180025bad
mov eax, dword [rcx + 0xc]
cmp eax, dword [rcx + 0x30]
jae 0x180025bce
mov qword [rsp + 0x58], rdx
lea r9, [rsp + 0x20]
mov dword [rsp + 0x20], 0x50
mov edx, eax
mov dword [rsp + 0x24], 0x40
mov r8d, 1
mov rcx, qword [r10 + 8]
call qword [sym.imp.USER32.dll_SetMenuItemInfoW]
add rsp, 0x78
ret
mov rcx, qword [rcx + 0x20]
test rcx, rcx
je 0x180025bc8
mov rcx, qword [rcx + 0x40]
add rsp, 0x78
jmp fcn.18002f188
call fcn.1800212f8
int3
call fcn.1800212f8
int3
Function at 0x1800269e0
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 0x180026a3e
call fcn.18001fbcc
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 0x180026a3e
mov rdx, rax
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_LoadResource]
test rax, rax
je 0x180026a49
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_LockResource]
mov rbx, rax
mov rdx, rbx
mov rcx, rsi
call fcn.180033e7c
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret

Function at 0x180027074
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 rsi, rcx
xor ebp, ebp
mov rcx, qword [rcx + 0xd0]
mov rbx, rdx
test rcx, rcx
jne 0x180027123
mov rcx, qword [rsi + 0x40]
call qword [sym.imp.USER32.dll_GetWindowTextLengthW]
movsxd rdi, eax
test eax, eax
js 0x180027148
mov rcx, qword [rbx]
lea r8d, [rbp + 1]
mov edx, dword [rcx - 0xc]
sub r8d, dword [rcx - 8]
sub edx, edi
or r8d, edx
jge 0x1800270d4
mov edx, edi
mov rcx, rbx
call fcn.18001f6c0
mov rdx, qword [rbx]
cmp edi, dword [rdx - 0xc]
jg 0x180027148
mov dword [rdx - 0x10], edi
lea r8d, [rdi + 1]
mov rax, qword [rbx]
mov word [rax + rdi*2], bp
mov rcx, qword [rsi + 0x40]
call qword [sym.imp.USER32.dll_GetWindowTextW]
mov rcx, qword [rbx]
test rcx, rcx
jne 0x180027100
mov eax, ebp
jmp 0x18002710d
movsxd rdx, dword [rcx - 0xc]
call fcn.1801b5f08
test eax, eax
js 0x180027148
mov rcx, qword [rbx]
cmp eax, dword [rcx - 0xc]
jg 0x180027148
mov dword [rcx - 0x10], eax
mov ecx, eax
mov rax, qword [rbx]
mov word [rax + rcx*2], bp
jmp 0x180027133
mov rax, qword [rcx]
mov rax, qword [rax + 0x118]
call qword [case.0x18004530e.0]
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret
mov ecx, 0x80070057
call fcn.18001eba4
int3

Function at 0x180027238
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.18002f4d4
mov rdi, rax
test rax, rax
je 0x1800272b4
mov rcx, rax
call qword [sym.imp.USER32.dll_GetDlgCtrlID]
mov esi, eax
test rbx, rbx
je 0x1800272af
cmp dword [rbx], 0x40
jb 0x1800272af
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 0x1800272af
or dword [rbx + 4], 0x80000002
mov rax, rsi
jmp 0x1800272b8
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 0x1800272d0
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 rdi, rcx
mov rbx, r8
lea rcx, [0x18022f184]
mov esi, edx
call fcn.1801b5ddc
mov r8d, eax
lea rdx, [0x18022f184]
mov rcx, rbx
call fcn.1800203fc
xor ebp, ebp
mov edx, esi
cmp qword [rdi + 0xc8], rbp
jne 0x1800273b2
mov rcx, qword [rdi + 0x40]
call qword [sym.imp.USER32.dll_GetDlgItem]
mov rsi, rax
test rax, rax
je 0x1800273ca
mov rcx, rax
call qword [sym.imp.USER32.dll_GetWindowTextLengthW]
movsxd rdi, eax
test eax, eax
js 0x1800273e5
mov rcx, qword [rbx]
lea r8d, [rbp + 1]
mov edx, dword [rcx - 0xc]
sub r8d, dword [rcx - 8]
sub edx, edi
or r8d, edx
jge 0x180027364
mov edx, edi
mov rcx, rbx
call fcn.18001f6c0
mov rdx, qword [rbx]
cmp edi, dword [rdx - 0xc]
jg 0x1800273e5
mov dword [rdx - 0x10], edi
lea r8d, [rdi + 1]
mov rax, qword [rbx]
mov rcx, rsi
mov word [rax + rdi*2], bp
call qword [sym.imp.USER32.dll_GetWindowTextW]
mov rcx, qword [rbx]
test rcx, rcx
jne 0x18002738f
mov eax, ebp
jmp 0x18002739c
movsxd rdx, dword [rcx - 0xc]
call fcn.1801b5f08
test eax, eax
js 0x1800273e5
mov rcx, qword [rbx]
cmp eax, dword [rcx - 0xc]
jg 0x1800273e5
mov dword [rcx - 0x10], eax
mov ecx, eax
mov rax, qword [rbx]
mov word [rax + rcx*2], bp
jmp 0x1800273ca
mov rcx, rdi
call fcn.18002ec3c
test rax, rax
je 0x1800273ca
mov rdx, rbx
mov rcx, rax
call fcn.180027074
mov rax, qword [rbx]
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
mov eax, dword [rax - 0x10]
add rsp, 0x20
pop rdi
ret
mov ecx, 0x80070057
call fcn.18001eba4
int3

Function at 0x18002b8dc
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 0x18002b995
mov rcx, qword [rcx + 0x40]
test rcx, rcx
je 0x18002b995
call qword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x18002b995
test rdi, rdi
je 0x18002b995
xor r14d, r14d
xor esi, esi
call fcn.18001fbcc
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 0x18002b975
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 0x18002b995
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_LockResource]
mov rsi, rax
mov r8d, r14d
mov rdx, rsi
mov rcx, rbx
call fcn.1800345f0
mov edi, eax
test eax, eax
je 0x18002b991
mov rcx, rbx
call fcn.18002b74c
mov eax, edi
jmp 0x18002b997
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 0x18002ed84
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 0x18002edbe
mov r8d, esi
mov rcx, qword [rcx + 0x40]
call qword [sym.imp.USER32.dll_GetWindowTextW]
jmp 0x18002ee62
call fcn.1800224f0
mov rcx, rax
test rax, rax
je 0x18002ee7d
mov rax, qword [rax]
mov rax, qword [rax + 0x18]
call qword [case.0x18004530e.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.0x18004530e.0]
mov rdx, rsi
or rdi, 0xffffffffffffffff
mov r9, rdi
mov r8, qword [rsp + 0x30]
mov rcx, rbx
call fcn.1801b610c
test eax, eax
je 0x18002ee26
cmp eax, 0xc
je 0x18002ee77
cmp eax, 0x50
jne 0x18002ee88
test rbx, rbx
jne 0x18002ee2f
mov ebx, ebp
jmp 0x18002ee3a
mov rcx, rbx
call fcn.1801b5ddc
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 0x18002ee60
mov rcx, qword [rdx]
mov rax, qword [rcx]
mov rax, qword [rax + 8]
call qword [case.0x18004530e.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.1800212b0
nop
mov ecx, 0x80004005
call fcn.18001eba4
nop
call fcn.1800212f8
int3

Function at 0x18002f188
Capabilities:
Get graphical window text

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rsi
push rdi
sub rsp, 0x230
mov rax, qword [0x1802667c0]
xor rax, rsp
mov qword [rsp + 0x220], rax
xor ebp, ebp
mov rbx, rdx
mov rdi, rcx
test rcx, rcx
je 0x18002f243
test rdx, rdx
je 0x18002f243
mov rcx, rdx
call fcn.1801b5ddc
xor edx, edx
mov word [rsp + 0x20], bp
mov r8d, 0x1fe
lea rcx, [rsp + 0x22]
mov rsi, rax
call fcn.1801ce8c0
mov r8d, 0x100
cmp rsi, r8
ja 0x18002f214
lea rdx, [rsp + 0x20]
mov rcx, rdi
call qword [sym.imp.USER32.dll_GetWindowTextW]
cmp eax, esi
jne 0x18002f214
mov rdx, rbx
lea rcx, [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_lstrcmpW]
test eax, eax
je 0x18002f220
mov rdx, rbx
mov rcx, rdi
call qword [sym.imp.USER32.dll_SetWindowTextW]
mov rcx, qword [rsp + 0x220]
xor rcx, rsp
call fcn.18001ca10
mov rbx, qword [rsp + 0x260]
add rsp, 0x230
pop rdi
pop rsi
pop rbp
ret
call fcn.1800212f8
int3
Function at 0x1800300c4
Capabilities:
Delete registry key

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x40
cmp qword [rcx], 0
mov rdi, r8
mov rsi, rdx
mov rbx, rcx
je 0x18003012b
lea rcx, str.Advapi32.dll
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x18003013f
lea rdx, str.RegDeleteKeyTransactedW
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
je 0x18003013f
mov rcx, qword [rbx]
xor r9d, r9d
and qword [rsp + 0x28], 0
xor r8d, r8d
mov qword [rsp + 0x20], rcx
mov rdx, rdi
mov rcx, rsi
call qword [case.0x18004530e.0]
jmp 0x180030144
cmp dword [rcx + 8], 0
je 0x18003013f
mov rdx, rdi
mov rcx, rsi
call qword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
jmp 0x180030144
mov eax, 1
mov rbx, qword [rsp + 0x50]
mov rsi, qword [rsp + 0x58]
add rsp, 0x40
pop rdi
ret

Function at 0x180035cd0
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 rsi, r8
mov rbx, rdx
mov rbp, rcx
call fcn.18001fbcc
mov r8d, 5
mov rdx, rbx
mov rdi, qword [rax + 0x18]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_FindResourceW]
test rax, rax
je 0x180035d3a
mov rdx, rax
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_LoadResource]
test rax, rax
je 0x180035d3a
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_LockResource]
mov r9, rdi
mov r8, rsi
mov rdx, rax
mov rcx, rbp
call fcn.180035d54
jmp 0x180035d3c
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 0x1800360cc
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 qword [rcx + 0xf0], rdx
mov rbp, r8
mov rdi, rdx
mov rbx, rcx
cmp rdx, 0x10000
jae 0x18003610b
cmp dword [rcx + 0xe8], 0
jne 0x18003610b
movzx eax, dx
mov dword [rcx + 0xe8], eax
call fcn.18001fbcc
mov r8d, 5
mov rdx, rdi
mov rsi, qword [rax + 0x18]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_FindResourceW]
test rax, rax
je 0x18003614f
mov rdx, rax
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_LoadResource]
test rax, rax
je 0x18003614f
mov r9, rsi
mov r8, rbp
mov rdx, rax
mov rcx, rbx
call fcn.180036950
jmp 0x180036151
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 0x180036258
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov qword [rsp + 8], rcx
push rbx
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x30
mov rbx, rcx
mov r12, qword [rcx + 0x100]
mov rdi, qword [rcx + 0xf8]
call fcn.18001fbcc
mov r13, qword [rax + 0x18]
cmp qword [rbx + 0xf0], 0
je 0x1800362c3
call fcn.18001fbcc
mov r13, qword [rax + 0x18]
mov r8d, 5
mov rdx, qword [rbx + 0xf0]
mov rcx, r13
call qword [sym.imp.KERNEL32.dll_FindResourceW]
test rax, rax
je 0x1800362d9
mov rdx, rax
mov rcx, r13
call qword [sym.imp.KERNEL32.dll_LoadResource]
mov rdi, rax
test rdi, rdi
je 0x1800362d4
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_LockResource]
mov r12, rax
test r12, r12
jne 0x1800362e2
or rax, 0xffffffffffffffff
jmp 0x18003649b
mov rcx, rbx
call fcn.180036894
mov rdi, rax
mov qword [rsp + 0x20], rax
call fcn.18002cdd0
xor r14d, r14d
mov dword [rsp + 0x78], r14d
xor esi, esi
mov qword [rsp + 0x88], rsi
xor r15d, r15d
mov dword [rsp + 0x80], r15d
test rdi, rdi
je 0x1800363c3
call qword [sym.imp.USER32.dll_GetDesktopWindow]
cmp rdi, rax
je 0x1800363c3
mov rcx, rdi
call qword [sym.imp.USER32.dll_IsWindowEnabled]
test eax, eax
je 0x1800363c3
xor edx, edx
mov rcx, rdi
call qword [sym.imp.USER32.dll_EnableWindow]
lea r14d, [rsi + 1]
mov dword [rsp + 0x78], r14d
call fcn.18002005c
mov rdx, rax
test rax, rax
je 0x1800363bb
mov rcx, qword [rax]
mov rax, qword [rcx + 0xe8]
mov rcx, rdx
call qword [case.0x18004530e.0]
mov rsi, rax
mov qword [rsp + 0x88], rax
test rax, rax
je 0x1800363c3
mov rax, qword [rax]
mov rcx, rsi
mov rax, qword [rax + 0x2a0]
call qword [case.0x18004530e.0]
test eax, eax
je 0x1800363c3
mov rcx, rsi
call fcn.18002ef68
test eax, eax
je 0x1800363c3
xor edx, edx
mov rcx, rsi
call fcn.18002ef94
mov r15d, r14d
mov dword [rsp + 0x80], r14d
jmp 0x1800363c3
mov qword [rsp + 0x88], rsi
mov rcx, rbx
call fcn.18002cd58
mov rcx, rdi
call fcn.180026770
mov r9, r13
mov r8, rax
mov rdx, r12
mov rcx, rbx
call fcn.180035fec
test eax, eax
jne 0x180036412
cmp dword [rbx + 0x120], eax
jne 0x180036412
call fcn.18001fbcc
mov r13, qword [rax + 0x10]
mov rcx, rdi
call fcn.180026770
mov r9, r13
mov r8, rax
mov rdx, r12
mov rcx, rbx
call fcn.180035fec
and dword [rbx + 0x120], 0
jmp 0x18003643a
test r15d, r15d
je 0x18003644c
mov edx, 1
mov rcx, rsi
call fcn.18002ef94
test r14d, r14d
je 0x18003645f
mov edx, 1
mov rcx, rdi
call qword [sym.imp.USER32.dll_EnableWindow]
test rdi, rdi
je 0x180036479
call qword [sym.imp.USER32.dll_GetActiveWindow]
cmp rax, qword [rbx + 0x40]
jne 0x180036479
mov rcx, rdi
call qword [sym.imp.USER32.dll_SetActiveWindow]
mov rax, qword [rbx]
mov rcx, rbx
mov rax, qword [rax + 0xc0]
call qword [case.0x18004530e.0]
mov rcx, rbx
call fcn.1800368f0
movsxd rax, dword [rbx + 0xb8]
add rsp, 0x30
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbx
ret
Function at 0x1800367a4
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 rbx, qword [rcx + 0x100]
xor r14d, r14d
mov rdi, rcx
mov rsi, qword [rcx + 0xf8]
cmp qword [rcx + 0xf0], r14
je 0x18003680b
call fcn.18001fbcc
mov rdx, qword [rdi + 0xf0]
lea r8d, [r14 + 5]
mov rbp, qword [rax + 0x18]
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_FindResourceW]
test rax, rax
je 0x18003680b
mov rdx, rax
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_LoadResource]
mov rsi, rax
test rsi, rsi
je 0x18003681c
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_LockResource]
mov rbx, rax
mov eax, 1
test rbx, rbx
je 0x180036861
mov edx, 0xffff
lea rcx, [rbx + 0xc]
cmp word [rbx + 2], dx
jne 0x180036840
movzx r8d, word [rbx + 0x12]
movzx edx, word [rbx + 0x14]
jmp 0x18003684b
movzx edx, word [rcx]
mov rcx, rbx
movzx r8d, word [rbx + 0xa]
test dword [rcx], 0x1801
jne 0x18003685e
test r8w, r8w
jne 0x18003685e
test dx, dx
je 0x180036861
mov eax, r14d
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 0x180037a0c
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 0x180037a83
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 0x180037a53
call fcn.180023360
mov rcx, qword [rdi + 8]
mov rdx, rbx
call qword [sym.imp.KERNEL32.dll_LoadResource]
mov rbx, rax
test rax, rax
jne 0x180037a6d
call fcn.180023360
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_LockResource]
mov rbx, rax
test rax, rax
jne 0x180037a83
call fcn.180023360
call fcn.18001fbcc
cmp qword [rax + 0x68], 0
je 0x180037a9d
mov rdx, rbx
mov rcx, rbp
call fcn.180037b3c
mov rbx, rax
mov edx, esi
mov rcx, rbx
call fcn.180039254
mov rcx, qword [rbp + 0xf8]
mov rsi, rax
test rcx, rcx
je 0x180037ac4
call qword [sym.imp.KERNEL32.dll_GlobalFree]
and qword [rbp + 0xf8], 0
test rsi, rsi
je 0x180037ad3
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 0x1800388f4
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 rdi, rdx
mov rbx, rcx
call fcn.18002a2d0
xor ebp, ebp
test eax, eax
jne 0x1800389a2
mov rdx, qword [str.AfxClosePending]
mov rcx, qword [rbx + 0x40]
call qword [sym.imp.USER32.dll_GetPropW]
mov rsi, rax
test rax, rax
je 0x1800389c5
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GlobalLock]
test rax, rax
je 0x1800389c5
cmp dword [rax], 1
jne 0x1800389bc
mov rcx, qword [rbx + 0x40]
xor r9d, r9d
xor r8d, r8d
mov edx, 0x476
call qword [sym.imp.USER32.dll_SendMessageW]
test rax, rax
jne 0x1800389bc
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_GlobalUnlock]
mov rdx, qword [str.AfxClosePending]
mov rcx, qword [rbx + 0x40]
call qword [sym.imp.USER32.dll_RemovePropW]
test rax, rax
je 0x18003898f
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GlobalFree]
mov rcx, qword [rbx]
mov rax, qword [rcx + 0xc0]
mov rcx, rbx
call qword [case.0x18004530e.0]
mov eax, 1
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_GlobalUnlock]
cmp dword [rdi + 8], 0x100
jne 0x180038a0c
mov ecx, 0x11
call qword [sym.imp.USER32.dll_GetAsyncKeyState]
test ax, ax
jns 0x180038a0c
mov rax, qword [rdi + 0x10]
cmp rax, 9
je 0x1800389f2
add rax, 0xffffffffffffffdf
cmp rax, 1
ja 0x180038a0c
mov rcx, qword [rbx + 0x40]
mov r9, rdi
xor r8d, r8d
mov edx, 0x475
call qword [sym.imp.USER32.dll_SendMessageW]
test rax, rax
jne 0x1800389a2
mov rdx, rdi
mov rcx, rbx
call fcn.18002bf30
jmp 0x1800389a7

Function at 0x1800395a8
Capabilities:
Delete registry key

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x30
mov rdi, rdx
mov rbx, rcx
mov rcx, qword [rcx + 0x10]
test rcx, rcx
je 0x1800395ce
mov r8, rdx
mov rdx, qword [rbx]
call fcn.1800300c4
jmp 0x18003963a
cmp byte [0x180271e08], 0
jne 0x180039612
lea rcx, str.Advapi32.dll
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x180039602
lea rdx, str.RegDeleteKeyExW
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x180271e00], rax
jmp 0x180039609
mov rax, qword [0x180271e00]
mov byte [0x180271e08], 1
jmp 0x180039619
mov rax, qword [0x180271e00]
mov rdx, rdi
mov rcx, qword [rbx]
test rax, rax
je 0x180039633
xor r9d, r9d
mov r8d, dword [rbx + 8]
call qword [case.0x18004530e.0]
jmp 0x18003963a
call qword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
nop
mov rbx, qword [rsp + 0x40]
add rsp, 0x30
pop rdi
ret

Function at 0x180039f0c
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 0x180039f37
call qword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x180039f42
mov rax, qword [rsp + 0x30]
add rsp, 0x20
pop rbx
ret
lea rcx, [rbx + 0x18]
call fcn.180020378
mov rbx, rax
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
mov rdx, rbx
call fcn.18003e63c
int3