joyce8/EMBER2024-capa huggingface dataset:
Function at 0x100544f0
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10064289
mov eax, dword fs:[0]
push eax
sub esp, 8
push ebx
push esi
push edi
mov eax, dword [0x10076040]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov dword [ebp - 0x10], edi
mov ebx, dword [ebp + 8]
push 0x24
mov dword [ebp - 0x14], edi
mov eax, dword [ebx]
mov dword [edi], eax
mov dword [edi + 4], 0
mov dword [edi + 8], 0
call fcn.10060688
add esp, 4
mov dword [eax], eax
mov dword [eax + 4], eax
mov dword [edi + 4], eax
mov dword [ebp - 4], 0
mov dword [edi + 0xc], 0
mov dword [edi + 0x10], 0
mov dword [edi + 0x14], 0
push eax
push ecx
lea ecx, [edi + 0xc]
mov byte [ebp - 4], 1
call fcn.10053130
mov ecx, dword [edi + 4]
mov eax, dword [ebx + 4]
mov dword [edi + 4], eax
mov eax, dword [ebx + 8]
mov dword [ebx + 4], ecx
mov ecx, dword [edi + 8]
mov dword [edi + 8], eax
mov eax, dword [ebx + 0xc]
mov dword [ebx + 8], ecx
mov ecx, dword [edi + 0xc]
mov dword [edi + 0xc], eax
mov eax, dword [ebx + 0x10]
mov dword [ebx + 0xc], ecx
mov ecx, dword [edi + 0x10]
mov dword [edi + 0x10], eax
mov eax, dword [ebx + 0x14]
mov dword [ebx + 0x10], ecx
mov ecx, dword [edi + 0x14]
mov dword [edi + 0x14], eax
mov eax, dword [ebx + 0x18]
mov dword [ebx + 0x14], ecx
mov dword [ebx + 0x18], 7
mov dword [edi + 0x18], eax
mov eax, dword [ebx + 0x1c]
mov dword [ebx + 0x1c], 8
mov dword [edi + 0x1c], eax
add edi, 0x20
mov dword [ebp - 4], 2
mov eax, dword [ebx + 0x20]
push 0x30
mov dword [ebp + 8], edi
mov dword [edi], eax
mov dword [edi + 4], 0
mov dword [edi + 8], 0
call fcn.10060688
add esp, 4
mov dword [eax], eax
mov dword [eax + 4], eax
mov dword [edi + 4], eax
mov dword [edi + 0xc], 0
mov dword [edi + 0x10], 0
mov dword [edi + 0x14], 0
push eax
push ecx
lea ecx, [edi + 0xc]
mov byte [ebp - 4], 4
call fcn.10053130
mov ecx, dword [edi + 4]
mov eax, dword [ebx + 0x24]
mov dword [edi + 4], eax
mov eax, dword [ebx + 0x28]
mov dword [ebx + 0x24], ecx
mov ecx, dword [edi + 8]
mov dword [edi + 8], eax
mov dword [ebx + 0x28], ecx
mov ecx, dword [edi + 0xc]
mov eax, dword [ebx + 0x2c]
mov dword [edi + 0xc], eax
mov eax, dword [ebx + 0x30]
mov dword [ebx + 0x2c], ecx
mov ecx, dword [edi + 0x10]
mov dword [edi + 0x10], eax
mov eax, dword [ebx + 0x34]
mov dword [ebx + 0x30], ecx
mov ecx, dword [edi + 0x14]
mov dword [edi + 0x14], eax
mov eax, dword [ebx + 0x38]
mov dword [ebx + 0x34], ecx
mov dword [ebx + 0x38], 7
mov dword [edi + 0x18], eax
mov eax, dword [ebx + 0x3c]
mov dword [ebx + 0x3c], 8
mov dword [edi + 0x1c], eax
mov eax, dword [ebp - 0x10]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x1005a950
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10064b6d
mov eax, dword fs:[0]
push eax
sub esp, 0x20
mov eax, dword [0x10076040]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
xorps xmm0, xmm0
mov dword [ebp - 0x18], 0
push pe_nt_image_headers32
movups xmmword [ebp - 0x28], xmm0
mov dword [ebp - 0x14], 0xf
call fcn.10060688
push 0x104
mov esi, eax
mov dword [ebp - 0x18], 0x104
push 0
push esi
mov dword [ebp - 0x28], esi
mov dword [ebp - 0x14], 0x10f
call sub.VCRUNTIME140.dll_memset
add esp, 0x10
mov byte [esi + 0x104], 0
mov dword [ebp - 4], 0
lea eax, [ebp - 0x28]
cmp dword [ebp - 0x14], 0xf
push 0x104
cmova eax, dword [ebp - 0x28]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
mov edx, eax
test edx, edx
je 0x1005aad6
mov ecx, dword [ebp - 0x18]
cmp edx, ecx
ja 0x1005aa06
cmp dword [ebp - 0x14], 0xf
lea ecx, [ebp - 0x28]
mov dword [ebp - 0x18], edx
cmova ecx, dword [ebp - 0x28]
mov byte [ecx + edx], 0
jmp 0x1005aa46
mov esi, dword [ebp - 0x14]
mov edi, edx
mov eax, esi
sub edi, ecx
sub eax, ecx
cmp edi, eax
ja 0x1005aa37
cmp esi, 0xf
mov dword [ebp - 0x18], edx
lea eax, [ebp - 0x28]
cmova eax, dword [ebp - 0x28]
push edi
push 0
lea esi, [ecx + eax]
push esi
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
mov byte [esi + edi], 0
jmp 0x1005aa46
push 0
push edi
push dword [ebp - 0x2c]
lea ecx, [ebp - 0x28]
push edi
call fcn.1000a180
mov edx, dword [ebp - 0x14]
mov eax, edx
mov ecx, dword [ebp - 0x18]
sub eax, ecx
push 9
push str.d3d9.dll
cmp eax, 9
jb 0x1005aa7d
cmp edx, 0xf
lea esi, [ebp - 0x28]
lea eax, [ecx + 9]
cmova esi, dword [ebp - 0x28]
add esi, ecx
mov dword [ebp - 0x18], eax
push esi
call sub.VCRUNTIME140.dll_memmove
add esp, 0xc
mov byte [esi + 9], 0
jmp 0x1005aa8a
push dword [ebp - 0x2c]
lea ecx, [ebp - 0x28]
push 9
call fcn.1000a2e0
cmp dword [ebp - 0x14], 0xf
lea eax, [ebp - 0x28]
cmova eax, dword [ebp - 0x28]
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov esi, eax
lea eax, [esi + 0x128000]
cmp esi, eax
jae 0x1005aace
mov edx, 0x6c7
mov ecx, 0x8689
inc esi
cmp word [esi], dx
jne 0x1005aac4
cmp word [esi + 6], cx
jne 0x1005aac4
cmp word [esi + 0xc], cx
je 0x1005aad1
lea eax, [esi + 0x128000]
cmp esi, eax
jb 0x1005aab2
inc esi
jmp 0x1005aad8
add esi, 2
jmp 0x1005aad8
xor esi, esi
mov ecx, dword [ebp - 0x14]
cmp ecx, 0xf
jbe 0x1005ab0e
mov edx, dword [ebp - 0x28]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x1005ab04
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x1005ab04
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push ecx
push edx
call fcn.100606bd
add esp, 8
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.1006067a
mov esp, ebp
pop ebp
ret 4
Function at 0x1005fe86
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
push ecx
push 2
lea eax, [ebp - 4]
push eax
push 0x20000001
push str._x_sys_default_locale
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoEx]
xor ecx, ecx
test eax, eax
jne 0x1005fead
mov eax, ecx
mov dword [ebp - 4], eax
jmp 0x1005feb0
mov eax, dword [ebp - 4]
push esi
mov esi, dword [ebp + 0xc]
push ecx
push ecx
push esi
push eax
push dword [ebp + 8]
push ecx
push 0x1300
call dword [sym.imp.KERNEL32.dll_FormatMessageA]
push eax
push dword [esi]
call fcn.1005fe62
pop esi
leave
ret 8
Function at 0x1002e595
Capabilities:
Terminate process

