joyce8/EMBER2024-capa huggingface dataset:
Function at 0x469570
Capabilities:
Check for time delay via gettickcount
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x224
mov eax, dword [0x4e2210]
xor eax, ebp
mov dword [ebp - 4], eax
mov dword [ebp - 0x224], ecx
mov eax, dword [ebp - 0x224]
cmp dword [eax + 4], 0
je 0x46959f
mov eax, 1
jmp 0x46965c
mov word [ebp - 0x218], 0
push 0x208
push 0
lea ecx, [ebp - 0x216]
push ecx
call fcn.0049d120
add esp, 0xc
push 0x104
lea edx, [ebp - 0x218]
push edx
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.SHLWAPI.dll_PathAddBackslashW]
push 0x4c7ebc
call fcn.0049d109
add esp, 4
push eax
push 0x4c7ed8
push 0x104
lea ecx, [ebp - 0x218]
push ecx
call fcn.004a30dc
add esp, 0x10
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [ebp - 0x220], eax
lea edx, [ebp - 0x218]
push edx
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov ecx, dword [ebp - 0x224]
mov dword [ecx + 4], eax
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [ebp - 0x21c], eax
mov edx, dword [ebp - 0x224]
cmp dword [edx + 4], 0
jne 0x469657
mov eax, dword [ebp - 0x224]
mov ecx, dword [eax + 0x1c]
or ecx, 1
mov edx, dword [ebp - 0x224]
mov dword [edx + 0x1c], ecx
xor eax, eax
jmp 0x46965c
mov eax, 1
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0049d270
mov esp, ebp
pop ebp
ret
Function at 0x469fe0
Capabilities:
Create a process with modified i/o handles and window
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x84
mov eax, dword [0x4e2210]
xor eax, ebp
mov dword [ebp - 0x64], eax
push esi
push edi
mov dword [ebp - 0x84], ecx
mov dword [ebp - 4], 0
mov eax, dword [ebp + 8]
cmp dword [eax], 0xffffffff
je 0x46a012
mov ecx, dword [ebp + 0xc]
cmp dword [ecx], 0xffffffff
jne 0x46a019
xor eax, eax
jmp 0x46a0c2
push 0x10
push 0
lea edx, [ebp - 0x14]
push edx
call fcn.0049d120
add esp, 0xc
push 0x44
push 0
lea eax, [ebp - 0x60]
push eax
call fcn.0049d120
add esp, 0xc
mov dword [ebp - 0x60], 0x44
mov ecx, dword [ebp + 8]
mov edx, dword [ecx]
mov dword [ebp - 0x20], edx
mov eax, dword [ebp + 8]
mov ecx, dword [eax]
mov dword [ebp - 0x24], ecx
mov edx, dword [ebp + 0xc]
mov eax, dword [edx]
mov dword [ebp - 0x28], eax
mov word [ebp - 0x30], 0
mov ecx, dword [ebp - 0x34]
or ecx, 0x101
mov dword [ebp - 0x34], ecx
mov ecx, 7
mov esi, str.ipconfig__all
lea edi, [ebp - 0x80]
rep movsd dword es:[edi], dword [esi]
lea edx, [ebp - 0x14]
push edx
lea eax, [ebp - 0x60]
push eax
push 0
push 0
push 0x8000000
push 1
push 0
push 0
lea ecx, [ebp - 0x80]
push ecx
push 0
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jne 0x46a0ab
xor eax, eax
jmp 0x46a0c2
mov edx, dword [ebp - 0x14]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 4]
pop edi
pop esi
mov ecx, dword [ebp - 0x64]
xor ecx, ebp
call fcn.0049d270
mov esp, ebp
pop ebp
ret 8
Function at 0x46e260
Capabilities:
Hash data with md5

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov dword [eax], 0x67452301
mov ecx, dword [ebp + 8]
mov dword [ecx + 4], 0xefcdab89
mov edx, dword [ebp + 8]
mov dword [edx + 8], 0x98badcfe
mov eax, dword [ebp + 8]
mov dword [eax + 0xc], 0x10325476
mov ecx, dword [ebp + 8]
mov dword [ecx + 0x10], 0
mov edx, dword [ebp + 8]
mov dword [edx + 0x14], 0
mov eax, dword [ebp + 8]
mov dword [eax + 0x18], 0
pop ebp
ret

