joyce8/EMBER2024-capa huggingface dataset:
Function at 0x14001b500
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 0x14001b528
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 0x14001b54e
mov rax, qword [rcx + 0x58]
mov ecx, dword [rax]
jmp 0x14001b550
xor ecx, ecx
movsxd rbp, ecx
test rbx, rbx
jle 0x14001b5a9
test ecx, ecx
jle 0x14001b589
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 0x14001b5a9
mov r9, qword [rdi + 0x80]
test r9, r9
je 0x14001b5a9
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 0x14001b5d0
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 0x14001b5f2
xor eax, eax
add rsp, 0x30
pop r14
pop rsi
pop rbp
ret
cmp qword [rcx + 0x68], 0
je 0x14001b608
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 0x14001b624
mov rax, qword [rcx + 0x50]
mov ecx, dword [rax]
jmp 0x14001b626
xor ecx, ecx
movsxd rax, ecx
test ecx, ecx
je 0x14001b662
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 0x14001b6fe
mov r8, qword [rsi + 0x18]
lea rax, [rsi + 0x70]
cmp qword [r8], rax
jne 0x14001b69d
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 0x14001b6de
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 0x14001b6fe
cmp rbx, rax
ja 0x14001b6b0
test rbx, rbx
je 0x14001b6fe
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
Function at 0x14001bb00
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 0x20], rbx
push rdi
sub rsp, 0x80
mov rax, qword [0x140137010]
xor rax, rsp
mov qword [rsp + 0x78], rax
mov edi, edx
mov rbx, rcx
cmp edx, 0xffffffff
jne 0x14001bb2d
xor eax, eax
jmp 0x14001bc99
mov rax, qword [rcx + 0x40]
mov rdx, qword [rax]
test rdx, rdx
je 0x14001bb67
mov rax, qword [rcx + 0x58]
movsxd r8, dword [rax]
lea rcx, [rdx + r8]
cmp rdx, rcx
jae 0x14001bb67
lea ecx, [r8 - 1]
mov dword [rax], ecx
mov eax, edi
mov rdx, qword [rbx + 0x40]
mov r8, qword [rdx]
lea rcx, [r8 + 1]
mov qword [rdx], rcx
mov byte [r8], dil
jmp 0x14001bc99
cmp qword [rbx + 0x80], 0
mov qword [rsp + 0xa0], rsi
je 0x14001bc8c
mov r8, qword [rbx + 0x18]
lea rax, [rbx + 0x70]
cmp qword [r8], rax
jne 0x14001bbaa
mov rcx, qword [rbx + 0x88]
mov rdx, qword [rbx + 0x90]
mov qword [r8], rcx
sub edx, ecx
mov rax, qword [rbx + 0x38]
mov qword [rax], rcx
mov rax, qword [rbx + 0x50]
mov dword [rax], edx
mov rcx, qword [rbx + 0x68]
test rcx, rcx
jne 0x14001bbd5
mov rdx, qword [rbx + 0x80]
movsx ecx, dil
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fputc]
mov ecx, 0xffffffff
cmp eax, ecx
cmovne ecx, edi
mov eax, ecx
jmp 0x14001bc91
lea rax, [rsp + 0x40]
mov byte [rsp + 0x50], dil
mov qword [rsp + 0x38], rax
lea rdx, [rbx + 0x74]
lea rax, [rsp + 0x78]
mov qword [rsp + 0x30], rax
lea r9, [rsp + 0x51]
lea rax, [rsp + 0x58]
mov qword [rsp + 0x28], rax
lea r8, [rsp + 0x50]
lea rax, [rsp + 0x48]
mov qword [rsp + 0x20], rax
call qword [sym.imp.MSVCP140.dll_public:_int___cdecl_std::codecvt_char__char__struct__Mbstatet_::out_struct__Mbstatet____ptr64__char_const____ptr64__char_const____ptr64__char_const____ptr64____ptr64__char____ptr64__char____ptr64__char____ptr64____ptr64_const___ptr64]
test eax, eax
je 0x14001bc44
sub eax, 1
je 0x14001bc44
cmp eax, 2
jne 0x14001bc8c
movsx ecx, byte [rsp + 0x50]
mov rdx, qword [rbx + 0x80]
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fputc]
mov ecx, 0xffffffff
cmp eax, ecx
cmovne ecx, edi
mov eax, ecx
jmp 0x14001bc91
mov rsi, qword [rsp + 0x40]
lea rax, [rsp + 0x58]
sub rsi, rax
je 0x14001bc72
mov r9, qword [rbx + 0x80]
lea rcx, [rsp + 0x58]
mov r8, rsi
mov edx, 1
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
cmp rsi, rax
jne 0x14001bc8c
lea rax, [rsp + 0x50]
mov byte [rbx + 0x71], 1
cmp qword [rsp + 0x48], rax
mov ecx, 0xffffffff
cmovne ecx, edi
mov eax, ecx
jmp 0x14001bc91
mov eax, 0xffffffff
mov rsi, qword [rsp + 0xa0]
mov rcx, qword [rsp + 0x78]
xor rcx, rsp
call fcn.1400b5770
mov rbx, qword [rsp + 0xa8]
add rsp, 0x80
pop rdi
ret
Function at 0x14001bff0
Capabilities:
Write file on windows