Disassembly:
jmp 0x10066764
push 0x17
call dword [sym.imp.KERNEL32.dll_IsProcessorFeaturePresent]
test eax, eax
je 0x10066775
push 5
pop ecx
int 0x29
push esi
push 1
mov esi, 0xc0000417
push esi
push 2
call fcn.1002fa58
add esp, 0xc
push esi
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
pop esi
ret

Function at 0x1002e630
Capabilities:
Query environment variable

Disassembly:
jmp 0x1007111c
mov edi, edi
push esi
push edi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov esi, eax
test esi, esi
jne 0x10071130
xor edi, edi
jmp 0x10071167
push ebx
push esi
call fcn.10071026
mov ebx, eax
sub ebx, esi
and ebx, 0xfffffffe
push ebx
call fcn.1002eb8f
mov edi, eax
pop ecx
pop ecx
test edi, edi
je 0x10071157
push ebx
push esi
push edi
call fcn.1002f8eb
add esp, 0xc
push 0
call fcn.1002ffad
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
pop ebx
mov eax, edi
pop edi
pop esi
ret
Function at 0x432005
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
call 0x43200c
nop
pop eax
nop
nop
nop
nop
nop
add eax, 0x40729f
sub eax, 0x407245
nop
nop
nop
mov ebx, dword [eax]
nop
nop
mov ecx, dword [eax + 4]
nop
nop
nop
nop
nop
nop
mov edx, dword [eax + 8]
nop
nop
nop
nop
xor dword [ebx], edx
nop
nop
add ebx, 4
nop
nop
nop
cmp ebx, ecx
nop
nop
nop
jl 0x432030
nop
nop
nop
add eax, 0xc
nop
nop
nop
nop
cmp dword [eax], 0
nop
nop
nop
nop
nop
nop
jne 0x43201e
nop
nop
popal
nop
nop
nop
jmp 0x431219
Function at 0x401a10
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x4320d0]
jne 0x401a1a
repz ret
jmp fcn.004028b6