Function at 0x46e950
Capabilities:
Get file size

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
mov dword [ebp - 0x10], ecx
xor eax, eax
jne 0x46e959
xor ecx, ecx
jne 0x46e95d
lea edx, [ebp - 4]
push edx
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov dword [ebp - 8], eax
mov ecx, dword [ebp + 0xc]
xor edx, edx
mov dword [ebp - 0x18], ecx
mov dword [ebp - 0x14], edx
mov eax, dword [ebp - 4]
cmp eax, dword [ebp - 0x14]
ja 0x46e99a
jb 0x46e98f
mov ecx, dword [ebp - 8]
cmp ecx, dword [ebp - 0x18]
jae 0x46e99a
mov edx, dword [ebp + 0xc]
xor eax, eax
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
push 0
mov ecx, dword [ebp - 8]
push ecx
mov edx, dword [ebp - 4]
push edx
mov eax, dword [ebp + 0x18]
push eax
push 0
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.KERNEL32.dll_CreateFileMappingW]
mov edx, dword [ebp - 0x10]
mov dword [edx + 8], eax
mov eax, dword [ebp - 0x10]
cmp dword [eax + 8], 0
jne 0x46e9cd
call fcn.00418660
jmp 0x46ea66
cmp dword [ebp + 0xc], 0
jne 0x46e9e7
mov ecx, dword [ebp - 8]
sub ecx, dword [ebp + 0x10]
mov edx, dword [ebp - 4]
sbb edx, dword [ebp + 0x14]
mov eax, dword [ebp - 0x10]
mov dword [eax + 4], ecx
jmp 0x46e9f0
mov ecx, dword [ebp - 0x10]
mov edx, dword [ebp + 0xc]
mov dword [ecx + 4], edx
mov eax, dword [ebp - 0x10]
mov ecx, dword [ebp + 0x1c]
mov dword [eax + 0x18], ecx
mov edx, dword [ebp - 0x10]
mov eax, dword [ebp + 0x10]
mov dword [edx + 0x10], eax
mov ecx, dword [ebp + 0x14]
mov dword [edx + 0x14], ecx
push 0
mov edx, dword [ebp - 0x10]
mov eax, dword [edx + 4]
push eax
mov ecx, dword [ebp - 0x10]
mov edx, dword [ecx + 0x10]
push edx
mov eax, dword [ebp - 0x10]
mov ecx, dword [eax + 0x14]
push ecx
mov edx, dword [ebp - 0x10]
mov eax, dword [edx + 0x18]
push eax
mov ecx, dword [ebp - 0x10]
mov edx, dword [ecx + 8]
push edx
call dword [sym.imp.KERNEL32.dll_MapViewOfFileEx]
mov ecx, dword [ebp - 0x10]
mov dword [ecx], eax
mov edx, dword [ebp - 0x10]
cmp dword [edx], 0
jne 0x46ea64
call fcn.00418660
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0x10]
mov ecx, dword [eax + 8]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov edx, dword [ebp - 0x10]
mov dword [edx + 8], 0
mov eax, dword [ebp - 0xc]
jmp 0x46ea66
xor eax, eax
mov esp, ebp
pop ebp
ret 0x18
Function at 0x46f1a0
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4bd32b
mov eax, dword fs:[0]
push eax
push ecx
mov eax, dword [0x4e2210]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], ecx
mov eax, dword [ebp - 0x10]
mov dword [eax], 0
mov dword [eax + 4], 0
mov ecx, dword [ebp - 0x10]
mov dword [ecx + 8], 0
mov dword [ecx + 0xc], 0
mov edx, dword [ebp - 0x10]
mov dword [edx + 0x14], 0
mov ecx, dword [ebp - 0x10]
add ecx, 0x18
call fcn.00461c50
mov dword [ebp - 4], 0
mov ecx, dword [ebp - 0x10]
add ecx, 0x24
call fcn.00461c50
mov eax, dword [ebp - 0x10]
mov dword [eax + 0x30], 0
mov ecx, dword [ebp - 0x10]
mov dword [ecx + 0x34], 0
mov edx, dword [ebp - 0x10]
mov dword [edx + 0x38], 0
mov ecx, dword [ebp - 0x10]
add ecx, 0x3c
call fcn.0046ec50
mov ecx, dword [ebp - 0x10]
add ecx, 0x54
call fcn.0046ec50
mov ecx, dword [ebp - 0x10]
add ecx, 0x6c
call fcn.0046ec50
mov eax, dword [ebp - 0x10]
add eax, 0x84
call fcn.004970a0
mov eax, dword [ebp - 0x10]
mov dword [eax + 0x8c], 1
mov ecx, dword [ebp - 0x10]
mov dword [ecx + 0x90], 0
mov edx, dword [ebp - 0x10]
mov dword [edx + 0x94], 0
mov eax, dword [ebp - 0x10]
mov dword [eax + 0x98], 1
mov ecx, dword [ebp - 0x10]
add ecx, 0x9c
call fcn.00401e10
mov ecx, dword [ebp - 0x10]
add ecx, 0xb8
call fcn.00471ec0
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x10]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov esp, ebp
pop ebp
ret
Function at 0x46f6d0
Capabilities:
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x158
mov eax, dword [0x4e2210]
xor eax, ebp
mov dword [ebp - 0x2c], eax
mov dword [ebp - 0x158], ecx
mov eax, dword [ebp - 0x158]
cmp dword [eax + 0x14], 0
jne 0x46f6fa
jmp 0x46f869
mov dword [ebp - 0x150], 0
push 0x118
push 0
lea ecx, [ebp - 0x14c]
push ecx
call fcn.0049d120
add esp, 0xc
mov dword [ebp - 0x150], 0x11c
lea edx, [ebp - 0x150]
push edx
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
mov dword [ebp - 0x154], eax
cmp dword [ebp - 0x154], 0
jne 0x46f75d
mov dword [ebp - 0x150], 0x114
lea eax, [ebp - 0x150]
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
mov dword [ebp - 0x154], eax
cmp dword [ebp - 0x154], 0
je 0x46f7b5
mov ecx, dword [ebp - 0x158]
mov edx, dword [ecx + 0x14]
mov ax, word [ebp - 0x14c]
mov word [edx + 0x38], ax
mov ecx, dword [ebp - 0x158]
mov edx, dword [ecx + 0x14]
mov ax, word [ebp - 0x148]
mov word [edx + 0x3a], ax
mov ecx, dword [ebp - 0x158]
mov edx, dword [ecx + 0x14]
mov ax, word [ebp - 0x3c]
mov word [edx + 0x3e], ax
mov ecx, dword [ebp - 0x158]
mov edx, dword [ecx + 0x14]
mov ax, word [ebp - 0x144]
mov word [edx + 0x3c], ax
jmp 0x46f7f1
mov ecx, dword [ebp - 0x158]
mov edx, dword [ecx + 0x14]
mov word [edx + 0x38], 0
mov eax, dword [ebp - 0x158]
mov ecx, dword [eax + 0x14]
mov word [ecx + 0x3a], 0
mov edx, dword [ebp - 0x158]
mov eax, dword [edx + 0x14]
mov word [eax + 0x3e], 0
mov ecx, dword [ebp - 0x158]
mov edx, dword [ecx + 0x14]
mov word [edx + 0x3c], 0
mov dword [ebp - 0x28], 0
xor eax, eax
mov dword [ebp - 0x24], eax
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x10], eax
mov dword [ebp - 0xc], eax
mov dword [ebp - 8], eax
push str.GetNativeSystemInfo
push 0x4c7cf0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
je 0x46f83b
lea ecx, [ebp - 0x28]
push ecx
call dword [ebp - 4]
jmp 0x46f845
lea edx, [ebp - 0x28]
push edx
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov eax, dword [ebp - 0x158]
mov ecx, dword [eax + 0x14]
mov dx, word [ebp - 0x28]
mov word [ecx + 0x40], dx
call dword [sym.imp.KERNEL32.dll_GetSystemDefaultLangID]
mov ecx, dword [ebp - 0x158]
mov edx, dword [ecx + 0x14]
mov word [edx + 0x42], ax
mov ecx, dword [ebp - 0x2c]
xor ecx, ebp
call fcn.0049d270
mov esp, ebp
pop ebp
ret
Function at 0x47a520
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x4bd0b8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
xor eax, eax
mov dword [esp], eax
mov dword [esp + 0xc], eax
lea eax, [esp + 0x14]
push eax
mov ecx, esi
call fcn.00404ac0
mov ecx, dword [esp + 0x30]
mov edx, dword [esp + 0x34]
mov eax, dword [esp + 0x38]
mov dword [esi + 0x1c], ecx
mov ecx, dword [esp + 0x3c]
mov dword [esi + 0x20], edx
mov edx, dword [esp + 0x40]
mov dword [esi + 0x24], eax
mov dword [esi + 0x28], ecx
lea ecx, [esp + 0x14]
mov dword [esi + 0x2c], edx
call fcn.00401df0
mov ecx, dword [esp + 4]
mov eax, esi
mov dword fs:[0], ecx
add esp, 0x10
ret
Function at 0x47b400
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x4bf563
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x1c
push ebp
mov ebp, dword [esp + 0x30]
push esi
push edi
lea ecx, [esp + 0xc]
mov dword [ebp + 0x14], 2
call fcn.00401e10
mov esi, dword [esp + 0x3c]
lea edi, [esp + 0xc]
mov dword [esp + 0x30], 0
call fcn.0047b330
push 0x14
call fcn.0049d298
add esp, 4
mov dword [esp + 0x38], eax
test eax, eax
mov byte [esp + 0x30], 1
je 0x47b464
mov esi, eax
call fcn.00485aa0
jmp 0x47b466
xor eax, eax
mov byte [esp + 0x30], 0
lea ecx, [esp + 0xc]
mov dword [ebp + 0x38], eax
call fcn.00401cb0
mov esi, dword [ebp + 0x38]
push eax
call fcn.00485b30
lea ecx, [esp + 0xc]
call fcn.00401df0
mov ecx, dword [esp + 0x28]
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
add esp, 0x28
ret 8
Function at 0x4804d0
Capabilities:
Set global application hook

