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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov dword [ebp - 4], ecx
mov eax, dword [ebp - 4]
mov ecx, dword [ebp + 8]
cmp ecx, dword [eax + 4]
jb 0x4950cb
xor eax, eax
jmp 0x49516d
mov edx, dword [ebp - 4]
mov eax, dword [edx + 8]
mov ecx, dword [ebp + 8]
cmp dword [eax + ecx*4], 0
jne 0x4950e1
xor eax, eax
jmp 0x49516d
mov edx, dword [ebp - 4]
mov eax, dword [edx + 0xc]
mov ecx, dword [ebp + 8]
mov edx, dword [eax + ecx*4]
push edx
call fcn.0067ac30
add esp, 4
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0xc]
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
je 0x49516a
push 0
mov ecx, dword [ebp - 4]
mov edx, dword [ecx + 8]
mov eax, dword [ebp + 8]
mov ecx, dword [edx + eax*4]
push ecx
mov edx, dword [ebp - 4]
mov eax, dword [edx]
push eax
call fcn.006cef50
add esp, 0xc
mov ecx, dword [ebp - 4]
mov edx, dword [ecx]
push edx
mov eax, dword [ebp - 4]
mov ecx, dword [eax + 0xc]
mov edx, dword [ebp + 8]
mov eax, dword [ecx + edx*4]
push eax
push 1
mov ecx, dword [ebp - 8]
push ecx
call fcn.006b7750
add esp, 0x10
mov edx, dword [ebp - 4]
mov ecx, dword [edx + 0xc]
mov edx, dword [ebp + 8]
cmp eax, dword [ecx + edx*4]
je 0x49516a
mov eax, dword [ebp - 8]
mov dword [ebp - 0x10], eax
mov ecx, dword [ebp - 0x10]
push ecx
call fcn.0067ac50
add esp, 4
mov dword [ebp - 8], 0
mov eax, dword [ebp - 8]
mov esp, ebp
pop ebp
ret 4

Function at 0x495180
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
mov dword [ebp - 4], ecx
mov eax, dword [ebp - 4]
mov ecx, dword [ebp + 0x10]
cmp ecx, dword [eax + 4]
jb 0x495199
xor al, al
jmp 0x495225
mov edx, dword [ebp - 4]
movzx eax, byte [edx + 0x14]
test eax, eax
je 0x4951a8
xor al, al
jmp 0x495225
mov ecx, dword [ebp - 4]
mov edx, dword [ecx + 8]
mov eax, dword [ebp + 0x10]
cmp dword [edx + eax*4], 0
je 0x4951bb
xor al, al
jmp 0x495225
push 0
mov ecx, dword [ebp - 4]
mov edx, dword [ecx + 0x10]
push edx
mov eax, dword [ebp - 4]
mov ecx, dword [eax]
push ecx
call fcn.006cef50
add esp, 0xc
mov edx, dword [ebp - 4]
mov eax, dword [edx]
push eax
mov ecx, dword [ebp + 0xc]
push ecx
push 1
mov edx, dword [ebp + 8]
push edx
call fcn.006cf670
add esp, 0x10
cmp eax, dword [ebp + 0xc]
je 0x4951f3
xor al, al
jmp 0x495225
mov eax, dword [ebp - 4]
mov ecx, dword [eax + 8]
mov edx, dword [ebp + 0x10]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x10]
mov dword [ecx + edx*4], eax
mov ecx, dword [ebp - 4]
mov edx, dword [ecx + 0xc]
mov eax, dword [ebp + 0x10]
mov ecx, dword [ebp + 0xc]
mov dword [edx + eax*4], ecx
mov edx, dword [ebp - 4]
mov eax, dword [edx + 0x10]
add eax, dword [ebp + 0xc]
mov ecx, dword [ebp - 4]
mov dword [ecx + 0x10], eax
mov al, 1
mov esp, ebp
pop ebp
ret 0xc
Function at 0x495230
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x214
cmp dword [0xe5d420], 0
je 0x4952c1
lea eax, [ebp + 0xc]
mov dword [ebp - 8], eax
mov ecx, dword [ebp + 8]
mov dword [ebp - 0xc], ecx
mov edx, dword [ebp - 8]
push edx
push 0
mov eax, dword [ebp - 0xc]
push eax
push 0xffffffffffffffff
lea ecx, [ebp - 0x214]
push ecx
call fcn.00401830
mov edx, dword [eax]
or edx, 1
mov eax, dword [eax + 4]
push eax
push edx
call fcn.006b69c0
add esp, 0x1c
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jge 0x49528a
mov dword [ebp - 0x10], 0xffffffff
jmp 0x495290
mov ecx, dword [ebp - 4]
mov dword [ebp - 0x10], ecx
mov dword [ebp - 8], 0
push 0
lea edx, [ebp - 0x14]
push edx
lea eax, [ebp - 0x214]
push eax
call fcn.006b6c40
add esp, 4
push eax
lea ecx, [ebp - 0x214]
push ecx
mov edx, dword [0xe5d420]
push edx
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov esp, ebp
pop ebp
ret

Function at 0x49b8f0
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x40c
cmp dword [ebp + 8], 0
jne 0x49b906
mov dword [ebp + 8], str.Looks_like_a_coder_has_caught_a_bug.
mov eax, dword [ebp + 8]
push eax
push str.LbShellMessage:__s_n
call fcn.004017c0
add esp, 8
push str.Uh_oh__something_bads_happened_
lea ecx, [ebp - 0x40c]
push ecx
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 8
mov edx, dword [ebp + 0x10]
push edx
mov eax, dword [ebp + 0xc]
push eax
mov ecx, dword [ebp + 8]
push ecx
lea edx, [ebp - 0x40c]
push edx
push str._s_n_n_s_n_nIn___:__s_nline_:__u
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x18
push str._n_nAbortKill_Application__RetryDebug__IgnoreContinue
lea ecx, [ebp - 0x20c]
push ecx
call fcn.006b6b50
add esp, 8
mov dword [ebp - 8], 0x212
mov dword [ebp - 0xc], 0
mov ecx, 0xe5d458
call fcn.0049b620
mov edx, dword [ebp - 8]
push edx
push str.Mucky_Foot_Message
lea eax, [ebp - 0x20c]
push eax
mov ecx, dword [0xe5d454]
push ecx
call dword [sym.imp.USER32.dll_MessageBoxA]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 3
je 0x49b9ae
cmp dword [ebp - 4], 4
je 0x49b9b9
jmp 0x49b9bf
push 1
call fcn.006ce8b0
jmp 0x49b9bf
call dword [sym.imp.KERNEL32.dll_DebugBreak]
mov ecx, 0xe5d458
call fcn.0049b430
mov eax, dword [ebp - 0xc]
mov esp, ebp
pop ebp
ret
Function at 0x4a0df0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
push 0x717e54
mov eax, dword [ebp + 8]
push eax
call fcn.00690360
add esp, 8
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
jne 0x4a0e26
mov ecx, dword [ebp + 8]
push ecx
push str.Cannot_open_TGA_file__s_n
call fcn.004017c0
add esp, 8
jmp 0x4a0fb4
mov dword [ebp - 0x10], 0
jmp 0x4a0e38
mov edx, dword [ebp - 0x10]
add edx, 1
mov dword [ebp - 0x10], edx
cmp dword [ebp - 0x10], 0x12
jge 0x4a0e50
mov eax, dword [ebp - 0x10]
mov ecx, dword [ebp - 0x10]
mov dl, byte [ecx + 0x766c20]
mov byte [ebp + eax - 0x28], dl
jmp 0x4a0e2f
mov eax, dword [ebp + 0xc]
and eax, 0xff
mov ecx, 1
imul edx, ecx, 0xc
mov byte [ebp + edx - 0x28], al
mov eax, dword [ebp + 0xc]
sar eax, 8
mov ecx, 1
imul edx, ecx, 0xd
mov byte [ebp + edx - 0x28], al
mov eax, dword [ebp + 0x10]
and eax, 0xff
mov ecx, 1
imul edx, ecx, 0xe
mov byte [ebp + edx - 0x28], al
mov eax, dword [ebp + 0x10]
sar eax, 8
mov ecx, 1
imul edx, ecx, 0xf
mov byte [ebp + edx - 0x28], al
cmp dword [ebp + 0x18], 0
je 0x4a0eab
mov dword [ebp - 0x14], 0x20
jmp 0x4a0eb2
mov dword [ebp - 0x14], 0x18
mov eax, 1
shl eax, 4
mov cl, byte [ebp - 0x14]
mov byte [ebp + eax - 0x28], cl
mov edx, dword [ebp - 0xc]
push edx
push 0x12
push 1
lea eax, [ebp - 0x28]
push eax
call fcn.006cf670
add esp, 0x10
mov ecx, dword [ebp + 0x10]
sub ecx, 1
mov dword [ebp - 4], ecx
jmp 0x4a0ee9
mov edx, dword [ebp - 4]
sub edx, 1
mov dword [ebp - 4], edx
cmp dword [ebp - 4], 0
jl 0x4a0fa8
mov dword [ebp - 8], 0
jmp 0x4a0f05
mov eax, dword [ebp - 8]
add eax, 1
mov dword [ebp - 8], eax
mov ecx, dword [ebp - 8]
cmp ecx, dword [ebp + 0xc]
jge 0x4a0fa3
cmp dword [ebp + 0x18], 0
je 0x4a0f39
mov edx, dword [ebp - 0xc]
push edx
push 1
push 1
mov eax, dword [ebp - 4]
imul eax, dword [ebp + 0xc]
add eax, dword [ebp - 8]
mov ecx, dword [ebp + 0x14]
lea edx, [ecx + eax*4 + 3]
push edx
call fcn.006cf670
add esp, 0x10
mov eax, dword [ebp - 0xc]
push eax
push 1
push 1
mov ecx, dword [ebp - 4]
imul ecx, dword [ebp + 0xc]
add ecx, dword [ebp - 8]
mov edx, dword [ebp + 0x14]
lea eax, [edx + ecx*4]
push eax
call fcn.006cf670
add esp, 0x10
mov ecx, dword [ebp - 0xc]
push ecx
push 1
push 1
mov edx, dword [ebp - 4]
imul edx, dword [ebp + 0xc]
add edx, dword [ebp - 8]
mov eax, dword [ebp + 0x14]
lea ecx, [eax + edx*4 + 1]
push ecx
call fcn.006cf670
add esp, 0x10
mov edx, dword [ebp - 0xc]
push edx
push 1
push 1
mov eax, dword [ebp - 4]
imul eax, dword [ebp + 0xc]
add eax, dword [ebp - 8]
mov ecx, dword [ebp + 0x14]
lea edx, [ecx + eax*4 + 2]
push edx
call fcn.006cf670
add esp, 0x10
jmp 0x4a0efc
jmp 0x4a0ee0
mov eax, dword [ebp - 0xc]
push eax
call fcn.00401700
add esp, 4
mov esp, ebp
pop ebp
ret
Function at 0x4bff20
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov eax, dword [ebp + 8]
push eax
call fcn.006d0550
add esp, 4
cmp eax, dword [ebp + 0x10]
jge 0x4c0016
mov ecx, dword [ebp + 8]
push ecx
call fcn.006d0550
add esp, 4
mov dword [ebp - 4], eax
mov edx, dword [ebp + 8]
push edx
push 1
push 6
lea eax, [ebp - 0x10]
push eax
call fcn.006b7750
add esp, 0x10
cmp eax, 1
je 0x4bff68
jmp 0x4c0016
cmp dword [ebp - 0xe], 0
jne 0x4bff73
jmp 0x4c0016
movzx ecx, word [ebp - 0x10]
push ecx
call fcn.004c0020
add esp, 4
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
jge 0x4bffa0
push 0
mov edx, dword [ebp - 4]
add edx, dword [ebp - 0xe]
push edx
mov eax, dword [ebp + 8]
push eax
call fcn.006cef50
add esp, 0xc
jmp 0x4bffff
mov edx, dword [ebp - 4]
add edx, dword [ebp - 0xe]
mov dword [ebp - 4], edx
imul eax, dword [ebp - 8], 0xc
cmp dword [eax + 0x76a110], 0
je 0x4bffd6
mov ecx, dword [ebp - 4]
push ecx
mov edx, dword [ebp + 0xc]
add edx, 2
push edx
mov eax, dword [ebp + 8]
push eax
imul ecx, dword [ebp - 8], 0xc
mov edx, dword [ecx + 0x76a110]
call edx
add esp, 0xc
jmp 0x4bffed
mov eax, dword [ebp - 4]
push eax
mov ecx, dword [ebp + 0xc]
add ecx, 2
push ecx
mov edx, dword [ebp + 8]
push edx
call fcn.004bff20
add esp, 0xc
push 0
mov eax, dword [ebp - 4]
push eax
mov ecx, dword [ebp + 8]
push ecx
call fcn.006cef50
add esp, 0xc
mov edx, dword [ebp + 8]
push edx
call fcn.006d0700
add esp, 4
test eax, eax
je 0x4c0011
jmp 0x4c0016
jmp 0x4bff26
mov esp, ebp
pop ebp
ret

