joyce8/EMBER2024-capa huggingface dataset:
Function at 0x14003eb10
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 [0x1400f9520]
cmp byte [rbx + 0x3000], 0
je 0x14003ebfc
cmp qword [rbx + 0x3008], 0
mov qword [rax - 0x18], rsi
lea rsi, [rax + 0x10]
mov qword [rax - 0x20], rdi
lea rdi, [rbx + 0x3010]
je 0x14003ebe4
mov r9d, dword [rdi + 4]
mov qword [rax - 0x10], rbp
xor ebp, ebp
test r9d, r9d
jns 0x14003eb8b
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.14004ada0
mov rcx, qword [rsp + 0x50]
mov rdx, rcx
mov dword [rdi], ebp
mov rcx, rdi
mov r8, rsi
call fcn.14002ab40
mov eax, dword [rdi]
mov edx, 1
mov r9, qword [rbx + 0x3008]
test eax, eax
lea ecx, [rax - 1]
mov rax, qword [rbx + 0x3018]
cmove ecx, ebp
test rax, rax
movsxd r8, ecx
lea rcx, [0x1400f9518]
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.14002ab40
mov rsi, qword [rsp + 0x30]
mov rdi, qword [rsp + 0x28]
add rsp, 0x40
pop rbx
ret

Function at 0x14003ee80
Capabilities:
Hash data with crc32

Disassembly:
push rbx
movzx r9d, byte [rcx]
lea r8, [rcx + 1]
mov r10d, 0xffffffff
mov rbx, rcx
mov eax, r10d
test r9b, r9b
je 0x14003eed2
lea r11, [0x1400ab8b0]
cmp r9b, 0x23
jne 0x14003eeb5
cmp byte [r8], r9b
jne 0x14003eeb5
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 0x14003eea2
mov r11, qword [0x1400f9520]
mov r10, qword [r11 + 0x2fe8]
test r10, r10
je 0x14003ef19
lea r9, [r10 + 4]
test r9, r9
je 0x14003ef19
not eax
cmp dword [r9], eax
je 0x14003ef22
movsxd r8, dword [r9 - 4]
movsxd rdx, dword [r11 + 0x2fe0]
add r8, r9
add rdx, 4
xor r9d, r9d
add rdx, r10
cmp r8, rdx
cmovne r9, r8
test r9, r9
jne 0x14003eef0
mov rcx, rbx
pop rbx
jmp fcn.14003ed90
mov rax, r9
pop rbx
ret
Function at 0x1400425b0
Capabilities:
Hash data with crc32