Disassembly:
push ebp
mov ebp, dword [esp + 0xc]
push esi
mov esi, eax
mov eax, dword [esi + 4]
push eax
call dword [sym.imp.USER32.dll_IsWindowVisible]
test eax, eax
je 0x480511
test edi, edi
jle 0x480587
test ebx, ebx
jle 0x480587
mov ecx, dword [esp + 0xc]
mov edx, dword [esi + 4]
push 0x50
push ebx
push edi
push ebp
push ecx
push 0xffffffffffffffff
push edx
call dword [sym.imp.USER32.dll_SetWindowPos]
pop esi
pop ebp
ret 8
cmp dword [0x4e7418], 0
jne 0x480587
mov eax, dword [esi]
mov edx, dword [eax + 0x2c]
mov ecx, esi
call edx
test edi, edi
jle 0x48053d
test ebx, ebx
jle 0x48053d
mov eax, dword [esp + 0xc]
mov ecx, dword [esi + 4]
push 0x50
push ebx
push edi
push ebp
push eax
push 0xffffffffffffffff
push ecx
jmp 0x48054d
mov edx, dword [esi + 4]
push 0x53
push 0
push 0
push 0
push 0
push 0xffffffffffffffff
push edx
call dword [sym.imp.USER32.dll_SetWindowPos]
push 1
xor eax, eax
call fcn.0047e100
cmp dword [esi + 0x88], 0
mov dword [0x4e7418], esi
jne 0x480587
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
push eax
push 0
push 0x480450
push 3
call dword [sym.imp.USER32.dll_SetWindowsHookExW]
mov dword [esi + 0x88], eax
pop esi
pop ebp
ret 8

