joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1058f1b8
Capabilities:
Decompress data using aplib

Disassembly:
call 0x1058f308
push ebx
mov ebx, esp
push ebx
mov esi, dword [ebx + 8]
mov edi, dword [ebx + 0x10]
cld
mov dl, 0x80
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
mov ebx, 2
add dl, dl
jne 0x1058f1de
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x1058f1ca
add dl, dl
jne 0x1058f1e9
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x1058f23c
xor eax, eax
add dl, dl
jne 0x1058f1f6
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x1058f2dd
add dl, dl
jne 0x1058f205
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1058f210
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1058f21b
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1058f226
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
je 0x1058f232
push edi
mov eax, eax
sub edi, eax
mov al, byte [edi]
pop edi
mov byte [edi], al
inc edi
mov ebx, 2
jmp 0x1058f1d5
mov eax, 1
add dl, dl
jne 0x1058f24a
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1058f255
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x1058f241
sub eax, ebx
mov ebx, 1
jne 0x1058f288
mov ecx, 1
add dl, dl
jne 0x1058f26e
mov dl, byte [esi]
inc esi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x1058f279
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x1058f265
push esi
mov esi, edi
sub esi, ebp
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x1058f1d5
dec eax
shl eax, 8
mov al, byte [esi]
inc esi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0x1058f29f
mov dl, byte [esi]
inc esi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x1058f2aa
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x1058f296
cmp eax, 0x7d00
jae 0x1058f2cd
cmp eax, 0x500
jb 0x1058f2c8
inc ecx
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x1058f1d5
cmp eax, 0x7f
ja 0x1058f2d0
add ecx, 2
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x1058f1d5
mov al, byte [esi]
inc esi
xor ecx, ecx
shr al, 1
je 0x1058f2fe
adc ecx, 2
mov ebp, eax
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
mov ebx, 1
jmp 0x1058f1d5
pop ebx
sub edi, dword [ebx + 0x10]
mov eax, edi
pop ebx
ret 0x10
Function at 0x406222
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x120
push esi
mov esi, 0x104
lea eax, [ebp - 0x120]
push esi
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
cmp eax, esi
pop esi
jbe 0x406246
xor eax, eax
test eax, eax
je 0x406258
cmp byte [ebp + eax - 0x121], 0x5c
je 0x406258
xor ecx, ecx
jmp 0x40625b
xor ecx, ecx
inc ecx
push dword [ebp + 8]
lea ecx, [ecx + 0x409014]
lea eax, [ebp + eax - 0x120]
push ecx
push str._s_s.dll
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x10
lea eax, [ebp - 0x120]
push 8
push 0
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryExA]
leave
ret 4

Function at 0x406305
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
cmp dword [0x4222c4], 0
push esi
jne 0x40633c
xor ecx, ecx
push 8
mov eax, ecx
pop esi
mov edx, eax
and dl, 1
neg dl
sbb edx, edx
and edx, 0xedb88320
shr eax, 1
xor eax, edx
dec esi
jne 0x406316
mov dword [ecx*4 + 0x4222c0], eax
inc ecx
cmp ecx, 0x100
jl 0x406311
mov edx, dword [esp + 0x10]
mov eax, dword [esp + 8]
test edx, edx
not eax
jbe 0x40636d
mov ecx, dword [esp + 0xc]
push edi
movzx edi, byte [ecx]
mov esi, eax
and esi, 0xff
xor esi, edi
shr eax, 8
mov esi, dword [esi*4 + 0x4222c0]
xor eax, esi
inc ecx
dec edx
jne 0x40634f
pop edi
not eax
pop esi
ret 0xc

