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

Disassembly:
mov qword [rsp + 8], rbx
mov dword [rsp + 0x20], r9d
mov dword [rsp + 0x10], edx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x40
movzx ebx, dx
xor r15d, r15d
mov r14d, r9d
mov rbp, r8
mov r12d, edx
mov rdi, rcx
cmp rbx, r15
jne 0x140033e82
call fcn.1400124d4
int3
call fcn.140058530
mov r8d, 0xf1
mov rdx, rbx
mov rsi, qword [rax + 0x18]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_FindResourceW]
cmp rax, r15
jne 0x140033ea9
xor eax, eax
jmp 0x140034043
mov rdx, rax
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_LoadResource]
mov r13, rax
mov qword [rsp + 0x30], rax
cmp rax, r15
je 0x140033ea2
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_LockResource]
mov rbx, rax
cmp rax, r15
je 0x140033ea2
movzx ecx, word [rax + 6]
mov eax, 4
mul rcx
mov rcx, 0xffffffffffffffff
cmovo rax, rcx
mov rcx, rax
call fcn.140006b8c
xor r9d, r9d
mov r15, rax
cmp rax, r9
jne 0x140033f03
call fcn.1400124d4
int3
movzx eax, word [rbx + 2]
movzx ecx, word [rbx + 4]
cmp r14d, r9d
je 0x140033f3a
mov dword [rsp + 0x20], eax
add eax, 6
mov dword [rsp + 0x24], ecx
mov r8, qword [rsp + 0x20]
mov dword [rsp + 0x28], eax
lea eax, [rcx + 6]
mov dword [rsp + 0x2c], eax
mov rdx, qword [rsp + 0x28]
mov rcx, rdi
call fcn.14002a4a0
jmp 0x140033f5f
mov dword [rsp + 0x28], eax
add eax, 6
mov dword [rsp + 0x2c], ecx
mov rdx, qword [rsp + 0x28]
mov dword [rsp + 0x20], eax
lea eax, [rcx + 6]
mov dword [rsp + 0x24], eax
mov rcx, qword [rsp + 0x20]
call fcn.14002a394
mov esi, 1
cmp dword [rbp + 4], r9d
jne 0x140033f6e
mov dword [rbp + 4], r12d
cmp dword [rdi + 0x1200], r9d
jne 0x140033f95
mov rax, qword [rdi]
mov r8d, r14d
mov rdx, rbp
mov rcx, rdi
call qword [rax + 0x620]
xor r9d, r9d
cmp eax, r9d
je 0x140034030
mov eax, dword [rdi + 0x104c]
mov r14d, r9d
mov dword [rsp + 0x20], eax
cmp r9w, word [rbx + 6]
jae 0x140034006
mov r13d, dword [rsp + 0x98]
mov rbp, r15
lea r12, [rbx + 8]
movzx edx, word [r12]
mov dword [rbp], edx
cmp r13d, r9d
jne 0x140033fe5
cmp edx, r9d
jbe 0x140033fe5
lea rcx, vtable.CMap_unsigned_int__unsigned_int__int__int_.0
call fcn.1400c1ed8
mov ecx, dword [rsp + 0x20]
mov dword [rax], ecx
add ecx, esi
xor r9d, r9d
mov dword [rsp + 0x20], ecx
movzx eax, word [rbx + 6]
add r14d, esi
add r12, 2
add rbp, 4
cmp r14d, eax
jl 0x140033fb8
mov r13, qword [rsp + 0x30]
mov r12d, dword [rsp + 0x88]
mov rax, qword [rdi]
mov dword [rdi + 0x1200], r12d
movzx r8d, word [rbx + 6]
mov r9d, esi
mov rdx, r15
mov rcx, rdi
call qword [rax + 0x630]
mov esi, eax
test eax, eax
jne 0x140034030
and dword [rdi + 0x1200], eax
mov rcx, r15
call fcn.140006bd8
mov rcx, r13
call qword [sym.imp.KERNEL32.dll_FreeResource]
mov eax, esi
mov rbx, qword [rsp + 0x80]
add rsp, 0x40
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
Function at 0x1400383ac
Capabilities:
Log keystrokes via polling

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
cmp dword [rdx + 8], 0x100
mov rbp, rdx
mov rbx, rcx
jne 0x140038493
xor edx, edx
call fcn.14002b84c
mov rcx, rbx
test rax, rax
je 0x1400383f4
mov rdx, rbp
call fcn.1400ccb24
jmp 0x14003849e
call fcn.14002b294
cmp dword [rbx + 0x128c], 0
mov esi, eax
je 0x14003840a
sub esi, dword [rbx + 0x1280]
mov r12d, dword [rbx + 0x1038]
test r12d, r12d
js 0x140038493
cmp r12d, esi
jge 0x140038493
mov edi, dword [rbp + 0x10]
cmp edi, 9
jne 0x140038438
lea ecx, [rdi + 7]
call qword [sym.imp.USER32.dll_GetKeyState]
and al, 0x80
neg al
sbb edi, edi
and edi, 0xfffffffe
add edi, 0x27
mov rcx, rbx
call fcn.14000f8e0
bt eax, 0x16
jae 0x14003845a
mov eax, 0x25
cmp edi, eax
jne 0x140038454
lea edi, [rax + 2]
jmp 0x14003845a
cmp edi, 0x27
cmove edi, eax
sub edi, 0xd
je 0x14003855f
sub edi, 0xe
je 0x14003853a
sub edi, 0xa
je 0x140038526
sub edi, 2
je 0x1400384d6
mov rcx, rbx
cmp edi, 1
je 0x1400384b9
mov r8, qword [rbx]
mov edx, dword [rbp + 0x10]
call qword [r8 + 0x6e0]
test eax, eax
jne 0x1400384cf
mov rdx, rbp
mov rcx, rbx
call fcn.1400367d0
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
mov edx, dword [rbx + 0x1038]
call fcn.14002aa40
mov rcx, rbx
mov rdx, rax
call fcn.14002f190
mov eax, 1
jmp 0x14003849e
inc dword [rbx + 0x1038]
cmp dword [rbx + 0x1038], esi
jl 0x1400384eb
and dword [rbx + 0x1038], 0
mov edx, r12d
mov rcx, rbx
call fcn.14002ce10
mov edx, dword [rbx + 0x1038]
mov rcx, rbx
call fcn.14002ce10
mov rcx, qword [rbx + 0x40]
call qword [sym.imp.USER32.dll_UpdateWindow]
mov r11, qword [rbx]
mov edx, dword [rbx + 0x1038]
mov rcx, rbx
call qword [r11 + 0x468]
jmp 0x140038493
add dword [rbx + 0x1038], 0xffffffff
jns 0x1400384eb
lea eax, [rsi - 1]
mov dword [rbx + 0x1038], eax
jmp 0x1400384eb
mov rax, qword [rbx]
mov rcx, rbx
call qword [rax + 0x678]
mov r11, qword [rbx]
mov rcx, rbx
call qword [r11 + 0x680]
and dword [0x140255d00], 0
jmp 0x140038493
mov edx, dword [rbx + 0x1038]
mov rcx, rbx
call fcn.14002aa40
mov rcx, rbx
mov rdx, rax
call fcn.14002f190
test eax, eax
jne 0x1400384cf
mov edx, dword [rbx + 0x1038]
mov rcx, rbx
call fcn.14002aa40
mov rcx, rbx
mov rdx, rax
call fcn.140031a88
jmp 0x1400384cf
Function at 0x14003ff1c
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
push r12
push r13
sub rsp, 0x20
xor ebx, ebx
mov rdi, r8
mov rsi, rdx
mov r13, rcx
cmp dword [0x1402567a8], ebx
jne 0x14003ff4b
xor eax, eax
jmp 0x14003ffc0
cmp r8, rbx
jne 0x14003ff59
call fcn.140058530
mov rdi, qword [rax + 0x18]
mov r8, qword [0x140255e48]
mov rdx, rsi
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_FindResourceW]
mov rbp, rax
cmp rax, rbx
je 0x14003ff47
mov rdx, rax
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_LoadResource]
mov rsi, rax
cmp rax, rbx
je 0x14003ff47
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_LockResource]
mov r12, rax
cmp rax, rbx
je 0x14003ffb5
mov rdx, rbp
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_SizeofResource]
mov rdx, r12
mov rcx, r13
mov r8d, eax
call fcn.14003fdd8
mov ebx, eax
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_FreeResource]
mov eax, ebx
mov rbx, qword [rsp + 0x40]
mov rbp, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
add rsp, 0x20
pop r13
pop r12
pop rdi
ret
Function at 0x140058600
Capabilities:
Move file