Function at 0x40f898
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push edi
call fcn.0040343a
and dword [ebp - 4], 0
cmp dword [0x43b100], 0
mov ebx, eax
jne 0x40f949
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x40f9fa
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
test eax, eax
je 0x40f9fa
push eax
call fcn.004033c8
mov dword [esp], str.GetActiveWindow
push edi
mov dword [0x43b100], eax
call esi
push eax
call fcn.004033c8
mov dword [esp], str.GetLastActivePopup
push edi
mov dword [0x43b104], eax
call esi
push eax
call fcn.004033c8
mov dword [esp], str.GetUserObjectInformationA
push edi
mov dword [0x43b108], eax
call esi
push eax
call fcn.004033c8
pop ecx
mov dword [0x43b110], eax
test eax, eax
je 0x40f949
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.004033c8
pop ecx
mov dword [0x43b10c], eax
mov eax, dword [0x43b10c]
cmp eax, ebx
je 0x40f9a1
cmp dword [0x43b110], ebx
je 0x40f9a1
push eax
call fcn.00403443
push dword [0x43b110]
mov esi, eax
call fcn.00403443
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x40f9a1
test edi, edi
je 0x40f9a1
call esi
test eax, eax
je 0x40f998
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x40f998
test byte [ebp - 0xc], 1
jne 0x40f9a1
or dword [ebp + 0x10], 0x200000
jmp 0x40f9da
mov eax, dword [0x43b104]
cmp eax, ebx
je 0x40f9da
push eax
call fcn.00403443
pop ecx
test eax, eax
je 0x40f9da
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x40f9da
mov eax, dword [0x43b108]
cmp eax, ebx
je 0x40f9da
push eax
call fcn.00403443
pop ecx
test eax, eax
je 0x40f9da
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x43b100]
call fcn.00403443
pop ecx
test eax, eax
je 0x40f9fa
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x40f9fc
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x42bb71
Capabilities:
Create pipe

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
push ebx
mov ebx, dword [0x43b5ac]
push esi
push dword [eax]
mov esi, dword [0x43b4f4]
call fcn.0042baa6
cmp dword [0x43b5ac], 0x2f
pop ecx
jne 0x42bbd0
push edi
lea eax, [ebp - 0x28]
push eax
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
xor edi, edi
push edi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsA]
push edi
push edi
push edi
push edi
push edi
push edi
push edi
push edi
call dword [sym.imp.KERNEL32.dll_CreateNamedPipeA]
mov dword [ebp - 8], edi
xor eax, eax
lea edi, [ebp - 4]
stosd dword es:[edi], eax
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_LocalFileTimeToFileTime]
pop edi
push esi
call fcn.0042bae8
pop ecx
pop esi
pop ebx
leave
ret
Function at 0x42bf32
Capabilities:
Set file attributes