Function at 0x29a010c7
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
pushal
call 0x29a010d6
pop dword [ebp - 0xc]
mov eax, 0x3c33cbd3
sub eax, 0x1293bafd
sub dword [ebp - 0xc], eax
mov dword [ebp - 0x1c], 0x22c2eee0
add dword [ebp - 0x1c], 0x2b8f566b
mov dword [ebp - 0x18], 0xc123996a
add dword [ebp - 0x18], 0x710fb2db
mov dword [ebp - 0x14], 0x61020850
sub dword [ebp - 0x14], 0x14b5c422
mov dword [ebp - 0x10], 0xc04eeb38
sub dword [ebp - 0x10], 0xc04eeb38
lea eax, [ebp - 0x1c]
push eax
mov eax, 0xd1f0d90
add eax, 0x1c8232fc
add eax, dword [ebp - 0xc]
call dword [eax]
mov dword [ebp - 0x1c], 0xcb2d857d
sub dword [ebp - 0x1c], 0x56bb1c27
mov dword [ebp - 0x18], 0xb546a4d6
add dword [ebp - 0x18], 0x8c25bc9f
mov dword [ebp - 0x14], 0xe6375caa
sub dword [ebp - 0x14], 0x82c7f03e
mov dword [ebp - 0x10], 0x5800e2d3
sub dword [ebp - 0x10], 0x5800e2d3
lea ebx, [ebp - 0x1c]
push ebx
push eax
mov eax, 0x581d3dab
add eax, 0xd1840299
add eax, dword [ebp - 0xc]
call dword [eax]
push 0x40
push 0x1000
push 0x384e8
push 0
call eax
mov ecx, 0x63436e55
add ecx, 0x9cbcd21f
mov esi, eax
mov edi, 0x29a23000
add edi, dword [ebp - 0xc]
mov edx, 0xff7490f0
sub edx, 0xcef6d147
xor dword [ebp - 8], 0x8bdb7ea3
mov ebx, dword [edi]
sub dword [ebp - 4], esi
add ebx, edx
sub dword [ebp - 8], 0x693469d3
mov dword [esi], ebx
sub dword [ebp - 4], 0x490e581e
add esi, 4
add edi, 0xdd5dbc75
sub edi, 0xdd5dbc71
loop 0x29a011f2
add eax, 0xd770f5e2
sub eax, 0xd770013f
mov ebx, eax
add eax, 5
mov ecx, 0x29a00000
add ecx, dword [ebp - 0xc]
call ebx
leave
ret
Function at 0xa38058
Capabilities:
Decompress data using aplib

Disassembly:
call fcn.00a381a8
push ebx
mov ebx, esp
push ebx
mov esi, dword [ebx + 8]
mov edi, dword [ebx + 0x10]
cld
mov dl, 0x80
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
mov ebx, 2
add dl, dl
jne 0xa3807e
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0xa3806a
add dl, dl
jne 0xa38089
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0xa380dc
xor eax, eax
add dl, dl
jne 0xa38096
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0xa3817d
add dl, dl
jne 0xa380a5
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0xa380b0
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0xa380bb
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0xa380c6
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
je 0xa380d2
push edi
mov eax, eax
sub edi, eax
mov al, byte [edi]
pop edi
mov byte [edi], al
inc edi
mov ebx, 2
jmp 0xa38075
mov eax, 1
add dl, dl
jne 0xa380ea
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0xa380f5
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0xa380e1
sub eax, ebx
mov ebx, 1
jne 0xa38128
mov ecx, 1
add dl, dl
jne 0xa3810e
mov dl, byte [esi]
inc esi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0xa38119
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0xa38105
push esi
mov esi, edi
sub esi, ebp
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0xa38075
dec eax
shl eax, 8
mov al, byte [esi]
inc esi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0xa3813f
mov dl, byte [esi]
inc esi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0xa3814a
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0xa38136
cmp eax, 0x7d00
jae 0xa3816d
cmp eax, 0x500
jb 0xa38168
inc ecx
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0xa38075
cmp eax, 0x7f
ja 0xa38170
add ecx, 2
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0xa38075
mov al, byte [esi]
inc esi
xor ecx, ecx
shr al, 1
je 0xa3819e
adc ecx, 2
mov ebp, eax
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
mov ebx, 1
jmp 0xa38075
pop ebx
sub edi, dword [ebx + 0x10]
mov eax, edi
pop ebx
ret 0x10
Function at 0x41f993
Capabilities:
Parse pe header

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

Function at 0x432150
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x43217d
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x43217d
mov edx, 0x10b
xor eax, eax
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret
xor eax, eax
pop ebp
ret

Function at 0x401440
Capabilities:
Inspect load icon resource

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
lea eax, [ebp - 4]
push eax
push 1
push 0
push 0x43601c
push 0x80000002
call dword [0x43882c]
test eax, eax
jne 0x40146c
mov eax, 0xd903
jmp 0x401516
mov dword [0x438824], 0x24e1
mov ecx, dword [0x438824]
sub ecx, 0x24e1
mov dword [0x438824], ecx
mov edx, 1
test edx, edx
je 0x401516
mov eax, dword [0x438824]
cmp eax, dword [ebp + 0xc]
jb 0x4014a1
jmp 0x401516
jmp 0x45cad8
mov esp, ebp
pop ebp
ret

Function at 0x401a60
Capabilities:
Packed with generic packer

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebp
pop dword [0x438810]
push dword [0x438810]
push 0x401a7b
jmp loc.0045bd6c
Function at 0x80e410
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, 0xe0a000
lea edi, [esi - 0x3b9000]
push edi
jmp 0x80e42a
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x80e431
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x80e420
mov eax, 1
add ebx, ebx
jne 0x80e443
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x80e454
jne 0x80e473
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x80e473
dec eax
add ebx, ebx
jne 0x80e460
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
jmp 0x80e438
add ebx, ebx
jne 0x80e46f
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jmp 0x80e4c5
xor ecx, ecx
sub eax, 3
jb 0x80e48b
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x80e4fa
sar eax, 1
mov ebp, eax
jmp 0x80e496
add ebx, ebx
jne 0x80e496
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x80e464
inc ecx
add ebx, ebx
jne 0x80e4a4
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x80e464
add ebx, ebx
jne 0x80e4b1
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x80e4a6
jne 0x80e4c2
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x80e4a6
add ecx, 2
cmp ebp, 0xfffffb00
adc ecx, 2
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x80e4e4
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x80e4d6
jmp 0x80e426
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x80e4e4
add edi, ecx
jmp 0x80e426
pop esi
mov edi, esi
mov ecx, 0x3ed9
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x80e502
cmp byte [edi], 0x11
jne 0x80e502
mov eax, dword [edi]
mov bl, byte [edi + 4]
shr ax, 8
rol eax, 0x10
xchg ah, al
sub eax, edi
sub bl, 0xe8
add eax, esi
mov dword [edi], eax
add edi, 5
mov al, bl
loop 0x80e507
lea edi, [esi + 0x407000]
mov eax, dword [edi]
or eax, eax
je 0x80e57f
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x743e94]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x744010]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x80e534
mov ecx, edi
jns 0x80e563
movzx eax, word [edi]
inc edi
push eax
inc edi
mov ecx, 0xaef24857
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0x744014]
or eax, eax
je 0x80e579
mov dword [ebx], eax
add ebx, 4
jmp 0x80e551
call dword [esi + 0x744024]
add edi, 4
lea ebx, [esi - 4]
xor eax, eax
mov al, byte [edi]
inc edi
or eax, eax
je 0x80e5b0
cmp al, 0xef
ja 0x80e5a3
add ebx, eax
mov eax, dword [ebx]
xchg ah, al
rol eax, 0x10
xchg ah, al
add eax, esi
mov dword [ebx], eax
jmp 0x80e585
and al, 0xf
shl eax, 0x10
mov ax, word [edi]
add edi, 2
jmp 0x80e592
mov ebp, dword [esi + 0x744018]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x227]
and byte [eax], 0x7f
and byte [eax + 0x28], 0x7f
pop eax
push eax
push esp
push eax
push ebx
push edi
call ebp
pop eax
popal
lea eax, [esp - 0x80]
push 0
cmp esp, eax
jne 0x80e5e4
sub esp, 0xffffff80
jmp 0x425f74
Function at 0x1000bc58
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x10003d90]
jne 0x1000c001
ret
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x328
mov dword [0x1000e130], eax
mov dword [0x1000e12c], ecx
mov dword [0x1000e128], edx
mov dword [0x1000e124], ebx
mov dword [0x1000e120], esi
mov dword [0x1000e11c], edi
mov word [0x1000e148], ss
mov word [0x1000e13c], cs
mov word [0x1000e118], ds
mov word [0x1000e114], es
mov word [0x1000e110], fs
mov word [0x1000e10c], gs
pushfd
pop dword [0x1000e140]
mov eax, dword [ebp]
mov dword [0x1000e134], eax
mov eax, dword [ebp + 4]
mov dword [0x1000e138], eax
lea eax, [ebp + 8]
mov dword [0x1000e144], eax
mov eax, dword [ebp - 0x320]
mov dword [0x1000e080], 0x10001
mov eax, dword [0x1000e138]
mov dword [0x1000e034], eax
mov dword [0x1000e028], 0xc0000409
mov dword [0x1000e02c], 1
mov eax, dword [0x10003d90]
mov dword [ebp - 0x328], eax
mov eax, dword [0x1000e014]
mov dword [ebp - 0x324], eax
call dword [sym.imp.kernel32.dll_IsDebuggerPresent]
mov dword [0x1000e078], eax
push 1
call sub.msvcr100.dll__crt_debugger_hook
pop ecx
push 0
call dword [sym.imp.kernel32.dll_SetUnhandledExceptionFilter]
push 0x10003d98
call dword [sym.imp.kernel32.dll_UnhandledExceptionFilter]
cmp dword [0x1000e078], 0
jne 0x1000c0ed
push 1
call sub.msvcr100.dll__crt_debugger_hook
pop ecx
push 0xc0000409
call dword [sym.imp.kernel32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.kernel32.dll_TerminateProcess]
leave
ret
Function at 0x401c90
Capabilities:
Write file on windows

Disassembly:
mov ecx, dword [esp + 8]
sub esp, 0x7d4
lea eax, [esp + 0x7e0]
lea edx, [esp + 4]
push eax
push ecx
push edx
call dword [sym.imp.USER32.dll_wvsprintfA]
lea eax, [esp]
push 0
lea ecx, [esp + 8]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
push eax
mov eax, dword [esp + 0x7e4]
lea edx, [esp + 0x10]
push edx
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
add esp, 0x7d4
ret

Function at 0x401ce0
Capabilities:
Get system information on windows

Disassembly:
mov eax, dword [esp + 4]
sub esp, 0x40
push ebx
push ebp
push esi
push edi
push str._r_n_tModule_list:_names__addresses__sizes__time_stamps_and_file_times:_r_n
push eax
call fcn.00401c90
add esp, 8
lea ecx, [esp + 0x2c]
push ecx
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov edi, dword [esp + 0x30]
mov eax, 0x40000000
xor edx, edx
mov esi, 0
div edi
mov ebp, esi
mov ebx, eax
shl ebx, 2
je 0x401d78
mov eax, esi
lea edx, [esp + 0x10]
imul eax, edi
push 0x1c
push edx
push eax
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x401d69
mov eax, dword [esp + 0x1c]
test eax, eax
jbe 0x401d69
xor edx, edx
div edi
add esi, eax
mov eax, dword [esp + 0x20]
cmp eax, 0x1000
jne 0x401d74
mov eax, dword [esp + 0x14]
cmp eax, ebp
jbe 0x401d74
mov ecx, dword [esp + 0x54]
push eax
push ecx
mov ebp, eax
call fcn.00401d80
add esp, 8
jmp 0x401d74
mov eax, 0x10000
xor edx, edx
div edi
add esi, eax
cmp esi, ebx
jb 0x401d1f
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x40
ret
Function at 0x401d80
Capabilities:
Get file size
Parse pe header

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4532f0
push 0x4291b0
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x188
push ebx
push esi
push edi
mov dword [ebp - 0x18], esp
mov dword [ebp - 4], 0
push 0x104
lea eax, [ebp - 0x11c]
push eax
mov esi, dword [ebp + 0xc]
push esi
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jbe 0x401ee8
mov dword [ebp - 0x188], esi
cmp word [esi], 0x5a4d
jne 0x401ee8
mov ebx, dword [esi + 0x3c]
add ebx, esi
mov dword [ebp - 0x190], ebx
cmp dword [ebx], 0x4550
jne 0x401ee8
push 0
push 0x80
push 3
push 0
push 1
push DirectSoundCreate
lea ecx, [ebp - 0x11c]
push ecx
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
mov dword [ebp - 0x18c], esi
mov dl, byte [0x466490]
mov byte [ebp - 0x184], dl
mov ecx, 0x18
xor eax, eax
lea edi, [ebp - 0x183]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
xor edi, edi
mov dword [ebp - 0x120], edi
cmp esi, 0xffffffff
je 0x401eb5
push edi
push esi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov edi, eax
mov dword [ebp - 0x120], edi
lea eax, [ebp - 0x198]
push eax
push 0
push 0
push esi
call dword [sym.imp.KERNEL32.dll_GetFileTime]
test eax, eax
je 0x401eae
push str.___file_date_is
lea ecx, [ebp - 0x184]
push ecx
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 8
mov edx, dword [ebp - 0x194]
push edx
mov eax, dword [ebp - 0x198]
push eax
lea ecx, [ebp - 0x184]
push ecx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
lea edx, [ebp + eax - 0x184]
push edx
call fcn.00401f00
add esp, 0xc
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea eax, [ebp - 0x184]
push eax
mov ecx, dword [ebx + 8]
push ecx
push edi
mov edx, dword [ebp + 0xc]
push edx
lea eax, [ebp - 0x11c]
push eax
push str._s__loaded_at_0x_08x____d_bytes____08x_s_r_n
mov ecx, dword [ebp + 8]
push ecx
call fcn.00401c90
add esp, 0x1c
jmp 0x401ee8
mov dword [ebp - 4], 0xffffffff
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x401fa0
Capabilities:
Get memory capacity
Get session user name
Get system information on windows

Disassembly:
sub esp, 0x280
lea eax, [esp + 4]
push esi
push edi
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemTimeAsFileTime]
mov ecx, dword [esp + 0x10]
mov edx, dword [esp + 0xc]
push ecx
lea eax, [esp + 0x5c]
push edx
push eax
call fcn.00401f00
mov esi, dword [esp + 0x298]
lea ecx, [esp + 0x64]
push ecx
push str.Error_occurred_at__s._r_n
push esi
call fcn.00401c90
add esp, 0x18
lea edx, [esp + 0x184]
push 0x104
push edx
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
mov edi, dword [sym.imp.KERNEL32.dll_lstrcpyA]
test eax, eax
ja 0x40200f
lea eax, [esp + 0x184]
push str.Unknown
push eax
call edi
lea ecx, [esp + 8]
lea edx, [esp + 0xbc]
push ecx
push edx
mov dword [esp + 0x10], 0xc8
call dword [sym.imp.ADVAPI32.dll_GetUserNameA]
test eax, eax
jne 0x40203d
lea eax, [esp + 0xbc]
push str.Unknown
push eax
call edi
lea ecx, [esp + 0xbc]
lea edx, [esp + 0x184]
push ecx
push edx
push str._s__run_by__s._r_n
push esi
call fcn.00401c90
add esp, 0x10
lea eax, [esp + 0x34]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov ecx, dword [esp + 0x4c]
mov edx, dword [esp + 0x48]
push ecx
push edx
push str._d_processor_s___type__d._r_n
push esi
call fcn.00401c90
add esp, 0x10
lea eax, [esp + 0x14]
mov dword [esp + 0x14], 0x20
push eax
call dword [sym.imp.KERNEL32.dll_GlobalMemoryStatus]
mov ecx, dword [esp + 0x1c]
add ecx, 0xfffff
shr ecx, 0x14
push ecx
push str._d_MBytes_physical_memory._r_n
push esi
call fcn.00401c90
add esp, 0xc
pop edi
pop esi
add esp, 0x280
ret
Function at 0x4020c0
Capabilities:
Resolve function by parsing pe exports

Disassembly:
sub esp, 0xc8
mov edx, dword [esp + 0xcc]
mov dword [esp], 0xc000013a
mov dword [esp + 4], str.a_Control_C
mov dword [esp + 8], 0x40010008
mov dword [esp + 0xc], str.a_Control_Break
mov dword [esp + 0x10], 0x80000002
mov dword [esp + 0x14], str.a_Datatype_Misalignment
mov dword [esp + 0x18], 0x80000003
mov dword [esp + 0x1c], str.a_Breakpoint
mov dword [esp + 0x20], 0xc0000005
mov dword [esp + 0x24], str.an_Access_Violation
mov dword [esp + 0x28], 0xc0000006
mov dword [esp + 0x2c], str.an_In_Page_Error
mov dword [esp + 0x30], 0xc0000017
mov dword [esp + 0x34], str.a_No_Memory
mov dword [esp + 0x38], 0xc000001d
mov dword [esp + 0x3c], str.an_Illegal_Instruction
mov dword [esp + 0x40], 0xc0000025
mov dword [esp + 0x44], str.a_Noncontinuable_Exception
mov dword [esp + 0x48], 0xc0000026
mov dword [esp + 0x4c], str.an_Invalid_Disposition
mov dword [esp + 0x50], 0xc000008c
mov dword [esp + 0x54], str.a_Array_Bounds_Exceeded
mov dword [esp + 0x58], 0xc000008d
mov dword [esp + 0x5c], str.a_Float_Denormal_Operand
mov dword [esp + 0x60], 0xc000008e
mov dword [esp + 0x64], str.a_Float_Divide_by_Zero
mov dword [esp + 0x68], 0xc000008f
mov dword [esp + 0x6c], str.a_Float_Inexact_Result
mov dword [esp + 0x70], 0xc0000090
mov dword [esp + 0x74], str.a_Float_Invalid_Operation
mov dword [esp + 0x78], 0xc0000091
mov dword [esp + 0x7c], str.a_Float_Overflow
mov dword [esp + 0x80], 0xc0000092
mov dword [esp + 0x84], str.a_Float_Stack_Check
mov dword [esp + 0x88], 0xc0000093
mov dword [esp + 0x8c], str.a_Float_Underflow
mov dword [esp + 0x90], 0xc0000094
mov dword [esp + 0x94], str.an_Integer_Divide_by_Zero
mov dword [esp + 0x98], 0xc0000095
mov dword [esp + 0x9c], str.an_Integer_Overflow
mov dword [esp + 0xa0], 0xc0000096
mov dword [esp + 0xa4], str.a_Privileged_Instruction
mov dword [esp + 0xa8], 0xc00000fd
mov dword [esp + 0xac], str.a_Stack_Overflow
mov dword [esp + 0xb0], 0xc0000142
mov dword [esp + 0xb4], str.a_DLL_Initialization_Failed
mov dword [esp + 0xb8], 0xe06d7363
mov dword [esp + 0xbc], str.a_Microsoft_C_Exception
mov dword [esp + 0xc0], 0xc0000008
mov dword [esp + 0xc4], str.an_Invalid_Handle
xor eax, eax
lea ecx, [esp]
cmp edx, dword [ecx]
je 0x4022b2
inc eax
add ecx, 8
cmp eax, 0x19
jb 0x402299
mov eax, str.Unknown_exception_type
add esp, 0xc8
ret
mov eax, dword [esp + eax*8 + 4]
add esp, 0xc8
ret
Function at 0x404ea0
Capabilities:
Read .ini file

Disassembly:
sub esp, 0x104
push ebx
push esi
mov esi, ecx
push edi
lea ecx, [esp + 0xc]
lea eax, [esi + 0x77c]
push eax
push str._sDataLabyrinth.gam
push ecx
call fcn.004294a1
add esp, 0xc
mov ebx, dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
lea edx, [esp + 0xc]
lea eax, [esi + 0xfc8]
push edx
push 0x100
push eax
push 0x466490
push str.Driver
push 0x459618
call ebx
lea ecx, [esp + 0xc]
lea edi, [esi + 0x10c8]
push ecx
push 0x100
push edi
push 0x466490
push str.Mode
push 0x459618
call ebx
mov ebx, dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntA]
lea edx, [esp + 0xc]
push edx
push 1
push str.UseEnvMaps
push 0x459618
call ebx
mov dword [esi + 0x11d0], eax
lea eax, [esp + 0xc]
push eax
push 0
push str.AntialiasEdges
push 0x459618
call ebx
lea ecx, [esp + 0xc]
mov dword [esi + 0x11cc], eax
push ecx
push 0
push str.32BitTextures
push 0x459618
call ebx
push str.Windowed
push edi
mov dword [esi + 0x11c8], eax
call fcn.00433430
add esp, 8
test eax, eax
jne 0x404f78
mov dword [esi + 0x10], 1
pop edi
pop esi
pop ebx
add esp, 0x104
ret