Disassembly:
push rbx
sub rsp, 0x20
mov rbx, rcx
call qword [sym.imp.KERNEL32.dll_MoveFileW]
test eax, eax
jne 0x140058623
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov rdx, rbx
mov ecx, eax
call fcn.1400c40e4
add rsp, 0x20
pop rbx
ret

Function at 0x14005862c
Capabilities:
Delete file

Disassembly:
push rbx
sub rsp, 0x20
mov rbx, rcx
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x14005864f
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov rdx, rbx
mov ecx, eax
call fcn.1400c40e4
add rsp, 0x20
pop rbx
ret

Function at 0x140060b94
Capabilities:
Link many functions at runtime

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
xor edi, edi
lea rax, vtable.CMFCBaseVisualManager.0
mov rbx, rcx
mov qword [rcx], rax
mov qword [rcx + 8], rdi
mov qword [rcx + 0x10], rdi
mov qword [rcx + 0x20], rdi
mov qword [rcx + 0x28], rdi
mov qword [rcx + 0x18], rdi
mov qword [rcx + 0x30], rdi
mov qword [rcx + 0x38], rdi
mov qword [rcx + 0x40], rdi
mov qword [rcx + 0x48], rdi
mov qword [rcx + 0x50], rdi
mov qword [rcx + 0x58], rdi
mov qword [rcx + 0x60], rdi
mov qword [rcx + 0x68], rdi
mov qword [rcx + 0x70], rdi
mov qword [rcx + 0x78], rdi
mov qword [rcx + 0x80], rdi
mov qword [rcx + 0x88], rdi
lea rcx, str.UxTheme.dll
call fcn.14005878c
mov qword [rbx + 0x90], rax
cmp rax, rdi
je 0x140060cd6
lea rdx, str.OpenThemeData
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, qword [rbx + 0x90]
lea rdx, str.CloseThemeData
mov qword [rbx + 0x98], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, qword [rbx + 0x90]
lea rdx, str.DrawThemeBackground
mov qword [rbx + 0xa0], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, qword [rbx + 0x90]
lea rdx, str.GetThemeColor
mov qword [rbx + 0xa8], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, qword [rbx + 0x90]
lea rdx, str.GetThemeSysColor
mov qword [rbx + 0xb0], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, qword [rbx + 0x90]
lea rdx, str.GetCurrentThemeName
mov qword [rbx + 0xb8], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, qword [rbx + 0x90]
lea rdx, str.GetWindowTheme
mov qword [rbx + 0xc0], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, rbx
mov qword [rbx + 0xc8], rax
call fcn.140060370
jmp 0x140060d07
mov qword [rbx + 0x98], rdi
mov qword [rbx + 0xa0], rdi
mov qword [rbx + 0xa8], rdi
mov qword [rbx + 0xb0], rdi
mov qword [rbx + 0xb8], rdi
mov qword [rbx + 0xc0], rdi
mov qword [rbx + 0xc8], rdi
mov rax, rbx
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret
Function at 0x1400947b0
Capabilities:
Link many functions at runtime

