joyce8/EMBER2024-capa huggingface dataset:
Function at 0x14004b740
Capabilities:
Hash data using fnv

Disassembly:
push rdi
sub rsp, 0x20
mov rdi, rcx
mov rcx, qword [rcx + 0x10]
test rcx, rcx
je 0x14004b61c
mov rax, qword [rdi + 0x38]
shr rax, 3
cmp rax, rcx
jbe 0x14004b5aa
mov rdx, qword [rdi + 8]
mov rcx, rdi
mov r8, rdx
mov rdx, qword [rdx]
add rsp, 0x20
pop rdi
jmp 0x14004b740
mov rcx, qword [rdi + 8]
mov rax, qword [rcx + 8]
mov qword [rax], 0
mov rcx, qword [rcx]
test rcx, rcx
je 0x14004b5ea
mov qword [rsp + 0x38], rbx
nop word [rax + rax]
mov rbx, qword [rcx]
mov edx, 0x18
call fcn.140060aec
mov rcx, rbx
test rbx, rbx
jne 0x14004b5d0
mov rbx, qword [rsp + 0x38]
mov rax, qword [rdi + 8]
lea r8, [rsp + 0x30]
mov qword [rax], rax
mov rax, qword [rdi + 8]
mov qword [rax + 8], rax
mov qword [rdi + 0x10], 0
mov rax, qword [rdi + 8]
mov rdx, qword [rdi + 0x20]
mov rcx, qword [rdi + 0x18]
mov qword [rsp + 0x30], rax
call fcn.14004be10
add rsp, 0x20
pop rdi
ret
push rbp
push rsi
push r14
sub rsp, 0x40
mov rbp, r8
mov r14, rdx
mov rsi, rcx
cmp rdx, r8
je 0x14004b83e
mov rdx, qword [rcx + 0x18]
movabs r8, 0x100000001b3
mov qword [rsp + 0x60], rbx
movabs rax, 0xcbf29ce484222325
mov qword [rsp + 0x38], rdi
mov rbx, r14
mov qword [rsp + 0x30], r12
mov r12, qword [rcx + 8]
movzx ecx, byte [r14 + 0x10]
xor rcx, rax
mov qword [rsp + 0x28], r13
movzx eax, byte [r14 + 0x11]
mov r13, qword [r14 + 8]
imul rcx, r8
mov qword [rsp + 0x20], r15
mov r15, qword [rsi + 0x30]
xor rcx, rax
movzx eax, byte [r14 + 0x12]
imul rcx, r8
mov qword [rsp + 0x78], rdx
xor rcx, rax
movzx eax, byte [r14 + 0x13]
imul rcx, r8
xor rcx, rax
imul rcx, r8
and r15, rcx
shl r15, 4
add r15, rdx
mov rax, qword [r15]
mov qword [rsp + 0x68], rax
mov rax, qword [r15 + 8]
mov qword [rsp + 0x70], rax
nop dword [rax + rax]
mov rcx, rbx
mov rdi, rbx
mov rbx, qword [rbx]
mov edx, 0x18
call fcn.140060aec
dec qword [rsi + 0x10]
cmp rdi, qword [rsp + 0x70]
je 0x14004b84a
cmp rbx, rbp
jne 0x14004b7f0
cmp qword [rsp + 0x68], r14
jne 0x14004b81d
mov qword [r15], rbx
mov r12, qword [rsp + 0x30]
mov rdi, qword [rsp + 0x38]
mov r15, qword [rsp + 0x20]
mov qword [r13], rbx
mov qword [rbx + 8], r13
mov r13, qword [rsp + 0x28]
mov rbx, qword [rsp + 0x60]
mov rax, rbp
add rsp, 0x40
pop r14
pop rsi
pop rbp
ret
cmp qword [rsp + 0x68], r14
jne 0x14004b859
mov qword [r15], r12
mov rax, r12
jmp 0x14004b85c
mov rax, r13
mov qword [r15 + 8], rax
cmp rbx, rbp
je 0x14004b81d
nop word [rax + rax]
movzx ecx, byte [rbx + 0x10]
movabs rdx, 0x100000001b3
mov r15, qword [rsi + 0x30]
movabs rax, 0xcbf29ce484222325
xor rcx, rax
movzx eax, byte [rbx + 0x11]
imul rcx, rdx
xor rcx, rax
movzx eax, byte [rbx + 0x12]
imul rcx, rdx
xor rcx, rax
movzx eax, byte [rbx + 0x13]
imul rcx, rdx
xor rcx, rax
imul rcx, rdx
and r15, rcx
shl r15, 4
add r15, qword [rsp + 0x78]
mov r14, qword [r15 + 8]
nop dword [rax]
nop dword [rax + rax]
mov rcx, rbx
mov rdi, rbx
mov rbx, qword [rbx]
mov edx, 0x18
call fcn.140060aec
dec qword [rsi + 0x10]
cmp rdi, r14
je 0x14004b8f6
cmp rbx, rbp
jne 0x14004b8d0
jmp 0x14004b81a
mov qword [r15], r12
mov qword [r15 + 8], r12
cmp rbx, rbp
jne 0x14004b870
jmp 0x14004b81d
Function at 0x14004b910
Capabilities:
Hash data using fnv

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x30
mov r13, r8
mov r14, rdx
mov rsi, rcx
movzx r12d, byte [r8]
movabs rax, 0xcbf29ce484222325
xor r12, rax
movabs rcx, 0x100000001b3
imul r12, rcx
movzx eax, byte [r8 + 1]
xor r12, rax
imul r12, rcx
movzx eax, byte [r8 + 2]
xor r12, rax
imul r12, rcx
movzx eax, byte [r8 + 3]
xor r12, rax
imul r12, rcx
mov rcx, qword [rsi + 0x30]
and rcx, r12
add rcx, rcx
mov rax, qword [rsi + 0x18]
mov rbx, qword [rax + rcx*8 + 8]
lea rdx, [rsi + 8]
mov r15, qword [rdx]
cmp rbx, r15
jne 0x14004b99f
mov rbx, r15
mov rbp, r15
jmp 0x14004b9ec
mov rcx, qword [rax + rcx*8]
mov eax, dword [r8]
cmp eax, dword [rbx + 0x10]
je 0x14004b9be
nop dword [rax + rax]
cmp rbx, rcx
je 0x14004b9e6
mov rbx, qword [rbx + 8]
cmp eax, dword [rbx + 0x10]
jne 0x14004b9b0
mov qword [r14], rbx
mov byte [r14 + 8], 0
mov rax, r14
mov rbx, qword [rsp + 0x60]
mov rbp, qword [rsp + 0x68]
mov rsi, qword [rsp + 0x70]
add rsp, 0x30
pop r15
pop r14
pop r13
pop r12
pop rdi
ret
mov r15, rbx
mov rbp, rbx
movabs rax, 0xaaaaaaaaaaaaaaa
cmp qword [rsi + 0x10], rax
jne 0x14004ba0a
lea rcx, str.unordered_map_set_too_long
call qword [sym.imp.MSVCP140.dll_void___cdecl_std::_Xlength_error_char_const____ptr64_]
int3
mov qword [rsp + 0x20], rdx
mov qword [rsp + 0x28], 0
mov ecx, 0x18
call fcn.140060858
mov rdi, rax
mov qword [rsp + 0x28], rax
mov ecx, dword [r13]
mov dword [rax + 0x10], ecx
xor r13d, r13d
mov dword [rax + 0x14], r13d
mov rcx, qword [rsi + 0x10]
add rcx, 1
xorps xmm0, xmm0
js 0x14004ba4c
cvtsi2ss xmm0, rcx
jmp 0x14004ba61
mov rax, rcx
shr rax, 1
and ecx, 1
or rax, rcx
cvtsi2ss xmm0, rax
addss xmm0, xmm0
mov rcx, qword [rsi + 0x38]
xorps xmm1, xmm1
test rcx, rcx
js 0x14004ba74
cvtsi2ss xmm1, rcx
jmp 0x14004ba89
mov rax, rcx
shr rax, 1
and ecx, 1
or rax, rcx
cvtsi2ss xmm1, rax
addss xmm1, xmm1
divss xmm0, xmm1
comiss xmm0, dword [rsi]
seta al
test al, al
je 0x14004bae8
mov rcx, rsi
call fcn.14004c030
mov rcx, qword [rsi + 0x30]
and rcx, r12
add rcx, rcx
mov rdx, qword [rsi + 0x18]
mov rax, qword [rdx + rcx*8 + 8]
mov rbx, qword [rsi + 8]
cmp rax, rbx
je 0x14004badb
mov rdx, qword [rdx + rcx*8]
mov ecx, dword [rdi + 0x10]
cmp ecx, dword [rax + 0x10]
je 0x14004bad8
mov rbx, rax
cmp rax, rdx
je 0x14004bb1c
mov rax, qword [rax + 8]
cmp ecx, dword [rax + 0x10]
jne 0x14004bac7
mov rbx, qword [rax]
mov qword [rsp + 0x20], rbx
mov rbp, rbx
mov r15, qword [rsp + 0x20]
mov rdx, qword [rbx + 8]
inc qword [rsi + 0x10]
mov qword [rdi], r15
mov qword [rdi + 8], rdx
mov qword [rdx], rdi
mov qword [rbx + 8], rdi
mov rcx, qword [rsi + 0x18]
mov rax, qword [rsi + 0x30]
and rax, r12
add rax, rax
mov r8, qword [rcx + rax*8]
cmp r8, qword [rsi + 8]
jne 0x14004bb23
mov qword [rcx + rax*8], rdi
jmp 0x14004bb35
mov qword [rsp + 0x20], rax
jmp 0x14004bae0
cmp r8, rbp
jne 0x14004bb2e
mov qword [rcx + rax*8], rdi
jmp 0x14004bb3a
cmp qword [rcx + rax*8 + 8], rdx
jne 0x14004bb3a
mov qword [rcx + rax*8 + 8], rdi
mov qword [r14], rdi
mov byte [r14 + 8], 1
jmp 0x14004b9c6
Function at 0x14004c2a0
Capabilities:
Hash data using fnv

