joyce8/EMBER2024-capa huggingface dataset:
Function at 0x14009dde0
Capabilities:
Create thread

Disassembly:
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x58
mov rax, qword [0x1400cd010]
xor rax, rsp
mov qword [rsp + 0x48], rax
mov edx, 8
lea rcx, [rsp + 0x40]
call fcn.1400038e0
mov rdx, qword [rsp + 0x68]
lea rcx, [rsp + 0x40]
call fcn.14009dfa0
nop
lea rax, [0x14009e020]
mov qword [rsp + 0x38], rax
mov rax, qword [rsp + 0x60]
add rax, 8
mov qword [rsp + 0x30], rax
lea rcx, [rsp + 0x40]
call fcn.140004270
mov rcx, qword [rsp + 0x30]
mov qword [rsp + 0x28], rcx
mov dword [rsp + 0x20], 0
mov r9, rax
mov r8, qword [rsp + 0x38]
xor edx, edx
xor ecx, ecx
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__beginthreadex]
mov rcx, qword [rsp + 0x60]
mov qword [rcx], rax
mov rax, qword [rsp + 0x60]
cmp qword [rax], 0
je 0x14009de83
lea rcx, [rsp + 0x40]
call fcn.14009dec0
jmp 0x14009de9b
mov rax, qword [rsp + 0x60]
mov dword [rax + 8], 0
mov ecx, 6
call qword [sym.imp.MSVCP140.dll_void___cdecl_std::_Throw_Cpp_error_int_]
nop
lea rcx, [rsp + 0x40]
call fcn.14009def0
mov rcx, qword [rsp + 0x48]
xor rcx, rsp
call fcn.1400a0b70
add rsp, 0x58
ret

Function at 0x1400a04b4
Capabilities:
Get geographical location

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x40
mov rdi, rdx
lea r8, [rsp + 0x60]
mov ebx, ecx
mov edx, 0x20000001
lea rcx, str._x_sys_default_locale
mov r9d, 2
call qword [sym.imp.KERNEL32.dll_GetLocaleInfoEx]
mov r8d, ebx
mov ecx, 0x1300
neg eax
sbb r9d, r9d
and qword [rsp + 0x30], 0
and r9d, dword [rsp + 0x60]
xor edx, edx
and dword [rsp + 0x28], 0
mov dword [rsp + 0x60], r9d
mov qword [rsp + 0x20], rdi
call qword [sym.imp.KERNEL32.dll_FormatMessageA]
mov edx, eax
test eax, eax
je 0x1400a0538
mov r8, qword [rdi]
dec r8
add r8, rdx
movzx ecx, byte [r8]
lea rax, [0x1400a5dc0]
cmp byte [rcx + rax], 0
je 0x1400a0538
dec r8
sub rdx, 1
jne 0x1400a051e
mov rbx, qword [rsp + 0x50]
mov rax, rdx
add rsp, 0x40
pop rdi
ret

