joyce8/EMBER2024-capa huggingface dataset:
Function at 0x44f450
Capabilities:
Enumerate gui resources

Disassembly:
push ebx
push esi
add esp, 0xfffffff8
mov ebx, eax
mov eax, dword [0x468bb4]
cmp dword [eax + 0x30], 0
je 0x44f4fa
cmp dword [ebx + 0x94], 0
jne 0x44f4f4
mov eax, dword [ebx + 0x30]
mov dword [esp], eax
mov byte [esp + 4], dl
mov eax, esp
push eax
push 0x44f3e0
call sub.user32.dll_EnumWindows
mov eax, dword [ebx + 0x90]
cmp dword [eax + 8], 0
je 0x44f4f4
push 3
mov eax, dword [esp + 4]
push eax
call sub.user32.dll_GetWindow
mov esi, eax
mov dword [esp], esi
push 0xffffffffffffffec
push esi
call sub.user32.dll_GetWindowLongA
test al, 8
je 0x44f4ba
mov dword [esp], 0xfffffffe
mov eax, dword [ebx + 0x90]
mov esi, dword [eax + 8]
dec esi
cmp esi, 0
jl 0x44f4f4
push 0x213
push 0
push 0
push 0
push 0
mov eax, dword [esp + 0x14]
push eax
mov edx, esi
mov eax, dword [ebx + 0x90]
call fcn.00413f94
push eax
call sub.user32.dll_SetWindowPos
dec esi
cmp esi, 0xffffffff
jne 0x44f4c9
inc dword [ebx + 0x94]
pop ecx
pop edx
pop esi
pop ebx
ret

Function at 0x45005c
Capabilities:
Get graphical window text

Disassembly:
push ebx
push esi
add esp, 0xffffff00
mov esi, edx
mov ebx, eax
cmp byte [ebx + 0xa4], 0
je 0x450091
push pe_nt_image_headers32
lea eax, [esp + 4]
push eax
mov eax, dword [ebx + 0x30]
push eax
call sub.user32.dll_GetWindowTextA
mov ecx, eax
mov edx, esp
mov eax, esi
call fcn.004041b0
jmp 0x45009e
mov eax, esi
mov edx, dword [ebx + 0x8c]
call fcn.00404114
add esp, 0x100
pop esi
pop ebx
ret

Function at 0x451100
Capabilities:
Hide graphical window

Disassembly:
push ebx
push esi
mov ebx, eax
mov esi, dword [ebx + 0x84]
test esi, esi
je 0x451141
mov eax, esi
call fcn.00437974
test al, al
je 0x451141
mov eax, dword [ebx + 0x84]
call fcn.00437714
push eax
call sub.user32.dll_IsWindowVisible
test eax, eax
je 0x451141
push 0
mov eax, dword [ebx + 0x84]
call fcn.00437714
push eax
call sub.user32.dll_ShowWindow
pop esi
pop ebx
ret
Function at 0x4529f0
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebx
push esi
push edi
mov ebx, eax
push ebp
push ecx
mov esi, dword [ebx + 0x24]
mov edi, dword [ebx + 0x34]
sub edi, dword [ebx + 0x6c]
sub edi, dword [ebx + 0x64]
jmp 0x452a1d
mov eax, dword [ebx + 0x24]
sub eax, 0x106
add eax, esi
cmp eax, dword [ebx + 0x64]
ja 0x452a9c
push esi
mov eax, dword [ebx + 0x30]
mov edx, eax
mov ebp, esi
add edx, ebp
push edx
push eax
call fcn.00451a68
add esp, 0xc
sub dword [ebx + 0x68], esi
sub dword [ebx + 0x64], esi
sub dword [ebx + 0x54], ebp
mov eax, dword [ebx + 0x44]
mov edx, eax
add edx, edx
add edx, dword [ebx + 0x3c]
sub edx, 2
movzx ecx, word [edx]
mov dword [esp], ecx
cmp esi, dword [esp]
ja 0x452a6a
mov cx, word [esp]
sub cx, si
jmp 0x452a6c
xor ecx, ecx
mov word [edx], cx
dec eax
jne 0x452a53
mov eax, esi
mov edx, eax
add edx, edx
add edx, dword [ebx + 0x38]
sub edx, 2
movzx ecx, word [edx]
mov dword [esp], ecx
cmp esi, dword [esp]
ja 0x452a92
mov cx, word [esp]
sub cx, si
jmp 0x452a94
xor ecx, ecx
mov word [edx], cx
dec eax
jne 0x452a7b
add edi, esi
mov ebp, dword [ebx]
cmp dword [ebp + 4], 0
je 0x452af9
mov edx, dword [ebx + 0x30]
mov ecx, edi
add edx, dword [ebx + 0x64]
mov eax, ebp
add edx, dword [ebx + 0x6c]
call fcn.004526ec
add dword [ebx + 0x6c], eax
cmp dword [ebx + 0x6c], 3
jb 0x452ae4
mov eax, dword [ebx + 0x30]
mov edx, dword [ebx + 0x64]
movzx eax, byte [eax + edx]
mov dword [ebx + 0x40], eax
mov ecx, dword [ebx + 0x50]
shl eax, cl
mov edx, dword [ebx + 0x30]
mov ecx, dword [ebx + 0x64]
movzx edx, byte [edx + ecx + 1]
xor eax, edx
and eax, dword [ebx + 0x4c]
mov dword [ebx + 0x40], eax
cmp dword [ebx + 0x6c], 0x106
jae 0x452af9
mov eax, dword [ebx]
cmp dword [eax + 4], 0
jne 0x4529fa
pop edx
pop ebp
pop edi
pop esi
pop ebx
ret

