joyce8/EMBER2024-capa huggingface dataset:
Function at 0x470ccc
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push ecx
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
mov edi, dword [esi]
xor ebx, ebx
cmp edi, ebx
je 0x470e91
cmp dword [edi + 8], ebx
jne 0x470e91
mov eax, dword [edi]
test al, 0x20
jne 0x470e91
push ebx
push dword [ebp + 0x10]
push esi
call fcn.0045a618
test eax, eax
je 0x470e91
mov eax, dword [edi + 0x60]
cmp eax, ebx
je 0x470d1c
push dword [edi + 0x64]
push dword [edi + 0xc]
push dword [edi + 4]
call eax
mov eax, dword [ebp + 0xc]
mov dword [edi + 0x70], eax
fild dword [0x57fb50]
mov dword [esp + 0xc], eax
fild dword [esp + 0xc]
test eax, eax
jns 0x470d3a
fadd dword [0x5c5c44]
fmulp st(1)
fmul dword [0x5c5e6c]
call fcn.00481552
mov dword [edi + 0x14], eax
mov eax, dword [edi]
test eax, 0x100000
mov eax, dword [edi + 0x10]
cdq
mov dword [edi + 0x20], 0x32
mov dword [esi + 0x18], eax
mov dword [esi + 0x1c], edx
je 0x470dc9
mov eax, dword [edi + 0x10]
sub dword [edi + 0xc], eax
mov edx, dword [edi + 0xc]
je 0x470d82
mov ecx, dword [edi + 4]
push edx
add eax, ecx
push eax
push ecx
call dword [sym.imp.msvcrt.dll_memmove]
add esp, 0xc
jmp 0x470d85
or dword [edi], 4
mov ecx, dword [edi + 0x14]
mov edx, dword [edi + 0xc]
mov dword [edi + 0x10], ebx
cmp ecx, edx
ja 0x470d94
mov ecx, edx
mov dword [edi + 8], ecx
mov eax, dword [esi + 0x78]
cmp eax, ebx
je 0x470db3
cmp dword [eax + 0xc], fcn.00458dd4
jne 0x470db3
mov eax, 0x4000
cmp ecx, eax
jge 0x470db3
mov dword [edi + 8], eax
cmp edx, dword [edi + 8]
jne 0x470dbb
mov dword [edi + 0xc], ebx
mov eax, dword [esi + 0x10]
mov dword [edi + 0x68], eax
mov eax, dword [esi + 0x14]
mov dword [edi + 0x6c], eax
jmp 0x470dcf
mov eax, dword [esi + 8]
mov dword [edi + 8], eax
push dword [edi + 8]
push dword [edi + 4]
call fcn.004554cf
mov dword [edi + 4], eax
cmp eax, ebx
je 0x470e91
mov eax, dword [edi]
test al, 8
jne 0x470e7e
mov eax, dword [edi + 0x14]
imul eax, dword [0x57fb58]
push 0x64
xor edx, edx
pop ecx
div ecx
mov dword [edi + 0x18], eax
call fcn.0045a63a
mov ecx, dword [edi + 0x18]
sub ecx, eax
cmp ecx, ebx
jg 0x470e13
xor ecx, ecx
mov eax, dword [edi]
mov dword [edi + 0x1c], ecx
test al, 0x40
jne 0x470e8c
push ebx
push edi
push 0x470be5
lea esi, [edi + 0x44]
call fcn.00455709
cmp dword [0x59ddb8], ebx
je 0x470e8c
call fcn.00459ab9
mov ebx, dword [eax + 0x1c]
test ebx, ebx
jne 0x470e76
mov ebx, dword [0x59ddb4]
jmp 0x470e76
call fcn.00459bd0
test eax, eax
jne 0x470e8c
push 0x32
call dword [sym.imp.KERNEL32.dll_Sleep]
cmp dword [edi + 0x3c], 0
je 0x470e76
mov esi, ebx
test ebx, ebx
jne 0x470e69
mov esi, 0x7d0
call dword [sym.imp.WINMM.DLL_timeGetTime]
sub eax, dword [edi + 0x3c]
cmp eax, esi
jae 0x470e8c
cmp dword [edi + 0x1c], 0
jne 0x470e47
jmp 0x470e8c
mov eax, dword [edi + 0x60]
cmp eax, ebx
je 0x470e8c
push dword [edi + 0x64]
push ebx
push ebx
call eax
xor eax, eax
inc eax
jmp 0x470e93
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
Function at 0x480b3b
Capabilities:
Allocate thread local storage

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0xc
push esi
call fcn.004556f3
mov dword [esp + 4], eax
call dword [sym.imp.KERNEL32.dll_GetVersion]
mov dword [0x5992d0], eax
call fcn.00455473
lea eax, [esp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_QueryPerformanceFrequency]
fild qword [esp + 8]
fld1
fdivrp st(1)
fstp qword [0x59c48c]
call fcn.00456063
call fcn.00481552
mov dword [0x59cd50], eax
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
test byte [0x59dd98], 0x20
mov dword [0x57fb78], eax
je 0x480ba4
mov dword [0x57fb4c], 2
call fcn.00469c5a
call fcn.0046ec34
call fcn.0045c2f1
call fcn.0046533a
fnclex
fldcw word [esp + 4]
mov esi, dword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
push 0x59b348
call esi
push 0x59dd5c
call esi
push 0x599e18
call esi
push 0x5998c8
call esi
push 0x59998c
call esi
push 0x59c464
call esi
xor esi, esi
push esi
push esi
push esi
push esi
call dword [sym.imp.KERNEL32.dll_CreateEventA]
push esi
push esi
push str.No_sound
mov dword [0x59dd58], eax
call dword [sym.imp.msvcrt.dll__strdup_1]
pop ecx
push eax
call fcn.00457fda
push str.BASS_2.4
push 0x10
call fcn.00480922
push 0x5c4f6d
push 0x11
call fcn.00480922
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x480c30
Capabilities:
Get thread local storage value