Function at 0x1400a19c4
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x1400a1a0e
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x1400a1a0e
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x1400a1a0e
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x1400a1a0e
cmp dword [rcx + 0x84], 0xe
jbe 0x1400a1a0e
cmp dword [rcx + 0xf8], 0
setne al
jmp 0x1400a1a10
xor al, al
add rsp, 0x28
ret
Function at 0x140001460
Capabilities:
Set registry value

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
push rbp
push rsi
push rdi
sub rsp, 0x50
xor ebp, ebp
lea rax, [rax + 0x20]
mov rsi, r9
mov qword [rax], rbp
mov dword [rax - 8], ebp
mov rdi, r8
mov r9d, 0x2001f
xor r8d, r8d
mov rcx, 0xffffffff80000001
mov qword [rsp + 0x20], rax
mov rbx, rdx
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
je 0x140001515
lea rax, [rsp + 0x80]
lea r9, str.option
xor r8d, r8d
mov qword [rsp + 0x40], rax
lea rax, [rsp + 0x88]
mov rdx, rbx
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x30], rbp
mov rcx, 0xffffffff80000001
mov dword [rsp + 0x28], 0x2001f
mov dword [rsp + 0x20], ebp
call qword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
test eax, eax
jne 0x140001552
lea rax, [rsp + 0x88]
mov r9d, 0x2001f
xor r8d, r8d
mov rdx, rbx
mov rcx, 0xffffffff80000001
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x140001552
mov rbx, qword [rsp + 0x88]
test rbx, rbx
je 0x140001552
mov rdx, qword [rsi]
mov r9d, 1
xor r8d, r8d
mov eax, dword [rdx - 0x10]
mov rcx, rbx
add eax, 1
mov dword [rsp + 0x28], eax
mov qword [rsp + 0x20], rdx
mov rdx, qword [rdi]
call qword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rdx, qword [rdi]
sub rdx, 0x18
or ebx, 0xffffffff
mov eax, ebx
lock xadd dword [rdx + 0x10], eax
add eax, ebx
test eax, eax
jg 0x140001572
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.oledlg.dll_OleUIBusyA]
mov rdx, qword [rsi]
sub rdx, 0x18
lock xadd dword [rdx + 0x10], ebx
add ebx, 0xffffffff
test ebx, ebx
jg 0x14000158e
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.oledlg.dll_OleUIBusyA]
mov rbx, qword [rsp + 0x70]
add rsp, 0x50
pop rdi
pop rsi
pop rbp
ret
Function at 0x140001810
Capabilities:
Check os version

Disassembly:
sub rsp, 0xd8
mov rax, qword [0x14007b960]
xor rax, rsp
mov qword [rsp + 0xc0], rax
lea rcx, [rsp + 0x20]
xor edx, edx
mov r8d, 0x9c
call fcn.1400421c0
lea rcx, [rsp + 0x20]
mov dword [rsp + 0x20], 0x9c
call qword [sym.imp.KERNEL32.dll_GetVersionExA]
cmp eax, 1
jne 0x14000195b
mov eax, dword [rsp + 0x24]
cmp eax, 5
jne 0x1400018d8
mov eax, dword [rsp + 0x28]
test eax, eax
jne 0x140001885
mov eax, 1
mov rcx, qword [rsp + 0xc0]
xor rcx, rsp
call fcn.14003dbe0
add rsp, 0xd8
ret
cmp eax, 1
jne 0x1400018a7
mov eax, 2
mov rcx, qword [rsp + 0xc0]
xor rcx, rsp
call fcn.14003dbe0
add rsp, 0xd8
ret
cmp eax, 2
jne 0x14000193e
xor eax, eax
cmp byte [rsp + 0xba], 1
setne al
add eax, 2
mov rcx, qword [rsp + 0xc0]
xor rcx, rsp
call fcn.14003dbe0
add rsp, 0xd8
ret
cmp eax, 6
jne 0x14000193e
mov ecx, dword [rsp + 0x28]
mov eax, 4
test ecx, ecx
jne 0x140001912
xor eax, eax
cmp byte [rsp + 0xba], 1
setne al
add eax, 4
mov rcx, qword [rsp + 0xc0]
xor rcx, rsp
call fcn.14003dbe0
add rsp, 0xd8
ret
cmp ecx, 1
jne 0x14000195d
xor eax, eax
cmp byte [rsp + 0xba], cl
sete al
add eax, 6
mov rcx, qword [rsp + 0xc0]
xor rcx, rsp
call fcn.14003dbe0
add rsp, 0xd8
ret
mov eax, 8
mov rcx, qword [rsp + 0xc0]
xor rcx, rsp
call fcn.14003dbe0
add rsp, 0xd8
ret
xor eax, eax
mov rcx, qword [rsp + 0xc0]
xor rcx, rsp
call fcn.14003dbe0
add rsp, 0xd8
ret
Function at 0x140001980
Capabilities:
Check if file exists
Delete file
Get common file path
Get file attributes