Disassembly:
push rbx
sub rsp, 0x60
mov rax, qword [0x140137010]
xor rax, rsp
mov qword [rsp + 0x58], rax
cmp qword [rcx + 0x68], 0
mov rbx, rcx
je 0x14001c0c3
cmp byte [rcx + 0x71], 0
je 0x14001c0c3
mov rax, qword [rcx]
mov edx, 0xffffffff
mov qword [rsp + 0x78], rdi
call qword [rax + 0x18]
cmp eax, 0xffffffff
je 0x14001c0bf
mov rcx, qword [rbx + 0x68]
lea rax, [rsp + 0x30]
lea rdx, [rbx + 0x74]
mov qword [rsp + 0x20], rax
lea r9, [rsp + 0x58]
lea r8, [rsp + 0x38]
call qword [sym.imp.MSVCP140.dll_public:_int___cdecl_std::codecvt_char__char__struct__Mbstatet_::unshift_struct__Mbstatet____ptr64__char____ptr64__char____ptr64__char____ptr64____ptr64_const___ptr64]
test eax, eax
je 0x14001c084
sub eax, 1
je 0x14001c088
cmp eax, 2
jne 0x14001c0bf
mov byte [rbx + 0x71], 0
mov al, 1
mov rdi, qword [rsp + 0x78]
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.1400b5770
add rsp, 0x60
pop rbx
ret
mov byte [rbx + 0x71], 0
mov rdi, qword [rsp + 0x30]
lea rax, [rsp + 0x38]
sub rdi, rax
je 0x14001c0b6
mov r9, qword [rbx + 0x80]
lea rcx, [rsp + 0x38]
mov r8, rdi
mov edx, 1
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
cmp rdi, rax
jne 0x14001c0bf
cmp byte [rbx + 0x71], 0
sete al
jmp 0x14001c06c
xor al, al
jmp 0x14001c06c
mov al, 1
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.1400b5770
add rsp, 0x60
pop rbx
ret
Function at 0x14001d870
Capabilities:
Encode data using xor
Hash data using fnv

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rsi
push rdi
push r14
push r15
lea rbp, [rsp - 0x37]
sub rsp, 0xf0
mov rax, qword [0x140137010]
xor rax, rsp
mov qword [rbp + 0x27], rax
mov rbx, rdx
mov rsi, rcx
xor r14d, r14d
mov r8, qword [rdx + 0x10]
cmp qword [rdx + 0x18], 0x10
jb 0x14001d8ad
mov rdx, qword [rdx]
movabs r9, 0xcbf29ce484222325
mov rcx, r14
test r8, r8
je 0x14001d8e3
movabs r10, 0x100000001b3
nop dword [rax]
movzx eax, byte [rcx + rdx]
xor r9, rax
imul r9, r10
inc rcx
cmp rcx, r8
jb 0x14001d8d0
mov r8, rbx
lea rdx, [rsp + 0x20]
lea rcx, [rsi + 0x20]
call fcn.140016da0
mov rax, qword [rax + 8]
test rax, rax
jne 0x14001d901
mov rax, qword [rsi + 0x28]
cmp rax, qword [rsi + 0x28]
je 0x14001d910
add rax, 0x30
jmp 0x14001dae5
xorps xmm0, xmm0
movups xmmword [rsp + 0x20], xmm0
xorps xmm1, xmm1
movdqu xmmword [rsp + 0x30], xmm1
mov r8d, 7
lea rdx, str.Geodata
lea rcx, [rsp + 0x20]
call fcn.140004240
nop
lea r8, [rsp + 0x20]
mov edx, 4
lea rcx, [rbp - 0x59]
call fcn.1400b4710
mov r15, rax
mov rcx, rax
call fcn.1400b4ac0
test al, al
je 0x14001d96b
lea rdx, str.Loading_geodata:
mov rcx, qword [r15 + 0x28]
call fcn.140003f20
mov rcx, r15
call fcn.1400b4ac0
test al, al
je 0x14001d991
mov rdx, rbx
cmp qword [rbx + 0x18], 0x10
jb 0x14001d984
mov rdx, qword [rbx]
mov r8, qword [rbx + 0x10]
mov rcx, qword [r15 + 0x28]
call fcn.140004f80
mov rcx, r15
call fcn.1400b4810
nop
lea rcx, [rbp - 0x51]
call fcn.140003b00
nop
lea rcx, [rsp + 0x20]
call fcn.140003b00
lea r8, str..l2j
mov rdx, rbx
lea rcx, [rbp - 0x59]
call fcn.14001c100
mov rdi, rax
mov r15, qword [rax + 0x10]
cmp qword [rax + 0x18], 0x10
jb 0x14001d9d2
mov rdi, qword [rax]
call fcn.1400b5104
mov qword [rsp + 0x20], rdi
mov qword [rsp + 0x28], r15
lea r8, [rsp + 0x20]
mov edx, eax
lea rcx, [rbp - 0x79]
call fcn.1400017b0
nop
lea r8, [rbp - 0x79]
mov rdx, rsi
lea rcx, [rbp + 7]
call fcn.14001a9c0
nop
lea rcx, [rbp - 0x79]
call fcn.140003810
nop
lea rcx, [rbp - 0x59]
call fcn.140003b00
lea rcx, [rbp + 7]
call fcn.140001f80
test al, al
je 0x14001da3a
lea r8, [rbp + 7]
mov rdx, rbx
mov rcx, rsi
call fcn.14001db10
mov r14, rax
jmp 0x14001dad9
xorps xmm0, xmm0
movups xmmword [rsp + 0x20], xmm0
xorps xmm1, xmm1
movdqu xmmword [rsp + 0x30], xmm1
mov r8d, 7
lea rdx, str.Geodata
lea rcx, [rsp + 0x20]
call fcn.140004240
nop
lea r8, [rsp + 0x20]
mov edx, 4
lea rcx, [rbp - 0x29]
call fcn.1400b4710
mov rsi, rax
mov rcx, rax
call fcn.1400b4ac0
test al, al
je 0x14001da95
lea rdx, str.Cant_find_geodata:
mov rcx, qword [rsi + 0x28]
call fcn.140003f20
mov rcx, rsi
call fcn.1400b4ac0
test al, al
je 0x14001dabb
mov r8, qword [rbx + 0x10]
cmp qword [rbx + 0x18], 0x10
jb 0x14001daaf
mov rbx, qword [rbx]
mov rdx, rbx
mov rcx, qword [rsi + 0x28]
call fcn.140004f80
mov rcx, rsi
call fcn.1400b4810
nop
lea rcx, [rbp - 0x21]
call fcn.140003b00
nop
lea rcx, [rsp + 0x20]
call fcn.140003b00
nop
lea rcx, [rbp + 7]
call fcn.140003810
mov rax, r14
mov rcx, qword [rbp + 0x27]
xor rcx, rsp
call fcn.1400b5770
mov rbx, qword [rsp + 0x130]
add rsp, 0xf0
pop r15
pop r14
pop rdi
pop rsi
pop rbp
ret
Function at 0x140049360
Capabilities:
Get thread local storage value

