joyce8/EMBER2024-capa huggingface dataset:
Function at 0x414c80
Capabilities:
Receive data
Receive data on socket

Disassembly:
push ecx
push ebx
push ebp
push esi
push edi
mov ebp, ecx
push 0
push ebp
mov dword [esp + 0x18], 0
call fcn.00414ec0
add esp, 8
mov ecx, ebp
push str.read_file
push 1
push 1
call fcn.00414e60
test eax, eax
jne 0x414cb6
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret 0x10
mov ebx, dword [esp + 0x20]
mov edi, dword [esp + 0x24]
mov dword [ebx], 0
mov dword [edi], 0
mov esi, dword [ebp + 0xc]
test esi, esi
je 0x414d83
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x414d83
mov eax, dword [esp + 0x1c]
cmp eax, ecx
jb 0x414d20
mov edi, dword [esp + 0x18]
mov eax, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, dword [ebp + 0x10]
xor esi, esi
mov dword [ebx], ecx
mov edx, dword [ebp + 0xc]
push edx
mov dword [ebp + 0x10], esi
call fcn.0041a842
add esp, 4
mov dword [ebp + 0xc], esi
mov eax, 1
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret 0x10
mov edi, dword [esp + 0x18]
mov ecx, eax
mov edx, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov dword [ebx], eax
mov ebx, dword [ebp + 0x10]
sub ebx, eax
push ebx
call fcn.00410db0
mov esi, dword [ebp + 0xc]
mov edi, dword [esp + 0x20]
mov ecx, ebx
add esi, edi
mov dword [esp + 0x1c], eax
mov edi, eax
mov eax, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, dword [ebp + 0xc]
push ecx
call fcn.0041a842
mov edx, dword [esp + 0x20]
add esp, 8
mov dword [ebp + 0xc], edx
mov dword [ebp + 0x10], ebx
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
pop ecx
ret 0x10
mov eax, dword [esp + 0x1c]
mov ecx, dword [esp + 0x18]
mov edx, dword [ebp]
push 0
push eax
push ecx
push edx
call sub.WSOCK32.dll_recv
cmp eax, 0xffffffff
jne 0x414dd4
mov ecx, ebp
call fcn.00414e50
cmp eax, 0x2733
je 0x414dc2
push eax
push str.Recv_failed___d_
push ebp
mov dword [edi], 1
call fcn.00414ec0
add esp, 0xc
jmp 0x414df1
push 0xa
mov dword [esp + 0x14], 1
call dword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x414e04
test eax, eax
jle 0x414de4
mov dword [ebx], eax
mov dword [esp + 0x10], 1
jmp 0x414e04
mov ecx, ebp
mov dword [edi], 1
call fcn.00414e50
cmp dword [edi], 0
jne 0x414e04
push str.No_data_was_received
push ebp
call fcn.00414ec0
add esp, 8
mov al, byte [0x4344b0]
test al, al
je 0x414e27
mov dword [edi], 1
pop edi
mov dword [esp + 0xc], 0
pop esi
mov eax, dword [esp + 8]
pop ebp
pop ebx
pop ecx
ret 0x10
mov eax, dword [esp + 0x10]
test eax, eax
jne 0x414e35
mov dword [edi], 1
mov eax, dword [esp + 0x10]
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret 0x10
Function at 0x415720
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ecx
push esi
lea eax, [esp + 4]
lea esi, [ecx + 0x60]
push eax
push esi
push 0x104
push 0
push str.wininet.dll
push 0
mov byte [esi], 0
call dword [sym.imp.KERNEL32.dll_SearchPathA]
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
xor ecx, ecx
cmp eax, 0xffffffff
setne cl
mov eax, ecx
pop esi
pop ecx
ret
Function at 0x415765
Capabilities:
Link many functions at runtime

