joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40b2cc
Capabilities:
Create process on windows

Disassembly:
push rbx
push rbp
push rsi
push rdi
sub rsp, 0x128
mov qword [rsp + 0xa8], 0xfffffffffffffffe
mov rdi, r9
mov rsi, r8
mov rbp, rdx
mov rbx, rcx
mov rcx, qword [rcx]
test rcx, rcx
je 0x40b309
call qword [sym.imp.KERNEL32.dll_CloseHandle]
test eax, eax
je 0x40b309
mov qword [rbx], 0
mov rdx, rbp
lea rcx, [rsp + 0x60]
call fcn.004028cc
nop
lea rdx, [rsp + 0x60]
lea rcx, [rsp + 0x80]
call fcn.0040b214
nop
mov r8w, 0x20
mov rdx, rax
lea rcx, [rsp + 0x70]
call fcn.0040b2ac
nop
mov r8, rsi
mov rdx, rax
lea rcx, [rsp + 0x50]
call fcn.0040276c
nop
mov rcx, qword [rsp + 0x70]
call sub.msvcrt.dll_free
nop
mov rcx, qword [rsp + 0x80]
call sub.msvcrt.dll_free
nop
mov rcx, qword [rsp + 0x60]
call sub.msvcrt.dll_free
mov dword [rsp + 0xb0], 0x68
mov qword [rsp + 0xb8], 0
mov qword [rsp + 0xc0], 0
mov qword [rsp + 0xc8], 0
mov dword [rsp + 0xec], 0
mov word [rsp + 0xf2], 0
mov qword [rsp + 0xf8], 0
lea rax, [rsp + 0x90]
mov qword [rsp + 0x48], rax
lea rax, [rsp + 0xb0]
mov qword [rsp + 0x40], rax
mov qword [rsp + 0x38], rdi
mov qword [rsp + 0x30], 0
mov dword [rsp + 0x28], 0
mov dword [rsp + 0x20], 0
xor r9d, r9d
xor r8d, r8d
mov rdx, qword [rsp + 0x50]
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
jne 0x40b41a
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
jmp 0x40b435
mov rcx, qword [rsp + 0x98]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov r11, qword [rsp + 0x90]
mov qword [rbx], r11
xor ebx, ebx
mov rcx, qword [rsp + 0x50]
call sub.msvcrt.dll_free
mov eax, ebx
add rsp, 0x128
pop rdi
pop rsi
pop rbp
pop rbx
ret

Function at 0x40bf70
Capabilities:
Set registry value

Disassembly:
mov dword [rsp + 0x18], r8d
sub rsp, 0x38
mov rcx, qword [rcx]
lea rax, [rsp + 0x50]
mov r9d, 4
mov dword [rsp + 0x28], r9d
xor r8d, r8d
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
add rsp, 0x38
ret

Function at 0x40bfa0
Capabilities:
Set registry value

Disassembly:
mov al, r8b
xor r8d, r8d
cmp al, r8b
setne r8b
jmp fcn.0040bf70

Function at 0x40bfb4
Capabilities:
Set registry value

Disassembly:
push rbx
push rsi
push rdi
sub rsp, 0x30
mov rsi, rcx
mov rcx, r8
mov rbx, r8
mov rdi, rdx
call qword [sym.imp.KERNEL32.dll_lstrlenW]
mov rcx, qword [rsi]
lea eax, [rax + rax + 2]
mov r9d, 1
xor r8d, r8d
mov dword [rsp + 0x28], eax
mov rdx, rdi
mov qword [rsp + 0x20], rbx
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
add rsp, 0x30
pop rdi
pop rsi
pop rbx
ret

Function at 0x40bff8
Capabilities:
Set registry value

Disassembly:
sub rsp, 0x38
mov rcx, qword [rcx]
mov dword [rsp + 0x28], r9d
mov qword [rsp + 0x20], r8
mov r9d, 3
xor r8d, r8d
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
add rsp, 0x38
ret

Function at 0x40c020
Capabilities:
Query or enumerate registry value

Disassembly:
mov r11, rsp
sub rsp, 0x48
mov rcx, qword [rcx]
lea rax, [r11 + 0x20]
lea r9, [r11 - 0x18]
mov qword [r11 - 0x20], rax
mov qword [r11 - 0x28], r8
xor r8d, r8d
mov dword [rsp + 0x30], 0
mov dword [rsp + 0x68], 4
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
add rsp, 0x48
ret
Function at 0x40c0d4
Capabilities:
Query or enumerate registry value