Disassembly:
push rsi
sub rsp, 0x30
mov rax, qword [0x140137010]
xor rax, rsp
mov qword [rsp + 0x28], rax
cmp dword [0x14013edc0], 0
mov rsi, rcx
jne 0x1400493a2
xor edx, edx
mov ecx, 0x10001
call fcn.14004aaa0
xor eax, eax
mov rcx, qword [rsp + 0x28]
xor rcx, rsp
call fcn.1400b5770
add rsp, 0x30
pop rsi
ret
mov ecx, dword [0x1401403e0]
mov qword [rsp + 0x50], rdi
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rdi, rax
test rax, rax
jne 0x1400493d3
lea rdx, str.Cannot_query_extension_without_a_current_OpenGL_or_OpenGL_ES_context
mov ecx, 0x10002
call fcn.14004aaa0
xor eax, eax
jmp 0x14004945d
cmp byte [rsi], 0
jne 0x1400493ed
lea rdx, str.Extension_name_cannot_be_an_empty_string
mov ecx, 0x10004
call fcn.14004aaa0
xor eax, eax
jmp 0x14004945d
cmp dword [rax + 0x208], 3
mov qword [rsp + 0x48], rbx
jl 0x140049475
lea rdx, [rsp + 0x20]
mov ecx, 0x821d
call qword [rax + 0x238]
xor ebx, ebx
cmp dword [rsp + 0x20], ebx
jle 0x14004944f
mov edx, ebx
mov ecx, 0x1f03
call qword [rdi + 0x230]
test rax, rax
je 0x140049485
mov r8, rsi
sub r8, rax
nop dword [rax + rax]
movzx edx, byte [rax]
movzx ecx, byte [rax + r8]
sub edx, ecx
jne 0x140049443
inc rax
test ecx, ecx
jne 0x140049430
test edx, edx
je 0x1400494a9
inc ebx
cmp ebx, dword [rsp + 0x20]
jl 0x140049413
mov rcx, rsi
call qword [rdi + 0x260]
mov rbx, qword [rsp + 0x48]
mov rdi, qword [rsp + 0x50]
mov rcx, qword [rsp + 0x28]
xor rcx, rsp
call fcn.1400b5770
add rsp, 0x30
pop rsi
ret
mov ecx, 0x1f03
call qword [rax + 0x240]
test rax, rax
jne 0x14004949a
lea rdx, str.Extension_string_retrieval_is_broken
mov ecx, 0x10008
call fcn.14004aaa0
xor eax, eax
jmp 0x140049458
mov rdx, rax
mov rcx, rsi
call fcn.1400492d0
test eax, eax
je 0x14004944f
mov eax, 1
jmp 0x140049458
Function at 0x14004bc40
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
cmp dword [0x14013edc0], 0
mov edi, r8d
mov rbx, rcx
jne 0x14004bc6f
xor edx, edx
mov ecx, 0x10001
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
jmp fcn.14004aaa0
lea eax, [r8 - 0x34001]
cmp eax, 2
jbe 0x14004bc96
lea rdx, str.Invalid_cursor_mode_0x_08X
mov ecx, 0x10003
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
jmp fcn.14004aaa0
cmp dword [rcx + 0x7c], edi
je 0x14004bd56
lea r8, [rcx + 0x1f0]
mov dword [rcx + 0x7c], edi
lea rdx, [rcx + 0x1e8]
call fcn.140053f10
cmp edi, 0x34003
jne 0x14004bce2
call qword [sym.imp.USER32.dll_GetActiveWindow]
cmp qword [rbx + 0x350], rax
jne 0x14004bd56
mov rcx, rbx
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
jmp fcn.140051130
cmp qword [0x140141238], rbx
mov rcx, rbx
jne 0x14004bcfd
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
jmp fcn.140051200
call fcn.1400512d0
test eax, eax
je 0x14004bd56
cmp dword [rbx + 0x7c], 0x34001
jne 0x14004bd4e
mov rcx, qword [rbx + 0x50]
test rcx, rcx
je 0x14004bd2d
mov rcx, qword [rcx + 8]
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
jmp qword [sym.imp.USER32.dll_SetCursor]
mov edx, 0x7f00
xor ecx, ecx
call qword [sym.imp.USER32.dll_LoadCursorW]
mov rcx, rax
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
jmp qword [sym.imp.USER32.dll_SetCursor]
xor ecx, ecx
call qword [sym.imp.USER32.dll_SetCursor]
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret

Function at 0x14004bdf0
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push rdi
sub rsp, 0x20
cmp dword [0x14013edc0], 0
mov rdi, rcx
jne 0x14004be13
xor edx, edx
mov ecx, 0x10001
add rsp, 0x20
pop rdi
jmp fcn.14004aaa0
test rdi, rdi
je 0x14004bef3
mov qword [rsp + 0x30], rbx
mov rbx, qword [0x14013f1b0]
test rbx, rbx
je 0x14004be9f
mov qword [rsp + 0x38], rsi
xor esi, esi
cmp qword [rbx + 0x50], rdi
jne 0x14004be92
cmp dword [0x14013edc0], esi
jne 0x14004be50
xor edx, edx
mov ecx, 0x10001
call fcn.14004aaa0
jmp 0x14004be92
mov rcx, rbx
mov qword [rbx + 0x50], rsi
call fcn.1400512d0
test eax, eax
je 0x14004be92
cmp dword [rbx + 0x7c], 0x34001
jne 0x14004be8a
mov rcx, qword [rbx + 0x50]
test rcx, rcx
je 0x14004be78
mov rcx, qword [rcx + 8]
jmp 0x14004be8c
mov edx, 0x7f00
xor ecx, ecx
call qword [sym.imp.USER32.dll_LoadCursorW]
mov rcx, rax
jmp 0x14004be8c
xor ecx, ecx
call qword [sym.imp.USER32.dll_SetCursor]
mov rbx, qword [rbx]
test rbx, rbx
jne 0x14004be34
mov rsi, qword [rsp + 0x38]
mov rcx, qword [rdi + 8]
mov rbx, qword [rsp + 0x30]
test rcx, rcx
je 0x14004beb3
call qword [sym.imp.USER32.dll_DestroyIcon]
mov rcx, qword [0x14013f1a8]
lea rdx, [0x14013f1a8]
cmp rcx, rdi
je 0x14004bede
nop word [rax + rax]
mov rax, qword [rcx]
mov rdx, rcx
mov rcx, rax
cmp rax, rdi
jne 0x14004bed0
mov rax, qword [rdi]
mov rcx, rdi
mov qword [rdx], rax
add rsp, 0x20
pop rdi
jmp qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
add rsp, 0x20
pop rdi
ret
Function at 0x14004eb10
Capabilities:
Log keystrokes

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
push r12
push r14
push r15
sub rsp, 0x1b0
mov rax, qword [0x140137010]
xor rax, rsp
mov qword [rsp + 0x1a0], rax
xor edx, edx
lea rcx, [rsp + 0xa0]
mov r8d, pe_nt_image_headers64
call sub.VCRUNTIME140.dll_memset
xor edx, edx
lea rcx, [0x140140b52]
mov r8d, 0x6d1
call sub.VCRUNTIME140.dll_memset
lea r14, [rsp + 0x40]
mov qword [rsp + 0x1d0], rdi
sub r14, 0x480
lea rbp, [0x1401408d8]
xor r12d, r12d
lea r15, [0x140140bf2]
mov ebx, 0x20
movsx esi, word [rbp]
cmp esi, 0xffffffff
je 0x14004ecc8
cmp ebx, 0x140
jb 0x14004ec2f
cmp ebx, 0x14e
ja 0x14004ec2f
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 edi, dword [r14]
jmp 0x14004ec3e
mov edx, 1
mov ecx, esi
call qword [sym.imp.USER32.dll_MapVirtualKeyW]
mov edi, eax
mov dword [rsp + 0x28], r12d
lea r9, [rsp + 0x80]
lea r8, [rsp + 0xa0]
mov dword [rsp + 0x20], 0x10
mov edx, esi
mov ecx, edi
call qword [sym.imp.USER32.dll_ToUnicode]
cmp eax, 0xffffffff
jne 0x14004ec91
mov dword [rsp + 0x28], r12d
lea r9, [rsp + 0x80]
lea r8, [rsp + 0xa0]
mov dword [rsp + 0x20], 0x10
mov edx, esi
mov ecx, edi
call qword [sym.imp.USER32.dll_ToUnicode]
cmp eax, 1
jl 0x14004ecc8
mov qword [rsp + 0x38], r12
lea r8, [rsp + 0x80]
mov qword [rsp + 0x30], r12
mov r9d, 1
mov dword [rsp + 0x28], 5
xor edx, edx
mov ecx, 0xfde9
mov qword [rsp + 0x20], r15
call qword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
inc ebx
add r15, 5
add r14, 4
add rbp, 2
cmp ebx, 0x15c
jle 0x14004eb91
mov rdi, qword [rsp + 0x1d0]
mov rcx, qword [rsp + 0x1a0]
xor rcx, rsp
call fcn.1400b5770
lea r11, [rsp + 0x1b0]
mov rbx, qword [r11 + 0x28]
mov rbp, qword [r11 + 0x30]
mov rsi, qword [r11 + 0x38]
mov rsp, r11
pop r15
pop r14
pop r12
ret

