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

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
push r12
sub rsp, 0x20
xor esi, esi
mov r12, rdx
mov rbx, rcx
mov edi, esi
mov rcx, qword [rbx + 0x50]
cmp rdi, rcx
jae 0x14000d1a4
mov rax, qword [rbx + 0x40]
cmp byte [rax + rdi], 0
je 0x14000d226
inc esi
mov edi, esi
cmp rdi, rcx
jb 0x14000d191
cmp rcx, qword [rbx + 0x48]
jne 0x14000d1f9
mov rcx, qword [rbx + 0x48]
lea rax, [rcx + rcx]
test rcx, rcx
jne 0x14000d1bc
mov eax, 0x800
cmp dword [rbx + 0x58], 0
jne 0x14000d23a
test rcx, rcx
mov ebp, 0x800
cmovne rbp, rcx
cmp rbp, rax
jae 0x14000d1db
add rbp, rbp
cmp rbp, rax
jb 0x14000d1d3
cmp rbp, rcx
jbe 0x14000d1f9
mov rcx, qword [rbx + 0x40]
mov rdx, rbp
call fcn.1400d6568
test rax, rax
je 0x14000d233
mov qword [rbx + 0x40], rax
mov qword [rbx + 0x48], rbp
mov r8d, dword [rbx + 0x48]
mov rdx, qword [rbx + 0x40]
mov rcx, qword [rbx + 0x20]
sub r8d, dword [rbx + 0x50]
add rdx, qword [rbx + 0x50]
xor r9d, r9d
call qword [sym.imp.WSOCK32.dll_recv]
cmp eax, 0xffffffff
je 0x14000d23a
cdqe
add qword [rbx + 0x50], rax
jmp 0x14000d184
test r12, r12
je 0x14000d22f
mov dword [r12], esi
xor eax, eax
jmp 0x14000d246
mov dword [rbx + 0x58], 1
lea rcx, str.An_internal_error_has_occurred_in_the_debugger_engine._nContinue_running_the_script_without_the_debugger_
call fcn.14000d830
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
mov rdi, qword [rsp + 0x48]
add rsp, 0x20
pop r12
ret

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

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x60
mov rdi, rcx
mov rcx, qword [rcx + 0x70]
lea rdx, [rsp + 0x20]
add rcx, 0x26
mov r8d, 0xa
call fcn.1400d7f18
lea rcx, [rsp + 0x20]
xor edx, edx
call fcn.1400d7b00
lea r8, str.__xml_version_1.0__encoding_UTF_8___
lea rdx, [0x1400f2ae0]
lea rbx, [rax + 1]
mov rcx, rbx
call fcn.1400d7a3c
mov rcx, qword [rdi + 0x20]
lea rdx, [rsp + 0x20]
movsxd r8, eax
lea rax, [rsp + 0x20]
xor r9d, r9d
add r8, rbx
sub r8d, eax
call qword [sym.imp.WSOCK32.dll_send]
cmp eax, 0xffffffff
je 0x14000d33d
cmp dword [rdi + 0x78], 0
jne 0x14000d33d
mov rdx, qword [rdi + 0x70]
lea rcx, [rdi + 0x60]
inc rdx
call fcn.14000e250
test eax, eax
jne 0x14000d33d
mov rcx, qword [rdi + 0x70]
movzx eax, byte [0x1400f1604]
xor r9d, r9d
add rcx, qword [rdi + 0x60]
mov byte [rcx], al
inc qword [rdi + 0x70]
mov r8d, dword [rdi + 0x70]
mov rdx, qword [rdi + 0x60]
mov rcx, qword [rdi + 0x20]
call qword [sym.imp.WSOCK32.dll_send]
cmp eax, 0xffffffff
je 0x14000d33d
xor eax, eax
mov qword [rdi + 0x70], rax
mov dword [rdi + 0x78], 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.14000d830
mov rbx, qword [rsp + 0x70]
add rsp, 0x60
pop rdi
ret
Function at 0x14000d900
Capabilities:
Encode data using base64