Function at 0x457f88
Capabilities:
Hash data with crc32

Disassembly:
push ebx
push esi
xor esi, esi
mov ecx, 0x468be4
mov eax, esi
mov edx, 8
mov ebx, eax
and ebx, 1
test bl, bl
je 0x457faa
shr eax, 1
xor eax, 0xedb88320
jmp 0x457fac
shr eax, 1
dec edx
jne 0x457f98
mov dword [ecx], eax
inc esi
add ecx, 4
cmp esi, 0x100
jne 0x457f91
mov byte [0x468fe4], 1
pop esi
pop ebx
ret

Function at 0x457fc8
Capabilities:
Encode data using xor

Disassembly:
push ebx
push esi
push edi
mov edi, ecx
mov esi, edx
mov ebx, eax
cmp byte [0x468fe4], 0
jne 0x457fdf
call fcn.00457f88
mov eax, edi
dec eax
test eax, eax
jl 0x458008
inc eax
xor edx, edx
xor ecx, ecx
mov cl, byte [esi + edx]
xor ecx, ebx
and ecx, 0xff
mov ecx, dword [ecx*4 + 0x468be4]
shr ebx, 8
xor ecx, ebx
mov ebx, ecx
inc edx
dec eax
jne 0x457fe9
mov eax, ebx
pop edi
pop esi
pop ebx
ret
Function at 0x45a558
Capabilities:
Encode data using xor