Disassembly:
mov qword [rsp + 0x10], rbx
push rdi
sub rsp, reloc.wsnmp32.dll_SnmpCreatePdu
mov rax, qword [0x14007b960]
xor rax, rsp
mov qword [rsp + 0x180], rax
mov rdi, rcx
mov rdx, rcx
lea rcx, [rsp + 0x70]
xor ebx, ebx
call qword [sym.imp.KERNEL32.dll_lstrcpyA]
lea rcx, [rsp + 0x70]
call qword [sym.imp.SHLWAPI.dll_PathRemoveBackslashA]
lea rcx, [rsp + 0x70]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x140001afe
test al, 0x10
je 0x140001afe
lea r9, [rsp + 0x70]
lea rdx, [0x140066438]
xor r8d, r8d
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_GetTempFileNameA]
test eax, eax
je 0x140001afe
lea r8, [0x14006643c]
lea rdx, [rsp + 0x70]
lea rcx, [rsp + 0x20]
call fcn.14003dd60
mov r9, qword [rsp + 0x20]
test r9, r9
je 0x140001afe
mov rax, qword [str.DummyData]
lea rcx, [rsp + 0x48]
mov edi, 1
mov qword [rcx], rax
movzx eax, word [0x140066448]
lea edx, [rbx + 0x20]
mov word [rcx + 8], ax
xor eax, eax
lea rcx, [rsp + 0x48]
mov r8, rdi
mov qword [rsp + 0x52], rax
mov qword [rsp + 0x5a], rax
mov dword [rsp + 0x62], eax
mov word [rsp + 0x66], ax
call fcn.14003df90
mov rcx, qword [rsp + 0x20]
call fcn.14003e100
lea r8, [0x14006644c]
lea rdx, [rsp + 0x70]
lea rcx, [rsp + 0x20]
call fcn.14003dd60
mov r9, qword [rsp + 0x20]
test r9, r9
je 0x140001af3
xor eax, eax
lea edx, [rbx + 0x20]
lea rcx, [rsp + 0x28]
mov r8, rdi
mov byte [rsp + 0x28], bl
mov qword [rsp + 0x29], rax
mov qword [rsp + 0x31], rax
mov qword [rsp + 0x39], rax
mov dword [rsp + 0x41], eax
mov word [rsp + 0x45], ax
mov byte [rsp + 0x47], al
call fcn.14003e560
lea r11, [rsp + 0x48]
lea rdx, [rsp + 0x28]
sub rdx, r11
nop
nop
movzx ecx, byte [r11]
movzx eax, byte [r11 + rdx]
sub ecx, eax
jne 0x140001ae4
add r11, rdi
test eax, eax
jne 0x140001ad0
test ecx, ecx
mov rcx, qword [rsp + 0x20]
cmove ebx, edi
call fcn.14003e100
lea rcx, [rsp + 0x70]
call qword [sym.imp.KERNEL32.dll_DeleteFileA]
mov eax, ebx
mov rcx, qword [rsp + 0x180]
xor rcx, rsp
call fcn.14003dbe0
mov rbx, qword [rsp + 0x1a8]
add rsp, reloc.wsnmp32.dll_SnmpCreatePdu
pop rdi
ret
Function at 0x140002df0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
push rsi
push rdi
push r12
sub rsp, 0x40
mov eax, r8d
mov rsi, rdx
mov ebx, r8d
shr eax, 4
mov rbp, rcx
mov r8d, 6
add ax, 1
mov rcx, rsi
movzx edx, ax
call qword [sym.imp.KERNEL32.dll_FindResourceA]
test rax, rax
mov r12, rax
je 0x140002f59
mov rdx, rax
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_LoadResource]
test rax, rax
je 0x140002f59
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_LockResource]
test rax, rax
mov rdi, rax
je 0x140002f59
mov rdx, r12
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_SizeofResource]
mov r11d, eax
add r11, rdi
and ebx, 0xf
jbe 0x140002e8a
cmp rdi, r11
jae 0x140002f59
add ebx, 0xffffffff
movzx eax, word [rdi]
lea rdi, [rdi + rax*2 + 2]
jne 0x140002e74
cmp rdi, r11
jae 0x140002f59
movzx eax, word [rdi]
test ax, ax
je 0x140002f59
mov qword [rsp + 0x60], r13
movzx ebx, ax
call qword [0x14007d280]
xor r13d, r13d
lea r12, [rdi + 2]
mov r9d, ebx
mov qword [rsp + 0x38], r13
mov qword [rsp + 0x30], r13
mov ecx, eax
mov r8, r12
xor edx, edx
mov dword [rsp + 0x28], r13d
mov qword [rsp + 0x20], r13
call qword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
mov rcx, qword [rbp]
mov edx, 1
movsxd rsi, eax
sub edx, dword [rcx - 8]
mov ecx, dword [rcx - 0xc]
sub ecx, esi
or edx, ecx
jge 0x140002efa
mov edx, esi
mov rcx, rbp
call fcn.140002a70
mov rbx, qword [rbp]
movzx edi, word [rdi]
call qword [0x14007d280]
mov qword [rsp + 0x38], r13
mov qword [rsp + 0x30], r13
mov ecx, eax
mov r9d, edi
mov r8, r12
xor edx, edx
mov dword [rsp + 0x28], esi
mov qword [rsp + 0x20], rbx
call qword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
test esi, esi
mov r13, qword [rsp + 0x60]
js 0x140002f4e
mov rcx, qword [rbp]
cmp esi, dword [rcx - 0xc]
jg 0x140002f4e
mov dword [rcx - 0x10], esi
mov rcx, qword [rbp]
mov eax, 1
mov byte [rsi + rcx], 0
jmp 0x140002f5b
mov ecx, 0x80070057
call fcn.140002a50
int3
xor eax, eax
mov rbx, qword [rsp + 0x68]
mov rbp, qword [rsp + 0x70]
add rsp, 0x40
pop r12
pop rdi
pop rsi
ret