Disassembly:
push rbx
sub rsp, 0x20
mov rbx, rcx
lea rcx, str.UxTheme.dll
call fcn.14005878c
mov qword [rbx + 0x2b8], rax
test rax, rax
je 0x14009483b
lea rdx, str.DrawThemeParentBackground
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, qword [rbx + 0x2b8]
lea rdx, str.DrawThemeTextEx
mov qword [rbx + 0x2d8], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, qword [rbx + 0x2b8]
lea rdx, str.BeginBufferedPaint
mov qword [rbx + 0x2e0], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, qword [rbx + 0x2b8]
lea rdx, str.EndBufferedPaint
mov qword [rbx + 0x2e8], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [rbx + 0x2f0], rax
jmp 0x14009485b
and qword [rbx + 0x2d8], 0
and qword [rbx + 0x2e0], 0
and qword [rbx + 0x2e8], 0
and qword [rbx + 0x2f0], 0
lea rcx, [0x1401cfd30]
call fcn.14005878c
cmp dword [rbx + 0x258], 0
mov qword [rbx + 0x2c0], rax
jne 0x140094881
and qword [rbx + 0x2d0], 0
jmp 0x1400948a1
test rax, rax
je 0x140094944
lea rdx, str.SetLayeredWindowAttributes
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [rbx + 0x2d0], rax
cmp qword [rbx + 0x2c8], 0
je 0x140094916
lea rcx, str.dwmapi.dll
call fcn.14005878c
mov qword [rbx + 0x2c8], rax
test rax, rax
jne 0x1400948c9
call fcn.1400124d4
int3
lea rdx, str.DwmExtendFrameIntoClientArea
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, qword [rbx + 0x2c8]
lea rdx, str.DwmDefWindowProc
mov qword [rbx + 0x2f8], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, qword [rbx + 0x2c8]
lea rdx, str.DwmIsCompositionEnabled
mov qword [rbx + 0x300], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [rbx + 0x308], rax
cmp dword [rbx + 0x274], 0
je 0x140094929
mov dword [rbx + 0x274], 1
call fcn.14007eadc
mov rcx, qword [0x140256188]
test rcx, rcx
je 0x14009493f
call fcn.140060b0c
mov eax, 1
add rsp, 0x20
pop rbx
ret
Function at 0x1400a1014
Capabilities:
Delete registry key

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
cmp byte [0x140256c90], 0
mov rdi, rdx
mov rbx, rcx
jne 0x1400a1068
lea rcx, str.Advapi32.dll
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x1400a1058
lea rdx, str.RegDeleteKeyExW
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x140256c88], rax
jmp 0x1400a105f
mov rax, qword [0x140256c88]
mov byte [0x140256c90], 1
jmp 0x1400a106f
mov rax, qword [0x140256c88]
mov rcx, qword [rbx]
mov rdx, rdi
test rax, rax
je 0x1400a1085
mov r8d, dword [rbx + 8]
xor r9d, r9d
call rax
jmp 0x1400a108b
call qword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret

Function at 0x1400a1204
Capabilities:
Set registry value

Disassembly:
push rbx
sub rsp, 0x30
xor ebx, ebx
cmp dword [rcx + 0x20], ebx
je 0x1400a1215
xor eax, eax
jmp 0x1400a1243
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]
cmp eax, ebx
sete bl
mov eax, ebx
add rsp, 0x30
pop rbx
ret

Function at 0x1400a124c
Capabilities:
Set registry value

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x30
xor ebx, ebx
mov rdi, r8
mov rbp, rdx
mov rsi, rcx
cmp dword [rcx + 0x20], ebx
je 0x1400a1274
xor eax, eax
jmp 0x1400a12b3
cmp r8, rbx
jne 0x1400a1280
mov eax, SafeArrayGetDim
jmp 0x1400a12ac
mov rcx, r8
call qword [sym.imp.KERNEL32.dll_lstrlenW]
mov rcx, qword [rsi + 8]
mov r9d, 1
lea eax, [rax + rax + 2]
xor r8d, r8d
mov rdx, rbp
mov dword [rsp + 0x28], eax
mov qword [rsp + 0x20], rdi
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
cmp eax, ebx
sete bl
mov eax, ebx
mov rbx, qword [rsp + 0x40]
mov rbp, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
add rsp, 0x30
pop rdi
ret

