joyce8/EMBER2024-capa huggingface dataset:
Function at 0x401fde
Capabilities:
Encrypt data using aes
Reference aes constants

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
mov esi, ecx
shr edi, 2
xor ebx, ebx
mov eax, edi
mov dword [ebp - 4], 1
shr eax, 1
mov ecx, ebx
add eax, 3
mov dword [esi], eax
add esi, 0x10
test edi, edi
je 0x402015
mov eax, dword [edx]
lea edx, [edx + 4]
mov dword [esi + ecx*4], eax
inc ecx
cmp ecx, edi
jb 0x402008
mov edx, dword [esi + edi*4 - 4]
imul eax, edi, 0xc
add eax, 0x70
add eax, esi
mov dword [ebp + 8], eax
test ebx, ebx
jne 0x402083
movzx eax, dl
mov ebx, dword [ebp - 4]
push 0x1b
movzx ecx, byte [eax + str.cw]
mov eax, edx
shr eax, 0x18
shl ecx, 8
movzx eax, byte [eax + str.cw]
or ecx, eax
mov eax, edx
shr eax, 0x10
movzx eax, al
shr edx, 8
shl ecx, 8
movzx eax, byte [eax + str.cw]
or ecx, eax
movzx eax, dl
shl ecx, 8
movzx edx, byte [eax + str.cw]
xor edx, ebx
add ebx, ebx
or edx, ecx
test ebx, 0x100
pop eax
cmovne ebx, eax
mov dword [ebp - 4], ebx
mov ebx, edi
jmp 0x4020d0
cmp ebx, 4
jne 0x4020d3
cmp edi, 6
jbe 0x4020d3
mov eax, edx
shr eax, 0x10
movzx eax, al
movzx ecx, byte [eax + str.cw]
mov eax, edx
shr eax, 0x18
movzx eax, byte [eax + str.cw]
shl eax, 8
or ecx, eax
mov eax, edx
shr eax, 8
movzx eax, al
shl ecx, 8
movzx eax, byte [eax + str.cw]
or ecx, eax
movzx eax, dl
shl ecx, 8
movzx edx, byte [eax + str.cw]
or edx, ecx
mov eax, dword [ebp + 8]
xor edx, dword [esi]
dec ebx
mov dword [esi + edi*4], edx
add esi, 4
cmp esi, eax
jne 0x402024
pop edi
pop esi
pop ebx
leave
ret 4

