joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140008980
Capabilities:
Receive data
Receive data on socket

Disassembly:
mov qword [rsp + 8], rcx
push rbp
sub rsp, 0x20
mov qword [0x14011ea68], rdx
mov r9, rdx
mov r10, qword [rdx + 0x38]
mov r8d, 1
test r10, r10
je 0x140008a08
cmp byte [r10 + 5], r8b
jne 0x140008a08
cmp byte [r10 + 6], 0
je 0x1400089f0
mov rcx, qword [rdx + 0x18]
test rcx, rcx
je 0x1400089d9
jmp 0x1400089c4
cmp byte [rax], 4
jne 0x1400089d9
mov rcx, qword [rax + 0x30]
call fcn.14000888c
test al, al
je 0x1400089d9
mov rax, qword [rcx + 0x18]
mov r9, rcx
test rax, rax
jne 0x1400089bb
xor edx, edx
mov rcx, r9
call fcn.14000893c
mov rcx, r10
mov edx, 8
call fcn.1400b836c
lea rdx, [0x1400f9efc]
lea rcx, [0x14011ea40]
add rsp, 0x20
pop rbp
jmp fcn.140008b90
mov r10d, dword [0x14011eac0]
cmp r10d, 3
je 0x140008a83
mov r11, qword [0x14011ea48]
movabs rbp, 0x2aaaaaaaaaaaaaab
cmp r10d, 4
jne 0x140008a56
mov rcx, r11
mov rax, rbp
sub rcx, qword [0x14011ea40]
add rcx, 0x18
imul rcx
sar rdx, 2
mov rcx, rdx
shr rcx, 0x3f
add rdx, rcx
cmp edx, dword [0x14011eacc]
jle 0x140008a83
cmp r10d, 5
jne 0x140008ab4
sub r11, qword [0x14011ea40]
mov rax, rbp
add r11, 0x18
imul r11
sar rdx, 2
mov rax, rdx
shr rax, 0x3f
add rdx, rax
cmp edx, dword [0x14011eacc]
jge 0x140008ab4
mov al, byte [r9]
cmp al, 0x16
jb 0x140008a92
cmp al, 0x18
jbe 0x140008aa4
cmp al, 0x1b
jmp 0x140008a9f
cmp al, 3
je 0x140008aa4
cmp al, 4
jne 0x140008aa1
cmp qword [r9 + 0x10], 0
je 0x140008aa4
xor r8d, r8d
test r8b, r8b
jne 0x140008ab4
cmp dword [r9 + 4], 0
jne 0x1400089f0
mov rcx, qword [0x14011ea60]
lea r8, [rsp + 0x30]
mov edx, 0x4004667f
call qword [sym.imp.WSOCK32.dll_ioctlsocket]
test eax, eax
jne 0x140008ae1
cmp dword [rsp + 0x30], eax
seta al
test al, al
je 0x140008ae1
xor edx, edx
jmp 0x1400089f7
xor eax, eax
add rsp, 0x20
pop rbp
ret
Function at 0x14000c7f8
Capabilities:
Send data
Send data on socket

Disassembly:
push rbx
sub rsp, 0x30
mov rbx, rcx
test rdx, rdx
jne 0x14000c84b
mov edx, dword [rcx + 0x80]
sub edx, 1
je 0x14000c844
sub edx, 2
je 0x14000c83b
sub edx, 1
je 0x14000c832
cmp edx, 1
je 0x14000c829
lea rdx, [0x1400f9fae]
jmp 0x14000c84b
lea rdx, str.step_out
jmp 0x14000c84b
lea rdx, str.step_over
jmp 0x14000c84b
lea rdx, str.step_into
jmp 0x14000c84b
lea rdx, [0x1400fbee4]
mov rcx, qword [rcx + 0x98]
lea rax, [0x1400f9fae]
test rcx, rcx
je 0x14000c866
cmp qword [rcx], 0
cmovne rax, qword [rcx]
mov qword [rsp + 0x28], rax
lea rcx, [rbx + 0x60]
mov qword [rsp + 0x20], r9
mov r9, r8
mov r8, rdx
lea rdx, str._response_command__s__status__s__reason__s__transaction_id__e___
call fcn.14000d2a4
mov rcx, rbx
add rsp, 0x30
pop rbx
jmp fcn.14000c894

Function at 0x14000c894
Capabilities:
Send data
Send data on socket

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x60
mov rdi, rcx
lea rdx, [rsp + 0x20]
mov rcx, qword [rcx + 0x70]
mov r8d, 0xa
add rcx, 0x26
call fcn.1400c3fb4
xor edx, edx
lea rcx, [rsp + 0x20]
call fcn.1400ba7b8
lea r8, str.__xml_version_1.0__encoding_UTF_8___
lea rdx, [0x1400fccb0]
lea rbx, [rax + 1]
mov rcx, rbx
call fcn.14000e6c4
mov rcx, qword [rdi + 0x20]
lea rdx, [rsp + 0x20]
movsxd r8, eax
xor r9d, r9d
add r8, rbx
lea rax, [rsp + 0x20]
sub r8d, eax
call qword [sym.imp.WSOCK32.dll_send]
cmp eax, 0xffffffff
je 0x14000c945
mov r8d, 1
lea rdx, [0x1400f9b70]
lea rcx, [rdi + 0x60]
call fcn.14000d22c
test eax, eax
jne 0x14000c945
mov r8d, dword [rdi + 0x70]
xor r9d, r9d
mov rdx, qword [rdi + 0x60]
mov rcx, qword [rdi + 0x20]
call qword [sym.imp.WSOCK32.dll_send]
cmp eax, 0xffffffff
je 0x14000c945
and qword [rdi + 0x70], 0
and dword [rdi + 0x78], 0
xor eax, eax
jmp 0x14000c951
lea rcx, str.An_internal_error_has_occurred_in_the_debugger_engine._nContinue_running_the_script_without_the_debugger_
call fcn.14000ce8c
mov rbx, qword [rsp + 0x70]
add rsp, 0x60
pop rdi
ret
Function at 0x14000cee0
Capabilities:
Encode data using base64

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x20
xor ebx, ebx
mov rsi, rdx
mov rdi, rcx
cmp r8, 0xffffffffffffffff
jne 0x14000cf08
mov rcx, rdx
call fcn.1400c4100
mov r8, rax
lea r10, str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_
cmp r8, 2
jbe 0x14000cfa7
lea rcx, [r8 - 3]
movabs rax, 0xaaaaaaaaaaaaaaab
mul rcx
lea r9, [rdi + 2]
shr rdx, 1
inc rdx
imul rax, rdx, 0xfffffffffffffffd
lea rbx, [rdx*4]
add r8, rax
movzx eax, byte [rsi + 1]
movzx ecx, byte [rsi]
shl rcx, 8
or rcx, rax
movzx eax, byte [rsi + 2]
shl rcx, 8
add rsi, 3
or rcx, rax
mov rax, rcx
shr rax, 0x12
mov al, byte [rax + r10]
mov byte [r9 - 2], al
mov rax, rcx
shr rax, 0xc
and eax, 0x3f
mov al, byte [rax + r10]
mov byte [r9 - 1], al
mov rax, rcx
shr rax, 6
and ecx, 0x3f
and eax, 0x3f
mov al, byte [rax + r10]
mov byte [r9], al
lea r9, [r9 + 4]
mov al, byte [rcx + r10]
mov byte [r9 - 3], al
sub rdx, 1
jne 0x14000cf43
test r8, r8
je 0x14000d006
movzx ecx, byte [rsi]
shl rcx, 0x10
cmp r8, 1
jbe 0x14000cfc4
movzx eax, byte [rsi + 1]
shl rax, 8
or rcx, rax
mov rax, rcx
shr rax, 0x12
mov al, byte [rax + r10]
mov byte [rbx + rdi], al
mov rax, rcx
shr rax, 0xc
and eax, 0x3f
mov al, byte [rax + r10]
mov byte [rbx + rdi + 1], al
cmp r8, 1
jbe 0x14000cff7
shr rcx, 6
and ecx, 0x3f
mov al, byte [rcx + r10]
jmp 0x14000cff9
mov al, 0x3d
mov byte [rbx + rdi + 2], al
mov byte [rbx + rdi + 3], 0x3d
add rbx, 4
mov rsi, qword [rsp + 0x38]
mov rax, rbx
mov byte [rbx + rdi], 0
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret

Function at 0x14000e47c
Capabilities:
Query environment variable

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x20
mov rsi, rdx
mov rbx, rcx
mov rcx, rsi
xor r8d, r8d
xor edx, edx
call qword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
mov edi, eax
test eax, eax
jne 0x14000e4df
mov rdi, qword [rbx + 8]
test rdi, rdi
je 0x14000e512
mov eax, dword [rdi + 0x20]
sub eax, 1
mov dword [rdi + 0x20], eax
jne 0x14000e4d4
mov rcx, qword [rdi + 8]
test rcx, rcx
je 0x14000e4c7
call fcn.1400beb90
mov edx, 0x28
mov rcx, rdi
call fcn.1400b836c
and qword [rbx + 8], 0
mov byte [rbx + 0x10], 0
jmp 0x14000e512
xor edx, edx
mov rcx, rbx
call fcn.14000e8d8
mov rcx, qword [rbx + 8]
mov rdx, rdi
call fcn.14000e71c
mov rax, qword [rbx + 8]
mov r8d, edi
mov rcx, rsi
mov rdx, qword [rax]
call qword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
mov ecx, eax
mov rax, qword [rbx + 8]
mov qword [rax + 0x10], rcx
mov rsi, qword [rsp + 0x38]
mov rax, rbx
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret
Function at 0x140012080
Capabilities:
Print debug messages

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rsi
push rdi
push r12
push r14
mov eax, 0x4040
call fcn.1400d8050
sub rsp, rax
mov rbx, qword [rsp + 0x4080]
mov r14, r9
mov r12, r8
mov esi, edx
mov rdi, rcx
test rbx, rbx
jne 0x1400120cf
mov rbx, qword [rcx + 0x6b0]
test rbx, rbx
jne 0x1400120cf
mov ecx, dword [rcx + 0x2d0]
movzx eax, word [rdi + 0x2d4]
jmp 0x1400120d7
movzx ecx, word [rbx + 2]
movzx eax, word [rbx + 4]
test esi, esi
je 0x1400121e8
mov r9, qword [0x140122f78]
lea rdx, str.Warning:
movzx ecx, cx
lea r8, str._s___d__:____s_s_n
mov qword [rsp + 0x30], r12
mov qword [rsp + 0x28], rdx
movzx eax, ax
mov r9, qword [r9 + rcx*8]
lea rcx, [rsp + 0x40]
mov qword [rsp + 0x4060], rbp
mov qword [rsp + 0x4068], r15
mov r15d, 0x2000
mov edx, r15d
mov dword [rsp + 0x20], eax
call fcn.14009abe0
cmp word [r14], 0
movsxd rbp, eax
je 0x140012159
lea rax, [rsp + 0x40]
sub r15d, ebp
lea rcx, [rax + rbp*2]
mov edx, r15d
mov r9, r14
lea r8, str._____Specifically:__s_n
call fcn.14009abe0
add ebp, eax
mov r15, qword [rsp + 0x4068]
cmp esi, 3
jne 0x14001217f
lea r9, [0x1400fdccc]
mov r8d, ebp
lea rdx, [rsp + 0x40]
mov rcx, rdi
call fcn.14000f400
jmp 0x1400121e0
mov eax, dword [0x14011eac4]
test eax, eax
je 0x1400121a7
lea r8, str.stderr
lea rdx, [rsp + 0x40]
lea rcx, [0x14011ea40]
call fcn.14000c704
mov eax, dword [0x14011eac4]
cmp eax, 2
je 0x1400121b7
lea rcx, [rsp + 0x40]
call qword [sym.imp.KERNEL32.dll_OutputDebugStringW]
cmp esi, 2
jne 0x1400121e0
mov qword [rsp + 0x28], 0
lea r8d, [rsi - 1]
mov r9, r14
mov qword [rsp + 0x20], rbx
mov rdx, r12
lea rcx, [0x1401245b0]
call fcn.1400106f0
mov rbp, qword [rsp + 0x4060]
lea r11, [rsp + 0x4040]
mov rbx, qword [r11 + 0x30]
mov rsi, qword [r11 + 0x38]
mov rsp, r11
pop r14
pop r12
pop rdi
ret
Function at 0x14001f3c0
Capabilities:
Check for time delay via gettickcount

Disassembly:
mov rax, rsp
mov byte [rax + 0x20], r9b
mov word [rax + 0x10], dx
push rsi
push rdi
sub rsp, 0x98
mov qword [rax + 8], rbx
movzx edi, r9b
mov qword [rax - 0x18], rbp
movzx ebx, dx
mov qword [rax - 0x20], r12
movzx ebp, cl
mov qword [rax - 0x28], r13
movzx r13d, r8b
mov qword [rax - 0x38], r15
or r13b, r9b
lea eax, [rbp - 1]
cmp al, 5
ja 0x14001f405
cmp cl, 3
jne 0x14001f40c
lea eax, [rbp + 0x66]
cmp al, 5
ja 0x14001f411
mov r15b, 1
jmp 0x14001f414
xor r15b, r15b
mov eax, dword [rsp + 0xd0]
mov rsi, qword [rsp + 0xe8]
movzx r12d, byte [rsp + 0xe0]
test eax, eax
jle 0x14001f59e
mov edi, dword [rsp + 0xd8]
mov qword [rsp + 0x78], r14
mov r14d, eax
cmp dword [0x140125094], 0
jne 0x14001f4b3
call qword [sym.imp.KERNEL32.dll_GetTickCount]
mov rcx, qword [0x14011c188]
sub eax, dword [0x140124d58]
cmp eax, dword [rcx + 0x88]
jbe 0x14001f4ba
xor r9d, r9d
mov dword [rsp + 0x20], 0
xor r8d, r8d
lea rcx, [rsp + 0x40]
xor edx, edx
call qword [sym.imp.USER32.dll_PeekMessageW]
test eax, eax
je 0x14001f4a7
mov edx, 1
mov dword [0x14011c180], 0
lea ecx, [rdx - 2]
call fcn.140001710
mov dword [0x14011c180], 1
call qword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [0x140124d58], eax
mov rcx, qword [0x14011c188]
test r12b, r12b
jne 0x14001f51b
movzx eax, byte [rcx + 0xc5]
test al, al
je 0x14001f4d3
mov ebx, 0xffc3d44d
sub ebx, eax
jmp 0x14001f4d8
mov ebx, 0xffc3d44f
cmp dword [0x140125094], 0
je 0x14001f4ea
movzx eax, byte [0x140125090]
jmp 0x14001f4f1
xor ecx, ecx
call fcn.1400226c0
mov dword [rsp + 0x28], ebx
xor r9d, r9d
mov r8, rsi
mov byte [rsp + 0x20], 1
movzx edx, al
movzx ecx, r13b
call fcn.140021e50
mov rcx, qword [0x14011c188]
movzx ebx, word [rsp + 0xb8]
test r15b, r15b
je 0x14001f55e
test rsi, rsi
jne 0x14001f55e
movzx eax, byte [rcx + 0xc3]
lea r9d, [rsi + 1]
movzx ecx, byte [rsp + 0x100]
mov r8d, dword [rsp + 0xf8]
mov edx, dword [rsp + 0xf0]
mov byte [rsp + 0x30], cl
movzx ecx, bpl
mov dword [rsp + 0x28], edi
mov dword [rsp + 0x20], eax
call fcn.140020b20
jmp 0x14001f587
movzx eax, byte [rcx + 0xc5]
mov r9, rsi
mov ecx, 0xffc3d44d
movzx r8d, bx
sub ecx, eax
movzx edx, bpl
mov dword [rsp + 0x28], ecx
mov ecx, edi
mov byte [rsp + 0x20], 1
call fcn.14001fb40
sub r14, 1
jne 0x14001f443
movzx edi, byte [rsp + 0xc8]
mov r14, qword [rsp + 0x78]
mov r15, qword [rsp + 0x70]
test r12b, r12b
mov r12, qword [rsp + 0x88]
mov r13, qword [rsp + 0x80]
mov rbp, qword [rsp + 0x90]
mov rbx, qword [rsp + 0xb0]
jne 0x14001f60b
cmp dword [0x140125094], 0
je 0x14001f5da
movzx eax, byte [0x140125090]
jmp 0x14001f5e1
xor ecx, ecx
call fcn.1400226c0
not dil
and dil, al
and dil, 0xcc
je 0x14001f60b
mov dword [rsp + 0x28], 0xffc3d44d
mov r9b, 1
mov r8, rsi
mov byte [rsp + 0x20], 0
movzx edx, dil
xor ecx, ecx
call fcn.140021e50
add rsp, 0x98
pop rdi
pop rsi
ret
Function at 0x14001f620
Capabilities:
Check for time delay via gettickcount

Disassembly:
mov qword [rsp + 0x20], rbx
push rbp
push rsi
push r14
sub rsp, 0x80
cmp dword [0x140125094], 2
movzx r14d, r8b
mov ebx, edx
sete bpl
movzx esi, cx
jne 0x14001f67c
mov eax, esi
mov ecx, esi
and eax, 0xffffff80
je 0x14001f659
mov edx, gethostbyaddr
mov word [rsp + 0x30], dx
lea r8, [rsp + 0x32]
test eax, eax
lea rdx, [rsp + 0x30]
cmovne rdx, r8
mov r8d, 0xa
call fcn.1400c404c
movzx esi, word [rsp + 0xa8]
test ebx, ebx
jle 0x14001f7fc
mov qword [rsp + 0xa0], rdi
mov rdi, rbx
mov qword [rsp + 0xb0], r15
xor r15d, r15d
nop word [rax + rax]
cmp dword [0x140125094], r15d
jne 0x14001f70a
call qword [sym.imp.KERNEL32.dll_GetTickCount]
mov rcx, qword [0x14011c188]
sub eax, dword [0x140124d58]
cmp eax, dword [rcx + 0x88]
jbe 0x14001f70a
xor r9d, r9d
mov dword [rsp + 0x20], r15d
xor r8d, r8d
lea rcx, [rsp + 0x50]
xor edx, edx
call qword [sym.imp.USER32.dll_PeekMessageW]
test eax, eax
je 0x14001f6fe
mov edx, 1
mov dword [0x14011c180], r15d
lea ecx, [rdx - 2]
call fcn.140001710
mov dword [0x14011c180], 1
call qword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [0x140124d58], eax
test bpl, bpl
je 0x14001f7b3
cmp dword [0x140125094], r15d
je 0x14001f725
movzx eax, byte [0x140125090]
jmp 0x14001f72c
xor ecx, ecx
call fcn.1400226c0
movzx ecx, al
mov dword [rsp + 0x28], 0xffc3d44f
and cl, 0xc4
mov byte [rsp + 0x20], 1
or cl, 4
xor r9d, r9d
xor r8d, r8d
movzx edx, al
call fcn.140021e50
movzx eax, word [rsp + 0x30]
lea rbx, [rsp + 0x30]
cmp ax, 0x30
jb 0x14001f793
cmp ax, 0x39
ja 0x14001f793
xor r8d, r8d
mov dword [rsp + 0x28], 0xffc3d44d
lea edx, [rax + 0x30]
mov byte [rsp + 0x20], r8b
xor r9d, r9d
lea ecx, [r8 + 2]
call fcn.14001fb40
movzx eax, word [rbx + 2]
add rbx, 2
cmp ax, 0x30
jae 0x14001f760
xor r8d, r8d
mov dword [rsp + 0x28], 0xffc3d44d
xor r9d, r9d
mov byte [rsp + 0x20], r8b
mov dl, reloc.OLEAUT32.dll_SafeArrayGetUBound
lea ecx, [r8 + 1]
call fcn.14001fb40
jmp 0x14001f7bf
movzx edx, r14b
movzx ecx, si
call fcn.14001d760
cmp dword [0x140125094], 2
mov rax, qword [0x14011c188]
jne 0x14001f7d7
mov ecx, dword [rax + 0x9c]
jmp 0x14001f7dd
mov ecx, dword [rax + 0x98]
call fcn.140021920
sub rdi, 1
jne 0x14001f6a0
mov r15, qword [rsp + 0xb0]
mov rdi, qword [rsp + 0xa0]
mov rbx, qword [rsp + 0xb8]
add rsp, 0x80
pop r14
pop rsi
pop rbp
ret
Function at 0x140021780
Capabilities:
Check for time delay via gettickcount
Create thread

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x20
mov ebx, 1
movzx esi, dl
cmp dword [0x140125094], ebx
mov rdi, rcx
jne 0x140021883
xor al, al
cmp qword [0x140122dd0], 0
movzx edi, al
cmovne edi, ebx
cmp qword [0x140122dc8], 0
je 0x1400217c4
or dil, 2
test dil, dil
je 0x14002185a
movzx ecx, byte [0x140125091]
movzx edx, bl
not cl
and cl, dil
call fcn.140016f30
mov rdx, qword [0x140122f70]
mov r8d, 0x28
mov ecx, dword [0x140125084]
call qword [sym.imp.USER32.dll_SendInput]
movzx eax, byte [0x140125091]
and al, dil
test bl, al
je 0x14002183f
movzx ecx, bl
call fcn.1400226c0
movzx r8d, al
xor r8b, sil
movzx edx, r8b
and r8b, al
and dl, sil
not dl
and dl, byte [0x140122ddf]
or dl, r8b
mov byte [0x140122ddf], dl
call qword [sym.imp.USER32.dll_GetForegroundWindow]
mov qword [0x140122c18], rax
movzx edx, bl
movzx ecx, dil
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
jmp fcn.140016f30
mov rdx, qword [0x140122f70]
mov r8d, 0x28
mov ecx, dword [0x140125084]
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
jmp qword [sym.imp.USER32.dll_SendInput]
mov r8, qword [0x140122b10]
lea rdx, [0x14001f8c0]
xor esi, esi
xor r9d, r9d
mov ecx, ebx
mov dword [0x14012508c], esi
call qword [sym.imp.USER32.dll_SetWindowsHookExW]
mov qword [0x140122ad0], rax
test rax, rax
je 0x140021905
mov byte [0x140122dc3], bl
nop word [rax + rax]
mov edx, ebx
mov dword [0x14011c180], esi
mov ecx, 0x8000012f
call fcn.140001710
cmp qword [0x140122ad0], rsi
mov dword [0x14011c180], ebx
jne 0x1400218c0
mov edx, dword [0x140125084]
mov rax, qword [0x14011f088]
dec edx
mov byte [0x140122dc3], sil
mov rcx, qword [rax]
cmp dword [rcx + rdx*8], esi
jne 0x140021905
mov eax, dword [rcx + rdx*8 + 4]
mov dword [rdi], eax
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret
Function at 0x140021b30
Capabilities:
Get graphical window text

Disassembly:
sub rsp, 0x28
mov r10, qword [0x140122b00]
test r10, r10
je 0x140021c67
movsxd rax, dword [0x140122b2c]
imul r9, rax, 0xd4
mov eax, 0x69
mov qword [rsp + 0x30], rbx
mov qword [rsp + 0x20], rdi
mov byte [r9 + r10 + 6], cl
mov byte [r9 + r10], dl
mov word [r9 + r10 + 2], r8w
mov word [r9 + r10 + 4], ax
call qword [sym.imp.KERNEL32.dll_GetTickCount]
mov ecx, eax
mov dword [0x140122b28], eax
sub ecx, dword [0x1401245a8]
xorps xmm0, xmm0
mov dword [0x1401245a8], eax
cvtsi2ss xmm0, rcx
movsxd rcx, dword [0x140122b2c]
imul rdx, rcx, 0xd4
divss xmm0, dword [0x140108e28]
mov rcx, qword [0x140122b00]
movss dword [rdx + rcx + 8], xmm0
call qword [sym.imp.USER32.dll_GetForegroundWindow]
xor edi, edi
mov rbx, rax
test rax, rax
je 0x140021c21
cmp rax, qword [0x140122b20]
je 0x140021c05
movsxd rcx, dword [0x140122b2c]
lea r8d, [rdi + 0x64]
imul rdx, rcx, 0xd4
mov rcx, qword [0x140122b00]
add rcx, 0xc
add rdx, rcx
mov rcx, rax
call qword [sym.imp.USER32.dll_GetWindowTextW]
mov edx, dword [0x140122b2c]
jmp 0x140021c45
movsxd rdx, dword [0x140122b2c]
mov rax, qword [0x140122b00]
imul rcx, rdx, 0xd4
mov word [rcx + rax + 0xc], di
jmp 0x140021c45
movsxd rdx, dword [0x140122b2c]
movabs r8, 0x41002f004e
mov rax, qword [0x140122b00]
imul rcx, rdx, 0xd4
mov qword [rcx + rax + 0xc], r8
inc edx
mov qword [0x140122b20], rbx
cmp edx, dword [0x14011c190]
mov rbx, qword [rsp + 0x30]
cmovge edx, edi
mov rdi, qword [rsp + 0x20]
mov dword [0x140122b2c], edx
add rsp, 0x28
ret
Function at 0x140021d00
Capabilities:
Log keystrokes via polling

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x30
movzx edi, cl
mov esi, edx
mov ecx, edi
call qword [sym.imp.USER32.dll_GetKeyState]
movzx ebx, ax
lea eax, [rsi - 1]
xor ebx, 0xffffffff
and ebx, 1
inc ebx
cmp eax, 1
ja 0x140021e45
cmp ebx, esi
je 0x140021e45
mov ecx, edi
mov qword [rsp + 0x40], r14
call qword [sym.imp.USER32.dll_GetKeyState]
bt ax, 0xf
jae 0x140021d74
xor r8d, r8d
mov dword [rsp + 0x28], 0xffc3d44d
xor r9d, r9d
mov byte [rsp + 0x20], r8b
movzx edx, dil
lea ecx, [r8 + 1]
call fcn.14001fb40
xor r8d, r8d
mov dword [rsp + 0x28], 0xffc3d44d
xor r9d, r9d
mov byte [rsp + 0x20], r8b
movzx edx, dil
lea ecx, [r8 + 2]
call fcn.14001fb40
call qword [sym.imp.USER32.dll_GetForegroundWindow]
mov rcx, rax
xor edx, edx
call qword [sym.imp.USER32.dll_GetWindowThreadProcessId]
cmp eax, dword [0x140124588]
sete r14b
jne 0x140021dd2
mov edx, 1
mov dword [0x14011c180], 0
lea ecx, [rdx - 2]
call fcn.140001710
mov dword [0x14011c180], 1
cmp dil, 0x14
jne 0x140021e29
cmp esi, 2
jne 0x140021e29
mov ecx, edi
call qword [sym.imp.USER32.dll_GetKeyState]
test al, 1
je 0x140021e29
xor r8d, r8d
mov dword [rsp + 0x28], 0xffc3d44d
xor r9d, r9d
mov byte [rsp + 0x20], r8b
mov dl, reloc.WSOCK32.dll_recv
mov ecx, esi
call fcn.14001fb40
test r14b, r14b
je 0x140021e29
lea edx, [rsi - 1]
mov dword [0x14011c180], 0
lea ecx, [rsi - 3]
call fcn.140001710
mov dword [0x14011c180], 1
mov r14, qword [rsp + 0x40]
mov eax, ebx
mov rbx, qword [rsp + 0x48]
mov rbp, qword [rsp + 0x50]
mov rsi, qword [rsp + 0x58]
add rsp, 0x30
pop rdi
ret
mov eax, ebx
jmp 0x140021e30
Function at 0x1400226c0
Capabilities:
Log keystrokes via polling

Disassembly:
sub rsp, 0x28
cmp qword [0x140122dd0], 0
je 0x1400226de
test cl, cl
jne 0x1400226de
movzx eax, byte [0x140122ee1]
add rsp, 0x28
ret
mov qword [rsp + 0x30], rbx
mov ecx, 0xa0
mov qword [rsp + 0x20], rdi
call qword [sym.imp.USER32.dll_GetAsyncKeyState]
shr ax, 0xb
mov ecx, 0xa1
and al, 0x10
movzx ebx, al
call qword [sym.imp.USER32.dll_GetAsyncKeyState]
movzx ecx, bl
mov edi, 0x8000
or cl, 0x20
movzx edx, cl
test di, ax
mov ecx, 0xa2
cmove edx, ebx
movzx ebx, dl
call qword [sym.imp.USER32.dll_GetAsyncKeyState]
movzx ecx, bl
or cl, 1
movzx edx, cl
test di, ax
mov ecx, 0xa3
cmove edx, ebx
movzx ebx, dl
call qword [sym.imp.USER32.dll_GetAsyncKeyState]
movzx ecx, bl
or cl, 2
movzx edx, cl
test di, ax
mov ecx, 0xa4
cmove edx, ebx
movzx ebx, dl
call qword [sym.imp.USER32.dll_GetAsyncKeyState]
movzx ecx, bl
or cl, 4
movzx edx, cl
test di, ax
mov ecx, 0xa5
cmove edx, ebx
movzx ebx, dl
call qword [sym.imp.USER32.dll_GetAsyncKeyState]
movzx ecx, bl
or cl, 8
movzx edx, cl
test di, ax
mov ecx, 0x5b
cmove edx, ebx
movzx ebx, dl
call qword [sym.imp.USER32.dll_GetAsyncKeyState]
movzx ecx, bl
or cl, 0x40
movzx edx, cl
test di, ax
mov ecx, 0x5c
cmove edx, ebx
movzx ebx, dl
call qword [sym.imp.USER32.dll_GetAsyncKeyState]
and ax, di
movzx ecx, bl
or cl, 0x80
test ax, ax
movzx edi, cl
cmove edi, ebx
cmp qword [0x140122dd0], 0
je 0x14002285a
movzx ebx, dil
not bl
and bl, byte [0x140122ee1]
cmp byte [0x140122ddc], 0
je 0x14002280b
call qword [sym.imp.KERNEL32.dll_GetTickCount]
sub eax, dword [0x140122dd8]
cmp eax, 0x14
jae 0x14002280b
movzx eax, byte [0x140122ddc]
not al
and bl, al
test bl, bl
je 0x14002285a
movzx edx, byte [0x140122ddf]
lea rcx, [0x140122de0]
movzx eax, bl
not al
and byte [0x140122ee1], al
and dl, al
and byte [0x140122ee0], al
mov byte [0x140122ddf], dl
call fcn.140022870
mov rcx, qword [0x140122f20]
test rcx, rcx
je 0x14002285a
test byte [rcx + 0xc], bl
mov eax, 0
cmovne rcx, rax
mov qword [0x140122f20], rcx
mov rbx, qword [rsp + 0x30]
movzx eax, dil
mov rdi, qword [rsp + 0x20]
add rsp, 0x28
ret
Function at 0x140022c70
Capabilities:
Get keyboard layout
Query or enumerate registry value

Disassembly:
push rbp
push rsi
push rdi
push r14
push r15
lea rbp, [rsp - 0x1c0]
sub rsp, 0x2c0
xor edi, edi
xor edx, edx
mov esi, edi
mov r15, rcx
call qword [sym.imp.USER32.dll_ActivateKeyboardLayout]
mov r14, rax
test rax, rax
je 0x140022e4c
movaps xmm0, xmmword [str.SYSTEMCurrentControlSetControlKeyboard_Layouts_]
lea rcx, [rbp - 0x6c]
movaps xmm1, xmmword [0x1400ffba0]
mov eax, dword [0x1400ffbf0]
movaps xmmword [rsp + 0x30], xmm0
movaps xmm0, xmmword [0x1400ffbb0]
movaps xmmword [rsp + 0x40], xmm1
movaps xmm1, xmmword [0x1400ffbc0]
movaps xmmword [rsp + 0x50], xmm0
movaps xmm0, xmmword [0x1400ffbd0]
movaps xmmword [rsp + 0x60], xmm1
movaps xmm1, xmmword [0x1400ffbe0]
mov dword [rbp - 0x70], eax
movzx eax, word [0x1400ffbf4]
movaps xmmword [rsp + 0x70], xmm0
movaps xmmword [rbp - 0x80], xmm1
mov word [rbp - 0x6c], ax
call qword [sym.imp.USER32.dll_GetKeyboardLayoutNameW]
test eax, eax
je 0x140022e0c
lea rax, [rbp + 0x200]
xor r8d, r8d
lea r9d, [rdi + 1]
mov qword [rsp + 0x20], rax
lea rdx, [rsp + 0x30]
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x140022e08
mov rcx, qword [rbp + 0x200]
lea rax, [rbp + 0x1f8]
mov qword [rsp + 0x28], rax
lea rdx, str.Layout_File
lea rax, [rbp - 0x50]
mov qword [rsp + 0x2f0], rbx
xor r9d, r9d
mov qword [rsp + 0x20], rax
xor r8d, r8d
mov dword [rbp + 0x1f8], 0x208
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov rcx, qword [rbp + 0x200]
mov ebx, eax
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
test ebx, ebx
mov rbx, qword [rsp + 0x2f0]
jne 0x140022e08
mov edx, dword [rbp + 0x1f8]
test edx, edx
je 0x140022e08
shr edx, 1
mov ecx, edx
dec edx
mov dword [rbp + 0x1f8], edx
cmp word [rbp + rdx*2 - 0x50], si
jne 0x140022de0
test edx, edx
je 0x140022e0c
mov eax, edx
mov r8d, edx
nop
lea ecx, [r8 - 1]
mov edx, eax
mov r8d, ecx
cmp word [rbp + rcx*2 - 0x50], si
jne 0x140022df5
mov dword [rbp + 0x1f8], ecx
mov eax, ecx
mov edx, ecx
test ecx, ecx
jne 0x140022dc0
jmp 0x140022df5
mov dword [rbp + 0x1f8], ecx
cmp ecx, 0x104
jae 0x140022e08
mov word [rbp + rcx*2 - 0x50], di
mov edx, ecx
test edx, edx
je 0x140022e0c
lea rcx, [rbp - 0x50]
call qword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov rsi, rax
jmp 0x140022e0c
mov word [rbp - 0x50], di
cmp r15, r14
je 0x140022e1c
xor edx, edx
mov rcx, r14
call qword [sym.imp.USER32.dll_ActivateKeyboardLayout]
test rsi, rsi
je 0x140022e4c
lea rdx, str.KbdLayerDescriptor
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
je 0x140022e43
call rax
mov edi, dword [rax + 0x50]
not edi
and edi, 1
add edi, 3
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
mov eax, edi
add rsp, 0x2c0
pop r15
pop r14
pop rdi
pop rsi
pop rbp
ret