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

Disassembly:
mov qword [rsp + 8], rcx
push rbx
sub rsp, 0x20
mov qword [0x140112978], rdx
mov r8, rdx
mov rcx, qword [rdx + 0x38]
test rcx, rcx
je 0x1400082a5
cmp byte [rcx + 5], 1
jne 0x1400082a5
xor ebx, ebx
cmp byte [rcx + 6], bl
je 0x140008276
mov qword [rdx + 0x38], rbx
lea edx, [rbx + 8]
call fcn.1400d6c90
cmp dword [0x1401129c0], 2
je 0x14000829d
lea rcx, [0x140112950]
call fcn.1400083b0
test eax, eax
jne 0x14000829b
lea rcx, [0x140112950]
call fcn.1400084e0
mov ebx, eax
mov eax, ebx
add rsp, 0x20
pop rbx
ret
mov r9d, dword [0x1401129c0]
cmp r9d, 3
je 0x14000836b
cmp r9d, 4
jne 0x140008330
mov rcx, qword [0x140112958]
movabs rax, 0x2aaaaaaaaaaaaaab
sub rcx, qword [0x140112950]
add rcx, 0x18
imul rcx
sar rdx, 2
mov rax, rdx
shr rax, 0x3f
add rdx, rax
cmp edx, dword [0x1401129cc]
jle 0x14000836b
mov rcx, qword [0x140112970]
lea r8, [rsp + 0x30]
mov edx, 0x4004667f
call qword [sym.imp.WSOCK32.dll_ioctlsocket]
test eax, eax
jne 0x1400083a5
cmp dword [rsp + 0x30], eax
seta al
test al, al
je 0x1400083a5
lea rcx, [0x140112950]
add rsp, 0x20
pop rbx
jmp fcn.1400084e0
cmp r9d, 5
jne 0x1400082f1
mov rcx, qword [0x140112958]
movabs rax, 0x2aaaaaaaaaaaaaab
sub rcx, qword [0x140112950]
add rcx, 0x18
imul rcx
sar rdx, 2
mov rax, rdx
shr rax, 0x3f
add rdx, rax
cmp edx, dword [0x1401129cc]
jge 0x1400082f1
movzx eax, byte [r8]
cmp al, 0x77
je 0x1400082f1
cmp al, 0x78
jne 0x140008386
cmp qword [r8 + 0x10], 0
je 0x1400082f1
cmp dword [r8 + 4], 0
je 0x1400082f1
cmp r9d, 2
jne 0x14000827f
xor ebx, ebx
mov eax, ebx
add rsp, 0x20
pop rbx
ret
xor eax, eax
add rsp, 0x20
pop rbx
ret
Function at 0x14000c950
Capabilities:
Send data
Send data on socket

Disassembly:
push rbx
sub rsp, 0x30
mov r10, r8
mov rbx, rcx
test rdx, rdx
jne 0x14000c9a3
mov edx, dword [rcx + 0x70]
sub edx, 1
je 0x14000c99c
sub edx, 2
je 0x14000c993
sub edx, 1
je 0x14000c98a
cmp edx, 1
je 0x14000c981
lea rdx, [0x1400dad4e]
jmp 0x14000c9a3
lea rdx, str.step_out
jmp 0x14000c9a3
lea rdx, str.step_over
jmp 0x14000c9a3
lea rdx, str.step_into
jmp 0x14000c9a3
lea rdx, [0x1400db018]
mov rax, qword [rcx + 0x88]
lea r8, [0x1400dad4e]
test rax, rax
je 0x14000c9c0
mov rax, qword [rax]
test rax, rax
cmovne r8, rax
mov qword [rsp + 0x28], r8
add rcx, 0x50
mov qword [rsp + 0x20], r9
mov r8, rdx
mov r9, r10
lea rdx, str._response_command__s__status__s__reason__s__transaction_id__e___
call fcn.14000d3e0
mov rcx, rbx
add rsp, 0x30
pop rbx
jmp fcn.14000c9f0