Disassembly:
test r8d, r8d
jle 0x1400427eb
mov r11, rsp
push rbp
push rsi
sub rsp, 0x58
mov rax, qword [0x1400f8010]
xor rax, rsp
mov qword [rsp + 0x38], rax
mov qword [r11 - 0x18], rdi
mov rbp, rcx
mov qword [r11 - 0x20], r14
lea rdi, [rdx + 0x1a]
mov qword [r11 - 0x28], r15
mov r14d, 0xffffffff
lea r15, [0x1400ab8b0]
mov qword [r11 + 0x18], rbx
movsxd rsi, r8d
nop dword [rax + rax]
mov edx, dword [rdi - 0x1a]
test edx, edx
je 0x1400427b3
mov rcx, rbp
call fcn.140041c40
mov r9d, dword [rdi - 0x16]
mov rbx, rax
test r9d, r9d
je 0x140042681
movsxd rdx, dword [rbp + 0x2f80]
mov r8, qword [rbp + 0x2f88]
mov r10, rdx
shl r10, 4
add r10, r8
test rdx, rdx
je 0x140042671
nop dword [rax]
mov rcx, rdx
shr rcx, 1
mov rax, rcx
add rax, rax
cmp dword [r8 + rax*8], r9d
jae 0x140042669
lea r8, [r8 + rax*8]
mov rax, 0xffffffffffffffff
sub rax, rcx
add r8, 0x10
add rdx, rax
jmp 0x14004266c
mov rdx, rcx
test rdx, rdx
jne 0x140042640
cmp r8, r10
je 0x140042681
cmp dword [r8], r9d
jne 0x140042681
mov rcx, qword [r8 + 8]
jmp 0x140042683
xor ecx, ecx
mov qword [rbx + 0x10], rcx
movsx eax, word [rdi - 2]
movd xmm1, eax
movsx eax, word [rdi]
cvtdq2ps xmm1, xmm1
movd xmm0, eax
movss dword [rbx + 0x40], xmm1
cvtdq2ps xmm0, xmm0
movss dword [rbx + 0x44], xmm0
movsx eax, word [rdi + 2]
movd xmm1, eax
movsx eax, word [rdi + 4]
cvtdq2ps xmm1, xmm1
movd xmm0, eax
movss dword [rbx + 0x48], xmm1
cvtdq2ps xmm0, xmm0
movss dword [rbx + 0x4c], xmm0
movsx eax, word [rdi + 6]
movd xmm1, eax
movsx eax, word [rdi + 8]
cvtdq2ps xmm1, xmm1
movd xmm0, eax
mov eax, dword [rbx + 0xb0]
and eax, 0xfffffe49
movss dword [rbx + 0x50], xmm1
or eax, 0x49
mov dword [rbx + 0xb0], eax
cvtdq2ps xmm0, xmm0
movss dword [rbx + 0x54], xmm0
test rcx, rcx
je 0x140042717
cmp qword [rcx + 0x18], 0
jne 0x14004270c
mov qword [rcx + 0x18], rbx
jmp 0x140042717
cmp qword [rcx + 0x20], 0
jne 0x140042717
mov qword [rcx + 0x20], rbx
mov eax, dword [rdi - 0xe]
mov r9, rbx
mov dword [rbx + 0xa8], eax
movsx eax, byte [rdi - 0xa]
mov dword [rbx + 0x58], eax
mov eax, dword [rdi - 6]
and eax, 0x61fc20
or dword [rbx + 8], eax
mov rax, qword [rbx + 0x10]
test rax, rax
je 0x14004274c
nop
mov r9, rax
mov rax, qword [rax + 0x10]
test rax, rax
jne 0x140042740
mov r9d, dword [r9]
lea r8, str.DockNode__02X
mov edx, 0x14
lea rcx, [rsp + 0x20]
call fcn.140029e90
movzx r9d, byte [rsp + 0x20]
lea r8, [rsp + 0x21]
mov ecx, r14d
test r9b, r9b
je 0x1400427a8
cmp r9b, 0x23
jne 0x14004278b
cmp byte [r8], r9b
jne 0x14004278b
cmp byte [r8 + 1], r9b
cmove ecx, r14d
movzx edx, cl
movzx eax, r9b
movzx r9d, byte [r8]
xor rdx, rax
shr ecx, 8
inc r8
xor ecx, dword [r15 + rdx*4]
test r9b, r9b
jne 0x140042778
not ecx
call fcn.1400321f0
mov qword [rbx + 0x78], rax
add rdi, 0x24
sub rsi, 1
jne 0x140042600
mov r15, qword [rsp + 0x40]
mov r14, qword [rsp + 0x48]
mov rdi, qword [rsp + 0x50]
mov rbx, qword [rsp + 0x80]
mov rcx, qword [rsp + 0x38]
xor rcx, rsp
call fcn.140085ee0
add rsp, 0x58
pop rsi
pop rbp
ret
Function at 0x140079b70
Capabilities:
Log keystrokes via polling

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x50
mov rdi, rcx
mov ecx, 4
mov rax, qword gs:[0x58]
mov rax, qword [rax]
lea rsi, [0x1400f96c0]
mov eax, dword [rcx + rax]
cmp dword [0x1400f9684], eax
jle 0x140079bfd
lea rcx, [0x1400f9684]
call fcn.140086168
cmp dword [0x1400f9684], 0xffffffff
jne 0x140079bfd
xorps xmm0, xmm0
movups xmmword [0x1400f96c0], xmm0
xorps xmm1, xmm1
movdqu xmmword [0x1400f96d0], xmm1
mov r8d, 7
lea rdx, str.keybind
mov rcx, rsi
call fcn.14001fd30
lea rcx, [0x140089a40]
call fcn.140086418
nop
lea rcx, [0x1400f9684]
call fcn.1400860fc
cmp byte [0x1400f963d], 0
jne 0x140079d02
mov edx, dword [rdi]
cmp edx, 0x270f
jne 0x140079c2e
mov r8d, 7
lea rdx, str.keybind
mov rcx, rsi
call fcn.140025f30
jmp 0x140079d93
lea rcx, [rsp + 0x28]
call fcn.140077950
mov rdi, rax
cmp rsi, rax
je 0x140079cb9
mov rdx, qword [0x1400f96d8]
cmp rdx, 0x10
jb 0x140079c7d
inc rdx
mov rcx, qword [0x1400f96c0]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140079c78
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140079cf1
call fcn.14008600c
movdqa xmm0, xmmword [0x1400e8300]
movdqu xmmword [0x1400f96d0], xmm0
mov byte [0x1400f96c0], 0
movups xmm0, xmmword [rdi]
movups xmmword [0x1400f96c0], xmm0
movups xmm1, xmmword [rdi + 0x10]
movups xmmword [0x1400f96d0], xmm1
xor ebx, ebx
mov qword [rdi + 0x10], rbx
mov qword [rdi + 0x18], 0xf
mov byte [rdi], bl
mov rdx, qword [rsp + 0x40]
cmp rdx, 0x10
jb 0x140079d93
inc rdx
mov rcx, qword [rsp + 0x28]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140079cf8
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140079cf8
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.14008600c
jmp 0x140079d93
cmp byte [0x1400f80cc], 1
jne 0x140079d27
mov r8d, 9
lea rdx, str.enter_key
mov rcx, rsi
call fcn.140025f30
mov byte [0x1400f80cc], 0
mov eax, dword [0x1400f9640]
inc eax
mov dword [0x1400f9640], eax
cmp eax, 0x14
je 0x140079d44
cmp eax, 0x28
je 0x140079d44
cmp eax, 0x3c
jne 0x140079d5f
mov r8d, 1
lea rdx, [0x1400e7734]
mov rcx, rsi
call fcn.140018340
mov eax, dword [0x1400f9640]
xor ebx, ebx
cmp eax, 0x4b
jne 0x140079d73
mov byte [0x1400f80cc], 1
mov dword [0x1400f9640], ebx
mov ecx, ebx
call qword [sym.imp.USER32.dll_GetAsyncKeyState]
test ax, ax
jns 0x140079d89
mov dword [rdi], ebx
mov byte [0x1400f963d], 0
inc ebx
cmp ebx, 0x100
jl 0x140079d73
mov dword [rsp + 0x20], 0x43070000
mov dword [rsp + 0x24], 0x42240000
cmp qword [0x1400f96d8], 0x10
cmovae rsi, qword [0x1400f96c0]
lea rdx, [rsp + 0x20]
mov rcx, rsi
call fcn.14005fea0
test al, al
je 0x140079dd2
mov byte [0x1400f963d], 1
mov byte [0x1400f80cc], 1
mov rbx, qword [rsp + 0x68]
mov rsi, qword [rsp + 0x70]
add rsp, 0x50
pop rdi
ret
Function at 0x140080b20
Capabilities:
Get graphical window text
Log keystrokes via polling

