joyce8/EMBER2024-capa huggingface dataset:
Function at 0x10012730
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x44
mov eax, dword [0x10043078]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
xorps xmm0, xmm0
mov edx, dword [ebp + 0xc]
movq qword [ecx + 4], xmm0
mov word [ecx + 0xc], 0
push ebx
lea ebx, [ecx + 4]
movq qword [ebp - 0x10], xmm0
mov byte [ebx + 0xa], 0
movups xmmword [ecx + 0xf], xmm0
push edi
lea edi, [ecx + 0xf]
mov word [ebp - 8], 0
mov dword [edi + 0x10], 0
lea ecx, [ebp - 0x28]
mov byte [edi + 0x14], 0
movups xmmword [ebp - 0x28], xmm0
mov dword [ebp - 0x18], 0
movq xmm0, qword [eax]
mov ax, word [eax + 8]
mov word [ebp - 8], ax
mov eax, dword [edx + 0x10]
xor byte [ebp - 8], 0xab
xor byte [ebp - 7], 0xfc
mov dword [ebp - 0x18], eax
mov eax, 1
sub eax, ecx
movq qword [ebp - 0x10], xmm0
movups xmm0, xmmword [edx]
xor byte [ebp - 0x10], 0xfc
xor byte [ebp - 0xf], 0xcf
xor byte [ebp - 0xe], 0xab
xor byte [ebp - 0xd], 0xfc
xor byte [ebp - 0xc], 0xcf
xor byte [ebp - 0xb], 0xab
xor byte [ebp - 0xa], 0xfc
xor byte [ebp - 9], 0xcf
mov dword [ebp - 0x30], eax
mov eax, 2
sub eax, ecx
mov dword [ebp - 0x44], edi
mov dword [ebp - 0x34], eax
xor edi, edi
mov eax, 3
mov dword [ebp - 0x40], ebx
mov ebx, dword [ebp - 0x30]
sub eax, ecx
mov dword [ebp - 0x38], eax
mov eax, 4
sub eax, ecx
mov byte [ebp - 6], 0
mov byte [ebp - 0x14], 0
movups xmmword [ebp - 0x28], xmm0
mov word [ebp - 0x2c], 0xcffc
mov byte [ebp - 0x2a], 0xab
mov dword [ebp - 0x3c], eax
push esi
mov eax, 0xaaaaaaab
lea esi, [ebp - 0x28]
mul edi
add esi, edi
mov ecx, edi
shr edx, 1
lea eax, [edx + edx*2]
sub ecx, eax
movzx eax, byte [ebp + ecx - 0x2c]
lea ecx, [esi + ebx]
xor byte [esi], al
mov eax, 0xaaaaaaab
mul ecx
mov ecx, edi
shr edx, 1
lea eax, [edx + edx*2]
sub ecx, eax
movzx eax, byte [ebp + ecx - 0x2b]
xor byte [esi + 1], al
mov eax, 0xaaaaaaab
mov ecx, dword [ebp - 0x34]
lea ecx, [esi + ecx]
mul ecx
mov ecx, edi
shr edx, 1
lea eax, [edx + edx*2]
sub ecx, eax
movzx eax, byte [ebp + ecx - 0x2a]
xor byte [esi + 2], al
mov eax, 0xaaaaaaab
mov ecx, dword [ebp - 0x38]
lea ecx, [esi + ecx]
mul ecx
mov ecx, edi
shr edx, 1
lea eax, [edx + edx*2]
sub ecx, eax
movzx eax, byte [ebp + ecx - 0x29]
xor byte [esi + 3], al
mov eax, 0xaaaaaaab
mov ecx, dword [ebp - 0x3c]
lea ecx, [esi + ecx]
mul ecx
mov ecx, edi
add edi, 5
shr edx, 1
lea eax, [edx + edx*2]
sub ecx, eax
movzx eax, byte [ebp + ecx - 0x28]
xor byte [esi + 4], al
cmp edi, 0x14
jl 0x10012814
mov ebx, dword [ebp - 0x40]
lea ecx, [ebp - 0x10]
mov edi, dword [ebp - 0x44]
mov eax, ecx
sub ebx, eax
pop esi
nop
mov al, byte [ecx]
lea ecx, [ecx + 1]
mov byte [ebx + ecx - 1], al
test al, al
jne 0x100128c0
lea eax, [ebp - 0x28]
mov ecx, eax
sub edi, ecx
mov cl, byte [eax]
lea eax, [eax + 1]
mov byte [edi + eax - 1], cl
test cl, cl
jne 0x100128d4
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop ebx
call fcn.100149ff
mov esp, ebp
pop ebp
ret 8
Function at 0x10012910
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push edi
lea eax, [ebp - 4]
mov edi, ecx
push eax
push 0x40
push 1
push edi
mov bl, dl
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
lea eax, [ebp - 4]
mov byte [edi], bl
push eax
push dword [ebp - 4]
push 1
push edi
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
pop edi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x10012950
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
mov esi, dword [ebp + 0xc]
lea eax, [ebp - 4]
push eax
push 0x40
push 5
push esi
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
mov al, byte [ebp + 8]
cmp al, 0xff
je 0x10012970
mov byte [esi], al
mov eax, dword [ebp + 0x10]
sub eax, esi
sub eax, 5
mov dword [esi + 1], eax
lea eax, [ebp - 4]
push eax
push dword [ebp - 4]
push 5
push esi
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x10025f7f
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.10025dfe
Function at 0x4010b5
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x438
mov eax, dword [ebp + 8]
mov ecx, dword [eax]
push ebx
push esi
push edi
mov edi, dword [eax + 4]
mov eax, dword [0x42f648]
mov dword [ebp - 0x2c], eax
mov eax, dword [0x42f64c]
xor esi, esi
mov dword [ebp - 0x24], eax
lea eax, [ebp - 0x18]
mov dword [ebp - 0xc], ecx
mov dword [ebp - 0x18], esi
call fcn.00401053
mov eax, dword [0x42f650]
mov ebx, dword [ebp - 0x18]
mov dword [ebp - 0x28], eax
mov eax, dword [0x42f654]
add ebx, 0x23f
mov dword [ebp - 0x30], eax
mov dword [ebp - 0x20], 0x20
mov dword [ebp - 0x10], 2
add dword [ebp - 0x10], 3
mov eax, dword [ebp - 0xc]
shl eax, 4
cmp dword [0x1a2020c], 0xc
mov dword [ebp - 4], eax
jne 0x4010df
push esi
lea eax, [ebp - 0x34]
push eax
push esi
lea eax, [ebp - 0x438]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_ReadConsoleA]
mov eax, dword [ebp - 0x28]
add dword [ebp - 4], eax
mov eax, dword [0x1a2020c]
cmp eax, 0xfa9
jne 0x4010fb
mov dword [0x1a20208], 0xedeb2e40
cmp eax, 0x3eb
jne 0x40110f
push esi
call dword [sym.imp.KERNEL32.dll_InterlockedIncrement]
mov dword [0x1a2015c], esi
mov eax, dword [ebp - 0xc]
add eax, ebx
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 0xc]
shr eax, 5
mov dword [ebp - 8], eax
mov eax, dword [ebp - 0x30]
add dword [ebp - 8], eax
mov eax, dword [ebp - 4]
mov dword [0x1a20204], 0xf4ea3dee
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x1c], esi
mov eax, dword [ebp - 0x18]
add dword [ebp - 0x1c], eax
mov eax, dword [ebp - 0x1c]
xor dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x14]
xor dword [ebp - 8], eax
sub edi, dword [ebp - 8]
cmp dword [0x1a2020c], 0xc
mov dword [ebp - 4], eax
jne 0x401170
push esi
call dword [sym.imp.KERNEL32.dll_FlushFileBuffers]
lea eax, [ebp - 0x38]
push eax
push esi
push esi
push esi
push esi
push esi
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov eax, edi
shl eax, 4
mov dword [ebp - 4], eax
mov eax, dword [ebp - 0x2c]
add dword [ebp - 4], eax
mov ecx, dword [ebp - 0x10]
lea eax, [ebx + edi]
mov dword [ebp - 0x18], eax
mov eax, edi
shr eax, cl
add eax, dword [ebp - 0x24]
mov dword [ebp - 8], eax
mov eax, dword [ebp - 0x18]
xor dword [ebp - 4], eax
mov eax, dword [ebp - 4]
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x14], esi
mov eax, dword [ebp - 0x18]
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 8]
xor dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x14]
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
sub dword [ebp - 0xc], eax
add ebx, 0x61c88647
dec dword [ebp - 0x20]
jne 0x4010ae
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 0xc]
mov dword [eax + 4], edi
pop edi
pop esi
mov dword [eax], ecx
pop ebx
leave
ret 4
Function at 0x4051cb
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x42e2a8]
jne 0x4051d5
repz ret
jmp fcn.0040b4d7