Disassembly:
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x20
movabs rax, 0xfffffffffffffff
mov rsi, rcx
bsr rcx, rax
mov edi, 1
mov eax, edi
shl rax, cl
cmp rdx, rax
jbe 0x14004c2d8
lea rcx, str.invalid_hash_bucket_count
call qword [sym.imp.MSVCP140.dll_void___cdecl_std::_Xlength_error_char_const____ptr64_]
int3
lea rax, [rdx - 1]
mov qword [rsp + 0x30], rbx
mov rbx, qword [rsi + 8]
or rax, rdi
bsr rcx, rax
mov r8, rbx
mov qword [rsp + 0x40], r14
inc ecx
shl rdi, cl
lea rcx, [rsi + 0x18]
lea rdx, [rdi + rdi]
call fcn.140003400
lea rax, [rdi - 1]
mov qword [rsi + 0x38], rdi
mov qword [rsi + 0x30], rax
mov rax, qword [rsi + 8]
mov rax, qword [rax]
mov rcx, rax
cmp rax, rbx
je 0x14004c414
mov qword [rsp + 0x38], rbp
movabs rdi, 0x100000001b3
movabs rbp, 0xcbf29ce484222325
nop
movzx edx, byte [rax + 0x11]
movzx r11d, byte [rax + 0x10]
mov rcx, qword [rcx]
xor r11, rbp
imul r11, rdi
xor r11, rdx
movzx edx, byte [rax + 0x12]
imul r11, rdi
xor r11, rdx
movzx edx, byte [rax + 0x13]
imul r11, rdi
xor r11, rdx
imul r11, rdi
and r11, qword [rsi + 0x30]
shl r11, 4
add r11, qword [rsi + 0x18]
mov r9, qword [r11]
cmp r9, rbx
jne 0x14004c38d
mov qword [r11], rax
mov qword [r11 + 8], rax
jmp 0x14004c403
mov rdx, qword [r11 + 8]
mov r8d, dword [rax + 0x10]
cmp r8d, dword [rdx + 0x10]
jne 0x14004c3ca
mov r10, qword [rdx]
cmp r10, rax
je 0x14004c3c4
mov r9, qword [rax + 8]
mov qword [r9], rcx
mov r8, qword [rcx + 8]
mov qword [r8], r10
mov rdx, qword [r10 + 8]
mov qword [rdx], rax
mov qword [r10 + 8], r8
mov qword [rcx + 8], r9
mov qword [rax + 8], rdx
mov qword [r11 + 8], rax
jmp 0x14004c403
cmp r9, rdx
je 0x14004c3df
nop
mov rdx, qword [rdx + 8]
cmp r8d, dword [rdx + 0x10]
je 0x14004c429
cmp r9, rdx
jne 0x14004c3d0
mov r10, qword [rax + 8]
mov qword [r10], rcx
mov r9, qword [rcx + 8]
mov qword [r9], rdx
mov r8, qword [rdx + 8]
mov qword [r8], rax
mov qword [rdx + 8], r9
mov qword [rcx + 8], r10
mov qword [rax + 8], r8
mov qword [r11], rax
mov rax, rcx
cmp rcx, rbx
jne 0x14004c340
mov rbp, qword [rsp + 0x38]
mov rbx, qword [rsp + 0x30]
mov r14, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
add rsp, 0x20
pop rdi
ret
mov r10, qword [rdx]
mov r9, qword [rax + 8]
mov qword [r9], rcx
mov r8, qword [rcx + 8]
mov qword [r8], r10
mov rdx, qword [r10 + 8]
mov qword [rdx], rax
mov qword [r10 + 8], r8
mov qword [rcx + 8], r9
mov qword [rax + 8], rdx
jmp 0x14004c403
Function at 0x14004c9b0
Capabilities:
Log keystrokes via application hook