Disassembly:
push rbp
lea rbp, [rsp - 0x180]
sub rsp, 0x280
mov rax, qword [0x1400f8010]
xor rax, rsp
mov qword [rbp + 0x170], rax
mov ecx, dword [0x1400f80a0]
cmp ecx, 0x270f
je 0x140080b6c
call qword [sym.imp.USER32.dll_GetAsyncKeyState]
test al, 1
je 0x140080b6c
cmp byte [0x1400f964f], 0
sete al
mov byte [0x1400f964f], al
jmp 0x140080b73
movzx eax, byte [0x1400f964f]
mov qword [rsp + 0x290], rbx
test al, al
je 0x140080ce1
mov qword [rsp + 0x298], rsi
mov qword [rsp + 0x2a0], rdi
mov byte [0x1400f9519], 1
call qword [sym.imp.USER32.dll_GetForegroundWindow]
mov r8d, 0x100
lea rdx, [rsp + 0x70]
mov rcx, rax
call qword [sym.imp.USER32.dll_GetWindowTextW]
xor ebx, ebx
lea rdx, str.Minecraft
xorps xmm0, xmm0
mov qword [rsp + 0x58], rbx
lea rcx, [rsp + 0x48]
mov qword [rsp + 0x60], rbx
movups xmmword [rsp + 0x48], xmm0
lea r8d, [rbx + 9]
call fcn.14001f910
lea rcx, [rsp + 0x70]
mov rax, 0xffffffffffffffff
nop dword [rax]
inc rax
cmp word [rcx + rax*2], bx
jne 0x140080bf0
mov rsi, qword [rsp + 0x60]
lea r8, [rsp + 0x48]
mov rdi, qword [rsp + 0x48]
cmp rsi, 8
mov rdx, qword [rsp + 0x58]
cmovae r8, rdi
cmp rdx, rax
jne 0x140080c73
lea rcx, [rsp + 0x70]
test rdx, rdx
je 0x140080c44
lea rax, [rsp + 0x70]
sub r8, rax
nop dword [rax]
movzx eax, word [r8 + rcx]
cmp ax, word [rcx]
jne 0x140080c73
add rcx, 2
sub rdx, 1
jne 0x140080c30
mov r8d, 0x28
mov dword [rsp + 0x20], 1
lea rdx, [rsp + 0x20]
mov qword [rsp + 0x28], 0x11
mov dword [rsp + 0x30], ebx
mov qword [rsp + 0x38], rbx
lea ecx, [r8 - 0x27]
call qword [sym.imp.USER32.dll_SendInput]
cmp rsi, 8
jb 0x140080cb1
lea rdx, [rsi*2 + 2]
mov rax, rdi
cmp rdx, 0x1000
jb 0x140080ca9
mov rdi, qword [rdi - 8]
add rdx, 0x27
sub rax, rdi
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140080ca9
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
mov rcx, rdi
call fcn.14008600c
mov rsi, qword [rsp + 0x298]
mov rdi, qword [rsp + 0x2a0]
mov rbx, qword [rsp + 0x290]
mov rcx, qword [rbp + 0x170]
xor rcx, rsp
call fcn.140085ee0
add rsp, 0x280
pop rbp
ret
cmp byte [0x1400f9519], 1
jne 0x140080cc1
xor ebx, ebx
mov dword [rsp + 0x20], 1
lea rdx, [rsp + 0x20]
mov dword [rsp + 0x28], 0x11
mov qword [rsp + 0x2c], 2
mov qword [rsp + 0x38], rbx
lea r8d, [rbx + 0x28]
lea ecx, [rbx + 1]
call qword [sym.imp.USER32.dll_SendInput]
mov byte [0x1400f9519], bl
jmp 0x140080cc1
Function at 0x140080d30
Capabilities:
Allocate or change rwx memory
Log keystrokes via polling

Disassembly:
push rdi
sub rsp, 0x40
mov rax, qword [0x1400f8010]
xor rax, rsp
mov qword [rsp + 0x38], rax
mov rdi, rcx
mov ecx, dword [0x1400f8054]
cmp ecx, 0x270f
je 0x140080d72
call qword [sym.imp.USER32.dll_GetAsyncKeyState]
test al, 1
je 0x140080d72
cmp byte [0x1400f963f], 0
sete al
mov byte [0x1400f963f], al
jmp 0x140080d79
movzx eax, byte [0x1400f963f]
mov qword [rsp + 0x58], rbx
test al, al
je 0x140080dff
mov rbx, qword [rdi + 0x10]
lea rax, [rsp + 0x30]
mov rcx, qword [rdi + 0x18]
mov r9d, 0x40
add rbx, 0x5fa05a8
mov qword [rsp + 0x20], rax
mov rdx, rbx
lea r8d, [r9 - 0x3c]
call qword [sym.imp.KERNEL32.dll_VirtualProtectEx]
mov rcx, qword [rdi + 0x18]
lea r8, [0x1400f80b0]
mov r9d, 4
mov qword [rsp + 0x20], 0
mov rdx, rbx
call qword [sym.imp.ntdll.dll_ZwWriteVirtualMemory]
mov r9d, dword [rsp + 0x30]
lea rax, [rsp + 0x30]
mov rcx, qword [rdi + 0x18]
mov r8d, 4
mov rdx, rbx
mov qword [rsp + 0x20], rax
call qword [sym.imp.KERNEL32.dll_VirtualProtectEx]
mov byte [0x1400f951a], 1
jmp 0x140080e86
cmp byte [0x1400f951a], 1
jne 0x140080e86
mov rbx, qword [rdi + 0x10]
lea rax, [rsp + 0x30]
mov rcx, qword [rdi + 0x18]
mov r9d, 0x40
add rbx, 0x5fa05a8
mov dword [rsp + 0x34], 0x40400000
mov rdx, rbx
mov qword [rsp + 0x20], rax
lea r8d, [r9 - 0x3c]
call qword [sym.imp.KERNEL32.dll_VirtualProtectEx]
mov rcx, qword [rdi + 0x18]
lea r8, [rsp + 0x34]
mov r9d, 4
mov qword [rsp + 0x20], 0
mov rdx, rbx
call qword [sym.imp.ntdll.dll_ZwWriteVirtualMemory]
mov r9d, dword [rsp + 0x30]
lea rax, [rsp + 0x30]
mov rcx, qword [rdi + 0x18]
mov r8d, 4
mov rdx, rbx
mov qword [rsp + 0x20], rax
call qword [sym.imp.KERNEL32.dll_VirtualProtectEx]
mov byte [0x1400f951a], 0
mov rbx, qword [rsp + 0x58]
mov rcx, qword [rsp + 0x38]
xor rcx, rsp
call fcn.140085ee0
add rsp, 0x40
pop rdi
ret
Function at 0x1400812f0
Capabilities:
Log keystrokes via polling