Disassembly:
push ebx
push esi
mov esi, dword [0x599e04]
push edi
mov edi, dword [sym.imp.KERNEL32.dll_DeleteCriticalSection]
test esi, esi
je 0x480c67
push dword [esi + 0x14]
mov ebx, dword [esi]
call fcn.0045552e
push dword [esi + 0x18]
call fcn.0045552e
lea eax, [esi + 0x2c]
push eax
call edi
push esi
call fcn.0045552e
mov esi, ebx
test ebx, ebx
jne 0x480c43
mov esi, dword [0x59a714]
test esi, esi
je 0x480c8f
push dword [esi + 0x14]
mov ebx, dword [esi]
call fcn.0045552e
push dword [esi + 0x18]
call fcn.0045552e
push esi
call fcn.0045552e
mov esi, ebx
test ebx, ebx
jne 0x480c71
push dword [0x57fd74]
call fcn.0045552e
push dword [0x590110]
call fcn.0045552e
push dword [0x59cd3c]
call fcn.0045552e
push dword [0x599e08]
call fcn.0045552e
push dword [0x599dbc]
call fcn.0045552e
mov esi, 0x599dc8
push dword [esi]
call fcn.0045552e
add esi, 8
cmp esi, 0x599e08
jl 0x480ccb
push dword [0x599da8]
call fcn.0045552e
push 0x59b348
call edi
push 0x59dd5c
call edi
push 0x599e18
call edi
push 0x5998c8
call edi
push 0x59998c
call edi
mov esi, 0x59dd58
call fcn.0045577b
push dword [0x57fb78]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
push eax
call fcn.0045552e
push dword [0x57fb78]
call dword [sym.imp.KERNEL32.dll_TlsFree]
mov eax, dword [0x59ddf0]
test eax, eax
je 0x480d4a
mov esi, dword [eax]
push eax
call fcn.0045552e
mov eax, esi
test esi, esi
jne 0x480d3c
push 0x59c464
call edi
push dword [0x59ddc0]
call fcn.0045552e
push dword [0x59ddc4]
call fcn.0045552e
pop edi
pop esi
pop ebx
ret
Function at 0x480d6b
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
sub eax, 0
je 0x480dc8
dec eax
je 0x480dad
dec eax
je 0x480d95
dec eax
jne 0x480dcd
push dword [0x57fb78]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
push eax
call fcn.0045552e
push 0
push dword [0x57fb78]
jmp 0x480da5
mov eax, dword [0x5998f0]
test eax, eax
je 0x480dcd
push eax
push dword [0x5980b4]
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
jmp 0x480dcd
call fcn.00480b3b
push 0x104
push 0x587dc4
push dword [esp + 0xc]
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
jmp 0x480dcd
call fcn.00480c30
xor eax, eax
inc eax
ret 4
Function at 0x486ad0
Capabilities:
Open clipboard
Write clipboard data