Function at 0x140002f70
Capabilities:
Extract resource via kernel32 functions

Disassembly:
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
jne 0x140002fa3
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret
mov rcx, rax
mov qword [rsp + 0x30], rbx
call qword [sym.imp.KERNEL32.dll_LockResource]
test rax, rax
mov rbx, rax
je 0x140002fe7
mov rdx, rsi
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_SizeofResource]
mov r11d, eax
add r11, rbx
and edi, 0xf
jbe 0x140002fe2
cmp rbx, r11
jae 0x140002fe7
add edi, 0xffffffff
movzx eax, word [rbx]
lea rbx, [rbx + rax*2 + 2]
jne 0x140002fd0
cmp rbx, r11
jb 0x140002feb
xor eax, eax
jmp 0x140002ff7
xor eax, eax
cmp word [rbx], ax
cmove rbx, rax
mov rax, rbx
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret
Function at 0x1400049a0
Capabilities:
Get local ipv4 addresses

Disassembly:
mov qword [rsp + 0x20], rbp
push rdi
sub rsp, 0x170
mov rax, qword [0x14007b960]
xor rax, rsp
mov qword [rsp + 0x160], rax
mov rbp, rcx
lea rcx, [rsp + 0x50]
xor edi, edi
xor edx, edx
mov r8d, 0x108
mov dword [rsp + 0x40], edi
call fcn.1400421c0
lea r11, [rsp + 0x40]
lea ecx, [rdi + 0x17]
xor r9d, r9d
xor r8d, r8d
xor edx, edx
mov qword [rsp + 0x20], r11
call sub.iphlpapi.dll_GetAdaptersAddresses
cmp eax, 0x6f
je 0x140004a01
or eax, 0xffffffff
jmp 0x140004ae8
mov ecx, dword [rsp + 0x40]
mov qword [rsp + reloc.wsnmp32.dll_SnmpCreatePdu], rsi
call fcn.14003f790
test rax, rax
mov rsi, rax
jne 0x140004a22
or edi, 0xffffffff
jmp 0x140004ad1
xor edx, edx
lea rax, [rsp + 0x40]
mov r9, rsi
lea ecx, [rdx + 0x17]
xor r8d, r8d
mov qword [rsp + 0x20], rax
call sub.iphlpapi.dll_GetAdaptersAddresses
test eax, eax
je 0x140004a48
or edi, 0xffffffff
jmp 0x140004ad1
mov qword [rsp + 0x188], rbx
mov rbx, rsi
mov eax, dword [rbx + 0x64]
cmp eax, 0x17
je 0x140004ac0
cmp eax, 0x18
je 0x140004ac0
cmp eax, 0x25
je 0x140004ac0
cmp eax, 0x83
je 0x140004ac0
mov eax, dword [rbx + 0x68]
cmp eax, 2
je 0x140004ac0
cmp eax, 6
je 0x140004ac0
cmp eax, 7
je 0x140004ac0
mov eax, dword [rbx + 0x6c]
mov qword [rsp + 0x38], rdi
mov qword [rsp + 0x30], rdi
mov dword [rsp + 0x50], eax
mov r8, qword [rbx + 0x48]
lea rax, [rsp + 0x54]
or r9d, 0xffffffff
xor edx, edx
xor ecx, ecx
mov dword [rsp + 0x28], 0x104
mov qword [rsp + 0x20], rax
call qword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
lea rdx, [rsp + 0x50]
mov rcx, rbp
call fcn.140004ce0
mov rbx, qword [rbx + 8]
test rbx, rbx
jne 0x140004a53
mov rbx, qword [rsp + 0x188]
test rsi, rsi
je 0x140004ade
mov rcx, rsi
call fcn.14003f860
mov rsi, qword [rsp + reloc.wsnmp32.dll_SnmpCreatePdu]
mov eax, edi
mov rcx, qword [rsp + 0x160]
xor rcx, rsp
call fcn.14003dbe0
mov rbp, qword [rsp + 0x198]
add rsp, 0x170
pop rdi
ret
Function at 0x140017ce0
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 r12
push r13
push r14
sub rsp, 0x20
xor esi, esi
xor ebx, ebx
test r8, r8
mov r12, r9
mov rdi, r8
mov rbp, rdx
mov r14, rcx
je 0x140017d52
call fcn.140019d18
mov r8d, 0xf0
mov rdx, rdi
mov r13, qword [rax + 0x18]
mov rcx, r13
call qword [sym.imp.KERNEL32.dll_FindResourceA]
test rax, rax
je 0x140017d52
mov rdx, rax
mov rcx, r13
call qword [sym.imp.KERNEL32.dll_LoadResource]
test rax, rax
mov rbx, rax
je 0x140017d9f
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_LockResource]
mov rsi, rax
test rsi, rsi
mov edi, 1
je 0x140017d7f
mov r10, qword [r14]
mov r9, r12
mov r8, rsi
mov rdx, rbp
mov rcx, r14
call qword [r10 + 0x40]
test rbx, rbx
mov edi, eax
je 0x140017d7f
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeResource]
cmp qword [rbp + 0x98], 0
je 0x140017d9d
mov rcx, qword [rbp + 0x98]
mov rdx, r12
mov r8, qword [rcx]
call qword [r8 + 0x140]
mov eax, edi
mov rbx, qword [rsp + 0x40]
mov rbp, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
mov rdi, qword [rsp + 0x58]
add rsp, 0x20
pop r14
pop r13
pop r12
ret