Disassembly:
push rbx
push rsi
push rdi
mov r11, rsp
sub rsp, 0x40
mov rax, qword [r8]
mov dword [r8 + 8], 0
mov rsi, rcx
mov word [rax], 0
mov rcx, qword [rcx]
lea rax, [r11 + 0x30]
mov rbx, r8
mov qword [r11 - 0x18], rax
lea r9, [r11 - 0x10]
xor r8d, r8d
mov qword [r11 - 0x20], 0
mov rdi, rdx
mov dword [rsp + 0x30], 0
mov dword [rsp + 0x70], 0
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
je 0x40c133
cmp eax, 0xea
jne 0x40c1a9
mov edx, dword [rsp + 0x70]
cmp edx, dword [rbx + 0xc]
mov dword [rsp + 0x78], edx
jbe 0x40c148
mov rcx, rbx
call fcn.004024bc
mov rax, qword [rbx]
lea rcx, [rsp + 0x78]
lea r9, [rsp + 0x34]
mov qword [rsp + 0x28], rcx
mov rcx, qword [rsi]
xor r8d, r8d
mov rdx, rdi
mov dword [rsp + 0x34], 0
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov ecx, dword [rsp + 0x70]
mov rdx, qword [rbx]
cmp ecx, dword [rsp + 0x78]
cmova ecx, dword [rsp + 0x78]
mov dword [rsp + 0x70], ecx
shr rcx, 1
mov word [rdx + rcx*2], 0
xor ecx, ecx
cmp word [rdx], cx
je 0x40c1a6
add rdx, 2
inc ecx
cmp word [rdx], 0
jne 0x40c19a
mov dword [rbx + 8], ecx
add rsp, 0x40
pop rdi
pop rsi
pop rbx
ret

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

Disassembly:
push rbx
push rsi
push rdi
mov rax, rsp
sub rsp, 0x260
mov rdi, rdx
mov r8, rdx
mov rdx, qword [rcx]
mov rsi, rcx
lea rcx, [rax + 0x38]
mov r9d, 0x2001f
mov qword [rax + 0x38], 0
call fcn.0040c254
test eax, eax
mov ebx, eax
jne 0x40c35c
mov ebx, 0x105
jmp 0x40c2f4
lea rdx, [rsp + 0x50]
call fcn.0040c2a8
test eax, eax
jne 0x40c35a
mov rcx, qword [rsp + 0x298]
lea rax, [rsp + 0x40]
lea r9, [rsp + 0x290]
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x30], 0
lea r8, [rsp + 0x50]
xor edx, edx
mov qword [rsp + 0x28], 0
mov dword [rsp + 0x290], ebx
mov qword [rsp + 0x20], 0
call qword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
lea rcx, [rsp + 0x298]
test eax, eax
je 0x40c2e6
call fcn.0040bf3c
mov rcx, qword [rsi]
mov rdx, rdi
call qword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
mov ebx, eax
lea rcx, [rsp + 0x298]
call fcn.0040bf3c
mov eax, ebx
add rsp, 0x260
pop rdi
pop rsi
pop rbx
ret
Function at 0x40c378
Capabilities:
Query or enumerate registry value

Disassembly:
push rbx
push rbp
push rsi
push rdi
push r12
mov rax, rsp
sub rsp, 0x40
mov dword [r9], 0
mov qword [rax - 0x18], r9
mov r12, rcx
mov rcx, qword [rcx]
mov rsi, r9
mov rbx, r8
lea r9, [rax + 0x48]
xor r8d, r8d
mov rbp, rdx
mov dword [rax + 0x48], 0
mov qword [rax - 0x20], 0
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
je 0x40c3c7
cmp eax, 0xea
jne 0x40c429
mov edi, dword [rsi]
cmp rdi, qword [rbx + 8]
je 0x40c3ff
mov rcx, qword [rbx]
test rcx, rcx
je 0x40c3e3
call sub.msvcrt.dll_free
mov qword [rbx], 0
test rdi, rdi
mov qword [rbx + 8], 0
je 0x40c3ff
mov rcx, rdi
call fcn.00403660
mov qword [rbx + 8], rdi
mov qword [rbx], rax
mov rax, qword [rbx]
mov rcx, qword [r12]
lea r9, [rsp + 0x30]
xor r8d, r8d
mov rdx, rbp
mov qword [rsp + 0x28], rsi
mov qword [rsp + 0x20], rax
mov dword [rsp + 0x30], 0
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
add rsp, 0x40
pop r12
pop rdi
pop rsi
pop rbp
pop rbx
ret

Function at 0x40c434
Capabilities:
Set registry value

Disassembly:
mov qword [rsp + 8], rcx
push rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x38
xor esi, esi
mov r12, r8
mov r15, rdx
cmp dword [r8 + 8], esi
mov rbp, rsi
jbe 0x40c475
mov r9, qword [r8]
mov r8d, dword [r8 + 8]
mov rax, qword [r9]
add r9, 8
mov eax, dword [rax + 8]
inc eax
add rbp, rax
dec r8
jne 0x40c461
cmp rbp, rsi
mov rbx, rsi
je 0x40c48a
lea rcx, [rbp + rbp]
call fcn.00403660
mov rbx, rax
cmp dword [r12 + 8], esi
mov r14d, esi
jbe 0x40c4c8
mov r13, rsi
mov rax, qword [r12]
lea rcx, [rbx + rsi*2]
mov rdx, qword [r13 + rax]
mov eax, dword [rdx + 8]
mov rdx, qword [rdx]
inc eax
mov edi, eax
lea r8, [rax + rax]
call sub.msvcrt.dll_memcpy
inc r14d
add rsi, rdi
add r13, 8
cmp r14d, dword [r12 + 8]
jb 0x40c497
mov rcx, qword [rsp + 0x80]
lea eax, [rbp + rbp]
mov r9d, 3
mov rcx, qword [rcx]
mov dword [rsp + 0x28], eax
xor r8d, r8d
mov rdx, r15
mov qword [rsp + 0x20], rbx
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov rcx, rbx
mov edi, eax
call sub.msvcrt.dll_free
mov eax, edi
add rsp, 0x38
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
pop rbx
ret

Function at 0x40d774
Capabilities:
Get memory capacity

Disassembly:
push rbx
sub rsp, 0x60
movabs rax, 0x100000000
mov rbx, rcx
mov dword [rsp + 0x20], 0x40
mov qword [rcx], rax
lea rcx, [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_GlobalMemoryStatusEx]
test eax, eax
je 0x40d7b6
mov rax, qword [rsp + 0x28]
cmp qword [rsp + 0x48], rax
cmovb rax, qword [rsp + 0x48]
mov qword [rbx], rax
mov al, 1
add rsp, 0x60
pop rbx
ret
Function at 0x40d8a4
Capabilities:
Get graphical window text

Disassembly:
push rbx
push rbp
push rsi
push rdi
sub rsp, 0x28
mov rax, qword [rdx]
xor ebx, ebx
mov rbp, rcx
mov dword [rdx + 8], ebx
mov word [rax], bx
mov rcx, qword [rcx]
mov rdi, rdx
call qword [sym.imp.USER32.dll_GetWindowTextLengthW]
cmp eax, ebx
mov esi, eax
je 0x40d90f
cmp eax, dword [rdi + 0xc]
jbe 0x40d8dc
mov edx, eax
mov rcx, rdi
call fcn.004024bc
mov rdx, qword [rdi]
mov rcx, qword [rbp]
lea r8d, [rsi + 1]
call qword [sym.imp.USER32.dll_GetWindowTextW]
mov rcx, qword [rdi]
cmp esi, eax
cmova esi, eax
mov eax, ebx
mov word [rcx + rsi*2], bx
jmp 0x40d903
inc eax
add rcx, 2
cmp word [rcx], bx
jne 0x40d8fd
cmp esi, ebx
mov dword [rdi + 8], eax
jne 0x40d91c
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, ebx
sete al
jmp 0x40d91e
mov al, 1
add rsp, 0x28
pop rdi
pop rsi
pop rbp
pop rbx
ret
Function at 0x4247ec
Capabilities:
Link many functions at runtime

Disassembly:
push rbx
push rbp
push rsi
push rdi
push r12
sub rsp, 0x80
mov qword [rsp + 0x30], 0xfffffffffffffffe
mov r12, rcx
mov edx, dword [rcx + 0x20]
mov rax, qword [rcx + 0x18]
mov rbp, qword [rax + rdx*8 - 8]
lea rdx, str.CreateDecoder
mov rcx, qword [rbp]
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [rbp + 0x28], rax
lea rdx, str.CreateEncoder
mov rcx, qword [rbp]
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [rbp + 0x30], rax
lea rdx, str.GetMethodProperty
mov rcx, qword [rbp]
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [rbp + 0x20], rax
xor edi, edi
cmp rax, rdi
je 0x4249bd
mov dword [rsp + 0xb0], 1
lea rdx, str.GetNumberOfMethods
mov rcx, qword [rbp]
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
cmp rax, rdi
je 0x42488f
lea rcx, [rsp + 0xb0]
call rax
cmp eax, edi
jne 0x424a38
mov esi, edi
cmp dword [rsp + 0xb0], edi
jbe 0x4249bd
mov eax, dword [r12 + 0x20]
dec eax
mov dword [rsp + 0x50], eax
mov dword [rsp + 0x54], esi
lea rax, [rsp + 0x58]
mov qword [rsp + 0x20], rax
lea r9, [rsp + 0x5c]
mov r8d, 3
mov edx, esi
mov rcx, qword [rbp + 0x20]
call fcn.004237c8
cmp eax, edi
jne 0x424a38
lea rax, [rsp + 0x59]
mov qword [rsp + 0x20], rax
lea r9, [rsp + 0x6c]
mov r8d, 2
mov edx, esi
mov rcx, qword [rbp + 0x20]
call fcn.004237c8
cmp eax, edi
jne 0x424a38
mov rax, qword [rbp + 0x20]
mov word [rsp + 0x38], di
mov word [rsp + 0x3a], di
mov qword [rsp + 0x40], rdi
mov byte [rsp + 0x5a], dil
mov byte [rsp + 0x5b], dil
lea r8, [rsp + 0x38]
mov edx, 0xa
mov ecx, esi
call rax
mov ebx, eax
cmp eax, edi
je 0x42493a
lea rcx, [rsp + 0x38]
call fcn.0040b590
jmp 0x424966
cmp word [rsp + 0x38], 0xb
jne 0x424953
mov byte [rsp + 0x5b], 1
cmp word [rsp + 0x40], di
setne byte [rsp + 0x5a]
jmp 0x42495a
cmp word [rsp + 0x38], di
jne 0x4249aa
lea rcx, [rsp + 0x38]
call fcn.0040b590
mov ebx, edi
cmp ebx, edi
jne 0x4249b9
lea rcx, [r12 + 0x60]
call fcn.00423dbc
mov ecx, dword [r12 + 0x68]
lea eax, [rcx + 1]
mov dword [r12 + 0x68], eax
imul rcx, rcx, 0x2c
add rcx, qword [r12 + 0x60]
lea rdx, [rsp + 0x50]
mov r8d, 0x2c
call sub.msvcrt.dll_memcpy
inc esi
cmp esi, dword [rsp + 0xb0]
jae 0x4249bd
jmp 0x42489e
lea rcx, [rsp + 0x38]
call fcn.0040b590
mov ebx, 0x80004005
mov eax, ebx
jmp 0x424a38
lea rdx, str.GetHashers
mov rcx, qword [rbp]
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
cmp rax, rdi
je 0x424a36
lea rcx, [rbp + 0x40]
call rax
cmp eax, edi
jne 0x424a38
mov rcx, qword [rbp + 0x40]
cmp rcx, rdi
je 0x424a36
mov rax, qword [rcx]
call qword [rax + 0x18]
mov esi, eax
cmp eax, edi
jbe 0x424a36
mov ecx, dword [r12 + 0x20]
dec ecx
mov dword [rsp + 0xb0], ecx
mov dword [rsp + 0xb4], edi
lea rcx, [r12 + 0x70]
call fcn.00431370
mov r11d, dword [r12 + 0x78]
lea eax, [r11 + 1]
mov dword [r12 + 0x78], eax
mov rcx, qword [r12 + 0x70]
mov rax, qword [rsp + 0xb0]
mov qword [rcx + r11*8], rax
inc edi
cmp edi, esi
jb 0x4249f2
xor eax, eax
add rsp, 0x80
pop r12
pop rdi
pop rsi
pop rbp
pop rbx
ret
Function at 0x434f24
Capabilities:
Get disk information

Disassembly:
mov qword [rsp + 8], rcx
push rbx
push rbp
push rsi
push rdi
push r12
push r13
mov rax, rsp
sub rsp, 0x58
mov qword [rsp + 0x20], 0xfffffffffffffffe
mov r13, r9
mov rbp, r8
mov rsi, rdx
mov rbx, rcx
mov dword [rax + 0x40], 0
mov edi, dword [rdx]
cmp byte [rdx + 4], 0
je 0x434fa0
mov edi, 1
lea r8d, [rdi + 2]
lea rdx, [rax - 0x30]
mov rcx, rbp
call fcn.00434f04
nop
mov rcx, qword [rsp + 0x28]
call fcn.00409c7c
test al, al
je 0x434f96
mov rcx, qword [rsp + 0x28]
call sub.KERNEL32.dll_GetDriveTypeW
cmp eax, 5
je 0x434f94
cmp eax, 2
jne 0x434f96
mov edi, dword [rsi]
mov rcx, qword [rsp + 0x28]
call sub.msvcrt.dll_free
mov rcx, rbp
call fcn.00402e08
lea r12d, [rax + 1]
mov rax, qword [rbp]
lea rdx, [rax + r12*2]
mov rcx, r13
call fcn.00402a44
mov rcx, rbx
call fcn.00402830
mov dword [rsp + 0x98], 1
dec edi
je 0x435011
dec edi
je 0x435003
mov rcx, rbx
call fcn.004063d4
test al, al
jne 0x435038
mov dword [rsp + 0xa0], 0x22995
lea rdx, [0x004cc9a0]
lea rcx, [rsp + 0xa0]
call sub.msvcrt.dll__CxxThrowException
int3
lea rdx, [rsi + 8]
mov rcx, rbx
call fcn.00402aac
jmp 0x435038
mov r8d, r12d
lea rdx, [rsp + 0x38]
mov rcx, rbp
call fcn.00411958
nop
mov rdx, rax
mov rcx, rbx
call fcn.00402aac
nop
mov rcx, qword [rsp + 0x38]
call sub.msvcrt.dll_free
mov rcx, rbx
call fcn.00409c04
mov rax, rbx
add rsp, 0x58
pop r13
pop r12
pop rdi
pop rsi
pop rbp
pop rbx
ret
Function at 0x44a560
Capabilities:
Delete registry key

Disassembly:
sub rsp, 0x28
test edx, edx
jne 0x44a57a
mov rdx, rcx
mov rcx, 0xffffffff80000000
call qword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
jmp 0x44a59f
mov rax, qword [0x004cf720]
test rax, rax
jne 0x44a58d
mov eax, 0x80004001
jmp 0x44a59f
mov r8d, edx
mov rdx, rcx
xor r9d, r9d
mov rcx, 0xffffffff80000000
call rax
add rsp, 0x28
ret

Function at 0x450954
Capabilities:
Log keystrokes via polling

Disassembly:
push rbx
push rdi
sub rsp, 0x28
mov rdi, rcx
mov ecx, reloc.COMCTL32.dll_InitCommonControls
mov rbx, rdx
call qword [sym.imp.USER32.dll_GetKeyState]
movzx ecx, word [rbx + 0x18]
mov r11w, ax
shr r11d, 0xf
and r11b, 1
cmp ecx, 8
je 0x4509a8
cmp ecx, 0x52
je 0x450999
cmp ecx, 0x76
je 0x45098f
xor al, al
jmp 0x4509b2
mov rcx, rdi
call fcn.00450524
jmp 0x4509b0
test r11b, r11b
je 0x45098b
mov rcx, rdi
call fcn.0044f844
jmp 0x4509b0
mov rcx, rdi
call fcn.0044f93c
mov al, 1
add rsp, 0x28
pop rdi
pop rbx
ret
Function at 0x45aa30
Capabilities:
Copy file

Disassembly:
push rbx
sub rsp, 0x30
mov rax, qword [rcx + 0x38]
xor ebx, ebx
mov r10, r8
cmp rax, rbx
mov r11, rdx
mov dword [rsp + 0x40], ebx
je 0x45aa71
lea rdx, [rsp + 0x40]
mov r9, rcx
mov dword [rsp + 0x28], 1
mov qword [rsp + 0x20], rdx
lea r8, [0x0045a968]
mov rcx, r11
mov rdx, r10
call rax
jmp 0x45aa83
mov r8d, 1
mov rdx, r10
mov rcx, r11
call qword [sym.imp.KERNEL32.dll_CopyFileW]
cmp eax, ebx
setne al
add rsp, 0x30
pop rbx
ret

Function at 0x45c904
Capabilities:
Identify system language via api

Disassembly:
push rbx
push rbp
push rsi
push rdi
push r12
sub rsp, 0x20
movsxd rbx, dword [rcx + 8]
mov r12, rdx
mov rsi, rcx
test ebx, ebx
mov rdi, rbx
je 0x45c94c
shl rdi, 3
mov rax, qword [rsi]
sub rdi, 8
add ebx, 0xffffffff
mov rbp, qword [rdi + rax]
test rbp, rbp
je 0x45c948
mov rcx, qword [rbp]
call sub.msvcrt.dll_free
mov rcx, rbp
call sub.msvcrt.dll_free
test ebx, ebx
jne 0x45c924
mov dword [rsi + 8], 0
mov dword [r12], 0
call qword [sym.imp.KERNEL32.dll_GetSystemDefaultLangID]
movzx ebx, ax
call qword [sym.imp.KERNEL32.dll_GetUserDefaultLangID]
cmp bx, ax
jne 0x45c989
movzx ecx, ax
mov rdx, rsi
mov eax, ecx
and ecx, 0x3ff
shr eax, 0xa
mov dword [r12], eax
call fcn.0045c788
add rsp, 0x20
pop r12
pop rdi
pop rsi
pop rbp
pop rbx
ret
Function at 0x460f60
Capabilities:
Log keystrokes via polling

Disassembly:
push rbx
push rsi
push rdi
push r12
push r13
push r14
sub rsp, 0x38
mov eax, edx
mov r12, r9
mov rdi, r8
sub eax, 0x100
mov r13d, edx
mov rsi, rcx
je 0x46104f
sub eax, 2
je 0x46101e
cmp eax, 2
jne 0x461032
cmp r8, 0x70
jb 0x461032
cmp r8, 0x71
ja 0x461032
bt r9, 0x1d
jae 0x461032
lea ecx, [rax + 0x10]
call qword [sym.imp.USER32.dll_GetKeyState]
mov ecx, reloc.COMCTL32.dll_InitCommonControls
mov bx, ax
shr ebx, 0xf
and bl, 1
call qword [sym.imp.USER32.dll_GetKeyState]
mov ecx, InitCommonControls
mov r14w, ax
shr r14d, 0xf
and r14b, 1
call qword [sym.imp.USER32.dll_GetKeyState]
xor edx, edx
mov r11w, ax
shr r11d, 0xf
and r11b, 1
cmp bl, dl
je 0x461032
cmp r14b, dl
jne 0x461032
cmp r11b, dl
jne 0x461032
mov rax, qword [rsi + 0x10]
cmp rdi, 0x70
mov rcx, qword [rax + 0x58]
setne dl
mov rax, qword [rcx]
call qword [rax + VariantCopy]
jmp 0x461111
cmp r8, 9
je 0x461111
cmp r8, 0x1b
je 0x461111
mov rdx, qword [rsi]
mov rcx, qword [rsi + 8]
mov r9, rdi
mov r8d, r13d
mov qword [rsp + 0x20], r12
call qword [sym.imp.USER32.dll_CallWindowProcW]
jmp 0x461113
cmp r8, 9
je 0x461100
cmp r8, 0x57
je 0x4610c8
cmp r8, 0x78
jne 0x461032
lea ecx, [r8 - 0x66]
call qword [sym.imp.USER32.dll_GetKeyState]
mov ecx, reloc.COMCTL32.dll_InitCommonControls
mov bx, ax
shr ebx, 0xf
and bl, 1
call qword [sym.imp.USER32.dll_GetKeyState]
mov ecx, InitCommonControls
mov r14w, ax
shr r14d, 0xf
and r14b, 1
call qword [sym.imp.USER32.dll_GetKeyState]
xor edx, edx
mov r11w, ax
shr r11d, 0xf
and r11b, 1
cmp bl, dl
jne 0x461032
cmp r14b, dl
jne 0x461032
cmp r11b, dl
jne 0x461032
lea rcx, [0x004cf7d0]
call fcn.0044b114
jmp 0x461111
mov ecx, reloc.COMCTL32.dll_InitCommonControls
call qword [sym.imp.USER32.dll_GetKeyState]
mov r11w, ax
shr r11d, 0xf
test r11b, 1
je 0x461032
mov rcx, qword [0x004cf788]
xor r9d, r9d
mov edx, 0x111
lea r8d, [r9 + 8]
call qword [sym.imp.USER32.dll_PostMessageW]
jmp 0x461111
mov rcx, qword [rcx + 0x10]
mov rcx, qword [rcx + 0xa8]
call qword [sym.imp.USER32.dll_SetFocus]
xor eax, eax
add rsp, 0x38
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbx
ret
Function at 0x46d32c
Capabilities:
Create process on windows

Disassembly:
push rbx
push rbp
push rsi
push rdi
push r12
sub rsp, 0xd0
mov qword [rsp + 0x50], 0xfffffffffffffffe
mov rbp, r9
mov rsi, r8
mov r12, rcx
lea rcx, [rsp + 0x20]
call fcn.004029bc
nop
mov dx, 0x2e
lea rcx, [rsp + 0x20]
call fcn.00402dd4
mov edi, eax
lea rcx, [rsp + 0x20]
call fcn.00402e08
xor ebx, ebx
cmp edi, ebx
jl 0x46d37b
cmp edi, eax
jge 0x46d385
lea rcx, [rsp + 0x20]
call fcn.004031c4
mov dword [rsp + 0x60], 0x70
mov dword [rsp + 0x64], 0x140
mov qword [rsp + 0x68], rbx
mov qword [rsp + 0x70], rbx
lea rdx, [rsp + 0x20]
lea rcx, [rsp + 0x30]
call fcn.004029bc
nop
mov rdx, r12
lea rcx, [rsp + 0x40]
call fcn.004029bc
mov r11, qword [rsp + 0x30]
mov qword [rsp + 0x78], r11
mov qword [rsp + 0x80], rbx
mov eax, dword [rsp + 0x48]
neg eax
sbb rcx, rcx
and rcx, qword [rsp + 0x40]
mov qword [rsp + 0x88], rcx
mov dword [rsp + 0x90], 1
mov qword [rsp + 0xc8], rbx
lea rcx, [rsp + 0x60]
call qword [sym.imp.SHELL32.dll_ShellExecuteExW]
mov edi, dword [rsp + 0x98]
mov rax, qword [rsp + 0xc8]
mov qword [rbp], rax
mov rcx, qword [rsp + 0x40]
call sub.msvcrt.dll_free
nop
mov rcx, qword [rsp + 0x30]
call sub.msvcrt.dll_free
cmp edi, 0x20
ja 0x46d46f
cmp edi, 0x1f
jne 0x46d468
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
lea rcx, [rsp + 0x30]
call fcn.00405974
lea r9d, [rdi - 0xf]
lea r8, [0x0049a618]
mov rdx, qword [rax]
mov rcx, rsi
call qword [sym.imp.USER32.dll_MessageBoxW]
mov rcx, qword [rsp + 0x30]
call sub.msvcrt.dll_free
nop
mov ebx, 0x80004005
jmp 0x46d46f
mov rcx, qword [rsp + 0x20]
call sub.msvcrt.dll_free
mov eax, ebx
add rsp, 0xd0
pop r12
pop rdi
pop rsi
pop rbp
pop rbx
ret
Function at 0x477b34
Capabilities:
Log keystrokes via polling

Disassembly:
push rbx
push rsi
push rdi
sub rsp, 0x20
mov rsi, rcx
mov ecx, 0x12
call qword [sym.imp.USER32.dll_GetKeyState]
mov ecx, reloc.COMCTL32.dll_InitCommonControls
mov di, ax
shr edi, 0xf
and dil, 1
call qword [sym.imp.USER32.dll_GetKeyState]
mov ecx, InitCommonControls
mov bx, ax
shr ebx, 0xf
and bl, 1
call qword [sym.imp.USER32.dll_GetKeyState]
mov r11w, ax
shr r11d, 0xf
and r11b, 1
jne 0x477b96
xor edx, edx
cmp dil, dl
je 0x477ba1
cmp bl, dl
jne 0x477ba1
mov rcx, rsi
call fcn.0047a7f4
jmp 0x477bab
xor dl, dl
cmp dil, dl
jne 0x477ba1
cmp bl, dl
je 0x477ba3
mov dl, 1
mov rcx, rsi
call fcn.00474ef8
add rsp, 0x20
pop rdi
pop rsi
pop rbx
ret
Function at 0x479af8
Capabilities:
Log keystrokes via polling

Disassembly:
push rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
sub rsp, 0x80
mov qword [rsp + 0x30], 0xfffffffffffffffe
mov rdi, r9
mov rsi, r8
mov rbp, rdx
mov rbx, rcx
mov rcx, qword [r8]
xor r14d, r14d
cmp rcx, r14
je 0x479b33
mov rax, qword [rcx]
call qword [rax + InitCommonControls]
mov qword [rsi], r14
mov rcx, qword [rdi]
cmp rcx, r14
je 0x479b44
mov rax, qword [rcx]
call qword [rax + InitCommonControls]
mov qword [rdi], r14
mov ecx, InitCommonControls
call qword [sym.imp.USER32.dll_GetKeyState]
mov r12w, ax
shr r12d, 0xf
and r12b, 1
mov qword [rsp + 0x38], r14
mov dword [rsp + 0x40], r14d
mov dword [rsp + 0x44], r14d
lea rdx, [rsp + 0x38]
mov rcx, rbx
call fcn.00474bf8
lea rdx, [rsp + 0x38]
mov rcx, rbx
call fcn.004616a8
mov r13d, eax
mov rcx, rbx
call fcn.0046146c
cmp al, r14b
jne 0x479bd2
mov qword [rsp + 0x28], rsi
mov dword [rsp + 0x20], r13d
lea r9, [rsp + 0x38]
mov r8b, r12b
mov rdx, rbp
mov rcx, rbx
call fcn.004797bc
cmp byte [0x004cf7d8], r14b
je 0x479bd2
mov qword [rsp + 0x20], rdi
lea r9, [rsp + 0x38]
mov r8b, r12b
mov rdx, rbp
mov rcx, rbx
call fcn.004795e4
mov byte [rsp + 0x58], r14b
mov byte [rsp + 0x59], r14b
mov byte [rsp + 0x5a], r14b
mov byte [rsp + 0x5b], r14b
mov byte [rsp + 0x5c], r14b
mov byte [rsp + 0x5d], 1
mov dword [rsp + 0x60], r14d
lea rcx, [rsp + 0x68]
call fcn.00402830
nop
mov rcx, rbx
call fcn.00479908
mov byte [rsp + 0x59], al
mov rcx, rbx
call fcn.004614a0
mov byte [rsp + 0x5a], al
mov rcx, rbx
call fcn.00461448
cmp al, r14b
jne 0x479c46
mov rcx, rbx
call fcn.00461454
cmp al, r14b
jne 0x479c46
mov rcx, rbx
call fcn.00461460
cmp al, r14b
jne 0x479c46
mov byte [rsp + 0x5b], r14b
jmp 0x479c4b
mov byte [rsp + 0x5b], 1
mov al, byte [rsp + 0xe0]
mov byte [rsp + 0x58], al
cmp r13d, 0xffffffff
sete byte [rsp + 0x5c]
mov eax, dword [rsp + 0x40]
mov ecx, eax
mov dword [rsp + 0x60], eax
mov byte [rsp + 0x5d], r14b
cmp eax, 1
jne 0x479ca9
mov rax, qword [rsp + 0x38]
mov r8d, dword [rax]
lea rdx, [rsp + 0x48]
mov rcx, rbx
call fcn.00474408
nop
mov rdx, rax
lea rcx, [rsp + 0x68]
call fcn.00402aac
nop
mov rcx, qword [rsp + 0x48]
call sub.msvcrt.dll_free
mov eax, dword [rsp + 0x40]
mov ecx, dword [rsp + 0x60]
mov r9, qword [rbx + 0x180]
cmp r9, r14
je 0x479cf8
cmp eax, 1
ja 0x479d17
mov edx, 0xffffffff
cmp eax, 1
jne 0x479ccb
mov rax, qword [rsp + 0x38]
mov edx, dword [rax]
mov dword [rsp + 0xe0], r14d
mov rax, qword [r9]
lea r8, [rsp + 0xe0]
mov rcx, r9
call qword [rax + 0x28]
cmp eax, r14d
jne 0x479d17
cmp dword [rsp + 0xe0], r14d
setne byte [rsp + 0x5d]
jmp 0x479d17
cmp ecx, r14d
jne 0x479d0b
mov rcx, rbx
call fcn.00461448
mov byte [rsp + 0x5d], al
jmp 0x479d17
mov rcx, rbx
call fcn.004788b0
mov byte [rsp + 0x5d], al
mov rcx, rbp
call qword [sym.imp.USER32.dll_GetMenuItemCount]
mov r8d, eax
mov rdx, rbp
lea rcx, [rsp + 0x58]
call fcn.0045e118
nop
mov rcx, qword [rsp + 0x68]
call sub.msvcrt.dll_free
nop
mov rcx, qword [rsp + 0x38]
call sub.msvcrt.dll_free
add rsp, 0x80
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
pop rbx
ret