Disassembly:
sub esp, 0x10
push ebx
push ebp
push esi
mov esi, ecx
xor ebp, ebp
push edi
cmp dword [esi + 0x5c], ebp
jne 0x41591a
call fcn.00415720
test eax, eax
je 0x41591a
lea eax, [esp + 0x10]
lea ecx, [esp + 0x14]
push eax
lea edx, [esp + 0x1c]
push ecx
lea eax, [esp + 0x24]
lea edi, [esi + 0x60]
push edx
push eax
push edi
mov ecx, esi
mov dword [esp + 0x30], ebp
mov dword [esp + 0x2c], ebp
mov dword [esp + 0x28], ebp
mov dword [esp + 0x24], ebp
call fcn.00415980
mov ecx, dword [esp + 0x10]
mov edx, dword [esp + 0x14]
mov eax, dword [esp + 0x18]
push ecx
mov ecx, dword [esp + 0x20]
push edx
push eax
push ecx
lea edx, [esi + 0x164]
push str._d._d._d._d
push edx
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x18
push edi
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov ebx, eax
cmp ebx, ebp
je 0x41591a
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.InternetGetConnectedState
push ebx
call edi
push str.InternetErrorDlg
push ebx
mov dword [esi + 0x10], eax
call edi
push str.InternetAttemptConnect
push ebx
mov dword [esi + 0x14], eax
call edi
push str.InternetQueryOptionA
push ebx
mov dword [esi + 0x18], eax
call edi
push str.InternetOpenA
push ebx
mov dword [esi + 0x28], eax
call edi
push str.InternetConnectA
push ebx
mov dword [esi + 0x1c], eax
call edi
push str.InternetCloseHandle
push ebx
mov dword [esi + 0x30], eax
call edi
push str.InternetReadFile
push ebx
mov dword [esi + 0x34], eax
call edi
push str.InternetOpenUrlA
push ebx
mov dword [esi + 0x38], eax
call edi
push str.InternetSetStatusCallback
push ebx
mov dword [esi + 0x44], eax
call edi
push str.InternetSetOptionA
push ebx
mov dword [esi + 0x20], eax
call edi
push str.InternetGetLastResponseInfoA
push ebx
mov dword [esi + 0x24], eax
call edi
push str.HttpOpenRequestA
push ebx
mov dword [esi + 0x2c], eax
call edi
push str.HttpSendRequestA
push ebx
mov dword [esi + 0x3c], eax
call edi
push str.HttpQueryInfoA
push ebx
mov dword [esi + 0x40], eax
call edi
push str.InternetCanonicalizeUrlA
push ebx
mov dword [esi + 0x48], eax
call edi
push str.InternetCombineUrlA
push ebx
mov dword [esi + 0x4c], eax
call edi
push str.InternetCrackUrlA
push ebx
mov dword [esi + 0x50], eax
call edi
push str.HttpAddRequestHeadersA
push ebx
mov dword [esi + 0x54], eax
call edi
mov ecx, dword [esi + 0x18]
mov dword [esi + 0x58], eax
cmp ecx, ebp
je 0x41591a
cmp dword [esi + 0x28], ebp
je 0x41591a
cmp dword [esi + 0x1c], ebp
je 0x41591a
cmp dword [esi + 0x20], ebp
je 0x41591a
cmp dword [esi + 0x24], ebp
je 0x41591a
cmp dword [esi + 0x2c], ebp
je 0x41591a
cmp dword [esi + 0x30], ebp
je 0x41591a
cmp dword [esi + 0x34], ebp
je 0x41591a
cmp dword [esi + 0x38], ebp
je 0x41591a
cmp dword [esi + 0x3c], ebp
je 0x41591a
cmp dword [esi + 0x40], ebp
je 0x41591a
cmp eax, ebp
je 0x41591a
cmp dword [esi + 0x48], ebp
je 0x41591a
cmp dword [esi + 0x4c], ebp
je 0x41591a
cmp dword [esi + 0x50], ebp
je 0x41591a
cmp dword [esi + 0x54], ebp
je 0x41591a
cmp dword [esi + 0x44], ebp
je 0x41591a
mov dword [esi + 0x5c], ebx
mov ecx, dword [esi + 0x5c]
xor eax, eax
pop edi
cmp ecx, ebp
pop esi
pop ebp
setne al
pop ebx
add esp, 0x10
ret
Function at 0x415980
Capabilities:
Get file version info

