joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1800137e0
Capabilities:
Log keystrokes via polling

Disassembly:
push rdi
sub rsp, 0x20
cmp byte [0x18010e7d3], 0
movabs rdi, 0x7fffffff0000
je 0x180013881
mov ecx, dword [0x18006c418]
call qword [sym.imp.USER32.dll_GetAsyncKeyState]
test ax, ax
je 0x180013881
mov rax, qword [0x18010edb0]
lea rcx, [rax + 0x299b4c0]
cmp rcx, 0x400000
jbe 0x1800138e6
add rax, 0x299b4c8
cmp rax, rdi
jae 0x1800138e6
mov rax, qword [rcx]
lea rcx, [rax + 0xb8]
cmp rcx, 0x400000
jbe 0x1800138e6
add rax, 0xc0
cmp rax, rdi
jae 0x1800138e6
mov rax, qword [rcx]
lea rcx, [rax + 0x18]
cmp rcx, 0x400000
jbe 0x1800138e6
add rax, 0x1c
cmp rax, rdi
jae 0x1800138e6
movss xmm0, dword [0x18006c618]
jmp 0x1800138e2
mov rax, qword [0x18010edb0]
lea rcx, [rax + 0x299b4c0]
cmp rcx, 0x400000
jbe 0x1800138e6
add rax, 0x299b4c8
cmp rax, rdi
jae 0x1800138e6
mov rax, qword [rcx]
lea rcx, [rax + 0xb8]
cmp rcx, 0x400000
jbe 0x1800138e6
add rax, 0xc0
cmp rax, rdi
jae 0x1800138e6
mov rax, qword [rcx]
lea rcx, [rax + 0x18]
cmp rcx, 0x400000
jbe 0x1800138e6
add rax, 0x1c
cmp rax, rdi
jae 0x1800138e6
movss xmm0, dword [0x18006c61c]
movss dword [rcx], xmm0
xor r9d, r9d
cmp byte [0x18010e7d5], r9b
je 0x180013958
mov rax, qword [0x18010ea28]
lea rcx, [rax + 0x4d0]
cmp rcx, 0x400000
jbe 0x180013958
add rax, 0x4d8
cmp rax, rdi
jae 0x180013958
mov rcx, qword [rcx]
mov rdx, rcx
lea r8, [rcx + 0xb4]
cmp r8, 0x400000
jbe 0x180013939
lea rax, [rcx + 0xb8]
cmp rax, rdi
jae 0x180013939
mov dword [r8], r9d
lea rcx, [rdx + 0xb8]
cmp rcx, 0x400000
jbe 0x180013958
lea rax, [rdx + 0xbc]
cmp rax, rdi
jae 0x180013958
mov dword [rcx], r9d
cmp byte [0x18010e754], r9b
je 0x18001396f
mov rax, qword [0x18010ea28]
mov qword [rax + 0x2b8], r9
cmp byte [0x18010e7dc], r9b
je 0x1800139b5
mov rax, qword [0x18010ea28]
lea rcx, [rax + 0x5f8]
lea rdx, [rax + 0x5fc]
cmp rcx, 0x400000
jbe 0x1800139b5
cmp rdx, rdi
jae 0x18001399f
mov eax, dword [rcx]
jmp 0x1800139b0
cmp rcx, 0x400000
jbe 0x1800139b5
mov eax, r9d
cmp rdx, rdi
jae 0x1800139b5
or eax, 4
mov dword [rcx], eax
cmp byte [0x18010e74a], r9b
je 0x1800139fc
mov rax, qword [0x18010ea28]
lea rcx, [rax + 0x4c8]
cmp rcx, 0x400000
jbe 0x1800139fc
add rax, 0x4d0
cmp rax, rdi
jae 0x1800139fc
mov rax, qword [rcx]
lea rcx, [rax + 0x64]
cmp rcx, 0x400000
jbe 0x1800139fc
add rax, 0x6c
cmp rax, rdi
jae 0x1800139fc
mov qword [rcx], r9
cmp byte [0x18010e7b0], r9b
je 0x180013a75
mov qword [rsp + 0x30], rbx
mov ecx, 0x14
mov rbx, qword [0x18010ea28]
call qword [sym.imp.USER32.dll_GetKeyState]
test ax, ax
je 0x180013a70
lea rcx, [rbx + 0x600]
cmp rcx, 0x400000
jbe 0x180013a70
lea rax, [rbx + 0x608]
cmp rax, rdi
jae 0x180013a70
mov rax, qword [rcx]
lea rcx, [rax + 0x38]
cmp rcx, 0x400000
jbe 0x180013a70
add rax, 0x44
cmp rax, rdi
jae 0x180013a70
movss xmm1, dword [0x18005f5a0]
xorps xmm0, xmm0
unpcklps xmm0, xmm1
xorps xmm2, xmm2
movsd qword [rcx], xmm0
movss dword [rcx + 8], xmm2
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret
Function at 0x18002bb20
Capabilities:
Hash data with crc32