Disassembly:
push rbx
sub rsp, 0x40
mov rax, qword [0x1400f8010]
xor rax, rsp
mov qword [rsp + 0x38], rax
mov rbx, rcx
mov ecx, dword [0x1400f80a8]
cmp ecx, 0x270f
je 0x140081332
call qword [sym.imp.USER32.dll_GetAsyncKeyState]
test al, 1
je 0x140081332
cmp byte [0x1400f9615], 0
sete al
mov byte [0x1400f9615], al
jmp 0x140081339
movzx eax, byte [0x1400f9615]
mov rdx, qword [rbx + 0x28]
mov r9d, 4
mov rcx, qword [rbx + 0x18]
mov qword [rsp + 0x20], 0
test al, al
je 0x1400813bf
cmp byte [0x1400f8069], 0
je 0x140081398
movss xmm0, dword [0x1400f80ac]
lea r8, [rsp + 0x30]
mulss xmm0, dword [0x1400e8164]
movss dword [rsp + 0x30], xmm0
call qword [sym.imp.KERNEL32.dll_WriteProcessMemory]
mov byte [0x1400f951b], 1
mov rcx, qword [rsp + 0x38]
xor rcx, rsp
call fcn.140085ee0
add rsp, 0x40
pop rbx
ret
lea r8, [0x1400f8050]
call qword [sym.imp.KERNEL32.dll_WriteProcessMemory]
mov byte [0x1400f951b], 1
mov rcx, qword [rsp + 0x38]
xor rcx, rsp
call fcn.140085ee0
add rsp, 0x40
pop rbx
ret
lea r8, [rsp + 0x30]
mov byte [0x1400f951b], 1
mov dword [rsp + 0x30], 0x41a00000
call qword [sym.imp.KERNEL32.dll_WriteProcessMemory]
mov byte [0x1400f951b], 0
mov rcx, qword [rsp + 0x38]
xor rcx, rsp
call fcn.140085ee0
add rsp, 0x40
pop rbx
ret
Function at 0x140081b00
Capabilities:
Log keystrokes via polling