Disassembly:
sub esp, 8
lea eax, [esp + 0xc]
push ebx
push ebp
mov ebp, dword [esp + 0x14]
push esi
push eax
push ebp
call sub.VERSION.dll_GetFileVersionInfoSizeA
mov esi, eax
test esi, esi
je 0x415a3b
push esi
push 0x42
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov ebx, eax
test ebx, ebx
je 0x415a3b
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_GlobalLock]
mov edi, eax
test edi, edi
je 0x415a25
mov ecx, dword [esp + 0x1c]
push edi
push esi
push ecx
push ebp
call sub.VERSION.dll_GetFileVersionInfoA
test eax, eax
je 0x415a1e
lea edx, [esp + 0x14]
lea eax, [esp + 0x10]
push edx
push eax
push 0x42b398
push edi
call sub.VERSION.dll_VerQueryValueA
test eax, eax
je 0x415a1e
mov eax, dword [esp + 0x10]
mov edx, dword [esp + 0x20]
mov ecx, dword [eax + 8]
shr ecx, 0x10
mov dword [edx], ecx
mov edx, dword [esp + 0x24]
xor ecx, ecx
mov cx, word [eax + 8]
mov dword [edx], ecx
mov ecx, dword [eax + 0xc]
mov edx, dword [esp + 0x28]
shr ecx, 0x10
mov dword [edx], ecx
mov edx, dword [esp + 0x2c]
xor ecx, ecx
mov cx, word [eax + 0xc]
mov dword [edx], ecx
push ebx
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
push ebx
call dword [sym.imp.KERNEL32.dll_GlobalFree]
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 8
ret 0x14
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 8
ret 0x14

Function at 0x4161e0
Capabilities:
Print debug messages

Disassembly:
push esi
push edi
mov edi, dword [esp + 0x10]
mov esi, ecx
test edi, edi
je 0x41622a
push edi
call fcn.00416230
mov ecx, esi
call fcn.004162e0
cmp eax, edi
jb 0x41621f
mov eax, dword [esp + 0xc]
mov ecx, dword [esi + 8]
push edi
push eax
add ecx, dword [esi + 0xc]
push ecx
call fcn.0041c4c0
mov eax, dword [esi + 0xc]
add esp, 0xc
add eax, edi
mov dword [esi + 0xc], eax
pop edi
pop esi
ret 8
push str.Out_of_memory_in_CMemBuffer___Cannot_append_r_n
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
pop edi
pop esi
ret 8

Function at 0x416230
Capabilities:
Print debug messages

Disassembly:
push ebx
push ebp
push esi
push edi
mov esi, ecx
call fcn.004162e0
mov ecx, dword [esp + 0x14]
cmp eax, ecx
jae 0x4162a7
mov edi, dword [esi + 4]
mov ebp, dword [esi + 8]
add ecx, edi
mov ebx, ecx
lea eax, [ebx + 2]
push eax
call fcn.0041a915
mov edi, eax
add esp, 4
test edi, edi
mov dword [esi + 8], edi
je 0x416299
mov ecx, ebx
xor eax, eax
mov edx, ecx
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, edx
and ecx, 3
test ebp, ebp
rep stosb byte es:[edi], al
je 0x41628f
mov eax, dword [esi + 4]
mov ecx, dword [esi + 8]
push eax
push ebp
push ecx
call fcn.0041c4c0
push ebp
call fcn.0041a842
add esp, 0x10
mov dword [esi + 4], ebx
pop edi
pop esi
pop ebp
pop ebx
ret 4
push str.Out_of_memory_in_CMemBuffer__r_n
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
mov dword [esi + 8], ebp
pop edi
pop esi
pop ebp
pop ebx
ret 4
Function at 0x4165f5
Capabilities:
Create thread