Function at 0x402db5
Capabilities:
Check os version
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2d4
mov eax, dword [0x455094]
xor eax, ebp
mov dword [ebp - 4], eax
call dword [sym.imp.KERNEL32.dll_GetVersion]
cmp ax, 6
je 0x402dfe
push str.SetDefaultDllDirectories
push str.kernel32.dll
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x402dfe
push 0xc00
call eax
test eax, eax
jne 0x402e9a
push 0x106
lea eax, [ebp - 0x2d4]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
test eax, eax
je 0x402e9a
cmp eax, 0x104
ja 0x402e9a
push 0x5c
pop ecx
cmp word [ebp + eax*2 - 0x2d6], cx
je 0x402e35
mov word [ebp + eax*2 - 0x2d4], cx
inc eax
mov cl, byte [str.userenv]
push esi
mov esi, str.userenv
test cl, cl
je 0x402e99
push ebx
push edi
lea edi, [ebp - 0x2d4]
push 0x6c
lea edi, [edi + eax*2]
pop ebx
mov edx, edi
inc esi
movzx eax, cl
mov cl, byte [esi]
inc esi
mov word [edx], ax
lea edx, [edx + 2]
test cl, cl
jne 0x402e56
push 0x2e
pop eax
push 0x64
mov word [edx], ax
pop eax
mov word [edx + 2], ax
xor eax, eax
push 8
push eax
mov word [edx + 8], ax
lea eax, [ebp - 0x2d4]
push eax
mov word [edx + 4], bx
mov word [edx + 6], bx
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov cl, byte [esi]
test cl, cl
jne 0x402e53
pop edi
pop ebx
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00436e41
leave
ret
Function at 0x40650e
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
xor edx, edx
xor eax, eax
push ebx
push esi
mov esi, dword [ebp + 8]
inc eax
push edi
push 0x20
pop ecx
or dword [esi + 0x90], 0xffffffff
or dword [esi + 0x94], 0xffffffff
mov dword [esi + 0x30], eax
mov dword [esi + 0x44], eax
mov eax, dword [esi + 4]
cmp eax, ecx
mov dword [esi + 0x78], edx
cmova eax, ecx
mov dword [esi + 0x7c], edx
mov dword [esi + 0x54], eax
mov eax, dword [esi]
mov dword [esi + 0x34], edx
mov dword [esi + 0x38], edx
mov dword [esi + 0x3c], edx
mov dword [esi + 0x40], edx
mov dword [esi + 0x70], edx
mov dword [esi + 0x88], edx
mov dword [esi + 0x68], edx
mov dword [esi + 0x6c], edx
mov dword [esi + 0x48], edx
mov dword [esi + 0x4c], edx
mov dword [esi + 0x50], edx
mov dword [esi + 0x60], edx
mov dword [esi + 0x64], edx
mov dword [esi + 0x80], edx
mov dword [esi + 0x84], edx
mov dword [esi + 0x58], edx
cmp eax, dword [esi + 0x20]
je 0x4065b8
lea edi, [esi + 0xc8]
mov ebx, ecx
cmp dword [edi + 8], edx
je 0x406599
push edi
call fcn.004064e3
xor edx, edx
add edi, 0x28
sub ebx, 1
jne 0x40658c
cmp dword [esi + 0x5c], ebx
je 0x4065b3
mov eax, dword [esi + 0x14]
push dword [esi + 0x5c]
push eax
call dword [eax + 4]
and dword [esi + 0x5c], ebx
mov eax, dword [esi]
mov dword [esi + 0x20], eax
push dword [esi + 0x10]
lea eax, [esi + 0x98]
push eax
call fcn.0040736d
mov ecx, dword [esi + 0x58]
and dword [esi + 0x24], 0
and dword [esi + 0x28], 0
lea eax, [ecx + 5]
imul ebx, eax, 0x28
lea eax, [ecx + 1]
mov dword [esi + 0x58], eax
add ebx, esi
push ebx
call fcn.004064bd
mov edi, eax
test edi, edi
jne 0x406634
lea eax, [ebx + 0x20]
push eax
call fcn.00407a90
mov edi, eax
test edi, edi
jne 0x406634
lea eax, [ebx + 0x1c]
push eax
call fcn.00407a90
mov edi, eax
test edi, edi
jne 0x406634
push ebx
call fcn.004072e4
mov edi, eax
test edi, edi
je 0x406634
and dword [esi + 0x44], 0
lea ebx, [esi + 0xc8]
push 0x20
pop esi
push ebx
call fcn.0040643f
add ebx, 0x28
sub esi, 1
jne 0x406623
mov esi, dword [ebp + 8]
movzx eax, di
or eax, 0x80070000
test edi, edi
cmovle eax, edi
test eax, eax
je 0x406648
mov dword [esi + 0x40], eax
xor edx, edx
cmp dword [esi + 0x38], edx
jne 0x40665c
cmp dword [esi + 0x40], edx
jne 0x40665c
cmp dword [esi + 0x3c], edx
jne 0x40665c
mov dword [esi + 0x44], edx
xor ecx, ecx
cmp dword [esi + 0x44], edx
pop edi
pop esi
cmovne eax, ecx
pop ebx
pop ebp
ret 4