Function at 0x40bf4a
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push edi
call fcn.00407cac
and dword [ebp - 4], 0
cmp dword [0x438a04], 0
mov ebx, eax
jne 0x40bffb
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x40c0ac
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
test eax, eax
je 0x40c0ac
push eax
call fcn.00407c3a
mov dword [esp], str.GetActiveWindow
push edi
mov dword [0x438a04], eax
call esi
push eax
call fcn.00407c3a
mov dword [esp], str.GetLastActivePopup
push edi
mov dword [0x438a08], eax
call esi
push eax
call fcn.00407c3a
mov dword [esp], str.GetUserObjectInformationA
push edi
mov dword [0x438a0c], eax
call esi
push eax
call fcn.00407c3a
pop ecx
mov dword [0x438a14], eax
test eax, eax
je 0x40bffb
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.00407c3a
pop ecx
mov dword [0x438a10], eax
mov eax, dword [0x438a10]
cmp eax, ebx
je 0x40c053
cmp dword [0x438a14], ebx
je 0x40c053
push eax
call fcn.00407cb5
push dword [0x438a14]
mov esi, eax
call fcn.00407cb5
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x40c053
test edi, edi
je 0x40c053
call esi
test eax, eax
je 0x40c04a
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x40c04a
test byte [ebp - 0xc], 1
jne 0x40c053
or dword [ebp + 0x10], 0x200000
jmp 0x40c08c
mov eax, dword [0x438a08]
cmp eax, ebx
je 0x40c08c
push eax
call fcn.00407cb5
pop ecx
test eax, eax
je 0x40c08c
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x40c08c
mov eax, dword [0x438a0c]
cmp eax, ebx
je 0x40c08c
push eax
call fcn.00407cb5
pop ecx
test eax, eax
je 0x40c08c
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x438a04]
call fcn.00407cb5
pop ecx
test eax, eax
je 0x40c0ac
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x40c0ae
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x401aa0
Capabilities:
Get thread local storage value