Disassembly:
sub esp, 0x804
mov eax, dword [0x4320d0]
xor eax, esp
mov dword [esp + 0x800], eax
push esi
push edi
mov edi, 0x13ba1f
xor esi, esi
cmp dword [0x43b5ac], 0xbf9
jne 0x42bf61
call dword [sym.imp.KERNEL32.dll_GetConsoleOutputCP]
cmp dword [0x43b5ac], 0x3dc
mov dword [0x43b5a0], 0x8e55ceaa
jne 0x42bf90
push esi
push str.dewobihirutakaxevifajo
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
push str.xafecelocixupapedahesofunezodicexegenogexepumawojuyagon
push esi
push esi
call dword [sym.imp.KERNEL32.dll_OpenWaitableTimerW]
dec edi
jne 0x42bf4f
cmp esi, 0x8465cb
jne 0x42bfaa
mov eax, dword [0x43a564]
add eax, 0xa231
mov dword [0x43b5ac], eax
cmp dword [0x43b5ac], 0x141
jne 0x42bfd7
push str.wucusipeyekexe_zelisapecuyozabozecaxufer_miweyumeriwosizupuyubahu_regorekuzet_begazixezibunodumekacefasuhato
lea eax, [esp + 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcatW]
or dword [0x43b274], 0xffffffff
mov dword [0x43b270], 0xec58acac
inc esi
cmp esi, 0x123c19c
jl 0x42bf93
call fcn.0042bbdb
mov ecx, dword [esp + 0x808]
pop edi
pop esi
xor ecx, esp
xor eax, eax
call fcn.00401a10
add esp, 0x804
ret 0x10
Function at 0x9a0f20
Capabilities:
Decompress data using aplib

Disassembly:
call fcn.009a1070
push ebx
mov ebx, esp
push ebx
mov esi, dword [ebx + 8]
mov edi, dword [ebx + 0x10]
cld
mov dl, pe_nt_image_headers32
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
mov ebx, 2
add dl, dl
jne 0x9a0f46
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x9a0f32
add dl, dl
jne 0x9a0f51
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x9a0fa4
xor eax, eax
add dl, dl
jne 0x9a0f5e
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x9a1045
add dl, dl
jne 0x9a0f6d
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x9a0f78
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x9a0f83
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x9a0f8e
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
je 0x9a0f9a
push edi
mov eax, eax
sub edi, eax
mov al, byte [edi]
pop edi
mov byte [edi], al
inc edi
mov ebx, 2
jmp 0x9a0f3d
mov eax, 1
add dl, dl
jne 0x9a0fb2
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x9a0fbd
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x9a0fa9
sub eax, ebx
mov ebx, 1
jne 0x9a0ff0
mov ecx, 1
add dl, dl
jne 0x9a0fd6
mov dl, byte [esi]
inc esi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x9a0fe1
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x9a0fcd
push esi
mov esi, edi
sub esi, ebp
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x9a0f3d
dec eax
shl eax, 8
mov al, byte [esi]
inc esi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0x9a1007
mov dl, byte [esi]
inc esi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x9a1012
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x9a0ffe
cmp eax, 0x7d00
jae 0x9a1035
cmp eax, 0x500
jb 0x9a1030
inc ecx
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x9a0f3d
cmp eax, 0x7f
ja 0x9a1038
add ecx, 2
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x9a0f3d
mov al, byte [esi]
inc esi
xor ecx, ecx
shr al, 1
je 0x9a1066
adc ecx, 2
mov ebp, eax
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
mov ebx, 1
jmp 0x9a0f3d
pop ebx
sub edi, dword [ebx + 0x10]
mov eax, edi
pop ebx
ret 0x10