Disassembly:
movzx r9d, byte [rcx]
lea r8, [rcx + 1]
mov r10d, 0xffffffff
mov eax, r10d
test r9b, r9b
je 0x18002bb70
lea r11, [0x18005fea0]
nop dword [rax]
cmp r9b, 0x23
jne 0x18002bb53
cmp byte [r8], r9b
jne 0x18002bb53
cmp byte [r8 + 1], r9b
cmove eax, r10d
movzx edx, al
movzx ecx, r9b
movzx r9d, byte [r8]
xor rdx, rcx
shr eax, 8
inc r8
xor eax, dword [r11 + rdx*4]
test r9b, r9b
jne 0x18002bb40
mov rcx, qword [0x18010eee8]
not eax
movsxd rdx, dword [rcx + 0x1ad8]
mov r9, qword [rcx + 0x1ae0]
mov r10, rdx
shl r10, 4
add r10, r9
test rdx, rdx
je 0x18002bbd1
nop word [rax + rax]
mov r8, rdx
shr r8, 1
mov rcx, r8
add rcx, rcx
cmp dword [r9 + rcx*8], eax
jae 0x18002bbc9
lea r9, [r9 + rcx*8]
mov rcx, 0xffffffffffffffff
sub rcx, r8
add r9, 0x10
add rdx, rcx
jmp 0x18002bbcc
mov rdx, r8
test rdx, rdx
jne 0x18002bba0
cmp r9, r10
je 0x18002bbe0
cmp dword [r9], eax
jne 0x18002bbe0
mov rax, qword [r9 + 8]
ret
xor eax, eax
ret

Function at 0x18002c790
Capabilities:
Hash data with crc32

Disassembly:
mov rax, qword [rcx + 0xc8]
mov r9, r8
movsxd r8, dword [rcx + 0xc0]
mov r10, rdx
xor ecx, ecx
mov rdx, r9
sub rdx, r10
test r9, r9
mov r8d, dword [rax + r8*4 - 4]
cmove rdx, rcx
mov rcx, r10
jmp fcn.18002d030

Function at 0x18002d030
Capabilities:
Hash data with crc32

Disassembly:
mov qword [rsp + 8], rbx
mov r11d, r8d
mov r10, rdx
not r11d
mov r9, rcx
mov eax, r11d
test rdx, rdx
je 0x18002d08d
lea rbx, [0x18005fea0]
movzx r8d, byte [r9]
lea r9, [r9 + 1]
dec r10
cmp r8b, 0x23
jne 0x18002d074
cmp r10, 2
jb 0x18002d074
cmp byte [r9], r8b
jne 0x18002d074
cmp byte [r9 + 1], r8b
cmove eax, r11d
movzx edx, al
xor rdx, r8
shr eax, 8
xor eax, dword [rbx + rdx*4]
test r10, r10
jne 0x18002d050
not eax
mov rbx, qword [rsp + 8]
ret
movzx r8d, byte [rcx]
inc r9
test r8b, r8b
je 0x18002d0cf
lea rbx, [0x18005fea0]
cmp r8b, 0x23
jne 0x18002d0b3
cmp byte [r9], r8b
jne 0x18002d0b3
cmp byte [r9 + 1], r8b
cmove eax, r11d
movzx edx, al
movzx ecx, r8b
movzx r8d, byte [r9]
xor rdx, rcx
shr eax, 8
inc r9
xor eax, dword [rbx + rdx*4]
test r8b, r8b
jne 0x18002d0a0
mov rbx, qword [rsp + 8]
not eax
ret
Function at 0x18002dc20
Capabilities:
Hash data with crc32

