joyce8/EMBER2024-capa huggingface dataset:
Function at 0x458330
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [ebp + 0x10]
push ebx
mov ebx, ecx
mov ecx, dword [ebp + 0xc]
push esi
mov esi, dword [ebp + 8]
mov dword [ebp - 4], esi
test eax, eax
jg 0x45835c
jl 0x458350
test ecx, ecx
jne 0x45835c
pop esi
xor eax, eax
xor edx, edx
pop ebx
mov esp, ebp
pop ebp
ret 0xc
cmp dword [ebx + 0x38], 0
je 0x458375
push eax
push ecx
push esi
mov ecx, ebx
call dword [sym.imp.MSVCP140.dll_protected_virtual:_long_long___int64____thiscall_std::basic_streambuf_char__struct_std::char_traits_char__::xsgetn_char___long_long___int64__]
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
mov eax, dword [ebx + 0x1c]
push edi
mov edi, ecx
mov eax, dword [eax]
mov dword [ebp - 8], eax
test eax, eax
je 0x4583bd
mov eax, dword [ebx + 0x2c]
lea edx, [ebx + 0x2c]
mov dword [ebp - 0xc], edx
mov eax, dword [eax]
test eax, eax
je 0x4583c3
cmp eax, ecx
mov esi, ecx
cmovb esi, eax
push esi
push dword [ebp - 8]
push dword [ebp - 4]
call sub.VCRUNTIME140.dll_memcpy
mov eax, dword [ebx + 0x2c]
sub edi, esi
add dword [ebp - 4], esi
add esp, 0xc
sub dword [eax], esi
mov eax, dword [ebx + 0x1c]
add dword [eax], esi
mov esi, dword [ebp - 4]
jmp 0x4583c3
lea eax, [ebx + 0x2c]
mov dword [ebp - 0xc], eax
cmp dword [ebx + 0x4c], 0
je 0x458436
mov ecx, dword [ebx + 0xc]
lea eax, [ebx + 0x3c]
cmp dword [ecx], eax
jne 0x4583ec
mov eax, dword [ebx + 0xc]
mov edx, dword [ebx + 0x54]
mov ecx, dword [ebx + 0x50]
sub edx, ecx
mov dword [eax], ecx
mov eax, dword [ebx + 0x1c]
mov dword [eax], ecx
mov eax, dword [ebp - 0xc]
mov eax, dword [eax]
mov dword [eax], edx
mov eax, dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
cmp edi, 0xfff
jbe 0x458424
nop dword [eax]
push dword [ebx + 0x4c]
push 0xfff
push 1
push esi
call eax
add esp, 0x10
add esi, eax
sub edi, eax
cmp eax, 0xfff
jne 0x458436
cmp edi, eax
mov eax, dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
ja 0x458400
test edi, edi
je 0x458436
push dword [ebx + 0x4c]
push edi
push 1
push esi
call eax
add esp, 0x10
sub edi, eax
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 0x10]
sub eax, edi
pop edi
pop esi
sbb edx, 0
pop ebx
mov esp, ebp
pop ebp
ret 0xc
Function at 0x4587b0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x30
mov eax, dword [0x4bf380]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 8]
push esi
mov esi, ecx
cmp ebx, 0xffffffff
jne 0x4587e0
pop esi
xor eax, eax
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00485b63
mov esp, ebp
pop ebp
ret 4
mov eax, dword [esi + 0x20]
push edi
mov ecx, dword [eax]
test ecx, ecx
je 0x45881c
mov edx, dword [esi + 0x30]
mov edi, dword [edx]
lea eax, [edi + ecx]
cmp ecx, eax
jae 0x45881c
lea ecx, [edi - 1]
mov eax, ebx
mov dword [edx], ecx
mov edx, dword [esi + 0x20]
pop edi
mov esi, dword [edx]
lea ecx, [esi + 1]
mov dword [edx], ecx
mov byte [esi], bl
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00485b63
mov esp, ebp
pop ebp
ret 4
cmp dword [esi + 0x4c], 0
je 0x4588f3
mov edi, dword [esi + 0xc]
lea eax, [esi + 0x3c]
cmp dword [edi], eax
jne 0x458844
mov edx, dword [esi + 0x54]
mov ecx, dword [esi + 0x50]
sub edx, ecx
mov dword [edi], ecx
mov eax, dword [esi + 0x1c]
mov dword [eax], ecx
mov eax, dword [esi + 0x2c]
mov dword [eax], edx
mov ecx, dword [esi + 0x38]
test ecx, ecx
jne 0x458850
movsx eax, bl
jmp 0x458888
lea eax, [ebp - 0x2c]
mov byte [ebp - 0x25], bl
push eax
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0x24]
push eax
lea eax, [ebp - 0x30]
push eax
lea eax, [ebp - 0x24]
push eax
lea eax, [ebp - 0x25]
push eax
lea eax, [esi + 0x40]
push eax
call dword [sym.imp.MSVCP140.dll_public:_int___thiscall_std::codecvt_char__char__struct__Mbstatet_::out_struct__Mbstatet___char_const___char_const___char_const____char___char___char___const]
sub eax, 0
je 0x4588b2
sub eax, 1
je 0x4588b2
sub eax, 2
jne 0x4588f3
movsx eax, byte [ebp - 0x25]
push dword [esi + 0x4c]
push eax
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fputc]
add esp, 8
or ecx, 0xffffffff
cmp eax, ecx
cmove ebx, ecx
pop edi
pop esi
mov eax, ebx
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00485b63
mov esp, ebp
pop ebp
ret 4
mov edi, dword [ebp - 0x2c]
lea eax, [ebp - 0x24]
sub edi, eax
je 0x4588d0
push dword [esi + 0x4c]
push edi
push 1
push eax
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
add esp, 0x10
cmp edi, eax
jne 0x4588f3
lea ecx, [ebp - 0x25]
mov byte [esi + 0x3d], 1
or eax, 0xffffffff
cmp dword [ebp - 0x30], ecx
pop edi
pop esi
cmovne eax, ebx
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00485b63
mov esp, ebp
pop ebp
ret 4
mov ecx, dword [ebp - 4]
or eax, 0xffffffff
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00485b63
mov esp, ebp
pop ebp
ret 4
Function at 0x458af0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
mov eax, dword [0x4bf380]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, ecx
cmp dword [esi + 0x38], 0
je 0x458bac
cmp byte [esi + 0x3d], 0
je 0x458bac
mov eax, dword [esi]
push edi
push 0xffffffffffffffff
call dword [eax + 0xc]
cmp eax, 0xffffffff
je 0x458b9a
mov ecx, dword [esi + 0x38]
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0x24]
push eax
lea eax, [esi + 0x40]
push eax
call dword [sym.imp.MSVCP140.dll_public:_int___thiscall_std::codecvt_char__char__struct__Mbstatet_::unshift_struct__Mbstatet___char___char___char___const]
sub eax, 0
je 0x458b61
sub eax, 1
je 0x458b65
sub eax, 2
jne 0x458b9a
mov byte [esi + 0x3d], al
mov al, 1
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00485b63
mov esp, ebp
pop ebp
ret
mov byte [esi + 0x3d], 0
mov edi, dword [ebp - 0x28]
lea eax, [ebp - 0x24]
sub edi, eax
je 0x458b83
push dword [esi + 0x4c]
push edi
push 1
push eax
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
add esp, 0x10
cmp edi, eax
jne 0x458b9a
cmp byte [esi + 0x3d], 0
pop edi
sete al
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00485b63
mov esp, ebp
pop ebp
ret
pop edi
xor al, al
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00485b63
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
mov al, 1
xor ecx, ebp
pop esi
call fcn.00485b63
mov esp, ebp
pop ebp
ret
Function at 0x460ff0
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
mov esi, ecx
push edi
mov edx, dword [esi + 8]
mov edi, edx
and edi, 7
je 0x46101b
cmp edx, edi
jge 0x46100b
call fcn.00460900
mov eax, dword [esi + 0xc]
mov ecx, edi
shr eax, cl
sub dword [esi + 8], edi
mov edx, dword [esi + 8]
mov dword [esi + 0xc], eax
xor eax, eax
mov ecx, edx
test edx, edx
jle 0x461048
mov edx, dword [esi + 0xc]
push ebx
mov bl, dl
nop dword [eax]
mov byte [ebp + eax - 4], bl
sub ecx, 8
shr edx, 8
inc eax
mov dword [esi + 0xc], edx
mov bl, dl
test ecx, ecx
jg 0x461030
pop ebx
mov dword [esi + 8], ecx
test ecx, ecx
jns 0x461066
mov eax, dword fs:[0x2c]
mov eax, dword [eax]
mov dword [eax + 0xc], str.zlib_corrupt
pop edi
xor eax, eax
pop esi
mov esp, ebp
pop ebp
ret
cmp eax, 4
jge 0x461087
mov edi, dword [esi + 4]
mov ecx, dword [esi]
cmp ecx, edi
jb 0x461078
xor dl, dl
jmp 0x46107d
mov dl, byte [ecx]
inc ecx
mov dword [esi], ecx
mov byte [ebp + eax - 4], dl
inc eax
cmp eax, 4
jl 0x461070
mov eax, dword [ebp - 4]
movzx ecx, byte [ebp - 1]
movzx edi, ah
movzx eax, al
shl edi, 8
add edi, eax
shl ecx, 8
movzx eax, byte [ebp - 2]
add ecx, eax
mov eax, edi
xor eax, 0xffff
cmp ecx, eax
jne 0x46104c
mov eax, dword [esi]
add eax, edi
cmp eax, dword [esi + 4]
jbe 0x4610d0
mov eax, dword fs:[0x2c]
pop edi
pop esi
mov eax, dword [eax]
mov dword [eax + 0xc], str.read_past_buffer
xor eax, eax
mov esp, ebp
pop ebp
ret
mov edx, dword [esi + 0x10]
lea eax, [edx + edi]
cmp eax, dword [esi + 0x18]
jbe 0x4610ee
push edi
mov ecx, esi
call fcn.00460a30
add esp, 4
test eax, eax
je 0x46105e
push edi
push dword [esi]
push dword [esi + 0x10]
call sub.VCRUNTIME140.dll_memcpy
add dword [esi], edi
add esp, 0xc
add dword [esi + 0x10], edi
mov eax, 1
pop edi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x4752e0
Capabilities:
Open clipboard
Write clipboard data

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push esi
mov dword [ebp - 0xc], 0xcccccccc
mov dword [ebp - 8], 0xcccccccc
mov dword [ebp - 4], 0xcccccccc
mov esi, esp
push 0
push 0
push 0xffffffffffffffff
mov eax, dword [ebp + 8]
push eax
push 0
push 0xfde9
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
cmp esi, esp
call fcn.00486562
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jne 0x47532a
jmp 0x475452
mov ecx, dword [ebp - 4]
shl ecx, 1
mov esi, esp
push ecx
push 2
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
cmp esi, esp
call fcn.00486562
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
jne 0x475361
push str.Win32:_Failed_to_allocate_global_handle_for_clipboard
push 0x10008
call fcn.0047ed80
add esp, 8
jmp 0x475452
mov esi, esp
mov edx, dword [ebp - 8]
push edx
call dword [sym.imp.KERNEL32.dll_GlobalLock]
cmp esi, esp
call fcn.00486562
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
jne 0x4753a7
push 0x4b8d2c
push 0x10008
call fcn.0047ed80
add esp, 8
mov esi, esp
mov eax, dword [ebp - 8]
push eax
call dword [sym.imp.KERNEL32.dll_GlobalFree]
cmp esi, esp
call fcn.00486562
jmp 0x475452
mov esi, esp
mov ecx, dword [ebp - 4]
push ecx
mov edx, dword [ebp - 0xc]
push edx
push 0xffffffffffffffff
mov eax, dword [ebp + 8]
push eax
push 0
push 0xfde9
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
cmp esi, esp
call fcn.00486562
mov esi, esp
mov ecx, dword [ebp - 8]
push ecx
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
cmp esi, esp
call fcn.00486562
mov esi, esp
mov edx, dword [0x56ccb8]
push edx
call dword [sym.imp.USER32.dll_OpenClipboard]
cmp esi, esp
call fcn.00486562
test eax, eax
jne 0x47541f
push 0x4b8d50
push 0x10008
call fcn.0047ed80
add esp, 8
mov esi, esp
mov eax, dword [ebp - 8]
push eax
call dword [sym.imp.KERNEL32.dll_GlobalFree]
cmp esi, esp
call fcn.00486562
jmp 0x475452
mov esi, esp
call dword [sym.imp.USER32.dll_EmptyClipboard]
cmp esi, esp
call fcn.00486562
mov esi, esp
mov ecx, dword [ebp - 8]
push ecx
push 0xd
call dword [sym.imp.USER32.dll_SetClipboardData]
cmp esi, esp
call fcn.00486562
mov esi, esp
call dword [sym.imp.USER32.dll_CloseClipboard]
cmp esi, esp
call fcn.00486562
pop esi
add esp, 0xc
cmp ebp, esp
call fcn.00486562
mov esp, ebp
pop ebp
ret
Function at 0x475470
Capabilities:
Open clipboard
Read clipboard data

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push esi
mov dword [ebp - 8], 0xcccccccc
mov dword [ebp - 4], 0xcccccccc
mov esi, esp
mov eax, dword [0x56ccb8]
push eax
call dword [sym.imp.USER32.dll_OpenClipboard]
cmp esi, esp
call fcn.00486562
test eax, eax
jne 0x4754b7
push str.Win32:_Failed_to_open_clipboard
push 0x10008
call fcn.0047ed80
add esp, 8
xor eax, eax
jmp 0x47558b
mov esi, esp
push 0xd
call dword [sym.imp.USER32.dll_GetClipboardData]
cmp esi, esp
call fcn.00486562
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jne 0x4754f9
push str.Win32:_Failed_to_convert_clipboard_to_string
push 0x10009
call fcn.0047ed80
add esp, 8
mov esi, esp
call dword [sym.imp.USER32.dll_CloseClipboard]
cmp esi, esp
call fcn.00486562
xor eax, eax
jmp 0x47558b
mov esi, esp
mov ecx, dword [ebp - 4]
push ecx
call dword [sym.imp.KERNEL32.dll_GlobalLock]
cmp esi, esp
call fcn.00486562
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
jne 0x47553a
push str.Win32:_Failed_to_lock_global_handle
push 0x10008
call fcn.0047ed80
add esp, 8
mov esi, esp
call dword [sym.imp.USER32.dll_CloseClipboard]
cmp esi, esp
call fcn.00486562
xor eax, eax
jmp 0x47558b
mov esi, esp
mov edx, dword [0x56ccc8]
push edx
call dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
add esp, 4
cmp esi, esp
call fcn.00486562
mov eax, dword [ebp - 8]
push eax
call fcn.0047e960
add esp, 4
mov dword [0x56ccc8], eax
mov esi, esp
mov ecx, dword [ebp - 4]
push ecx
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
cmp esi, esp
call fcn.00486562
mov esi, esp
call dword [sym.imp.USER32.dll_CloseClipboard]
cmp esi, esp
call fcn.00486562
mov eax, dword [0x56ccc8]
pop esi
add esp, 8
cmp ebp, esp
call fcn.00486562
mov esp, ebp
pop ebp
ret