Function at 0x430000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
call 0x43000c
nop
nop
nop
pop eax
nop
nop
nop
add eax, 0x403d6f
sub eax, 0x403d15
nop
nop
nop
nop
nop
mov ebx, dword [eax]
nop
mov ecx, dword [eax + 4]
nop
nop
nop
mov edx, dword [eax + 8]
nop
nop
nop
nop
nop
xor dword [ebx], edx
nop
add ebx, 4
nop
nop
nop
nop
nop
nop
nop
cmp ebx, ecx
nop
nop
nop
nop
jl 0x430030
nop
nop
add eax, 0xc
nop
nop
nop
cmp dword [eax], 0
nop
nop
nop
nop
jne 0x43001e
nop
nop
nop
popal
nop
nop
nop
jmp loc.00401219
Function at 0x401040
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.2.12
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.00408910
mov esi, eax
add esp, 0xc
test esi, esi
je 0x401094
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.00401bc0
add esp, 0xc
or eax, 0xffffffff
pop esi
pop ebx
add esp, 0x48
ret
push 0x2000
call fcn.00411f43
add esp, 4
mov dword [esp + 0x10], eax
test eax, eax
jne 0x4010c8
mov eax, dword [esp + 0x58]
add eax, 0x12
push eax
push str.Failed_to_extract__s:_failed_to_allocate_temporary_input_buffer__n
push str.malloc
call fcn.00401ba0
add esp, 0xc
jmp 0x4011f0
push 0x2000
call fcn.00411f43
mov ebx, eax
add esp, 4
test ebx, ebx
jne 0x4010fa
mov ecx, dword [esp + 0x58]
add ecx, 0x12
push ecx
push str.Failed_to_extract__s:_failed_to_allocate_temporary_output_buffer__n
push str.malloc
call fcn.00401ba0
add esp, 0xc
jmp 0x4011f0
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 0x401129
ja 0x401122
cmp eax, 0x2000
jbe 0x401129
mov esi, 0x2000
jmp 0x40112b
mov esi, eax
mov eax, dword [esp + 0x5c]
push dword [eax]
push esi
push 1
push dword [esp + 0x24]
call fcn.0040d392
add esp, 0x10
cmp eax, esi
jne 0x4011eb
mov eax, dword [esp + 0x5c]
push dword [eax]
call fcn.0040d18d
add esp, 4
test eax, eax
jne 0x4011eb
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
lea eax, [esp + 0x20]
mov dword [esp + 0x30], 0x2000
push 0
push eax
mov dword [esp + 0x34], ebx
call fcn.00406f50
add esp, 8
mov dword [esp + 0x1c], eax
lea ecx, [eax + 4]
cmp ecx, 6
ja case.0x4011a0.1
movzx ecx, byte [ecx + 0x401274]
jmp dword [ecx*4 + 0x401268]
mov esi, 0x2000
sub esi, dword [esp + 0x30]
test ebp, ebp
je 0x401214
push ebp
push esi
push 1
push ebx
call fcn.0040dab5
add esp, 0x10
cmp eax, esi
jne 0x4011d2
push ebp
call fcn.0040d18d
add esp, 4
test eax, eax
je 0x401225
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.00401bc0
add esp, 0xc
or esi, 0xffffffff
pop edi
pop ebp
lea eax, [esp + 0x18]
push eax
call fcn.00408700
push dword [esp + 0x14]
call fcn.00411f28
push ebx
call fcn.00411f28
add esp, 0xc
mov eax, esi
pop esi
pop ebx
add esp, 0x48
ret
test edi, edi
je 0x401229
push esi
push ebx
push edi
call fcn.0040a870
add esp, 0xc
add edi, esi
mov eax, dword [esp + 0x1c]
cmp dword [esp + 0x30], 0
je 0x401172
cmp eax, 1
je 0x401263
mov ecx, dword [esp + 0x14]
test ecx, ecx
jne 0x401247
cmp dword [esp + 0x10], ecx
jbe 0x4011d5
mov eax, dword [esp + 0x10]
jmp 0x401115
mov eax, 0xfffffffd
jmp 0x4011d5
cmp eax, 1
jne 0x4011d5
xor esi, esi
jmp 0x4011ee
Function at 0x4012a0
Capabilities:
Read file on windows

Disassembly:
sub esp, 8
push ebp
mov ebp, dword [esp + 0x10]
mov edx, dword [ebp]
test edx, edx
jne 0x4012e5
lea eax, [ebp + 0x70]
push 0x427350
push eax
call fcn.00402d70
mov edx, eax
add esp, 8
mov dword [ebp], edx
test edx, edx
jne 0x4012e5
mov eax, dword [esp + 0x14]
add eax, 0x12
push eax
push str.Failed_to_extract__s:_failed_to_open_archive_file__n
call fcn.00401bc0
add esp, 8
xor eax, eax
pop ebp
add esp, 8
ret
push ebx
mov ebx, dword [esp + 0x18]
xor eax, eax
push 0
mov ecx, dword [ebx + 4]
add ecx, dword [ebp + 8]
adc eax, dword [ebp + 0xc]
push eax
push ecx
push edx
call fcn.0040d7b6
add esp, 0x10
test eax, eax
jns 0x401324
lea eax, [ebx + 0x12]
push eax
push str.Failed_to_extract__s:_failed_to_seek_to_the_entrys_data__n
push str.fseek
call fcn.00401ba0
add esp, 0xc
xor eax, eax
pop ebx
pop ebp
add esp, 8
ret
push esi
push edi
push dword [ebx + 0xc]
call fcn.00411f43
mov esi, eax
add esp, 4
mov dword [esp + 0x10], esi
test esi, esi
jne 0x401359
push dword [ebx + 0xc]
lea ecx, [ebx + 0x12]
push ecx
push str.Failed_to_extract__s:_failed_to_allocate_data_buffer___u_bytes___n
push str.malloc
call fcn.00401ba0
add esp, 0x10
jmp 0x4013d8
cmp byte [ebx + 0x10], 1
jne 0x40137d
push esi
push 0
push ebx
push ebp
call fcn.00401040
add esp, 0x10
test eax, eax
je 0x4013d8
push esi
call fcn.00411f28
add esp, 4
xor esi, esi
jmp 0x4013d8
mov eax, esi
mov esi, dword [ebx + 0xc]
xor ebx, ebx
mov dword [esp + 0x14], eax
test esi, esi
je 0x4013d4
nop dword [eax]
test ebx, ebx
jb 0x4013a5
ja 0x40139e
cmp esi, 0x2000
jbe 0x4013a5
mov edi, 0x2000
jmp 0x4013a7
mov edi, esi
push dword [ebp]
push 1
push edi
push eax
call fcn.0040d392
add esp, 0x10
cmp eax, 1
jb 0x4013f9
mov eax, dword [esp + 0x14]
sub esi, edi
sbb ebx, 0
add eax, edi
mov dword [esp + 0x14], eax
test ebx, ebx
ja 0x40139e
jb 0x4013d4
test esi, esi
jne 0x401390
mov esi, dword [esp + 0x10]
mov eax, dword [ebp]
test eax, eax
je 0x4013ef
push eax
call fcn.0040d131
add esp, 4
mov dword [ebp], 0
pop edi
mov eax, esi
pop esi
pop ebx
pop ebp
add esp, 8
ret
mov eax, dword [esp + 0x20]
add eax, 0x12
push eax
push str.Failed_to_extract__s:_failed_to_read_data_chunk__n
push str.fread
call fcn.00401ba0
mov esi, dword [esp + 0x1c]
add esp, 0xc
push esi
call fcn.00411f28
add esp, 4
xor esi, esi
jmp 0x4013d8
Function at 0x401430
Capabilities:
Read file on windows