Disassembly:
push ebx
push esi
push edi
push ebp
add esp, 0xfffffff8
mov ebx, eax
xor eax, eax
mov al, byte [ebx + 0x48]
mov eax, dword [ebx + eax*4 + 0x40]
mov al, byte [eax]
dec al
je 0x45a589
dec al
je 0x45a5c5
dec al
je 0x45a609
dec al
je 0x45a674
jmp 0x45a6fe
mov esi, dword [ebx + 0x24]
inc esi
mov edi, dword [ebx + 0x20]
sub edi, esi
jb 0x45a6fe
inc edi
mov edx, esi
sub edx, dword [ebx + 0x24]
xor ecx, ecx
mov cl, byte [ebx + 0x48]
mov ecx, dword [ebx + ecx*4 + 0x40]
mov dl, byte [ecx + edx]
xor eax, eax
mov al, byte [ebx + 0x48]
mov eax, dword [ebx + eax*4 + 0x40]
add dl, byte [eax + esi]
and dl, 0xff
mov byte [eax + esi], dl
inc esi
dec edi
jne 0x45a599
jmp 0x45a6fe
mov edi, dword [ebx + 0x20]
test edi, edi
jbe 0x45a6fe
mov esi, 1
mov al, byte [ebx + 0x48]
mov edx, eax
xor dl, 1
and edx, 0x7f
mov edx, dword [ebx + edx*4 + 0x40]
mov dl, byte [edx + esi]
and eax, 0x7f
mov eax, dword [ebx + eax*4 + 0x40]
add dl, byte [eax + esi]
and dl, 0xff
xor eax, eax
mov al, byte [ebx + 0x48]
mov eax, dword [ebx + eax*4 + 0x40]
mov byte [eax + esi], dl
inc esi
dec edi
jne 0x45a5d5
jmp 0x45a6fe
mov edi, dword [ebx + 0x20]
test edi, edi
jbe 0x45a6fe
mov esi, 1
mov al, byte [ebx + 0x48]
xor al, 1
and eax, 0x7f
mov eax, dword [ebx + eax*4 + 0x40]
movzx eax, byte [eax + esi]
mov ecx, esi
dec ecx
mov edx, dword [ebx + 0x24]
cmp ecx, edx
jae 0x45a637
xor ebp, ebp
jmp 0x45a648
mov ecx, esi
sub ecx, edx
xor edx, edx
mov dl, byte [ebx + 0x48]
mov edx, dword [ebx + edx*4 + 0x40]
movzx ebp, byte [edx + ecx]
add eax, ebp
sar eax, 1
jns 0x45a651
adc eax, 0
xor edx, edx
mov dl, byte [ebx + 0x48]
mov edx, dword [ebx + edx*4 + 0x40]
add al, byte [edx + esi]
and al, 0xff
xor edx, edx
mov dl, byte [ebx + 0x48]
mov edx, dword [ebx + edx*4 + 0x40]
mov byte [edx + esi], al
inc esi
dec edi
jne 0x45a619
jmp 0x45a6fe
xor ebp, ebp
xor eax, eax
mov dword [esp + 4], eax
mov edi, dword [ebx + 0x20]
test edi, edi
jbe 0x45a6fe
mov esi, 1
mov al, byte [ebx + 0x48]
xor al, 1
and eax, 0x7f
mov eax, dword [ebx + eax*4 + 0x40]
movzx eax, byte [eax + esi]
mov edx, esi
dec edx
cmp edx, dword [ebx + 0x24]
jb 0x45a6cc
mov edx, esi
sub edx, dword [ebx + 0x24]
xor ecx, ecx
mov cl, byte [ebx + 0x48]
mov ecx, dword [ebx + ecx*4 + 0x40]
movzx ebp, byte [ecx + edx]
mov dl, byte [ebx + 0x48]
xor dl, 1
and edx, 0x7f
mov edx, dword [ebx + edx*4 + 0x40]
mov ecx, esi
sub ecx, dword [ebx + 0x24]
movzx edx, byte [edx + ecx]
mov dword [esp + 4], edx
xor edx, edx
mov dl, byte [ebx + 0x48]
mov edx, dword [ebx + edx*4 + 0x40]
movzx edx, byte [edx + esi]
mov dword [esp], edx
mov cl, byte [esp + 4]
push eax
mov eax, ebp
pop edx
call fcn.00458010
add al, byte [esp]
and al, 0xff
xor edx, edx
mov dl, byte [ebx + 0x48]
mov edx, dword [ebx + edx*4 + 0x40]
mov byte [edx + esi], al
inc esi
dec edi
jne 0x45a688
pop ecx
pop edx
pop ebp
pop edi
pop esi
pop ebx
ret
Function at 0x463588
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffeb8
push ebx
push esi
push edi
xor edx, edx
mov dword [ebp - 0x140], edx
mov dword [ebp - 0x148], edx
mov dword [ebp - 0x144], edx
mov dword [ebp - 0x130], edx
mov dword [ebp - 0x13c], edx
mov dword [ebp - 0x134], edx
mov dword [ebp - 0x138], edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.00404570
lea edi, [ebp - 0x12c]
xor eax, eax
push ebp
push 0x463702
push dword fs:[eax]
mov dword fs:[eax], esp
xor esi, esi
xor edx, edx
mov eax, 2
call fcn.00463218
mov ebx, eax
mov dword [edi], 0x128
mov edx, edi
mov eax, ebx
call fcn.00463238
cmp eax, 1
sbb eax, eax
inc eax
jmp 0x4636ce
lea eax, [ebp - 0x138]
lea edx, [edi + 0x24]
mov ecx, 0x104
call fcn.00404330
mov eax, dword [ebp - 0x138]
lea edx, [ebp - 0x134]
call fcn.004084e0
mov eax, dword [ebp - 0x134]
lea edx, [ebp - 0x130]
call fcn.00407c90
mov eax, dword [ebp - 0x130]
push eax
lea edx, [ebp - 0x13c]
mov eax, dword [ebp - 4]
call fcn.00407c90
mov edx, dword [ebp - 0x13c]
pop eax
call fcn.004044cc
je 0x4636a8
lea eax, [ebp - 0x144]
lea edx, [edi + 0x24]
mov ecx, 0x104
call fcn.00404330
mov eax, dword [ebp - 0x144]
lea edx, [ebp - 0x140]
call fcn.00407c90
mov eax, dword [ebp - 0x140]
push eax
lea edx, [ebp - 0x148]
mov eax, dword [ebp - 4]
call fcn.00407c90
mov edx, dword [ebp - 0x148]
pop eax
call fcn.004044cc
jne 0x4636bf
push 0
mov eax, dword [edi + 8]
push eax
push 0
push 1
call sub.kernel32.dll_OpenProcess
push eax
call sub.kernel32.dll_TerminateProcess
mov esi, eax
mov edx, edi
mov eax, ebx
call fcn.00463258
cmp eax, 1
sbb eax, eax
inc eax
test al, al
jne 0x463609
push ebx
call sub.kernel32.dll_CloseHandle
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x463709
lea eax, [ebp - 0x148]
mov edx, 7
call fcn.004040e4
lea eax, [ebp - 4]
call fcn.004040c0
ret
Function at 0x40b522
Capabilities:
Query environment variable