Function at 0x1400a13d8
Capabilities:
Set registry value

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

Function at 0x1400a1414
Capabilities:
Query or enumerate registry value

Disassembly:
mov r11, rsp
sub rsp, 0x38
mov rcx, qword [rcx + 8]
lea rax, [r11 + 8]
lea r9, [r11 + 0x20]
mov qword [r11 - 0x10], rax
mov qword [r11 - 0x18], r8
xor r8d, r8d
mov dword [rsp + 0x40], 4
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
xor edx, edx
cmp eax, edx
jne 0x1400a1456
mov ecx, dword [rsp + 0x58]
sub ecx, 4
neg ecx
sbb eax, eax
and eax, 0xd
cmp eax, edx
sete dl
mov eax, edx
add rsp, 0x38
ret
Function at 0x1400a1568
Capabilities:
Query or enumerate registry value

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x30
mov rdi, r9
mov rbx, r8
mov rsi, rdx
mov rbp, rcx
test rdx, rdx
jne 0x1400a1593
call fcn.1400124d4
int3
test rbx, rbx
jne 0x1400a159e
call fcn.1400124d4
int3
test r9, r9
jne 0x1400a15a9
call fcn.1400124d4
int3
and qword [r8], 0
and dword [r9], 0
mov rcx, qword [rcx + 8]
mov qword [rsp + 0x28], r9
and qword [rsp + 0x20], 0
lea r9, [rsp + 0x48]
xor r8d, r8d
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x1400a162c
cmp dword [rsp + 0x48], 3
jne 0x1400a162c
test eax, eax
jne 0x1400a162c
cmp dword [rdi], eax
je 0x1400a162c
mov ecx, dword [rdi]
call fcn.140006b8c
lea r9, [rsp + 0x48]
xor r8d, r8d
mov qword [rbx], rax
mov rcx, qword [rbp + 8]
mov rdx, rsi
mov qword [rsp + 0x28], rdi
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x1400a1620
cmp dword [rsp + 0x48], 3
jne 0x1400a1620
test eax, eax
jne 0x1400a1620
mov eax, 1
jmp 0x1400a162e
mov rcx, qword [rbx]
call fcn.140006bd8
and qword [rbx], 0
xor eax, eax
mov rbx, qword [rsp + 0x40]
mov rbp, qword [rsp + 0x50]
mov rsi, qword [rsp + 0x58]
add rsp, 0x30
pop rdi
ret

Function at 0x1400a1738
Capabilities:
Delete registry value