Function at 0x14000c9f0
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 + 0x60]
mov r8d, 0xa
add rcx, 0x26
call qword [sym.imp.api_ms_win_crt_convert_l1_1_0.dll__i64toa]
xor edx, edx
lea rcx, [rsp + 0x20]
call qword [sym.imp.VCRUNTIME140.dll_strchr]
lea r8, str.__xml_version_1.0__encoding_UTF_8___
lea rdx, [0x1400dbdb0]
lea rbx, [rax + 1]
mov rcx, rbx
call fcn.14000e5c0
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 0x14000cabf
cmp dword [rdi + 0x68], 0
jne 0x14000cabf
mov rdx, qword [rdi + 0x60]
lea rcx, [rdi + 0x50]
inc rdx
call fcn.14000daf0
test eax, eax
jne 0x14000cabf
mov rcx, qword [rdi + 0x50]
xor r9d, r9d
add rcx, qword [rdi + 0x60]
movzx eax, byte [0x1400da7a4]
mov byte [rcx], al
inc qword [rdi + 0x60]
mov r8d, dword [rdi + 0x60]
mov rdx, qword [rdi + 0x50]
mov rcx, qword [rdi + 0x20]
call qword [sym.imp.WSOCK32.dll_send]
cmp eax, 0xffffffff
je 0x14000cabf
xor eax, eax
mov qword [rdi + 0x60], rax
mov dword [rdi + 0x68], eax
mov rbx, qword [rsp + 0x70]
add rsp, 0x60
pop rdi
ret
lea rcx, str.An_internal_error_has_occurred_in_the_debugger_engine._nContinue_running_the_script_without_the_debugger_
call fcn.14000d0d0
mov rbx, qword [rsp + 0x70]
add rsp, 0x60
pop rdi
ret
Function at 0x14000d840
Capabilities:
Encode data using base64

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
mov rbx, r8
mov rdi, rdx
mov rsi, rcx
test r8, r8
je 0x14000d9cc
movabs rbp, 0xaaaaaaaaaaaaaaab
test r9b, r9b
jne 0x14000d8a1
lea rdx, [r8 - 1]
mov rax, rbp
mul rdx
shr rdx, 1
lea rdx, [rdx*4 + 5]
add rdx, qword [rcx + 0x10]
call fcn.14000daf0
test eax, eax
je 0x14000d8a1
mov eax, 0x3e6
jmp 0x14000d9ce
test rdi, rdi
je 0x14000d9cc
mov r9, qword [rsi + 0x10]
xor r8d, r8d
add r9, qword [rsi]
cmp rbx, 0xffffffffffffffff
jne 0x14000d8c9
nop word [rax + rax]
inc rbx
cmp byte [rdi + rbx], r8b
jne 0x14000d8c0
lea r10, str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_
cmp rbx, 2
jbe 0x14000d95d
lea rcx, [rbx - 3]
mov rax, rbp
mul rcx
shr rdx, 1
inc rdx
imul rax, rdx, 0xfffffffffffffffd
add rbx, rax
movzx eax, byte [rdi + 1]
movzx ecx, byte [rdi]
shl rcx, 8
or rcx, rax
movzx eax, byte [rdi + 2]
shl rcx, 8
add rdi, 3
or rcx, rax
mov rax, rcx
shr rax, 0x12
movzx eax, byte [rax + r10]
mov byte [r9 + r8], al
mov rax, rcx
shr rax, 0xc
and eax, 0x3f
movzx eax, byte [rax + r10]
mov byte [r9 + r8 + 1], al
mov rax, rcx
shr rax, 6
and ecx, 0x3f
and eax, 0x3f
movzx eax, byte [rax + r10]
mov byte [r9 + r8 + 2], al
movzx eax, byte [rcx + r10]
mov byte [r9 + r8 + 3], al
add r8, 4
sub rdx, 1
jne 0x14000d8f1
test rbx, rbx
je 0x14000d9c3
movzx ecx, byte [rdi]
shl rcx, 0x10
cmp rbx, 1
jbe 0x14000d97a
movzx eax, byte [rdi + 1]
shl rax, 8
or rcx, rax
mov rax, rcx
shr rax, 0x12
movzx eax, byte [rax + r10]
mov byte [r8 + r9], al
mov rax, rcx
shr rax, 0xc
and eax, 0x3f
movzx eax, byte [rax + r10]
mov byte [r8 + r9 + 1], al
cmp rbx, 1
jbe 0x14000d9b2
shr rcx, 6
and ecx, 0x3f
movzx eax, byte [rcx + r10]
jmp 0x14000d9b4
mov al, 0x3d
mov byte [r8 + r9 + 2], al
mov byte [r8 + r9 + 3], 0x3d
add r8, 4
mov byte [r8 + r9], 0
add qword [rsi + 0x10], r8
xor eax, eax
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret
Function at 0x14000e160
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 0x14000e1d8
mov rdi, qword [rbx + 8]
test rdi, rdi
je 0x14000e20b
mov eax, dword [rdi + 0x20]
sub eax, 1
mov dword [rdi + 0x20], eax
jne 0x14000e1b9
mov rcx, qword [rdi + 8]
test rcx, rcx
je 0x14000e1ac
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov edx, 0x28
mov rcx, rdi
call fcn.1400d6c90
mov qword [rbx + 8], 0
mov rax, rbx
mov byte [rbx + 0x10], 0
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret
xor edx, edx
mov rcx, rbx
call fcn.14000e820
mov rcx, qword [rbx + 8]
mov rdx, rdi
call fcn.14000e620
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 0x14000f120
Capabilities:
Resume thread
Suspend thread