Disassembly:
sub esp, 0xc
push ebp
mov ebp, dword [esp + 0x14]
push ebp
call fcn.00405ae0
add esp, 4
cmp eax, 0xffffffff
jne 0x40144d
or eax, eax
pop ebp
add esp, 0xc
ret
push ebx
push esi
mov esi, dword [esp + 0x20]
lea eax, [ebp + 0x3070]
push edi
lea ebx, [esi + 0x12]
push ebx
push eax
mov dword [esp + 0x1c], ebx
call fcn.00405de0
mov edi, eax
add esp, 8
mov dword [esp + 0x18], edi
test edi, edi
jne 0x401493
push ebx
push str.Failed_to_extract__s:_failed_to_open_target_file__n
push str.fopen
call fcn.00401ba0
add esp, 0xc
or eax, 0xffffffff
pop edi
pop esi
pop ebx
pop ebp
add esp, 0xc
ret
mov edx, dword [ebp]
test edx, edx
jne 0x4014ca
lea eax, [ebp + 0x70]
push 0x427350
push eax
call fcn.00402d70
mov edx, eax
add esp, 8
mov dword [ebp], edx
test edx, edx
jne 0x4014ca
push ebx
push str.Failed_to_extract__s:_failed_to_open_archive_file__n
call fcn.00401bc0
add esp, 8
or edi, 0xffffffff
jmp 0x4015f0
mov ecx, dword [esi + 4]
xor eax, eax
add ecx, dword [ebp + 8]
push 0
adc eax, dword [ebp + 0xc]
push eax
push ecx
push edx
call fcn.0040d7b6
add esp, 0x10
test eax, eax
jns 0x401501
push ebx
push str.Failed_to_extract__s:_failed_to_seek_to_the_entrys_data__n
push str.fseek
call fcn.00401ba0
add esp, 0xc
or edi, 0xffffffff
jmp 0x4015f0
cmp byte [esi + 0x10], 1
jne 0x40151b
push 0
push edi
push esi
push ebp
call fcn.00401040
add esp, 0x10
mov edi, eax
jmp 0x4015f0
push 0x2000
xor edi, edi
call fcn.00411f43
add esp, 4
mov dword [esp + 0x10], eax
test eax, eax
jne 0x40154d
push ebx
push str.Failed_to_extract__s:_failed_to_allocate_temporary_buffer__n
push str.malloc
call fcn.00401ba0
add esp, 0xc
or edi, 0xffffffff
jmp 0x4015f0
mov esi, dword [esi + 0xc]
xor ebx, ebx
test esi, esi
je 0x4015e7
nop word [eax + eax]
test ebx, ebx
jb 0x401575
ja 0x40156e
cmp esi, 0x2000
jbe 0x401575
mov edi, 0x2000
jmp 0x401577
mov edi, esi
push dword [ebp]
push 1
push edi
push eax
call fcn.0040d392
add esp, 0x10
cmp eax, 1
jb 0x4015ca
push dword [esp + 0x18]
push 1
push edi
push dword [esp + 0x1c]
call fcn.0040dab5
add esp, 0x10
cmp eax, 1
jb 0x4015ba
mov eax, dword [esp + 0x10]
sub esi, edi
sbb ebx, 0
test ebx, ebx
ja 0x40156e
jb 0x4015b6
test esi, esi
jne 0x401560
xor edi, edi
jmp 0x4015e3
push dword [esp + 0x14]
push str.Failed_to_extract__s:_failed_to_write_data_chunk__n
push str.fwrite
jmp 0x4015d8
push dword [esp + 0x14]
push str.Failed_to_extract__s:_failed_to_read_data_chunk__n
push str.fread
call fcn.00401ba0
add esp, 0xc
or edi, 0xffffffff
mov eax, dword [esp + 0x10]
push eax
call fcn.00411f28
add esp, 4
mov eax, dword [ebp]
test eax, eax
je 0x401607
push eax
call fcn.0040d131
add esp, 4
mov dword [ebp], 0
push dword [esp + 0x18]
call fcn.0040d131
add esp, 4
mov eax, edi
pop edi
pop esi
pop ebx
pop ebp
add esp, 0xc
ret