Function at 0x4078cb
Capabilities:
Hash data using sha256

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
and dword [eax + 8], 0
and dword [eax + 0xc], 0
mov dword [eax + 0x20], 0x6a09e667
mov dword [eax + 0x24], 0xbb67ae85
mov dword [eax + 0x28], 0x3c6ef372
mov dword [eax + 0x2c], 0xa54ff53a
mov dword [eax + 0x30], 0x510e527f
mov dword [eax + 0x34], 0x9b05688c
mov dword [eax + 0x38], 0x1f83d9ab
mov dword [eax + 0x3c], 0x5be0cd19
pop ebp
ret 4
Function at 0x407b9d
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
lea eax, [ebp - 4]
xor esi, esi
push eax
push esi
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push esi
push esi
call fcn.0043bf17
mov ecx, dword [ebp + 8]
add esp, 0x18
mov dword [ecx], eax
test eax, eax
jne 0x407bc9
call fcn.00407aaf
mov esi, eax
mov eax, esi
pop esi
leave
ret 0xc

Function at 0x409dd6
Capabilities:
Create directory

Disassembly:
push 0x44
mov eax, 0x4458a0
call fcn.0043710a
cmp byte [0x45ba10], 0
mov edi, dword [ebp + 8]
jne 0x409e12
push edi
lea eax, [ebp - 0x18]
push eax
call fcn.00408d21
xor ebx, ebx
push ebx
push dword [eax]
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
push dword [ebp - 0x18]
mov esi, eax
call fcn.004370c5
pop ecx
test esi, esi
jmp 0x409e1e
xor ebx, ebx
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
je 0x409e24
mov al, 1
jmp 0x409e6a
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
je 0x409e35
xor al, al
jmp 0x409e6a
lea ecx, [ebp - 0x50]
call fcn.0040a658
lea ecx, [ebp - 0x28]
call fcn.00408099
push ebx
push edi
lea ecx, [ebp - 0x50]
mov dword [ebp - 4], ebx
call fcn.0040a872
test al, al
je 0x409e5f
mov ebx, dword [ebp - 0x30]
shr ebx, 4
and bl, 1
push dword [ebp - 0x28]
call fcn.004370c5
pop ecx
mov al, bl
call fcn.004370d8
ret 4

Function at 0x409e72
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
cmp byte [0x45ba10], 0
jne 0x409ea8
push esi
push dword [ebp + 8]
lea eax, [ebp - 0xc]
push eax
call fcn.00408d21
push 0
push dword [eax]
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
push dword [ebp - 0xc]
mov esi, eax
call fcn.004370c5
pop ecx
test esi, esi
pop esi
jmp 0x409eb5
push 0
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
je 0x409ebb
mov al, 1
jmp 0x409ebd
xor al, al
leave
ret 4

Function at 0x40a035
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push esi
mov esi, dword [ebp + 8]
push esi
call fcn.0040aea4
cmp eax, 0xffffffff
je 0x40a062
mov ecx, eax
and cl, 0x11
cmp cl, 1
jne 0x40a062
and eax, 0xfffffffe
push eax
push esi
call fcn.0040a5ca
test al, al
je 0x40a09a
cmp byte [0x45ba10], 0
push esi
jne 0x40a08c
lea eax, [ebp - 0xc]
push eax
call fcn.00408d21
push dword [eax]
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
push dword [ebp - 0xc]
mov esi, eax
call fcn.004370c5
pop ecx
test esi, esi
jmp 0x40a094
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
je 0x40a09a
mov al, 1
jmp 0x40a09c
xor al, al
pop esi
leave
ret 4

Function at 0x40a315
Capabilities:
Delete directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
cmp byte [0x45ba10], 0
jne 0x40a349
push esi
push dword [ebp + 8]
lea eax, [ebp - 0xc]
push eax
call fcn.00408d21
push dword [eax]
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryA]
push dword [ebp - 0xc]
mov esi, eax
call fcn.004370c5
pop ecx
test esi, esi
pop esi
jmp 0x40a354
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
test eax, eax
je 0x40a35a
mov al, 1
jmp 0x40a35c
xor al, al
leave
ret 4
Function at 0x40a524
Capabilities:
Set current directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
cmp byte [0x45ba10], 0
jne 0x40a558
push esi
push dword [ebp + 8]
lea eax, [ebp - 0xc]
push eax
call fcn.00408d21
push dword [eax]
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryA]
push dword [ebp - 0xc]
mov esi, eax
call fcn.004370c5
pop ecx
test esi, esi
pop esi
jmp 0x40a563
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryW]
test eax, eax
setne al
leave
ret 4

