joyce8/EMBER2024-capa huggingface dataset:
Function at 0x45b390
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push 0xffffffffffffffff
push 0x508ba1
mov eax, dword fs:[0]
push eax
sub esp, 0x144
mov eax, dword [0x5375a0]
xor eax, esp
mov dword [esp + 0x140], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x5375a0]
xor eax, esp
push eax
lea eax, [esp + 0x158]
mov dword fs:[0], eax
mov eax, dword [esp + 0x168]
mov ebp, dword [esp + 0x16c]
mov esi, ecx
mov ecx, dword [0x53ef50]
push ecx
lea edx, [esp + 0x20]
xor ebx, ebx
push edx
mov dword [esp + 0x28], eax
mov dword [esp + 0x24], ebx
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
cmp dword [esp + 0x1c], ebx
jne 0x45b40e
mov ecx, esi
call fcn.00437ec0
push 0x524220
jmp 0x45b58b
cmp ebp, ebx
je 0x45b57f
mov edi, dword [ebp + ebx*4]
mov eax, edi
lea edx, [eax + 2]
nop
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x45b420
sub eax, edx
sar eax, 1
je 0x45b57f
lea ecx, [esp + 0x2c]
call fcn.00438ae0
mov eax, edi
lea edx, [esp + 0x2c]
call fcn.00438d30
mov dword [esp + 0x160], 1
cmp byte [esp + 0x148], 0
lea eax, [esp + 0x38]
jne 0x45b466
mov eax, dword [esp + 0x34]
add eax, 4
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x45b52d
shr eax, 4
not al
and al, 1
je 0x45b52d
mov dword [esp + 0x160], 0xffffffff
cmp byte [esp + 0x148], 0
mov dword [esp + 0x2c], vtable.t_str.0
jne 0x45b4b8
mov eax, dword [esp + 0x34]
lea ecx, [esp + 0x38]
cmp eax, ecx
je 0x45b4b8
push eax
call fcn.004c6103
add esp, 4
inc ebx
cmp ebx, 1
jl 0x45b416
mov dword [esp + 0x24], vtable.t_mutex::t_locker.0
mov dword [esp + 0x28], 0
push esi
mov edi, 0x53a3d8
mov dword [esp + 0x164], 2
call fcn.00442090
test al, al
je 0x45b571
mov dword [esp + 0x28], edi
lea edi, [esp + 0x1b]
mov byte [esp + 0x1b], 0
call fcn.004592e0
mov eax, dword [esp + 0x20]
push eax
push esi
mov ecx, ebp
call fcn.0045ae60
add esp, 8
mov edi, 0x53a3d8
mov bl, al
mov dword [esp + 0x160], 0xffffffff
call fcn.004421d0
mov al, bl
jmp 0x45b59c
mov ecx, esi
call fcn.00437ec0
push str.invalid_parameter.
push 0x5192f4
mov edx, eax
call fcn.004392f0
add esp, 8
cmp byte [esp + 0x148], 0
mov dword [esp + 0x2c], vtable.t_str.0
jne 0x45b59a
mov eax, dword [esp + 0x34]
lea edx, [esp + 0x38]
cmp eax, edx
je 0x45b59a
push eax
call fcn.004c6103
add esp, 4
jmp 0x45b59a
mov ecx, esi
call fcn.00437ec0
push 0x5243f8
jmp 0x45b58b
mov ecx, esi
call fcn.00437ec0
push str.invalid_parameter.
push 0x5192f4
mov edx, eax
call fcn.004392f0
add esp, 8
xor al, al
mov ecx, dword [esp + 0x158]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x140]
xor ecx, esp
call fcn.004c60f4
add esp, 0x150
ret
Function at 0x45bb40
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push 0xffffffffffffffff
push 0x508ba1
mov eax, dword fs:[0]
push eax
sub esp, 0x144
mov eax, dword [0x5375a0]
xor eax, esp
mov dword [esp + 0x140], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x5375a0]
xor eax, esp
push eax
lea eax, [esp + 0x158]
mov dword fs:[0], eax
mov eax, dword [esp + 0x168]
mov ebp, dword [esp + 0x16c]
mov esi, ecx
mov ecx, dword [0x53ef50]
push ecx
lea edx, [esp + 0x20]
xor ebx, ebx
push edx
mov dword [esp + 0x28], eax
mov dword [esp + 0x24], ebx
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
cmp dword [esp + 0x1c], ebx
jne 0x45bbbe
mov ecx, esi
call fcn.00437ec0
push 0x524220
jmp 0x45bd39
cmp ebp, ebx
je 0x45bd2d
mov edi, dword [ebp + ebx*4]
mov eax, edi
lea edx, [eax + 2]
nop
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x45bbd0
sub eax, edx
sar eax, 1
je 0x45bd2d
lea ecx, [esp + 0x2c]
call fcn.00438ae0
mov eax, edi
lea edx, [esp + 0x2c]
call fcn.00438d30
mov dword [esp + 0x160], 1
cmp byte [esp + 0x148], 0
lea eax, [esp + 0x38]
jne 0x45bc16
mov eax, dword [esp + 0x34]
add eax, 4
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x45bcdb
shr eax, 4
not al
and al, 1
je 0x45bcdb
mov dword [esp + 0x160], 0xffffffff
cmp byte [esp + 0x148], 0
mov dword [esp + 0x2c], vtable.t_str.0
jne 0x45bc68
mov eax, dword [esp + 0x34]
lea ecx, [esp + 0x38]
cmp eax, ecx
je 0x45bc68
push eax
call fcn.004c6103
add esp, 4
inc ebx
cmp ebx, 1
jl 0x45bbc6
mov dword [esp + 0x24], vtable.t_mutex::t_locker.0
mov dword [esp + 0x28], 0
push esi
mov edi, 0x53a3d8
mov dword [esp + 0x164], 2
call fcn.00442090
test al, al
je 0x45bd1f
mov dword [esp + 0x28], edi
lea edi, [esp + 0x1b]
mov byte [esp + 0x1b], 0
call fcn.004592e0
mov ecx, dword [esp + 0x20]
push ebp
push esi
call fcn.0045b5d0
add esp, 8
mov edi, 0x53a3d8
mov bl, al
mov dword [esp + 0x160], 0xffffffff
call fcn.004421d0
mov al, bl
jmp 0x45bd4a
mov ecx, esi
call fcn.00437ec0
push str.invalid_parameter.
push 0x5192f4
mov edx, eax
call fcn.004392f0
add esp, 8
cmp byte [esp + 0x148], 0
mov dword [esp + 0x2c], vtable.t_str.0
jne 0x45bd48
mov eax, dword [esp + 0x34]
lea edx, [esp + 0x38]
cmp eax, edx
je 0x45bd48
push eax
call fcn.004c6103
add esp, 4
jmp 0x45bd48
mov ecx, esi
call fcn.00437ec0
push 0x5243f8
jmp 0x45bd39
mov ecx, esi
call fcn.00437ec0
push str.invalid_parameter.
push 0x5192f4
mov edx, eax
call fcn.004392f0
add esp, 8
xor al, al
mov ecx, dword [esp + 0x158]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x140]
xor ecx, esp
call fcn.004c60f4
add esp, 0x150
ret
Function at 0x45bfd0
Capabilities:
Check for peb beingdebugged flag