Disassembly:
push rbx
sub rsp, 0x40
mov rax, qword [0x1400f8010]
xor rax, rsp
mov qword [rsp + 0x38], rax
mov rbx, rcx
mov ecx, dword [0x1400f8070]
cmp ecx, 0x270f
je 0x140081b42
call qword [sym.imp.USER32.dll_GetAsyncKeyState]
test al, 1
je 0x140081b42
cmp byte [0x1400f964d], 0
sete al
mov byte [0x1400f964d], al
jmp 0x140081b49
movzx eax, byte [0x1400f964d]
mov qword [rsp + 0x58], rdi
test al, al
je 0x140081bfe
mov rdx, qword [rbx + 0x58]
xor edi, edi
cmp byte [0x1400f8058], dil
mov rcx, qword [rbx + 0x18]
mov qword [rsp + 0x20], rdi
lea r9d, [rdi + 4]
je 0x140081bb0
movss xmm0, dword [0x1400f80c4]
lea r8, [rsp + 0x30]
divss xmm0, dword [0x1400e8190]
movss dword [rsp + 0x30], xmm0
movss xmm0, dword [0x1400f80bc]
divss xmm0, dword [0x1400e8190]
movss dword [rsp + 0x34], xmm0
call qword [sym.imp.KERNEL32.dll_WriteProcessMemory]
lea r8, [rsp + 0x34]
jmp 0x140081bdc
movss xmm0, dword [0x1400f80b4]
lea r8, [rsp + 0x34]
movss xmm1, dword [0x1400f8078]
movss dword [rsp + 0x34], xmm0
movss dword [rsp + 0x30], xmm1
call qword [sym.imp.KERNEL32.dll_WriteProcessMemory]
lea r8, [rsp + 0x30]
mov rdx, qword [rbx + 0x50]
mov r9d, 4
mov rcx, qword [rbx + 0x18]
mov qword [rsp + 0x20], rdi
call qword [sym.imp.KERNEL32.dll_WriteProcessMemory]
mov byte [0x1400f951c], 1
jmp 0x140081c58
cmp byte [0x1400f951c], 1
jne 0x140081c58
mov rdx, qword [rbx + 0x58]
lea r8, [rsp + 0x34]
mov rcx, qword [rbx + 0x18]
xor edi, edi
mov dword [rsp + 0x34], 0x3f800000
mov dword [rsp + 0x30], 0x3f800000
mov qword [rsp + 0x20], rdi
lea r9d, [rdi + 4]
call qword [sym.imp.KERNEL32.dll_WriteProcessMemory]
mov rdx, qword [rbx + 0x50]
lea r9d, [rdi + 4]
mov rcx, qword [rbx + 0x18]
lea r8, [rsp + 0x30]
mov qword [rsp + 0x20], rdi
call qword [sym.imp.KERNEL32.dll_WriteProcessMemory]
mov byte [0x1400f951c], dil
mov rdi, qword [rsp + 0x58]
mov rcx, qword [rsp + 0x38]
xor rcx, rsp
call fcn.140085ee0
add rsp, 0x40
pop rbx
ret
Function at 0x140082200
Capabilities:
Log keystrokes via polling

Disassembly:
push rbx
sub rsp, 0x40
mov rax, qword [0x1400f8010]
xor rax, rsp
mov qword [rsp + 0x38], rax
mov rbx, rcx
mov ecx, dword [0x1400f80c8]
cmp ecx, 0x270f
je 0x14008223a
call qword [sym.imp.USER32.dll_GetAsyncKeyState]
test ax, ax
setne al
mov byte [0x1400f9639], al
jmp 0x140082241
movzx eax, byte [0x1400f9639]
mov rdx, qword [rbx + 0x30]
mov r9d, 4
mov rcx, qword [rbx + 0x18]
lea r8, [rsp + 0x30]
test al, al
je 0x140082260
xor eax, eax
mov dword [rsp + 0x30], eax
jmp 0x14008226a
mov dword [rsp + 0x30], 1
xor eax, eax
mov qword [rsp + 0x20], rax
call qword [sym.imp.KERNEL32.dll_WriteProcessMemory]
mov rcx, qword [rsp + 0x38]
xor rcx, rsp
call fcn.140085ee0
add rsp, 0x40
pop rbx
ret