Disassembly:
mov edx, dword [0x68f720]
mov eax, dword [esp + 8]
test edx, edx
je 0x486af0
mov dword [esp + 4], eax
jmp fcn.00494220
mov dword [esp + 8], 0
mov dword [esp + 4], 0x10001
jmp fcn.004836a0

Function at 0x486b10
Capabilities:
Open clipboard
Read clipboard data

Disassembly:
mov eax, dword [0x68f720]
test eax, eax
je 0x486b20
jmp 0x494370
sub esp, 0x1c
mov dword [esp + 4], 0
mov dword [esp], 0x10001
call fcn.004836a0
xor eax, eax
add esp, 0x1c
ret
push esi
push ebx
sub esp, 0x14
mov eax, dword [0x690228]
mov dword [esp], eax
call dword [sym.imp.USER32.dll_OpenClipboard]
sub esp, 4
test eax, eax
je 0x4943f0
mov dword [esp], 0xd
call dword [sym.imp.USER32.dll_GetClipboardData]
sub esp, 4
test eax, eax
mov ebx, eax
je 0x494410
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_GlobalLock]
sub esp, 4
test eax, eax
mov esi, eax
je 0x494430
mov eax, dword [0x690238]
mov dword [esp], eax
call sub.msvcrt.dll_free
mov dword [esp], esi
call fcn.0048b780
mov dword [esp], ebx
mov dword [0x690238], eax
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
sub esp, 4
call dword [sym.imp.USER32.dll_CloseClipboard]
mov eax, dword [0x690238]
add esp, 0x14
pop ebx
pop esi
ret
mov dword [esp + 4], str.Win32:_Failed_to_open_clipboard
mov dword [esp], 0x10008
call fcn.0048b5b0
xor eax, eax
jmp 0x4943e3
mov dword [esp + 4], str.Win32:_Failed_to_convert_clipboard_to_string
mov dword [esp], 0x10009
call fcn.0048b5b0
call dword [sym.imp.USER32.dll_CloseClipboard]
xor eax, eax
jmp 0x4943e3
mov dword [esp + 4], str.Win32:_Failed_to_lock_global_handle
mov dword [esp], 0x10008
call fcn.0048b5b0
call dword [sym.imp.USER32.dll_CloseClipboard]
xor eax, eax
jmp 0x4943e3

Function at 0x48a9f0
Capabilities:
Contain obfuscated stackstrings

Disassembly:
mov eax, dword [esp + 8]
mov ecx, dword [esp + 4]
mov edx, dword [esp + 0xc]
test eax, eax
je 0x48aa06
mov dword [eax], 0
test edx, edx
je 0x48aa10
mov dword [edx], 0
cmp dword [0x68f720], 0
je 0x48aa30
mov dword [esp + 0xc], edx
mov dword [esp + 8], eax
mov dword [esp + 4], ecx
jmp fcn.00492380
mov dword [esp + 8], 0
mov dword [esp + 4], 0x10001
jmp fcn.004836a0

Function at 0x48b4b0
Capabilities:
Log keystrokes via polling

Disassembly:
mov eax, dword [0x68f720]
test eax, eax
je 0x48b4c0
jmp fcn.00493710
sub esp, 0x1c
mov dword [esp + 4], 0
mov dword [esp], 0x10001
call fcn.004836a0
add esp, 0x1c
ret
Function at 0x48b870
Capabilities:
Log keystrokes