Function at 0x482c10
Capabilities:
Access peb ldr_data
Get kernel32 base address

Disassembly:
push 0xffffffffffffffff
push 0x4ba548
mov eax, dword fs:[0]
push eax
mov eax, dword [esp + 0x14]
mov dword fs:[0], esp
push ebx
push ebp
mov ebp, dword [esp + 0x40]
push esi
mov esi, dword [esp + 0x1c]
xor ecx, ecx
push edi
mov dword [esi + 4], ecx
mov dword [esi + 8], eax
mov dword [esi + 0x10], 1
mov dword [esi + 0xc], edx
mov dword [esp + 0x18], ecx
mov edi, dword [esp + 0x38]
mov ecx, dword [esp + 0x2c]
mov edx, dword [esp + 0x30]
mov ebx, dword [esp + 0x34]
mov dword [esi + 0x3c], edi
mov edi, dword [esp + 0x3c]
mov dword [esi + 0x40], edi
mov edi, dword [esp + 0x40]
mov dword [esi + 0x44], edi
mov edi, dword [esp + 0x44]
mov dword [esi + 0x14], eax
mov eax, dword [esp + 0x28]
mov dword [esi + 0x2c], eax
mov dword [esi + 0x48], edi
lea edi, [esi + 0x1c]
mov dword [edi], eax
mov eax, dword [esp + 0x4c]
mov dword [esi + 0x30], ecx
mov dword [edi + 4], ecx
mov dword [esi + 0x34], edx
mov dword [edi + 8], edx
push 0x50
mov dword [esi], vtable.miniskin::CTAnimation_class_miniskin::CVWndBase__struct_tagRECT__class_miniskin::CAnimationRect_.0
mov dword [esi + 0x38], ebx
mov dword [edi + 0xc], ebx
mov dword [esi + 0x4c], ebp
mov dword [esi + 0x50], eax
call fcn.0049d298
mov ebx, eax
add esp, 4
test ebx, ebx
je 0x482cd7
push ebp
lea eax, [esp + 0x3c]
mov edx, edi
mov ecx, ebx
call fcn.00487880
push ebp
lea edx, [edi + 8]
lea ecx, [ebx + 0x28]
lea eax, [esp + 0x44]
call fcn.00487880
mov dword [esi + 0x18], ebx
jmp 0x482cdc
xor eax, eax
mov dword [esi + 0x18], eax
mov ecx, dword [esp + 0x10]
pop edi
mov eax, esi
pop esi
pop ebp
mov dword fs:[0], ecx
pop ebx
add esp, 0xc
ret 0x30
Function at 0x482db0
Capabilities:
Access peb ldr_data
Get kernel32 base address