Disassembly:
push 0xffffffffffffffff
push 0x5057d8
mov eax, dword fs:[0]
push eax
sub esp, 0x14
push ebx
push ebp
push esi
push edi
mov eax, dword [0x5375a0]
xor eax, esp
push eax
lea eax, [esp + 0x28]
mov dword fs:[0], eax
mov eax, dword [0x53ef50]
mov ebp, dword [esp + 0x38]
mov esi, ecx
push eax
lea ecx, [esp + 0x20]
xor ebx, ebx
push ecx
mov dword [esp + 0x24], ebx
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
cmp dword [esp + 0x1c], ebx
jne 0x45c04b
mov ecx, ebp
call fcn.00437ec0
push 0x524220
push 0x5192f4
mov edx, eax
call fcn.004392f0
add esp, 8
xor al, al
mov ecx, dword [esp + 0x28]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x20
ret
mov dword [esp + 0x24], ebx
mov dword [esp + 0x20], vtable.t_lockerMemSharable.0
push ebp
mov edi, 0x539d68
mov dword [esp + 0x34], ebx
call fcn.00442090
test al, al
je 0x45c0c0
lea edx, [esp + 0x14]
push edx
lea eax, [esp + 0x1c]
mov dword [esp + 0x28], edi
push eax
mov edi, ebp
mov dword [esp + 0x20], ebx
mov dword [esp + 0x1c], ebx
call fcn.00458d30
add esp, 8
test al, al
jne 0x45c0d1
mov ecx, ebp
call fcn.00437ec0
push 0x524140
push 0x5192f4
mov edx, eax
call fcn.004392f0
add esp, 8
mov edi, 0x539d68
mov dword [esp + 0x30], 0xffffffff
call fcn.004421d0
jmp 0x45c035
mov ecx, ebp
call fcn.00437ec0
push 0x524230
jmp 0x45c026
call fcn.0045e3d0
mov edx, dword [esp + 0x18]
mov edi, eax
mov eax, dword [esp + 0x14]
mov ecx, ebp
call fcn.00465570
test al, al
jne 0x45c0f9
push str.Attach
mov ecx, ebp
call fcn.00402790
jmp 0x45c0a9
mov edx, dword [esp + 0x3c]
lea ecx, [esp + 0x14]
push ecx
push edx
mov dword [esp + 0x1c], ebx
call fcn.0045e3d0
mov ecx, ebp
mov ebx, eax
call fcn.00465770
test al, al
jne 0x45c13b
push 0x5245ec
mov ecx, ebp
call fcn.00402790
lea esi, [esp + 0x20]
mov dword [esp + 0x30], 0xffffffff
call fcn.00427850
jmp 0x45c035
mov edi, dword [esp + 0x14]
mov eax, dword [edi]
mov ebx, dword [esp + 0x18]
mov dword [esi], eax
mov cx, word [edi + 0x22]
mov word [esi + 0x34], cx
mov dx, word [edi + 0x20]
mov word [esi + 0x36], dx
mov eax, dword [edi + 0x28]
mov dword [esi + 0x40], eax
mov eax, dword [edi + 0x18]
movzx ecx, word [eax + ebx]
add eax, ebx
push ecx
add eax, 2
push eax
lea edx, [esi + 4]
push edx
call fcn.004cd2d0
mov eax, dword [edi + 0x1c]
add eax, ebx
mov dword [esi + 0x38], eax
mov ecx, dword [eax]
add dword [esi + 0x38], 4
mov dword [esi + 0x3c], ecx
add esp, 0xc
lea esi, [esp + 0x20]
mov dword [esp + 0x30], 0xffffffff
call fcn.00427850
mov al, 1
mov ecx, dword [esp + 0x28]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x20
ret
Function at 0x460c60
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x5057a6
mov eax, dword fs:[0]
push eax
push ecx
push esi
mov eax, dword [0x5375a0]
xor eax, esp
push eax
lea eax, [esp + 0xc]
mov dword fs:[0], eax
mov esi, dword [esp + 0x1c]
xor eax, eax
mov dword [esi + 0x10], 1
mov dword [esi + 0x1c], eax
mov dword [esi + 0x38], eax
mov dword [esi + 0x20], eax
mov dword [esi + 0x24], eax
mov dword [esi + 0x28], eax
mov dword [esi + 0x2c], eax
mov dword [esi + 0x30], eax
mov dword [esi + 0x34], eax
mov dword [esi + 0x3c], eax
mov dword [esi + 0x40], eax
mov dword [esi + 0x44], eax
mov dword [esi + 0x48], eax
mov ecx, 0x40
mov dword [esi + 0x14], ecx
mov dword [esi + 0x18], ecx
mov edx, 0x1332ba5
mov dword [esi + 0xc], edx
mov dword [esi + 0x50], fcn.004c61e0
mov dword [esi + 0x54], fcn.004c83aa
mov dword [esi + 0x58], fcn.004c6103
mov dword [esi + 0x5c], eax
mov dword [esi + 0x60], 0x1fff8
mov dword [esi + 0x4c], vtable.t_heap.0
mov dword [esp + 0x14], eax
mov dword [esi + 0x78], eax
mov dword [esi + 0x80], eax
mov dword [esi + 0x7c], eax
mov dword [esi + 0x90], eax
mov dword [esi + 0x94], eax
mov eax, 0x34
mov dword [esi + 0x6c], eax
mov dword [esi + 0x84], eax
mov dword [esi + 0x88], eax
mov dword [esi + 0x8c], eax
lea eax, [esi + 0x98]
push eax
mov dword [esi + 0x64], edx
mov dword [esi + 0x68], 1
mov dword [esi + 0x70], 0x30
mov dword [esi + 0x74], 0xc
call fcn.00471fb0
lea ecx, [esi + 0x120]
push ecx
mov byte [esp + 0x18], 1
call fcn.004702c0
lea edx, [esi + 0x5e4]
push edx
mov byte [esp + 0x18], 2
call fcn.004765b0
lea eax, [esi + 0x5fc]
push eax
mov byte [esp + 0x18], 3
call fcn.004765b0
lea ecx, [esi + 0x614]
push ecx
mov byte [esp + 0x18], 4
call fcn.004765b0
mov eax, esi
mov ecx, dword [esp + 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
add esp, 0x10
ret 4
Function at 0x460da0
Capabilities:
Access peb ldr_data
Get ntdll base address
Get process heap flags

Disassembly:
push 0xffffffffffffffff
push 0x506999
mov eax, dword fs:[0]
push eax
sub esp, 0x18
push esi
push edi
mov eax, dword [0x5375a0]
xor eax, esp
push eax
lea eax, [esp + 0x24]
mov dword fs:[0], eax
mov esi, dword [esp + 0x34]
xor edi, edi
mov dword [esi], 0x1332ba5
mov dword [esi + 4], 1
mov dword [esi + 0x14], edi
mov dword [esi + 0x1c], edi
mov dword [esi + 0x18], edi
mov dword [esi + 0x2c], edi
mov dword [esi + 0x30], edi
mov dword [esi + 0xc], 0x30
mov dword [esi + 0x10], 0xc
mov eax, 0x34
mov dword [esi + 8], eax
mov dword [esi + 0x20], eax
mov dword [esi + 0x24], eax
mov dword [esi + 0x28], eax
mov eax, 0x40
mov dword [esi + 0x3c], eax
mov dword [esi + 0x40], eax
lea eax, [esi + 0x74]
push eax
mov dword [esi + 0x34], 0x1332ba5
mov dword [esi + 0x38], 1
mov dword [esi + 0x44], edi
mov dword [esi + 0x60], edi
mov dword [esi + 0x48], edi
mov dword [esi + 0x4c], edi
mov dword [esi + 0x50], edi
mov dword [esi + 0x54], edi
mov dword [esi + 0x58], edi
mov dword [esi + 0x5c], edi
mov dword [esi + 0x64], edi
mov dword [esi + 0x68], edi
mov dword [esi + 0x6c], edi
mov dword [esi + 0x70], edi
call fcn.00471fb0
lea ecx, [esi + 0xfc]
push ecx
mov dword [esp + 0x30], edi
call fcn.004744b0
lea edx, [esi + 0x208]
push edx
mov byte [esp + 0x30], 1
call fcn.00460c60
lea eax, [esi + 0x83c]
push eax
mov byte [esp + 0x30], 2
call fcn.004765b0
lea ecx, [esi + 0x854]
push ecx
mov byte [esp + 0x30], 3
call fcn.004765b0
lea edx, [esp + 0x10]
push edx
mov dword [esi + 0x86c], edi
call dword [sym.imp.KERNEL32.dll_GetSystemTime]
lea eax, [esi + 0x870]
push eax
lea ecx, [esp + 0x14]
push ecx
call dword [sym.imp.KERNEL32.dll_SystemTimeToFileTime]
mov eax, esi
mov ecx, dword [esp + 0x24]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
add esp, 0x24
ret 4
Function at 0x468390
Capabilities:
Get file size

Disassembly:
push 0xffffffffffffffff
push 0x50683b
mov eax, dword fs:[0]
push eax
sub esp, 0x364
mov eax, dword [0x5375a0]
xor eax, esp
mov dword [esp + 0x35c], eax
push ebx
push ebp
push esi
mov eax, dword [0x5375a0]
xor eax, esp
push eax
lea eax, [esp + 0x374]
mov dword fs:[0], eax
mov ebp, dword [esp + 0x384]
lea esi, [esp + 0x14]
mov ebx, ecx
call fcn.00441690
xor esi, esi
mov dword [esp + 0x14], vtable.t_fileRead.0
mov dword [esp + method.t_fileRead.1.virtual_0], vtable.t_fileRead.1.0
mov dword [esp + 0x364], esi
mov dword [esp + 0x368], esi
push esi
push edi
lea eax, [esp + 0x1c]
push eax
mov eax, ebx
mov dword [esp + 0x388], esi
call fcn.004417d0
test al, al
je 0x46849c
mov edx, dword [esp + 0x18]
lea ecx, [esp + 0x10]
push ecx
push edx
mov dword [esp + 0x18], esi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov ebx, eax
cmp ebx, 0xffffffff
jne 0x468445
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, esi
je 0x468445
xor eax, eax
jmp 0x468447
mov eax, ebx
mov dword [esp + 0x364], eax
sub eax, dword [esp + 0x368]
push eax
call fcn.004c9695
mov ecx, dword [esp + 0x368]
sub ecx, dword [esp + 0x36c]
add esp, 4
push ecx
push eax
push edi
lea ecx, [esp + 0x36c]
mov dword [ebp], eax
call fcn.00446840
test al, al
jne 0x4684e2
mov ebp, dword [ebp]
push ebp
call fcn.004c968a
add esp, 4
mov ecx, edi
call fcn.00437ec0
push 0x51b154
jmp 0x4684a8
mov ecx, edi
call fcn.00437ec0
push 0x521074
push 0x5192f4
mov edx, eax
call fcn.004392f0
mov dword [esp + 0x384], 0xffffffff
add esp, 8
lea ecx, [esp + 0x14]
mov dword [esp + 0x14], vtable.t_fileRead.0
mov dword [esp + method.t_byteStreamRead.virtual_0], vtable.t_byteStreamRead.0
call fcn.00441700
xor al, al
jmp 0x468509
mov dword [esp + 0x37c], 0xffffffff
lea ecx, [esp + 0x14]
mov dword [esp + 0x14], vtable.t_fileRead.0
mov dword [esp + method.t_byteStreamRead.virtual_0], vtable.t_byteStreamRead.0
call fcn.00441700
mov ecx, dword [esp + 0x374]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x35c]
xor ecx, esp
call fcn.004c60f4
add esp, 0x370
ret 4
Function at 0x470180
Capabilities:
Access peb ldr_data
Get ntdll base address
Get process heap flags