Disassembly:
push ebp
push edi
xor eax, eax
push esi
push ebx
mov ecx, 0x40
mov ebx, 0xfffffee0
sub esp, 0x16c
lea edi, [esp + 0x60]
rep stosd dword es:[edi], eax
mov edi, 0x6908fa
mov ecx, 0x690fc7
mov dword [0x6908f6], 0
and edi, 0xfffffffc
mov dword [0x690fc3], 0
sub ecx, edi
shr ecx, 2
rep stosd dword es:[edi], eax
jmp 0x48b917
test eax, eax
jle 0x48b90b
lea eax, [ebx + ebx*4 + 0x690f36]
mov dword [esp + 0x1c], 0
mov dword [esp + 0x18], 0
mov dword [esp + 0x14], 5
mov dword [esp + 0xc], 1
mov dword [esp + 0x10], eax
mov dword [esp + 8], edi
mov dword [esp + 4], 0
mov dword [esp], 0xfde9
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
sub esp, 0x20
add ebx, 1
cmp ebx, 0x1d
je 0x48b9b1
movzx eax, word [ebx + ebx + 0x6908bc]
cmp ax, 0xffff
je 0x48b90b
cmp ebx, 0xe
movsx esi, ax
jbe 0x48b9bc
mov dword [esp + 4], 1
mov dword [esp], esi
call dword [sym.imp.USER32.dll_MapVirtualKeyW]
sub esp, 8
mov ebp, eax
lea edi, [esp + 0x24]
lea eax, [esp + 0x60]
mov dword [esp + 0x14], 0
mov dword [esp + 0x10], 0x10
mov dword [esp + 0xc], edi
mov dword [esp + 4], esi
mov dword [esp + 8], eax
mov dword [esp], ebp
call dword [sym.imp.USER32.dll_ToUnicode]
sub esp, 0x18
cmp eax, 0xffffffff
jne 0x48b8c0
lea eax, [esp + 0x60]
mov dword [esp + 0x14], 0
mov dword [esp + 0x10], 0x10
mov dword [esp + 0xc], edi
mov dword [esp + 4], esi
mov dword [esp + 8], eax
mov dword [esp], ebp
call dword [sym.imp.USER32.dll_ToUnicode]
sub esp, 0x18
jmp 0x48b8c0
add esp, 0x16c
pop ebx
pop esi
pop edi
pop ebp
ret
lea edi, [esp + 0x24]
mov dword [esp + 0x24], 0x60
mov dword [esp + 0x28], 0x61
mov dword [esp + 0x2c], 0x62
mov dword [esp + 0x30], 0x63
mov dword [esp + 0x34], 0x64
mov dword [esp + 0x38], 0x65
mov dword [esp + 0x3c], 0x66
mov dword [esp + 0x40], 0x67
mov dword [esp + 0x44], 0x68
mov dword [esp + 0x48], 0x69
mov dword [esp + 0x4c], 0x6e
mov dword [esp + 0x50], 0x6f
mov dword [esp + 0x54], 0x6a
mov dword [esp + 0x58], 0x6d
mov dword [esp + 0x5c], 0x6b
mov ebp, dword [edi + ebx*4]
jmp 0x48b94b
Function at 0x48ebf0
Capabilities:
Allocate thread local storage

Disassembly:
push ebx
sub esp, 0x18
mov ebx, dword [esp + 0x20]
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
cmp eax, 0xffffffff
mov dword [ebx + 4], eax
je 0x48ec20
mov dword [ebx], 1
add esp, 0x18
mov eax, 1
pop ebx
ret
mov dword [esp + 4], 0x5e53b4
mov dword [esp], 0x10008
call fcn.0048b5b0
add esp, 0x18
xor eax, eax
pop ebx
ret

Function at 0x48ec70
Capabilities:
Get thread local storage value

Disassembly:
sub esp, 0x1c
mov eax, dword [esp + 0x20]
mov eax, dword [eax + 4]
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
sub esp, 4
add esp, 0x1c
ret

Function at 0x48ec90
Capabilities:
Set thread local storage value

Disassembly:
sub esp, 0x1c
mov eax, dword [esp + 0x24]
mov dword [esp + 4], eax
mov eax, dword [esp + 0x20]
mov eax, dword [eax + 4]
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
sub esp, 8
add esp, 0x1c
ret

Function at 0x48f170
Capabilities:
Register raw input devices