Disassembly:
push 0xffffffffffffffff
mov eax, dword fs:[0]
push 0x4ba548
push eax
mov eax, dword [esp + 0x18]
mov dword fs:[0], esp
push ebp
mov ebp, dword [esp + 0x20]
push esi
mov esi, dword [esp + 0x18]
push edi
mov edi, dword [esp + 0x20]
mov dword [esi + 0x10], edi
mov edi, dword [esp + 0x2c]
xor edx, edx
mov dword [esi + 4], edx
mov dword [esi + 8], ecx
mov dword [esi + 0xc], edi
mov dword [esp + 0x14], edx
lea edi, [esi + 0x1c]
mov dword [esi + 0x20], eax
mov dword [edi], eax
mov eax, dword [esp + 0x30]
push 0x14
mov dword [esi], vtable.miniskin::CTAnimation_class_miniskin::CVImage__int__class_miniskin::CAnimationInt_.0
mov dword [esi + 0x14], ecx
mov dword [esi + 0x24], ebp
mov dword [esi + 0x28], ebx
mov dword [esi + 0x2c], eax
call fcn.0049d298
mov ecx, eax
add esp, 4
test ecx, ecx
je 0x482e28
push ebx
mov edx, ebp
mov eax, edi
call fcn.004877b0
jmp 0x482e2a
xor eax, eax
mov ecx, dword [esp + 0xc]
mov dword [esi + 0x18], eax
pop edi
mov eax, esi
pop esi
mov dword fs:[0], ecx
pop ebp
add esp, 0xc
ret 0x18

