joyce8/EMBER2024-capa huggingface dataset:
Function at 0x14116c058
Capabilities:
Decompress data using aplib

Disassembly:
call fcn.14116c1df
push r10
mov r10, rsp
push r10
mov rsi, qword [r10 + 0x10]
mov rdi, qword [r10 + 0x20]
cld
mov dl, 0x80
mov al, byte [rsi]
inc rsi
mov byte [rdi], al
inc rdi
mov ebx, 2
add dl, dl
jne 0x14116c089
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x14116c06f
add dl, dl
jne 0x14116c096
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x14116c0f6
xor eax, eax
add dl, dl
jne 0x14116c0a5
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x14116c1ad
add dl, dl
jne 0x14116c0b6
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x14116c0c3
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x14116c0d0
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x14116c0dd
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
je 0x14116c0ea
push rdi
mov eax, eax
sub rdi, rax
mov al, byte [rdi]
pop rdi
mov byte [rdi], al
inc rdi
mov ebx, 2
jmp 0x14116c07e
mov eax, 1
add dl, dl
jne 0x14116c106
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x14116c113
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x14116c0fb
sub eax, ebx
mov ebx, 1
jne 0x14116c14c
mov ecx, 1
add dl, dl
jne 0x14116c12e
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x14116c13b
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x14116c123
push rsi
mov rsi, rdi
sub rsi, rbp
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x14116c07e
dec eax
shl eax, 8
mov al, byte [rsi]
inc rsi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0x14116c168
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x14116c175
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x14116c15d
cmp eax, 0x7d00
jae 0x14116c19b
cmp eax, 0x500
jb 0x14116c196
inc ecx
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x14116c07e
cmp eax, 0x7f
ja 0x14116c19e
add ecx, 2
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x14116c07e
mov al, byte [rsi]
inc rsi
xor ecx, ecx
shr al, 1
je 0x14116c1d2
adc ecx, 2
mov ebp, eax
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
mov ebx, 1
jmp 0x14116c07e
pop r10
sub rdi, qword [r10 + 0x20]
mov eax, edi
pop r10
ret 0x20
Function at 0x140003100
Capabilities:
Enumerate process modules

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x3b0
mov rax, qword [0x140061040]
xor rax, rsp
mov qword [rsp + 0x3a0], rax
xor edx, edx
lea ecx, [rdx + 2]
call qword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov dword [rsp + 0x270], 0x130
lea rbp, str.Minecraft.Windows.exe
mov rbx, rax
nop dword [rax]
lea rcx, [rsp + 0x29c]
mov r9, rbp
sub r9, rcx
nop
movzx r8d, byte [rcx]
movzx edx, byte [rcx + r9]
sub r8d, edx
jne 0x140003175
inc rcx
test edx, edx
jne 0x140003160
mov rcx, rbx
test r8d, r8d
je 0x140003195
lea rdx, [rsp + 0x270]
call qword [sym.imp.KERNEL32.dll_Process32Next]
test eax, eax
jne 0x140003150
mov edi, dword [rsp + 0x20]
jmp 0x1400031a2
mov edi, dword [rsp + 0x278]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
xor esi, esi
mov dword [0x140062d40], edi
mov edx, edi
lea ecx, [rsi + 8]
call qword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
xor edx, edx
lea rcx, [rsp + 0x34]
mov r8d, 0x234
mov rbx, rax
call sub.VCRUNTIME140.dll_memset
lea rdx, [rsp + 0x30]
mov dword [rsp + 0x30], 0x238
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_Module32First]
test eax, eax
je 0x14000321b
nop dword [rax]
nop dword [rax + rax]
mov rdx, rbp
lea rcx, [rsp + 0x60]
call qword [sym.imp.api_ms_win_crt_multibyte_l1_1_0.dll__mbscmp]
test eax, eax
je 0x140003216
lea rdx, [rsp + 0x30]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_Module32Next]
test eax, eax
jne 0x1400031f0
jmp 0x14000321b
mov rsi, qword [rsp + 0x48]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov r8d, dword [0x140062d40]
mov edx, 1
mov ecx, 0x1fffff
mov qword [0x140062d30], rsi
call qword [sym.imp.KERNEL32.dll_OpenProcess]
mov qword [0x140062d38], rax
mov rcx, qword [rsp + 0x3a0]
xor rcx, rsp
call fcn.140044cc0
lea r11, [rsp + 0x3b0]
mov rbx, qword [r11 + 0x10]
mov rbp, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
mov rsp, r11
pop rdi
ret
Function at 0x140004e90
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 0x140004eed
lea rbx, [0x140048b80]
movzx r8d, byte [r9]
lea r9, [r9 + 1]
dec r10
cmp r8b, 0x23
jne 0x140004ed4
cmp r10, 2
jb 0x140004ed4
cmp byte [r9], r8b
jne 0x140004ed4
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 0x140004eb0
not eax
mov rbx, qword [rsp + 8]
ret
movzx r8d, byte [rcx]
inc r9
test r8b, r8b
je 0x140004f2f
lea rbx, [0x140048b80]
cmp r8b, 0x23
jne 0x140004f13
cmp byte [r9], r8b
jne 0x140004f13
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 0x140004f00
mov rbx, qword [rsp + 8]
not eax
ret