Disassembly:
mov r11, rsp
mov qword [r11 + 0x18], rbx
mov qword [r11 + 0x20], rsi
mov qword [r11 + 8], rcx
push rdi
sub rsp, 0xb0
mov rdi, rcx
lea rax, vtable.WinNative.0
mov qword [rcx], rax
lea rax, [0x140086b40]
mov qword [rcx + 8], rax
lea rbx, [rcx + 0x10]
mov qword [r11 + 0x10], rbx
xor esi, esi
mov dword [rbx], esi
mov qword [rbx + 8], rsi
mov qword [rbx + 0x10], rsi
lea ecx, [rsi + 0x40]
call fcn.140060858
mov qword [rax], rax
mov qword [rax + 8], rax
mov qword [rbx + 8], rax
lea rcx, [rbx + 0x18]
mov qword [rcx], rsi
mov qword [rcx + 8], rsi
mov qword [rcx + 0x10], rsi
mov qword [rbx + 0x30], 7
mov qword [rbx + 0x38], 8
mov dword [rbx], 0x3f800000
mov r8, qword [rbx + 8]
lea edx, [rsi + 0x10]
call fcn.140003400
nop
lea rbx, [rdi + 0x50]
mov qword [rsp + 0xc8], rbx
mov dword [rbx], esi
mov qword [rbx + 8], rsi
mov qword [rbx + 0x10], rsi
lea ecx, [rsi + 0x38]
call fcn.140060858
mov qword [rax], rax
mov qword [rax + 8], rax
mov qword [rbx + 8], rax
lea rcx, [rbx + 0x18]
mov qword [rcx], rsi
mov qword [rcx + 8], rsi
mov qword [rcx + 0x10], rsi
mov qword [rbx + 0x30], 7
mov qword [rbx + 0x38], 8
mov dword [rbx], 0x3f800000
mov r8, qword [rbx + 8]
lea edx, [rsi + 0x10]
call fcn.140003400
nop
xor r9d, r9d
xor r8d, r8d
lea rdx, [0x14004e0a0]
lea ecx, [rsi + 0xe]
call qword [sym.imp.USER32.dll_SetWindowsHookExW]
mov qword [rdi + 0xa0], rax
mov qword [0x140098fa0], rdi
mov dword [rsp + 0x28], 0x8000
mov dword [rsp + 0x20], esi
xor r9d, r9d
mov edx, 0x7f00
xor ecx, ecx
lea r8d, [rsi + 2]
call qword [sym.imp.USER32.dll_LoadImageW]
mov rcx, rax
call qword [sym.imp.USER32.dll_CopyIcon]
mov qword [rdi + 0x98], rax
mov qword [rsp + 0x78], rsi
mov dword [rsp + 0x60], 0x50
mov dword [rsp + 0x64], 3
lea rax, [0x14004df10]
mov qword [rsp + 0x68], rax
mov qword [rsp + 0x70], rsi
xorps xmm0, xmm0
movdqa xmmword [rsp + 0x80], xmm0
xorps xmm1, xmm1
movdqa xmmword [rsp + 0x90], xmm1
mov rax, qword [rdi + 8]
mov qword [rsp + 0xa0], rax
mov qword [rsp + 0xa8], rsi
lea rcx, [rsp + 0x60]
call qword [sym.imp.USER32.dll_RegisterClassExW]
mov qword [rsp + 0x58], rsi
mov qword [rsp + 0x50], rsi
mov qword [rsp + 0x48], rsi
mov qword [rsp + 0x40], rsi
mov dword [rsp + 0x38], esi
mov dword [rsp + 0x30], esi
mov dword [rsp + 0x28], 0x80000000
mov dword [rsp + 0x20], 0x80000000
xor r9d, r9d
lea r8, str.win_native_reg_window
mov rdx, qword [rdi + 8]
xor ecx, ecx
call qword [sym.imp.USER32.dll_CreateWindowExW]
mov qword [rdi + 0x90], rax
mov rax, rdi
lea r11, [rsp + 0xb0]
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rsp, r11
pop rdi
ret
Function at 0x14004dac0
Capabilities:
Log keystrokes

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x50
xor eax, eax
mov qword [rsp + 0x20], 1
mov edi, 0x12
mov qword [rsp + 0x40], rax
mov rbx, rdx
mov word [rsp + 0x28], di
xorps xmm0, xmm0
mov dword [rsp + 0x2c], eax
mov ecx, edi
xor edx, edx
movdqu xmmword [rsp + 0x30], xmm0
call qword [sym.imp.USER32.dll_MapVirtualKeyW]
lea r8d, [rdi + 0x16]
mov word [rsp + 0x2a], ax
lea rdx, [rsp + 0x20]
lea ecx, [rdi - 0x11]
call qword [sym.imp.USER32.dll_SendInput]
mov rcx, rbx
call qword [sym.imp.USER32.dll_SetForegroundWindow]
mov rcx, rbx
call qword [sym.imp.USER32.dll_SetFocus]
lea rcx, [rsp + 0x68]
mov qword [rsp + 0x68], 1
call fcn.140003550
lea r8d, [rdi + 0x16]
mov word [rsp + 0x28], di
lea rdx, [rsp + 0x20]
mov dword [rsp + 0x2c], 2
lea ecx, [rdi - 0x11]
call qword [sym.imp.USER32.dll_SendInput]
mov rbx, qword [rsp + 0x60]
mov al, 1
add rsp, 0x50
pop rdi
ret

Function at 0x14004dc70
Capabilities:
Enumerate gui resources

Disassembly:
push rbx
sub rsp, 0x30
cmp qword [rdx + 0x18], 0x10
mov rbx, rcx
jb 0x14004dc83
mov rdx, qword [rdx]
mov qword [rsp + 0x20], rdx
lea rcx, [0x14004dcd0]
lea rdx, [rsp + 0x20]
mov qword [rsp + 0x28], 0
call qword [sym.imp.USER32.dll_EnumWindows]
mov rdx, qword [rsp + 0x28]
test rdx, rdx
je 0x14004dcbc
mov rax, qword [rbx]
mov rcx, rbx
call qword [rax + 0x48]
add rsp, 0x30
pop rbx
ret
xor al, al
add rsp, 0x30
pop rbx
ret
Function at 0x14004e810
Capabilities:
Hash data using fnv

Disassembly:
push rbx
sub rsp, 0x20
movzx r8d, byte [rdx]
mov r10, rcx
movabs rcx, 0x100000001b3
mov r9, rdx
movabs rax, 0xcbf29ce484222325
xor r8, rax
movzx eax, byte [rdx + 1]
imul r8, rcx
xor r8, rax
movzx eax, byte [rdx + 2]
imul r8, rcx
xor r8, rax
movzx eax, byte [rdx + 3]
mov rdx, qword [r10 + 0x30]
imul r8, rcx
xor r8, rax
imul r8, rcx
and rdx, r8
mov r8, qword [r10 + 8]
shl rdx, 4
add rdx, qword [r10 + 0x18]
mov r11, qword [rdx + 8]
mov rbx, r11
cmp r11, r8
je 0x14004e897
mov eax, dword [r9]
mov rcx, qword [rdx]
cmp eax, dword [r11 + 0x10]
je 0x14004e899
cmp rbx, rcx
je 0x14004e897
mov rbx, qword [rbx + 8]
cmp eax, dword [rbx + 0x10]
jne 0x14004e887
jmp 0x14004e899
xor ebx, ebx
test rbx, rbx
je 0x14004e94d
mov rax, qword [rdx]
cmp r11, rbx
jne 0x14004e8c2
cmp rax, rbx
jne 0x14004e8b8
mov qword [rdx], r8
mov qword [rdx + 8], r8
jmp 0x14004e8cd
mov r8, qword [rbx + 8]
mov qword [rdx + 8], r8
jmp 0x14004e8cd
cmp rax, rbx
jne 0x14004e8cd
mov rax, qword [rbx]
mov qword [rdx], rax
mov rcx, qword [rbx]
dec qword [r10 + 0x10]
mov rax, qword [rbx + 8]
mov qword [rax], rcx
mov rax, qword [rbx + 8]
mov qword [rcx + 8], rax
mov rdx, qword [rbx + 0x30]
cmp rdx, 0x10
jb 0x14004e91a
mov rcx, qword [rbx + 0x18]
inc rdx
cmp rdx, 0x1000
jb 0x14004e915
mov r8, qword [rcx - 8]
add rdx, 0x27
sub rcx, r8
lea rax, [rcx - 8]
cmp rax, 0x1f
ja 0x14004e946
mov rcx, r8
call fcn.140060aec
mov edx, 0x38
mov qword [rbx + 0x28], 0
mov rcx, rbx
mov qword [rbx + 0x30], 0xf
mov byte [rbx + 0x18], 0
call fcn.140060aec
mov eax, 1
add rsp, 0x20
pop rbx
ret
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
xor eax, eax
add rsp, 0x20
pop rbx
ret
Function at 0x1400565b0
Capabilities:
Encode data using xor