Function at 0x4834b0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ecx
mov eax, 1
cmp dword [esp + 0xc], eax
mov dword [esp], 0
jb 0x4835b7
cmp dword [esp + 0x10], eax
jb 0x4835b7
mov ecx, dword [esi]
test ecx, ecx
je 0x4834e4
mov edx, dword [ecx]
push eax
mov eax, dword [edx]
call eax
mov dword [esi], 0
mov eax, dword [0x4e78b8]
test eax, eax
jne 0x4834f9
push eax
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov dword [0x4e78b8], eax
movzx ecx, word [esp + 8]
push edi
push str.IMAGE
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov edi, eax
test edi, edi
jne 0x483517
pop edi
pop ecx
ret 0xc
mov edx, dword [0x4e78b8]
push ebp
push edi
push edx
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov ebp, eax
test ebp, ebp
jne 0x48353b
push eax
call dword [sym.imp.KERNEL32.dll_FreeResource]
pop ebp
xor eax, eax
pop edi
pop ecx
ret 0xc
push ebx
push ebp
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ebx, eax
test ebx, ebx
jne 0x48355d
push ebp
mov dword [esp + 0x10], eax
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov eax, ebx
pop ebx
pop ebp
pop edi
pop ecx
ret 0xc
mov eax, dword [0x4e78b8]
push edi
push eax
call dword [sym.imp.KERNEL32.dll_SizeofResource]
push ebx
mov edi, eax
call fcn.00483360
add esp, 4
test eax, eax
mov dword [esi], eax
je 0x4835a5
mov ecx, eax
call fcn.00423030
mov ecx, dword [esi]
mov dword [esi + 0x10], eax
call fcn.00423060
mov ecx, dword [esp + 0x18]
mov edx, dword [esp + 0x1c]
mov dword [esi + 0x14], eax
mov dword [esi + 8], ecx
mov dword [esi + 0xc], edx
mov dword [esp + 0xc], 1
push ebp
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov eax, dword [esp + 0xc]
pop ebx
pop ebp
pop edi
pop ecx
ret 0xc
xor eax, eax
pop ecx
ret 0xc
Function at 0x485aa0
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push 0xffffffffffffffff
push 0x4c118b
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push edi
xor edi, edi
push 0x34
mov dword [esi], edi
mov dword [esi + 4], edi
mov dword [esi + 8], edi
mov dword [esi + 0xc], edi
call fcn.0049d298
add esp, 4
cmp eax, edi
je 0x485b0c
xor ecx, ecx
mov dword [eax], ecx
mov dword [eax + 4], ecx
mov dword [eax + 8], ecx
mov dword [eax + 0xc], ecx
mov dword [eax + 0x10], ecx
mov dword [eax + 0x14], ecx
mov dword [eax + 0x18], ecx
mov dword [eax + 0x1c], ecx
mov dword [eax + 0x20], ecx
mov dword [eax + 0x28], edi
mov dword [eax + 0x2c], edi
mov dword [eax + 0x30], edi
mov dword [esi + 0x10], eax
mov eax, esi
pop edi
mov ecx, dword [esp + 4]
mov dword fs:[0], ecx
add esp, 0x10
ret
mov ecx, dword [esp + 8]
mov dword [esi + 0x10], edi
mov eax, esi
pop edi
mov dword fs:[0], ecx
add esp, 0x10
ret