Disassembly:
push esi
mov esi, dword [sym.imp.MSVCRT.dll_getenv]
push edi
push str.CHROMIUM_SCORE
call esi
mov edi, eax
pop ecx
test edi, edi
je 0x40b556
push edi
call sub.MSVCRT.dll_strlen
cmp eax, 0x100
pop ecx
jae 0x40b556
mov esi, 0x4450a8
push edi
push esi
call sub.MSVCRT.dll_strcpy
pop ecx
pop ecx
jmp 0x40b587
push str.HOME
call esi
test eax, eax
pop ecx
jne 0x40b567
mov eax, 0x440990
push str..chromium_score
push eax
mov esi, 0x4450a8
push str._s__s
push esi
call dword [sym.imp.MSVCRT.dll_sprintf]
push esi
call fcn.00414bfe
add esp, 0x14
mov eax, esi
pop edi
pop esi
ret

Function at 0x40b58c
Capabilities:
Write file on windows

Disassembly:
push ebx
push ebp
push esi
mov esi, ecx
push 0x440d84
mov bl, 1
call fcn.0040b522
push eax
call dword [sym.imp.MSVCRT.dll_fopen]
mov ebp, eax
pop ecx
test ebp, ebp
pop ecx
je 0x40b5e4
push edi
mov edi, dword [sym.imp.MSVCRT.dll_fwrite]
push ebp
push 0x32
push 8
push esi
call edi
push ebp
push 0x32
lea eax, [esi + 0x190]
push 0x40
push eax
call edi
push ebp
push 0x32
add esi, 0xe10
push 4
push esi
call edi
push ebp
call dword [sym.imp.MSVCRT.dll_fclose]
add esp, 0x34
pop edi
jmp 0x40b605
mov ecx, esi
call fcn.0040b522
push eax
mov eax, dword [sym.imp.MSVCRT.dll__iob]
add eax, 0x40
push str.WARNING:_could_not_write_score_file___s__n
push eax
call dword [sym.imp.MSVCRT.dll_fprintf]
add esp, 0xc
xor bl, bl
pop esi
mov al, bl
pop ebp
pop ebx
ret

Function at 0x40b60b
Capabilities:
Read file on windows