Function at 0x140005070
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 0x18], rbx
push r14
sub rsp, 0x20
mov r14, r8
test r8, r8
je 0x14000508a
mov qword [r8], 0
lea rdx, [0x140055a90]
call fcn.140004f40
mov rbx, rax
test rax, rax
jne 0x1400050aa
mov rbx, qword [rsp + 0x40]
add rsp, 0x20
pop r14
ret
mov qword [rsp + 0x30], rsi
mov rcx, rbx
mov qword [rsp + 0x38], rdi
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_ftell]
mov esi, eax
cmp eax, 0xffffffff
je 0x140005181
xor edx, edx
mov rcx, rbx
lea r8d, [rdx + 2]
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fseek]
test eax, eax
jne 0x140005181
mov rcx, rbx
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_ftell]
movsxd rdi, eax
cmp edi, 0xffffffff
je 0x140005181
xor r8d, r8d
mov edx, esi
mov rcx, rbx
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fseek]
test eax, eax
jne 0x140005181
cmp rdi, 0xffffffffffffffff
je 0x140005181
mov rax, qword [0x140062d68]
test rax, rax
je 0x14000511e
inc dword [rax + 0x3b4]
mov rcx, rdi
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
mov rsi, rax
test rax, rax
je 0x140005181
mov r9, rbx
mov r8, rdi
mov edx, 1
mov rcx, rax
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
mov rcx, rbx
cmp rax, rdi
je 0x14000516e
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
mov rax, qword [0x140062d68]
test rax, rax
je 0x140005163
dec dword [rax + 0x3b4]
mov rcx, rsi
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
jmp 0x14000518a
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
test r14, r14
je 0x14000517c
mov qword [r14], rdi
mov rax, rsi
jmp 0x14000518c
mov rcx, rbx
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
xor eax, eax
mov rsi, qword [rsp + 0x30]
mov rdi, qword [rsp + 0x38]
mov rbx, qword [rsp + 0x40]
add rsp, 0x20
pop r14
ret
Function at 0x140008e50
Capabilities:
Hash data with crc32

Disassembly:
mov qword [rsp + 0x10], rbx
push rdi
sub rsp, 0x70
xor eax, eax
lea r8, [0x1400559cd]
mov dword [rsp + 0x2c], eax
lea r11, [0x140048b80]
mov qword [rsp + 0x38], rax
mov r10d, 0xffffffff
mov qword [rsp + 0x60], rax
mov rbx, rcx
lea rax, str.Window
mov edx, r10d
mov qword [rsp + 0x20], rax
mov r9b, 0x57
cmp r9b, 0x23
jne 0x140008ea6
cmp byte [r8], r9b
jne 0x140008ea6
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 0x140008e93
mov ecx, dword [rbx + 0x3044]
lea rax, [0x140015810]
mov edi, dword [rbx + 0x3040]
not edx
mov qword [rsp + 0x30], rax
lea rax, [0x1400158a0]
mov qword [rsp + 0x40], rax
lea rax, [0x140015990]
mov qword [rsp + 0x48], rax
lea rax, [0x140015a70]
mov qword [rsp + 0x50], rax
lea rax, [0x140015bc0]
mov qword [rsp + 0x58], rax
mov dword [rsp + 0x28], edx
cmp edi, ecx
jne 0x140008fc6
inc edi
test ecx, ecx
je 0x140008f2a
mov eax, ecx
cdq
sub eax, edx
sar eax, 1
add eax, ecx
jmp 0x140008f2f
mov eax, 8
cmp eax, edi
cmovg edi, eax
cmp edi, ecx
jle 0x140008fc6
mov rax, qword [0x140062d68]
mov qword [rsp + 0x80], rsi
test rax, rax
je 0x140008f56
inc dword [rax + 0x3b4]
movsxd rax, edi
lea rcx, [rax + rax*8]
shl rcx, 3
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
mov rdx, qword [rbx + 0x3048]
mov rsi, rax
test rdx, rdx
je 0x140008fb1
movsxd rcx, dword [rbx + 0x3040]
lea r8, [rcx + rcx*8]
mov rcx, rax
shl r8, 3
call sub.VCRUNTIME140.dll_memcpy
mov rcx, qword [rbx + 0x3048]
test rcx, rcx
je 0x140008fab
mov rax, qword [0x140062d68]
test rax, rax
je 0x140008fab
dec dword [rax + 0x3b4]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov qword [rbx + 0x3048], rsi
mov rsi, qword [rsp + 0x80]
mov dword [rbx + 0x3044], edi
movsxd rax, dword [rbx + 0x3040]
movaps xmm0, xmmword [rsp + 0x20]
movaps xmm1, xmmword [rsp + 0x30]
lea rcx, [rax + rax*8]
mov rax, qword [rbx + 0x3048]
movups xmmword [rax + rcx*8], xmm0
movaps xmm0, xmmword [rsp + 0x40]
movups xmmword [rax + rcx*8 + 0x10], xmm1
movaps xmm1, xmmword [rsp + 0x50]
movups xmmword [rax + rcx*8 + 0x20], xmm0
movsd xmm0, qword [rsp + 0x60]
movups xmmword [rax + rcx*8 + 0x30], xmm1
movsd qword [rax + rcx*8 + 0x40], xmm0
inc dword [rbx + 0x3040]
mov byte [rbx], 1
mov rbx, qword [rsp + 0x88]
add rsp, 0x70
pop rdi
ret
Function at 0x140010c90
Capabilities:
Hash data with crc32

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x40
mov rax, qword [0x140061040]
xor rax, rsp
mov qword [rsp + 0x30], rax
mov rbx, qword [0x140062d68]
mov edi, edx
cmp byte [rbx + 0x1fad], 0
jne 0x140010cf0
cmp byte [rbx + 0x1fae], 0
jne 0x140010cf0
mov r9d, dword [rbx + 0x2ff0]
lea r8, str.Tooltip__02d
mov edx, 0x10
lea rcx, [rsp + 0x20]
call fcn.140004e10
test dil, 1
je 0x140010e11
jmp 0x140010d78
movss xmm1, dword [rbx + 0x160c]
lea r8, str.Tooltip__02d
mov r9d, dword [rbx + 0x2ff0]
lea rcx, [rsp + 0x20]
movaps xmm0, xmm1
xor eax, eax
mulss xmm0, dword [0x140056a20]
mulss xmm1, dword [0x140056a10]
lea edx, [rax + 0x10]
addss xmm0, dword [rbx + 0x128]
addss xmm1, dword [rbx + 0x12c]
mov qword [rbx + 0x1b48], rax
mov dword [rbx + 0x1b34], 1
movss dword [rbx + 0x1b40], xmm0
movss dword [rbx + 0x1b44], xmm1
movss xmm0, dword [rbx + 0x1668]
mulss xmm0, dword [0x140056948]
or dword [rbx + 0x1b30], 0x41
movss dword [rbx + 0x1b90], xmm0
call fcn.140004e10
movzx r9d, byte [rsp + 0x20]
lea r8, [rsp + 0x21]
mov r10d, 0xffffffff
mov ecx, r10d
test r9b, r9b
je 0x140010dc8
lea r11, [0x140048b80]
cmp r9b, 0x23
jne 0x140010dab
cmp byte [r8], r9b
jne 0x140010dab
cmp byte [r8 + 1], r9b
cmove ecx, r10d
movzx edx, cl
movzx eax, r9b
movzx r9d, byte [r8]
xor rdx, rax
shr ecx, 8
inc r8
xor ecx, dword [r11 + rdx*4]
test r9b, r9b
jne 0x140010d98
not ecx
call fcn.14000ab80
test rax, rax
je 0x140010e11
cmp byte [rax + 0x86], 0
je 0x140010e11
mov byte [rax + 0x8d], 1
lea r8, str.Tooltip__02d
mov dword [rax + 0xa4], 1
lea rcx, [rsp + 0x20]
inc dword [rbx + 0x2ff0]
mov edx, 0x10
mov r9d, dword [rbx + 0x2ff0]
call fcn.140004e10
xor edx, edx
lea rcx, [rsp + 0x20]
mov r8d, 0x20c0347
call fcn.14000d170
mov rcx, qword [rsp + 0x30]
xor rcx, rsp
call fcn.140044cc0
mov rbx, qword [rsp + 0x50]
add rsp, 0x40
pop rdi
ret
Function at 0x140015030
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 [0x140062d68]
cmp byte [rbx + 0x3070], 0
je 0x14001511c
cmp qword [rbx + 0x3078], 0
mov qword [rax - 0x18], rsi
lea rsi, [rax + 0x10]
mov qword [rax - 0x20], rdi
lea rdi, [rbx + 0x3080]
je 0x140015104
mov r9d, dword [rdi + 4]
mov qword [rax - 0x10], rbp
xor ebp, ebp
test r9d, r9d
jns 0x1400150ab
mov eax, r9d
mov rcx, rdi
cdq
sub eax, edx
mov edx, ebp
sar eax, 1
add eax, r9d
test eax, eax
cmovg edx, eax
call fcn.140016a20
mov rcx, qword [rsp + 0x50]
mov rdx, rcx
mov dword [rdi], ebp
mov rcx, rdi
mov r8, rsi
call fcn.140005440
mov eax, dword [rdi]
mov edx, 1
mov r9, qword [rbx + 0x3078]
test eax, eax
lea ecx, [rax - 1]
mov rax, qword [rbx + 0x3088]
cmove ecx, ebp
test rax, rax
movsxd r8, ecx
lea rcx, [0x140062d45]
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.140005440
mov rsi, qword [rsp + 0x30]
mov rdi, qword [rsp + 0x28]
add rsp, 0x40
pop rbx
ret
Function at 0x1400211f0
Capabilities:
Resolve function by parsing pe exports

Disassembly:
test r9d, 0xff000000
je 0x140021381
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 0x140021260
mov eax, dword [rsp + 0x78]
mov dword [rsp + 0x20], eax
call fcn.140020bb0
mov r8d, dword [rbx + 0x80]
mov r9d, edi
mov rdx, qword [rbx + 0x88]
mov rcx, rbx
call fcn.140020210
mov dword [rbx + 0x80], 0
jmp 0x14002136d
mov edx, 6
movaps xmmword [rsp + 0x30], xmm6
lea r8d, [rdx - 2]
call fcn.14001eee0
movzx edx, word [rbx + 0x48]
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 + 0x48], 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 0x140027f30
Capabilities:
Log keystrokes via polling

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x50
mov rax, qword [0x140061040]
xor rax, rsp
mov qword [rsp + 0x48], rax
mov rcx, qword [0x140063010]
lea rdx, [rsp + 0x28]
mov rdi, qword [0x140062d68]
call qword [sym.imp.USER32.dll_GetClientRect]
mov eax, dword [rsp + 0x30]
lea rcx, [rsp + 0x40]
sub eax, dword [rsp + 0x28]
movd xmm1, eax
mov eax, dword [rsp + 0x34]
sub eax, dword [rsp + 0x2c]
cvtdq2ps xmm1, xmm1
movd xmm0, eax
cvtdq2ps xmm0, xmm0
movss dword [rdi + 0x10], xmm1
movss dword [rdi + 0x14], xmm0
call qword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
mov rcx, qword [rsp + 0x40]
xorps xmm1, xmm1
mov rax, rcx
xorps xmm0, xmm0
sub rax, qword [0x140063018]
cvtsi2ss xmm0, qword [0x140063020]
cvtsi2ss xmm1, rax
divss xmm1, xmm0
movss dword [rdi + 0x18], xmm1
mov qword [0x140063018], rcx
mov ecx, 0x11
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]
mov rcx, qword [0x140062d68]
shr eax, 0xf
and al, 1
mov byte [rdi + 0x143], 0
mov byte [rdi + 0x142], al
cmp byte [rcx + 0x39b], 0
lea rbx, [rcx + 0x128]
je 0x14002805c
cvttss2si eax, dword [rbx]
lea rdx, [rsp + 0x38]
mov dword [rsp + 0x38], eax
cvttss2si eax, dword [rcx + 0x12c]
mov rcx, qword [0x140063010]
mov dword [rsp + 0x3c], eax
call qword [sym.imp.USER32.dll_ClientToScreen]
mov edx, dword [rsp + 0x3c]
mov ecx, dword [rsp + 0x38]
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 0x1400280cd
mov rdx, qword [0x140063010]
cmp rax, rdx
je 0x14002808d
mov rcx, rax
call qword [sym.imp.USER32.dll_IsChild]
test eax, eax
je 0x1400280cd
lea rcx, [rsp + 0x20]
call qword [sym.imp.USER32.dll_GetCursorPos]
test eax, eax
je 0x1400280cd
mov rcx, qword [0x140063010]
lea rdx, [rsp + 0x20]
call qword [sym.imp.USER32.dll_ScreenToClient]
test eax, eax
je 0x1400280cd
movd xmm0, dword [rsp + 0x20]
movd xmm1, dword [rsp + 0x24]
cvtdq2ps xmm0, xmm0
cvtdq2ps xmm1, xmm1
movss dword [rbx], xmm0
movss dword [rbx + 4], xmm1
cmp byte [rdi + 0xc8], 0
je 0x1400280dd
mov eax, 0xffffffff
jmp 0x1400280ea
mov rax, qword [0x140062d68]
mov eax, dword [rax + 0x1fa8]
cmp dword [0x140061364], eax
je 0x1400280fd
mov dword [0x140061364], eax
call fcn.140027b00
call fcn.140027c80
mov rcx, qword [rsp + 0x48]
xor rcx, rsp
call fcn.140044cc0
mov rbx, qword [rsp + 0x60]
add rsp, 0x50
pop rdi
ret
Function at 0x1400378c0
Capabilities:
Log keystrokes via polling

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x40
mov edi, ecx
mov dword [rsp + 0x58], 0
cmp byte [0x140062d91], 0
jne 0x1400379b3
test ecx, ecx
jne 0x14003791e
mov dword [rsp + 0x58], 0x42fe0000
mov dword [rsp + 0x5c], 0x420c0000
lea rdx, [rsp + 0x58]
lea rcx, str.Unbound
call fcn.140029600
test al, al
je 0x140037911
mov byte [0x140062d91], 1
mov eax, edi
mov rbx, qword [rsp + 0x50]
add rsp, 0x40
pop rdi
ret
mov dword [rsp + 0x60], 0x42fe0000
mov dword [rsp + 0x64], 0x420c0000
xorps xmm0, xmm0
movups xmmword [rsp + 0x20], xmm0
mov qword [rsp + 0x38], 0xf
mov dword [rsp + 0x58], 1
mov qword [rsp + 0x30], 1
mov byte [rsp + 0x20], dil
mov byte [rsp + 0x21], 0
lea rdx, [rsp + 0x60]
lea rcx, [rsp + 0x20]
call fcn.140029600
movzx ebx, al
mov rdx, qword [rsp + 0x38]
cmp rdx, 0xf
jbe 0x1400379ac
inc rdx
mov rcx, qword [rsp + 0x20]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400379a7
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x1400379a7
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.140044f5c
test bl, bl
jmp 0x140037908
mov dword [rsp + 0x58], 0x42fe0000
mov dword [rsp + 0x5c], 0x420c0000
lea rdx, [rsp + 0x58]
lea rcx, str.Waiting_for_key...
call fcn.140029600
mov ecx, 1
call qword [sym.imp.USER32.dll_GetAsyncKeyState]
test ax, ax
jne 0x140037911
mov ecx, 2
call qword [sym.imp.USER32.dll_GetAsyncKeyState]
test ax, ax
jne 0x140037911
mov ebx, 8
mov ecx, ebx
call qword [sym.imp.USER32.dll_GetAsyncKeyState]
test ax, ax
js 0x140037a25
inc ebx
cmp ebx, 0xbe
jle 0x140037a01
mov eax, edi
mov rbx, qword [rsp + 0x50]
add rsp, 0x40
pop rdi
ret
mov byte [0x140062d91], 0
mov edx, ebx
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cout]
call qword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______ptr64___cdecl_std::basic_ostream_char__struct_std::char_traits_char__::operator___int____ptr64]
lea rdx, [0x140002b80]
mov rcx, rax
call qword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______ptr64___cdecl_std::basic_ostream_char__struct_std::char_traits_char__::operator___class_std::basic_ostream_char__struct_std::char_traits_char______ptr64____cdecl___class_std::basic_ostream_char__struct_std::char_traits_char______ptr64_____ptr64]
cmp ebx, 8
jne 0x140037a5d
xor eax, eax
mov rbx, qword [rsp + 0x50]
add rsp, 0x40
pop rdi
ret
mov byte [0x140062d90], 1
mov eax, ebx
mov rbx, qword [rsp + 0x50]
add rsp, 0x40
pop rdi
ret
Function at 0x140042e40
Capabilities:
Allocate or change rwx memory