Function at 0x485b30
Capabilities:
Get file size
Read file via mapping

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x4bf518
push eax
mov dword fs:[0], esp
sub esp, 0x14
push ebx
push ebp
mov ebp, dword [esp + 0x2c]
push edi
push ebp
push str.open_pack_file_fileName_s
push 1
push str..ResPackFile.cpp
call fcn.004b99c0
xor ebx, ebx
add esp, 0x10
cmp dword [esi], ebx
jne 0x485b6f
cmp dword [esi + 4], ebx
je 0x485b9e
mov eax, dword [esi + 8]
cmp eax, ebx
je 0x485b80
push eax
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
mov dword [esi + 8], ebx
mov eax, dword [esi + 4]
cmp eax, ebx
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
je 0x485b93
push eax
call edi
mov dword [esi + 4], ebx
mov eax, dword [esi]
cmp eax, ebx
je 0x485b9e
push eax
call edi
mov dword [esi], ebx
push ebx
push 0x80
push 3
push ebx
push 3
push SysReAllocString
push ebp
call dword [sym.imp.KERNEL32.dll_CreateFileW]
cmp eax, 0xffffffff
mov dword [esi], eax
jne 0x485bd2
pop edi
pop ebp
xor eax, eax
pop ebx
mov ecx, dword [esp + 0x14]
mov dword fs:[0], ecx
add esp, 0x20
ret 4
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_GetFileSize]
push ebx
push ebx
push ebx
push 2
mov dword [esi + 0xc], eax
mov eax, dword [esi]
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileMappingW]
mov ecx, dword [esi + 0xc]
push ecx
push ebx
push ebx
push 4
push eax
mov dword [esi + 4], eax
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov edi, eax
cmp edi, ebx
mov dword [esi + 8], edi
je 0x485bbc
mov dword [esp + 0xc], vtable.minilib::CMemFile.0
mov dword [esp + 0x10], ebx
mov dword [esp + 0x14], ebx
mov dword [esp + 0x18], ebx
mov dword [esp + 0x1c], ebx
mov dword [esp + 0x28], ebx
mov ebp, dword [esi + 0xc]
push ebx
call fcn.004a01e7
mov ecx, dword [esi + 0x10]
add esp, 4
lea edx, [esp + 0xc]
push edx
mov dword [esp + 0x14], edi
mov dword [esp + 0x20], ebp
mov dword [esp + 0x18], ebp
mov dword [esp + 0x1c], ebx
call fcn.00485920
mov ecx, dword [esp + 0x20]
pop edi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x20
ret 4
Function at 0x488210
Capabilities:
Check if file exists

Disassembly:
cmp esi, 1
push ebx
push ebp
mov ebp, dword [esp + 0xc]
mov ebx, eax
jne 0x488232
push ebp
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x488232
pop ebp
mov eax, 0x80004005
pop ebx
ret 4
mov eax, ebx
call fcn.00488280
test eax, eax
jl 0x488228
push edi
mov eax, esi
xor edi, edi
sub eax, 1
mov dword [ebx + 0x14], esi
je 0x488256
sub eax, 1
je 0x488266
mov edi, 0x80004005
jmp 0x488266
mov eax, dword [ebx + 0x10]
mov ecx, dword [eax]
mov edx, dword [ecx + 0x14]
push 0
push ebp
push eax
call edx
mov edi, eax
push ebp
push 0x104
add ebx, 0x18
push ebx
call fcn.0049fb76
add esp, 0xc
mov eax, edi
pop edi
pop ebp
pop ebx
ret 4

Function at 0x488770
Capabilities:
Check if file exists
Create directory
Get file attributes

Disassembly:
push 0xffffffffffffffff
push 0x4be838
mov eax, dword fs:[0]
push eax
sub esp, 0x20
mov eax, dword [0x4e2210]
xor eax, esp
mov dword [esp + 0x1c], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x4e2210]
xor eax, esp
push eax
lea eax, [esp + 0x34]
mov dword fs:[0], eax
mov edi, dword [esp + 0x44]
push edi
lea ecx, [esp + 0x18]
call fcn.004089f0
push edi
mov dword [esp + 0x40], 0
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x488829
mov ebx, dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
push 0
push edi
call ebx
test eax, eax
jne 0x488829
mov ebp, dword [sym.imp.KERNEL32.dll_GetLastError]
call ebp
cmp eax, 0xb7
je 0x488829
lea esi, [esp + 0x14]
call fcn.004886c0
mov ecx, esi
call fcn.00405560
test al, al
mov ecx, esi
jne 0x48880e
call fcn.00401cb0
push eax
call fcn.00488770
add esp, 4
test eax, eax
jne 0x488817
lea ecx, [esp + 0x14]
call fcn.0042a190
xor eax, eax
jmp 0x488837
push 0
push edi
call ebx
test eax, eax
jne 0x488829
call ebp
cmp eax, 0xb7
jne 0x48880a
lea ecx, [esp + 0x14]
call fcn.0042a190
mov eax, 1
mov ecx, dword [esp + 0x34]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x1c]
xor ecx, esp
call fcn.0049d270
add esp, 0x2c
ret