Function at 0x140085c18
Capabilities:
Get geographical location

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x40
mov rdi, rdx
lea r8, [rsp + 0x60]
mov ebx, ecx
mov edx, 0x20000001
lea rcx, str._x_sys_default_locale
mov r9d, 2
call qword [sym.imp.KERNEL32.dll_GetLocaleInfoEx]
mov r8d, ebx
mov ecx, 0x1300
neg eax
sbb r9d, r9d
and qword [rsp + 0x30], 0
and r9d, dword [rsp + 0x60]
xor edx, edx
and dword [rsp + 0x28], 0
mov dword [rsp + 0x60], r9d
mov qword [rsp + 0x20], rdi
call qword [sym.imp.KERNEL32.dll_FormatMessageA]
mov edx, eax
test eax, eax
je 0x140085c9c
mov r8, qword [rdi]
dec r8
add r8, rdx
movzx ecx, byte [r8]
lea rax, [0x14008aa20]
cmp byte [rcx + rax], 0
je 0x140085c9c
dec r8
sub rdx, 1
jne 0x140085c82
mov rbx, qword [rsp + 0x50]
mov rax, rdx
add rsp, 0x40
pop rdi
ret

Function at 0x140086c08
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x140086c52
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x140086c52
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x140086c52
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x140086c52
cmp dword [rcx + 0x84], 0xe
jbe 0x140086c52
cmp dword [rcx + 0xf8], 0
setne al
jmp 0x140086c54
xor al, al
add rsp, 0x28
ret
Function at 0x140002740
Capabilities:
Encode data using xor
Generate random numbers using a mersenne twister

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
push rsi
push rdi
push r12
push r14
push r15
sub rsp, 0x40
mov rdi, rcx
mov qword [rsp + 0x30], rcx
xor ebp, ebp
mov dword [rsp + 0x20], ebp
mov r14d, 4
mov rax, qword gs:[0x58]
mov rbx, qword [rax]
mov esi, Ordinal_41
mov eax, dword [rsi + rbx]
mov r12d, Ordinal_50
test al, 1
jne 0x1400027e9
or eax, 1
mov dword [rsi + rbx], eax
call qword [sym.imp.MSVCP140.dll_unsigned_int___cdecl_std::_Random_device_void_]
mov edx, eax
mov r9d, r12d
add r9, rbx
mov dword [r9 + 0x1384], 0xffffffff
mov dword [r9 + 4], eax
mov ecx, 1
lea r8, [r9 + 8]
nop dword [rax]
nop dword [rax + rax]
mov eax, edx
shr eax, 0x1e
xor eax, edx
imul edx, eax, 0x6c078965
add edx, ecx
mov dword [r8], edx
inc rcx
lea r8, [r8 + 4]
cmp rcx, 0x270
jb 0x1400027c0
mov dword [r9], 0x270
mov eax, dword [rsi + rbx]
mov ecx, Ordinal_26
test al, 2
jne 0x140002808
or eax, 2
mov dword [rsi + rbx], eax
mov qword [rbx + rcx], rbp
mov qword [rbx + rcx + 8], reloc.WS2_32.dll_ntohs
xorps xmm0, xmm0
movups xmmword [rdi], xmm0
mov qword [rdi + 0x10], rbp
mov qword [rdi + 0x18], reloc.WS2_32.dll_ntohs
mov byte [rdi], 0
mov dword [rsp + 0x20], 1
lea r15, [rbx + rcx]
mov eax, r12d
add rbx, rax
lea r12, str.0123456789ABCDEF
nop word [rax + rax]
dec r14
mov qword [rsp + 0x28], rbx
mov rbp, qword [r15]
mov rdx, qword [r15 + 8]
sub rdx, rbp
cmp rdx, 0xffffffffffffffff
jne 0x140002875
mov rcx, rbx
call fcn.140015550
mov esi, eax
shl rsi, 0x20
mov rcx, rbx
call fcn.140015550
mov eax, eax
or rsi, rax
jmp 0x140002885
inc rdx
lea rcx, [rsp + 0x28]
call fcn.140015360
mov rsi, rax
lea rax, [rsi + rbp]
movzx r9d, byte [rax + r12]
mov rcx, qword [rdi + 0x10]
mov rdx, qword [rdi + 0x18]
cmp rcx, rdx
jae 0x1400028ba
lea rax, [rcx + 1]
mov qword [rdi + 0x10], rax
mov rax, rdi
cmp rdx, 0xf
jbe 0x1400028af
mov rax, qword [rdi]
mov byte [rax + rcx], r9b
mov byte [rax + rcx + 1], 0
jmp 0x1400028ca
xor r8d, r8d
mov edx, 1
mov rcx, rdi
call fcn.140014880
test r14, r14
jne 0x140002840
mov rax, rdi
mov rbx, qword [rsp + 0x78]
mov rbp, qword [rsp + 0x80]
add rsp, 0x40
pop r15
pop r14
pop r12
pop rdi
pop rsi
ret
Function at 0x140015550
Capabilities:
Encode data using xor
Generate random numbers using a mersenne twister