Disassembly:
mov qword [rsp + 8], rbx
push rbp
push rsi
push rdi
sub rsp, 0x30
cmp byte [0x140117b90], 0
mov rbp, rdx
mov rdi, rcx
je 0x14000f1fa
mov esi, dword gs:[0x48]
cmp dword [0x140116f80], esi
je 0x14000f15c
mov rcx, qword [0x140116f88]
call qword [sym.imp.KERNEL32.dll_SuspendThread]
mov rbx, 0xffffffffffffffff
inc rbx
cmp word [rdi + rbx*2], 0
jne 0x14000f163
cmp word [rdi], 0
je 0x14000f209
lea rax, [rsp + 0x60]
mov r8, rbx
mov qword [rsp + 0x28], rax
lea r9, [rsp + 0x68]
mov rdx, rdi
mov dword [rsp + 0x20], 3
lea rcx, [0x140116fb0]
call fcn.1400486d0
test rax, rax
jne 0x14000f1ce
cmp byte [rsp + 0x60], al
lea rcx, [0x140116fb0]
mov r9d, dword [rsp + 0x68]
mov r8, rbx
setne al
mov rdx, rdi
inc eax
mov dword [rsp + 0x20], eax
call fcn.140048c10
test rax, rax
je 0x14000f209
xor r9d, r9d
mov byte [rsp + 0x20], 1
mov rdx, rbp
mov rcx, rax
lea r8, [r9 - 1]
call fcn.1400befb0
cmp dword [0x140116f80], esi
je 0x14000f1fa
mov rcx, qword [0x140116f88]
call qword [sym.imp.KERNEL32.dll_ResumeThread]
xor eax, eax
mov rbx, qword [rsp + 0x50]
add rsp, 0x30
pop rdi
pop rsi
pop rbp
ret
cmp dword [0x140116f80], esi
je 0x14000f21e
mov rcx, qword [0x140116f88]
call qword [sym.imp.KERNEL32.dll_ResumeThread]
mov rbx, qword [rsp + 0x50]
mov eax, 0xffffffff
add rsp, 0x30
pop rdi
pop rsi
pop rbp
ret
Function at 0x1400171e0
Capabilities:
Terminate process

Disassembly:
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rdi
push r14
sub rsp, 0x20
mov ebp, ecx
call qword [sym.imp.USER32.dll_PostQuitMessage]
xor edx, edx
xor ecx, ecx
call fcn.1400158f0
mov rcx, qword [0x140113a20]
test rcx, rcx
je 0x140017213
call qword [sym.imp.USER32.dll_UnhookWindowsHookEx]
xor r14d, r14d
cmp r14w, word [0x140114a8c]
mov edi, r14d
jae 0x1400172d1
mov rdx, qword [0x140115f08]
mov r8, qword [0x140115f10]
mov qword [rsp + 0x30], rbx
mov qword [rsp + 0x38], rsi
mov esi, r14d
nop dword [rax]
nop word [rax + rax]
mov rbx, qword [0x140114a78]
mov rbx, qword [rsi + rbx]
test rbx, rbx
je 0x1400172b6
cmp byte [rbx + 0x18], r14b
je 0x14001728d
movzx edx, word [rbx + 4]
mov rcx, qword [0x140113a50]
call qword [sym.imp.USER32.dll_UnregisterHotKey]
mov rdx, qword [0x140115f08]
test eax, eax
mov r8, qword [0x140115f10]
sete al
mov byte [rbx + 0x18], al
cmp rbx, rdx
jne 0x1400172b6
test rdx, rdx
je 0x1400172b6
mov rax, qword [r8 + 8]
mov rcx, rax
sub rcx, rdx
mov rdx, r14
sub rax, rcx
mov qword [0x140115f08], rdx
add qword [r8 + 0x10], rcx
mov qword [r8 + 8], rax
movzx eax, word [0x140114a8c]
inc edi
add rsi, 8
cmp edi, eax
jl 0x140017250
mov rsi, qword [rsp + 0x38]
mov rbx, qword [rsp + 0x30]
mov ecx, ebp
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_exit]
int3
Function at 0x140018fb0
Capabilities:
Create thread