Function at 0x4762a0
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, esp
push 0
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x2ac]
push ecx
call dword [sym.imp.USER32.dll_ShowWindow]
cmp esi, esp
call fcn.00486562
pop esi
cmp ebp, esp
call fcn.00486562
pop ebp
ret
Function at 0x477d50
Capabilities:
Register raw input devices

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
push esi
mov eax, 0xcccccccc
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x10], eax
mov dword [ebp - 0xc], eax
mov dword [ebp - 8], eax
mov dword [ebp - 4], eax
mov eax, 1
mov word [ebp - 0x10], ax
mov ecx, 2
mov word [ebp - 0xe], cx
mov dword [ebp - 0xc], 0
mov edx, dword [ebp + 8]
mov eax, dword [edx + 0x2ac]
mov dword [ebp - 8], eax
mov esi, esp
push 0xc
push 1
lea ecx, [ebp - 0x10]
push ecx
call dword [sym.imp.USER32.dll_RegisterRawInputDevices]
cmp esi, esp
call fcn.00486562
test eax, eax
jne 0x477dbd
push str.Win32:_Failed_to_register_raw_input_device
push 0x10008
call fcn.0047ed80
add esp, 8
push edx
mov ecx, ebp
push eax
lea edx, [0x477de0]
call fcn.0048650e
pop eax
pop edx
pop esi
add esp, 0x14
cmp ebp, esp
call fcn.00486562
mov esp, ebp
pop ebp
ret