Function at 0x40a5ca
Capabilities:
Set file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
cmp byte [0x45ba10], 0
jne 0x40a601
push esi
push dword [ebp + 8]
lea eax, [ebp - 0xc]
push eax
call fcn.00408d21
push dword [ebp + 0xc]
push dword [eax]
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
push dword [ebp - 0xc]
mov esi, eax
call fcn.004370c5
pop ecx
test esi, esi
pop esi
jmp 0x40a60f
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
test eax, eax
je 0x40a615
mov al, 1
jmp 0x40a617
xor al, al
leave
ret 8

Function at 0x40aea4
Capabilities:
Get file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
cmp byte [0x45ba10], 0
jne 0x40aed8
push esi
push dword [ebp + 8]
lea eax, [ebp - 0xc]
push eax
call fcn.00408d21
push dword [eax]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
push dword [ebp - 0xc]
mov esi, eax
call fcn.004370c5
pop ecx
mov eax, esi
pop esi
jmp 0x40aeeb
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
or ecx, 0xffffffff
cmp eax, ecx
cmovne ecx, eax
mov eax, ecx
leave
ret 4

Function at 0x40b0cc
Capabilities:
Get file size

Disassembly:
push ebp
mov ebp, esp
push ecx
and dword [ebp - 4], 0
lea eax, [ebp - 4]
push esi
push eax
push dword [ecx]
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov esi, eax
cmp esi, 0xffffffff
jne 0x40b0f6
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
je 0x40b0f6
xor al, al
jmp 0x40b10a
mov eax, dword [ebp + 8]
xor ecx, ecx
mov edx, dword [ebp - 4]
add ecx, esi
adc edx, 0
mov dword [eax], ecx
mov dword [eax + 4], edx
mov al, 1
pop esi
leave
ret 4
Function at 0x418a6f
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4466c4
mov eax, dword fs:[0]
push eax
push esi
mov eax, dword [0x455094]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
lea ecx, [esi + 0xa8]
call fcn.00418b21
lea ecx, [esi + 0x78]
call fcn.00418b21
push dword [esi + 0x30]
call fcn.004370c5
push dword [esi + 0x24]
call fcn.004370c5
push dword [esi + 0x18]
call fcn.004370c5
add esp, 0xc
and dword [ebp - 4], 0
mov ecx, dword [esi + 0xc]
test ecx, ecx
je 0x418ad3
mov eax, dword [ecx]
push ecx
call dword [eax + 8]
mov ecx, dword [esi + 8]
mov dword [ebp - 4], 1
test ecx, ecx
je 0x418ae7
mov eax, dword [ecx]
push ecx
call dword [eax + 8]
mov ecx, dword [esi + 4]
mov dword [ebp - 4], 2
test ecx, ecx
je 0x418afb
mov eax, dword [ecx]
push ecx
call dword [eax + 8]
mov ecx, dword [esi]
mov dword [ebp - 4], 3
test ecx, ecx
je 0x418b0e
mov eax, dword [ecx]
push ecx
call dword [eax + 8]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
leave
ret
Function at 0x41b3b1
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x44600e
mov eax, dword fs:[0]
push eax
push esi
mov eax, dword [0x455094]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
call fcn.0041a4d7
lea ecx, [esi + 0x30]
call fcn.00418b21
push dword [esi + 0x24]
call fcn.004370c5
pop ecx
lea ecx, [esi + 0xc]
call fcn.00407bf2
mov ecx, esi
call fcn.0041b377
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
leave
ret

Function at 0x41ba5a
Capabilities:
Hide graphical window