Disassembly:
sub rsp, 0x28
mov rcx, qword [rcx + 8]
call qword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
xor ecx, ecx
cmp eax, ecx
sete cl
mov eax, ecx
add rsp, 0x28
ret
Function at 0x1400a1754
Capabilities:
Query or enumerate registry key

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rsi
push rdi
sub rsp, 0x280
mov rax, qword [0x14024f530]
xor rax, rsp
mov qword [rsp + 0x270], rax
mov edi, dword [rcx + 8]
xor eax, eax
mov rsi, rcx
mov rcx, qword [rcx]
mov qword [rsp + 0x48], rax
mov dword [rsp + 0x50], eax
mov qword [rsp + 0x58], rax
lea rax, [rsp + 0x58]
or edi, 0x2001f
xor r8d, r8d
mov r9d, edi
mov rbp, rdx
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov rcx, qword [rsp + 0x48]
mov ebx, eax
test eax, eax
jne 0x1400a1861
test rcx, rcx
je 0x1400a17c9
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ebx, eax
mov rcx, qword [rsp + 0x58]
and edi, 0x300
mov dword [rsp + 0x50], edi
xor edi, edi
mov qword [rsp + 0x48], rcx
cmp ebx, edi
jmp 0x1400a17fb
lea rdx, [rsp + 0x70]
lea rcx, [rsp + 0x48]
call fcn.1400a1754
mov rcx, qword [rsp + 0x48]
mov ebx, eax
cmp eax, edi
jne 0x1400a1863
lea rax, [rsp + 0x60]
lea r9, [rsp + 0x40]
lea r8, [rsp + 0x70]
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x30], rdi
xor edx, edx
mov qword [rsp + 0x28], rdi
mov dword [rsp + 0x40], pe_nt_image_headers64
mov qword [rsp + 0x20], rdi
call qword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
cmp eax, edi
je 0x1400a17e3
mov rcx, qword [rsp + 0x48]
cmp rcx, rdi
je 0x1400a1849
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov qword [rsp + 0x48], rdi
mov rdx, rbp
mov rcx, rsi
mov dword [rsp + 0x50], edi
call fcn.1400a1014
mov rcx, qword [rsp + 0x48]
mov ebx, eax
jmp 0x1400a1863
xor edi, edi
cmp rcx, rdi
je 0x1400a186e
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, ebx
mov rcx, qword [rsp + 0x270]
xor rcx, rsp
call fcn.140182230
mov rbx, qword [rsp + 0x2b0]
add rsp, 0x280
pop rdi
pop rsi
pop rbp
ret
Function at 0x1400a1a64
Capabilities:
Query or enumerate registry value

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x18], rbp
push rsi
push rdi
push r12
sub rsp, 0x40
xor ebx, ebx
mov rbp, r8
mov rsi, rdx
mov r12, rcx
cmp rdx, rbx
jne 0x1400a1a8c
call fcn.1400124d4
int3
mov rcx, r8
call fcn.140005f20
mov rcx, qword [r12 + 8]
lea rax, [rsp + 0x78]
mov qword [rsp + 0x28], rax
lea r9, [rsp + 0x68]
xor r8d, r8d
mov rdx, rsi
mov qword [rsp + 0x20], rbx
mov dword [rsp + 0x78], ebx
mov edi, ebx
mov dword [rsp + 0x30], ebx
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
cmp eax, ebx
jne 0x1400a1ae5
cmp dword [rsp + 0x68], 1
je 0x1400a1ad5
cmp dword [rsp + 0x68], 2
jne 0x1400a1ae5
mov edi, dword [rsp + 0x78]
mov eax, ebx
shr edi, 1
mov dword [rsp + 0x30], edi
cmp eax, ebx
je 0x1400a1ae9
xor eax, eax
jmp 0x1400a1b5e
cmp edi, ebx
jne 0x1400a1af4
mov eax, 1
jmp 0x1400a1b5e
lea r8d, [rdi + 1]
mov rcx, 0xffffffffffffffff
mov eax, 2
mul r8
cmovo rax, rcx
mov rcx, rax
call fcn.140006b8c
lea r9, [rsp + 0x30]
lea rcx, [r12 + 8]
mov r8, rax
mov rdx, rsi
mov rdi, rax
call fcn.1400a1148
mov esi, ebx
cmp eax, ebx
sete sil
cmp esi, ebx
je 0x1400a1b54
cmp rdi, rbx
je 0x1400a1b46
mov rcx, rdi
call fcn.140183d38
mov ebx, eax
mov r8d, ebx
mov rdx, rdi
mov rcx, rbp
call fcn.140005fa0
mov rcx, rdi
call fcn.140006bd8
mov eax, esi
mov rbx, qword [rsp + 0x60]
mov rbp, qword [rsp + 0x70]
add rsp, 0x40
pop r12
pop rdi
pop rsi
ret
Function at 0x1400bc6d0
Capabilities:
Query or enumerate registry value