Function at 0x14001a808
Capabilities:
Delete registry key
Query or enumerate registry key

Disassembly:
mov rax, rsp
push rdi
sub rsp, 0x180
mov qword [rsp + 0x48], 0xfffffffffffffffe
mov qword [rax + 0x18], rbx
mov qword [rax + 0x20], rsi
mov rax, qword [0x14007b960]
xor rax, rsp
mov qword [rsp + 0x170], rax
mov rsi, rdx
mov rdi, rcx
mov qword [rsp + 0x38], rcx
mov qword [rsp + 0x40], rdx
lea r8, [rsp + 0x30]
mov rdx, qword [rdx]
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
mov ebx, eax
test eax, eax
jne 0x14001a907
mov r9d, 0x104
lea r8, [rsp + 0x60]
xor edx, edx
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.ADVAPI32.dll_RegEnumKeyA]
mov ebx, eax
test eax, eax
jne 0x14001a8de
lea rdx, [rsp + 0x60]
lea rcx, [rsp + 0x28]
call fcn.140002d10
nop
lea rdx, [rsp + 0x28]
mov rcx, qword [rsp + 0x30]
call fcn.14001a808
mov ebx, eax
test eax, eax
setne byte [rsp + 0x20]
mov rdx, qword [rsp + 0x28]
add rdx, 0xffffffffffffffe8
or eax, 0xffffffff
lock xadd dword [rdx + 0x10], eax
add eax, 0xffffffff
test eax, eax
jg 0x14001a8c5
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.oledlg.dll_OleUIBusyA]
cmp byte [rsp + 0x20], 0
je 0x14001a8ce
jmp 0x14001a8de
jmp 0x14001a85e
cmp ebx, 0x103
je 0x14001a8ee
cmp ebx, 0x3f2
jne 0x14001a8fc
mov rdx, qword [rsi]
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_RegDeleteKeyA]
mov ebx, eax
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, ebx
mov rcx, qword [rsp + 0x170]
xor rcx, rsp
call fcn.14003dbe0
lea r11, [rsp + 0x180]
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rsp, r11
pop rdi
ret
Function at 0x14001bd30
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 rcx, qword [rcx + 0x40]
mov rbx, r8
call fcn.140028bf0
test rax, rax
mov rsi, rax
je 0x14001bdad
mov rcx, rax
call qword [sym.imp.USER32.dll_GetDlgCtrlID]
test rbx, rbx
movzx edi, ax
je 0x14001bda8
cmp dword [rbx], 0x38
jb 0x14001bda8
mov rax, qword [rbp + 0x40]
or dword [rbx + 4], 1
or qword [rbx + 0x30], 0xffffffffffffffff
xor r9d, r9d
xor r8d, r8d
mov edx, 0x87
mov rcx, rsi
mov qword [rbx + 8], rax
mov qword [rbx + 0x10], rsi
call qword [sym.imp.USER32.dll_SendMessageA]
bt rax, 0xd
jb 0x14001bda8
or dword [rbx + 4], 0x80000002
mov rax, rdi
jmp 0x14001bdb1
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 0x14001cbe4
Capabilities:
Log keystrokes via polling

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
mov edi, ecx
call fcn.140019d68
mov rbx, rax
mov rax, qword [rax + 0x78]
test rax, rax
je 0x14001cc1b
mov rcx, qword [rax + 0x40]
test rcx, rcx
je 0x14001cc1b
xor r9d, r9d
xor r8d, r8d
mov edx, 0x401
call qword [sym.imp.USER32.dll_SendMessageA]
test edi, edi
mov rbx, qword [rbx + 0xa0]
je 0x14001cc4b
test rbx, rbx
je 0x14001cc4b
mov ecx, 1
call qword [sym.imp.USER32.dll_GetKeyState]
test ax, ax
js 0x14001cc4b
mov rax, qword [rbx]
or rdx, 0xffffffffffffffff
mov rcx, rbx
call qword [rax + 0x2d0]
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret

Function at 0x1400200a8
Capabilities:
Get graphical window text

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x20
cmp qword [rcx + 0xa0], 0
mov rbx, rdx
mov rsi, rcx
jne 0x14002015e
mov rcx, qword [rcx + 0x40]
call qword [sym.imp.USER32.dll_GetWindowTextLengthA]
mov r8, qword [rbx]
mov edx, 1
mov ecx, dword [r8 - 0xc]
sub edx, dword [r8 - 8]
movsxd rdi, eax
sub ecx, edi
or edx, ecx
jge 0x1400200f8
mov edx, edi
mov rcx, rbx
call fcn.140002a70
test edi, edi
mov rdx, qword [rbx]
js 0x140020153
cmp edi, dword [rdx - 0xc]
jg 0x140020153
mov dword [rdx - 0x10], edi
mov rax, qword [rbx]
lea r8d, [rdi + 1]
mov byte [rdi + rax], 0
mov rcx, qword [rsi + 0x40]
call qword [sym.imp.USER32.dll_GetWindowTextA]
mov rcx, qword [rbx]
test rcx, rcx
jne 0x140020128
xor eax, eax
jmp 0x140020131
call fcn.1400413c0
test eax, eax
js 0x140020148
mov rcx, qword [rbx]
cmp eax, dword [rcx - 0xc]
jg 0x140020148
mov dword [rcx - 0x10], eax
movsxd rcx, eax
mov rax, qword [rbx]
mov byte [rcx + rax], 0
jmp 0x14002016e
mov ecx, 0x80070057
call fcn.140002a50
int3
mov ecx, 0x80070057
call fcn.140002a50
int3
mov rcx, qword [rcx + 0xa0]
mov rax, qword [rcx]
call qword [rax + 0x118]
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret
Function at 0x140022a24
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 r12
sub rsp, 0x20
xor edi, edi
xor ebx, ebx
test rdx, rdx
mov rsi, rdx
mov rbp, rcx
je 0x140022a8c
call fcn.140019d18
mov r8d, 0xf0
mov rdx, rsi
mov r12, qword [rax + 0x18]
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_FindResourceA]
test rax, rax
je 0x140022a8c
mov rdx, rax
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_LoadResource]
test rax, rax
mov rbx, rax
je 0x140022aae
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_LockResource]
mov rdi, rax
mov rdx, rdi
mov rcx, rbp
call fcn.140022480
test rdi, rdi
mov esi, eax
je 0x140022aac
test rbx, rbx
je 0x140022aac
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeResource]
mov eax, esi
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
mov rdi, qword [rsp + 0x48]
add rsp, 0x20
pop r12
ret