Disassembly:
push edi
push esi
push ebx
mov ebx, eax
sub esp, 0x20
mov dword [0x690fd8], eax
lea esi, [esp + 0x10]
mov dword [esp], esi
call dword [sym.imp.USER32.dll_GetCursorPos]
sub esp, 4
test eax, eax
je 0x48f1bb
mov eax, dword [ebx + 0x2a4]
mov dword [esp + 4], esi
mov dword [esp], eax
call dword [sym.imp.USER32.dll_ScreenToClient]
sub esp, 8
fild dword [esp + 0x10]
fstp qword [0x690fc8]
fild dword [esp + 0x14]
fstp qword [0x690fd0]
cmp dword [ebx + 0x64], 0x34001
jne 0x48f250
mov eax, dword [ebx + 0x3c]
test eax, eax
je 0x48f2c0
mov eax, dword [eax + 4]
mov dword [esp], eax
call dword [sym.imp.USER32.dll_SetCursor]
sub esp, 4
mov dword [esp], ebx
call fcn.004847e0
mov eax, dword [ebx + 0x2a4]
mov dword [esp + 4], esi
mov dword [esp], eax
call dword [sym.imp.USER32.dll_GetClientRect]
mov eax, dword [ebx + 0x2a4]
sub esp, 8
mov edi, dword [sym.imp.USER32.dll_ClientToScreen]
mov dword [esp + 4], esi
mov dword [esp], eax
call edi
sub esp, 8
lea eax, [esp + 0x18]
mov dword [esp + 4], eax
mov eax, dword [ebx + 0x2a4]
mov dword [esp], eax
call edi
sub esp, 8
mov dword [esp], esi
call dword [sym.imp.USER32.dll_ClipCursor]
mov eax, dword [ebx + 0x1e0]
sub esp, 4
test eax, eax
jne 0x48f265
add esp, 0x20
pop ebx
pop esi
pop edi
ret
mov dword [esp], 0
call dword [sym.imp.USER32.dll_SetCursor]
sub esp, 4
jmp 0x48f1e2
mov eax, dword [ebx + 0x2a4]
mov dword [esp + 0x10], 0x20001
mov dword [esp + 0x14], 0
mov dword [esp + 8], 0xc
mov dword [esp + 4], 1
mov dword [esp], esi
mov dword [esp + 0x18], eax
call dword [sym.imp.USER32.dll_RegisterRawInputDevices]
sub esp, 0xc
test eax, eax
jne 0x48f244
mov dword [esp + 4], str.Win32:_Failed_to_register_raw_input_device
mov dword [esp], 0x10008
call fcn.0048b5b0
add esp, 0x20
pop ebx
pop esi
pop edi
ret
mov dword [esp + 4], 0x7f00
mov dword [esp], 0
call dword [sym.imp.USER32.dll_LoadCursorW]
sub esp, 8
mov dword [esp], eax
call dword [sym.imp.USER32.dll_SetCursor]
sub esp, 4
jmp 0x48f1e2
Function at 0x48f2f0
Capabilities:
Register raw input devices

Disassembly:
push esi
push ebx
mov ebx, eax
sub esp, 0x34
mov eax, dword [eax + 0x1e0]
lea esi, [esp + 0x24]
test eax, eax
jne 0x48f3f0
mov dword [0x690fd8], 0
mov dword [esp], 0
call dword [sym.imp.USER32.dll_ClipCursor]
sub esp, 4
fld qword [0x690fc8]
fnstcw word [esp + 0x1e]
movzx eax, word [esp + 0x1e]
mov dword [esp + 4], esi
or ah, 0xc
mov word [esp + 0x1c], ax
fldcw word [esp + 0x1c]
fistp dword [esp + 0x18]
fldcw word [esp + 0x1e]
mov edx, dword [esp + 0x18]
fld qword [0x690fd0]
mov dword [esp + 0x24], edx
mov dword [ebx + 0x2c8], edx
fldcw word [esp + 0x1c]
fistp dword [esp + 0x18]
fldcw word [esp + 0x1e]
mov eax, dword [esp + 0x18]
mov dword [esp + 0x28], eax
mov dword [ebx + 0x2cc], eax
mov eax, dword [ebx + 0x2a4]
mov dword [esp], eax
call dword [sym.imp.USER32.dll_ClientToScreen]
sub esp, 8
mov eax, dword [esp + 0x28]
mov dword [esp + 4], eax
mov eax, dword [esp + 0x24]
mov dword [esp], eax
call dword [sym.imp.USER32.dll_SetCursorPos]
sub esp, 8
cmp dword [ebx + 0x64], 0x34001
jne 0x48f3d0
mov eax, dword [ebx + 0x3c]
test eax, eax
je 0x48f445
mov eax, dword [eax + 4]
mov dword [esp], eax
call dword [sym.imp.USER32.dll_SetCursor]
sub esp, 4
add esp, 0x34
pop ebx
pop esi
ret
mov dword [esp], 0
call dword [sym.imp.USER32.dll_SetCursor]
sub esp, 4
add esp, 0x34
pop ebx
pop esi
ret
mov dword [esp + 0x24], 0x20001
mov dword [esp + 0x28], 1
mov dword [esp + 0x2c], 0
mov dword [esp + 8], 0xc
mov dword [esp + 4], 1
mov dword [esp], esi
call dword [sym.imp.USER32.dll_RegisterRawInputDevices]
sub esp, 0xc
test eax, eax
jne 0x48f309
mov dword [esp + 4], str.Win32:_Failed_to_remove_raw_input_device
mov dword [esp], 0x10008
call fcn.0048b5b0
jmp 0x48f309
mov dword [esp + 4], 0x7f00
mov dword [esp], 0
call dword [sym.imp.USER32.dll_LoadCursorW]
sub esp, 8
mov dword [esp], eax
call dword [sym.imp.USER32.dll_SetCursor]
sub esp, 4
add esp, 0x34
pop ebx
pop esi
ret
Function at 0x497430
Capabilities:
Link many functions at runtime