Disassembly:
push esi
push ebx
sub esp, 0x14
mov dword [esp], 0x407044
call sub.KERNEL32.dll_EnterCriticalSection
mov ebx, dword [0x40703c]
sub esp, 4
test ebx, ebx
je 0x401aeb
nop
mov eax, dword [ebx]
mov dword [esp], eax
call sub.KERNEL32.dll_TlsGetValue
sub esp, 4
mov esi, eax
call sub.KERNEL32.dll_GetLastError
test eax, eax
jne 0x401ae4
test esi, esi
je 0x401ae4
mov eax, dword [ebx + 4]
mov dword [esp], esi
call eax
mov ebx, dword [ebx + 8]
test ebx, ebx
jne 0x401ac0
mov dword [esp], 0x407044
call sub.KERNEL32.dll_LeaveCriticalSection
sub esp, 4
add esp, 0x14
pop ebx
pop esi
ret

Function at 0x401cd0
Capabilities:
Write file on windows

Disassembly:
push esi
push ebx
sub esp, 0x14
mov eax, dword [sym.imp.msvcrt.dll__iob]
mov dword [esp + 8], 0x17
mov dword [esp + 4], 1
lea esi, [esp + 0x24]
mov dword [esp], str.Mingw_runtime_failure:_n
lea ebx, [eax + 0x40]
mov dword [esp + 0xc], ebx
call sub.msvcrt.dll_fwrite
mov eax, dword [esp + 0x20]
mov dword [esp + 8], esi
mov dword [esp], ebx
mov dword [esp + 4], eax
call sub.msvcrt.dll_vfprintf
call sub.msvcrt.dll_abort
lea esi, [esi]