Function at 0x477e00
Capabilities:
Register raw input devices

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
push esi
mov eax, 0xcccccccc
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x10], eax
mov dword [ebp - 0xc], eax
mov dword [ebp - 8], eax
mov dword [ebp - 4], eax
mov eax, 1
mov word [ebp - 0x10], ax
mov ecx, 2
mov word [ebp - 0xe], cx
mov dword [ebp - 0xc], 1
mov dword [ebp - 8], 0
mov esi, esp
push 0xc
push 1
lea edx, [ebp - 0x10]
push edx
call dword [sym.imp.USER32.dll_RegisterRawInputDevices]
cmp esi, esp
call fcn.00486562
test eax, eax
jne 0x477e68
push str.Win32:_Failed_to_remove_raw_input_device
push 0x10008
call fcn.0047ed80
add esp, 8
push edx
mov ecx, ebp
push eax
lea edx, [0x477e88]
call fcn.0048650e
pop eax
pop edx
pop esi
add esp, 0x14
cmp ebp, esp
call fcn.00486562
mov esp, ebp
pop ebp
ret
Function at 0x478440
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
push edi
mov dword [ebp - 4], 0xcccccccc
mov dword [ebp - 4], 0
mov esi, esp
push 0x10
call dword [sym.imp.USER32.dll_GetKeyState]
cmp esi, esp
call fcn.00486562
cwde
and eax, 0x8000
je 0x478476
mov ecx, dword [ebp - 4]
or ecx, 1
mov dword [ebp - 4], ecx
mov esi, esp
push 0x11
call dword [sym.imp.USER32.dll_GetKeyState]
cmp esi, esp
call fcn.00486562
movsx edx, ax
and edx, 0x8000
je 0x47849b
mov eax, dword [ebp - 4]
or eax, 2
mov dword [ebp - 4], eax
mov esi, esp
push 0x12
call dword [sym.imp.USER32.dll_GetKeyState]
cmp esi, esp
call fcn.00486562
movsx ecx, ax
and ecx, 0x8000
je 0x4784c0
mov edx, dword [ebp - 4]
or edx, 4
mov dword [ebp - 4], edx
mov esi, esp
push 0x5b
call dword [sym.imp.USER32.dll_GetKeyState]
cmp esi, esp
call fcn.00486562
movsx esi, ax
mov edi, esp
push 0x5c
call dword [sym.imp.USER32.dll_GetKeyState]
cmp edi, esp
call fcn.00486562
cwde
or esi, eax
and esi, 0x8000
je 0x4784f9
mov ecx, dword [ebp - 4]
or ecx, 8
mov dword [ebp - 4], ecx
mov esi, esp
push 0x14
call dword [sym.imp.USER32.dll_GetKeyState]
cmp esi, esp
call fcn.00486562
movsx edx, ax
and edx, 1
je 0x47851b
mov eax, dword [ebp - 4]
or eax, 0x10
mov dword [ebp - 4], eax
mov esi, esp
push 0x90
call dword [sym.imp.USER32.dll_GetKeyState]
cmp esi, esp
call fcn.00486562
movsx ecx, ax
and ecx, 1
je 0x478540
mov edx, dword [ebp - 4]
or edx, 0x20
mov dword [ebp - 4], edx
mov eax, dword [ebp - 4]
pop edi
pop esi
add esp, 4
cmp ebp, esp
call fcn.00486562
mov esp, ebp
pop ebp
ret