Disassembly:
push rdi
sub rsp, 0x30
mov qword [rsp + 0x28], 0xfffffffffffffffe
mov qword [rsp + 0x48], rbx
mov qword [rsp + 0x50], rsi
mov rdi, r9
mov rsi, r8
mov rbx, rcx
lea rcx, [rsp + 0x40]
call fcn.140005e60
nop
cmp rbx, 0xffffffff80000000
jne 0x1400bc75c
call fcn.140057ae8
cmp eax, 1
jne 0x1400bc75c
lea r8, [rsp + 0x40]
lea rdx, str.SoftwareClasses_
lea rcx, [rsp + 0x20]
call fcn.140006a70
nop
mov rdx, rax
lea rcx, [rsp + 0x40]
call fcn.140006120
nop
mov rdx, qword [rsp + 0x20]
add rdx, 0xffffffffffffffe8
or eax, 0xffffffff
lock xadd dword [rdx + 0x10], eax
dec eax
test eax, eax
jg 0x1400bc755
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
mov rbx, 0xffffffff80000001
mov r9, rdi
mov r8, rsi
mov rdx, qword [rsp + 0x40]
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_RegQueryValueW]
mov ebx, eax
mov rdx, qword [rsp + 0x40]
add rdx, 0xffffffffffffffe8
or ecx, 0xffffffff
lock xadd dword [rdx + 0x10], ecx
dec ecx
test ecx, ecx
jg 0x1400bc793
mov rcx, qword [rdx]
mov r8, qword [rcx]
call qword [rreloc.OLEAUT32.dll_VariantClear + 8]
mov eax, ebx
mov rbx, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
add rsp, 0x30
pop rdi
ret

Function at 0x1400bc7a8
Capabilities:
Set registry value