Disassembly:
push 0xffffffffffffffff
push 0x504858
mov eax, dword fs:[0]
push eax
push ebx
push esi
mov eax, dword [0x5375a0]
xor eax, esp
push eax
lea eax, [esp + 0xc]
mov dword fs:[0], eax
mov esi, dword [esp + 0x1c]
push esi
call fcn.004765b0
lea eax, [esi + 0x18]
xor ebx, ebx
push eax
mov dword [esp + 0x18], ebx
call fcn.004765b0
mov dword [esi + 0x38], fcn.004c61e0
mov dword [esi + 0x3c], fcn.004c83aa
mov dword [esi + 0x40], fcn.004c6103
mov dword [esi + 0x44], ebx
mov dword [esi + 0x48], 0x1fff8
mov dword [esi + 0x34], vtable.t_heap.0
mov dword [esi + 0x480], 0x1332ba5
mov dword [esi + 0x484], 1
mov dword [esi + 0x490], ebx
mov dword [esi + 0x4ac], ebx
mov dword [esi + 0x494], ebx
mov dword [esi + 0x498], ebx
mov dword [esi + 0x49c], ebx
mov dword [esi + 0x4a0], ebx
mov dword [esi + 0x4a4], ebx
mov dword [esi + 0x4a8], ebx
mov dword [esi + 0x4b0], ebx
mov dword [esi + 0x4b4], ebx
mov dword [esi + 0x4b8], ebx
mov dword [esi + 0x4bc], ebx
mov eax, 0x40
mov dword [esi + 0x488], eax
mov dword [esi + 0x48c], eax
mov byte [esi + 0x4c0], bl
mov ecx, dword [edi]
push 0x208
mov dword [esi + 0x4c], ecx
mov edx, dword [edi + 4]
lea eax, [esi + 0x54]
push ebx
push eax
mov dword [esi + 0x50], edx
mov dword [esi + 0x30], ebx
call fcn.004cd250
add esp, 0xc
push 0x208
lea ecx, [esi + 0x25c]
push ebx
push ecx
call fcn.004cd250
mov dword [esi + 0x46c], ebx
mov dword [esi + 0x470], ebx
mov dword [esi + 0x474], ebx
mov dword [esi + 0x478], ebx
add esp, 0xc
mov dword [esi + 0x47c], ebx
mov eax, esi
mov ecx, dword [esp + 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebx
add esp, 0xc
ret 4

Function at 0x471fb0
Capabilities:
Access peb ldr_data
Get process heap flags

Disassembly:
push 0xffffffffffffffff
push 0x505585
mov eax, dword fs:[0]
push eax
push esi
push edi
mov eax, dword [0x5375a0]
xor eax, esp
push eax
lea eax, [esp + 0xc]
mov dword fs:[0], eax
mov esi, dword [esp + 0x1c]
push esi
call fcn.004765b0
lea eax, [esi + 0x18]
xor edi, edi
push eax
mov dword [esp + 0x18], edi
call fcn.004765b0
lea ecx, [esi + 0x30]
push ecx
mov byte [esp + 0x18], 1
call fcn.00472f70
mov dword [esi + 0x50], edi
mov eax, 0x34
mov dword [esi + 0x5c], eax
mov dword [esi + 0x74], eax
mov dword [esi + 0x78], eax
mov dword [esi + 0x7c], eax
mov dword [esi + 0x54], 0x1332ba5
mov dword [esi + 0x58], 1
mov dword [esi + 0x68], edi
mov dword [esi + 0x70], edi
mov dword [esi + 0x6c], edi
mov dword [esi + 0x80], edi
mov dword [esi + 0x84], edi
mov dword [esi + 0x60], 0x30
mov dword [esi + 0x64], 0xc
mov eax, esi
mov ecx, dword [esp + 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
add esp, 0xc
ret 4
Function at 0x472060
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x505585
mov eax, dword fs:[0]
push eax
push ecx
push esi
mov eax, dword [0x5375a0]
xor eax, esp
push eax
lea eax, [esp + 0xc]
mov dword fs:[0], eax
mov esi, dword [esp + 0x1c]
lea eax, [esi + 0x30]
push eax
mov dword [esp + 0x18], 1
call fcn.00472b90
mov eax, dword [esi + 0x24]
test eax, eax
je 0x4720a7
push eax
call fcn.004c85c5
add esp, 4
mov eax, dword [esi + 0x18]
push eax
mov dword [esi + 0x24], 0
mov dword [esi + 0x28], 0
mov dword [esi + 0x2c], 0
call fcn.004c85c5
add esp, 4
push esi
mov dword [esp + 0x18], 0xffffffff
call fcn.004645b0
mov ecx, dword [esp + 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
add esp, 0x10
ret 4
Function at 0x4787d0
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ecx
push ebx
push ebp
mov ebp, dword [esp + 0x10]
push esi
push edi
push eax
mov esi, ecx
call fcn.00488270
test al, al
jne 0x478895
xor ebx, ebx
cmp byte [esi + 0x11c], bl
je 0x4787f8
add esi, 0xc
jmp 0x4787fb
mov esi, dword [esi + 8]
add esi, 4
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x47883e
shr eax, 4
not al
and al, 1
je 0x47883e
mov ecx, edi
mov dword [ebp + 4], 1
call fcn.00437ec0
push 0x52611c
push 0x5192f4
mov edx, eax
call fcn.004392f0
add esp, 8
xor al, al
pop esi
pop ebp
pop ebx
pop ecx
ret 0xc
mov ecx, dword [esp + 0x18]
mov dword [ebp + 4], 2
mov eax, dword [ecx]
cmp eax, ebx
je 0x478887
mov edx, dword [esp + 0x1c]
mov ecx, 0x40
mov dword [eax + 0x24], ecx
mov dword [eax + 0x28], ecx
mov dword [eax], 0x1332ba5
mov dword [eax + 4], ebx
mov dword [eax + 0x14], ebx
mov dword [eax + 0x18], ebx
mov dword [eax + 0x1c], ebx
mov dword [eax + 0x20], ebx
mov ecx, edi
mov dword [edx], 0x50
call fcn.00437ec0
push 0x526160
jmp 0x478826
mov ecx, edi
call fcn.00437ec0
push 0x526138
jmp 0x478826
pop esi
pop ebp
mov al, 1
pop ebx
pop ecx
ret 0xc
Function at 0x4788a0
Capabilities:
Get file size

Disassembly:
push 0xffffffffffffffff
push 0x50626b
mov eax, dword fs:[0]
push eax
sub esp, 0x3a4
mov eax, dword [0x5375a0]
xor eax, esp
mov dword [esp + 0x39c], eax
push ebx
push ebp
push esi
mov eax, dword [0x5375a0]
xor eax, esp
push eax
lea eax, [esp + 0x3b4]
mov dword fs:[0], eax
mov ebp, dword [esp + 0x3c4]
lea esi, [esp + 0x54]
mov ebx, ecx
call fcn.00441690
xor esi, esi
mov dword [esp + 0x54], vtable.t_fileRead.0
mov dword [esp + method.t_fileRead.1.virtual_0], vtable.t_fileRead.1.0
mov dword [esp + 0x3a4], esi
mov dword [esp + 0x3a8], esi
push esi
push edi
lea eax, [esp + 0x5c]
push eax
mov eax, ebx
mov dword [esp + 0x3c8], esi
call fcn.004417d0
test al, al
je 0x4789cc
mov edx, dword [esp + 0x58]
lea ecx, [esp + 0x10]
push ecx
push edx
mov dword [esp + 0x18], esi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov ebx, eax
cmp ebx, 0xffffffff
jne 0x478953
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, esi
je 0x478953
xor ebx, ebx
mov eax, 0x40
push eax
mov dword [esp + 0x20], eax
mov dword [esp + 0x24], eax
lea eax, [esp + 0x18]
push eax
push edi
lea ecx, [esp + 0x3ac]
mov dword [esp + 0x3b0], ebx
mov dword [esp + 0x20], 0x1332ba5
mov dword [esp + 0x24], 1
mov dword [esp + 0x30], esi
mov dword [esp + 0x4c], esi
mov dword [esp + 0x34], esi
mov dword [esp + 0x38], esi
mov dword [esp + 0x3c], esi
mov dword [esp + 0x40], esi
mov dword [esp + 0x44], esi
mov dword [esp + 0x48], esi
mov dword [esp + 0x50], esi
mov dword [esp + 0x54], esi
mov dword [esp + 0x58], esi
mov dword [esp + 0x5c], esi
call fcn.00446840
test al, al
jne 0x478a12
mov ecx, edi
call fcn.00437ec0
push 0x52619c
jmp 0x4789d8
mov ecx, edi
call fcn.00437ec0
push 0x526184
push 0x5192f4
mov edx, eax
call fcn.004392f0
mov dword [esp + 0x3c4], 0xffffffff
add esp, 8
lea ecx, [esp + 0x54]
mov dword [esp + 0x54], vtable.t_fileRead.0
mov dword [esp + method.t_byteStreamRead.virtual_0], vtable.t_byteStreamRead.0
call fcn.00441700
xor al, al
jmp 0x478a42
mov ecx, dword [esp + 0x18]
mov dword [ebp], ecx
mov dword [esp + 0x3bc], 0xffffffff
lea ecx, [esp + 0x54]
mov dword [esp + 0x54], vtable.t_fileRead.0
mov dword [esp + method.t_byteStreamRead.virtual_0], vtable.t_byteStreamRead.0
call fcn.00441700
mov al, 1
mov ecx, dword [esp + 0x3b4]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x39c]
xor ecx, esp
call fcn.004c60f4
add esp, 0x3b0
ret

Function at 0x47ae10
Capabilities:
Check if file exists
Get file attributes

Disassembly:
sub esp, 8
push esi
push edi
push eax
mov esi, ecx
call fcn.00488270
test al, al
jne 0x47ae87
cmp byte [esi + 0x11c], al
je 0x47ae2e
add esi, 0xc
jmp 0x47ae31
mov esi, dword [esi + 8]
add esi, 4
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x47ae72
shr eax, 4
not al
and al, 1
je 0x47ae72
mov ecx, edi
mov dword [ebx + 4], 1
call fcn.00437ec0
push 0x5263f0
push 0x5192f4
mov edx, eax
call fcn.004392f0
add esp, 8
xor al, al
pop esi
add esp, 8
ret
mov ecx, edi
mov dword [ebx + 4], 2
call fcn.00437ec0
push 0x526408
jmp 0x47ae5c
mov al, 1
pop esi
add esp, 8
ret
Function at 0x47af20
Capabilities:
Get file size

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x50619b
mov eax, dword fs:[0]
push eax
sub esp, 0x3a4
mov eax, dword [0x5375a0]
xor eax, esp
mov dword [esp + 0x39c], eax
push ebx
push esi
mov eax, dword [0x5375a0]
xor eax, esp
push eax
lea eax, [esp + 0x3b0]
mov dword fs:[0], eax
mov eax, dword [ebp + 8]
lea esi, [esp + 0x4c]
mov ebx, ecx
mov dword [esp + 0x10], eax
call fcn.00441690
xor esi, esi
mov dword [esp + 0x4c], vtable.t_fileRead.0
mov dword [esp + method.t_fileRead.1.virtual_0], vtable.t_fileRead.1.0
mov dword [esp + 0x39c], esi
mov dword [esp + 0x3a0], esi
push esi
push edi
lea ecx, [esp + 0x54]
push ecx
mov eax, ebx
mov dword [esp + 0x3c4], esi
call fcn.004417d0
test al, al
je 0x47b04d
mov eax, dword [esp + 0x50]
lea edx, [esp + 0x14]
push edx
push eax
mov dword [esp + 0x1c], esi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov ebx, eax
cmp ebx, 0xffffffff
jne 0x47afd8
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, esi
je 0x47afd8
xor ebx, ebx
mov eax, 0x34
push eax
lea ecx, [esp + 0x1c]
push ecx
push edi
lea ecx, [esp + 0x3a4]
mov dword [esp + 0x3a8], ebx
mov dword [esp + 0x24], 0x1332ba5
mov dword [esp + 0x28], 1
mov dword [esp + 0x38], esi
mov dword [esp + 0x40], esi
mov dword [esp + 0x3c], esi
mov dword [esp + 0x50], esi
mov dword [esp + 0x54], esi
mov dword [esp + 0x2c], eax
mov dword [esp + 0x30], 0x30
mov dword [esp + 0x34], 0xc
mov dword [esp + 0x44], eax
mov dword [esp + 0x48], eax
mov dword [esp + 0x4c], eax
call fcn.00446840
test al, al
jne 0x47b093
mov ecx, edi
call fcn.00437ec0
push 0x526440
jmp 0x47b059
mov ecx, edi
call fcn.00437ec0
push 0x521074
push 0x5192f4
mov edx, eax
call fcn.004392f0
mov dword [esp + 0x3c0], 0xffffffff
add esp, 8
lea ecx, [esp + 0x4c]
mov dword [esp + 0x4c], vtable.t_fileRead.0
mov dword [esp + method.t_byteStreamRead.virtual_0], vtable.t_byteStreamRead.0
call fcn.00441700
xor al, al
jmp 0x47b0d0
mov edx, dword [esp + 0x1c]
mov eax, dword [esp + 0x10]
lea ecx, [esp + 0x4c]
push ecx
mov dword [eax], edx
call fcn.004419f0
mov dword [esp + 0x3b8], 0xffffffff
lea ecx, [esp + 0x4c]
mov dword [esp + 0x4c], vtable.t_fileRead.0
mov dword [esp + method.t_byteStreamRead.virtual_0], vtable.t_byteStreamRead.0
call fcn.00441700
mov al, 1
mov ecx, dword [esp + 0x3b0]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebx
mov ecx, dword [esp + 0x39c]
xor ecx, esp
call fcn.004c60f4
mov esp, ebp
pop ebp
ret