Function at 0x47d110
Capabilities:
Allocate thread local storage

Disassembly:
push ebp
mov ebp, esp
push esi
mov eax, dword [ebp + 8]
cmp dword [eax], 0
je 0x47d13a
mov esi, esp
push 0x29
push 0x4b9ba0
push str.tls__win32.allocated__GLFW_FALSE
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__wassert]
add esp, 0xc
cmp esi, esp
call fcn.00486562
mov esi, esp
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
cmp esi, esp
call fcn.00486562
mov edx, dword [ebp + 8]
mov dword [edx + 4], eax
mov eax, dword [ebp + 8]
cmp dword [eax + 4], 0xffffffff
jne 0x47d16e
push str.Win32:_Failed_to_allocate_TLS_index
push 0x10008
call fcn.0047ed80
add esp, 8
xor eax, eax
jmp 0x47d17c
mov ecx, dword [ebp + 8]
mov dword [ecx], 1
mov eax, 1
pop esi
cmp ebp, esp
call fcn.00486562
pop ebp
ret

Function at 0x47d1d0
Capabilities:
Get thread local storage value

Disassembly:
push ebp
mov ebp, esp
push esi
mov eax, dword [ebp + 8]
cmp dword [eax], 1
je 0x47d1fa
mov esi, esp
push 0x40
push 0x4b9c70
push 0x4b9cd0
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__wassert]
add esp, 0xc
cmp esi, esp
call fcn.00486562
mov esi, esp
mov edx, dword [ebp + 8]
mov eax, dword [edx + 4]
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
cmp esi, esp
call fcn.00486562
pop esi
cmp ebp, esp
call fcn.00486562
pop ebp
ret
Function at 0x47d220
Capabilities:
Set thread local storage value