Disassembly:
mov qword [rsp + 0x10], rbx
push rdi
xor r10d, r10d
mov edi, r8d
mov rbx, rdx
mov r11d, 0x7fffffff
test ecx, ecx
jle 0x140056616
mov qword [rsp + 0x10], rsi
imul edi, r9d
mov r9, rdx
mov esi, ecx
nop word [rax + rax]
mov eax, dword [rbx + 4]
mov ecx, r11d
imul eax, dword [rbx]
lea rbx, [rbx + 0x10]
mov r8, r10
mov r10, r9
sub eax, edi
cdq
xor eax, edx
sub eax, edx
cmp eax, r11d
cmovl r11d, eax
cmp eax, ecx
cmovge r10, r8
add r9, 0x10
sub rsi, 1
jne 0x1400565e0
mov rsi, qword [rsp + 0x10]
mov rbx, qword [rsp + 0x18]
mov rax, r10
pop rdi
ret

Function at 0x140056d40
Capabilities:
Register raw input devices

Disassembly:
mov qword [rsp + 0x10], rbx
push rdi
sub rsp, 0x30
mov rbx, rcx
mov qword [0x1400981a0], rcx
lea rdi, [rcx + 0x358]
lea rcx, [rsp + 0x40]
call qword [sym.imp.USER32.dll_GetCursorPos]
test eax, eax
je 0x140056d9c
mov rcx, qword [rdi]
lea rdx, [rsp + 0x40]
call qword [sym.imp.USER32.dll_ScreenToClient]
movd xmm0, dword [rsp + 0x40]
movd xmm1, dword [rsp + 0x44]
cvtdq2pd xmm0, xmm0
cvtdq2pd xmm1, xmm1
movsd qword [0x140098190], xmm0
movsd qword [0x140098198], xmm1
cmp dword [rbx + 0x84], 0x34001
jne 0x140056de3
mov rcx, qword [rbx + 0x58]
test rcx, rcx
je 0x140056dc4
mov rcx, qword [rcx + 8]
call qword [sym.imp.USER32.dll_SetCursor]
lea rdi, [rbx + 0x358]
jmp 0x140056deb
mov edx, 0x7f00
xor ecx, ecx
call qword [sym.imp.USER32.dll_LoadCursorW]
mov rcx, rax
call qword [sym.imp.USER32.dll_SetCursor]
lea rdi, [rbx + 0x358]
jmp 0x140056deb
xor ecx, ecx
call qword [sym.imp.USER32.dll_SetCursor]
mov rcx, rbx
call fcn.140051e80
mov rcx, rbx
call fcn.140057190
cmp dword [rbx + 0x200], 0
je 0x140056e3e
mov rax, qword [rdi]
lea rcx, [rsp + 0x20]
mov edx, 1
mov qword [rsp + 0x20], 0x20001
mov qword [rsp + 0x28], rax
lea r8d, [rdx + 0xf]
call qword [sym.imp.USER32.dll_RegisterRawInputDevices]
test eax, eax
jne 0x140056e3e
lea rdx, str.Win32:_Failed_to_register_raw_input_device
mov ecx, 0x10008
call fcn.140059240
mov rbx, qword [rsp + 0x48]
add rsp, 0x30
pop rdi
ret
Function at 0x140056e50
Capabilities:
Register raw input devices

Disassembly:
push rbx
sub rsp, 0x30
cmp dword [rcx + 0x200], 0
mov rbx, rcx
je 0x140056ea0
mov edx, 1
mov dword [rsp + 0x20], 0x20001
lea rcx, [rsp + 0x20]
mov dword [rsp + 0x24], edx
mov qword [rsp + 0x28], 0
lea r8d, [rdx + 0xf]
call qword [sym.imp.USER32.dll_RegisterRawInputDevices]
test eax, eax
jne 0x140056ea0
lea rdx, str.Win32:_Failed_to_remove_raw_input_device
mov ecx, 0x10008
call fcn.140059240
xor ecx, ecx
mov qword [0x1400981a0], 0
call fcn.140057190
cvttsd2si ecx, qword [0x140098190]
lea rdx, [rsp + 0x40]
cvttsd2si eax, qword [0x140098198]
mov dword [rsp + 0x40], ecx
mov dword [rbx + 0x394], ecx
mov rcx, qword [rbx + 0x358]
mov dword [rsp + 0x44], eax
mov dword [rbx + 0x398], 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]
cmp dword [rbx + 0x84], 0x34001
jne 0x140056f37
mov rcx, qword [rbx + 0x58]
test rcx, rcx
je 0x140056f1b
mov rcx, qword [rcx + 8]
add rsp, 0x30
pop rbx
jmp qword [sym.imp.USER32.dll_SetCursor]
mov edx, 0x7f00
xor ecx, ecx
call qword [sym.imp.USER32.dll_LoadCursorW]
mov rcx, rax
add rsp, 0x30
pop rbx
jmp qword [sym.imp.USER32.dll_SetCursor]
xor ecx, ecx
add rsp, 0x30
pop rbx
jmp qword [sym.imp.USER32.dll_SetCursor]