Disassembly:
push ebx
push ebp
push esi
mov esi, ecx
push 0x440974
mov bl, 1
call fcn.0040b522
push eax
call dword [sym.imp.MSVCRT.dll_fopen]
mov ebp, eax
pop ecx
test ebp, ebp
pop ecx
je 0x40b663
push edi
mov edi, dword [sym.imp.MSVCRT.dll_fread]
push ebp
push 0x32
push 8
push esi
call edi
push ebp
push 0x32
lea eax, [esi + 0x190]
push 0x40
push eax
call edi
push ebp
push 0x32
add esi, 0xe10
push 4
push esi
call edi
push ebp
call dword [sym.imp.MSVCRT.dll_fclose]
add esp, 0x34
pop edi
jmp 0x40b684
mov ecx, esi
call fcn.0040b522
push eax
mov eax, dword [sym.imp.MSVCRT.dll__iob]
add eax, 0x40
push str.WARNING:_could_not_read_score_file___s__n
push eax
call dword [sym.imp.MSVCRT.dll_fprintf]
add esp, 0xc
xor bl, bl
pop esi
mov al, bl
pop ebp
pop ebx
ret
Function at 0x40b68a
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
cmp dword [ebp + 0xc], 3
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
mov edi, ecx
jg 0x40b6fd
lea eax, [esi + esi*4]
push 4
lea ecx, [esi + esi*4]
pop edx
lea ebx, [edi + eax*4 + 0xe20]
lea eax, [esi + esi*4]
shl ecx, 6
sub edx, dword [ebp + 0xc]
lea eax, [edi + eax*8 + 0x20]
lea ecx, [ecx + edi + 0x290]
mov dword [ebp + 8], edx
fld qword [eax - 8]
lea edx, [eax - 8]
fstp qword [eax]
lea eax, [ecx - 0x40]
mov dword [ebp - 4], edx
push eax
push ecx
mov dword [ebp - 8], eax
call sub.MSVCRT.dll_strcpy
lea eax, [ebx - 4]
push 4
push eax
push ebx
mov dword [ebp - 0xc], eax
call sub.MSVCRT.dll_memcpy
mov eax, dword [ebp - 4]
mov ecx, dword [ebp - 8]
mov ebx, dword [ebp - 0xc]
add esp, 0x14
dec dword [ebp + 8]
jne 0x40b6c5
mov eax, dword [ebp + 0xc]
push str.USER
fld dword [ebp + 0x10]
lea eax, [eax + esi*4]
lea ebx, [esi + eax]
fstp qword [edi + ebx*8]
call dword [sym.imp.MSVCRT.dll_getenv]
test eax, eax
pop ecx
je 0x40b71f
push eax
jmp 0x40b724
push str.player
shl ebx, 6
lea eax, [ebx + edi + 0x190]
push eax
call sub.MSVCRT.dll_strcpy
pop ecx
lea eax, [esi + 0xb4]
pop ecx
mov ecx, dword [ebp + 0xc]
lea ecx, [ecx + eax*4]
add eax, ecx
lea eax, [edi + eax*4]
push eax
call dword [sym.imp.MSVCRT.dll_time]
pop ecx
pop edi
pop esi
pop ebx
leave
ret 0xc
Function at 0x40b8c4
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push dword [ebp + 0xc]
mov edi, ecx
push dword [ebp + 8]
call fcn.0040b896
mov dword [edi], 0x41c7d4
call fcn.00409b67
mov dword [ebp + 0xc], eax
call fcn.00402992
mov cl, byte [0x445048]
xor ebx, ebx
fldz
mov byte [edi + 0xc], cl
mov dword [edi + 8], ebx
fstp dword [edi + 0x2c]
fldz
mov dword [edi + 0x30], ebx
push 0x20
fstp dword [edi + 0x28]
fldz
pop ecx
fstp dword [edi + 0x24]
fldz
fstp dword [edi + 0x20]
cmp byte [eax + 0x33], bl
je 0x40b91b
mov ecx, 0x120
push ecx
call sub.SDL.dll_SDL_Init
test eax, eax
pop ecx
jge 0x40b94b
call sub.SDL.dll_SDL_GetError
push eax
mov eax, dword [sym.imp.MSVCRT.dll__iob]
add eax, 0x40
push str.Couldnt_initialize_SDL:__s_n
push eax
call dword [sym.imp.MSVCRT.dll_fprintf]
add esp, 0xc
push 1
call dword [sym.imp.MSVCRT.dll_exit]
mov eax, dword [sym.imp.MSVCRT.dll__iob]
push esi
mov esi, dword [sym.imp.MSVCRT.dll_fprintf]
add eax, 0x40
push str.SDL_initialized._n
push eax
call esi
pop ecx
mov dword [edi + 4], ebx
pop ecx
mov ecx, edi
call fcn.0040bda8
mov eax, dword [sym.imp.MSVCRT.dll__iob]
push str._OpenGL________________________________________n
add eax, 0x40
push eax
call esi
mov ebx, dword [sym.imp.OPENGL32.dll_glGetString]
pop ecx
pop ecx
push 0x1f00
call ebx
push eax
mov eax, dword [sym.imp.MSVCRT.dll__iob]
add eax, 0x40
push str.Vendor_____:__s_n
push eax
call esi
add esp, 0xc
push 0x1f01
call ebx
push eax
mov eax, dword [sym.imp.MSVCRT.dll__iob]
add eax, 0x40
push str.Renderer___:__s_n
push eax
call esi
add esp, 0xc
push 0x1f02
call ebx
push eax
mov eax, dword [sym.imp.MSVCRT.dll__iob]
add eax, 0x40
push str.Version____:__s_n
push eax
call esi
mov eax, dword [sym.imp.MSVCRT.dll__iob]
push str._______________________________________________n
add eax, 0x40
push eax
call esi
mov eax, str.chromium_B.S.U.
push eax
push eax
call sub.SDL.dll_SDL_WM_SetCaption
mov ecx, dword [ebp + 0xc]
add esp, 0x1c
call fcn.00409d5e
mov eax, edi
pop esi
pop edi
pop ebx
pop ebp
ret 8
Function at 0x40bda8
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
call fcn.00409b67
call fcn.00402992
cmp byte [eax + 0x18], 0
mov dword [ebp - 0x14], 2
je 0x40bdcc
mov dword [ebp - 0x14], 0x80000002
mov ecx, dword [eax + 4]
cmp byte [eax + 0x31], 0
push esi
push edi
mov edi, dword [eax]
push 5
mov dword [ebp - 0x1c], ecx
pop esi
je 0x40bdfb
push 8
mov dword [ebp - 0x18], 0x18
pop eax
mov dword [ebp - 4], 0x10
mov dword [ebp - 8], eax
mov dword [ebp - 0xc], eax
mov dword [ebp - 0x10], eax
jmp 0x40be0d
push 0x10
mov dword [ebp - 8], esi
pop eax
mov dword [ebp - 0xc], esi
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x10], esi
mov dword [ebp - 4], eax
push dword [ebp - 0x10]
push 0
call sub.SDL.dll_SDL_GL_SetAttribute
push dword [ebp - 0xc]
push 1
call sub.SDL.dll_SDL_GL_SetAttribute
push dword [ebp - 8]
push 2
call sub.SDL.dll_SDL_GL_SetAttribute
push dword [ebp - 4]
push 6
call sub.SDL.dll_SDL_GL_SetAttribute
push 1
push esi
call sub.SDL.dll_SDL_GL_SetAttribute
push dword [ebp - 0x14]
push dword [ebp - 0x18]
push dword [ebp - 0x1c]
push edi
call sub.SDL.dll_SDL_SetVideoMode
mov edi, eax
add esp, 0x38
test edi, edi
jne 0x40be7f
call sub.SDL.dll_SDL_GetError
push eax
mov eax, dword [sym.imp.MSVCRT.dll__iob]
add eax, 0x40
push str.Couldnt_set_GL_mode:__s_n
push eax
call dword [sym.imp.MSVCRT.dll_fprintf]
add esp, 0xc
call sub.SDL.dll_SDL_Quit
push 1
call dword [sym.imp.MSVCRT.dll_exit]
mov eax, dword [sym.imp.MSVCRT.dll__iob]
mov esi, dword [sym.imp.MSVCRT.dll_fprintf]
add eax, 0x40
push str.video_mode_set
push eax
call esi
lea eax, [ebp - 0x10]
push eax
push 0
call sub.SDL.dll_SDL_GL_GetAttribute
lea eax, [ebp - 0xc]
push eax
push 1
call sub.SDL.dll_SDL_GL_GetAttribute
lea eax, [ebp - 8]
push eax
push 2
call sub.SDL.dll_SDL_GL_GetAttribute
lea eax, [ebp - 4]
push eax
push 6
call sub.SDL.dll_SDL_GL_GetAttribute
push dword [ebp - 4]
mov eax, dword [edi + 4]
push dword [ebp - 8]
movzx eax, byte [eax + 4]
push dword [ebp - 0xc]
push dword [ebp - 0x10]
push eax
mov eax, dword [sym.imp.MSVCRT.dll__iob]
add eax, 0x40
push str._bpp_d_RGB_d_d_d_depth_d__n
push eax
call esi
mov ecx, dword [0x44508c]
add esp, 0x44
test ecx, ecx
je 0x40bef7
call fcn.0040c2d2
pop edi
pop esi
leave
ret