Disassembly:
mov qword [rsp + 0x10], rbx
push rdi
sub rsp, 0x50
mov rax, qword [0x140061040]
xor rax, rsp
mov qword [rsp + 0x40], rax
mov rbx, qword [0x140062d38]
lea rax, [rsp + 0x30]
mov rdi, rcx
movss dword [rsp + 0x38], xmm2
mov rdx, rcx
mov dword [rsp + 0x30], 0
mov rcx, rbx
mov qword [rsp + 0x20], rax
mov r9d, 0x40
mov r8d, 0x100
call qword [sym.imp.KERNEL32.dll_VirtualProtectEx]
mov r9d, 4
mov qword [rsp + 0x20], 0
lea r8, [rsp + 0x38]
mov rdx, rdi
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_WriteProcessMemory]
xor r9d, r9d
mov qword [rsp + 0x20], 0
mov r8d, 0x100
mov rdx, rdi
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_VirtualProtectEx]
mov rcx, qword [rsp + 0x40]
xor rcx, rsp
call fcn.140044cc0
mov rbx, qword [rsp + 0x68]
add rsp, 0x50
pop rdi
ret
Function at 0x140043b50
Capabilities:
Write file on windows

Disassembly:
push rbx
push rdi
push r15
sub rsp, 0x20
cmp qword [rcx + 0x68], 0
mov rbx, r8
mov r15, rdx
mov rdi, rcx
je 0x140043b78
add rsp, 0x20
pop r15
pop rdi
pop rbx
jmp qword [sym.imp.MSVCP140.dll_protected_virtual:_long_long___int64____cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::xsputn_char_const____ptr64__long_long___int64_____ptr64]
mov rax, qword [rcx + 0x40]
mov qword [rsp + 0x40], rbp
mov qword [rsp + 0x48], rsi
mov rsi, rbx
mov qword [rsp + 0x58], r14
mov r9, qword [rax]
test r9, r9
je 0x140043b9e
mov rax, qword [rcx + 0x58]
mov ecx, dword [rax]
jmp 0x140043ba0
xor ecx, ecx
movsxd rbp, ecx
test rbx, rbx
jle 0x140043bf9
test ecx, ecx
jle 0x140043bd9
cmp rbx, rbp
mov rcx, r9
cmovl rbp, rbx
mov r8, rbp
call sub.VCRUNTIME140.dll_memcpy
mov rax, qword [rdi + 0x58]
add r15, rbp
sub rbx, rbp
sub dword [rax], ebp
mov rcx, qword [rdi + 0x40]
movsxd rax, ebp
add qword [rcx], rax
test rbx, rbx
jle 0x140043bf9
mov r9, qword [rdi + 0x80]
test r9, r9
je 0x140043bf9
mov r8, rbx
mov edx, 1
mov rcx, r15
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
sub rbx, rax
mov r14, qword [rsp + 0x58]
sub rsi, rbx
mov rbp, qword [rsp + 0x40]
mov rax, rsi
mov rsi, qword [rsp + 0x48]
add rsp, 0x20
pop r15
pop rdi
pop rbx
ret