Disassembly:
push rbx
xor r9d, r9d
mov qword [rsp + 0x10], rdi
mov r11, rdx
mov r10, rcx
cmp r8, 0xffffffffffffffff
jne 0x14000d927
or rcx, r8
xor eax, eax
mov rdi, rdx
repne scasb al, byte [rdi]
not rcx
lea r8, [rcx - 1]
lea rbx, str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_
cmp r8, 2
jbe 0x14000d9ce
lea rcx, [r8 - 3]
movabs rax, 0xaaaaaaaaaaaaaaab
mul rcx
mov rdi, rdx
shr rdi, 1
inc rdi
mov rax, rdi
imul rax, rax, 0xfffffffffffffffd
add r8, rax
nop dword [rax]
movzx eax, byte [r11 + 1]
movzx ecx, byte [r11]
add r9, 4
shl ecx, 8
add r11, 3
or ecx, eax
movzx eax, byte [r11 - 1]
shl ecx, 8
movsxd rdx, ecx
or rdx, rax
mov rax, rdx
shr rax, 0x12
and eax, 0x3f
movzx eax, byte [rax + rbx]
mov byte [r10 + r9 - 4], al
mov rax, rdx
shr rax, 0xc
and eax, 0x3f
movzx eax, byte [rax + rbx]
mov byte [r10 + r9 - 3], al
mov rax, rdx
and edx, 0x3f
shr rax, 6
and eax, 0x3f
dec rdi
movzx eax, byte [rax + rbx]
mov byte [r10 + r9 - 2], al
movzx eax, byte [rdx + rbx]
mov byte [r10 + r9 - 1], al
jne 0x14000d960
mov rdi, qword [rsp + 0x10]
test r8, r8
je 0x14000da42
movzx eax, byte [r11]
shl eax, 0x10
movsxd rcx, eax
cmp r8, 1
jbe 0x14000d9f5
movzx eax, byte [r11 + 1]
shl eax, 8
cdqe
or rcx, rax
mov rax, rcx
shr rax, 0x12
and eax, 0x3f
movzx eax, byte [rax + rbx]
mov byte [r9 + r10], al
mov rax, rcx
shr rax, 0xc
and eax, 0x3f
movzx eax, byte [rax + rbx]
mov byte [r9 + r10 + 1], al
cmp r8, 1
jbe 0x14000da2d
shr rcx, 6
and ecx, 0x3f
movzx eax, byte [rcx + rbx]
jmp 0x14000da2f
mov al, 0x3d
mov byte [r9 + r10 + 2], al
mov word [r9 + r10 + 3], 0x3d
lea rax, [r9 + 4]
pop rbx
ret
mov byte [r9 + r10], 0
mov rax, r9
pop rbx
ret

Function at 0x14000ea60
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
xor r8d, r8d
mov rcx, rsi
xor edx, edx
call qword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
mov edi, eax
test eax, eax
jne 0x14000ead1
mov rdi, qword [rbx + 8]
test rdi, rdi
je 0x14000eb04
mov eax, dword [rdi + 0x20]
dec eax
mov dword [rdi + 0x20], eax
jne 0x14000eab2
mov rcx, qword [rdi + 8]
test rcx, rcx
je 0x14000eaaa
call fcn.1400d6528
mov rcx, rdi
call fcn.1400d6520
mov qword [rbx + 8], 0
mov byte [rbx + 0x10], 0
mov rax, rbx
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret
xor edx, edx
mov rcx, rbx
call fcn.14000f010
mov rcx, qword [rbx + 8]
mov rdx, rdi
call fcn.14000ee10
mov r11, qword [rbx + 8]
mov r8d, edi
mov rdx, qword [r11]
mov rcx, rsi
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 0x1400162e0
Capabilities:
Check for time delay via gettickcount

Disassembly:
mov qword [rsp + 0x10], rbx
push rbp
mov eax, 0x1030
call fcn.1400e08d0
sub rsp, rax
cmp byte [0x14012d370], 0
mov rbx, rdx
mov rbp, rcx
jne 0x140016466
cmp dword [0x14012b5cc], 0
jne 0x14001631b
call qword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [0x14012b5cc], eax
inc dword [0x14012d374]
mov qword [rsp + 0x1040], rsi
call qword [sym.imp.KERNEL32.dll_GetTickCount]
mov r9d, dword [0x14012d374]
mov edx, dword [0x1401255ac]
mov ecx, eax
sub ecx, dword [0x14012b5cc]
cmp r9d, dword [0x1401255a8]
mov dword [0x14012b618], eax
jbe 0x1400163d9
cmp ecx, edx
jae 0x1400163d9
mov dword [rsp + 0x20], ecx
lea r8, str._u_hotkeys_have_been_received_in_the_last__ums._n_nDo_you_want_to_continue__n_see_MaxHotkeysPerInterval_in_the_help_file_
lea rcx, [rsp + 0x30]
mov edx, 0x800
mov esi, 1
call fcn.1400b8860
call fcn.140014fc0
lea edx, [rsi + 3]
xorpd xmm3, xmm3
lea rcx, [rsp + 0x30]
xor r8d, r8d
mov byte [0x14012d370], sil
mov dword [0x140125594], 0
mov qword [rsp + 0x20], 0
call fcn.1400bf5b0
cmp eax, 7
jne 0x1400163c4
lea edx, [rsi + 3]
lea rcx, [0x14012c540]
xor r8d, r8d
call fcn.14002a280
mov eax, dword [0x14012b618]
mov dword [0x140125594], esi
mov byte [0x14012d370], 0
jmp 0x1400163df
xor esi, esi
cmp ecx, edx
jbe 0x1400163f3
mov dword [0x14012d374], 0
mov dword [0x14012b5cc], eax
test esi, esi
jne 0x14001645e
movzx eax, byte [rbp + 0xf]
xor r9d, r9d
xor r8d, r8d
mov byte [0x14012d0be], al
inc byte [rbx + 0x22]
mov rdx, qword [0x14012d010]
mov rcx, rbx
mov qword [rsp + 0x20], 0
call fcn.1400b2d00
dec byte [rbx + 0x22]
test eax, eax
jne 0x14001642a
mov byte [rbx + 0x27], al
jmp 0x14001645e
cmp byte [rbx + 0x27], 0
je 0x14001645e
mov byte [rbx + 0x27], 0
call qword [sym.imp.KERNEL32.dll_GetTickCount]
sub eax, dword [rbx + 0x18]
cmp eax, 0x3e8
ja 0x14001645e
movzx r8d, word [rbp + 4]
mov rcx, qword [0x14012aa30]
xor r9d, r9d
mov edx, 0x312
call qword [sym.imp.USER32.dll_PostMessageW]
mov rsi, qword [rsp + 0x1040]
mov rbx, qword [rsp + 0x1048]
add rsp, 0x1030
pop rbp
ret
Function at 0x14001f2a0
Capabilities:
Check for time delay via gettickcount

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rsi
push rdi
sub rsp, 0x80
cmp dword [0x14012b700], 2
movzx ebp, r8b
mov ebx, edx
sete sil
movzx edi, cx
test sil, sil
je 0x14001f2fa
movzx ecx, cx
lea rdx, [rsp + 0x30]
test ecx, 0xffffff80
je 0x14001f2e7
mov eax, gethostbyname
lea rdx, [rsp + 0x32]
mov word [rsp + 0x30], ax
mov r8d, 0xa
call fcn.1400d5d30
movzx edi, word [rsp + 0xa8]
test ebx, ebx
jle 0x14001f3c8
mov qword [rsp + 0xa0], r12
xor r12d, r12d
nop dword [rax]
cmp dword [0x14012b700], r12d
jne 0x14001f37a
call qword [sym.imp.KERNEL32.dll_GetTickCount]
mov rcx, qword [0x1401255c8]
sub eax, dword [0x14012d124]
cmp eax, dword [rcx + 0x118]
jbe 0x14001f37a
lea rcx, [rsp + 0x50]
xor r9d, r9d
xor r8d, r8d
xor edx, edx
mov dword [rsp + 0x20], r12d
call qword [sym.imp.USER32.dll_PeekMessageW]
test eax, eax
je 0x14001f36e
mov edx, 1
or ecx, 0xffffffff
mov dword [0x140125594], r12d
call fcn.140001b60
mov dword [0x140125594], 1
call qword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [0x14012d124], eax
test sil, sil
je 0x14001f38b
lea rcx, [rsp + 0x30]
call fcn.14001f3e0
jmp 0x14001f397
movzx edx, bpl
movzx ecx, di
call fcn.14001d280
cmp dword [0x14012b700], 2
mov rax, qword [0x1401255c8]
jne 0x14001f3af
mov ecx, dword [rax + 0x80]
jmp 0x14001f3b2
mov ecx, dword [rax + 0x7c]
call fcn.140021650
dec rbx
jne 0x14001f310
mov r12, qword [rsp + 0xa0]
mov rbx, qword [rsp + 0xb0]
add rsp, 0x80
pop rdi
pop rsi
pop rbp
ret
Function at 0x14001f3e0
Capabilities:
Log keystrokes via polling

Disassembly:
push rdi
sub rsp, 0x30
cmp dword [0x14012b700], 0
mov qword [rsp + 0x40], rbx
mov rdi, rcx
je 0x14001f403
movzx ebx, byte [0x14012988b]
jmp 0x14001f533
cmp qword [0x14012ab80], 0
je 0x14001f419
movzx ebx, byte [0x14012aa2d]
jmp 0x14001f533
mov ecx, 0xa0
mov qword [rsp + 0x48], rsi
xor bl, bl
call qword [sym.imp.USER32.dll_GetAsyncKeyState]
mov esi, 0x8000
movzx ebx, bl
test si, ax
mov eax, reloc.WSOCK32.dll_recv
mov ecx, 0xa1
cmovne ebx, eax
call qword [sym.imp.USER32.dll_GetAsyncKeyState]
test si, ax
je 0x14001f451
or bl, 0x20
mov ecx, 0xa2
call qword [sym.imp.USER32.dll_GetAsyncKeyState]
test si, ax
je 0x14001f464
or bl, 1
mov ecx, 0xa3
call qword [sym.imp.USER32.dll_GetAsyncKeyState]
test si, ax
je 0x14001f477
or bl, 2
mov ecx, 0xa4
call qword [sym.imp.USER32.dll_GetAsyncKeyState]
test si, ax
je 0x14001f48a
or bl, 4
mov ecx, 0xa5
call qword [sym.imp.USER32.dll_GetAsyncKeyState]
test si, ax
je 0x14001f49d
or bl, 8
mov ecx, 0x5b
call qword [sym.imp.USER32.dll_GetAsyncKeyState]
test si, ax
je 0x14001f4b0
or bl, 0x40
mov ecx, 0x5c
call qword [sym.imp.USER32.dll_GetAsyncKeyState]
test si, ax
je 0x14001f4c3
or bl, 0x80
cmp qword [0x14012ab80], 0
je 0x14001f52e
movzx ecx, byte [0x14012aa2d]
movzx esi, bl
not sil
and sil, cl
je 0x14001f52e
movzx edx, byte [0x14012aa2f]
movzx eax, sil
not al
and byte [0x14012aa2e], al
and cl, al
and dl, al
mov byte [0x14012aa2d], cl
lea rcx, [0x14012aa80]
mov byte [0x14012aa2f], dl
call fcn.1400224b0
mov rcx, qword [0x140129878]
test rcx, rcx
je 0x14001f52e
test byte [rcx + 0xc], sil
mov eax, 0
cmovne rcx, rax
mov qword [0x140129878], rcx
mov rsi, qword [rsp + 0x48]
movzx ecx, bl
xor r9d, r9d
xor r8d, r8d
and cl, 0xc4
movzx edx, bl
mov dword [rsp + 0x28], 0xffc3d44f
or cl, 4
mov byte [rsp + 0x20], 1
call fcn.140021b10
movzx eax, word [rdi]
mov rbx, qword [rsp + 0x40]
cmp ax, 0x30
jb 0x14001f59b
cmp ax, 0x39
ja 0x14001f59b
movzx edx, byte [rdi]
xor r8d, r8d
xor r9d, r9d
lea ecx, [r8 + 2]
add dl, 0x30
mov dword [rsp + 0x28], 0xffc3d44d
mov byte [rsp + 0x20], r8b
call fcn.14001f850
movzx eax, word [rdi + 2]
add rdi, 2
cmp ax, 0x30
jae 0x14001f565
xor r8d, r8d
xor r9d, r9d
mov dl, reloc.OLEAUT32.dll_SafeArrayGetUBound
lea ecx, [r8 + 1]
mov dword [rsp + 0x28], 0xffc3d44d
mov byte [rsp + 0x20], r8b
call fcn.14001f850
add rsp, 0x30
pop rdi
ret
Function at 0x140020e60
Capabilities:
Check for unmoving mouse cursor

Disassembly:
push rbx
push rsi
push rdi
sub rsp, 0x40
mov ebx, r9d
mov r9d, dword [rdx]
mov rsi, rdx
mov rdi, rcx
cmp r9d, 0x80000000
je 0x140021051
cmp dword [0x14012b700], 2
jne 0x140020ecd
movzx ebx, byte [rsp + 0x80]
mov r8d, dword [rdi]
movzx eax, bl
neg al
sbb ecx, ecx
xor edx, edx
and ecx, 0x80000000
or ecx, 1
call fcn.140021250
call fcn.140021740
test bl, bl
je 0x140021051
mov dword [rdi], 0x80000000
mov dword [rsi], 0x80000000
add rsp, 0x40
pop rdi
pop rsi
pop rbx
ret
or dword [r8], 0x8001
cmp byte [rsp + 0x80], 0
mov qword [rsp + 0x60], rbp
mov qword [rsp + 0x70], r12
mov qword [rsp + 0x38], r13
mov qword [rsp + 0x30], r14
je 0x140020f42
cmp dword [0x14012b700], 1
jne 0x140020f27
mov eax, dword [0x140129890]
cmp eax, 0x80000000
jne 0x140020f1b
lea rcx, [0x140129890]
call qword [sym.imp.USER32.dll_GetCursorPos]
mov eax, dword [0x140129890]
add dword [rdi], eax
mov eax, dword [0x140129894]
add dword [rsi], eax
jmp 0x140020f4d
lea rcx, [rsp + 0x68]
call qword [sym.imp.USER32.dll_GetCursorPos]
mov r11d, dword [rsp + 0x68]
mov eax, dword [rsp + 0x6c]
add dword [rdi], r11d
add dword [rsi], eax
jmp 0x140020f4d
mov r8d, 2
call fcn.1400b9f70
cmp dword [0x14012b700], 1
jne 0x140020f66
mov eax, dword [rdi]
mov dword [0x140129890], eax
mov eax, dword [rsi]
mov dword [0x140129894], eax
xor ecx, ecx
call qword [sym.imp.USER32.dll_GetSystemMetrics]
mov ebp, 1
mov ecx, ebp
mov r12d, eax
call qword [sym.imp.USER32.dll_GetSystemMetrics]
mov r8d, dword [rdi]
or r14d, 0xffffffff
mov r13d, eax
mov eax, r8d
mov ecx, ebp
shl eax, 0x10
cdq
idiv r12d
test r8d, r8d
cmovs ecx, r14d
add eax, ecx
mov ecx, ebp
mov dword [rdi], eax
mov r8d, dword [rsi]
mov eax, r8d
shl eax, 0x10
cdq
idiv r13d
test r8d, r8d
cmovs ecx, r14d
lea r9d, [rax + rcx]
mov dword [rsi], r9d
test ebx, ebx
js 0x140021029
cmp ebx, 0x64
jle 0x140020fca
lea ebx, [rbp + 0x63]
jmp 0x140020fce
test ebx, ebx
je 0x140021029
cmp dword [0x14012b700], ebp
je 0x140021029
lea rcx, [rsp + 0x68]
call qword [sym.imp.USER32.dll_GetCursorPos]
mov r11d, dword [rsp + 0x6c]
mov rcx, qword [rsp + 0x68]
mov r9d, dword [rsi]
mov r8d, dword [rdi]
mov eax, r11d
shl eax, 0x10
mov r10d, ebp
mov dword [rsp + 0x20], ebx
cdq
idiv r13d
test r11d, r11d
cmovs r10d, r14d
add r10d, eax
mov eax, ecx
shl eax, 0x10
cdq
idiv r12d
test ecx, ecx
mov edx, r10d
cmovs ebp, r14d
lea ecx, [rbp + rax]
call fcn.14008e730
jmp 0x14002103d
mov r8d, dword [rdi]
xor edx, edx
mov ecx, 0x8001
call fcn.140021060
call fcn.140021740
mov r13, qword [rsp + 0x38]
mov r12, qword [rsp + 0x70]
mov rbp, qword [rsp + 0x60]
mov r14, qword [rsp + 0x30]
add rsp, 0x40
pop rdi
pop rsi
pop rbx
ret
Function at 0x1400214e0
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 edi, 1
movzx esi, dl
mov rbx, rcx
cmp dword [0x14012b700], edi
jne 0x1400215bd
xor al, al
cmp qword [0x14012ab80], 0
movzx ebx, al
cmovne ebx, edi
cmp qword [0x14012ab88], 0
je 0x140021523
or bl, 2
test bl, bl
je 0x14002153b
movzx ecx, byte [0x14012988a]
movzx edx, dil
not cl
and cl, bl
call fcn.140014240
mov rdx, qword [0x1401298a0]
mov ecx, dword [0x14012989c]
mov r8d, 0x28
call qword [sym.imp.USER32.dll_SendInput]
test bl, bl
je 0x140021633
movzx eax, byte [0x14012988a]
and al, bl
test dil, al
je 0x1400215a2
movzx ecx, dil
call fcn.140022360
movzx r8d, al
xor r8b, sil
movzx edx, r8b
and r8b, al
and dl, sil
not dl
and dl, byte [0x14012aa2f]
or dl, r8b
mov byte [0x14012aa2f], dl
call qword [sym.imp.USER32.dll_GetForegroundWindow]
mov qword [0x140129620], rax
movzx edx, dil
movzx ecx, bl
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
jmp fcn.140014240
mov r8, qword [0x14012aa20]
lea rdx, [0x14001f5c0]
xor esi, esi
xor r9d, r9d
mov ecx, edi
mov dword [0x14012988c], esi
call qword [sym.imp.USER32.dll_SetWindowsHookExW]
mov qword [0x14012ab90], rax
test rax, rax
je 0x140021633
mov byte [0x14012aa72], dil
mov edx, edi
mov ecx, 0x8000012f
mov dword [0x140125594], esi
call fcn.140001b60
cmp qword [0x14012ab90], rsi
mov dword [0x140125594], edi
jne 0x1400215f1
mov ecx, dword [0x14012989c]
mov rax, qword [0x1401298a0]
mov byte [0x14012aa72], sil
dec ecx
cmp dword [rax + rcx*8], esi
jne 0x140021633
mov eax, dword [rax + rcx*8 + 4]
mov dword [rbx], eax
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret
Function at 0x140021860
Capabilities:
Get graphical window text

Disassembly:
sub rsp, 0x28
mov r9, qword [0x14012b5c0]
test r9, r9
je 0x1400219b8
movsxd rax, dword [0x14012b5bc]
mov qword [rsp + 0x30], rbx
mov qword [rsp + 0x20], rdi
imul rax, rax, 0xd4
mov byte [rax + r9 + 6], cl
mov byte [rax + r9], dl
mov ecx, 0x69
mov word [rax + r9 + 2], r8w
mov word [rax + r9 + 4], cx
call qword [sym.imp.KERNEL32.dll_GetTickCount]
movsxd rdx, dword [0x14012b5bc]
mov ecx, eax
pxor xmm0, xmm0
imul rdx, rdx, 0xd4
sub ecx, dword [0x14012c538]
mov dword [0x14012b5c8], eax
mov dword [0x14012c538], eax
cvtsi2ss xmm0, rcx
mov rcx, qword [0x14012b5c0]
divss xmm0, dword [0x140111ff0]
movss dword [rdx + rcx + 8], xmm0
call qword [sym.imp.USER32.dll_GetForegroundWindow]
xor edi, edi
mov rbx, rax
test rax, rax
je 0x140021954
cmp rax, qword [0x14012b5d0]
je 0x140021935
mov rcx, qword [0x14012b5c0]
movsxd rdx, dword [0x14012b5bc]
lea r8d, [rdi + 0x64]
imul rdx, rdx, 0xd4
lea rdx, [rdx + rcx + 0xc]
mov rcx, rax
call qword [sym.imp.USER32.dll_GetWindowTextW]
mov r11d, dword [0x14012b5bc]
jmp 0x140021992
movsxd r11, dword [0x14012b5bc]
mov rax, qword [0x14012b5c0]
mov rcx, r11
imul rcx, rcx, 0xd4
mov word [rcx + rax + 0xc], di
jmp 0x140021992
movsxd r11, dword [0x14012b5bc]
mov rax, qword [0x14012b5c0]
lea rdx, [0x1400f4d40]
mov rcx, r11
imul rcx, rcx, 0xd4
sub rcx, rdx
lea r8, [rcx + rax + 0xc]
nop dword [rax + rax]
movzx eax, word [rdx]
add rdx, 2
mov word [r8 + rdx - 2], ax
test ax, ax
jne 0x140021980
inc r11d
mov qword [0x14012b5d0], rbx
mov rbx, qword [rsp + 0x30]
cmp r11d, dword [0x140125598]
cmovge r11d, edi
mov rdi, qword [rsp + 0x20]
mov dword [0x14012b5bc], r11d
add rsp, 0x28
ret
Function at 0x1400219c0
Capabilities:
Log keystrokes via polling

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x30
movzx esi, cl
mov edi, edx
mov ecx, esi
mov ebp, esi
call qword [sym.imp.USER32.dll_GetKeyState]
and al, 1
neg al
sbb ebx, ebx
add ebx, 2
cmp edi, 1
je 0x1400219fa
cmp edi, 2
jne 0x140021aed
cmp ebx, edi
je 0x140021aed
mov ecx, ebp
call qword [sym.imp.USER32.dll_GetKeyState]
mov ecx, 0x8000
test cx, ax
je 0x140021a34
xor r8d, r8d
xor r9d, r9d
movzx edx, sil
lea ecx, [r8 + 1]
mov dword [rsp + 0x28], 0xffc3d44d
mov byte [rsp + 0x20], r8b
call fcn.14001f850
xor r8d, r8d
xor r9d, r9d
movzx edx, sil
lea ecx, [r8 + 2]
mov dword [rsp + 0x28], 0xffc3d44d
mov byte [rsp + 0x20], r8b
call fcn.14001f850
call qword [sym.imp.USER32.dll_GetForegroundWindow]
xor edx, edx
mov rcx, rax
call qword [sym.imp.USER32.dll_GetWindowThreadProcessId]
cmp eax, dword [0x14012c518]
sete bpl
test bpl, bpl
je 0x140021a95
mov edx, 1
or ecx, 0xffffffff
mov dword [0x140125594], 0
call fcn.140001b60
mov dword [0x140125594], 1
cmp sil, 0x14
jne 0x140021aed
cmp edi, 2
jne 0x140021aed
lea ecx, [rdi + 0x12]
call qword [sym.imp.USER32.dll_GetKeyState]
test al, 1
je 0x140021aed
xor r8d, r8d
xor r9d, r9d
mov dl, reloc.WSOCK32.dll_recv
mov ecx, edi
mov dword [rsp + 0x28], 0xffc3d44d
mov byte [rsp + 0x20], r8b
call fcn.14001f850
test bpl, bpl
je 0x140021aed
lea edx, [rdi - 1]
or ecx, 0xffffffff
mov dword [0x140125594], 0
call fcn.140001b60
mov dword [0x140125594], 1
mov rbp, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
mov eax, ebx
mov rbx, qword [rsp + 0x40]
add rsp, 0x30
pop rdi
ret
Function at 0x140022360
Capabilities:
Log keystrokes via polling

Disassembly:
sub rsp, 0x28
cmp qword [0x14012ab80], 0
je 0x14002237e
test cl, cl
jne 0x14002237e
movzx eax, byte [0x14012aa2d]
add rsp, 0x28
ret
mov qword [rsp + 0x30], rbx
mov ecx, 0xa0
mov qword [rsp + 0x20], rdi
xor bl, bl
call qword [sym.imp.USER32.dll_GetAsyncKeyState]
mov edi, 0x8000
test di, ax
mov eax, reloc.WSOCK32.dll_recv
movzx ebx, bl
mov ecx, 0xa1
cmovne ebx, eax
call qword [sym.imp.USER32.dll_GetAsyncKeyState]
test di, ax
je 0x1400223bb
or bl, 0x20
mov ecx, 0xa2
call qword [sym.imp.USER32.dll_GetAsyncKeyState]
test di, ax
je 0x1400223ce
or bl, 1
mov ecx, 0xa3
call qword [sym.imp.USER32.dll_GetAsyncKeyState]
test di, ax
je 0x1400223e1
or bl, 2
mov ecx, 0xa4
call qword [sym.imp.USER32.dll_GetAsyncKeyState]
test di, ax
je 0x1400223f4
or bl, 4
mov ecx, 0xa5
call qword [sym.imp.USER32.dll_GetAsyncKeyState]
test di, ax
je 0x140022407
or bl, 8
mov ecx, 0x5b
call qword [sym.imp.USER32.dll_GetAsyncKeyState]
test di, ax
je 0x14002241a
or bl, 0x40
mov ecx, 0x5c
call qword [sym.imp.USER32.dll_GetAsyncKeyState]
test di, ax
je 0x14002242d
or bl, 0x80
cmp qword [0x14012ab80], 0
je 0x140022498
movzx ecx, byte [0x14012aa2d]
movzx edi, bl
not dil
and dil, cl
je 0x140022498
movzx edx, byte [0x14012aa2f]
movzx eax, dil
not al
and byte [0x14012aa2e], al
and cl, al
and dl, al
mov byte [0x14012aa2d], cl
lea rcx, [0x14012aa80]
mov byte [0x14012aa2f], dl
call fcn.1400224b0
mov rcx, qword [0x140129878]
test rcx, rcx
je 0x140022498
test byte [rcx + 0xc], dil
mov eax, 0
cmovne rcx, rax
mov qword [0x140129878], rcx
mov rdi, qword [rsp + 0x20]
movzx eax, bl
mov rbx, qword [rsp + 0x30]
add rsp, 0x28
ret