Function at 0x140051050
Capabilities:
Register raw input devices

Disassembly:
sub rsp, 0x48
mov rax, qword [0x140137010]
xor rax, rsp
mov qword [rsp + 0x30], rax
mov rax, qword [rcx + 0x350]
mov edx, 1
lea rcx, [rsp + 0x20]
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 0x1400510a1
lea rdx, str.Win32:_Failed_to_register_raw_input_device
mov ecx, 0x10008
call fcn.14004ea00
mov rcx, qword [rsp + 0x30]
xor rcx, rsp
call fcn.1400b5770
add rsp, 0x48
ret
Function at 0x1400510c0
Capabilities:
Register raw input devices

Disassembly:
sub rsp, 0x48
mov rax, qword [0x140137010]
xor rax, rsp
mov qword [rsp + 0x30], rax
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 0x140051111
lea rdx, str.Win32:_Failed_to_remove_raw_input_device
mov ecx, 0x10008
call fcn.14004ea00
mov rcx, qword [rsp + 0x30]
xor rcx, rsp
call fcn.1400b5770
add rsp, 0x48
ret

Function at 0x140051490
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 ecx, 0x12
or edi, 2
test ax, ax
cmovns edi, ebx
call qword [sym.imp.USER32.dll_GetKeyState]
mov esi, edi
mov ecx, 0x5c
or esi, 4
test ax, ax
cmovns 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 0x1400541e0
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push rbx
sub rsp, 0x20
cmp dword [0x14013edc0], 0
mov rbx, rcx
jne 0x140054203
xor edx, edx
mov ecx, 0x10001
add rsp, 0x20
pop rbx
jmp fcn.14004aaa0
test rbx, rbx
je 0x140054353
xorps xmm0, xmm0
xor eax, eax
movups xmmword [rcx + 0x2c8], xmm0
movups xmmword [rcx + 0x2d8], xmm0
movups xmmword [rcx + 0x2e8], xmm0
movups xmmword [rcx + 0x2f8], xmm0
movups xmmword [rcx + 0x308], xmm0
movups xmmword [rcx + 0x318], xmm0
movups xmmword [rcx + 0x328], xmm0
movups xmmword [rcx + 0x338], xmm0
mov qword [rcx + 0x348], rax
mov ecx, dword [0x1401403e0]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
cmp rbx, rax
jne 0x140054291
cmp dword [0x14013edc0], 0
jne 0x140054278
xor edx, edx
mov ecx, 0x10001
call fcn.14004aaa0
jmp 0x140054291
mov ecx, dword [0x1401403e0]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
test rax, rax
je 0x140054291
xor ecx, ecx
call qword [rax + 0x248]
cmp qword [rbx + 0x48], 0
je 0x1400542a0
mov rcx, rbx
call fcn.140051800
mov rax, qword [rbx + 0x270]
test rax, rax
je 0x1400542b1
mov rcx, rbx
call rax
cmp qword [0x140141238], rbx
jne 0x1400542c5
mov qword [0x140141238], 0
mov rcx, qword [rbx + 0x350]
test rcx, rcx
je 0x1400542f6
lea rdx, str.GLFW
call qword [sym.imp.USER32.dll_RemovePropW]
mov rcx, qword [rbx + 0x350]
call qword [sym.imp.USER32.dll_DestroyWindow]
mov qword [rbx + 0x350], 0
mov rcx, qword [rbx + 0x358]
test rcx, rcx
je 0x140054308
call qword [sym.imp.USER32.dll_DestroyIcon]
mov rcx, qword [rbx + 0x360]
test rcx, rcx
je 0x14005431a
call qword [sym.imp.USER32.dll_DestroyIcon]
mov rcx, qword [0x14013f1b0]
lea rdx, [0x14013f1b0]
cmp rcx, rbx
je 0x14005433e
nop dword [rax]
mov rax, qword [rcx]
mov rdx, rcx
mov rcx, rax
cmp rax, rbx
jne 0x140054330
mov rax, qword [rbx]
mov rcx, rbx
mov qword [rdx], rax
add rsp, 0x20
pop rbx
jmp qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
add rsp, 0x20
pop rbx
ret