Disassembly:
sub rsp, 8
mov r9, rcx
mov r10d, 0x270
mov ecx, dword [rcx]
cmp ecx, r10d
jne 0x1400155b1
lea r8, [r9 + 8]
nop dword [rax + rax]
mov edx, dword [r8 - 4]
xor edx, dword [r8]
lea r8, [r8 + 4]
btr edx, 0x1f
xor edx, dword [r8 - 8]
mov eax, edx
and al, 1
neg al
sbb ecx, ecx
shr edx, 1
and ecx, 0x9908b0df
xor ecx, dword [r8 + 0x62c]
xor ecx, edx
mov dword [r8 + 0x9b8], ecx
sub r10, 1
jne 0x140015570
mov ecx, dword [r9]
jmp 0x14001569b
cmp ecx, 0x4e0
jb 0x14001569b
lea r10, [r9 + 0x9c4]
mov qword [rsp], rbx
mov r11d, dword [r10]
mov ebx, 0xe3
mov eax, r11d
mov r8, r10
mov r11d, dword [r10 + 4]
add r10, 4
mov edx, r11d
xor edx, eax
btr edx, 0x1f
xor edx, eax
mov eax, edx
and al, 1
neg al
sbb ecx, ecx
shr edx, 1
and ecx, 0x9908b0df
xor ecx, dword [r8 + 0x634]
xor ecx, edx
mov dword [r8 - 0x9c0], ecx
sub rbx, 1
jne 0x1400155d0
lea r10, [r9 + 0xd50]
mov ebx, 0x18c
mov r11d, dword [r10]
nop
mov eax, r11d
mov r8, r10
mov r11d, dword [r10 + 4]
mov edx, eax
xor edx, r11d
add r10, 4
btr edx, 0x1f
xor edx, eax
mov eax, edx
and al, 1
neg al
sbb ecx, ecx
shr edx, 1
and ecx, 0x9908b0df
xor ecx, dword [r8 - 0xd4c]
xor ecx, edx
mov dword [r8 - 0x9c0], ecx
sub rbx, 1
jne 0x140015620
mov eax, dword [r9 + 0x1380]
mov edx, eax
xor edx, dword [r9 + 4]
mov rbx, qword [rsp]
btr edx, 0x1f
xor edx, eax
mov eax, edx
and al, 1
neg al
sbb ecx, ecx
shr edx, 1
and ecx, 0x9908b0df
xor ecx, dword [r9 + 0x634]
xor ecx, edx
mov dword [r9 + 0x9c0], ecx
xor ecx, ecx
mov dword [r9], ecx
mov eax, ecx
mov edx, dword [r9 + rax*4 + 4]
lea eax, [rcx + 1]
mov dword [r9], eax
mov ecx, edx
mov eax, dword [r9 + 0x1384]
shr ecx, 0xb
and eax, ecx
xor edx, eax
mov eax, edx
and eax, 0xff3a58ad
shl eax, 7
xor edx, eax
mov eax, edx
and eax, 0xffffdf8c
shl eax, 0xf
xor edx, eax
mov eax, edx
shr eax, 0x12
xor eax, edx
add rsp, 8
ret