Disassembly:
push 0xc
mov eax, 0x4455ce
call fcn.0043710a
mov esi, ecx
push 0
push dword [ebp + 0xc]
lea ecx, [esi + 0x68]
push dword [ebp + 8]
call fcn.0041b5b3
push 0xce4
lea eax, [ebp - 0x18]
push eax
call fcn.0040bdf3
push dword [ebp - 0x18]
and dword [ebp - 4], 0
push dword [esi + 0x6c]
call fcn.0040c10e
push dword [ebp - 0x18]
call fcn.004370c5
pop ecx
push 1
push dword [esi + 0x6c]
call dword [sym.imp.USER32.dll_ShowWindow]
xor eax, eax
call fcn.004370d8
ret 8
Function at 0x43608b
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x210
mov eax, dword [0x455094]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 8]
lea eax, [ebp - 0x20c]
push esi
push edi
mov edi, dword [ebp + 0xc]
xor esi, esi
push 0x208
push esi
push eax
call fcn.00438660
add esp, 0xc
lea eax, [ebp - 0x20c]
push 0x104
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
push esi
push 0x80
push 3
push esi
push 1
push SysReAllocStringLen
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
je 0x436127
push edi
push esi
call fcn.004362ac
push dword [edi]
and dword [ebp - 0x210], 0
call fcn.004370bc
pop ecx
push 0
lea ecx, [ebp - 0x210]
mov dword [ebx], eax
push ecx
push dword [edi]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_ReadFile]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00436e41
leave
ret 8

Function at 0x4362ac
Capabilities:
Get file size

Disassembly:
push ebp
mov ebp, esp
push ecx
and dword [ebp - 4], 0
lea eax, [ebp - 4]
push esi
push eax
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov esi, eax
cmp esi, 0xffffffff
jne 0x4362d7
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
je 0x4362d7
xor al, al
jmp 0x4362eb
mov eax, dword [ebp + 0xc]
xor ecx, ecx
mov edx, dword [ebp - 4]
add ecx, esi
adc edx, 0
mov dword [eax], ecx
mov dword [eax + 4], edx
mov al, 1
pop esi
leave
ret 8
Function at 0x43c79e
Capabilities:
Parse pe header

Disassembly:
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x43c7dd
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x43c7dd
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x43c7dd
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x43c7dd
cmp dword [ecx + 0x74], 0xe
jbe 0x43c7dd
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret
Function at 0x440555
Capabilities:
Query environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov esi, eax
test esi, esi
je 0x4405f2
push ebx
push esi
call fcn.0044051e
xor ebx, ebx
sub eax, esi
push ebx
push ebx
push ebx
push ebx
sar eax, 1
push eax
push esi
push ebx
push ebx
mov dword [ebp - 8], eax
call fcn.0043ec1d
add esp, 0x24
mov dword [ebp - 4], eax
test eax, eax
jne 0x44059f
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x4405f1
push edi
push eax
call fcn.0043e810
mov edi, eax
pop ecx
push ebx
test edi, edi
jne 0x4405bf
call fcn.0043e7c0
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x4405f0
push ebx
push dword [ebp - 4]
push edi
push dword [ebp - 8]
push esi
push ebx
push ebx
call fcn.0043ec1d
add esp, 0x20
test eax, eax
jne 0x4405de
push edi
call fcn.0043e7c0
jmp 0x4405e6
push ebx
call fcn.0043e7c0
mov ebx, edi
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, ebx
pop edi
pop ebx
pop esi
leave
ret
Function at 0x401040
Capabilities:
Read file on windows