Function at 0x140055a40
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 0x140055a9d
lea rbx, [0x1400df5f0]
movzx r8d, byte [r9]
lea r9, [r9 + 1]
dec r10
cmp r8b, 0x23
jne 0x140055a84
cmp r10, 2
jb 0x140055a84
cmp byte [r9], r8b
jne 0x140055a84
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 0x140055a60
not eax
mov rbx, qword [rsp + 8]
ret
movzx r8d, byte [rcx]
inc r9
test r8b, r8b
je 0x140055adf
lea rbx, [0x1400df5f0]
cmp r8b, 0x23
jne 0x140055ac3
cmp byte [r9], r8b
jne 0x140055ac3
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 0x140055ab0
mov rbx, qword [rsp + 8]
not eax
ret
Function at 0x140055c40
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 0x18], rbx
push r14
sub rsp, 0x20
mov r14, r8
test r8, r8
je 0x140055c5a
mov qword [r8], 0
lea rdx, [0x1400fe7c4]
call fcn.140055af0
mov rbx, rax
test rax, rax
jne 0x140055c7a
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 0x140055d51
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 0x140055d51
mov rcx, rbx
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_ftell]
movsxd rdi, eax
cmp edi, 0xffffffff
je 0x140055d51
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 0x140055d51
cmp rdi, 0xffffffffffffffff
je 0x140055d51
mov rax, qword [0x1401414b0]
test rax, rax
je 0x140055cee
inc dword [rax + 0x3bc]
mov rcx, rdi
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
mov rsi, rax
test rax, rax
je 0x140055d51
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 0x140055d3e
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
mov rax, qword [0x1401414b0]
test rax, rax
je 0x140055d33
dec dword [rax + 0x3bc]
mov rcx, rsi
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
jmp 0x140055d5a
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
test r14, r14
je 0x140055d4c
mov qword [r14], rdi
mov rax, rsi
jmp 0x140055d5c
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