Function at 0x140022890
Capabilities:
Get keyboard layout

Disassembly:
push rbx
sub rsp, 0x70
xor ebx, ebx
test rcx, rcx
je 0x1400228d4
xor edx, edx
call qword [sym.imp.USER32.dll_GetWindowThreadProcessId]
lea rdx, [rsp + 0x20]
mov dword [rsp + 0x20], 0x48
mov ecx, eax
mov ebx, eax
call qword [sym.imp.USER32.dll_GetGUIThreadInfo]
test eax, eax
je 0x1400228d4
mov rcx, qword [rsp + 0x30]
test rcx, rcx
je 0x1400228d4
xor edx, edx
call qword [sym.imp.USER32.dll_GetWindowThreadProcessId]
mov ebx, eax
mov ecx, ebx
call qword [sym.imp.USER32.dll_GetKeyboardLayout]
add rsp, 0x70
pop rbx
ret
Function at 0x1400228f0
Capabilities:
Get keyboard layout
Query or enumerate registry value

Disassembly:
push rbp
push rsi
push rdi
sub rsp, 0x2c0
xor edx, edx
mov rbp, rcx
xor edi, edi
call qword [sym.imp.USER32.dll_ActivateKeyboardLayout]
mov rsi, rax
test rax, rax
je 0x140022a4c
mov edx, edi
lea rcx, str.SYSTEMCurrentControlSetControlKeyboard_Layouts_
nop dword [rax]
movzx eax, word [rdx + rcx]
add rdx, 2
mov word [rsp + rdx + 0x2e], ax
test ax, ax
jne 0x140022920
lea rcx, [rsp + 0x94]
call qword [sym.imp.USER32.dll_GetKeyboardLayoutNameW]
test eax, eax
je 0x140022a3c
lea rax, [rsp + 0x2f0]
lea rdx, [rsp + 0x30]
mov r9d, 1
xor r8d, r8d
mov rcx, 0xffffffff80000002
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x140022a3c
mov rcx, qword [rsp + 0x2f0]
lea rax, [rsp + 0x2e8]
lea rdx, str.Layout_File
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0xb0]
xor r9d, r9d
xor r8d, r8d
mov qword [rsp + 0x2e0], rbx
mov dword [rsp + 0x2e8], 0x208
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov rcx, qword [rsp + 0x2f0]
mov ebx, eax
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
test ebx, ebx
mov rbx, qword [rsp + 0x2e0]
jne 0x140022a3c
mov ecx, dword [rsp + 0x2e8]
test ecx, ecx
je 0x140022a3c
shr ecx, 1
dec ecx
cmp word [rsp + rcx*2 + 0xb0], di
jne 0x140022a15
test ecx, ecx
je 0x140022a3c
nop dword [rax]
lea edx, [rcx - 1]
cmp word [rsp + rdx*2 + 0xb0], di
jne 0x140022a27
mov ecx, edx
test edx, edx
jne 0x140022a00
jmp 0x140022a3c
inc ecx
cmp ecx, 0x104
jae 0x140022a3c
mov word [rsp + rcx*2 + 0xb0], di
test ecx, ecx
je 0x140022a3c
lea rcx, [rsp + 0xb0]
call qword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov rdi, rax
cmp rbp, rsi
je 0x140022a4c
xor edx, edx
mov rcx, rsi
call qword [sym.imp.USER32.dll_ActivateKeyboardLayout]
mov rax, rdi
add rsp, 0x2c0
pop rdi
pop rsi
pop rbp
ret