Function at 0x401d20
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
push edi
mov edi, ecx
push esi
push ebx
mov ebx, eax
mov esi, edx
sub esp, 0x4c
lea eax, [esp + 0x24]
mov dword [esp + 8], 0x1c
mov dword [esp], ebx
mov dword [esp + 4], eax
call sub.KERNEL32.dll_VirtualQuery
sub esp, 0xc
test eax, eax
je 0x401df8
mov eax, dword [esp + 0x38]
cmp eax, 0x40
je 0x401d5e
cmp eax, 4
jne 0x401d80
mov dword [esp + 8], edi
mov dword [esp + 4], esi
mov dword [esp], ebx
call sub.msvcrt.dll_memcpy
add esp, 0x4c
pop ebx
pop esi
pop edi
pop ebp
ret
mov eax, dword [esp + 0x30]
lea ebp, [esp + 0x20]
mov dword [esp + 8], 0x40
mov dword [esp + 0xc], ebp
mov dword [esp + 4], eax
mov eax, dword [esp + 0x24]
mov dword [esp], eax
call sub.KERNEL32.dll_VirtualProtect
sub esp, 0x10
mov edx, dword [esp + 0x38]
mov dword [esp + 8], edi
mov dword [esp + 4], esi
mov dword [esp], ebx
mov dword [esp + 0x1c], edx
call sub.msvcrt.dll_memcpy
mov edx, dword [esp + 0x1c]
cmp edx, 0x40
je 0x401d6e
cmp edx, 4
je 0x401d6e
mov eax, dword [esp + 0x20]
mov dword [esp + 0xc], ebp
mov dword [esp + 8], eax
mov eax, dword [esp + 0x30]
mov dword [esp + 4], eax
mov eax, dword [esp + 0x24]
mov dword [esp], eax
call sub.KERNEL32.dll_VirtualProtect
sub esp, 0x10
add esp, 0x4c
pop ebx
pop esi
pop edi
pop ebp
ret
mov dword [esp + 8], ebx
mov dword [esp + 4], 0x1c
mov dword [esp], str.__VirtualQuery_failed_for__d_bytes_at_address__p
call fcn.00401cd0
Function at 0x401000
Capabilities:
Check if file exists
Create directory
Get file attributes

Disassembly:
push esi
mov esi, dword [esp + 0xc]
test esi, esi
je 0x401090
push ebp
mov ebp, dword [esp + 0x14]
push edi
mov edi, dword [esp + 0x10]
push ebx
cmp byte [esi], 0
je 0x40108d
push 0x5c
push esi
call dword [sym.imp.MSVCR71.dll_strchr]
mov esi, eax
test esi, esi
pop ecx
pop ecx
je 0x40108d
push edi
mov byte [esi], 0
call dword [sym.imp.kernel32.dll_GetFileAttributesA]
mov ebx, eax
cmp ebx, 0xffffffff
jne 0x401066
push 0
push edi
call dword [sym.imp.kernel32.dll_CreateDirectoryA]
test eax, eax
jne 0x40105f
test ebp, ebp
je 0x40105f
push edi
push str.CreateDirectory___s_
push 5
call ebp
add esp, 0xc
jmp 0x401066
push edi
push 1
call ebp
pop ecx
pop ecx
test bl, 0x10
jne 0x401087
push 0xb7
call dword [sym.imp.kernel32.dll_SetLastError]
test ebp, ebp
je 0x401087
push edi
push str.CreateDirectory___s_
push 5
call ebp
add esp, 0xc
mov byte [esi], 0x5c
inc esi
jne 0x401018
pop ebx
pop edi
pop ebp
xor eax, eax
inc eax
pop esi
ret

Function at 0x4031f4
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
pushal
call 0x403203
pop dword [ebp - 0xc]
mov eax, 0x5569489
sub eax, 0x5166286
sub dword [ebp - 0xc], eax
mov dword [ebp - 0x1c], 0xc9f3dbba
sub dword [ebp - 0x1c], 0x7ba1966f
mov dword [ebp - 0x18], 0x30504fe1
add dword [ebp - 0x18], 0x1e2fc64
mov dword [ebp - 0x14], 0xe0f3d080
sub dword [ebp - 0x14], 0x94a78c52
mov dword [ebp - 0x10], 0xe819d502
add dword [ebp - 0x10], 0x17e62afe
lea eax, [ebp - 0x1c]
push eax
mov eax, 0xe032305a
add eax, 0x200e5032
add eax, dword [ebp - 0xc]
call dword [eax]
mov dword [ebp - 0x1c], 0x3385f131
sub dword [ebp - 0x1c], 0xbf1387db
mov dword [ebp - 0x18], 0xade51cff
sub dword [ebp - 0x18], 0x6c78bb8a
mov dword [ebp - 0x14], 0xdb6d333f
sub dword [ebp - 0x14], 0x77fdc6d3
mov dword [ebp - 0x10], 0xe579417a
sub dword [ebp - 0x10], 0xe579417a
lea ebx, [ebp - 0x1c]
push ebx
push eax
mov eax, sym.imp.kernel32.dll_GetProcAddress
add eax, dword [ebp - 0xc]
call dword [eax]
push 0x40
push 0x1000
push 0x39899
push 0
call eax
mov ecx, 0xcfc3fe51
add ecx, 0x303c5575
mov esi, eax
mov edx, 0x1ca736f1
sub edx, 0x1c6626f1
add edx, dword [ebp - 0xc]
mov ebx, 0x92396b17
add dword [ebp - 8], 0xd28c909a
mov edi, dword [edx]
sub dword [ebp - 8], eax
xor edi, ebx
xor dword [ebp - 8], edi
mov dword [esi], edi
sub dword [ebp - 4], 0xe79130a5
add esi, 4
add edx, 4
loop 0x40331a
add eax, 0x141eb
mov ebx, eax
add eax, 5
mov ecx, 0x350d149c
add ecx, 0xcb32eb64
add ecx, dword [ebp - 0xc]
call ebx
leave
ret
Function at 0x401000
Capabilities:
Get number of processors

Disassembly:
push 0xffffffffffffffff
push 0x59d921
mov eax, dword fs:[0]
push eax
push ecx
push ebx
push ebp
push esi
push edi
mov eax, dword [0x6e50b4]
xor eax, esp
push eax
lea eax, [esp + 0x18]
mov dword fs:[0], eax
mov esi, ecx
mov dword [esp + 0x14], esi
xor edi, edi
mov dword [esi + 0x1c], edi
mov dword [esi + 0x20], edi
mov dword [esi + 0x24], edi
mov dword [esi + 0x28], edi
mov dword [esi + 0x2c], edi
mov dword [esi + 0x30], edi
mov dword [esp + 0x20], edi
mov dword [esi + 0x40], edi
mov dword [esi + 0x44], edi
mov dword [esi + 0x48], edi
mov dword [esi + 0x4c], edi
mov dword [esi + 0x50], edi
mov dword [esi + 0x54], edi
mov dword [esi + 0x64], edi
mov dword [esi + 0x68], edi
mov dword [esi + 0x6c], edi
mov dword [esi + 0x70], edi
mov dword [esi + 0x74], edi
mov dword [esi + 0x78], edi
lea ecx, [esi + 0xec]
mov byte [esp + 0x20], 2
call fcn.00405340
push 0x64
lea ecx, [esi + 0x1c]
mov dword [esi + 0x1d7c], edi
mov dword [esi], edi
mov dword [esi + 8], edi
mov dword [esi + 0x14], edi
mov dword [esi + 0x94], edi
mov dword [esi + 0x98], edi
call fcn.0053d720
push 0xc8
lea ecx, [esi + 0x40]
call fcn.0053d720
push 0x1f4
lea ecx, [esi + 0x64]
call fcn.0053d720
mov ecx, esi
call fcn.004023e0
mov ecx, esi
call fcn.004031b0
mov ecx, esi
call fcn.004034a0
push 0x2c
lea ebx, [esi + 0x1d50]
push edi
push ebx
call fcn.005825d0
mov eax, dword [0x6f5768]
push edi
mov dword [ebx], eax
mov dword [esi + 4], edi
mov dword [esi + 0x9c], 0xffffffff
mov dword [esi + 0x8c], edi
mov dword [esi + 0x90], edi
mov dword [esi + 0xdc], edi
mov dword [esi + 0x1d80], edi
mov dword [esi + 0x1d84], edi
mov dword [esi + 0xc8], edi
mov dword [esi + 0xcc], edi
mov dword [esi + 0xd4], edi
call fcn.0058217e
mov dword [esi + 0xd8], eax
add esp, 0x10
mov eax, esi
mov ecx, dword [esp + 0x18]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x10
ret

Function at 0x402df0
Capabilities:
Create directory
Write file on windows

Disassembly:
sub esp, 0x48
mov eax, dword [0x6e50b4]
xor eax, esp
mov dword [esp + 0x44], eax
push esi
mov esi, dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
push edi
push 0
push str.data
mov edi, ecx
call esi
push 0
push str.data_aiconfig
call esi
mov eax, dword [0x6f48ac]
movzx ecx, word [eax + 0x129]
push ecx
lea edx, [esp + 0x10]
push str.._data_aiconfig__d.dat
push edx
call fcn.00582c5f
push 0x5b1668
lea eax, [esp + 0x1c]
push eax
lea ecx, [esp + 0x1c]
push ecx
call fcn.00582c18
mov eax, dword [esp + 0x20]
add esp, 0x18
test eax, eax
je 0x402e76
push eax
push 1
push 0x1c64
add edi, 0xec
push edi
call fcn.00582acb
mov edx, dword [esp + 0x18]
push edx
call fcn.00582900
add esp, 0x14
mov ecx, dword [esp + 0x4c]
pop edi
pop esi
xor ecx, esp
call fcn.005825b3
add esp, 0x48
ret
Function at 0x402e90
Capabilities:
Read file on windows

Disassembly:
sub esp, 0x4c
mov eax, dword [0x6e50b4]
xor eax, esp
mov dword [esp + 0x48], eax
mov eax, dword [0x6f48ac]
push esi
mov esi, ecx
movzx ecx, word [eax + 0x129]
push edi
push ecx
lea edx, [esp + 0x14]
push str.._data_aiconfig__d.dat
push edx
call fcn.00582c5f
push 0x1c64
lea edi, [esi + 0xec]
push 0
push edi
call fcn.005825d0
push 0x5b169c
lea eax, [esp + 0x2c]
push eax
lea ecx, [esp + 0x28]
push ecx
call fcn.00582c18
mov eax, dword [esp + 0x2c]
add esp, 0x24
test eax, eax
je 0x402f68
push eax
push 1
push 0x1c64
push edi
call fcn.00582f4b
mov edx, dword [esp + 0x18]
push edx
call fcn.00582900
add esp, 0x14
call fcn.00401290
mov eax, dword [eax + 0x228]
imul eax, eax, 0x64
mov dword [esp + 0xc], eax
fild dword [esp + 0xc]
test eax, eax
jns 0x402f2b
fadd dword [0x5b1610]
fstp dword [esi + 0xe0]
call fcn.00401290
mov ecx, dword [eax + 0x22c]
imul ecx, ecx, 0x64
mov dword [esp + 0xc], ecx
fild dword [esp + 0xc]
test ecx, ecx
jns 0x402f51
fadd dword [0x5b1610]
pop edi
fstp dword [esi + 0xe8]
pop esi
mov ecx, dword [esp + 0x48]
xor ecx, esp
call fcn.005825b3
add esp, 0x4c
ret
mov ecx, esi
call fcn.00402f80
mov ecx, dword [esp + 0x50]
pop edi
pop esi
xor ecx, esp
call fcn.005825b3
add esp, 0x4c
ret

Function at 0x402ea3
Capabilities:
Read file on windows

Disassembly:
sub esp, 0x4c
mov eax, dword [0x6e50b4]
xor eax, esp
mov dword [esp + 0x48], eax
mov eax, dword [0x6f48ac]
push esi
mov esi, ecx
movzx ecx, word [eax + 0x129]
push edi
push ecx
lea edx, [esp + 0x14]
push str.._data_aiconfig__d.dat
push edx
call fcn.00582c5f
push 0x1c64
lea edi, [esi + 0xec]
push 0
push edi
call fcn.005825d0
push 0x5b169c
lea eax, [esp + 0x2c]
push eax
lea ecx, [esp + 0x28]
push ecx
call fcn.00582c18
mov eax, dword [esp + 0x2c]
add esp, 0x24
test eax, eax
je 0x402f68
push eax
push 1
push 0x1c64
push edi
call fcn.00582f4b
mov edx, dword [esp + 0x18]
push edx
call fcn.00582900
add esp, 0x14
call fcn.00401290
mov eax, dword [eax + 0x228]
imul eax, eax, 0x64
mov dword [esp + 0xc], eax
fild dword [esp + 0xc]
test eax, eax
jns 0x402f2b
fadd dword [0x5b1610]
fstp dword [esi + 0xe0]
call fcn.00401290
mov ecx, dword [eax + 0x22c]
imul ecx, ecx, 0x64
mov dword [esp + 0xc], ecx
fild dword [esp + 0xc]
test ecx, ecx
jns 0x402f51
fadd dword [0x5b1610]
pop edi
fstp dword [esi + 0xe8]
pop esi
mov ecx, dword [esp + 0x48]
xor ecx, esp
call fcn.005825b3
add esp, 0x4c
ret
mov ecx, esi
call fcn.00402f80
mov ecx, dword [esp + 0x50]
pop edi
pop esi
xor ecx, esp
call fcn.005825b3
add esp, 0x4c
ret
Function at 0x402f80
Capabilities:
Create directory
Write file on windows

Disassembly:
push ecx
push ebx
push ebp
push esi
push edi
xor edi, edi
mov dword [esp + 0x10], ecx
xor ebp, ebp
mov esi, 0x1d4
lea ebx, [edi + 1]
call fcn.00401290
mov dword [eax + esi + 0xbc], ebx
call fcn.00401290
mov dword [eax + esi], edi
cmp ebp, 5
jge 0x402fcf
call fcn.00401290
mov dword [eax + esi - 0x88], edi
call fcn.00401290
mov dword [eax + esi - 0x34], edi
call fcn.00401290
mov dword [eax + esi + 0x88], ebx
cmp ebp, 4
jge 0x402ff6
call fcn.00401290
mov dword [eax + esi - 0x74], edi
call fcn.00401290
mov dword [eax + esi - 0x20], edi
call fcn.00401290
mov dword [eax + esi + 0x9c], 5
cmp ebp, 2
jge 0x40303f
call fcn.00401290
mov dword [eax + esi - 0x64], edi
call fcn.00401290
mov dword [eax + esi - 0x5c], edi
call fcn.00401290
mov dword [eax + esi - 0x10], edi
call fcn.00401290
mov dword [eax + esi + 0xac], 5
call fcn.00401290
mov dword [eax + esi - 8], edi
call fcn.00401290
mov dword [eax + esi + 0xb4], 5
add esi, 4
add ebp, ebx
cmp esi, 0x1ec
jl 0x402f95
call fcn.00401290
mov dword [eax + 0x240], 0x1e
call fcn.00401290
mov dword [eax + 0x180], ebx
call fcn.00401290
mov dword [eax + 0x184], ebx
call fcn.00401290
mov esi, 0xfa
mov dword [eax + 0x228], esi
call fcn.00401290
mov dword [eax + 0x22c], esi
call fcn.00401290
mov dword [eax + 0x188], ebx
call fcn.00401290
mov dword [eax + 0x18c], ebx
call fcn.00401290
mov dword [eax + 0x250], ebx
call fcn.00401290
mov ebp, 3
mov dword [eax + 0x254], ebp
call fcn.00401290
mov dword [eax + 0x190], ebx
call fcn.00401290
mov dword [eax + 0x12c], ebx
call fcn.00401290
mov dword [eax + 0xf0], edi
call fcn.00401290
mov dword [eax + 0xf4], edi
call fcn.00401290
mov dword [eax + 0xf8], edi
call fcn.00401290
mov dword [eax + 0x194], edi
call fcn.00401290
mov dword [eax + 0x198], edi
call fcn.00401290
mov esi, 5
mov dword [eax + 0x218], esi
call fcn.00401290
mov dword [eax + 0x220], esi
call fcn.00401290
mov dword [eax + 0x21c], esi
call fcn.00401290
mov dword [eax + 0x258], ebp
call fcn.00401290
mov dword [eax + 0x204], esi
call fcn.00401290
mov dword [eax + 0x19c], edi
call fcn.00401290
mov dword [eax + 0xfc], edi
call fcn.00401290
mov dword [eax + 0x10c], ebx
call fcn.00401290
mov dword [eax + 0x110], ebx
call fcn.00401290
mov dword [eax + 0x118], ebx
call fcn.00401290
mov dword [eax + 0x120], ebx
call fcn.00401290
mov ecx, dword [esp + 0x10]
mov dword [eax + 0x2a8], edi
pop edi
pop esi
pop ebp
pop ebx
add esp, 4
jmp fcn.00402df0