Function at 0x140056ff0
Capabilities:
Log keystrokes via polling

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x20
mov ecx, 0x10
call qword [sym.imp.USER32.dll_GetKeyState]
movzx ebx, ax
mov ecx, 0x11
shr ebx, 0xf
call qword [sym.imp.USER32.dll_GetKeyState]
mov edi, ebx
mov esi, 0x8000
or edi, 2
mov ecx, 0x12
test si, ax
cmove edi, ebx
call qword [sym.imp.USER32.dll_GetKeyState]
and ax, si
mov ecx, 0x5c
mov esi, edi
or esi, 4
test ax, ax
cmove esi, edi
call qword [sym.imp.USER32.dll_GetKeyState]
mov ecx, 0x5b
movzx ebx, ax
call qword [sym.imp.USER32.dll_GetKeyState]
mov edi, esi
mov ecx, 0x14
or edi, 8
or bx, ax
cmovns edi, esi
call qword [sym.imp.USER32.dll_GetKeyState]
mov ebx, edi
mov ecx, 0x90
or ebx, 0x10
test al, 1
cmove ebx, edi
call qword [sym.imp.USER32.dll_GetKeyState]
mov rsi, qword [rsp + 0x38]
mov ecx, ebx
or ecx, 0x20
test al, 1
cmove ecx, ebx
mov rbx, qword [rsp + 0x30]
mov eax, ecx
add rsp, 0x20
pop rdi
ret

Function at 0x140058550
Capabilities:
Allocate thread local storage

Disassembly:
push rbx
sub rsp, 0x20
mov rbx, rcx
call qword [sym.imp.KERNEL32.dll_TlsAlloc]
mov dword [rbx + 4], eax
cmp eax, 0xffffffff
jne 0x140058580
lea rdx, str.Win32:_Failed_to_allocate_TLS_index
mov ecx, 0x10008
call fcn.140053970
xor eax, eax
add rsp, 0x20
pop rbx
ret
mov dword [rbx], 1
mov eax, 1
add rsp, 0x20
pop rbx
ret
Function at 0x140059590
Capabilities:
Log keystrokes

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rdi
push rbp
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0xb0]
sub rsp, 0x1b0
mov rax, qword [0x140094fc0]
xor rax, rsp
mov qword [rbp + 0xa0], rax
xor edx, edx
lea rcx, [rbp - 0x60]
mov r8d, 0x100
call fcn.1400615b2
mov cx, 0x3839
call fcn.140059340
xor r13d, r13d
mov ecx, 4
test eax, eax
mov r8d, 0x6d1
cmovne r13d, ecx
xor edx, edx
lea rcx, [0x140097aba]
call fcn.1400615b2
lea r14, [rsp + 0x40]
mov qword [rsp + 0x1e0], rsi
sub r14, 0x480
lea r15, [0x140097840]
mov ebx, 0x20
lea r12, [0x140097b5a]
nop word [rax + rax]
movsx edi, word [r15]
cmp edi, 0xffffffff
je 0x140059753
cmp ebx, 0x140
jb 0x1400596ce
cmp ebx, 0x14e
ja 0x1400596ce
mov dword [rsp + 0x40], 0x60
mov dword [rsp + 0x44], 0x61
mov dword [rsp + 0x48], 0x62
mov dword [rsp + 0x4c], 0x63
mov dword [rsp + 0x50], 0x64
mov dword [rsp + 0x54], 0x65
mov dword [rsp + 0x58], 0x66
mov dword [rsp + 0x5c], 0x67
mov dword [rsp + 0x60], 0x68
mov dword [rsp + 0x64], 0x69
mov dword [rsp + 0x68], 0x6e
mov dword [rsp + 0x6c], 0x6f
mov dword [rsp + 0x70], 0x6a
mov dword [rsp + 0x74], 0x6d
mov dword [rsp + 0x78], 0x6b
mov esi, dword [r14]
jmp 0x1400596dd
mov edx, 1
mov ecx, edi
call qword [sym.imp.USER32.dll_MapVirtualKeyW]
mov esi, eax
mov dword [rsp + 0x28], r13d
lea r9, [rbp - 0x80]
lea r8, [rbp - 0x60]
mov dword [rsp + 0x20], 0x10
mov edx, edi
mov ecx, esi
call qword [sym.imp.USER32.dll_ToUnicode]
cmp eax, 0xffffffff
jne 0x140059720
mov dword [rsp + 0x28], r13d
lea r9, [rbp - 0x80]
lea r8, [rbp - 0x60]
mov dword [rsp + 0x20], 0x10
mov edx, edi
mov ecx, esi
call qword [sym.imp.USER32.dll_ToUnicode]
cmp eax, 1
jl 0x140059753
xor esi, esi
lea r8, [rbp - 0x80]
mov qword [rsp + 0x38], rsi
xor edx, edx
mov qword [rsp + 0x30], rsi
mov ecx, 0xfde9
mov dword [rsp + 0x28], 5
lea r9d, [rsi + 1]
mov qword [rsp + 0x20], r12
call qword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
inc ebx
add r12, 5
add r14, 4
add r15, 2
cmp ebx, 0x15c
jle 0x140059630
mov rsi, qword [rsp + 0x1e0]
mov rcx, qword [rbp + 0xa0]
xor rcx, rsp
call fcn.1400605a0
lea r11, [rsp + 0x1b0]
mov rbx, qword [r11 + 0x38]
mov rdi, qword [r11 + 0x40]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rbp
ret
Function at 0x14005ea70
Capabilities:
Link many functions at runtime