Disassembly:
push esi
push ebx
sub esp, 0x24
mov ecx, dword [0x691118]
mov dword [esp + 0x14], str.libOSMesa.dll
mov dword [esp + 0x18], str.OSMesa.dll
mov dword [esp + 0x1c], 0
test ecx, ecx
je 0x497464
mov ebx, 1
add esp, 0x24
mov eax, ebx
pop ebx
pop esi
ret
lea ebx, [esp + 0x14]
mov eax, str.libOSMesa.dll
mov esi, dword [sym.imp.KERNEL32.dll_LoadLibraryA]
jmp 0x497482
add ebx, 4
mov eax, dword [ebx]
test eax, eax
je 0x4975c5
mov dword [esp], eax
call esi
sub esp, 4
test eax, eax
mov dword [0x691118], eax
je 0x497475
mov ebx, dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [esp + 4], str.OSMesaCreateContextExt
mov dword [esp], eax
call ebx
mov dword [0x69111c], eax
mov eax, dword [0x691118]
sub esp, 8
mov dword [esp + 4], str.OSMesaCreateContextAttribs
mov dword [esp], eax
call ebx
mov dword [0x691120], eax
mov eax, dword [0x691118]
sub esp, 8
mov dword [esp + 4], str.OSMesaDestroyContext
mov dword [esp], eax
call ebx
mov dword [0x691124], eax
mov eax, dword [0x691118]
sub esp, 8
mov dword [esp + 4], str.OSMesaMakeCurrent
mov dword [esp], eax
call ebx
mov dword [0x691128], eax
mov eax, dword [0x691118]
sub esp, 8
mov dword [esp + 4], str.OSMesaGetColorBuffer
mov dword [esp], eax
call ebx
mov dword [0x69112c], eax
mov eax, dword [0x691118]
sub esp, 8
mov dword [esp + 4], str.OSMesaGetDepthBuffer
mov dword [esp], eax
call ebx
mov dword [0x691130], eax
mov eax, dword [0x691118]
sub esp, 8
mov dword [esp + 4], str.OSMesaGetProcAddress
mov dword [esp], eax
call ebx
mov edx, dword [0x69111c]
sub esp, 8
mov dword [0x691134], eax
test edx, edx
je 0x497584
mov edx, dword [0x691124]
test edx, edx
je 0x497584
mov esi, dword [0x691128]
test esi, esi
je 0x497584
mov ebx, dword [0x69112c]
test ebx, ebx
je 0x497584
mov ecx, dword [0x691130]
test ecx, ecx
je 0x497584
test eax, eax
jne 0x497457
mov dword [esp + 4], str.OSMesa:_Failed_to_load_required_entry_points
mov dword [esp], 0x10008
xor ebx, ebx
call fcn.004836a0
mov eax, dword [0x691118]
test eax, eax
je 0x49745c
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
sub esp, 4
mov dword [0x691118], 0
mov eax, ebx
add esp, 0x24
pop ebx
pop esi
ret
mov dword [esp + 4], str.OSMesa:_Library_not_found
mov dword [esp], 0x10006
xor ebx, ebx
call fcn.004836a0
add esp, 0x24
mov eax, ebx
pop ebx
pop esi
ret

Function at 0x4a0d40
Capabilities:
Write file on windows

Disassembly:
push ebx
sub esp, 0x18
mov dword [esp], 2
lea ebx, [esp + 0x24]
call fcn.004b6b80
mov dword [esp + 8], 0x1b
mov dword [esp + 0xc], eax
mov dword [esp + 4], 1
mov dword [esp], str.Mingw_w64_runtime_failure:_n
call sub.msvcrt.dll_fwrite
mov dword [esp], 2
call fcn.004b6b80
mov edx, dword [esp + 0x20]
mov dword [esp + 8], ebx
mov dword [esp], eax
mov dword [esp + 4], edx
call sub.msvcrt.dll_vfprintf
call sub.msvcrt.dll_abort
lea esi, [esi]
Function at 0x4a0da0
Capabilities:
Allocate or change rwx memory

Disassembly:
push edi
push esi
push ebx
mov ebx, eax
sub esp, 0x30
mov esi, dword [0x69158c]
test esi, esi
jle 0x4a0ec0
mov eax, dword [0x691590]
xor ecx, ecx
add eax, 0xc
mov edx, dword [eax]
cmp edx, ebx
ja 0x4a0dd4
mov edi, dword [eax + 4]
add edx, dword [edi + 8]
cmp ebx, edx
jb 0x4a0e57
add ecx, 1
add eax, 0x14
cmp ecx, esi
jne 0x4a0dc0
mov dword [esp], ebx
call fcn.004a17a0
mov edi, eax
test eax, eax
je 0x4a0ee7
mov eax, dword [0x691590]
lea ebx, [esi + esi*4]
shl ebx, 2
add eax, ebx
mov dword [eax + 0x10], edi
mov dword [eax], 0
call fcn.004a18e0
mov edx, dword [0x691590]
add eax, dword [edi + 0xc]
mov dword [edx + ebx + 0xc], eax
lea edx, [esp + 0x14]
mov dword [esp + 8], 0x1c
mov dword [esp + 4], edx
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
sub esp, 0xc
test eax, eax
je 0x4a0ec7
mov eax, dword [esp + 0x28]
lea edx, [eax - 0x40]
and edx, 0xffffffbf
je 0x4a0e50
lea edx, [eax - 4]
and edx, 0xfffffffb
jne 0x4a0e60
add dword [0x69158c], 1
add esp, 0x30
pop ebx
pop esi
pop edi
ret
cmp eax, 2
mov edx, 0x40
mov eax, 4
mov ecx, dword [esp + 0x20]
cmovne eax, edx
mov edx, dword [esp + 0x14]
add ebx, dword [0x691590]
mov dword [ebx + 8], ecx
mov dword [ebx + 4], edx
mov dword [esp + 0xc], ebx
mov dword [esp + 8], eax
mov dword [esp + 4], ecx
mov dword [esp], edx
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
sub esp, 0x10
test eax, eax
jne 0x4a0e50
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esp], str.__VirtualProtect_failed_with_code_0x_x
mov dword [esp + 4], eax
call fcn.004a0d40
lea esi, [esi]
lea esi, [esi]
xor esi, esi
jmp 0x4a0dde
mov eax, dword [0x691590]
mov eax, dword [eax + ebx + 0xc]
mov dword [esp + 8], eax
mov eax, dword [edi + 8]
mov dword [esp], str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov dword [esp + 4], eax
call fcn.004a0d40
mov dword [esp + 4], ebx
mov dword [esp], str.Address__p_has_no_image_section
call fcn.004a0d40
lea esi, [esi]
nop

Function at 0x4a1420
Capabilities:
Get thread local storage value

Disassembly:
push ebp
push edi
push esi
push ebx
sub esp, 0x1c
mov dword [esp], 0x6915a8
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov ebx, dword [0x6915a0]
sub esp, 4
test ebx, ebx
je 0x4a1475
mov ebp, dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov edi, dword [sym.imp.KERNEL32.dll_GetLastError]
lea esi, [esi]
mov eax, dword [ebx]
mov dword [esp], eax
call ebp
sub esp, 4
mov esi, eax
call edi
test eax, eax
jne 0x4a146e
test esi, esi
je 0x4a146e
mov eax, dword [ebx + 4]
mov dword [esp], esi
call eax
mov ebx, dword [ebx + 8]
test ebx, ebx
jne 0x4a1450
mov dword [esp], 0x6915a8
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
sub esp, 4
add esp, 0x1c
pop ebx
pop esi
pop edi
pop ebp
ret
Function at 0x4a17a0
Capabilities:
Parse pe header