Disassembly:
mov qword [rsp + 0x10], rbx
push rdi
sub rsp, 0x50
xor eax, eax
lea r8, [0x180060445]
mov dword [rsp + 0x2c], eax
lea r11, [0x18005fea0]
mov qword [rsp + 0x48], rax
mov r10d, 0xffffffff
lea rax, str.Window
mov rbx, rcx
mov qword [rsp + 0x20], rax
mov edx, r10d
mov r9b, 0x57
nop
cmp r9b, 0x23
jne 0x18002dc73
cmp byte [r8], r9b
jne 0x18002dc73
cmp byte [r8 + 1], r9b
cmove edx, r10d
movzx ecx, dl
movzx eax, r9b
movzx r9d, byte [r8]
xor rcx, rax
shr edx, 8
inc r8
xor edx, dword [r11 + rcx*4]
test r9b, r9b
jne 0x18002dc60
mov ecx, dword [rbx + 0x2fec]
lea rax, [0x180037d10]
mov edi, dword [rbx + 0x2fe8]
not edx
mov qword [rsp + 0x30], rax
lea rax, [0x180037c40]
mov qword [rsp + 0x38], rax
lea rax, [0x180037dc0]
mov qword [rsp + 0x40], rax
mov dword [rsp + 0x28], edx
cmp edi, ecx
jne 0x18002dd83
inc edi
test ecx, ecx
je 0x18002dcdf
mov eax, ecx
cdq
sub eax, edx
sar eax, 1
add eax, ecx
jmp 0x18002dce4
mov eax, 8
cmp eax, edi
cmovg edi, eax
cmp edi, ecx
jle 0x18002dd83
mov rax, qword [0x18010eee8]
mov qword [rsp + 0x60], rsi
test rax, rax
je 0x18002dd08
inc dword [rax + 0x3bc]
mov rdx, qword [0x18010eef8]
movsxd rax, edi
lea rcx, [rax + rax*2]
shl rcx, 4
call qword [0x18010e120]
mov rdx, qword [rbx + 0x2ff0]
mov rsi, rax
test rdx, rdx
je 0x18002dd71
movsxd rcx, dword [rbx + 0x2fe8]
lea r8, [rcx + rcx*2]
mov rcx, rax
shl r8, 4
call sub.VCRUNTIME140.dll_memcpy
mov rcx, qword [rbx + 0x2ff0]
test rcx, rcx
je 0x18002dd64
mov rax, qword [0x18010eee8]
test rax, rax
je 0x18002dd64
dec dword [rax + 0x3bc]
mov rdx, qword [0x18010eef8]
call qword [0x18010e128]
mov qword [rbx + 0x2ff0], rsi
mov rsi, qword [rsp + 0x60]
mov dword [rbx + 0x2fec], edi
movsxd rax, dword [rbx + 0x2fe8]
movups xmm0, xmmword [rsp + 0x20]
movups xmm1, xmmword [rsp + 0x30]
lea rcx, [rax + rax*2]
mov rax, qword [rbx + 0x2ff0]
add rcx, rcx
movups xmmword [rax + rcx*8], xmm0
movups xmm0, xmmword [rsp + 0x40]
movups xmmword [rax + rcx*8 + 0x10], xmm1
movups xmmword [rax + rcx*8 + 0x20], xmm0
inc dword [rbx + 0x2fe8]
mov byte [rbx], 1
mov rbx, qword [rsp + 0x68]
add rsp, 0x50
pop rdi
ret
Function at 0x18002e650
Capabilities:
Hash data with crc32