Disassembly:
sub rsp, 0x48
mov rax, qword [0x140094fc0]
xor rax, rsp
mov qword [rsp + 0x38], rax
cmp qword [0x140097348], 0
lea rax, str.libOSMesa.dll
lea rcx, str.OSMesa.dll
mov qword [rsp + 0x20], rax
mov qword [rsp + 0x28], rcx
mov qword [rsp + 0x30], 0
je 0x14005eac5
mov eax, 1
mov rcx, qword [rsp + 0x38]
xor rcx, rsp
call fcn.1400605a0
add rsp, 0x48
ret
mov qword [rsp + 0x40], rbx
xor ebx, ebx
nop dword [rax]
mov rcx, rax
call sub.KERNEL32.dll_LoadLibraryA
mov qword [0x140097348], rax
test rax, rax
jne 0x14005eb07
mov rax, qword [rsp + rbx*8 + 0x28]
inc rbx
test rax, rax
jne 0x14005ead0
lea rdx, str.OSMesa:_Library_not_found
mov ecx, 0x10006
call fcn.140053970
jmp 0x14005ec24
lea rdx, str.OSMesaCreateContextExt
mov rcx, rax
call sub.KERNEL32.dll_GetProcAddress
mov rcx, qword [0x140097348]
lea rdx, str.OSMesaCreateContextAttribs
mov qword [0x140097350], rax
call sub.KERNEL32.dll_GetProcAddress
mov rcx, qword [0x140097348]
lea rdx, str.OSMesaDestroyContext
mov qword [0x140097358], rax
call sub.KERNEL32.dll_GetProcAddress
mov rcx, qword [0x140097348]
lea rdx, str.OSMesaMakeCurrent
mov qword [0x140097360], rax
call sub.KERNEL32.dll_GetProcAddress
mov rcx, qword [0x140097348]
lea rdx, str.OSMesaGetColorBuffer
mov qword [0x140097368], rax
call sub.KERNEL32.dll_GetProcAddress
mov rcx, qword [0x140097348]
lea rdx, str.OSMesaGetDepthBuffer
mov qword [0x140097370], rax
call sub.KERNEL32.dll_GetProcAddress
mov rcx, qword [0x140097348]
lea rdx, str.OSMesaGetProcAddress
mov qword [0x140097378], rax
call sub.KERNEL32.dll_GetProcAddress
cmp qword [0x140097350], 0
mov qword [0x140097380], rax
je 0x14005ebf7
cmp qword [0x140097360], 0
je 0x14005ebf7
cmp qword [0x140097368], 0
je 0x14005ebf7
cmp qword [0x140097370], 0
je 0x14005ebf7
cmp qword [0x140097378], 0
je 0x14005ebf7
test rax, rax
je 0x14005ebf7
mov eax, 1
jmp 0x14005ec26
lea rdx, str.OSMesa:_Failed_to_load_required_entry_points
mov ecx, 0x10008
call fcn.140053970
mov rcx, qword [0x140097348]
test rcx, rcx
je 0x14005ec24
call fcn.14005f200
mov qword [0x140097348], 0
xor eax, eax
mov rbx, qword [rsp + 0x40]
mov rcx, qword [rsp + 0x38]
xor rcx, rsp
call fcn.1400605a0
add rsp, 0x48
ret

Function at 0x140061264
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x1400612ae
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x1400612ae
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x1400612ae
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x1400612ae
cmp dword [rcx + 0x84], 0xe
jbe 0x1400612ae
cmp dword [rcx + 0xf8], 0
setne al
jmp 0x1400612b0
xor al, al
add rsp, 0x28
ret