Disassembly:
push ebp
mov ebp, esp
push esi
mov eax, dword [ebp + 8]
cmp dword [eax], 1
je 0x47d24a
mov esi, esp
push 0x46
push 0x4b9d18
push str.tls__win32.allocated__GLFW_TRUE
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__wassert]
add esp, 0xc
cmp esi, esp
call fcn.00486562
mov esi, esp
mov edx, dword [ebp + 0xc]
push edx
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 4]
push ecx
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
cmp esi, esp
call fcn.00486562
pop esi
cmp ebp, esp
call fcn.00486562
pop ebp
ret
Function at 0x480230
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x50
push esi
push edi
lea edi, [ebp - 0x50]
mov ecx, 0x14
mov eax, 0xcccccccc
rep stosd dword es:[edi], eax
mov eax, dword [0x4bf380]
xor eax, ebp
mov dword [ebp - 4], eax
mov esi, esp
push 0
mov edi, esp
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
cmp edi, esp
call fcn.00486562
push eax
push 0
push 0
push 1
push 1
push 0
push 0
push 0x6000000
push str.GLFW_message_window
push str.GLFW30
push 0x300
call dword [sym.imp.USER32.dll_CreateWindowExW]
cmp esi, esp
call fcn.00486562
mov dword [0x56ccb8], eax
cmp dword [0x56ccb8], 0
jne 0x4802bb
push str.Win32:_Failed_to_create_helper_window
push 0x10008
call fcn.0047ed80
add esp, 8
xor eax, eax
jmp 0x480385
mov esi, esp
push 0
mov eax, dword [0x56ccb8]
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
cmp esi, esp
call fcn.00486562
push 0x20
push 0
lea ecx, [ebp - 0x4c]
push ecx
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
mov dword [ebp - 0x4c], 0x20
mov dword [ebp - 0x48], 5
mov edx, dword [0x48a6c8]
mov dword [ebp - 0x40], edx
mov eax, dword [0x48a6cc]
mov dword [ebp - 0x3c], eax
mov ecx, dword [0x48a6d0]
mov dword [ebp - 0x38], ecx
mov edx, dword [0x48a6d4]
mov dword [ebp - 0x34], edx
mov esi, esp
push 0
lea eax, [ebp - 0x4c]
push eax
mov ecx, dword [0x56ccb8]
push ecx
call dword [sym.imp.USER32.dll_RegisterDeviceNotificationW]
cmp esi, esp
call fcn.00486562
mov dword [0x56ccbc], eax
mov esi, esp
push 1
push 0
push 0
mov edx, dword [0x56ccb8]
push edx
lea eax, [ebp - 0x24]
push eax
call dword [sym.imp.USER32.dll_PeekMessageW]
cmp esi, esp
call fcn.00486562
test eax, eax
je 0x480380
mov esi, esp
lea ecx, [ebp - 0x24]
push ecx
call dword [sym.imp.USER32.dll_TranslateMessage]
cmp esi, esp
call fcn.00486562
mov esi, esp
lea edx, [ebp - 0x24]
push edx
call dword [sym.imp.USER32.dll_DispatchMessageW]
cmp esi, esp
call fcn.00486562
jmp 0x480334
mov eax, 1
push edx
mov ecx, ebp
push eax
lea edx, [0x4803b0]
call fcn.0048650e
pop eax
pop edx
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00485b63
add esp, 0x50
cmp ebp, esp
call fcn.00486562
mov esp, ebp
pop ebp
ret
Function at 0x4848a0
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
push esi
mov eax, 0xcccccccc
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x10], eax
mov dword [ebp - 0xc], eax
mov dword [ebp - 8], eax
mov dword [ebp - 4], eax
mov eax, dword [0x4bf380]
xor eax, ebp
mov dword [ebp - 4], eax
mov dword [ebp - 0x18], str.libOSMesa.dll
mov dword [ebp - 0x14], str.OSMesa.dll
mov dword [ebp - 0x10], 0
cmp dword [0x56dbe0], 0
je 0x4848f3
mov eax, 1
jmp 0x484a8e
mov dword [ebp - 8], 0
jmp 0x484905
mov eax, dword [ebp - 8]
add eax, 1
mov dword [ebp - 8], eax
mov ecx, dword [ebp - 8]
cmp dword [ebp + ecx*4 - 0x18], 0
je 0x484938
mov esi, esp
mov edx, dword [ebp - 8]
mov eax, dword [ebp + edx*4 - 0x18]
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
cmp esi, esp
call fcn.00486562
mov dword [0x56dbe0], eax
cmp dword [0x56dbe0], 0
je 0x484936
jmp 0x484938
jmp 0x4848fc
cmp dword [0x56dbe0], 0
jne 0x48495a
push str.OSMesa:_Library_not_found
push 0x10006
call fcn.004746d0
add esp, 8
xor eax, eax
jmp 0x484a8e
mov esi, esp
push str.OSMesaCreateContextExt
mov ecx, dword [0x56dbe0]
push ecx
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
cmp esi, esp
call fcn.00486562
mov dword [0x56dbe4], eax
mov esi, esp
push str.OSMesaCreateContextAttribs
mov edx, dword [0x56dbe0]
push edx
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
cmp esi, esp
call fcn.00486562
mov dword [0x56dbe8], eax
mov esi, esp
push str.OSMesaDestroyContext
mov eax, dword [0x56dbe0]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
cmp esi, esp
call fcn.00486562
mov dword [0x56dbec], eax
mov esi, esp
push str.OSMesaMakeCurrent
mov ecx, dword [0x56dbe0]
push ecx
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
cmp esi, esp
call fcn.00486562
mov dword [0x56dbf0], eax
mov esi, esp
push str.OSMesaGetColorBuffer
mov edx, dword [0x56dbe0]
push edx
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
cmp esi, esp
call fcn.00486562
mov dword [0x56dbf4], eax
mov esi, esp
push str.OSMesaGetDepthBuffer
mov eax, dword [0x56dbe0]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
cmp esi, esp
call fcn.00486562
mov dword [0x56dbf8], eax
mov esi, esp
push str.OSMesaGetProcAddress
mov ecx, dword [0x56dbe0]
push ecx
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
cmp esi, esp
call fcn.00486562
mov dword [0x56dbfc], eax
cmp dword [0x56dbe4], 0
je 0x484a6e
cmp dword [0x56dbec], 0
je 0x484a6e
cmp dword [0x56dbf0], 0
je 0x484a6e
cmp dword [0x56dbf4], 0
je 0x484a6e
cmp dword [0x56dbf8], 0
je 0x484a6e
cmp dword [0x56dbfc], 0
jne 0x484a89
push str.OSMesa:_Failed_to_load_required_entry_points
push 0x10008
call fcn.004746d0
add esp, 8
call fcn.00484ae0
xor eax, eax
jmp 0x484a8e
mov eax, 1
push edx
mov ecx, ebp
push eax
lea edx, [0x484ab8]
call fcn.0048650e
pop eax
pop edx
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00485b63
add esp, 0x1c
cmp ebp, esp
call fcn.00486562
mov esp, ebp
pop ebp
ret
Function at 0x485a8b
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
push ecx
push 2
lea eax, [ebp - 4]
push eax
push 0x20000001
push str._x_sys_default_locale
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoEx]
xor ecx, ecx
test eax, eax
jne 0x485ab2
mov eax, ecx
mov dword [ebp - 4], eax
jmp 0x485ab5
mov eax, dword [ebp - 4]
push esi
mov esi, dword [ebp + 0xc]
push ecx
push ecx
push esi
push eax
push dword [ebp + 8]
push ecx
push 0x1300
call dword [sym.imp.KERNEL32.dll_FormatMessageA]
push eax
push dword [esi]
call fcn.00485a67
pop esi
leave
ret 8

Function at 0x486ba8
Capabilities:
Parse pe header

Disassembly:
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x486be7
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x486be7
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x486be7
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x486be7
cmp dword [ecx + 0x74], 0xe
jbe 0x486be7
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret