joyce8/EMBER2024-capa huggingface dataset:
Function at 0x100ba0b0
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1010ea88
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x1c
push esi
mov dword [ebp - 0x14], 0xf
mov dword [ebp - 0x18], 0
mov byte [ebp - 0x28], 0
lea eax, [ebp - 0x28]
mov dword [ebp - 4], 0
push eax
push str.AllowDShowMovies
mov edx, str.Graphics
mov ecx, str.._sfall.ini
call fcn.100052a0
mov dword [0x10154e3c], eax
cmp eax, 1
je 0x100ba12a
mov dword [ebp - 4], 0xffffffff
mov edx, dword [ebp - 0x14]
cmp edx, 0x10
jb 0x100ba126
mov ecx, dword [ebp - 0x28]
inc edx
push 1
call fcn.1000d8e0
mov eax, dword [0x10154e3c]
xor esi, esi
jmp 0x100ba15d
cmp dword [ebp - 0x14], 0x10
lea ecx, [ebp - 0x28]
cmovae ecx, dword [ebp - 0x28]
xor edx, edx
call fcn.10005410
mov dword [ebp - 4], 0xffffffff
mov esi, eax
mov edx, dword [ebp - 0x14]
cmp edx, 0x10
jb 0x100ba158
mov ecx, dword [ebp - 0x28]
inc edx
push 1
call fcn.1000d8e0
mov eax, dword [0x10154e3c]
cmp byte [0x10153f67], 0
mov byte [ebp - 0x28], 0
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 0xf
je 0x100ba195
cmp eax, 1
je 0x100ba195
push str..ddraw.ini
push 0
mov edx, str.AllowDShowMovies
mov ecx, str.Graphics
call fcn.10005480
mov esi, eax
test esi, esi
jle 0x100ba221
lea eax, [ebp - 0x10]
cmp esi, 2
mov esi, dword [sym.imp.KERNEL32.dll_VirtualProtect]
push eax
push 0x40
push 5
push 0x44e690
setge byte [0x10175332]
call esi
mov eax, 0x100b9df0
mov byte [0x44e690], 0xe9
sub eax, 0x44e695
mov dword [0x44e691], eax
lea eax, [ebp - 0x10]
push eax
push dword [ebp - 0x10]
push 5
push 0x44e690
call esi
lea eax, [ebp - 0x10]
push eax
push 0x40
push 4
push 0x44e994
call esi
mov eax, 0x100b9e30
sub eax, 0x44e998
mov dword [0x44e994], eax
lea eax, [ebp - 0x10]
push eax
push dword [ebp - 0x10]
push 4
push 0x44e994
call esi
mov al, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop esi
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 0xc]
xor al, al
mov dword fs:[0], ecx
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x100ba720
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x104
push ebx
push esi
mov esi, dword [ebp + 0x10]
push edi
mov edi, dword [ebp + 0xc]
mov edx, edi
push str.._sfall.ini
mov dword [esp + 0x10], ecx
mov ecx, str.Misc
push esi
call fcn.10005480
cmp byte [0x10153f67], 0
mov ebx, eax
je 0x100ba773
cmp dword [0x10154e3c], 1
je 0x100ba773
push str..ddraw.ini
push esi
mov edx, edi
mov ecx, str.Misc
call fcn.10005480
mov ebx, eax
cmp ebx, esi
je 0x100ba80e
cmp ebx, dword [ebp + 0x18]
lea eax, [esp + 0x10]
cmova ebx, dword [ebp + 0x18]
push ebx
push edi
push str.Applying_patch:__s___d.
push 0xffffffffffffffff
push 0xff
push eax
call fcn.10013420
add esp, 0x18
cmp byte [0x10174f84], 0
je 0x100ba7e6
test byte [0x10174f88], 1
je 0x100ba7e6
lea edx, [esp + 0x10]
mov ecx, 0x10153db8
call fcn.10012cf0
push eax
call fcn.10012f90
add esp, 4
cmp dword [0x101553d8], 0
je 0x100ba7e6
lea edx, [esp + 0x10]
mov ecx, 0x10141e60
call fcn.10012cf0
push eax
call fcn.10012f90
add esp, 4
mov edi, dword [esp + 0xc]
lea eax, [esp + 0xc]
mov esi, dword [sym.imp.KERNEL32.dll_VirtualProtect]
push eax
push 0x40
mov edi, dword [edi]
push 4
push edi
call esi
lea eax, [esp + 0xc]
mov dword [edi], ebx
push eax
push dword [esp + 0x10]
push 4
push edi
call esi
pop edi
pop esi
mov eax, ebx
pop ebx
mov esp, ebp
pop ebp
ret 0x14
Function at 0x100bc180
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1010e708
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x28
mov eax, 0x51
mov byte [0x1016eb0e], 1
push esi
mov word [0x518d32], ax
mov dword [ebp - 0x20], 0xf
mov dword [ebp - 0x24], 0
mov byte [ebp - 0x34], 0
lea eax, [ebp - 0x34]
mov dword [ebp - 4], 0
push eax
push str.SmartBehavior
mov edx, str.CombatAI
mov ecx, str.._sfall.ini
call fcn.100052a0
mov dword [0x10154e3c], eax
cmp eax, 1
je 0x100bc20f
mov dword [ebp - 4], 0xffffffff
mov edx, dword [ebp - 0x20]
cmp edx, 0x10
jb 0x100bc208
mov ecx, dword [ebp - 0x34]
inc edx
push 1
call fcn.1000d8e0
mov eax, dword [0x10154e3c]
mov esi, 1
jmp 0x100bc245
cmp dword [ebp - 0x20], 0x10
lea ecx, [ebp - 0x34]
mov edx, 1
cmovae ecx, dword [ebp - 0x34]
call fcn.10005410
mov dword [ebp - 4], 0xffffffff
mov esi, eax
mov edx, dword [ebp - 0x20]
cmp edx, 0x10
jb 0x100bc240
mov ecx, dword [ebp - 0x34]
inc edx
push 1
call fcn.1000d8e0
mov eax, dword [0x10154e3c]
cmp byte [0x10153f67], 0
mov byte [ebp - 0x34], 0
mov dword [ebp - 0x24], 0
mov dword [ebp - 0x20], 0xf
je 0x100bc27d
cmp eax, 1
je 0x100bc27d
push str..ddraw.ini
push 1
mov edx, str.SmartBehavior
mov ecx, str.CombatAI
call fcn.10005480
mov esi, eax
test esi, esi
jg 0x100bc2b5
mov esi, dword [sym.imp.KERNEL32.dll_VirtualProtect]
lea eax, [ebp - 0x10]
push eax
push 0x40
push 4
push 0x42b236
call esi
mov eax, 0x100bc160
sub eax, 0x42b23a
mov dword [0x42b236], eax
lea eax, [ebp - 0x10]
push eax
push dword [ebp - 0x10]
push 4
push 0x42b236
call esi
sub esp, 0x28
mov ecx, 0x10154e24
mov eax, esp
mov dword [eax], 0x1012e13c
mov dword [eax + 0x24], eax
lea eax, [ebp - 0x1c]
push eax
call fcn.1001d220
mov ecx, dword [ebp - 0x1c]
test ecx, ecx
je 0x100bc306
push dword [ebp - 0x10]
mov edx, dword [ebp - 0x18]
push ecx
call fcn.1000fa00
mov edx, dword [ebp - 0x14]
mov eax, 0x66666667
mov ecx, dword [ebp - 0x1c]
sub edx, ecx
imul edx
push 0x28
mov eax, edx
sar eax, 4
mov edx, eax
shr edx, 0x1f
add edx, eax
call fcn.1000d8e0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x100be050
Capabilities:
Allocate or change rwx memory

Disassembly:
sub esp, 0xc
lea eax, [esp]
push eax
push 0x40
push 4
push 0x43d128
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
mov eax, 0x100bd5c0
sub eax, 0x43d12c
mov dword [0x43d128], eax
lea eax, [esp]
push eax
push dword [esp + 4]
push 4
push 0x43d128
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
lea eax, [esp + 8]
mov dword [esp], 0x43d25e
lea ecx, [esp]
mov dword [esp + 4], 0x43d275
push eax
push ecx
mov ecx, 0x100bd5e0
call fcn.100122c0
lea eax, [esp + 4]
mov dword [esp], 0x43d17d
lea ecx, [esp]
push eax
push ecx
mov ecx, 0x100bd600
call fcn.100122c0
add esp, 0xc
ret
Function at 0x100bf100
Capabilities:
Write file on windows

Disassembly:
push ecx
mov edx, dword [0x10154f90]
mov eax, 0x77975b9
sub edx, dword [0x10154f8c]
imul edx
push ebx
push esi
push edi
sar edx, 5
mov edi, ecx
mov eax, edx
shr eax, 0x1f
push edi
add eax, edx
push 1
mov dword [esp + 0x14], eax
lea eax, [esp + 0x14]
push 4
push eax
call fcn.100f5ff9
xor ebx, ebx
add esp, 0x10
cmp dword [esp + 0xc], ebx
jbe 0x100bf168
xor esi, esi
mov eax, dword [0x10154f8c]
push edi
push 1
add eax, esi
push 0x448
push eax
call fcn.100f5ff9
inc ebx
add esp, 0x10
add esi, 0x448
cmp ebx, dword [esp + 0xc]
jb 0x100bf143
mov ecx, dword [0x10154f9c]
mov eax, 0x77975b9
sub ecx, dword [0x10154f98]
imul ecx
push edi
sar edx, 5
mov eax, edx
shr eax, 0x1f
add eax, edx
push 1
mov dword [esp + 0x14], eax
lea eax, [esp + 0x14]
push 4
push eax
call fcn.100f5ff9
xor ebx, ebx
add esp, 0x10
cmp dword [esp + 0xc], ebx
jbe 0x100bf1ca
xor esi, esi
mov eax, dword [0x10154f98]
push edi
push 1
add eax, esi
push 0x448
push eax
call fcn.100f5ff9
inc ebx
add esp, 0x10
add esi, 0x448
cmp ebx, dword [esp + 0xc]
jb 0x100bf1a5
mov ecx, dword [0x10154fa8]
mov eax, 0x77975b9
sub ecx, dword [0x10154fa4]
imul ecx
push edi
sar edx, 5
mov eax, edx
shr eax, 0x1f
add eax, edx
push 1
mov dword [esp + 0x14], eax
lea eax, [esp + 0x14]
push 4
push eax
call fcn.100f5ff9
xor ebx, ebx
add esp, 0x10
cmp dword [esp + 0xc], ebx
jbe 0x100bf22c
xor esi, esi
mov eax, dword [0x10154fa4]
push edi
push 1
add eax, esi
push 0x448
push eax
call fcn.100f5ff9
inc ebx
add esp, 0x10
add esi, 0x448
cmp ebx, dword [esp + 0xc]
jb 0x100bf207
pop edi
pop esi
pop ebx
pop ecx
ret
Function at 0x100c4480
Capabilities:
Get file attributes

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x220
push esi
xor eax, eax
mov byte [esp + 0xb], dl
mov esi, ecx
push edi
cmp dl, 1
je 0x100c44cc
mov edi, dword [0x5193cc]
cmp byte [edi], al
je 0x100c44c1
mov cl, byte [edi]
nop word [eax + eax]
movsx cx, cl
mov word [esp + eax*2 + 0x20], cx
inc eax
mov cl, byte [edi + eax]
test cl, cl
jne 0x100c44b0
mov ecx, 0x5c
mov word [esp + eax*2 + 0x20], cx
inc eax
sub esi, eax
mov cl, byte [esi + eax]
test cl, cl
je 0x100c44e6
movsx cx, cl
mov word [esp + eax*2 + 0x20], cx
inc eax
mov cl, byte [esi + eax]
test cl, cl
jne 0x100c44d5
cmp eax, 0x104
jb 0x100c44f7
xor al, al
pop edi
pop esi
mov esp, ebp
pop ebp
ret 4
xor ecx, ecx
lea edx, [esp + eax*2 + 0x1c]
mov word [esp + eax*2 + 0x20], cx
lea edi, [esp + eax*2 + 0x1a]
lea eax, [esp + eax*2 + 0x1e]
mov byte [esp + 0x10], cl
mov dword [esp + 0x14], edx
mov esi, 0x1012e7f8
mov dword [esp + 0x1c], eax
nop dword [eax + eax]
mov ecx, dword [esi]
movzx eax, word [ecx]
mov word [edi], ax
movzx eax, word [ecx + 2]
mov word [edx], ax
movzx eax, word [ecx + 4]
mov ecx, dword [esp + 0x1c]
mov word [ecx], ax
lea eax, [esp + 0x20]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
test al, 0x10
je 0x100c455a
mov edx, dword [esp + 0x14]
add esi, 4
cmp esi, str._StatRecalcDerived__Error_get_critter_prototype_pid:__d_n
jl 0x100c4520
jmp 0x100c455f
mov byte [esp + 0x10], 1
cmp byte [esp + 0x10], 0
lea eax, [esp + 0x20]
mov ecx, 0x1012e678
cmove eax, ecx
mov dword [esp + 0x14], eax
mov eax, dword [0x10155294]
mov esi, dword [eax]
lea eax, [esp + 0x14]
push eax
push dword [ebp + 8]
push dword [esi + 4]
push esi
call fcn.100c6040
mov edx, dword [0x10155298]
mov ecx, 0x4924923
sub ecx, edx
mov edi, eax
cmp ecx, 1
jb 0x100c45e3
inc edx
mov ecx, 0x10155290
mov dword [0x10155298], edx
mov dword [esi + 4], edi
mov eax, dword [edi + 4]
mov dword [eax], edi
mov eax, dword [0x10155294]
mov eax, dword [eax]
push eax
add eax, 8
push eax
lea eax, [esp + 0x1c]
push eax
call fcn.100c5bd0
push dword [esp + 0x10]
mov cl, byte [esp + 0x13]
lea edx, [esp + 0x24]
call fcn.100c42b0
pop edi
pop esi
mov esp, ebp
pop ebp
ret 4
push str.list_T__too_long
call fcn.100e89e5
int3
Function at 0x100c5850
Capabilities:
Encode data using xor
Hash data using fnv

Disassembly:
sub esp, 0xc
push ebx
mov ebx, dword [esp + 0x18]
push esi
push edi
cmp dword [ebx + 0x14], 0x10
mov edi, dword [ebx + 0x10]
mov dword [esp + 0xc], edi
jb 0x100c586b
mov esi, dword [ebx]
jmp 0x100c586d
mov esi, ebx
xor ecx, ecx
mov edx, 0x811c9dc5
test edi, edi
je 0x100c5889
movzx eax, byte [esi + ecx]
inc ecx
xor eax, edx
imul edx, eax, 0x1000193
cmp ecx, edi
jb 0x100c5878
mov ecx, dword [0x101552a8]
and ecx, edx
mov edx, dword [0x1015529c]
mov eax, dword [edx + ecx*8]
add ecx, ecx
mov esi, dword [edx + ecx*4]
inc ecx
mov dword [esp + 0x10], esi
lea ecx, [edx + ecx*4]
mov dword [esp + 0x14], ecx
nop dword [eax + eax]
mov edx, dword [0x10155294]
cmp esi, edx
jne 0x100c58be
mov ecx, edx
jmp 0x100c58c2
mov ecx, dword [ecx]
mov ecx, dword [ecx]
cmp eax, ecx
je 0x100c5a07
cmp dword [ebx + 0x14], 0x10
lea edx, [eax + 8]
jb 0x100c58d7
mov edi, dword [ebx]
jmp 0x100c58d9
mov edi, ebx
cmp dword [edx + 0x14], 0x10
lea ecx, [edx + 0x10]
jb 0x100c58e4
mov edx, dword [edx]
mov ecx, dword [ecx]
mov dword [esp + 0x20], ecx
mov ecx, dword [esp + 0xc]
mov esi, ecx
cmp dword [esp + 0x20], ecx
cmovb esi, dword [esp + 0x20]
test esi, esi
je 0x100c5956
sub esi, 4
jb 0x100c5913
mov ecx, dword [edx]
cmp ecx, dword [edi]
jne 0x100c5918
add edx, 4
add edi, 4
sub esi, 4
jae 0x100c5902
cmp esi, 0xfffffffc
je 0x100c594c
mov cl, byte [edx]
cmp cl, byte [edi]
jne 0x100c5945
cmp esi, 0xfffffffd
je 0x100c594c
mov cl, byte [edx + 1]
cmp cl, byte [edi + 1]
jne 0x100c5945
cmp esi, 0xfffffffe
je 0x100c594c
mov cl, byte [edx + 2]
cmp cl, byte [edi + 2]
jne 0x100c5945
cmp esi, 0xffffffff
je 0x100c594c
mov cl, byte [edx + 3]
cmp cl, byte [edi + 3]
je 0x100c594c
sbb ecx, ecx
or ecx, 1
jmp 0x100c594e
xor ecx, ecx
test ecx, ecx
jne 0x100c5960
mov ecx, dword [esp + 0xc]
mov edx, dword [esp + 0x20]
cmp edx, ecx
jb 0x100c5960
jbe 0x100c596f
mov eax, dword [eax]
mov esi, dword [esp + 0x10]
mov ecx, dword [esp + 0x14]
jmp 0x100c58b0
cmp dword [eax + 0x1c], 0x10
lea edx, [eax + 8]
lea edi, [edx + 0x10]
jb 0x100c597d
mov edx, dword [edx]
cmp dword [ebx + 0x14], 0x10
jb 0x100c5985
mov ebx, dword [ebx]
mov edi, dword [edi]
cmp ecx, edi
mov esi, edi
cmovb esi, ecx
test esi, esi
je 0x100c59eb
sub esi, 4
jb 0x100c59a8
mov ecx, dword [ebx]
cmp ecx, dword [edx]
jne 0x100c59ad
add ebx, 4
add edx, 4
sub esi, 4
jae 0x100c5997
cmp esi, 0xfffffffc
je 0x100c59e1
mov cl, byte [ebx]
cmp cl, byte [edx]
jne 0x100c59da
cmp esi, 0xfffffffd
je 0x100c59e1
mov cl, byte [ebx + 1]
cmp cl, byte [edx + 1]
jne 0x100c59da
cmp esi, 0xfffffffe
je 0x100c59e1
mov cl, byte [ebx + 2]
cmp cl, byte [edx + 2]
jne 0x100c59da
cmp esi, 0xffffffff
je 0x100c59e1
mov cl, byte [ebx + 3]
cmp cl, byte [edx + 3]
je 0x100c59e1
sbb ecx, ecx
or ecx, 1
jmp 0x100c59e3
xor ecx, ecx
test ecx, ecx
jne 0x100c59f1
mov ecx, dword [esp + 0xc]
cmp ecx, edi
jb 0x100c59f1
jbe 0x100c59f6
mov eax, dword [0x10155294]
mov ecx, dword [esp + 0x1c]
pop edi
pop esi
pop ebx
mov dword [ecx], eax
mov eax, ecx
add esp, 0xc
ret 8
mov eax, dword [esp + 0x1c]
pop edi
pop esi
pop ebx
mov dword [eax], edx
add esp, 0xc
ret 8
Function at 0x100c8930
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x84
push esi
mov esi, dword [sym.imp.KERNEL32.dll_VirtualProtect]
lea eax, [esp + 8]
push eax
push 0x40
push 5
push 0x47d80d
call esi
mov eax, 0x100c8100
mov byte [0x47d80d], 0xe8
sub eax, 0x47d812
mov dword [0x47d80e], eax
lea eax, [esp + 8]
push eax
push dword [esp + 0xc]
push 5
push 0x47d80d
call esi
lea eax, [esp + 8]
push eax
push 0x40
push 5
push 0x47e6e8
call esi
mov eax, 0x100c88e0
mov byte [0x47e6e8], 0xe8
sub eax, 0x47e6ed
mov dword [0x47e6e9], eax
lea eax, [esp + 8]
push eax
push dword [esp + 0xc]
push 5
push 0x47e6e8
call esi
lea eax, [esp + 0x10]
mov dword [esp + 8], 0x47bd49
lea ecx, [esp + 8]
mov dword [esp + 0xc], 0x47cb1c
push eax
push ecx
mov ecx, 0x100c85e0
call fcn.10012340
lea eax, [esp + 8]
push eax
push 0x40
push 5
push 0x47d828
call esi
mov eax, 0x100c7ee0
mov byte [0x47d828], 0xe8
sub eax, 0x47d82d
mov dword [0x47d829], eax
lea eax, [esp + 8]
push eax
push dword [esp + 0xc]
push 5
push 0x47d828
call esi
lea eax, [esp + 8]
push eax
push 0x40
push 5
push 0x47b82b
call esi
mov eax, 0x100c80f0
mov byte [0x47b82b], 0xe8
sub eax, 0x47b830
mov dword [0x47b82c], eax
lea eax, [esp + 8]
push eax
push dword [esp + 0xc]
push 5
push 0x47b82b
call esi
mov dword [esp + 0x10], 0x47b929
mov dword [esp + 0x14], 0x47d8db
mov dword [esp + 0x18], 0x47d9b0
mov dword [esp + 0x1c], 0x47da34
mov dword [esp + 0x20], 0x47dabf
mov dword [esp + 0x24], 0x47db58
mov dword [esp + 0x28], 0x47dbe9
lea eax, [esp + 0x84]
mov dword [esp + 0x2c], 0x47ec77
lea ecx, [esp + 0x10]
mov dword [esp + 0x30], 0x47dc9c
push eax
push ecx
mov ecx, 0x100c88f0
mov dword [esp + 0x3c], 0x47f5ab
mov dword [esp + 0x40], 0x47f694
mov dword [esp + 0x44], 0x47f6eb
mov dword [esp + 0x48], 0x47f7fb
mov dword [esp + 0x4c], 0x47f892
mov dword [esp + 0x50], 0x47fb86
mov dword [esp + 0x54], 0x47fc3a
mov dword [esp + 0x58], 0x47fcf2
mov dword [esp + 0x5c], 0x480117
mov dword [esp + 0x60], 0x4801cf
mov dword [esp + 0x64], 0x480234
mov dword [esp + 0x68], 0x480310
mov dword [esp + 0x6c], 0x4803f3
mov dword [esp + 0x70], 0x48049f
mov dword [esp + 0x74], 0x480512
mov dword [esp + 0x78], 0x4805f2
mov dword [esp + 0x7c], 0x480767
mov dword [esp + 0x80], 0x4807e6
mov dword [esp + 0x84], 0x480839
mov dword [esp + 0x88], 0x4808d3
call fcn.10012340
lea eax, [esp + 8]
push eax
push 0x40
push 5
push 0x47e5e1
call esi
mov eax, 0x100c8900
mov byte [0x47e5e1], 0xe9
sub eax, 0x47e5e6
mov dword [0x47e5e2], eax
lea eax, [esp + 8]
push eax
push dword [esp + 0xc]
push 5
push 0x47e5e1
call esi
lea eax, [esp + 8]
push eax
push 0x40
push 5
push 0x47e756
call esi
mov eax, 0x100c8920
mov byte [0x47e756], 0xe8
sub eax, 0x47e75b
mov dword [0x47e757], eax
lea eax, [esp + 8]
push eax
push dword [esp + 0xc]
push 5
push 0x47e756
call esi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x100d4e90
Capabilities:
Read file on windows

Disassembly:
push ebx
mov ebx, dword [esp + 8]
push esi
push edi
mov edi, ecx
push ebx
push 1
push 4
lea esi, [edi + 4]
push esi
call fcn.100f6e6a
mov eax, dword [esi]
add esp, 0x10
sub eax, 1
je 0x100d4ecb
sub eax, 1
je 0x100d4ec3
sub eax, 1
jne 0x100d4ed1
mov dword [esi], 0x9001
jmp 0x100d4ed1
mov dword [esi], 0xa001
jmp 0x100d4ed1
mov dword [esi], 0xc001
cmp dword [esi], 0x9001
push ebx
push 1
push 4
jne 0x100d4f17
lea esi, [edi + 8]
push esi
call fcn.100f6e6a
mov ecx, eax
add esp, 0x10
mov eax, dword [esi]
test eax, eax
je 0x100d4f0e
push eax
mov byte [edi], 1
call fcn.100ea148
push ebx
push dword [esi]
mov dword [edi + 0xc], eax
push 1
push eax
call fcn.100f6e6a
add esp, 0x14
jmp 0x100d4f2c
mov dword [edi + 0xc], 0
jmp 0x100d4f2e
lea eax, [edi + 0xc]
push eax
call fcn.100f6e6a
lea esi, [edi + 8]
add esp, 0x10
mov dword [esi], 0
mov ecx, eax
mov edx, dword [esi]
xor eax, eax
pop edi
pop esi
pop ebx
test edx, edx
je 0x100d4f41
cmp ecx, edx
setne al
ret 4
cmp ecx, 1
setne al
ret 4

Function at 0x100d4f50
Capabilities:
Write file on windows

Disassembly:
push ecx
push ebx
push edi
mov edi, ecx
mov ecx, dword [edi + 4]
cmp ecx, 0x9001
je 0x100d4f7c
cmp ecx, 0xa001
je 0x100d4f75
xor eax, eax
cmp ecx, 0xc001
sete al
jmp 0x100d4f81
mov eax, 2
jmp 0x100d4f81
mov eax, 3
mov ebx, dword [esp + 0x10]
push ebx
push 1
mov dword [esp + 0x10], eax
lea eax, [esp + 0x10]
push 4
push eax
call fcn.100f5ff9
add esp, 0x10
cmp dword [edi + 4], 0x9001
jne 0x100d4fca
push esi
push ebx
push 1
lea esi, [edi + 8]
push 4
push esi
call fcn.100f5ff9
push ebx
push dword [esi]
push 1
push dword [edi + 0xc]
call fcn.100f5ff9
add esp, 0x20
pop esi
pop edi
pop ebx
pop ecx
ret 4
push ebx
push 1
lea eax, [edi + 0xc]
push 4
push eax
call fcn.100f5ff9
add esp, 0x10
pop edi
pop ebx
pop ecx
ret 4

Function at 0x100d5070
Capabilities:
Read file on windows

Disassembly:
push ecx
push ecx
push 1
lea eax, [esp + 8]
push 4
push eax
call fcn.100f6e6a
add esp, 0x10
cmp eax, 1
je 0x100d508d
or eax, 0xffffffff
pop ecx
ret
cmp dword [esp], 0
jne 0x100d5097
xor eax, eax
pop ecx
ret
mov edx, str.ERROR:_Loading_arrays_from_old_format_is_OBSOLETE_
mov ecx, 0x10153db8
call fcn.10012cf0
push eax
call fcn.10012f90
add esp, 4
cmp dword [0x101553d8], 0
je 0x100d50d0
mov edx, str.ERROR:_Loading_arrays_from_old_format_is_OBSOLETE_
mov ecx, 0x10141e60
call fcn.10012cf0
push eax
call fcn.10012f90
add esp, 4
mov eax, 1
pop ecx
ret
Function at 0x100d50e0
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x1010fc0e
push eax
mov dword fs:[0], esp
sub esp, 0x50
mov dword [0x1018230c], 0
push ebx
push esi
push edi
mov ebx, ecx
call fcn.100d5070
test eax, eax
jne 0x100d52fe
push ebx
push 1
lea eax, [ebp - 0x20]
push 4
push eax
call fcn.100f6e6a
add esp, 0x10
cmp eax, 1
je 0x100d5143
mov eax, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov edx, str.Loading_arrays__new_format_...
mov ecx, 0x10153db8
call fcn.10012cf0
push eax
call fcn.10012f90
add esp, 4
cmp dword [0x101553d8], 0
je 0x100d517c
mov edx, str.Loading_arrays__new_format_...
mov ecx, 0x10141e60
call fcn.10012cf0
push eax
call fcn.10012f90
add esp, 4
cmp dword [ebp - 0x20], 0
mov byte [ebp - 0x58], 0
mov dword [ebp - 0x54], 0
mov dword [ebp - 0x50], 0
mov dword [ebp - 0x4c], 0
mov byte [ebp - 0x48], 0
mov dword [ebp - 0x1c], 0
jbe 0x100d52fc
nop word [eax + eax]
push ebx
lea ecx, [ebp - 0x58]
call fcn.100d4e90
test al, al
jne 0x100d530f
push ebx
push 1
lea eax, [ebp - 0x10]
push 4
push eax
call fcn.100f6e6a
push ebx
push 1
lea eax, [ebp - 0x18]
push 4
push eax
call fcn.100f6e6a
add esp, 0x20
cmp eax, 1
jne 0x100d530f
test byte [ebp - 0x10], al
je 0x100d520e
push 0x48
call fcn.100e9ed3
add esp, 4
mov dword [ebp - 0x30], eax
mov dword [ebp - 4], 0
mov ecx, eax
push dword [ebp - 0x10]
call fcn.100ce6b0
jmp 0x100d522f
push 0x28
call fcn.100e9ed3
add esp, 4
mov dword [ebp - 0x34], eax
mov dword [ebp - 4], 1
mov ecx, eax
push dword [ebp - 0x10]
push dword [ebp - 0x18]
call fcn.100cde40
mov esi, eax
mov dword [ebp - 4], 0xffffffff
lea eax, [ebp - 0x58]
mov dword [ebp - 0x14], esi
push eax
lea ecx, [esi + 8]
call fcn.100d4cf0
push dword [ebp - 0x18]
mov eax, dword [esi]
mov ecx, esi
push ebx
call dword [eax + 0x18]
test eax, eax
jne 0x100d530f
mov esi, dword [0x101552e4]
mov edi, dword [0x1018230c]
lea eax, [ebp - 0x24]
inc edi
push eax
lea eax, [ebp - 0x28]
mov dword [0x1018230c], edi
push eax
mov dword [ebp - 0x24], edi
call fcn.100d6150
cmp dword [ebp - 0x28], esi
jne 0x100d5266
test edi, edi
mov eax, 1
cmove edi, eax
lea eax, [ebp - 0x14]
push eax
push ecx
lea eax, [ebp - 0x44]
mov dword [0x1018230c], edi
push eax
call fcn.100d6450
mov esi, dword [ebp - 0x14]
lea eax, [ebp - 0x2c]
add esi, 8
mov ecx, 0x10182610
push esi
push eax
call fcn.100cf670
mov eax, dword [ebp - 0x2c]
cmp eax, dword [0x10182614]
jne 0x100d52dc
push ecx
lea eax, [ebp - 0x24]
mov dword [ebp - 0x24], esi
push eax
push ecx
lea eax, [ebp - 0x3c]
mov ecx, 0x10182610
push eax
call fcn.100cfe00
mov eax, dword [ebp - 0x3c]
jmp 0x100d52e3
mov dword [ebp - 0x3c], eax
mov byte [ebp - 0x38], 0
mov esi, dword [ebp - 0x1c]
mov ecx, dword [0x1018230c]
inc esi
mov dword [eax + 0x1c], ecx
mov dword [ebp - 0x1c], esi
cmp esi, dword [ebp - 0x20]
jb 0x100d51b0
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 0xc]
or eax, 0xffffffff
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x100d5330
Capabilities:
Write file on windows

Disassembly:
sub esp, 0xc
push ebx
push esi
push edi
mov ebx, ecx
mov dword [esp + 0xc], 0
push ebx
push 1
lea eax, [esp + 0x14]
push 4
push eax
call fcn.100f5ff9
mov esi, dword [0x10182614]
add esp, 0x10
mov edi, dword [esi]
cmp edi, esi
je 0x100d5404
lea eax, [edi + 0x1c]
push eax
lea eax, [esp + 0x18]
push eax
call fcn.100d6150
mov eax, dword [esp + 0x14]
cmp eax, dword [0x101552e4]
jne 0x100d53f6
lea ecx, [edi + 8]
call fcn.100d4ff0
and eax, dword [0x10182628]
lea edx, [eax*8]
mov eax, dword [0x1018261c]
cmp dword [edx + eax + 4], edi
jne 0x100d53c4
cmp dword [edx + eax], edi
jne 0x100d53bb
mov ecx, dword [0x10182614]
mov dword [edx + eax], ecx
mov ecx, dword [0x1018261c]
mov eax, dword [0x10182614]
mov dword [edx + ecx + 4], eax
jmp 0x100d53ce
mov ecx, dword [edi + 4]
mov dword [edx + eax + 4], ecx
jmp 0x100d53ce
cmp dword [edx + eax], edi
jne 0x100d53ce
mov ecx, dword [edi]
mov dword [edx + eax], ecx
mov eax, dword [edi + 4]
mov esi, dword [edi]
push edi
mov dword [eax], esi
mov ecx, dword [edi]
mov eax, dword [edi + 4]
mov dword [ecx + 4], eax
dec dword [0x10182618]
call fcn.100e9b9e
mov edi, esi
add esp, 4
mov esi, dword [0x10182614]
jmp 0x100d53fc
inc dword [esp + 0xc]
mov edi, dword [edi]
cmp edi, esi
jne 0x100d5362
push ebx
push 1
lea eax, [esp + 0x14]
push 4
push eax
call fcn.100f5ff9
add esp, 0x10
cmp dword [esp + 0xc], 0
je 0x100d54a1
mov edi, dword [0x10182614]
mov esi, dword [edi]
cmp esi, edi
je 0x100d54a1
nop dword [eax]
lea eax, [esi + 0x1c]
push eax
lea eax, [esp + 0x18]
push eax
call fcn.100d6150
mov eax, dword [esp + 0x14]
cmp eax, dword [0x101552e4]
je 0x100d549b
mov edi, dword [eax + 0xc]
push ebx
lea ecx, [edi + 8]
call fcn.100d4f50
movzx eax, word [edi + 4]
push ebx
push 1
mov dword [esp + 0x18], eax
lea eax, [esp + 0x18]
push 4
push eax
call fcn.100f5ff9
mov eax, dword [edi]
add esp, 0x10
mov ecx, edi
call dword [eax + 0x28]
push ebx
push 1
mov dword [esp + 0x18], eax
lea eax, [esp + 0x18]
push 4
push eax
call fcn.100f5ff9
mov eax, dword [edi]
add esp, 0x10
mov ecx, edi
push ebx
call dword [eax + 0x1c]
mov edi, dword [0x10182614]
mov esi, dword [esi]
cmp esi, edi
jne 0x100d5430
pop edi
pop esi
pop ebx
add esp, 0xc
ret