Disassembly:
push ebx
mov ebx, dword [esp + 8]
push esi
mov esi, ecx
test ebx, ebx
je 0x416656
cmp byte [ebx], 0
je 0x416656
call fcn.00410670
test eax, eax
je 0x416656
lea edx, [esi + 0x104c]
push edi
mov ecx, 0x100
xor eax, eax
mov edi, edx
rep stosd dword es:[edi], eax
mov eax, dword [esp + 0x14]
pop edi
test eax, eax
je 0x416632
push 0x400
push eax
push edx
call dword [sym.imp.KERNEL32.dll_lstrcpynA]
lea eax, [esi + 0xc4c]
lea ecx, [esi + 0x84c]
push eax
push ecx
push ebx
call fcn.00410c30
add esp, 0xc
test eax, eax
jne 0x41665d
push 8
mov ecx, esi
call fcn.004165a0
pop esi
xor eax, eax
pop ebx
ret 8
push 2
mov ecx, esi
call fcn.004165a0
lea edx, [esp + 0xc]
mov dword [esp + 0xc], 0
push edx
push 0
push esi
push 0x4166f0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [esi + 0x1568], eax
xor eax, eax
mov ecx, dword [esi + 0x1568]
pop esi
test ecx, ecx
setne al
pop ebx
ret 8

Function at 0x417180
Capabilities:
Get common file path

Disassembly:
sub esp, 0x128
push ebx
push ebp
push esi
push edi
mov ecx, 0x40
xor eax, eax
lea edi, [esp + 0x35]
mov byte [esp + 0x34], 0
rep stosd dword es:[edi], eax
mov ebp, dword [esp + 0x13c]
xor esi, esi
stosw word es:[edi], ax
test ebp, ebp
stosb byte es:[edi], al
jne 0x4171d4
lea eax, [esp + 0x34]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
test eax, eax
je 0x4172b2
lea ecx, [esp + 0x34]
lea ebp, [esp + 0x34]
test ecx, ecx
je 0x4172b2
cmp byte [ebp], 0
je 0x4172b2
mov ebx, dword [esp + 0x140]
test ebx, ebx
je 0x4172b2
cmp byte [ebx], 0
je 0x4172b2
mov edi, dword [esp + 0x144]
test edi, edi
je 0x4172b2
mov esi, dword [sym.imp.KERNEL32.dll_lstrlenA]
push ebp
call esi
mov edx, eax
push ebx
mov dword [esp + 0x14], edx
call esi
mov edx, dword [esp + 0x10]
mov ecx, dword [esp + 0x148]
lea eax, [edx + eax + 0x10]
cmp ecx, eax
jle 0x4172a3
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov esi, eax
mov eax, dword [0x4344bc]
cmp esi, eax
jne 0x41724c
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov esi, eax
mov eax, dword [0x4344bc]
cmp esi, eax
je 0x41723b
push ebp
push edi
mov dword [0x4344bc], esi
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
mov ecx, dword [esp + 0x148]
push ecx
push edi
call fcn.0040c710
add esp, 8
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_lstrcatA]
push edi
call ebx
push esi
lea edx, [esp + 0x18]
push str._08X.tmp
push edx
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
lea eax, [esp + 0x14]
push eax
push edi
call ebx
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0x128
ret 0x10
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x128
ret 0x10
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x128
ret 0x10
Function at 0x417f00
Capabilities:
Copy file

Disassembly:
push ecx
push ebx
push ebp
push esi
mov esi, ecx
xor ebp, ebp
push edi
lea eax, [esp + 0x10]
push ebp
lea edi, [esi + 0x1574]
push eax
push str.AccumFile
push edi
push reloc.WSOCK32.dll_bind
mov dword [esp + 0x24], ebp
call fcn.0040a980
mov ecx, dword [esp + 0x24]
push ebp
push ecx
call fcn.0040c2d0
mov edx, dword [esp + 0x2c]
push edx
call fcn.0041a842
add esp, 0x20
lea ebx, [esi + 0x1d74]
mov ecx, esi
push 1
push 0x104
push ebx
push 0x42dbe0
call fcn.004183c0
test eax, eax
je 0x417fce
push ebx
push str.AccumFile
push edi
push reloc.WSOCK32.dll_bind
call fcn.0040ad40
mov eax, dword [esi + 0x1e80]
push eax
push str.UrlSize
push edi
push reloc.WSOCK32.dll_bind
call fcn.0040adc0
lea ecx, [esi + 0x1e88]
push ecx
push str.UrlTime
push edi
push reloc.WSOCK32.dll_bind
call fcn.0040ad40
mov edi, dword [esp + 0x48]
push edi
call fcn.0040c2a0
add esp, 0x34
test eax, eax
je 0x417fb8
push ebp
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_CopyFileA]
push 0
mov ecx, esi
call fcn.00417fe0
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
pop ecx
ret 4
pop edi
mov eax, ebp
pop esi
pop ebp
pop ebx
pop ecx
ret 4
Function at 0x418020
Capabilities:
Get file size
Read file on windows
Write file on windows

Disassembly:
sub esp, 0x114
push esi
push edi
mov edi, dword [esp + 0x120]
xor eax, eax
test edi, edi
mov dword [esp + 0x14], ecx
mov dword [esp + 0xc], eax
je 0x4181ab
cmp byte [edi], 0
je 0x4181ab
mov esi, dword [esp + 0x124]
test esi, esi
je 0x4181ab
cmp byte [esi], 0
je 0x4181ab
push ebx
push ebp
mov ebp, dword [sym.imp.KERNEL32.dll_CreateFileA]
push eax
push 0x80
push 3
push eax
push 1
push closesocket
push edi
call ebp
mov ebx, eax
cmp ebx, 0xffffffff
je 0x41819a
push 0
push ebx
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov edi, dword [esp + 0x134]
cmp edi, 0xffffffff
jne 0x4180a1
mov edi, eax
jmp 0x4180a9
cmp eax, edi
jne 0x41818c
lea eax, [esp + 0x20]
push esi
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
lea ecx, [esp + 0x20]
push ecx
call fcn.0040c7a0
lea edx, [esp + 0x24]
push 0
push edx
call fcn.0040c490
add esp, 0xc
push 0
push 0x80
push 4
push 0
push 0
push 0x40000000
push esi
call ebp
mov esi, eax
cmp esi, 0xffffffff
je 0x41818c
push 0
push esi
mov dword [esp + 0x18], 0
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov ebp, dword [esp + 0x130]
cmp eax, ebp
jne 0x418177
push 0
push 0
push ebp
push esi
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp eax, ebp
jne 0x418177
push edi
call fcn.0041a915
mov ebp, eax
add esp, 4
test ebp, ebp
je 0x418177
lea eax, [esp + 0x18]
push 0
push eax
push edi
push ebp
push ebx
mov dword [esp + 0x2c], 0
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x41816e
cmp dword [esp + 0x18], edi
jne 0x41816e
lea ecx, [esp + 0x10]
push 0
push ecx
push edi
push ebp
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x41816e
mov eax, dword [esp + 0x10]
xor edx, edx
cmp eax, edi
sete dl
mov dword [esp + 0x14], edx
push ebp
call fcn.0041a842
add esp, 4
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [esp + 0x1c]
mov ecx, dword [esp + 0x10]
add dword [eax + 0x1e7c], ecx
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov edi, dword [esp + 0x128]
push 0
push edi
call fcn.0040c2d0
mov eax, dword [esp + 0x1c]
add esp, 8
pop ebp
pop ebx
pop edi
pop esi
add esp, 0x114
ret 0x10
Function at 0x418430
Capabilities:
Get common file path

Disassembly:
sub esp, 0x104
push ebx
push esi
push edi
xor ebx, ebx
mov ecx, 0x40
xor eax, eax
lea edi, [esp + 0xd]
mov byte [esp + 0xc], bl
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov eax, dword [esp + 0x114]
cmp eax, 0xfffffffe
jne 0x41846f
lea eax, [esp + 0xc]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
lea eax, [esp + 0xc]
cmp eax, ebx
je 0x418522
cmp byte [eax], bl
je 0x418522
mov edi, dword [esp + 0x118]
cmp edi, ebx
je 0x418522
cmp byte [edi], bl
je 0x418522
mov esi, dword [sym.imp.KERNEL32.dll_lstrcpyA]
push eax
push 0x4344c0
call esi
push 0x4344c0
call fcn.0040c730
push ebx
push 0x4344c0
call fcn.0040c490
add esp, 0xc
test eax, eax
je 0x418522
push 0x4344c0
push 0x4345c4
call esi
push 0x104
push 0x4345c4
call fcn.0040c710
mov esi, dword [sym.imp.KERNEL32.dll_lstrcatA]
add esp, 8
push str.accum
push 0x4345c4
call esi
push 0x104
push 0x4345c4
call fcn.0040c710
add esp, 8
push edi
push 0x4345c4
call esi
push ebx
push 0x4345c4
call fcn.0040c490
add esp, 8
pop edi
pop esi
pop ebx
add esp, 0x104
ret
pop edi
mov eax, ebx
pop esi
pop ebx
add esp, 0x104
ret
Function at 0x418800
Capabilities:
Read file on windows

Disassembly:
mov eax, 0x2014
call fcn.0041a850
mov ecx, dword [esp + 0x201c]
xor eax, eax
push ebx
mov ebx, dword [esp + 0x201c]
mov dword [ecx], eax
push ebp
push esi
xor esi, esi
mov dword [ecx + 4], eax
push edi
test ebx, ebx
mov dword [ecx + 8], eax
mov dword [ecx + 0xc], eax
mov dword [ecx + 0x10], eax
jl 0x4189ab
push 2
push eax
push ebx
call fcn.00421539
mov edi, eax
add esp, 0xc
cmp edi, 0xffffffff
mov dword [esp + 0x10], edi
je 0x418996
cmp edi, 0x14
jle 0x41896a
cmp edi, 0x2000
mov ebp, 0x2000
jg 0x418869
mov ebp, edi
mov ebx, edi
sub ebx, ebp
test ebx, ebx
jl 0x41895f
mov edx, dword [esp + 0x2028]
push 0
push ebx
push edx
call fcn.00421539
add esp, 0xc
test eax, eax
jl 0x418933
mov ecx, dword [esp + 0x2028]
lea eax, [esp + 0x24]
push ebp
push eax
push ecx
call fcn.0041bf96
add esp, 0xc
cmp ebp, eax
jne 0x418924
test esi, esi
lea edx, [ebp - 0x14]
jne 0x4188f1
lea eax, [esp + edx + 0x24]
test edx, edx
jl 0x4188f1
mov ecx, dword [0x42dbfc]
cmp ecx, dword [eax]
jne 0x4188eb
cmp dword [eax + 8], 0x1000000
jne 0x4188eb
cmp dword [eax + 4], 0x14
jne 0x4188eb
mov edi, dword [esp + 0x202c]
mov ecx, 5
mov esi, eax
rep movsd dword es:[edi], dword [esi]
mov edi, dword [esp + 0x10]
mov esi, 1
dec edx
dec eax
test esi, esi
je 0x4188b5
test ebx, ebx
jle 0x41891f
mov edx, 0x14
mov eax, 0
sub edx, ebp
add ebx, edx
sets al
dec eax
and ebx, eax
mov eax, edi
sub eax, ebx
cmp eax, 0x2000
jle 0x41891b
mov ebp, 0x2000
jmp 0x41894a
mov ebp, eax
jmp 0x41894a
or ebx, 0xffffffff
jmp 0x41894a
call fcn.0041c868
mov ecx, dword [eax]
push ecx
push str.ReadFooter:_no_read_footer
jmp 0x418940
call fcn.0041c868
mov edx, dword [eax]
push edx
push str.ReadFooter:_no_seek_to_footer
call fcn.00419330
add esp, 8
xor ebp, ebp
test esi, esi
je 0x41886d
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x2014
ret
test esi, esi
jne 0x4189ab
mov ebx, dword [esp + 0x2028]
mov eax, dword [esp + 0x2030]
test eax, eax
je 0x4189ab
mov eax, dword [esp + 0x202c]
lea ecx, [esp + 0x14]
push eax
push ecx
push ebx
call fcn.004189c0
add esp, 0xc
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x2014
ret
call fcn.0041c868
mov edx, dword [eax]
push edx
push str.ReadFooter:_no_get_eof
call fcn.00419330
add esp, 8
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x2014
ret
Function at 0x418c40
Capabilities:
Read file on windows

Disassembly:
sub esp, 0x14
push ebx
push esi
push edi
call fcn.00419350
mov esi, dword [esp + 0x28]
xor eax, eax
mov ecx, esi
mov edi, dword [esp + 0x24]
xor ebx, ebx
mov dword [ecx], eax
test edi, edi
mov dword [ecx + 4], eax
mov dword [ecx + 8], eax
mov dword [ecx + 0xc], eax
jl 0x418d72
mov edx, dword [esp + 0x2c]
lea eax, [esp + 0xc]
push edx
push eax
push edi
call fcn.00418800
add esp, 0xc
test eax, eax
je 0x418d5a
mov ecx, dword [esp + 0x1c]
push ebx
push ecx
push edi
call fcn.00421539
add esp, 0xc
test eax, eax
jl 0x418d3c
push 0x10
push esi
push edi
call fcn.0041bf96
add esp, 0xc
cmp eax, 0x10
jne 0x418d1e
mov eax, dword [esi]
mov ecx, dword [str.GXBHGXBFGXBCGExeBind_BindData:_target__tag_and_or_data_empty]
cmp ecx, eax
jne 0x418d07
mov eax, dword [esi + 8]
cmp eax, 0x1000000
jne 0x418cf0
mov esi, dword [esi + 4]
cmp esi, 0x10
jne 0x418cd9
pop edi
pop esi
mov eax, 1
pop ebx
add esp, 0x14
ret
push esi
push str.ReadHeader:_wrong_size
call fcn.00419330
add esp, 8
mov eax, ebx
pop edi
pop esi
pop ebx
add esp, 0x14
ret
push eax
push str.ReadHeader:_wrong_version
call fcn.00419330
add esp, 8
mov eax, ebx
pop edi
pop esi
pop ebx
add esp, 0x14
ret
push eax
push str.ReadHeader:_magic_header_unknown
call fcn.00419330
add esp, 8
mov eax, ebx
pop edi
pop esi
pop ebx
add esp, 0x14
ret
call fcn.0041c868
mov edx, dword [eax]
push edx
push str.ReadHeader:_no_read_header
call fcn.00419330
add esp, 8
mov eax, ebx
pop edi
pop esi
pop ebx
add esp, 0x14
ret
call fcn.0041c868
mov eax, dword [eax]
push eax
push str.ReadHeader:_no_seek_to_header
call fcn.00419330
add esp, 8
mov eax, ebx
pop edi
pop esi
pop ebx
add esp, 0x14
ret
push 0xffffffffffffffff
push str.ReadHeader:_no_read_footer
call fcn.00419330
add esp, 8
mov eax, ebx
pop edi
pop esi
pop ebx
add esp, 0x14
ret
push 0xffffffffffffffff
push str.ReadHeader:_no_file_given
call fcn.00419330
add esp, 8
mov eax, ebx
pop edi
pop esi
pop ebx
add esp, 0x14
ret
Function at 0x418d90
Capabilities:
Read file on windows

Disassembly:
push ebx
push ebp
push esi
push edi
call fcn.00419350
mov esi, dword [esp + 0x18]
mov ebp, dword [esp + 0x1c]
mov ecx, 0x11
xor eax, eax
mov edi, esi
xor ebx, ebx
rep stosd dword es:[edi], eax
mov eax, dword [ebp]
mov edi, dword [esp + 0x14]
test eax, eax
jne 0x418dc3
push ebp
push edi
call fcn.00418e80
add esp, 8
cmp dword [ebp], 0
je 0x418e69
push 0x44
push esi
push edi
call fcn.0041bf96
add esp, 0xc
cmp eax, 0x44
jne 0x418e4d
mov eax, dword [esi]
mov ecx, dword [0x42dc00]
cmp eax, ecx
jne 0x418e38
mov eax, dword [esi + 0x34]
mov ebx, 1
test eax, eax
je 0x418e21
mov ecx, dword [esi + 0x38]
push 0
add ecx, eax
push ecx
push edi
call fcn.00421539
add esp, 0xc
cmp eax, 0xffffffff
jne 0x418e21
call fcn.0041c868
mov edx, dword [eax]
push edx
push str.ReadComponent:_no_seek_past_component
call fcn.00419330
add esp, 8
push 1
push 0
push edi
call fcn.00421539
add esp, 0xc
mov dword [ebp], eax
mov eax, ebx
pop edi
pop esi
pop ebp
pop ebx
ret
push eax
push str.ReadComponent:_magic_header_unknown
call fcn.00419330
add esp, 8
mov eax, ebx
pop edi
pop esi
pop ebp
pop ebx
ret
call fcn.0041c868
mov eax, dword [eax]
push eax
push str.ReadComponent:_no_read
call fcn.00419330
add esp, 8
mov eax, ebx
pop edi
pop esi
pop ebp
pop ebx
ret
push 0xffffffffffffffff
push str.ReadComponent:_no_read_position
call fcn.00419330
add esp, 8
mov eax, ebx
pop edi
pop esi
pop ebp
pop ebx
ret
Function at 0x4190c0
Capabilities:
Read file on windows

Disassembly:
sub esp, 0x44
push ebx
push ebp
push esi
push edi
xor ebp, ebp
call fcn.00419350
mov ebx, dword [esp + 0x64]
mov eax, dword [esp + 0x68]
mov esi, dword [esp + 0x58]
mov dword [ebx], ebp
mov dword [eax], ebp
test esi, esi
jl 0x4191e8
mov eax, dword [esp + 0x5c]
test eax, eax
je 0x4191e8
cmp byte [eax], 0
je 0x4191e8
mov ecx, dword [esp + 0x60]
lea edx, [esp + 0x10]
push ecx
push eax
push edx
push esi
call fcn.00418ef0
add esp, 0x10
test eax, eax
je 0x4191f7
mov eax, dword [esp + 0x44]
test eax, eax
je 0x4191f7
push eax
call fcn.0041a915
mov edi, eax
add esp, 4
test edi, edi
mov dword [ebx], edi
je 0x4191ca
mov ecx, dword [esp + 0x44]
xor eax, eax
mov edx, ecx
push ebp
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, edx
and ecx, 3
rep stosb byte es:[edi], al
mov eax, dword [esp + 0x4c]
push eax
push esi
call fcn.00421539
add esp, 0xc
cmp eax, 0xffffffff
je 0x4191ab
mov ecx, dword [esp + 0x44]
mov edx, dword [ebx]
push ecx
push edx
push esi
call fcn.0041bf96
mov ecx, dword [esp + 0x50]
add esp, 0xc
cmp ecx, eax
jne 0x41918c
mov eax, dword [esp + 0x68]
pop edi
pop esi
pop ebp
mov dword [eax], ecx
mov eax, 1
pop ebx
add esp, 0x44
ret
call fcn.0041c868
mov ecx, dword [eax]
push ecx
push str.GExeBind_GetData:_no_read_data
call fcn.00419330
add esp, 8
mov eax, ebp
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x44
ret
call fcn.0041c868
mov edx, dword [eax]
push edx
push str.GExeBind_GetData:_no_seek_data
call fcn.00419330
add esp, 8
mov eax, ebp
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x44
ret
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.GExeBind_GetData:_no_alloc
call fcn.00419330
add esp, 8
mov eax, ebp
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x44
ret
push 0xffffffffffffffff
push str.GExeBind_GetData:_target_and_or_tag_empty
call fcn.00419330
add esp, 8
pop edi
mov eax, ebp
pop esi
pop ebp
pop ebx
add esp, 0x44
ret