Disassembly:
push rsi
push r13
sub rsp, 0x38
mov r13, qword [0x18010eee8]
mov qword [rsp + 0x50], rbx
mov rbx, rdx
mov qword [rsp + 0x60], rbp
mov qword [rsp + 0x68], rdi
mov rdi, rcx
mov qword [rsp + 0x30], r12
test rdx, rdx
jne 0x18002e68e
mov rbx, 0xffffffffffffffff
inc rbx
cmp byte [rcx + rbx], 0
jne 0x18002e685
test r13, r13
je 0x18002e69a
inc dword [r13 + 0x3bc]
mov rdx, qword [0x18010eef8]
lea rcx, [rbx + 1]
call qword [0x18010e120]
mov r8, rbx
mov rdx, rdi
mov rcx, rax
mov qword [rsp + 0x58], rax
mov rsi, rax
lea r12, [rax + rbx]
call sub.VCRUNTIME140.dll_memcpy
xor ebp, ebp
mov byte [r12], 0
xor edi, edi
mov rcx, rsi
cmp rsi, r12
jae 0x18002e873
mov qword [rsp + 0x28], r14
mov qword [rsp + 0x20], r15
movzx eax, byte [rcx]
cmp al, 0xa
je 0x18002e8be
cmp al, 0xd
je 0x18002e8be
mov rbx, rcx
cmp rcx, r12
jae 0x18002e713
nop
movzx eax, byte [rbx]
cmp al, 0xa
je 0x18002e713
cmp al, 0xd
je 0x18002e713
inc rbx
cmp rbx, r12
jb 0x18002e700
mov byte [rbx], 0
movzx eax, byte [rcx]
cmp al, 0x3b
je 0x18002e857
cmp al, 0x5b
jne 0x18002e83e
cmp rbx, rcx
jbe 0x18002e83e
cmp byte [rbx - 1], 0x5d
lea rsi, [rbx - 1]
jne 0x18002e83e
lea r14, [rcx + 1]
mov byte [rsi], 0
mov r8, rsi
mov rcx, r14
sub r8, r14
mov edx, 0x5d
call sub.VCRUNTIME140.dll_memchr
mov r15, rax
test rax, rax
je 0x18002e857
lea rcx, [rax + 1]
mov edx, 0x5b
sub rsi, rcx
mov r8, rsi
call sub.VCRUNTIME140.dll_memchr
mov r11, rax
test rax, rax
je 0x18002e857
mov byte [r15], 0
lea r8, [r14 + 1]
movzx r9d, byte [r14]
mov esi, 0xffffffff
mov r10, qword [0x18010eee8]
mov ecx, esi
test r9b, r9b
je 0x18002e7da
cmp r9b, 0x23
jne 0x18002e7b7
cmp byte [r8], r9b
jne 0x18002e7b7
cmp byte [r8 + 1], r9b
cmove ecx, esi
movzx edx, cl
movzx eax, r9b
movzx r9d, byte [r8]
xor rdx, rax
shr ecx, 8
lea rax, [0x18005fea0]
inc r8
xor ecx, dword [rax + rdx*4]
test r9b, r9b
jne 0x18002e7a5
movsxd rax, dword [r10 + 0x2fe8]
xor r8d, r8d
xor edx, edx
not ecx
test eax, eax
jle 0x18002e813
mov r10, qword [r10 + 0x2ff0]
mov r9, rax
lea rax, [r10 + 8]
nop word [rax + rax]
cmp dword [rax], ecx
je 0x18002e819
inc r8d
inc rdx
add rax, 0x30
cmp rdx, r9
jl 0x18002e800
xor edi, edi
xor ebp, ebp
jmp 0x18002e857
movsxd rax, r8d
lea rdi, [rax + rax*2]
shl rdi, 4
add rdi, r10
je 0x18002e815
mov rax, qword [rdi + 0x10]
lea r8, [r11 + 1]
mov rdx, rdi
mov rcx, r13
call rax
mov rbp, rax
jmp 0x18002e857
test rdi, rdi
je 0x18002e857
test rbp, rbp
je 0x18002e857
mov r9, rcx
mov r8, rbp
mov rcx, r13
mov rdx, rdi
call qword [rdi + 0x18]
lea rcx, [rbx + 1]
cmp rcx, r12
jb 0x18002e6e4
mov rsi, qword [rsp + 0x58]
mov r15, qword [rsp + 0x20]
mov r14, qword [rsp + 0x28]
mov r12, qword [rsp + 0x30]
mov rdi, qword [rsp + 0x68]
mov rbp, qword [rsp + 0x60]
mov rbx, qword [rsp + 0x50]
test rsi, rsi
je 0x18002e89e
mov rax, qword [0x18010eee8]
test rax, rax
je 0x18002e89e
dec dword [rax + 0x3bc]
mov rdx, qword [0x18010eef8]
mov rcx, rsi
call qword [0x18010e128]
mov byte [r13 + 0x2fd0], 1
add rsp, 0x38
pop r13
pop rsi
ret
inc rcx
jmp 0x18002e6e4
Function at 0x18002ea50
Capabilities:
Write file on windows

Disassembly:
mov rax, rsp
mov qword [rax + 8], rcx
mov qword [rax + 0x10], rdx
mov qword [rax + 0x18], r8
mov qword [rax + 0x20], r9
push rbx
sub rsp, 0x40
mov rbx, qword [0x18010eee8]
cmp byte [rbx + 0x3008], 0
je 0x18002eb35
cmp qword [rbx + 0x3010], 0
mov qword [rax - 0x18], rsi
lea rsi, [rax + 0x10]
mov qword [rax - 0x20], rdi
lea rdi, [rbx + 0x3018]
je 0x18002eb1d
mov ecx, dword [rdi + 4]
mov qword [rax - 0x10], rbp
xor ebp, ebp
test ecx, ecx
jns 0x18002eac2
mov eax, ecx
cdq
sub eax, edx
mov edx, ebp
sar eax, 1
add eax, ecx
mov rcx, rdi
test eax, eax
cmovg edx, eax
call fcn.1800385b0
mov dword [rdi], ebp
mov r8, rsi
mov rdx, qword [rsp + 0x50]
mov rcx, rdi
call fcn.180038080
mov eax, dword [rdi]
mov edx, 1
mov r9, qword [rbx + 0x3010]
test eax, eax
lea ecx, [rax - 1]
mov rax, qword [rbx + 0x3020]
cmove ecx, ebp
test rax, rax
movsxd r8, ecx
lea rcx, [0x18010eef0]
cmovne rcx, rax
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x30]
mov rdi, qword [rsp + 0x28]
add rsp, 0x40
pop rbx
ret
mov rdx, rcx
mov r8, rsi
mov rcx, rdi
call fcn.180038080
mov rsi, qword [rsp + 0x30]
mov rdi, qword [rsp + 0x28]
add rsp, 0x40
pop rbx
ret
Function at 0x180035850
Capabilities:
Write file on windows