Disassembly:
sub esp, 0xc
push ebp
push esi
mov esi, dword [esp + 0x18]
xor ebp, ebp
push edi
push 0x429570
push esi
mov dword [esp + 0x1c], 0xffffffff
call fcn.00403750
mov edi, eax
add esp, 8
mov dword [esp + 0x10], edi
test edi, edi
jne 0x401095
mov eax, dword [esp + 0x20]
add eax, 0x12
push eax
push str.Failed_to_extract__s:_failed_to_open_archive_file__n
call fcn.00401d90
add esp, 8
push ebp
call fcn.00413dc9
mov eax, dword [esp + 0x18]
add esp, 4
pop edi
pop esi
pop ebp
add esp, 0xc
ret
push ebx
mov ebx, dword [esp + 0x24]
xor eax, eax
push 0
mov ecx, dword [ebx + 4]
add ecx, dword [esi + 0x1000]
adc eax, dword [esi + 0x1004]
push eax
push ecx
push edi
call fcn.0040ec01
add esp, 0x10
test eax, eax
jns 0x4010e0
call fcn.00413dab
mov ecx, eax
lea eax, [ebx + 0x12]
push eax
push str.Failed_to_extract__s:_failed_to_seek_to_the_entrys_data__n
push dword [ecx]
push str.fseek
call fcn.00401ee0
add esp, 0x10
jmp 0x4011c2
push dword [ebx + 0xc]
call fcn.00413de4
mov ebp, eax
add esp, 4
test ebp, ebp
jne 0x401119
mov esi, dword [ebx + 0xc]
call fcn.00413dab
mov ecx, eax
lea eax, [ebx + 0x12]
push esi
push eax
push str.Failed_to_extract__s:_failed_to_allocate_data_buffer___u_bytes___n
push dword [ecx]
push str.malloc
call fcn.00401ee0
add esp, 0x14
jmp 0x4011c2
cmp byte [ebx + 0x10], 1
jne 0x401131
push ebp
push 0
push ebx
push edi
call fcn.00401200
add esp, 0x10
jmp 0x4011b3
mov esi, dword [ebx + 0xc]
xor ebx, ebx
mov dword [esp + 0x10], eax
test esi, esi
je 0x401185
nop
test ebx, ebx
jb 0x401155
ja 0x40114e
cmp esi, 0x2000
jbe 0x401155
mov edi, 0x2000
jmp 0x401157
mov edi, esi
push dword [esp + 0x14]
push 1
push edi
push eax
call fcn.0040e7dd
add esp, 0x10
cmp eax, 1
jb 0x401189
mov eax, dword [esp + 0x10]
sub esi, edi
sbb ebx, 0
add eax, edi
mov dword [esp + 0x10], eax
test ebx, ebx
ja 0x40114e
jb 0x401185
test esi, esi
jne 0x401140
xor eax, eax
jmp 0x4011af
call fcn.00413dab
mov ecx, eax
mov eax, dword [esp + 0x24]
add eax, 0x12
push eax
push str.Failed_to_extract__s:_failed_to_read_data_chunk__n
push dword [ecx]
push str.fread
call fcn.00401ee0
add esp, 0x10
or eax, 0xffffffff
mov edi, dword [esp + 0x14]
test eax, eax
je 0x4011c2
push ebp
call fcn.00413dc9
add esp, 4
xor ebp, ebp
push edi
call fcn.0040e57c
add esp, 4
pop ebx
test ebp, ebp
je 0x4011e1
push dword [esp + 0x24]
push ebp
call fcn.00403860
add esp, 8
mov dword [esp + 0x14], eax
push ebp
call fcn.00413dc9
mov eax, dword [esp + 0x18]
add esp, 4
pop edi
pop esi
pop ebp
add esp, 0xc
ret
Function at 0x401200
Capabilities:
Read file on windows