Function at 0x40c3c1
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
push ecx
push 1
push str.fonts_space.txf
call fcn.00414c03
push eax
call fcn.00413ef3
add esp, 0xc
mov dword [0x445040], eax
test eax, eax
jne 0x40c401
mov eax, dword [sym.imp.MSVCRT.dll__iob]
push str._nERROR_loading_texture_font._Check_data_path_and_try_again._n_n
add eax, 0x40
push eax
call dword [sym.imp.MSVCRT.dll_fprintf]
pop ecx
pop ecx
push 1
call dword [sym.imp.MSVCRT.dll_exit]
lea eax, [ebp - 4]
push eax
push 1
call dword [sym.imp.OPENGL32.dll_glGenTextures]
push 0
push dword [ebp - 4]
push dword [0x445040]
call fcn.004145b3
add esp, 0xc
leave
ret
Function at 0x414d50
Capabilities:
Read file on windows
Resolve function by parsing pe exports

Disassembly:
mov eax, dword [esp + 8]
mov ecx, dword [esp + 0x10]
mov edx, dword [esp + 0x14]
sub esp, 0x60
mov dword [eax], 0x1101
mov eax, dword [esp + 0x64]
push ebp
mov ebp, dword [esp + 0x70]
test eax, eax
mov dword [ebp], 0
mov dword [ecx], 0
mov dword [edx], 0x5622
je 0x414f78
push ebx
push esi
push edi
push 0x4422d8
push eax
call sub.MSVCRT.dll_fopen
mov esi, eax
add esp, 8
test esi, esi
je 0x414f6c
push esi
mov ebx, 1
push 0xc
lea eax, [esp + 0x20]
push ebx
push eax
call sub.MSVCRT.dll_fread
mov ecx, dword [esp + 0x2c]
add esp, 0x10
inc ecx
and ecx, 0xfffffffe
sub ecx, 4
mov dword [esp + 0x1c], ecx
je 0x414f6c
mov edi, 8
push esi
push edi
lea edx, [esp + 0x18]
push ebx
push edx
call sub.MSVCRT.dll_fread
add esp, 0x10
test eax, eax
je 0x414f6c
lea ecx, [esp + 0x10]
mov eax, str.fmt
mov edx, dword [ecx]
mov ecx, dword [eax]
cmp edx, ecx
jne 0x414e88
push esi
push 0x10
lea eax, [esp + 0x2c]
push ebx
push eax
call sub.MSVCRT.dll_fread
add esp, 0x10
cmp word [esp + 0x24], bx
jne 0x414e60
cmp word [esp + 0x26], bx
jne 0x414e31
xor eax, eax
cmp word [esp + 0x32], di
setne al
add eax, 0x1100
jmp 0x414e40
xor eax, eax
cmp word [esp + 0x32], di
setne al
add eax, 0x1102
mov ecx, dword [esp + 0x78]
mov edx, dword [esp + 0x28]
push ebx
mov dword [ecx], eax
mov eax, dword [esp + 0x88]
mov ecx, dword [esp + 0x18]
mov dword [eax], edx
add ecx, 0xfffffff0
jmp 0x414f33
push esi
push 4
lea edx, [esp + 0x84]
push ebx
push edx
call sub.MSVCRT.dll_fread
mov eax, dword [esp + 0x24]
push ebx
add eax, 0xffffffec
push eax
push esi
call sub.MSVCRT.dll_fseek
add esp, 0x1c
jmp 0x414f3d
lea edx, [esp + 0x10]
mov ecx, str.data
mov eax, dword [edx]
mov edx, dword [ecx]
cmp eax, edx
jne 0x414efb
cmp word [esp + 0x24], bx
jne 0x414f3d
mov ecx, dword [esp + 0x80]
mov eax, dword [esp + 0x14]
mov dword [ecx], eax
add eax, 0x1f
push eax
call sub.MSVCRT.dll_malloc
mov ecx, eax
add esp, 4
test ecx, ecx
mov dword [ebp], ecx
je 0x414ee4
mov edi, dword [esp + 0x30]
mov eax, dword [esp + 0x14]
and edi, 0xffff
xor edx, edx
div edi
push esi
push eax
push edi
push ecx
call sub.MSVCRT.dll_fread
add esp, 0x10
mov edi, dword [ebp]
mov edx, dword [esp + 0x14]
xor eax, eax
mov ecx, 7
add edi, edx
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
jmp 0x414f3d
lea eax, [esp + 0x10]
mov edx, str.smpl
mov ecx, dword [eax]
mov eax, dword [edx]
cmp ecx, eax
jne 0x414f2e
push esi
push 0x3c
lea edx, [esp + 0x3c]
push ebx
push edx
call sub.MSVCRT.dll_fread
mov eax, dword [esp + 0x24]
push ebx
add eax, 0xffffffc4
push eax
push esi
call sub.MSVCRT.dll_fseek
add esp, 0x1c
jmp 0x414f3d
mov ecx, dword [esp + 0x14]
push ebx
push ecx
push esi
call sub.MSVCRT.dll_fseek
add esp, 0xc
mov edx, dword [esp + 0x14]
push ebx
and edx, ebx
push edx
push esi
call sub.MSVCRT.dll_fseek
mov eax, dword [esp + 0x20]
add esp, 0xc
inc eax
mov ecx, 0xfffffff8
and al, 0xfe
sub ecx, eax
mov eax, dword [esp + 0x1c]
add eax, ecx
mov dword [esp + 0x1c], eax
jne 0x414dcf
push esi
call sub.MSVCRT.dll_fclose
add esp, 4
pop edi
pop esi
pop ebx
pop ebp
add esp, 0x60
ret
Function at 0x414f93
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push str.VIEWING_GAMMA
call sub.MSVCRT.dll_getenv
test eax, eax
pop ecx
je 0x414fd1
cmp byte [0x445330], 0
jne 0x414fd1
lea ecx, [ebp - 8]
push ecx
push 0x4427d8
push eax
call sub.MSVCRT.dll_sscanf
fld qword [0x41cb00]
fdiv qword [ebp - 8]
add esp, 0xc
fstp qword [0x4427c8]
leave
ret
Function at 0x4190fd
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
mov edx, dword [ebp + 0xc]
test edx, edx
jne 0x41910b
xor eax, eax
pop ebp
ret
mov eax, dword [ebp + 8]
cmp dword [ebp + 0x10], 8
push esi
push edi
not eax
mov ecx, 0xff
jb 0x4191ec
mov edi, dword [ebp + 0x10]
push ebx
shr edi, 3
movzx ebx, byte [edx]
mov esi, eax
sub dword [ebp + 0x10], 8
and esi, ecx
xor esi, ebx
mov ebx, eax
shr ebx, 8
mov eax, dword [esi*4 + 0x41cb74]
xor eax, ebx
inc edx
mov esi, eax
movzx ebx, byte [edx]
and esi, ecx
xor esi, ebx
movzx ebx, byte [edx + 1]
mov esi, dword [esi*4 + 0x41cb74]
shr eax, 8
xor esi, eax
inc edx
mov eax, esi
and eax, ecx
xor eax, ebx
movzx ebx, byte [edx + 1]
mov eax, dword [eax*4 + 0x41cb74]
shr esi, 8
xor eax, esi
inc edx
mov esi, eax
and esi, ecx
xor esi, ebx
movzx ebx, byte [edx + 1]
mov esi, dword [esi*4 + 0x41cb74]
shr eax, 8
xor esi, eax
inc edx
mov eax, esi
and eax, ecx
xor eax, ebx
movzx ebx, byte [edx + 1]
mov eax, dword [eax*4 + 0x41cb74]
shr esi, 8
xor eax, esi
inc edx
mov esi, eax
and esi, ecx
xor esi, ebx
movzx ebx, byte [edx + 1]
mov esi, dword [esi*4 + 0x41cb74]
shr eax, 8
xor esi, eax
inc edx
mov eax, esi
and eax, ecx
xor eax, ebx
movzx ebx, byte [edx + 1]
mov eax, dword [eax*4 + 0x41cb74]
shr esi, 8
xor eax, esi
inc edx
mov esi, eax
and esi, ecx
xor esi, ebx
shr eax, 8
mov esi, dword [esi*4 + 0x41cb74]
xor eax, esi
inc edx
dec edi
jne 0x419128
pop ebx
cmp dword [ebp + 0x10], 0
je 0x41920d
movzx edi, byte [edx]
mov esi, eax
and esi, ecx
xor esi, edi
shr eax, 8
mov esi, dword [esi*4 + 0x41cb74]
xor eax, esi
inc edx
dec dword [ebp + 0x10]
jne 0x4191f2
pop edi
pop esi
not eax
pop ebp
ret