joyce8/EMBER2024-capa huggingface dataset:
Function at 0x14000ea13
Capabilities:
Allocate thread local storage

Disassembly:
sub rsp, 0x28
call qword [sym.imp.KERNEL32.dll_TlsAlloc]
mov dword [0x14056bc78], eax
inc eax
jne 0x14000ea2d
call sub.msvcrt.dll_abort
nop
add rsp, 0x28
ret

Function at 0x14000eba1
Capabilities:
Print debug messages

Disassembly:
push rdi
push rsi
push rbx
sub rsp, 0x90
mov rbx, rcx
test rcx, rcx
je 0x14000ec3d
call fcn.1400111ca
dec eax
jne 0x14000ec36
xor eax, eax
lea rdi, [rsp + 0x25]
mov ecx, 0xa
lea rsi, str.Error_cleaning_up_spin_keys_for_thread
rep movsd dword [rdi], dword [rsi]
lea rdi, [rsp + 0x4d]
mov ecx, 0x43
rep stosb byte [rdi], al
call qword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
lea rdx, [rsp + 0x4c]
mov r8d, 0xa
mov ecx, eax
call qword [sym.imp.msvcrt.dll__ultoa]
mov eax, 0x27
lea rcx, [rsp + 0x25]
cmp byte [rcx + rax], 0
je 0x14000ec15
inc rax
cmp rax, 0x6b
jne 0x14000ec04
jmp 0x14000ec2b
cmp eax, 0x6a
je 0x14000ec2b
movsxd rdx, eax
inc eax
cdqe
mov byte [rsp + rdx + 0x25], 0xa
mov byte [rsp + rax + 0x25], 0
call qword [sym.imp.KERNEL32.dll_OutputDebugStringA]
call sub.msvcrt.dll_abort
mov qword [rbx], 0xffffffffffffffff
add rsp, 0x90
pop rbx
pop rsi
pop rdi
ret

Function at 0x14000ecdf
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push rdi
push rsi
push rbx
sub rsp, 0x50
call fcn.14000ec48
mov ecx, dword [0x14056bc78]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rsi, rax
test rax, rax
jne 0x14000edee
call fcn.14000eaf5
cmp qword [0x14057d048], 0
mov rbx, rax
je 0x14000edee
test rax, rax
je 0x14000edee
mov dword [rax + 0x44], 1
call qword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
xor r9d, r9d
xor r8d, r8d
mov edx, 1
xor ecx, ecx
mov dword [rbx + 0x70], eax
call qword [sym.imp.KERNEL32.dll_CreateEventA]
mov qword [rbx + 0x38], 0xffffffffffffffff
lea rcx, [rbx + 0x68]
mov qword [rbx + 0x30], rax
call fcn.14000eba1
xor edx, edx
xor ecx, ecx
mov rdi, qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov dword [rbx + 0xb8], edx
mov qword [rbx + 0x28], rcx
call rdi
mov qword [rsp + 0x48], rax
call qword [sym.imp.KERNEL32.dll_GetCurrentThread]
mov rsi, rax
call rdi
xor r8d, r8d
mov dword [rsp + 0x30], 2
mov rdx, rsi
mov dword [rsp + 0x28], r8d
mov rcx, rax
lea r9, [rbx + 0x28]
mov dword [rsp + 0x20], r8d
mov r8, qword [rsp + 0x48]
call qword [sym.imp.KERNEL32.dll_DuplicateHandle]
test eax, eax
jne 0x14000edb4
call sub.msvcrt.dll_abort
mov rcx, qword [rbx + 0x28]
call qword [sym.imp.KERNEL32.dll_GetThreadPriority]
mov ecx, dword [0x14056bc78]
mov rdx, rbx
mov dword [rbx + 0xc0], eax
xor eax, eax
mov dword [rbx + 0xbc], eax
mov al, byte [rbx + 0x40]
and eax, 0xffffffcf
or eax, 0x10
mov byte [rbx + 0x40], al
call qword [sym.imp.KERNEL32.dll_TlsSetValue]
test eax, eax
je 0x14000edaf
mov rsi, rbx
mov rax, rsi
add rsp, 0x50
pop rbx
pop rsi
pop rdi
ret
Function at 0x14000f96f
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push rsi
push rbx
sub rsp, 0x28
mov rsi, rcx
call fcn.14000ecdf
mov qword [rax + 8], rsi
mov rcx, qword [rax + 0x1d8]
mov rbx, rax
call fcn.14000f447
test byte [rbx + 0x40], 0x30
jne 0x14000f9a8
lea rcx, [rbx + 0xd0]
mov edx, 1
call qword [sym.imp.msvcrt.dll_longjmp]
mov ecx, dword [0x14056bc78]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rbx, rax
test rax, rax
je 0x14000fa33
cmp qword [rax + 0x28], 0
mov rcx, qword [rax + 0x30]
jne 0x14000f9e3
mov dword [rax], 0xdeadbeef
test rcx, rcx
je 0x14000f9d8
call qword [sym.imp.KERNEL32.dll_CloseHandle]
xor ecx, ecx
mov esi, dword [rbx + 8]
mov qword [rbx + 0x30], rcx
jmp 0x14000fa1d
mov dword [rax + 0xbc], 1
mov esi, dword [rax + 8]
test rcx, rcx
je 0x14000f9fb
call qword [sym.imp.KERNEL32.dll_CloseHandle]
xor edx, edx
mov qword [rbx + 0x30], rdx
test byte [rbx + 0x44], 4
je 0x14000fa33
mov dword [rbx], 0xdeadbeef
mov rcx, qword [rbx + 0x28]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
mov qword [rbx + 0x28], rax
mov rcx, rbx
call fcn.14000edf9
mov ecx, dword [0x14056bc78]
xor edx, edx
call qword [sym.imp.KERNEL32.dll_TlsSetValue]
mov ecx, esi
call qword [sym.imp.msvcrt.dll__endthreadex]
nop
Function at 0x180051940
Capabilities:
Log keystrokes via polling