Disassembly:
or byte [0x1401149c6], 2
cmp qword [0x140113a78], 0
jne 0x140018fcd
movzx edx, word [0x140114a8c]
jmp fcn.140014910
ret
Function at 0x14001ddb0
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 0x14001ddf5
cmp cl, 3
jne 0x14001ddfc
lea eax, [rbp + 0x66]
cmp al, 5
ja 0x14001de01
mov r15b, 1
jmp 0x14001de04
xor r15b, r15b
mov eax, dword [rsp + 0xd0]
mov rsi, qword [rsp + 0xe8]
movzx r12d, byte [rsp + 0xe0]
test eax, eax
jle 0x14001df91
mov edi, dword [rsp + 0xd8]
mov qword [rsp + 0x78], r14
mov r14d, eax
cmp dword [0x140117f14], 0
jne 0x14001dea3
call qword [sym.imp.KERNEL32.dll_GetTickCount]
mov rcx, qword [0x1401101f0]
sub eax, dword [0x140117bb4]
cmp eax, dword [rcx + 0x118]
jbe 0x14001deaa
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 0x14001de97
mov edx, 1
mov dword [0x1401101e4], 0
lea ecx, [rdx - 2]
call fcn.140001b10
mov dword [0x1401101e4], 1
call qword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [0x140117bb4], eax
mov rcx, qword [0x1401101f0]
test r12b, r12b
jne 0x14001df0e
movzx eax, byte [rcx + 0x136]
test al, al
je 0x14001dec6
movzx eax, al
mov ebx, 0xffc3d44d
sub ebx, eax
jmp 0x14001decb
mov ebx, 0xffc3d44f
cmp dword [0x140117f14], 0
je 0x14001dedd
movzx eax, byte [0x140117f10]
jmp 0x14001dee4
xor ecx, ecx
call fcn.140021320
mov dword [rsp + 0x28], ebx
xor r9d, r9d
mov r8, rsi
mov byte [rsp + 0x20], 1
movzx edx, al
movzx ecx, r13b
call fcn.140020ab0
mov rcx, qword [0x1401101f0]
movzx ebx, word [rsp + 0xb8]
test r15b, r15b
je 0x14001df51
test rsi, rsi
jne 0x14001df51
movzx eax, byte [rcx + 0x12f]
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.14001f800
jmp 0x14001df7a
movzx eax, byte [rcx + 0x136]
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.14001e530
sub r14, 1
jne 0x14001de33
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 0x14001dffe
cmp dword [0x140117f14], 0
je 0x14001dfcd
movzx eax, byte [0x140117f10]
jmp 0x14001dfd4
xor ecx, ecx
call fcn.140021320
not dil
and dil, al
and dil, 0xcc
je 0x14001dffe
mov dword [rsp + 0x28], 0xffc3d44d
mov r9b, 1
mov r8, rsi
mov byte [rsp + 0x20], 0
movzx edx, dil
xor ecx, ecx
call fcn.140020ab0
add rsp, 0x98
pop rdi
pop rsi
ret
Function at 0x14001e010
Capabilities:
Check for time delay via gettickcount

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rsi
push r14
sub rsp, 0x80
mov eax, dword [0x140117f14]
movzx r14d, r8b
cmp eax, 2
mov ebx, edx
movzx esi, cx
sete bpl
jne 0x14001e068
movzx ecx, cx
mov eax, ecx
and eax, 0xffffff80
je 0x14001e04c
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 qword [sym.imp.api_ms_win_crt_convert_l1_1_0.dll__itow]
test ebx, ebx
jle 0x14001e1e1
mov qword [rsp + 0xa0], rdi
mov rdi, rbx
mov qword [rsp + 0xa8], r15
xor r15d, r15d
cmp dword [0x140117f14], r15d
jne 0x14001e0f0
call qword [sym.imp.KERNEL32.dll_GetTickCount]
mov rcx, qword [0x1401101f0]
sub eax, dword [0x140117bb4]
cmp eax, dword [rcx + 0x118]
jbe 0x14001e0f0
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 0x14001e0e4
mov edx, 1
mov dword [0x1401101e4], r15d
lea ecx, [rdx - 2]
call fcn.140001b10
mov dword [0x1401101e4], 1
call qword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [0x140117bb4], eax
test bpl, bpl
je 0x14001e19b
cmp dword [0x140117f14], r15d
je 0x14001e10b
movzx eax, byte [0x140117f10]
jmp 0x14001e112
xor ecx, ecx
call fcn.140021320
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.140020ab0
movzx eax, word [rsp + 0x30]
lea rbx, [rsp + 0x30]
cmp ax, 0x30
jb 0x14001e17b
cmp ax, 0x39
ja 0x14001e17b
xor r8d, r8d
mov dword [rsp + 0x28], 0xffc3d44d
add al, 0x30
mov byte [rsp + 0x20], r8b
xor r9d, r9d
movzx edx, al
lea ecx, [r8 + 2]
call fcn.14001e530
movzx eax, word [rbx + 2]
add rbx, 2
cmp ax, 0x30
jae 0x14001e146
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.14001e530
jmp 0x14001e1a7
movzx edx, r14b
movzx ecx, si
call fcn.14001c3e0
cmp dword [0x140117f14], 2
mov rax, qword [0x1401101f0]
jne 0x14001e1bf
mov ecx, dword [rax + 0x80]
jmp 0x14001e1c2
mov ecx, dword [rax + 0x7c]
call fcn.1400205c0
sub rdi, 1
jne 0x14001e086
mov r15, qword [rsp + 0xa8]
mov rdi, qword [rsp + 0xa0]
mov rbx, qword [rsp + 0xb0]
add rsp, 0x80
pop r14
pop rsi
pop rbp
ret
Function at 0x140020820
Capabilities:
Get graphical window text

Disassembly:
sub rsp, 0x28
mov r10, qword [0x140113a70]
test r10, r10
je 0x140020957
movsxd rax, dword [0x140113b40]
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 [0x140113b34], eax
sub ecx, dword [0x140116fa8]
xorps xmm0, xmm0
mov dword [0x140116fa8], eax
cvtsi2ss xmm0, rcx
movsxd rcx, dword [0x140113b40]
imul rdx, rcx, 0xd4
divss xmm0, dword [0x1400ff548]
mov rcx, qword [0x140113a70]
movss dword [rdx + rcx + 8], xmm0
call qword [sym.imp.USER32.dll_GetForegroundWindow]
xor edi, edi
mov rbx, rax
test rax, rax
je 0x140020911
cmp rax, qword [0x140113b38]
je 0x1400208f5
movsxd rcx, dword [0x140113b40]
lea r8d, [rdi + 0x64]
imul rdx, rcx, 0xd4
mov rcx, qword [0x140113a70]
add rcx, 0xc
add rdx, rcx
mov rcx, rax
call qword [sym.imp.USER32.dll_GetWindowTextW]
mov edx, dword [0x140113b40]
jmp 0x140020935
movsxd rdx, dword [0x140113b40]
mov rax, qword [0x140113a70]
imul rcx, rdx, 0xd4
mov word [rcx + rax + 0xc], di
jmp 0x140020935
movsxd rdx, dword [0x140113b40]
movabs r8, 0x41002f004e
mov rax, qword [0x140113a70]
imul rcx, rdx, 0xd4
mov qword [rcx + rax + 0xc], r8
inc edx
mov qword [0x140113b38], rbx
cmp edx, dword [0x1401101ec]
mov rbx, qword [rsp + 0x30]
cmovge edx, edi
mov rdi, qword [rsp + 0x20]
mov dword [0x140113b40], edx
add rsp, 0x28
ret
Function at 0x140020960
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
mov ebp, 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 0x140020aaa
cmp ebx, esi
je 0x140020aaa
mov ecx, edi
mov qword [rsp + 0x40], r14
call qword [sym.imp.USER32.dll_GetKeyState]
mov ecx, 0x8000
test cx, ax
je 0x1400209d9
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.14001e530
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.14001e530
call qword [sym.imp.USER32.dll_GetForegroundWindow]
mov rcx, rax
xor edx, edx
call qword [sym.imp.USER32.dll_GetWindowThreadProcessId]
cmp eax, dword [0x140116f80]
sete r14b
jne 0x140020a37
mov edx, 1
mov dword [0x1401101e4], 0
lea ecx, [rdx - 2]
call fcn.140001b10
mov dword [0x1401101e4], 1
cmp dil, 0x14
jne 0x140020a8e
cmp esi, 2
jne 0x140020a8e
mov ecx, ebp
call qword [sym.imp.USER32.dll_GetKeyState]
test al, 1
je 0x140020a8e
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.14001e530
test r14b, r14b
je 0x140020a8e
lea edx, [rsi - 1]
mov dword [0x1401101e4], 0
lea ecx, [rsi - 3]
call fcn.140001b10
mov dword [0x1401101e4], 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 0x140020a95
Function at 0x140021320
Capabilities:
Log keystrokes via polling

Disassembly:
sub rsp, 0x28
cmp qword [0x140113a80], 0
je 0x14002133e
test cl, cl
jne 0x14002133e
movzx eax, byte [0x1401149c2]
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
and ax, di
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
and ax, di
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
and ax, di
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
and ax, di
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
and ax, di
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
and ax, di
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 [0x140113a80], 0
je 0x140021494
movzx ecx, byte [0x1401149c2]
movzx ebx, dil
not bl
and bl, cl
je 0x140021494
movzx edx, byte [0x1401149c0]
movzx eax, bl
not al
and byte [0x1401149c1], al
and cl, al
and dl, al
mov byte [0x1401149c2], cl
lea rcx, [0x1401148c0]
mov byte [0x1401149c0], dl
call fcn.1400214b0
mov rcx, qword [0x140114a50]
test rcx, rcx
je 0x140021494
test byte [rcx + 0xc], bl
mov eax, 0
cmovne rcx, rax
mov qword [0x140114a50], rcx
mov rbx, qword [rsp + 0x30]
movzx eax, dil
mov rdi, qword [rsp + 0x20]
add rsp, 0x28
ret
Function at 0x140021900
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 0x140021ad1
movaps xmm0, xmmword [str.SYSTEMCurrentControlSetControlKeyboard_Layouts_]
lea rcx, [rbp - 0x6c]
movaps xmm1, xmmword [0x1400f1f00]
mov eax, dword [0x1400f1f50]
movaps xmmword [rsp + 0x30], xmm0
movaps xmm0, xmmword [0x1400f1f10]
movaps xmmword [rsp + 0x40], xmm1
movaps xmm1, xmmword [0x1400f1f20]
movaps xmmword [rsp + 0x50], xmm0
movaps xmm0, xmmword [0x1400f1f30]
movaps xmmword [rsp + 0x60], xmm1
movaps xmm1, xmmword [0x1400f1f40]
mov dword [rbp - 0x70], eax
movzx eax, word [0x1400f1f54]
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 0x140021a91
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 0x140021a8d
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 0x140021a8d
mov ecx, dword [rbp + 0x1f8]
test ecx, ecx
je 0x140021a8d
shr ecx, 1
mov edx, ecx
dec ecx
mov dword [rbp + 0x1f8], ecx
cmp word [rbp + rcx*2 - 0x50], si
jne 0x140021a67
mov edx, ecx
test ecx, ecx
je 0x140021a7a
nop dword [rax + rax]
dec ecx
cmp word [rbp + rcx*2 - 0x50], si
jne 0x140021a7a
mov dword [rbp + 0x1f8], ecx
mov edx, ecx
test ecx, ecx
jne 0x140021a50
jmp 0x140021a7a
mov dword [rbp + 0x1f8], edx
cmp edx, 0x104
jae 0x140021a8d
mov word [rbp + rdx*2 - 0x50], di
test edx, edx
je 0x140021a91
lea rcx, [rbp - 0x50]
call qword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov rsi, rax
jmp 0x140021a91
mov word [rbp - 0x50], di
cmp r15, r14
je 0x140021aa1
xor edx, edx
mov rcx, r14
call qword [sym.imp.USER32.dll_ActivateKeyboardLayout]
test rsi, rsi
je 0x140021ad1
lea rdx, str.KbdLayerDescriptor
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
je 0x140021ac8
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