Function at 0x4c0070
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov dword [ebp - 4], 0
jmp 0x4c0088
mov eax, dword [ebp - 4]
add eax, 1
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0x10
jge 0x4c00bd
movzx edx, word [ebp + 0x10]
mov eax, 1
mov ecx, dword [ebp - 4]
shl eax, cl
and edx, eax
je 0x4c00bb
mov ecx, dword [ebp + 8]
push ecx
push 1
push 4
lea edx, [ebp - 8]
push edx
call fcn.006b7750
add esp, 0x10
cmp eax, 1
je 0x4c00bb
jmp 0x4c00bd
jmp 0x4c007f
mov esp, ebp
pop ebp
ret
Function at 0x4c4ab0
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
push str.data_tex01.pal
call fcn.005e4a40
add esp, 4
call fcn.004c1100
call fcn.0050b790
call fcn.0060a6e0
call fcn.004c1a20
call fcn.004fa3a0
push 0x8000
push 0
push 0x2323268
call fcn.0067d630
add esp, 0xc
mov dword [0x119dd20], 0x400000
mov dword [0x119dd24], 0x10000
mov dword [0x119dd28], 0x400000
mov dword [0xe940c0], 0xffffff80
mov dword [0xe940c4], 0xffffff82
mov dword [0xe940c8], 0xffffffd8
mov dword [0xe940cc], 0xff
mov dword [0xe940d4], 0
mov dword [0xe940d0], 0
mov eax, 1
mov word [0xe940d8], ax
xor ecx, ecx
mov word [0xe940fc], cx
xor edx, edx
mov word [0xe94112], dx
xor eax, eax
mov word [0xe94118], ax
mov dword [0xe940dc], 0
mov dword [0xe940e0], 0x64
xor ecx, ecx
mov word [0xe94114], cx
xor edx, edx
mov word [0xe9411a], dx
mov dword [0x774404], 1
mov dword [0x774400], 1
mov dword [0x774408], 1
mov dword [0x77440c], 1
mov eax, 1
mov word [0x7743fc], ax
xor ecx, ecx
mov word [0x27f02b0], cx
push str.data_swap0.map
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
push str.data_swap1.map
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
call fcn.005e2470
call fcn.0063b110
call fcn.0058a280
pop ebp
ret
Function at 0x4d1fb0
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
mov dword [0x119f1d0], 0
call fcn.005f11b0
call fcn.005c00a0
push 6
push 0x10
push 0x1e0
push 0x280
call fcn.00499850
add esp, 0x10
test eax, eax
jne 0x4d1fed
mov dword [0x119f1d0], 1
jmp 0x4d2005
push 0x30
push 0
push str.Unable_to_open_display
push 0
call dword [sym.imp.USER32.dll_MessageBoxA]
push 1
call fcn.006ce8b0
call fcn.00419480
call fcn.0056e010
call fcn.0049d690
push 0xa0
call fcn.0056dff0
add esp, 4
call fcn.005dee90
call fcn.0056ac00
push 1
push 0
push 4
call fcn.00494630
add esp, 0xc
call fcn.005f7290
push str.Secret
push 0
push str.clumps
call fcn.005b4320
add esp, 0xc
test eax, eax
je 0x4d205b
call fcn.0065ef40
push 0x41
push 0x100
push 0xa0
push str.levels_frontend.ucm
call fcn.004884a0
add esp, 0xc
movss xmm0, dword [0x716e28]
movss dword [esp], xmm0
push str.data_font3d_all_
call fcn.00421d70
add esp, 8
pop ebp
ret
Function at 0x4d9410
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x88
push 0x716764
mov eax, dword [ebp + 8]
push eax
call fcn.00690360
add esp, 8
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
jne 0x4d9449
mov ecx, dword [ebp + 8]
push ecx
push str.Could_not_open_file__s_n
call fcn.004017c0
add esp, 8
jmp 0x4d95ed
mov edx, dword [ebp - 0xc]
push edx
push 1
push 8
lea eax, [ebp - 0x18]
push eax
call fcn.006b7750
add esp, 0x10
cmp eax, 1
je 0x4d946c
jmp 0x4d95d0
cmp dword [ebp - 0x18], 1
je 0x4d9494
mov ecx, dword [ebp + 8]
push ecx
push str.File__s_is_an_obsolete_version_n
call fcn.004017c0
add esp, 8
mov edx, dword [ebp - 0xc]
push edx
call fcn.0068fac0
add esp, 4
jmp 0x4d95ed
mov dword [ebp - 0x10], 0
jmp 0x4d94a6
mov eax, dword [ebp - 0x10]
add eax, 1
mov dword [ebp - 0x10], eax
mov ecx, dword [ebp - 0x10]
cmp ecx, dword [ebp - 0x14]
jge 0x4d95c2
mov edx, dword [ebp - 0xc]
push edx
push 1
push 0x70
lea eax, [ebp - 0x88]
push eax
call fcn.006b7750
add esp, 0x10
cmp eax, 1
je 0x4d94d8
jmp 0x4d95d0
movzx ecx, byte [ebp - 0x88]
test ecx, ecx
jl 0x4d94f2
movzx edx, byte [ebp - 0x88]
cmp edx, 0x100
jle 0x4d9509
push 0x13f
push str.C:devworkspaces_repo_clonesClean_UrbanChaosMuckyFoot_UrbanChaos_fallenEditorSourceHmTab.cpp
push str.ASSERT_TRIGGERED
call fcn.0049b8f0
add esp, 0xc
movzx eax, byte [ebp - 0x88]
imul ecx, eax, 0x70
add ecx, 0x12b8818
mov dword [ebp - 4], ecx
mov edx, dword [ebp - 4]
mov byte [edx + 3], 1
mov eax, dword [ebp - 4]
mov cl, byte [ebp - 0x87]
mov byte [eax], cl
mov edx, dword [ebp - 4]
mov al, byte [ebp - 0x86]
mov byte [edx + 1], al
mov ecx, dword [ebp - 4]
mov dl, byte [ebp - 0x85]
mov byte [ecx + 2], dl
mov dword [ebp - 8], 0
jmp 0x4d9558
mov eax, dword [ebp - 8]
add eax, 1
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 8
jge 0x4d9596
mov ecx, dword [ebp - 8]
mov edx, dword [ebp - 4]
mov eax, dword [ebp - 8]
mov eax, dword [ebp + eax*4 - 0x84]
mov dword [edx + ecx*4 + 4], eax
mov ecx, dword [ebp - 8]
mov edx, dword [ebp - 4]
mov eax, dword [ebp - 8]
mov eax, dword [ebp + eax*4 - 0x64]
mov dword [edx + ecx*4 + 0x24], eax
mov ecx, dword [ebp - 8]
mov edx, dword [ebp - 4]
mov eax, dword [ebp - 8]
mov eax, dword [ebp + eax*4 - 0x44]
mov dword [edx + ecx*4 + 0x44], eax
jmp 0x4d954f
mov ecx, dword [ebp - 4]
movss xmm0, dword [ebp - 0x24]
movss dword [ecx + 0x64], xmm0
mov edx, dword [ebp - 4]
movss xmm0, dword [ebp - 0x20]
movss dword [edx + 0x68], xmm0
mov eax, dword [ebp - 4]
movss xmm0, dword [ebp - 0x1c]
movss dword [eax + 0x6c], xmm0
jmp 0x4d949d
mov ecx, dword [ebp - 0xc]
push ecx
call fcn.0068fac0
add esp, 4
jmp 0x4d95ed
mov edx, dword [ebp - 0xc]
push edx
call fcn.0068fac0
add esp, 4
mov eax, dword [ebp + 8]
push eax
push str.Error_loading_file__s_n
call fcn.004017c0
add esp, 8
mov esp, ebp
pop ebp
ret
Function at 0x510e60
Capabilities:
Copy file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x430
mov eax, dword [ebp + 8]
push eax
push str.u:urbanchaos_textures_sharedMaxTex_s
lea ecx, [ebp - 0x32c]
push ecx
call fcn.0041e320
add esp, 0xc
mov edx, dword [ebp + 8]
push edx
push str.u:urbanchaos_textures_sharedMaxTex_s
lea eax, [ebp - 0x124]
push eax
call fcn.0041e320
add esp, 0xc
lea ecx, [ebp - 0x124]
mov dword [ebp - 0xc], ecx
jmp 0x510ead
mov edx, dword [ebp - 0xc]
add edx, 1
mov dword [ebp - 0xc], edx
mov eax, dword [ebp - 0xc]
movsx ecx, byte [eax]
test ecx, ecx
je 0x510eb9
jmp 0x510ea4
mov edx, 1
imul eax, edx, 0xfffffffd
mov ecx, dword [ebp - 0xc]
mov byte [ecx + eax], 0x74
mov edx, 1
imul eax, edx, 0xfffffffe
mov ecx, dword [ebp - 0xc]
mov byte [ecx + eax], 0x78
mov edx, 1
imul eax, edx, 0xffffffff
mov ecx, dword [ebp - 0xc]
mov byte [ecx + eax], 0x74
push 0x716764
lea edx, [ebp - 0x32c]
push edx
call fcn.00690360
add esp, 8
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
jne 0x510f0a
xor eax, eax
jmp 0x511067
mov eax, dword [ebp - 0x14]
push eax
call fcn.0068fac0
add esp, 4
push 0x716764
lea ecx, [ebp - 0x124]
push ecx
call fcn.00690360
add esp, 8
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
je 0x510f95
mov dword [ebp - 8], 0
mov edx, dword [ebp - 4]
push edx
push 0x104
lea eax, [ebp - 0x430]
push eax
call fcn.006b8bd0
add esp, 0xc
test eax, eax
je 0x510f81
lea ecx, [ebp - 0x20]
push ecx
push str.Page_number:__d
lea edx, [ebp - 0x430]
push edx
call fcn.00424b10
add esp, 0xc
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x1c], 1
jne 0x510f7f
mov eax, dword [ebp - 0x20]
mov dword [ebp - 8], eax
jmp 0x510f81
jmp 0x510f3a
mov ecx, dword [ebp - 4]
push ecx
call fcn.0068fac0
add esp, 4
mov eax, dword [ebp - 8]
jmp 0x511067
mov dword [ebp - 8], 0
mov dword [ebp - 0x10], 1
jmp 0x510fae
mov edx, dword [ebp - 0x10]
add edx, 1
mov dword [ebp - 0x10], edx
cmp dword [ebp - 0x10], 0x100
jge 0x511002
mov eax, dword [ebp - 0x10]
push eax
push str.u:urbanchaos_textures_sharedprims_tex_03d.tga
lea ecx, [ebp - 0x228]
push ecx
call fcn.0041e320
add esp, 0xc
push 0x716764
lea edx, [ebp - 0x228]
push edx
call fcn.00690360
add esp, 8
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0
jne 0x510ff4
mov eax, dword [ebp - 0x10]
mov dword [ebp - 8], eax
jmp 0x511002
mov ecx, dword [ebp - 0x18]
push ecx
call fcn.0068fac0
add esp, 4
jmp 0x510fa5
cmp dword [ebp - 8], 0
jne 0x51100c
xor eax, eax
jmp 0x511067
push 0x717e54
lea edx, [ebp - 0x124]
push edx
call fcn.00690360
add esp, 8
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jne 0x51102d
xor eax, eax
jmp 0x511067
mov eax, dword [ebp - 8]
push eax
push str.Page_number:__d_n
mov ecx, dword [ebp - 4]
push ecx
call fcn.00485940
add esp, 0xc
mov edx, dword [ebp - 4]
push edx
call fcn.0068fac0
add esp, 4
push 1
lea eax, [ebp - 0x228]
push eax
lea ecx, [ebp - 0x32c]
push ecx
call dword [sym.imp.KERNEL32.dll_CopyFileA]
mov eax, dword [ebp - 8]
mov esp, ebp
pop ebp
ret
Function at 0x536a50
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
call fcn.00536560
mov dword [ebp - 8], eax
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp - 8]
mov dword [eax], ecx
mov edx, dword [ebp + 8]
push edx
push 1
push 1
mov eax, dword [ebp - 8]
push eax
call fcn.006b7750
add esp, 0x10
mov ecx, dword [ebp + 8]
push ecx
push 1
push 1
lea edx, [ebp - 2]
push edx
call fcn.006b7750
add esp, 0x10
mov byte [ebp - 1], 0
jmp 0x536a9c
mov al, byte [ebp - 1]
add al, 1
mov byte [ebp - 1], al
movzx ecx, byte [ebp - 1]
movzx edx, byte [ebp - 2]
cmp ecx, edx
jge 0x536aba
mov eax, dword [ebp - 8]
push eax
mov ecx, dword [ebp + 8]
push ecx
call fcn.00536ac0
add esp, 8
jmp 0x536a94
mov esp, ebp
pop ebp
ret

Function at 0x536ac0
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [ebp + 0xc]
push eax
call fcn.005360e0
add esp, 4
mov dword [ebp - 4], eax
mov ecx, dword [ebp + 8]
push ecx
push 1
push 0xc
mov edx, dword [ebp - 4]
push edx
call fcn.006b7750
add esp, 0x10
mov eax, dword [ebp - 4]
mov dword [eax + 8], 0
mov ecx, dword [ebp - 4]
movzx edx, word [ecx + 6]
mov dword [ebp - 0xc], edx
xor eax, eax
mov ecx, dword [ebp - 4]
mov word [ecx + 6], ax
mov dword [ebp - 8], 0
jmp 0x536b18
mov edx, dword [ebp - 8]
add edx, 1
mov dword [ebp - 8], edx
mov eax, dword [ebp - 8]
cmp eax, dword [ebp - 0xc]
jge 0x536b39
mov ecx, dword [ebp + 0xc]
movzx edx, byte [ecx]
push edx
mov eax, dword [ebp - 4]
push eax
mov ecx, dword [ebp + 8]
push ecx
call fcn.00536b40
add esp, 0xc
jmp 0x536b0f
mov esp, ebp
pop ebp
ret

Function at 0x536b40
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov eax, dword [ebp + 0xc]
push eax
call fcn.00536230
add esp, 4
mov dword [ebp - 4], eax
mov ecx, dword [ebp + 8]
push ecx
push 1
push 0x18
mov edx, dword [ebp - 4]
push edx
call fcn.006b7750
add esp, 0x10
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 1
je 0x536b77
jmp 0x536b8e
mov ecx, dword [ebp - 4]
movzx edx, byte [ecx]
cmp edx, 4
jne 0x536b8e
mov eax, 0xff7f
mov ecx, dword [ebp - 4]
mov word [ecx + 6], ax
mov edx, dword [ebp - 4]
mov al, byte [edx]
mov byte [ebp - 0x10], al
cmp byte [ebp - 0x10], 5
je 0x536b9e
jmp 0x536c01
mov ecx, dword [ebp - 4]
cmp dword [ecx + 8], 0
je 0x536c01
mov edx, dword [ebp + 8]
push edx
push 1
push 4
lea eax, [ebp - 8]
push eax
call fcn.006b7750
add esp, 0x10
mov ecx, dword [ebp - 8]
add ecx, 1
push ecx
call fcn.006ca9b0
add esp, 4
mov edx, dword [ebp - 4]
mov dword [edx + 8], eax
mov eax, dword [ebp - 8]
add eax, 1
push eax
push 0
mov ecx, dword [ebp - 4]
mov edx, dword [ecx + 8]
push edx
call fcn.0067d630
add esp, 0xc
mov eax, dword [ebp + 8]
push eax
push 1
mov ecx, dword [ebp - 8]
push ecx
mov edx, dword [ebp - 4]
mov eax, dword [edx + 8]
push eax
call fcn.006b7750
add esp, 0x10
mov esp, ebp
pop ebp
ret
Function at 0x537040
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov eax, dword [ebp + 0xc]
mov ecx, dword [eax + 4]
mov dword [ebp - 8], ecx
mov edx, dword [ebp + 0xc]
mov byte [edx], 2
mov eax, dword [ebp + 8]
push eax
push 1
push 1
mov ecx, dword [ebp + 0xc]
push ecx
call fcn.006cf670
add esp, 0x10
mov edx, dword [ebp + 8]
push edx
push 1
push 1
mov eax, dword [ebp + 0xc]
add eax, 1
push eax
call fcn.006cf670
add esp, 0x10
mov byte [ebp - 1], 0
jmp 0x537098
mov cl, byte [ebp - 1]
add cl, 1
mov byte [ebp - 1], cl
mov edx, dword [ebp - 8]
add edx, 0xc
mov dword [ebp - 8], edx
movzx eax, byte [ebp - 1]
mov ecx, dword [ebp + 0xc]
movzx edx, byte [ecx + 1]
cmp eax, edx
jge 0x5370c0
mov eax, dword [ebp + 0xc]
movzx ecx, byte [eax]
push ecx
mov edx, dword [ebp - 8]
push edx
mov eax, dword [ebp + 8]
push eax
call fcn.005370d0
add esp, 0xc
jmp 0x537086
mov esp, ebp
pop ebp
ret

Function at 0x5370d0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov eax, dword [ebp + 0xc]
mov ecx, dword [eax + 8]
mov dword [ebp - 8], ecx
mov edx, dword [ebp + 8]
push edx
push 1
push 0xc
mov eax, dword [ebp + 0xc]
push eax
call fcn.006cf670
add esp, 0x10
mov dword [ebp - 4], 0
jmp 0x53710e
mov ecx, dword [ebp - 4]
add ecx, 1
mov dword [ebp - 4], ecx
mov edx, dword [ebp - 8]
add edx, 0x18
mov dword [ebp - 8], edx
mov eax, dword [ebp + 0xc]
movzx ecx, word [eax + 6]
cmp dword [ebp - 4], ecx
jge 0x537130
mov edx, dword [ebp + 0x10]
push edx
mov eax, dword [ebp - 8]
push eax
mov ecx, dword [ebp + 8]
push ecx
call fcn.00537140
add esp, 0xc
jmp 0x5370fc
mov esp, ebp
pop ebp
ret

Function at 0x537140
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [ebp + 8]
push eax
push 1
push 0x18
mov ecx, dword [ebp + 0xc]
push ecx
call fcn.006cf670
add esp, 0x10
mov edx, dword [ebp + 0xc]
movzx eax, byte [edx]
cmp eax, 5
jne 0x5371ab
mov ecx, dword [ebp + 0xc]
cmp dword [ecx + 8], 0
je 0x5371ab
mov edx, dword [ebp + 0xc]
mov eax, dword [edx + 8]
push eax
call fcn.006b6c40
add esp, 4
mov dword [ebp - 4], eax
mov ecx, dword [ebp + 8]
push ecx
push 1
push 4
lea edx, [ebp - 4]
push edx
call fcn.006cf670
add esp, 0x10
mov eax, dword [ebp + 8]
push eax
push 1
mov ecx, dword [ebp - 4]
push ecx
mov edx, dword [ebp + 0xc]
mov eax, dword [edx + 8]
push eax
call fcn.006cf670
add esp, 0x10
mov esp, ebp
pop ebp
ret