Disassembly:
push rdi
sub rsp, 0x40
mov qword [rsp + 0x38], 0xfffffffffffffffe
mov qword [rsp + 0x58], rbx
mov qword [rsp + 0x60], rsi
mov rdi, r9
mov esi, r8d
mov rbx, rcx
lea rcx, [rsp + 0x50]
call fcn.140005e60
nop
cmp rbx, 0xffffffff80000000
jne 0x1400bc834
call fcn.140057ae8
cmp eax, 1
jne 0x1400bc834
lea r8, [rsp + 0x50]
lea rdx, str.SoftwareClasses_
lea rcx, [rsp + 0x30]
call fcn.140006a70
nop
mov rdx, rax
lea rcx, [rsp + 0x50]
call fcn.140006120
nop
mov rdx, qword [rsp + 0x30]
add rdx, 0xffffffffffffffe8
or eax, 0xffffffff
lock xadd dword [rdx + 0x10], eax
dec eax
test eax, eax
jg 0x1400bc82d
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
mov rbx, 0xffffffff80000001
mov eax, dword [rsp + 0x70]
mov dword [rsp + 0x20], eax
mov r9, rdi
mov r8d, esi
mov rdx, qword [rsp + 0x50]
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_RegSetValueW]
mov ebx, eax
mov rdx, qword [rsp + 0x50]
add rdx, 0xffffffffffffffe8
or ecx, 0xffffffff
lock xadd dword [rdx + 0x10], ecx
dec ecx
test ecx, ecx
jg 0x1400bc873
mov rcx, qword [rdx]
mov r8, qword [rcx]
call qword [rreloc.OLEAUT32.dll_VariantClear + 8]
mov eax, ebx
mov rbx, qword [rsp + 0x58]
mov rsi, qword [rsp + 0x60]
add rsp, 0x40
pop rdi
ret
Function at 0x1400d266c
Capabilities:
Log keystrokes via polling

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rbp
mov qword [rax + 0x20], rsi
push rdi
push r12
push r13
sub rsp, 0x30
mov r12, r9
mov rdi, r8
mov rbp, rdx
mov rbx, rcx
cmp r8, 0x20
jne 0x1400d26fc
mov rcx, qword [rcx + 0x40]
lea rdx, [rax - 0x28]
call qword [sym.imp.USER32.dll_GetWindowRect]
mov r11d, dword [rsp + 0x20]
mov eax, dword [rsp + 0x24]
add r11d, 4
add eax, 0x17
lea rdx, [rsp + 0x60]
mov rcx, rbx
mov dword [rsp + 0x60], r11d
mov dword [rsp + 0x64], eax
call fcn.1400d1ddc
mov rcx, rbx
call fcn.1400d2560
mov rcx, qword [rbx + 0x40]
mov edx, 2
call qword [sym.imp.USER32.dll_KillTimer]
xor eax, eax
mov rbx, qword [rsp + 0x50]
mov rbp, qword [rsp + 0x58]
mov rsi, qword [rsp + 0x68]
add rsp, 0x30
pop r13
pop r12
pop rdi
ret
xor esi, esi
cmp dword [rcx + 0x418], esi
jne 0x1400d271b
cmp r8, 0x79
je 0x1400d2712
cmp r8, 0x12
jne 0x1400d2717
mov esi, 1
mov eax, esi
jmp 0x1400d26e3
mov ecx, 0x11
call qword [sym.imp.USER32.dll_GetKeyState]
mov ecx, reloc.OLEAUT32.dll_SafeArrayGetDim
mov r13w, ax
shr r13d, 0xf
and r13d, 1
call qword [sym.imp.USER32.dll_GetKeyState]
mov r11w, ax
shr r11d, 0xf
and r11d, 1
cmp rdi, 0x12
je 0x1400d2759
cmp rdi, 0x79
jne 0x1400d26d2
cmp qword [0x140255ec8], rsi
jne 0x1400d26e1
test byte [rbx + 0x430], 2
jne 0x1400d26e1
cmp rdi, 0x12
je 0x1400d2795
cmp rdi, 0x79
jne 0x1400d26e1
cmp r13d, esi
jne 0x1400d26e1
cmp r11d, esi
jne 0x1400d26e1
call qword [sym.imp.USER32.dll_GetFocus]
mov rcx, rax
call fcn.14001917c
cmp rax, rbx
jne 0x1400d27ba
bt r12, 0x1e
jb 0x1400d27ba
cmp rdi, 0x79
jne 0x1400d27ca
mov rcx, rbp
jmp 0x1400d27c3
cmp rdi, 0x79
jne 0x1400d27ca
mov rcx, rbx
call fcn.14000fb24
jmp 0x1400d27e9
cmp dword [rbx + 0x3d4], esi
jge 0x1400d27e9
mov rcx, qword [rbx + 0x40]
xor r9d, r9d
mov r8d, 0xc8
lea edx, [r9 + 2]
call qword [sym.imp.USER32.dll_SetTimer]
mov eax, 1
jmp 0x1400d26e3
Function at 0x1400e191c
Capabilities:
Get graphical window text

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
mov rdi, rdx
lea r8, [rcx + 0xe8]
mov rbx, rcx
mov rcx, rdi
mov edx, 0x4092
call fcn.14016087c
lea r8, [rbx + 0x190]
mov edx, 0x4091
mov rcx, rdi
call fcn.14016087c
lea r8, [rbx + 0x238]
mov edx, 0x4093
mov rcx, rdi
call fcn.14016087c
lea r8, [rbx + 0x2e0]
mov edx, 0x4074
mov rcx, rdi
call fcn.14016087c
lea r8, [rbx + 0x388]
mov edx, 0x407d
mov rcx, rdi
call fcn.14016087c
lea r8, [rbx + 0x430]
mov edx, 0x407c
mov rcx, rdi
call fcn.14016087c
lea r8, [rbx + 0x5e8]
mov edx, 0x407e
mov rcx, rdi
call fcn.14016087c
lea r8, [rbx + 0x690]
mov edx, 0x4074
mov rcx, rdi
call fcn.140160ad4
lea r8, [rbx + 0x698]
mov edx, 0x40db
mov rcx, rdi
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
jmp fcn.140160ad4