Disassembly:
push r14
push r15
sub rsp, 0x28
mov rax, qword [0x18010eee8]
xor r15d, r15d
mov r14, rcx
mov dword [rax + 0x2fd4], r15d
test rcx, rcx
je 0x180035980
mov qword [rsp + 0x40], rbx
mov qword [rsp + 0x48], rbp
mov qword [rsp + 0x50], rsi
mov qword [rsp + 0x20], rdi
mov rdi, qword [0x18010eee8]
lea rbx, [rdi + 0x2fd8]
mov dword [rdi + 0x2fd4], r15d
mov ecx, dword [rbx + 4]
test ecx, ecx
jns 0x1800358be
mov eax, ecx
cdq
sub eax, edx
mov edx, r15d
sar eax, 1
add eax, ecx
mov rcx, rbx
test eax, eax
cmovg edx, eax
call fcn.1800385b0
mov dword [rbx], r15d
cmp dword [rbx + 4], r15d
jne 0x1800358d4
mov edx, 8
mov rcx, rbx
call fcn.1800385b0
movsxd rcx, dword [rbx]
mov ebp, r15d
mov rax, qword [rbx + 8]
mov byte [rcx + rax], r15b
inc dword [rbx]
cmp dword [rdi + 0x2fe8], r15d
jle 0x180035915
mov rsi, r15
mov r9, qword [rdi + 0x2ff0]
mov r8, rbx
add r9, rsi
mov rcx, rdi
mov rdx, r9
call qword [r9 + 0x20]
inc ebp
add rsi, 0x30
cmp ebp, dword [rdi + 0x2fe8]
jl 0x1800358f0
mov eax, dword [rbx]
lea rdx, [0x18006050c]
test eax, eax
lea ecx, [rax - 1]
mov rax, qword [rdi + 0x2fe0]
cmove ecx, r15d
lea rdi, [0x18010eef0]
test rax, rax
movsxd rsi, ecx
mov rcx, r14
cmovne rdi, rax
call fcn.18002cda0
mov rbp, qword [rsp + 0x48]
mov rbx, rax
test rax, rax
je 0x180035971
mov r9, rax
mov r8, rsi
mov edx, 1
mov rcx, rdi
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
mov rcx, rbx
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
mov rsi, qword [rsp + 0x50]
mov rbx, qword [rsp + 0x40]
mov rdi, qword [rsp + 0x20]
add rsp, 0x28
pop r15
pop r14
ret
Function at 0x18003ae30
Capabilities:
Resolve function by parsing pe exports

Disassembly:
test r9d, 0xff000000
je 0x18003afc1
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x40
movss xmm3, dword [rsp + 0x70]
xorps xmm0, xmm0
comiss xmm3, xmm0
mov edi, r9d
mov rsi, r8
mov rbp, rdx
mov rbx, rcx
jbe 0x18003aea0
mov eax, dword [rsp + 0x78]
mov dword [rsp + 0x20], eax
call fcn.18003de50
mov r8d, dword [rbx + 0x80]
mov r9d, edi
mov rdx, qword [rbx + 0x88]
mov rcx, rbx
call fcn.180038ce0
mov dword [rbx + 0x80], 0
jmp 0x18003afad
mov edx, 6
movaps xmmword [rsp + 0x30], xmm6
lea r8d, [rdx - 2]
call fcn.18003e370
movzx edx, word [rbx + 0x4c]
mov rax, qword [rbx + 0x38]
movss xmm1, dword [rsi]
movss xmm2, dword [rbp + 4]
movss xmm3, dword [rbp]
lea ecx, [rdx + 1]
movss xmm6, dword [rax + 4]
movss xmm5, dword [rax]
movss xmm4, dword [rsi + 4]
mov rax, qword [rbx + 0x58]
mov word [rax], dx
mov rax, qword [rbx + 0x58]
mov word [rax + 2], cx
lea ecx, [rdx + 2]
mov rax, qword [rbx + 0x58]
mov word [rax + 4], cx
mov rax, qword [rbx + 0x58]
mov word [rax + 6], dx
add dx, 3
mov rax, qword [rbx + 0x58]
mov word [rax + 8], cx
mov rax, qword [rbx + 0x58]
mov word [rax + 0xa], dx
movsd xmm0, qword [rbp]
mov rax, qword [rbx + 0x50]
movsd qword [rax], xmm0
mov rax, qword [rbx + 0x50]
movss dword [rax + 8], xmm5
movss dword [rax + 0xc], xmm6
mov rax, qword [rbx + 0x50]
mov dword [rax + 0x10], edi
mov rax, qword [rbx + 0x50]
movss dword [rax + 0x14], xmm1
movss dword [rax + 0x18], xmm2
mov rax, qword [rbx + 0x50]
movss dword [rax + 0x1c], xmm5
movss dword [rax + 0x20], xmm6
mov rax, qword [rbx + 0x50]
mov dword [rax + 0x24], edi
movsd xmm0, qword [rsi]
mov rax, qword [rbx + 0x50]
movsd qword [rax + 0x28], xmm0
mov rax, qword [rbx + 0x50]
movss dword [rax + 0x30], xmm5
movss dword [rax + 0x34], xmm6
mov rax, qword [rbx + 0x50]
mov dword [rax + 0x38], edi
mov rax, qword [rbx + 0x50]
movss dword [rax + 0x3c], xmm3
movss dword [rax + 0x40], xmm4
mov rax, qword [rbx + 0x50]
movss dword [rax + 0x44], xmm5
movss dword [rax + 0x48], xmm6
mov rax, qword [rbx + 0x50]
movaps xmm6, xmmword [rsp + 0x30]
mov dword [rax + 0x4c], edi
add qword [rbx + 0x50], 0x50
add dword [rbx + 0x4c], 4
add qword [rbx + 0x58], 0xc
mov rbx, qword [rsp + 0x50]
mov rbp, qword [rsp + 0x58]
mov rsi, qword [rsp + 0x60]
add rsp, 0x40
pop rdi
ret
Function at 0x180047760
Capabilities:
Log keystrokes via polling

Disassembly:
mov qword [rsp + 0x20], rbx
push rdi
sub rsp, 0x30
call fcn.18002c7c0
mov rcx, qword [0x18010efc0]
lea rdx, [rsp + 0x20]
mov rdi, rax
call qword [sym.imp.USER32.dll_GetClientRect]
mov ecx, dword [rsp + 0x28]
sub ecx, dword [rsp + 0x20]
movd xmm1, ecx
mov ecx, dword [rsp + 0x2c]
sub ecx, dword [rsp + 0x24]
cvtdq2ps xmm1, xmm1
movd xmm0, ecx
lea rcx, [rsp + 0x50]
cvtdq2ps xmm0, xmm0
movss dword [rdi + 8], xmm1
movss dword [rdi + 0xc], xmm0
call qword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
mov rax, qword [rsp + 0x50]
xorps xmm1, xmm1
sub rax, qword [0x18010efc8]
xorps xmm0, xmm0
cvtsi2ss xmm0, qword [0x18010efd0]
mov ecx, 0x11
cvtsi2ss xmm1, rax
divss xmm1, xmm0
movss dword [rdi + 0x10], xmm1
mov rax, qword [rsp + 0x50]
mov qword [0x18010efc8], rax
call qword [sym.imp.USER32.dll_GetKeyState]
shr eax, 0xf
mov ecx, 0x10
and al, 1
mov byte [rdi + 0x140], al
call qword [sym.imp.USER32.dll_GetKeyState]
shr eax, 0xf
mov ecx, 0x12
and al, 1
mov byte [rdi + 0x141], al
call qword [sym.imp.USER32.dll_GetKeyState]
shr eax, 0xf
and al, 1
mov byte [rdi + 0x143], 0
mov byte [rdi + 0x142], al
call fcn.18002c7c0
cmp byte [rax + 0x39b], 0
lea rbx, [rax + 0x128]
je 0x18004787e
cvttss2si ecx, dword [rbx]
lea rdx, [rsp + 0x40]
cvttss2si eax, dword [rax + 0x12c]
mov dword [rsp + 0x40], ecx
mov rcx, qword [0x18010efc0]
mov dword [rsp + 0x44], eax
call qword [sym.imp.USER32.dll_ClientToScreen]
mov edx, dword [rsp + 0x44]
mov ecx, dword [rsp + 0x40]
call qword [sym.imp.USER32.dll_SetCursorPos]
mov dword [rbx], 0xff7fffff
mov dword [rbx + 4], 0xff7fffff
call qword [sym.imp.USER32.dll_GetForegroundWindow]
test rax, rax
je 0x1800478ef
mov rdx, qword [0x18010efc0]
cmp rax, rdx
je 0x1800478af
mov rcx, rax
call qword [sym.imp.USER32.dll_IsChild]
test eax, eax
je 0x1800478ef
lea rcx, [rsp + 0x48]
call qword [sym.imp.USER32.dll_GetCursorPos]
test eax, eax
je 0x1800478ef
mov rcx, qword [0x18010efc0]
lea rdx, [rsp + 0x48]
call qword [sym.imp.USER32.dll_ScreenToClient]
test eax, eax
je 0x1800478ef
movd xmm0, dword [rsp + 0x48]
movd xmm1, dword [rsp + 0x4c]
cvtdq2ps xmm0, xmm0
cvtdq2ps xmm1, xmm1
movss dword [rbx], xmm0
movss dword [rbx + 4], xmm1
cmp byte [rdi + 0xc0], 0
je 0x1800478ff
mov eax, 0xffffffff
jmp 0x180047904
call fcn.18002c840
cmp dword [0x18010e2f0], eax
je 0x180047917
mov dword [0x18010e2f0], eax
call fcn.180047930
mov rbx, qword [rsp + 0x58]
add rsp, 0x30
pop rdi
ret
Function at 0x1800543e0
Capabilities:
Get system information on windows

Disassembly:
mov qword [rsp + 0x20], rsi
push rdi
push r14
push r15
sub rsp, 0x80
mov rdi, rcx
lea rcx, [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov r14, qword [rsp + 0x28]
mov rcx, qword [rsp + 0x30]
cmp rdi, 0x40000000
jbe 0x180054420
lea rax, [rdi - 0x40000000]
cmp r14, rax
cmovb r14, rax
mov rsi, qword [0x18010efd8]
lea r15, [rdi + 0x40000000]
cmp rcx, r15
cmovbe r15, rcx
sub r15, 0xfff
test rsi, rsi
je 0x18005445e
cmp rsi, r14
jb 0x180054456
cmp rsi, r15
jae 0x180054456
cmp qword [rsi + 8], 0
jne 0x180054627
mov rsi, qword [rsi]
test rsi, rsi
jne 0x180054441
mov qword [rsp + 0xa0], rbx
mov rbx, rdi
mov qword [rsp + 0xa8], rbp
mov qword [rsp + 0xb0], r12
mov r12d, 0x40
cmp rdi, r14
jb 0x1800544f2
nop dword [rax]
nop dword [rax + rax]
mov ebp, dword [rsp + 0x48]
mov rax, rbx
xor edx, edx
div rbp
sub rbx, rdx
sub rbx, rbp
cmp rbx, r14
jb 0x1800544e9
nop word [rax + rax]
mov r8d, 0x30
lea rdx, [rsp + 0x50]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x1800544e9
cmp dword [rsp + 0x70], 0x10000
je 0x18005456b
mov rbx, qword [rsp + 0x58]
cmp rbx, rbp
jb 0x1800544e9
sub rbx, rbp
cmp rbx, r14
jae 0x1800544b0
test rsi, rsi
jne 0x1800545d0
cmp rdi, r15
ja 0x18005460f
nop dword [rax + rax]
mov ebp, dword [rsp + 0x48]
xor edx, edx
mov rax, rdi
mov ebx, ebp
div rbp
mov eax, ebp
sub rax, rdx
add rax, rdi
mov rdi, rax
cmp rax, r15
ja 0x18005460f
mov r8d, 0x30
lea rdx, [rsp + 0x50]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x18005460f
cmp dword [rsp + 0x70], 0x10000
je 0x1800545a1
xor edx, edx
lea edi, [rbp - 1]
add rdi, qword [rsp + 0x68]
add rdi, qword [rsp + 0x50]
mov rax, rdi
div rbx
sub rdi, rdx
cmp rdi, r15
jbe 0x180054522
jmp 0x18005460f
test rbx, rbx
je 0x1800544e9
mov r9d, r12d
mov edx, 0x1000
mov r8d, 0x3000
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov rsi, rax
test rax, rax
jne 0x1800545d0
cmp rbx, r14
jae 0x180054490
jmp 0x1800544f2
test rdi, rdi
je 0x18005460f
mov r9d, r12d
mov edx, 0x1000
mov r8d, 0x3000
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov rsi, rax
test rax, rax
jne 0x1800545d0
cmp rdi, r15
jbe 0x180054500
jmp 0x18005460f
xor edx, edx
lea rcx, [rsi + 0x40]
mov dword [rsi + 0x10], edx
nop dword [rax]
mov qword [rcx], rdx
mov rax, rcx
mov qword [rsi + 8], rcx
add r12, 0x40
add rcx, 0x40
mov rdx, rax
cmp r12, 0xfc0
jbe 0x1800545e0
mov rax, qword [0x18010efd8]
mov qword [rsi], rax
mov qword [0x18010efd8], rsi
mov r12, qword [rsp + 0xb0]
mov rbp, qword [rsp + 0xa8]
mov rbx, qword [rsp + 0xa0]
mov rax, rsi
mov rsi, qword [rsp + 0xb8]
add rsp, 0x80
pop r15
pop r14
pop rdi
ret
Function at 0x180054ed0
Capabilities:
Resume thread

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x30
xor edi, edi
mov esi, ecx
mov ecx, dword [0x18010effc]
mov ebx, edi
test ecx, ecx
je 0x18005500b
mov rax, qword [0x18010eff0]
add rax, 0x20
nop
movzx edx, byte [rax]
shr edx, 1
and edx, 1
cmp edx, esi
jne 0x180054f28
inc ebx
add rax, 0x38
cmp ebx, ecx
jb 0x180054f00
mov eax, edi
mov rbx, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
add rsp, 0x30
pop rdi
ret
cmp ebx, 0xffffffff
je 0x18005500b
mov r8d, edi
lea rcx, [rsp + 0x20]
test esi, esi
mov edx, 0xffffffff
setne r8b
call fcn.180055250
mov r8d, dword [0x18010effc]
cmp ebx, r8d
jae 0x180054f98
nop word [rax + rax]
mov eax, ebx
imul rcx, rax, 0x38
mov rax, qword [0x18010eff0]
movzx edx, byte [rcx + rax + 0x20]
shr edx, 1
and edx, 1
cmp edx, esi
je 0x180054f91
mov edx, esi
mov ecx, ebx
call fcn.180055140
mov edi, eax
test eax, eax
jne 0x180054f98
mov r8d, dword [0x18010effc]
inc ebx
cmp ebx, r8d
jb 0x180054f60
cmp qword [rsp + 0x20], 0
je 0x18005500b
mov eax, dword [rsp + 0x2c]
test eax, eax
je 0x180054ff7
mov rbx, qword [rsp + 0x20]
mov qword [rsp + 0x40], rbp
mov ebp, eax
nop dword [rax]
nop dword [rax + rax]
mov r8d, dword [rbx]
xor edx, edx
lea ecx, [rdx + 0x5a]
call qword [sym.imp.KERNEL32.dll_OpenThread]
mov rsi, rax
test rax, rax
je 0x180054fe8
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_ResumeThread]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
add rbx, 4
sub rbp, 1
jne 0x180054fc0
mov rbp, qword [rsp + 0x40]
mov r8, qword [rsp + 0x20]
xor edx, edx
mov rcx, qword [0x18010efe8]
call qword [sym.imp.KERNEL32.dll_HeapFree]
mov rbx, qword [rsp + 0x48]
mov eax, edi
mov rsi, qword [rsp + 0x50]
add rsp, 0x30
pop rdi
ret
Function at 0x180055140
Capabilities:
Allocate or change rwx memory

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x20
mov eax, ecx
lea r9, [rsp + 0x30]
imul rbx, rax, 0x38
mov esi, edx
add rbx, qword [0x18010eff0]
mov r8, qword [rbx]
movzx eax, byte [rbx + 0x20]
and al, 1
movzx ecx, al
lea rdi, [r8 - 5]
cmove rdi, r8
mov r8d, 0x40
lea rbp, [rcx*2 + 5]
mov rcx, rdi
mov rdx, rbp
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x1800551a4
mov eax, 0xa
jmp 0x180055233
test esi, esi
je 0x1800551c6
mov byte [rdi], 0xe9
mov eax, dword [rbx + 8]
sub eax, edi
sub eax, 5
mov dword [rdi + 1], eax
test byte [rbx + 0x20], 1
je 0x1800551e9
mov rax, qword [rbx]
mov word [rax], 0xf9eb
jmp 0x1800551e9
mov eax, dword [rbx + 0x18]
test byte [rbx + 0x20], 1
mov dword [rdi], eax
je 0x1800551e2
movzx eax, word [rbx + 0x1c]
mov word [rdi + 4], ax
movzx eax, byte [rbx + 0x1e]
mov byte [rdi + 6], al
jmp 0x1800551e9
movzx eax, byte [rbx + 0x1c]
mov byte [rdi + 4], al
mov r8d, dword [rsp + 0x30]
lea r9, [rsp + 0x30]
mov rdx, rbp
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov r8, rbp
mov rdx, rdi
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_FlushInstructionCache]
and byte [rbx + 0x20], 0xfd
and sil, 1
movzx eax, sil
shl sil, 2
add al, al
or al, byte [rbx + 0x20]
and al, 0xfb
or al, sil
mov byte [rbx + 0x20], al
xor eax, eax
mov rbx, qword [rsp + 0x38]
mov rbp, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
add rsp, 0x20
pop rdi
ret