Function at 0x1400231b0
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
cmp qword [rcx + 0xb0], 0
mov rdi, qword [rcx + 0xc0]
mov rbp, qword [rcx + 0xb8]
mov rsi, rcx
je 0x14002320d
call fcn.140019d18
mov rdx, qword [rsi + 0xb0]
mov r8d, 5
mov rbx, qword [rax + 0x18]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FindResourceA]
mov rcx, rbx
mov rdx, rax
call qword [sym.imp.KERNEL32.dll_LoadResource]
mov rbp, rax
test rbp, rbp
je 0x14002321e
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_LockResource]
mov rdi, rax
test rdi, rdi
mov ebx, 1
je 0x14002325b
cmp word [rdi + 2], 0xffff
mov ecx, dword [rdi]
jne 0x14002323f
mov ecx, dword [rdi + 0xc]
movzx edx, word [rdi + 0x12]
movzx eax, word [rdi + 0x14]
jmp 0x140023247
mov dx, word [rdi + 0xa]
mov ax, word [rdi + 0xc]
test ecx, 0x1801
jne 0x140023259
test dx, dx
jne 0x140023259
test ax, ax
je 0x14002325b
xor ebx, ebx
cmp qword [rsi + 0xb0], 0
je 0x14002326e
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_FreeResource]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
mov eax, ebx
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret

Function at 0x1400239c4
Capabilities:
Extract resource via kernel32 functions

Disassembly:
movzx edx, dx
jmp method.CDialog.virtual_624
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
test rdx, 0xffffffffffff0000
mov rbp, r8
mov rdi, rdx
mov rsi, rcx
mov qword [rcx + 0xb0], rdx
jne 0x140023a03
cmp dword [rcx + 0xa8], 0
jne 0x140023a03
movzx eax, dx
mov dword [rcx + 0xa8], eax
call fcn.140019d18
mov r8d, 5
mov rdx, rdi
mov rbx, qword [rax + 0x18]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FindResourceA]
mov rcx, rbx
mov rdx, rax
call qword [sym.imp.KERNEL32.dll_LoadResource]
mov r9, rbx
mov r8, rbp
mov rdx, rax
mov rcx, rsi
mov rdi, rax
call fcn.140023968
mov rcx, rdi
mov ebx, eax
call qword [sym.imp.KERNEL32.dll_FreeResource]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
mov eax, ebx
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret