joyce8/EMBER2024-capa huggingface dataset:
Function at 0x14002ba00
Capabilities:
Allocate or change rwx memory

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x50
movsxd rdi, dword [0x14004d334]
mov r12, rcx
mov rsi, rdx
mov rbx, r8
test edi, edi
jle 0x14002bbb0
mov rax, qword [0x14004d338]
xor ecx, ecx
add rax, 0x18
nop
mov rdx, qword [rax]
cmp r12, rdx
jb 0x14002ba4c
mov r8, qword [rax + 8]
mov r8d, dword [r8 + 8]
add rdx, r8
cmp r12, rdx
jb 0x14002bad7
add ecx, 1
add rax, 0x28
cmp ecx, edi
jne 0x14002ba30
mov rcx, r12
call fcn.14002c4b0
mov rbp, rax
test rax, rax
je 0x14002bc0d
mov rax, qword [0x14004d338]
lea rdi, [rdi + rdi*4]
shl rdi, 3
add rax, rdi
mov qword [rax + 0x20], rbp
mov dword [rax], 0
call fcn.14002c5e0
mov ecx, dword [rbp + 0xc]
lea rdx, [rsp + 0x20]
mov r8d, 0x30
add rcx, rax
mov rax, qword [0x14004d338]
mov qword [rax + rdi + 0x18], rcx
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x14002bbf2
mov eax, dword [rsp + 0x44]
lea edx, [rax - 0x40]
and edx, 0xffffffbf
je 0x14002bad0
lea edx, [rax - 4]
and edx, 0xfffffffb
jne 0x14002bb60
add dword [0x14004d334], 1
cmp ebx, 8
jae 0x14002bb08
test bl, 4
jne 0x14002bbc0
test ebx, ebx
je 0x14002baf9
movzx eax, byte [rsi]
mov byte [r12], al
test bl, 2
jne 0x14002bbe0
add rsp, 0x50
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret
mov rax, qword [rsi]
lea rcx, [r12 + 8]
and rcx, 0xfffffffffffffff8
mov qword [r12], rax
mov eax, ebx
mov rdx, qword [rsi + rax - 8]
mov qword [r12 + rax - 8], rdx
sub r12, rcx
add ebx, r12d
sub rsi, r12
and ebx, 0xfffffff8
cmp ebx, 8
jb 0x14002baf9
and ebx, 0xfffffff8
xor eax, eax
mov edx, eax
add eax, 8
mov r8, qword [rsi + rdx]
mov qword [rcx + rdx], r8
cmp eax, ebx
jb 0x14002bb3a
add rsp, 0x50
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret
cmp eax, 2
mov rcx, qword [rsp + 0x20]
mov rdx, qword [rsp + 0x38]
mov r8d, 4
mov eax, 0x40
cmovne r8d, eax
add rdi, qword [0x14004d338]
mov qword [rdi + 8], rcx
mov r9, rdi
mov qword [rdi + 0x10], rdx
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x14002bad0
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.__VirtualProtect_failed_with_code_0x_x
mov edx, eax
call fcn.14002b990
xor edi, edi
jmp 0x14002ba57
mov eax, dword [rsi]
mov ebx, ebx
mov dword [r12], eax
mov eax, dword [rsi + rbx - 4]
mov dword [r12 + rbx - 4], eax
jmp 0x14002baf9
mov ebx, ebx
movzx eax, word [rsi + rbx - 2]
mov word [r12 + rbx - 2], ax
jmp 0x14002baf9
mov rax, qword [0x14004d338]
mov edx, dword [rbp + 8]
lea rcx, str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov r8, qword [rax + rdi + 0x18]
call fcn.14002b990
mov rdx, r12
lea rcx, str.Address__p_has_no_image_section
call fcn.14002b990
nop
nop dword [rax]
Function at 0x14002c120
Capabilities:
Get thread local storage value

Disassembly:
push r12
push rdi
push rsi
push rbx
sub rsp, 0x28
lea rcx, [0x14004d3a0]
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rbx, qword [0x14004d380]
test rbx, rbx
je 0x14002c174
mov rdi, qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rsi, qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [rbx]
call rdi
mov r12, rax
call rsi
test eax, eax
jne 0x14002c16b
test r12, r12
je 0x14002c16b
mov rax, qword [rbx + 8]
mov rcx, r12
call rax
mov rbx, qword [rbx + 0x10]
test rbx, rbx
jne 0x14002c150
lea rcx, [0x14004d3a0]
add rsp, 0x28
pop rbx
pop rsi
pop rdi
pop r12
jmp qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]

Function at 0x14002c4b0
Capabilities:
Enumerate pe sections

Disassembly:
sub rsp, 0x28
mov r10, qword [0x140048750]
xor r8d, r8d
cmp word [r10], 0x5a4d
mov r9, rcx
jne 0x14002c529
mov rcx, r10
call fcn.14002c380
test eax, eax
je 0x14002c529
movsxd rax, dword [r10 + 0x3c]
mov rcx, r9
sub rcx, r10
add r10, rax
movzx eax, word [r10 + 0x14]
lea r8, [r10 + rax + 0x18]
movzx eax, word [r10 + 6]
test eax, eax
je 0x14002c526
sub eax, 1
lea rax, [rax + rax*4]
lea r9, [r8 + rax*8 + 0x28]
nop dword [rax]
mov edx, dword [r8 + 0xc]
mov rax, rdx
cmp rcx, rdx
jb 0x14002c51d
add eax, dword [r8 + 8]
cmp rcx, rax
jb 0x14002c529
add r8, 0x28
cmp r8, r9
jne 0x14002c508
xor r8d, r8d
mov rax, r8
add rsp, 0x28
ret
Function at 0x1400157a0
Capabilities:
Delete registry key

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
mov rbx, rcx
mov rcx, qword [rcx + 0x10]
mov rdi, rdx
test rcx, rcx
je 0x1400157ce
mov r8, rdx
mov rdx, qword [rbx]
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
jmp 0x140016ab0
cmp byte [0x140049f28], 0
jne 0x140015819
lea rcx, str.Advapi32.dll
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x140015809
lea rdx, str.RegDeleteKeyExW
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov byte [0x140049f28], 1
mov qword [0x140049f20], rax
jmp 0x140015820
mov rax, qword [0x140049f20]
mov byte [0x140049f28], 1
jmp 0x140015820
mov rax, qword [0x140049f20]
mov rcx, qword [rbx]
mov rdx, rdi
test rax, rax
je 0x14001583f
mov r8d, dword [rbx + 8]
xor r9d, r9d
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
jmp rax
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
jmp qword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x30
cmp qword [rcx], 0
mov rdi, r8
mov rsi, rdx
mov rbx, rcx
je 0x140016b24
lea rcx, str.Advapi32.dll
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x140016b46
lea rdx, str.RegDeleteKeyTransactedW
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
je 0x140016b46
mov rcx, qword [rbx]
mov qword [rsp + 0x28], 0
xor r9d, r9d
mov qword [rsp + 0x20], rcx
xor r8d, r8d
mov rdx, rdi
mov rcx, rsi
call rax
mov rbx, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
add rsp, 0x30
pop rdi
ret
cmp dword [rcx + 8], 0
je 0x140016b46
mov rdx, r8
mov rcx, rsi
mov rbx, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
add rsp, 0x30
pop rdi
jmp qword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
mov rbx, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
mov eax, 1
add rsp, 0x30
pop rdi
ret
Function at 0x140016820
Capabilities:
Query or enumerate registry key

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rsi
push rdi
sub rsp, 0x280
mov rax, qword [0x140048840]
xor rax, rsp
mov qword [rsp + 0x270], rax
mov r9d, dword [rcx + 8]
xor ebp, ebp
mov rsi, rdx
mov r8, rdx
mov rdx, qword [rcx]
mov rdi, rcx
lea rcx, [rsp + 0x40]
or r9d, 0x2001f
mov qword [rsp + 0x40], rbp
mov dword [rsp + 0x48], ebp
mov qword [rsp + 0x50], rbp
call fcn.1400162d0
mov ebx, eax
test eax, eax
jne 0x140016937
mov rcx, qword [rsp + 0x40]
lea rax, [rsp + 0x60]
lea r9, [rsp + 0x58]
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x30], rbp
lea r8, [rsp + 0x70]
xor edx, edx
mov qword [rsp + 0x28], rbp
mov dword [rsp + 0x58], pe_nt_image_headers64
mov qword [rsp + 0x20], rbp
call qword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
test eax, eax
jne 0x140016911
nop dword [rax + rax]
lea rdx, [rsp + 0x70]
lea rcx, [rsp + 0x40]
call fcn.140016820
mov ebx, eax
test eax, eax
jne 0x140016937
mov rcx, qword [rsp + 0x40]
lea rax, [rsp + 0x60]
lea r9, [rsp + 0x58]
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x30], rbp
lea r8, [rsp + 0x70]
xor edx, edx
mov qword [rsp + 0x28], rbp
mov dword [rsp + 0x58], pe_nt_image_headers64
mov qword [rsp + 0x20], rbp
call qword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
test eax, eax
je 0x1400168c0
mov rcx, qword [rsp + 0x40]
test rcx, rcx
je 0x140016926
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov qword [rsp + 0x40], rbp
mov rdx, rsi
mov rcx, rdi
mov dword [rsp + 0x48], ebp
call fcn.1400157a0
mov ebx, eax
mov rcx, qword [rsp + 0x40]
test rcx, rcx
je 0x140016947
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, ebx
mov rcx, qword [rsp + 0x270]
xor rcx, rsp
call fcn.140024bf0
mov rbx, qword [rsp + 0x2b0]
add rsp, 0x280
pop rdi
pop rsi
pop rbp
ret
Function at 0x140016ab0
Capabilities:
Delete registry key

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
mov rbx, rcx
mov rcx, qword [rcx + 0x10]
mov rdi, rdx
test rcx, rcx
je 0x1400157ce
mov r8, rdx
mov rdx, qword [rbx]
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
jmp 0x140016ab0
cmp byte [0x140049f28], 0
jne 0x140015819
lea rcx, str.Advapi32.dll
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x140015809
lea rdx, str.RegDeleteKeyExW
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov byte [0x140049f28], 1
mov qword [0x140049f20], rax
jmp 0x140015820
mov rax, qword [0x140049f20]
mov byte [0x140049f28], 1
jmp 0x140015820
mov rax, qword [0x140049f20]
mov rcx, qword [rbx]
mov rdx, rdi
test rax, rax
je 0x14001583f
mov r8d, dword [rbx + 8]
xor r9d, r9d
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
jmp rax
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
jmp qword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x30
cmp qword [rcx], 0
mov rdi, r8
mov rsi, rdx
mov rbx, rcx
je 0x140016b24
lea rcx, str.Advapi32.dll
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x140016b46
lea rdx, str.RegDeleteKeyTransactedW
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
je 0x140016b46
mov rcx, qword [rbx]
mov qword [rsp + 0x28], 0
xor r9d, r9d
mov qword [rsp + 0x20], rcx
xor r8d, r8d
mov rdx, rdi
mov rcx, rsi
call rax
mov rbx, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
add rsp, 0x30
pop rdi
ret
cmp dword [rcx + 8], 0
je 0x140016b46
mov rdx, r8
mov rcx, rsi
mov rbx, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
add rsp, 0x30
pop rdi
jmp qword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
mov rbx, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
mov eax, 1
add rsp, 0x30
pop rdi
ret
Function at 0x140016d40
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push rbx
push rsi
push rdi
push r14
push r15
sub rsp, 0x490
mov qword [rsp + 0x48], 0xfffffffffffffffe
mov rax, qword [0x140048840]
xor rax, rsp
mov qword [rsp + 0x480], rax
mov r15, r9
mov rsi, r8
mov rbx, rdx
xor r14d, r14d
mov qword [rsp + 0x50], r14
mov qword [rsp + 0x60], rcx
mov qword [rsp + 0x58], r14
mov qword [rsp + 0x70], r14
xor edx, edx
lea r8d, [r14 + 0x60]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov rdi, rax
mov qword [rsp + 0x38], rax
test rax, rax
jne 0x140016dce
xor edx, edx
lea r8d, [r14 + 2]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov rdi, rax
mov qword [rsp + 0x38], rax
test rax, rax
jne 0x140016dce
call fcn.140014e90
mov ebx, eax
jmp 0x140016ef6
mov r8, r15
mov rdx, rsi
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_FindResourceW]
mov rbx, rax
test rax, rax
jne 0x140016def
call fcn.140014e90
jmp 0x140016ee5
mov rdx, rax
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_LoadResource]
mov rsi, rax
mov qword [rsp + 0x40], rax
test rax, rax
jne 0x140016e12
call fcn.140014e90
jmp 0x140016ee5
mov rdx, rbx
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_SizeofResource]
mov ebx, eax
mov dword [rsp + 0x30], eax
inc eax
cmp eax, ebx
jae 0x140016e34
mov ebx, 0x8007000e
jmp 0x140016ee7
mov ecx, eax
test eax, eax
je 0x140016e6c
xor edx, edx
or rax, 0xffffffffffffffff
div rcx
cmp rax, 2
jb 0x140016e62
lea rdx, [rcx + rcx]
cmp rdx, 0x400
jbe 0x140016e6c
lea rcx, [rsp + 0x70]
call fcn.140014d70
jmp 0x140016e76
mov ecx, 0x80070216
call fcn.1400150a0
lea rax, [rsp + 0x78]
mov qword [rsp + 0x70], rax
jmp 0x140016e89
cmp qword [rsp + 0x70], 0
jne 0x140016e98
mov ebx, 0x8007000e
jmp 0x140016ee7
mov dword [rsp + 0x28], ebx
mov rax, qword [rsp + 0x70]
mov qword [rsp + 0x20], rax
mov r9d, ebx
mov r8, rsi
xor edx, edx
lea ecx, [rdx + 3]
call qword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
test eax, eax
jne 0x140016ec2
call fcn.140014e90
jmp 0x140016ee5
mov ecx, eax
mov rax, qword [rsp + 0x70]
mov word [rax + rcx*2], r14w
mov r8d, dword [rsp + 0x4e0]
mov rdx, qword [rsp + 0x70]
lea rcx, [rsp + 0x58]
call fcn.140016b60
mov ebx, eax
test rdi, rdi
je 0x140016ef6
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
nop
lea rax, [rsp + 0x78]
cmp qword [rsp + 0x70], rax
je 0x140016f0d
lea rcx, [rsp + 0x70]
call fcn.140015890
nop
mov eax, ebx
mov rcx, qword [rsp + 0x480]
xor rcx, rsp
call fcn.140024bf0
add rsp, 0x490
pop r15
pop r14
pop rdi
pop rsi
pop rbx
ret
Function at 0x1400176f0
Capabilities:
Set registry value

Disassembly:
sub rsp, 0x48
mov rax, qword [0x140048840]
xor rax, rsp
mov qword [rsp + 0x38], rax
mov rcx, qword [rcx]
lea rax, [rsp + 0x30]
mov dword [rsp + 0x30], r8d
mov r9d, 4
xor r8d, r8d
mov dword [rsp + 0x28], 4
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov rcx, qword [rsp + 0x38]
xor rcx, rsp
call fcn.140024bf0
add rsp, 0x48
ret

Function at 0x140017740
Capabilities:
Set registry value

Disassembly:
sub rsp, 0x38
mov r9, r8
mov r10, rdx
test r8, r8
jne 0x140017758
lea eax, [r8 + 0xd]
add rsp, 0x38
ret
xor r8d, r8d
mov rdx, r9
nop
or rax, 0xffffffffffffffff
inc rax
cmp word [rdx + rax*2], 0
jne 0x140017764
inc eax
lea rdx, [rdx + rax*2]
lea r8d, [r8 + rax*2]
cmp eax, 1
jne 0x140017760
mov rcx, qword [rcx]
mov dword [rsp + 0x28], r8d
mov qword [rsp + 0x20], r9
lea r9d, [rax + 6]
xor r8d, r8d
mov rdx, r10
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
add rsp, 0x38
ret
Function at 0x14001b830
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push rbx
push rdi
push r14
sub rsp, 0x1b0
mov rax, qword [0x140048840]
xor rax, rsp
mov qword [rsp + 0x180], rax
mov rbx, qword [0x14004a030]
mov r14, rcx
movzx edx, dx
mov r8d, 0xf0
mov rcx, rbx
mov edi, 1
call qword [sym.imp.KERNEL32.dll_FindResourceW]
test rax, rax
je 0x14001ba1f
mov rdx, rax
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_LoadResource]
test rax, rax
je 0x14001ba1f
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_LockResource]
mov rbx, rax
test rax, rax
je 0x14001ba1f
mov qword [rsp + 0x1a8], rsi
mov qword [rsp + 0x1a0], r12
mov qword [rsp + 0x198], r13
mov qword [rsp + 0x190], r15
mov r13d, 0x403
mov r12d, 0x1234
xor r15d, r15d
mov qword [rsp + 0x1e0], rbp
nop dword [rax]
movzx esi, word [rbx]
cmp r15w, si
je 0x14001b9d9
movzx eax, word [rbx + 2]
mov ebp, dword [rbx + 4]
add rbx, 8
cmp r13w, ax
jne 0x14001b959
lea rax, [rsp + 0x78]
lea rcx, [rsp + 0x70]
mov r8d, 3
mov rdx, rbx
mov qword [rsp + 0x70], rax
call fcn.14001ca80
mov rax, qword [rsp + 0x70]
mov rcx, qword [r14 + 8]
movzx edx, si
xor r9d, r9d
mov r8d, 0x143
mov qword [rsp + 0x20], rax
call qword [sym.imp.USER32.dll_SendDlgItemMessageW]
mov rcx, qword [rsp + 0x70]
cmp rax, 0xffffffffffffffff
lea rax, [rsp + 0x78]
cmove edi, r15d
cmp rcx, rax
je 0x14001b9ce
call fcn.140023bdc
jmp 0x14001b9ce
cmp r12w, ax
jne 0x14001b9ce
lea rax, [rsp + 0x78]
lea rcx, [rsp + 0x70]
mov r8d, 3
mov rdx, rbx
mov dword [rsp + 0x30], 1
mov qword [rsp + 0x38], 0xffffffffffffffff
mov qword [rsp + 0x70], rax
call fcn.14001ca80
mov rcx, qword [rsp + 0x70]
lea rax, [rsp + 0x78]
mov qword [rsp + 0x40], rcx
cmp rcx, rax
je 0x14001b9a6
call fcn.140023bdc
mov rcx, qword [r14 + 8]
lea rax, [rsp + 0x30]
movzx edx, si
xor r9d, r9d
mov r8d, 0x40b
mov qword [rsp + 0x20], rax
call qword [sym.imp.USER32.dll_SendDlgItemMessageW]
cmp rax, 0xffffffffffffffff
cmove edi, r15d
add rbx, rbp
test edi, edi
jne 0x14001b8e0
mov rbp, qword [rsp + 0x1e0]
mov r12, qword [rsp + 0x1a0]
mov rsi, qword [rsp + 0x1a8]
mov r13, qword [rsp + 0x198]
mov r15, qword [rsp + 0x190]
mov eax, edi
mov rcx, qword [rsp + 0x180]
xor rcx, rsp
call fcn.140024bf0
add rsp, 0x1b0
pop r14
pop rdi
pop rbx
ret
mov eax, edi
jmp 0x14001ba03
Function at 0x14001bf40
Capabilities:
Get keyboard layout
Identify system language via api

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x120
mov rax, qword [0x140048840]
xor rax, rsp
mov qword [rsp + 0x110], rax
xor ebx, ebx
lea rdx, [rsp + 0x20]
lea ecx, [rbx + 0x1e]
call qword [sym.imp.USER32.dll_GetKeyboardLayoutList]
call qword [sym.imp.KERNEL32.dll_GetUserDefaultUILanguage]
movzx edi, ax
call qword [sym.imp.KERNEL32.dll_GetSystemDefaultUILanguage]
cmp di, ax
jne 0x14001bfe4
call qword [sym.imp.KERNEL32.dll_GetSystemDefaultLangID]
mov ecx, ebx
nop dword [rax + rax]
cmp ax, word [rsp + rcx*8 + 0x20]
jne 0x14001bf9c
mov rbx, qword [rsp + rcx*8 + 0x20]
cmp ax, word [rsp + rcx*8 + 0x28]
jne 0x14001bfa8
mov rbx, qword [rsp + rcx*8 + 0x28]
cmp ax, word [rsp + rcx*8 + 0x30]
jne 0x14001bfb4
mov rbx, qword [rsp + rcx*8 + 0x30]
cmp ax, word [rsp + rcx*8 + 0x38]
jne 0x14001bfc0
mov rbx, qword [rsp + rcx*8 + 0x38]
cmp ax, word [rsp + rcx*8 + 0x40]
jne 0x14001bfcc
mov rbx, qword [rsp + rcx*8 + 0x40]
cmp ax, word [rsp + rcx*8 + 0x48]
jne 0x14001bfd8
mov rbx, qword [rsp + rcx*8 + 0x48]
add rcx, 6
cmp rcx, 0x1e
jl 0x14001bf90
jmp 0x14001c039
mov rax, rbx
cmp di, word [rsp + rax*8 + 0x20]
jne 0x14001bff3
mov rbx, qword [rsp + rax*8 + 0x20]
cmp di, word [rsp + rax*8 + 0x28]
jne 0x14001bfff
mov rbx, qword [rsp + rax*8 + 0x28]
cmp di, word [rsp + rax*8 + 0x30]
jne 0x14001c00b
mov rbx, qword [rsp + rax*8 + 0x30]
cmp di, word [rsp + rax*8 + 0x38]
jne 0x14001c017
mov rbx, qword [rsp + rax*8 + 0x38]
cmp di, word [rsp + rax*8 + 0x40]
jne 0x14001c023
mov rbx, qword [rsp + rax*8 + 0x40]
cmp di, word [rsp + rax*8 + 0x48]
jne 0x14001c02f
mov rbx, qword [rsp + rax*8 + 0x48]
add rax, 6
cmp rax, 0x1e
jl 0x14001bfe7
mov rax, rbx
mov rcx, qword [rsp + 0x110]
xor rcx, rsp
call fcn.140024bf0
mov rbx, qword [rsp + 0x130]
add rsp, 0x120
pop rdi
ret
Function at 0x14001c3a0
Capabilities:
Get keyboard layout
Log keystrokes via polling

Disassembly:
mov r11, rsp
push rbp
push rsi
push r14
sub rsp, 0x250
mov rax, qword [0x140048840]
xor rax, rsp
mov qword [rsp + 0x230], rax
or esi, 0xffffffff
mov r14, r8
mov rbp, rdx
test rdx, rdx
je 0x14001c4b6
mov qword [r11 + 8], rbx
mov qword [r11 - 0x20], rdi
lea edx, [rsi + 2]
mov rcx, rbp
mov qword [r11 - 0x28], r15
call qword [sym.imp.USER32.dll_ActivateKeyboardLayout]
xor ebx, ebx
lea rdi, [0x140046070]
lea r15, [0x140046074]
nop word [rax + rax]
lea rcx, [rsp + 0x20]
xor edx, edx
mov r8d, 0x208
call fcn.140024d00
movsxd rdx, ebx
mov rcx, r14
imul rdx, rdx, 0x2c
add rdx, r15
call fcn.140025840
test eax, eax
je 0x14001c49c
mov ecx, dword [rdi]
mov eax, ecx
dec eax
je 0x14001c445
dec eax
je 0x14001c43e
cmp eax, 2
jne 0x14001c44a
lea ecx, [rax + 0xe]
jmp 0x14001c44a
mov ecx, 0x11
jmp 0x14001c44a
mov ecx, 0x12
mov r8, rbp
xor edx, edx
call qword [sym.imp.USER32.dll_MapVirtualKeyExW]
mov ecx, eax
lea eax, [rbx - 0xf]
shl ecx, 0x10
or ecx, 1
cmp eax, 3
ja 0x14001c469
bts ecx, 0x18
lea rdx, [rsp + 0x20]
mov r8d, 0x104
call qword [sym.imp.USER32.dll_GetKeyNameTextW]
lea rdx, [rsp + 0x20]
mov rcx, r14
call fcn.140025840
test eax, eax
je 0x14001c49c
inc ebx
add rdi, 0x2c
cmp ebx, 0x42
jl 0x14001c400
jmp 0x14001c49e
mov esi, ebx
mov rdi, qword [rsp + 0x248]
mov rbx, qword [rsp + 0x270]
mov r15, qword [rsp + 0x240]
xor ecx, ecx
call qword [sym.imp.USER32.dll_GetKeyboardLayout]
mov edx, 1
mov rcx, rax
call qword [sym.imp.USER32.dll_ActivateKeyboardLayout]
mov eax, esi
mov rcx, qword [rsp + 0x230]
xor rcx, rsp
call fcn.140024bf0
add rsp, 0x250
pop r14
pop rsi
pop rbp
ret
Function at 0x140020e70
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov qword [rsp + 0x18], rbx
push rsi
push rdi
push r12
push r13
push r14
sub rsp, 0x30
mov r12, r9
mov r13, r8
mov rbx, rdx
mov r14, rcx
call fcn.140020c70
xor edi, edi
lea r8d, [rdi + 5]
mov rdx, rbx
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_FindResourceW]
mov rsi, rax
test rax, rax
je 0x140020f89
mov r8d, 0xf0
mov rdx, rbx
mov rcx, r14
mov qword [rsp + 0x68], r15
call qword [sym.imp.KERNEL32.dll_FindResourceW]
mov r15d, edi
test rax, rax
je 0x140020ee7
mov rdx, rax
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_LoadResource]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_LockResource]
mov r15, rax
mov rdx, rsi
mov rcx, r14
mov qword [rsp + 0x60], rbp
mov ebx, edi
call qword [sym.imp.KERNEL32.dll_LoadResource]
test rax, rax
je 0x140020f6b
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_LockResource]
mov rbp, rax
test rax, rax
je 0x140020f6b
mov rdx, r15
mov rcx, rax
call fcn.1400227a0
mov r9, r12
mov r8, r13
mov rsi, rax
mov rax, qword [rsp + 0x80]
mov rcx, r14
mov rdx, rsi
mov qword [rsp + 0x20], rax
call qword [sym.imp.USER32.dll_CreateDialogIndirectParamW]
mov rdi, rax
test rax, rax
jne 0x140020f4d
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
cmp rsi, rbp
je 0x140020f73
test rsi, rsi
je 0x140020f73
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_GlobalHandle]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GlobalFree]
jmp 0x140020f73
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
mov r15, qword [rsp + 0x68]
mov rbp, qword [rsp + 0x60]
test ebx, ebx
je 0x140020f89
mov ecx, ebx
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov rax, rdi
mov rbx, qword [rsp + 0x70]
add rsp, 0x30
pop r14
pop r13
pop r12
pop rdi
pop rsi
ret

Function at 0x140022b40
Capabilities:
Create thread

Disassembly:
push rbx
sub rsp, 0x40
mov rax, qword [0x140048840]
xor rax, rsp
mov qword [rsp + 0x38], rax
mov rbx, rcx
xor r9d, r9d
xor r8d, r8d
xor ecx, ecx
xor edx, edx
call qword [sym.imp.KERNEL32.dll_CreateEventW]
mov qword [rbx + 0x50], rax
test rax, rax
jne 0x140022b84
mov rcx, qword [rsp + 0x38]
xor rcx, rsp
call fcn.140024bf0
add rsp, 0x40
pop rbx
ret
lea rax, [rsp + 0x30]
lea r8, [0x140021f60]
mov r9, rbx
mov qword [rsp + 0x28], rax
xor edx, edx
xor ecx, ecx
mov dword [rsp + 0x20], 0
mov qword [rsp + 0x58], rdi
call qword [sym.imp.KERNEL32.dll_CreateThread]
mov rdi, rax
test rax, rax
jne 0x140022bc5
mov rcx, qword [rbx + 0x50]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov qword [rbx + 0x50], rdi
mov rax, rdi
mov rdi, qword [rsp + 0x58]
mov rcx, qword [rsp + 0x38]
xor rcx, rsp
call fcn.140024bf0
add rsp, 0x40
pop rbx
ret
Function at 0x140022d30
Capabilities:
Accept command line arguments

Disassembly:
mov qword [rsp + 0x10], rbx
push rsi
sub rsp, 0x20
cmp byte [0x140049fa8], 0
mov esi, edx
mov rbx, rcx
je 0x140022d56
or eax, 0xffffffff
mov rbx, qword [rsp + 0x38]
add rsp, 0x20
pop rsi
ret
xor ecx, ecx
mov qword [rsp + 0x30], rdi
call qword [sym.imp.ole32.dll_CoInitialize]
mov edi, eax
mov dword [rsp + 0x40], eax
test eax, eax
jns 0x140022d9c
cmp eax, 0x80010106
jne 0x140022dfc
lea rcx, str.Mscoree.dll
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
jne 0x140022da0
mov eax, edi
mov rdi, qword [rsp + 0x30]
mov rbx, qword [rsp + 0x38]
add rsp, 0x20
pop rsi
ret
mov byte [rbx + 0x62], 1
call qword [sym.imp.KERNEL32.dll_GetCommandLineW]
lea r8, [rsp + 0x40]
mov rcx, rbx
mov rdx, rax
call fcn.140021fb0
cmp al, 1
jne 0x140022dec
mov edx, esi
mov rcx, rbx
call fcn.140022510
mov edi, eax
test eax, eax
jne 0x140022dde
mov rcx, rbx
call fcn.140022730
mov rcx, rbx
call fcn.140022380
mov edi, eax
jmp 0x140022df0
js 0x140022df0
mov rcx, rbx
call fcn.140022380
mov edi, eax
jmp 0x140022df0
mov edi, dword [rsp + 0x40]
cmp byte [rbx + 0x62], 0
je 0x140022dfc
call qword [sym.imp.ole32.dll_CoUninitialize]
mov rbx, qword [rsp + 0x38]
mov eax, edi
mov rdi, qword [rsp + 0x30]
add rsp, 0x20
pop rsi
ret

Function at 0x140022f40
Capabilities:
Check mutex on windows

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x20
xor ebx, ebx
lea r8, str.HKAB32DBA6DDE1
xor ecx, ecx
lea edx, [rbx + 1]
mov esi, r9d
call qword [sym.imp.KERNEL32.dll_CreateMutexW]
mov rdi, rax
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
je 0x140022f91
xor ecx, ecx
call fcn.140021e20
test al, al
je 0x140022f91
lea rcx, [0x140049fb0]
mov edx, esi
call fcn.140022d30
mov ebx, eax
test rdi, rdi
je 0x140022f9f
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rsi, qword [rsp + 0x38]
mov eax, ebx
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret

Function at 0x14002642c
Capabilities:
Terminate process

Disassembly:
xor r8d, r8d
xor edx, edx
jmp fcn.140026294