Disassembly:
sub esp, 0x48
push ebx
push esi
xor ebx, ebx
lea eax, [esp + 0x18]
push 0x38
push str.1.3.1
push eax
mov dword [esp + 0x44], ebx
mov dword [esp + 0x48], ebx
mov dword [esp + 0x4c], ebx
mov dword [esp + 0x28], ebx
mov dword [esp + 0x24], ebx
call fcn.0040a6f0
mov esi, eax
add esp, 0xc
test esi, esi
je 0x401254
mov eax, dword [esp + 0x58]
push esi
add eax, 0x12
push eax
push str.Failed_to_extract__s:_inflateInit___failed_with_return_code__d__n
call fcn.00401d90
add esp, 0xc
or eax, 0xffffffff
pop esi
pop ebx
add esp, 0x48
ret
push 0x2000
call fcn.00413de4
add esp, 4
mov dword [esp + 0x10], eax
test eax, eax
jne 0x401291
call fcn.00413dab
mov ecx, eax
mov eax, dword [esp + 0x58]
add eax, 0x12
push eax
push str.Failed_to_extract__s:_failed_to_allocate_temporary_input_buffer__n
push dword [ecx]
push str.malloc
call fcn.00401ee0
add esp, 0x10
jmp 0x4013be
push 0x2000
call fcn.00413de4
mov ebx, eax
add esp, 4
test ebx, ebx
jne 0x4012ca
call fcn.00413dab
mov ecx, dword [esp + 0x58]
add ecx, 0x12
push ecx
push str.Failed_to_extract__s:_failed_to_allocate_temporary_output_buffer__n
push dword [eax]
push str.malloc
call fcn.00401ee0
add esp, 0x10
jmp 0x4013be
mov eax, dword [esp + 0x58]
xor ecx, ecx
push ebp
mov ebp, dword [esp + 0x60]
push edi
mov eax, dword [eax + 8]
mov edi, dword [esp + 0x68]
mov dword [esp + 0x10], eax
mov dword [esp + 0x14], ecx
test ecx, ecx
jb 0x4012f9
ja 0x4012f2
cmp eax, 0x2000
jbe 0x4012f9
mov esi, 0x2000
jmp 0x4012fb
mov esi, eax
push dword [esp + 0x5c]
push esi
push 1
push dword [esp + 0x24]
call fcn.0040e7dd
add esp, 0x10
cmp eax, esi
jne 0x4013b9
push dword [esp + 0x5c]
call fcn.0040e5d8
add esp, 4
test eax, eax
jne 0x4013b9
sub dword [esp + 0x10], esi
mov dword [esp + 0x24], esi
sbb dword [esp + 0x14], eax
mov eax, dword [esp + 0x18]
mov dword [esp + 0x20], eax
nop
lea eax, [esp + 0x20]
mov dword [esp + 0x30], 0x2000
push 0
push eax
mov dword [esp + 0x34], ebx
call fcn.00408c10
add esp, 8
mov dword [esp + 0x1c], eax
lea ecx, [eax + 4]
cmp ecx, 6
ja case.0x40136e.1
movzx ecx, byte [ecx + 0x401444]
jmp dword [ecx*4 + 0x401438]
mov esi, 0x2000
sub esi, dword [esp + 0x30]
test ebp, ebp
je 0x4013e2
push ebp
push esi
push 1
push ebx
call fcn.0040ef00
add esp, 0x10
cmp eax, esi
jne 0x4013a0
push ebp
call fcn.0040e5d8
add esp, 4
test eax, eax
je 0x4013f3
or eax, 0xffffffff
push eax
mov eax, dword [esp + 0x64]
add eax, 0x12
push eax
push str.Failed_to_extract__s:_decompression_resulted_in_return_code__d__n
call fcn.00401d90
add esp, 0xc
or esi, 0xffffffff
pop edi
pop ebp
lea eax, [esp + 0x18]
push eax
call fcn.0040a4e0
push dword [esp + 0x14]
call fcn.00413dc9
push ebx
call fcn.00413dc9
add esp, 0xc
mov eax, esi
pop esi
pop ebx
add esp, 0x48
ret
test edi, edi
je 0x4013f7
push esi
push ebx
push edi
call fcn.0040bce0
add esp, 0xc
add edi, esi
mov eax, dword [esp + 0x1c]
cmp dword [esp + 0x30], 0
je 0x401340
cmp eax, 1
je 0x401431
mov ecx, dword [esp + 0x14]
test ecx, ecx
jne 0x401415
cmp dword [esp + 0x10], ecx
jbe 0x4013a3
mov eax, dword [esp + 0x10]
jmp 0x4012e5
mov eax, 0xfffffffd
jmp 0x4013a3
cmp eax, 1
jne 0x4013a3
xor esi, esi
jmp 0x4013bc
Function at 0x401450
Capabilities:
Read file on windows

Disassembly:
sub esp, 8
push ebx
push ebp
push esi
mov esi, dword [esp + 0x18]
xor ebp, ebp
push 0x429570
push esi
call fcn.00403750
mov ebx, eax
add esp, 8
mov dword [esp + 0xc], ebx
test ebx, ebx
jne 0x401492
mov eax, dword [esp + 0x1c]
add eax, 0x12
push eax
push str.Failed_to_extract__s:_failed_to_open_archive_file__n
call fcn.00401d90
add esp, 8
xor eax, eax
pop esi
pop ebp
pop ebx
add esp, 8
ret
push edi
mov edi, dword [esp + 0x20]
xor eax, eax
push 0
mov ecx, dword [edi + 4]
add ecx, dword [esi + 0x1000]
adc eax, dword [esi + 0x1004]
push eax
push ecx
push ebx
call fcn.0040ec01
add esp, 0x10
test eax, eax
jns 0x4014eb
call fcn.00413dab
mov ecx, eax
lea eax, [edi + 0x12]
push eax
push str.Failed_to_extract__s:_failed_to_seek_to_the_entrys_data__n
push dword [ecx]
push str.fseek
call fcn.00401ee0
add esp, 0x10
push ebx
call fcn.0040e57c
add esp, 4
mov eax, ebp
pop edi
pop esi
pop ebp
pop ebx
add esp, 8
ret
push dword [edi + 0xc]
call fcn.00413de4
mov ebp, eax
add esp, 4
mov dword [esp + 0x14], ebp
test ebp, ebp
jne 0x401534
mov esi, dword [edi + 0xc]
call fcn.00413dab
push esi
lea ecx, [edi + 0x12]
push ecx
push str.Failed_to_extract__s:_failed_to_allocate_data_buffer___u_bytes___n
push dword [eax]
push str.malloc
call fcn.00401ee0
add esp, 0x14
push ebx
call fcn.0040e57c
add esp, 4
mov eax, ebp
pop edi
pop esi
pop ebp
pop ebx
add esp, 8
ret
cmp byte [edi + 0x10], 1
jne 0x401549
push ebp
push 0
push edi
push ebx
call fcn.00401200
add esp, 0x10
jmp 0x4015bf
mov esi, dword [edi + 0xc]
xor ebx, ebx
test esi, esi
je 0x40158f
test ebx, ebx
jb 0x401567
ja 0x401560
cmp esi, 0x2000
jbe 0x401567
mov edi, 0x2000
jmp 0x401569
mov edi, esi
push dword [esp + 0x10]
push 1
push edi
push ebp
call fcn.0040e7dd
add esp, 0x10
cmp eax, 1
jb 0x401593
sub esi, edi
sbb ebx, 0
add ebp, edi
test ebx, ebx
ja 0x401560
jb 0x40158f
test esi, esi
jne 0x401552
xor eax, eax
jmp 0x4015b7
call fcn.00413dab
mov ecx, dword [esp + 0x20]
add ecx, 0x12
push ecx
push str.Failed_to_extract__s:_failed_to_read_data_chunk__n
push dword [eax]
push str.fread
call fcn.00401ee0
add esp, 0x10
or eax, 0xffffffff
mov ebx, dword [esp + 0x10]
mov ebp, dword [esp + 0x14]
test eax, eax
je 0x4015ce
push ebp
call fcn.00413dc9
add esp, 4
xor ebp, ebp
push ebx
call fcn.0040e57c
add esp, 4
mov eax, ebp
pop edi
pop esi
pop ebp
pop ebx
add esp, 8
ret