Disassembly:
xor eax, eax
cmp word [0x400000], 0x5a4d
jne 0x4a17c5
mov ecx, dword [0x40003c]
cmp dword [ecx + 0x400000], 0x4550
lea edx, [ecx + 0x400000]
je 0x4a17d0
ret
cmp word [ecx + 0x400018], 0x10b
jne 0x4a17c5
push esi
movzx eax, word [ecx + 0x400014]
push ebx
movzx esi, word [ecx + 0x400006]
mov ebx, dword [esp + 0xc]
lea eax, [edx + eax + 0x18]
sub ebx, 0x400000
test esi, esi
je 0x4a1818
xor ecx, ecx
nop
mov edx, dword [eax + 0xc]
cmp ebx, edx
jb 0x4a180e
add edx, dword [eax + 8]
cmp ebx, edx
jb 0x4a181a
add ecx, 1
add eax, 0x28
cmp ecx, esi
jne 0x4a1800
xor eax, eax
pop ebx
pop esi
ret
Function at 0x4b9410
Capabilities:
Contain obfuscated stackstrings
Print debug messages

Disassembly:
push edi
xor eax, eax
mov ecx, 0x10
sub esp, 0x88
lea edi, [esp + 0x40]
mov dword [esp + 0x15], 0x6f727245
mov dword [esp + 0x19], 0x6c632072
mov dword [esp + 0x1d], 0x696e6165
mov dword [esp + 0x21], 0x7520676e
mov dword [esp + 0x25], 0x70732070
mov dword [esp + 0x29], 0x6b5f6e69
mov dword [esp + 0x2d], 0x20737965
mov dword [esp + 0x31], 0x20726f66
mov dword [esp + 0x35], 0x65726874
mov dword [esp + 0x39], 0x206461
mov dword [esp + 0x3d], 0
mov dword [esp + 0x7c], 0
rep stosd dword es:[edi], eax
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
lea edx, [esp + 0x3c]
mov dword [esp + 8], 0xa
mov dword [esp + 4], edx
mov dword [esp], eax
call dword [sym.imp.msvcrt.dll__ultoa]
cmp byte [esp + 0x3c], 0
je 0x4b94eb
mov eax, 0x27
lea edx, [esp + 0x15]
jmp 0x4b94bd
cmp eax, 0x6a
je 0x4b94da
mov ecx, eax
add eax, 1
cmp byte [edx + eax], 0
jne 0x4b94b8
cmp eax, 0x6a
je 0x4b94da
add ecx, 2
mov byte [esp + eax + 0x15], 0xa
mov byte [esp + ecx + 0x15], 0
mov dword [esp], edx
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
sub esp, 4
call sub.msvcrt.dll_abort
mov ecx, 0x28
mov eax, 0x27
lea edx, [esp + 0x15]
jmp 0x4b94d0

Function at 0x4b9870
Capabilities:
Allocate thread local storage

Disassembly:
push edi
mov eax, 0x692114
push esi
push ebx
sub esp, 0x10
call fcn.004b91d0
lea esi, [eax + 4]
mov ebx, eax
mov dword [esp], esi
call fcn.004b8a30
mov edi, dword [0x692114]
test edi, edi
jne 0x4b98d8
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
mov dword [0x59f568], eax
cmp eax, 0xffffffff
je 0x575381
mov dword [0x692114], 1
mov dword [esp], esi
call fcn.004b8d80
test ebx, ebx
je 0x4b98c8
mov eax, ebx
call fcn.004b9500
add esp, 0x10
xor eax, eax
pop ebx
pop esi
pop edi
ret
cmp edi, 1
je 0x4b98b5
mov dword [esp], 2
call dword [0x59f554]
mov dword [esp + 0xc], edi
mov dword [esp + 8], 0x692114
mov dword [esp + 4], str._once__p_is__d_n
mov dword [esp], eax
call sub.msvcrt.dll_fprintf
jmp 0x4b98b5