Disassembly:
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rbx
sub rsp, 0x40
mov dword [rsp + 0x20], 0
mov rcx, qword [rsp + 0x50]
call fcn.1800534b0
movzx eax, al
test eax, eax
je 0x180051b24
mov rcx, qword [rsp + 0x58]
mov rax, qword [rsp + 0x50]
mov rax, qword [rax + 0x2e8]
cmp qword [rcx], rax
je 0x1800519a4
mov rdx, qword [rsp + 0x58]
mov rdx, qword [rdx]
mov rcx, qword [rsp + 0x50]
mov rcx, qword [rcx + 0x2e8]
call qword [sym.imp.USER32.dll_IsChild]
test eax, eax
je 0x180051b24
mov rax, qword [rsp + 0x58]
cmp dword [rax + 8], 0x100
je 0x1800519c4
mov rax, qword [rsp + 0x58]
cmp dword [rax + 8], 0x104
jne 0x180051b24
mov rax, qword [rsp + 0x58]
cmp qword [rax + 0x10], 0xd
jne 0x180051b24
lea rcx, [rsp + 0x28]
call fcn.180051730
mov rcx, qword [rsp + 0x50]
add rcx, 0x2e8
call fcn.180051b90
mov dword [rsp + 0x24], eax
mov ebx, dword [rsp + 0x24]
add ebx, 1
mov edx, dword [rsp + 0x24]
lea rcx, [rsp + 0x28]
call fcn.180052a40
mov rcx, qword [rsp + 0x50]
add rcx, 0x2e8
mov r8d, ebx
mov rdx, rax
call fcn.180051b60
mov edx, 0xffffffff
lea rcx, [rsp + 0x28]
call fcn.180052b70
lea rcx, [rsp + 0x28]
call fcn.180051cb0
lea rcx, [rsp + 0x28]
call fcn.180051c00
lea rcx, [rsp + 0x28]
call fcn.180051bb0
test eax, eax
jne 0x180051b12
mov rax, qword [rsp + 0x58]
cmp dword [rax + 8], 0x104
jne 0x180051a7c
lea rcx, [rsp + 0x28]
call fcn.180051bf0
mov r8b, 1
mov rdx, rax
mov rcx, qword [rsp + 0x50]
call fcn.1800534f0
mov ecx, 0x11
call qword [sym.imp.USER32.dll_GetKeyState]
cwde
test eax, eax
jge 0x180051af8
lea rcx, [rsp + 0x30]
call fcn.180051730
lea rcx, [rsp + 0x28]
call fcn.180051bf0
mov r8, rax
lea rdx, str.http:__www._s.com
lea rcx, [rsp + 0x30]
call fcn.180051dc0
lea rcx, [rsp + 0x30]
call fcn.180051bf0
mov rcx, qword [rsp + 0x50]
add rcx, 0x2e8
mov rdx, rax
call fcn.180051b30
lea rcx, [rsp + 0x30]
call fcn.180051bf0
xor r8d, r8d
mov rdx, rax
mov rcx, qword [rsp + 0x50]
call fcn.1800534f0
lea rcx, [rsp + 0x30]
call fcn.180051850
jmp 0x180051b12
lea rcx, [rsp + 0x28]
call fcn.180051bf0
xor r8d, r8d
mov rdx, rax
mov rcx, qword [rsp + 0x50]
call fcn.1800534f0
mov dword [rsp + 0x20], 1
lea rcx, [rsp + 0x28]
call fcn.180051850
mov eax, dword [rsp + 0x20]
add rsp, 0x40
pop rbx
ret

Function at 0x180051b60
Capabilities:
Get graphical window text

Disassembly:
mov dword [rsp + 0x18], r8d
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x28
mov r8d, dword [rsp + 0x40]
mov rdx, qword [rsp + 0x38]
mov rcx, qword [rsp + 0x30]
mov rcx, qword [rcx]
call qword [sym.imp.USER32.dll_GetWindowTextW]
add rsp, 0x28
ret
Function at 0x180055fb0
Capabilities:
Check os version

Disassembly:
push rdi
sub rsp, 0x160
mov rax, qword [0x1801837f8]
xor rax, rsp
mov qword [rsp + 0x158], rax
mov dword [rsp + 0x30], 0
lea rdi, [rsp + 0x34]
xor eax, eax
mov ecx, 0x110
rep stosb byte [rdi], al
mov dword [rsp + 0x30], VarUI4FromDisp
lea rcx, [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_GetVersionExW]
mov dword [rsp + 0x150], eax
cmp dword [rsp + 0x150], 0
je 0x180056027
cmp dword [rsp + 0x34], 5
jae 0x18005601a
cmp dword [rsp + 0x34], 4
jne 0x180056027
cmp dword [rsp + 0x38], 0x5a
jb 0x180056027
mov dword [rsp + 0x154], 0
jmp 0x180056032
mov dword [rsp + 0x154], 1
mov al, byte [rsp + 0x154]
mov rcx, qword [rsp + 0x158]
xor rcx, rsp
call fcn.18008cb70
add rsp, 0x160
pop rdi
ret

Function at 0x180056f40
Capabilities:
Query or enumerate registry value

Disassembly:
mov qword [rsp + 0x20], r9
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x48
xor eax, eax
test eax, eax
jne 0x180056f58
xor eax, eax
test eax, eax
jne 0x180056f58
mov rax, qword [rsp + 0x68]
mov eax, dword [rax]
shl rax, 1
mov dword [rsp + 0x34], eax
mov rax, qword [rsp + 0x68]
mov dword [rax], 0
lea rax, [rsp + 0x34]
mov qword [rsp + 0x28], rax
mov rax, qword [rsp + 0x60]
mov qword [rsp + 0x20], rax
lea r9, [rsp + 0x30]
xor r8d, r8d
mov rdx, qword [rsp + 0x58]
mov rcx, qword [rsp + 0x50]
mov rcx, qword [rcx]
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov dword [rsp + 0x38], eax
cmp dword [rsp + 0x38], 0
je 0x180056fc0
mov eax, dword [rsp + 0x38]
jmp 0x180057043
cmp dword [rsp + 0x30], 1
je 0x180056fd5
cmp dword [rsp + 0x30], 2
je 0x180056fd5
mov eax, 0xd
jmp 0x180057043
cmp qword [rsp + 0x60], 0
je 0x180057029
cmp dword [rsp + 0x34], 0
je 0x18005701f
mov eax, dword [rsp + 0x34]
xor edx, edx
mov ecx, 2
div rcx
test rdx, rdx
jne 0x180057016
mov eax, dword [rsp + 0x34]
xor edx, edx
mov ecx, 2
div rcx
mov rcx, rax
mov rax, qword [rsp + 0x60]
movzx eax, word [rax + rcx*2 - 2]
test eax, eax
je 0x18005701d
mov eax, 0xd
jmp 0x180057043
jmp 0x180057029
xor ecx, ecx
mov rax, qword [rsp + 0x60]
mov word [rax], cx
mov eax, dword [rsp + 0x34]
xor edx, edx
mov ecx, 2
div rcx
mov rcx, rax
mov rax, qword [rsp + 0x68]
mov dword [rax], ecx
xor eax, eax
add rsp, 0x48
ret
Function at 0x18005d3c0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x48
mov r8d, 2
mov rdx, qword [rsp + 0x58]
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.KERNEL32.dll_FindResourceW]
mov qword [rsp + 0x30], rax
mov rdx, qword [rsp + 0x30]
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.KERNEL32.dll_LoadResource]
mov qword [rsp + 0x28], rax
mov rcx, qword [rsp + 0x28]
call qword [sym.imp.KERNEL32.dll_LockResource]
mov qword [rsp + 0x20], rax
mov rax, qword [rsp + 0x20]
add rsp, 0x48
ret

Function at 0x18005dcf0
Capabilities:
Capture webcam image

Disassembly:
mov dword [rsp + 0x10], edx
mov qword [rsp + 8], rcx
sub rsp, 0x28
mov r8d, dword [rsp + 0x38]
xor r9d, r9d
mov edx, 0x419
mov rcx, qword [rsp + 0x30]
mov rcx, qword [rcx]
call qword [sym.imp.USER32.dll_SendMessageW]
add rsp, 0x28
ret
Function at 0x180060a00
Capabilities:
Log keystrokes via polling

Disassembly:
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x58
mov rcx, qword [rsp + 0x60]
add rcx, 8
call fcn.180053ab0
test eax, eax
jne 0x180060a27
xor eax, eax
jmp 0x180060c0e
mov dword [rsp + 0x24], 0
mov rcx, qword [rsp + 0x60]
call fcn.180060c20
mov dword [rsp + 0x20], eax
cmp dword [rsp + 0x20], 0
jle 0x180060b7f
mov ecx, 0x11
call qword [sym.imp.USER32.dll_GetKeyState]
cwde
test eax, eax
jge 0x180060a62
mov dword [rsp + 0x3c], 1
jmp 0x180060a6a
mov dword [rsp + 0x3c], 0
movzx eax, byte [rsp + 0x3c]
mov byte [rsp + 0x28], al
mov rax, qword [rsp + 0x68]
cmp dword [rax + 8], 0x100
jne 0x180060b7f
mov rax, qword [rsp + 0x68]
cmp qword [rax + 0x10], 9
jne 0x180060b7f
movzx eax, byte [rsp + 0x28]
test eax, eax
je 0x180060b7f
cmp dword [rsp + 0x20], 1
jle 0x180060b77
mov rax, qword [rsp + 0x60]
mov eax, dword [rax + 0x9c]
mov dword [rsp + 0x2c], eax
mov ecx, 0x10
call qword [sym.imp.USER32.dll_GetKeyState]
cwde
test eax, eax
jge 0x180060ad6
mov dword [rsp + 0x40], 1
jmp 0x180060ade
mov dword [rsp + 0x40], 0
movzx eax, byte [rsp + 0x40]
mov byte [rsp + 0x38], al
movzx eax, byte [rsp + 0x38]
test eax, eax
je 0x180060b19
cmp dword [rsp + 0x2c], 0
jle 0x180060b04
mov eax, dword [rsp + 0x2c]
sub eax, 1
mov dword [rsp + 0x44], eax
jmp 0x180060b0f
mov eax, dword [rsp + 0x20]
sub eax, 1
mov dword [rsp + 0x44], eax
mov eax, dword [rsp + 0x44]
mov dword [rsp + 0x2c], eax
jmp 0x180060b4a
cmp dword [rsp + 0x2c], 0
jl 0x180060b3a
mov eax, dword [rsp + 0x20]
sub eax, 1
cmp dword [rsp + 0x2c], eax
jge 0x180060b3a
mov eax, dword [rsp + 0x2c]
add eax, 1
mov dword [rsp + 0x48], eax
jmp 0x180060b42
mov dword [rsp + 0x48], 0
mov eax, dword [rsp + 0x48]
mov dword [rsp + 0x2c], eax
mov edx, dword [rsp + 0x2c]
mov rcx, qword [rsp + 0x60]
call fcn.180060c60
mov r11, qword [rsp + 0x60]
mov qword [rsp + 0x30], r11
mov rax, qword [rsp + 0x60]
mov edx, dword [rax + 0x9c]
mov rcx, qword [rsp + 0x30]
call fcn.18006c9f0
mov dword [rsp + 0x24], 1
cmp dword [rsp + 0x24], 0
jne 0x180060bc6
mov rax, qword [rsp + 0x60]
movzx eax, byte [rax + 0xe0]
shr al, 6
and al, 1
movzx eax, al
test eax, eax
je 0x180060bc6
mov rax, qword [rsp + 0x68]
cmp dword [rax + 8], 0x100
jne 0x180060bc6
mov rax, qword [rsp + 0x68]
cmp qword [rax + 0x10], 0x1b
jne 0x180060bc6
call qword [sym.imp.USER32.dll_ReleaseCapture]
mov dword [rsp + 0x24], 1
cmp dword [rsp + 0x24], 0
jne 0x180060c0a
mov rax, qword [rsp + 0x60]
cmp dword [rax + 0x9c], 0xffffffff
je 0x180060c0a
mov rax, qword [rsp + 0x60]
mov edx, dword [rax + 0x9c]
mov rcx, qword [rsp + 0x60]
call fcn.180061110
mov r9, qword [rsp + 0x68]
xor r8d, r8d
mov edx, 0x37f
mov rcx, rax
call qword [sym.imp.USER32.dll_SendMessageW]
mov dword [rsp + 0x24], eax
mov eax, dword [rsp + 0x24]
add rsp, 0x58
ret
Function at 0x180066c80
Capabilities:
Check os version

Disassembly:
push rdi
sub rsp, 0x160
mov rax, qword [0x1801837f8]
xor rax, rsp
mov qword [rsp + 0x158], rax
mov dword [rsp + 0x30], VarUI4FromDisp
lea rdi, [rsp + 0x34]
xor eax, eax
mov ecx, 0x110
rep stosb byte [rdi], al
lea rcx, [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_GetVersionExW]
mov dword [rsp + 0x150], eax
cmp dword [rsp + 0x150], 0
je 0x180066ce1
cmp dword [rsp + 0x34], 6
jb 0x180066ce1
mov dword [rsp + 0x154], 1
jmp 0x180066cec
mov dword [rsp + 0x154], 0
mov al, byte [rsp + 0x154]
mov rcx, qword [rsp + 0x158]
xor rcx, rsp
call fcn.18008cb70
add rsp, 0x160
pop rdi
ret
Function at 0x180066f90
Capabilities:
Set global application hook

Disassembly:
mov qword [rsp + 0x20], r9
mov qword [rsp + 0x18], r8
mov dword [rsp + 0x10], edx
mov qword [rsp + 8], rcx
sub rsp, 0xb8
mov r9, qword [rsp + 0xd8]
mov r8, qword [rsp + 0xd0]
mov edx, dword [rsp + 0xc8]
mov rcx, qword [rsp + 0xc0]
call fcn.180071a30
mov qword [rsp + 0x48], rax
mov rax, qword [rsp + 0xc0]
mov qword [rsp + 0x40], rax
mov rcx, qword [rsp + 0x40]
call fcn.180070b70
mov rcx, qword [rsp + 0xc0]
add rcx, 8
lea rdx, [rsp + 0x38]
call fcn.180058db0
lea rdx, [rsp + 0x30]
lea rcx, [rsp + 0x38]
call fcn.18005a700
lea rcx, [rsp + 0x30]
call fcn.180053a60
mov rcx, qword [rsp + 0xc0]
add rcx, 0xa0
mov rdx, rax
call fcn.18006fa80
mov rcx, qword [rsp + 0xc0]
add rcx, 8
mov edx, 0x20
call fcn.18006f050
mov rcx, qword [rsp + 0xc0]
add rcx, 8
xor r9d, r9d
xor r8d, r8d
lea rdx, [rsp + 0x70]
call fcn.18006f080
lea rcx, [rsp + 0x20]
call fcn.180067280
lea rcx, [rsp + 0x20]
call fcn.1800672b0
test eax, eax
jge 0x180067097
mov qword [rsp + 0x78], 0xffffffffffffffff
lea rcx, [rsp + 0x20]
call fcn.180067320
mov rax, qword [rsp + 0x78]
jmp 0x180067278
cmp qword [0x180184ce8], 0
jne 0x1800670f0
mov ecx, 0x18
call fcn.18008ca38
mov qword [rsp + 0x80], rax
cmp qword [rsp + 0x80], 0
je 0x1800670d5
mov rcx, qword [rsp + 0x80]
call fcn.18007ca90
mov qword [rsp + 0x98], rax
jmp 0x1800670e1
mov qword [rsp + 0x98], 0
mov rax, qword [rsp + 0x98]
mov qword [0x180184ce8], rax
cmp qword [0x180184ce8], 0
je 0x1800671f3
call qword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov dword [rsp + 0x58], eax
lea rdx, [rsp + 0x58]
mov rcx, qword [0x180184ce8]
call fcn.18007cc00
mov qword [rsp + 0x50], rax
cmp qword [rsp + 0x50], 0
jne 0x1800671e0
mov ecx, 0x10
call fcn.18008ca38
mov qword [rsp + 0x88], rax
cmp qword [rsp + 0x88], 0
je 0x18006715e
mov rcx, qword [rsp + 0x88]
call fcn.180067340
mov qword [rsp + 0xa0], rax
jmp 0x18006716a
mov qword [rsp + 0xa0], 0
mov rax, qword [rsp + 0xa0]
mov qword [rsp + 0x50], rax
call fcn.18005d350
mov r9d, dword [rsp + 0x58]
mov r8, rax
lea rdx, [0x180070160]
mov ecx, 3
call qword [sym.imp.USER32.dll_SetWindowsHookExW]
mov qword [rsp + 0x60], rax
cmp qword [rsp + 0x50], 0
je 0x1800671de
cmp qword [rsp + 0x60], 0
je 0x1800671de
mov rcx, qword [rsp + 0x50]
mov rax, qword [rsp + 0x60]
mov qword [rcx], rax
mov rax, qword [rsp + 0x50]
mov dword [rax + 8], 1
lea r8, [rsp + 0x50]
lea rdx, [rsp + 0x58]
mov rcx, qword [0x180184ce8]
call fcn.18007caf0
mov dword [rsp + 0x68], eax
jmp 0x1800671f3
mov rax, qword [rsp + 0x50]
mov ecx, dword [rax + 8]
add ecx, 1
mov rax, qword [rsp + 0x50]
mov dword [rax + 8], ecx
lea rcx, [rsp + 0x20]
call fcn.1800672d0
mov rcx, qword [rsp + 0xc0]
add rcx, 8
call fcn.1800672f0
and eax, 0x400000
test eax, eax
je 0x180067221
mov byte [rsp + 0xa8], 1
jmp 0x180067229
mov byte [rsp + 0xa8], 0
movzx edx, byte [rsp + 0xa8]
and dl, 1
shl dl, 6
mov rax, qword [rsp + 0xc0]
movzx ecx, byte [rax + 0xf1]
and cl, 0xbf
or cl, dl
mov rax, qword [rsp + 0xc0]
mov byte [rax + 0xf1], cl
mov rax, qword [rsp + 0x48]
mov qword [rsp + 0x90], rax
lea rcx, [rsp + 0x20]
call fcn.180067320
mov rax, qword [rsp + 0x90]
add rsp, 0xb8
ret
Function at 0x1800691a0
Capabilities:
Log keystrokes via polling

Disassembly:
mov qword [rsp + 0x20], r9
mov qword [rsp + 0x18], r8
mov dword [rsp + 0x10], edx
mov qword [rsp + 8], rcx
sub rsp, 0x38
mov rax, qword [rsp + 0x60]
mov dword [rax], 0
mov rax, qword [rsp + 0x40]
cmp dword [rax + 0x118], 0x12
je 0x180069205
mov rax, qword [rsp + 0x40]
cmp dword [rax + 0x118], 0x79
jne 0x1800691f3
mov ecx, 0x10
call qword [sym.imp.USER32.dll_GetKeyState]
cwde
and eax, 0x80
test eax, eax
je 0x180069205
mov rax, qword [rsp + 0x40]
cmp dword [rax + 0x118], 0x20
jne 0x18006930c
cmp qword [rsp + 0x50], 0xf100
jne 0x18006930c
mov rax, qword [rsp + 0x40]
mov qword [rsp + 0x20], rax
call qword [sym.imp.USER32.dll_GetFocus]
mov r11, rax
mov rax, qword [rsp + 0x40]
cmp r11, qword [rax + 8]
jne 0x18006925e
mov rcx, qword [rsp + 0x20]
call fcn.1800715a0
mov rcx, qword [rsp + 0x40]
add rcx, 8
xor r9d, r9d
mov r8, 0xffffffffffffffff
mov edx, 0x448
call fcn.180057760
jmp 0x18006930c
mov rax, qword [rsp + 0x40]
cmp dword [rax + 0x118], 0x20
je 0x1800692f3
mov rax, qword [rsp + 0x40]
movzx eax, byte [rax + 0xf0]
shr al, 6
and al, 1
movzx eax, al
test eax, eax
jne 0x1800692f3
mov rax, qword [rsp + 0x40]
movzx eax, byte [rax + 0xf1]
shr al, 1
and al, 1
movzx eax, al
test eax, eax
je 0x1800692db
mov rax, qword [rsp + 0x40]
movzx eax, byte [rax + 0xf1]
shr al, 2
and al, 1
movzx eax, al
test eax, eax
jne 0x1800692db
mov rax, qword [rsp + 0x40]
movzx eax, byte [rax + 0xf1]
shr al, 3
and al, 1
movzx eax, al
test eax, eax
je 0x1800692db
mov dl, 1
mov rcx, qword [rsp + 0x40]
call fcn.1800716b0
mov rcx, qword [rsp + 0x20]
call fcn.180071540
mov r11, qword [rsp + 0x60]
mov dword [r11], 1
jmp 0x18006930c
mov rax, qword [rsp + 0x40]
cmp dword [rax + 0x118], 0x20
je 0x18006930c
mov rax, qword [rsp + 0x60]
mov dword [rax], 1
mov rax, qword [rsp + 0x40]
movzx ecx, byte [rax + 0xf0]
and cl, 0xbf
mov rax, qword [rsp + 0x40]
mov byte [rax + 0xf0], cl
xor eax, eax
add rsp, 0x38
ret
Function at 0x18006c380
Capabilities:
Log keystrokes via polling

Disassembly:
mov qword [rsp + 0x20], r9
mov qword [rsp + 0x18], r8
mov dword [rsp + 0x10], edx
mov qword [rsp + 8], rcx
push rdi
sub rsp, 0x50
mov ecx, 0x10
call qword [sym.imp.USER32.dll_GetKeyState]
cwde
test eax, eax
jge 0x18006c3b2
mov dword [rsp + 0x48], 1
jmp 0x18006c3ba
mov dword [rsp + 0x48], 0
movzx eax, byte [rsp + 0x48]
mov byte [rsp + 0x20], al
cmp qword [rsp + 0x70], 0x79
jne 0x18006c450
movzx eax, byte [rsp + 0x20]
test eax, eax
je 0x18006c450
mov rax, qword [rsp + 0x60]
cmp dword [rax + 0x9c], 0xffffffff
je 0x18006c44e
mov dword [rsp + 0x28], 0
lea rdi, [rsp + 0x2c]
xor eax, eax
mov ecx, 0xc
rep stosb byte [rdi], al
mov rcx, qword [rsp + 0x60]
add rcx, 0x48
lea r8, [rsp + 0x28]
mov rax, qword [rsp + 0x60]
mov edx, dword [rax + 0x9c]
call fcn.18006f710
mov edx, dword [rsp + 0x28]
mov dword [rsp + 0x38], edx
mov eax, dword [rsp + 0x34]
mov dword [rsp + 0x3c], eax
mov rax, qword [rsp + 0x60]
mov qword [rsp + 0x40], rax
mov r8, qword [rsp + 0x38]
mov rax, qword [rsp + 0x60]
mov edx, dword [rax + 0x9c]
mov rcx, qword [rsp + 0x40]
call fcn.1800725e0
jmp 0x18006c45e
mov rax, qword [rsp + 0x80]
mov dword [rax], 0
xor eax, eax
add rsp, 0x50
pop rdi
ret
Function at 0x180087410
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov qword [rsp + 0x20], r9
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rbx
sub rsp, 0x4d0
mov rax, qword [0x1801837f8]
xor rax, rsp
mov qword [rsp + 0x4c8], rax
call fcn.180059610
mov dword [rsp + 0x70], eax
lea rcx, [rsp + 0x78]
call fcn.18005b970
mov rdx, qword [rsp + 0x4e0]
lea rcx, [rsp + 0x50]
call fcn.1800877d0
lea rcx, [rsp + 0x90]
call fcn.18008ad20
mov edx, 0x400
mov rcx, qword [rsp + 0x4e8]
call fcn.180087120
mov qword [rsp + 0x38], rax
mov r8d, 2
xor edx, edx
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov qword [rsp + 0x48], rax
cmp qword [rsp + 0x48], 0
jne 0x1800874b8
call fcn.180071440
mov dword [rsp + 0x4b0], eax
jmp 0x180087661
mov r8, qword [rsp + 0x4f8]
mov rdx, qword [rsp + 0x4f0]
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.KERNEL32.dll_FindResourceW]
mov qword [rsp + 0x4a8], rax
cmp qword [rsp + 0x4a8], 0
jne 0x1800874f7
call fcn.180071440
mov dword [rsp + 0x4b0], eax
jmp 0x180087661
mov rdx, qword [rsp + 0x4a8]
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.KERNEL32.dll_LoadResource]
mov qword [rsp + 0x4b8], rax
cmp qword [rsp + 0x4b8], 0
jne 0x18008752e
call fcn.180071440
mov dword [rsp + 0x4b0], eax
jmp 0x180087661
mov rdx, qword [rsp + 0x4a8]
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.KERNEL32.dll_SizeofResource]
mov dword [rsp + 0x60], eax
mov rax, qword [rsp + 0x4b8]
mov qword [rsp + 0x40], rax
mov eax, dword [rsp + 0x60]
add eax, 1
cmp eax, dword [rsp + 0x60]
jae 0x18008758d
mov dword [rsp + 0x4c0], 0x8007000e
lea rcx, [rsp + 0x90]
call fcn.18008ad40
lea rcx, [rsp + 0x78]
call fcn.18005b990
mov eax, dword [rsp + 0x4c0]
jmp 0x1800876a0
mov eax, dword [rsp + 0x60]
add eax, 1
mov edx, eax
lea rcx, [rsp + 0x90]
call fcn.18008ad80
lea rcx, [rsp + 0x90]
call fcn.18008ad70
test rax, rax
jne 0x1800875c5
mov dword [rsp + 0x4b0], 0x8007000e
jmp 0x180087661
lea rcx, [rsp + 0x90]
call fcn.18008ad70
mov rbx, rax
call fcn.180059610
mov ecx, eax
mov eax, dword [rsp + 0x60]
mov dword [rsp + 0x28], eax
mov qword [rsp + 0x20], rbx
mov r9d, dword [rsp + 0x60]
mov r8, qword [rsp + 0x40]
xor edx, edx
call qword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
mov dword [rsp + 0x4a0], eax
cmp dword [rsp + 0x4a0], 0
jne 0x18008761a
call fcn.180071440
mov dword [rsp + 0x4b0], eax
jmp 0x180087661
lea rcx, [rsp + 0x90]
call fcn.18008ad70
mov r11, rax
mov ecx, dword [rsp + 0x4a0]
xor eax, eax
mov word [r11 + rcx*2], ax
lea rcx, [rsp + 0x90]
call fcn.18008ad70
mov r8d, dword [rsp + 0x500]
mov rdx, rax
lea rcx, [rsp + 0x50]
call fcn.180087800
mov dword [rsp + 0x4b0], eax
cmp qword [rsp + 0x48], 0
je 0x180087674
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
mov eax, dword [rsp + 0x4b0]
mov dword [rsp + 0x4c4], eax
lea rcx, [rsp + 0x90]
call fcn.18008ad40
lea rcx, [rsp + 0x78]
call fcn.18005b990
mov eax, dword [rsp + 0x4c4]
mov rcx, qword [rsp + 0x4c8]
xor rcx, rsp
call fcn.18008cb70
add rsp, 0x4d0
pop rbx
ret