Function at 0x140043c20
Capabilities:
Read file on windows

Disassembly:
push rbp
push rsi
push r14
sub rsp, 0x30
mov rbp, r8
mov r14, rdx
mov rsi, rcx
test r8, r8
jg 0x140043c42
xor eax, eax
add rsp, 0x30
pop r14
pop rsi
pop rbp
ret
cmp qword [rcx + 0x68], 0
je 0x140043c58
add rsp, 0x30
pop r14
pop rsi
pop rbp
jmp qword [sym.imp.MSVCP140.dll_protected_virtual:_long_long___int64____cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::xsgetn_char____ptr64__long_long___int64_____ptr64]
mov rax, qword [rcx + 0x38]
mov qword [rsp + 0x28], rbx
mov rbx, rbp
mov rdx, qword [rax]
test rdx, rdx
je 0x140043c74
mov rax, qword [rcx + 0x50]
mov ecx, dword [rax]
jmp 0x140043c76
xor ecx, ecx
movsxd rax, ecx
test ecx, ecx
je 0x140043cb2
mov qword [rsp + 0x20], rdi
cmp rax, rbp
mov rdi, rbp
mov rcx, r14
cmovb rdi, rax
mov r8, rdi
call sub.VCRUNTIME140.dll_memcpy
mov rax, qword [rsi + 0x50]
add r14, rdi
sub rbx, rdi
sub dword [rax], edi
mov rcx, qword [rsi + 0x38]
movsxd rax, edi
mov rdi, qword [rsp + 0x20]
add qword [rcx], rax
cmp qword [rsi + 0x80], 0
je 0x140043d4e
mov r8, qword [rsi + 0x18]
lea rax, [rsi + 0x70]
cmp qword [r8], rax
jne 0x140043ced
mov rcx, qword [rsi + 0x88]
mov rdx, qword [rsi + 0x90]
mov qword [r8], rcx
sub edx, ecx
mov rax, qword [rsi + 0x38]
mov qword [rax], rcx
mov rax, qword [rsi + 0x50]
mov dword [rax], edx
cmp rbx, 0xfff
jbe 0x140043d2e
nop word [rax + rax]
mov r9, qword [rsi + 0x80]
mov edx, 1
mov r8d, 0xfff
mov rcx, r14
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
add r14, rax
sub rbx, rax
cmp rax, 0xfff
jne 0x140043d4e
cmp rbx, rax
ja 0x140043d00
test rbx, rbx
je 0x140043d4e
mov r9, qword [rsi + 0x80]
mov r8, rbx
mov edx, 1
mov rcx, r14
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
sub rbx, rax
sub rbp, rbx
mov rbx, qword [rsp + 0x28]
mov rax, rbp
add rsp, 0x30
pop r14
pop rsi
pop rbp
ret