joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4791f0
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x503e5b
mov eax, dword fs:[0]
push eax
sub esp, 0x278
mov eax, dword [0x54e938]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [ebp + 8]
mov esi, dword [ebp + 0xc]
mov dword [ebp - 0x26c], eax
call fcn.004044f0
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 8]
call eax
mov ecx, eax
call fcn.00413740
test al, al
je 0x47936f
call fcn.004127a0
mov edi, eax
test edi, edi
je 0x47936f
test esi, esi
je 0x47936f
cmp word [esi], 0
je 0x47936f
push esi
lea ecx, [ebp - 0x234]
call fcn.00408940
push esi
mov dword [ebp - 4], 0
call dword [sym.imp.SHLWAPI.dll_PathIsRelativeW]
test eax, eax
je 0x4792c3
lea ecx, [ebp - 0x218]
push ecx
push 0x104
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
dec eax
cmp eax, 0x102
ja 0x4792c3
push esi
lea edx, [ebp - 0x218]
push edx
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
test eax, eax
je 0x4792c3
lea eax, [ebp - 0x218]
push eax
lea ecx, [ebp - 0x234]
call fcn.00418650
mov ecx, dword [ebp + 0x10]
push 0
mov dword [ebp - 0x274], ecx
push edi
lea ecx, [ebp - 0x284]
mov dword [ebp - 0x278], 0x208
call fcn.00481d00
push 0x30
lea edx, [ebp - 0x264]
push 0
push edx
mov dword [ebp - 0x268], 0
call fcn.004e15a0
add esp, 0xc
cmp dword [ebp - 0x220], 8
jb 0x479318
mov eax, dword [ebp - 0x234]
mov dword [ebp - 0x270], eax
jmp 0x479324
lea ecx, [ebp - 0x234]
mov dword [ebp - 0x270], ecx
mov edx, dword [ebp - 0x26c]
lea eax, [ebp - 0x268]
push eax
lea ecx, [ebp - 0x278]
push ecx
mov dword [ebp - 0x26c], edx
lea edx, [ebp - 0x270]
push edx
lea eax, [ebp - 0x26c]
push eax
lea ecx, [ebp - 0x284]
push 0xf4
push ecx
call fcn.004748f0
add esp, 0x18
lea ecx, [ebp - 0x234]
test eax, eax
je 0x47938e
call fcn.0040a2c0
xor eax, eax
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.00401316
mov esp, ebp
pop ebp
ret 0xc
call fcn.0040a2c0
mov eax, 1
jmp 0x479371

Function at 0x47dff1
Capabilities:
Delete file

Disassembly:
push ebx
push esi
mov esi, ecx
mov eax, dword [esi + 4]
xor ebx, ebx
cmp eax, ebx
je 0x47e00a
push eax
call dword [sym.imp.GDI32.dll_CloseEnhMetaFile]
mov dword [esi + 8], eax
mov dword [esi + 4], ebx
mov eax, dword [esi + 8]
cmp eax, ebx
je 0x47e01b
push eax
call dword [sym.imp.GDI32.dll_DeleteEnhMetaFile]
mov dword [esi + 8], ebx
cmp dword [esi + 0x1c], ebx
je 0x47e048
cmp dword [esi + 0x20], 8
push edi
lea edi, [esi + 0xc]
jb 0x47e02e
mov eax, dword [edi]
jmp 0x47e030
mov eax, edi
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
cmp dword [edi + 0x14], 8
mov dword [edi + 0x10], ebx
jb 0x47e042
mov edi, dword [edi]
xor eax, eax
mov word [edi], ax
pop edi
mov dword [esi], ebx
mov dword [esi + 0x28], ebx
pop esi
pop ebx
ret
Function at 0x491cf0
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0x7b000]
push edi
jmp 0x491d0a
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x491d11
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x491d00
mov eax, 1
add ebx, ebx
jne 0x491d23
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x491d34
jne 0x491d53
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x491d53
dec eax
add ebx, ebx
jne 0x491d40
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
jmp 0x491d18
add ebx, ebx
jne 0x491d4f
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jmp 0x491da5
xor ecx, ecx
sub eax, 3
jb 0x491d6b
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x491dda
sar eax, 1
mov ebp, eax
jmp 0x491d76
add ebx, ebx
jne 0x491d76
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x491d44
inc ecx
add ebx, ebx
jne 0x491d84
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x491d44
add ebx, ebx
jne 0x491d91
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x491d86
jne 0x491da2
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x491d86
add ecx, 2
cmp ebp, 0xfffffb00
adc ecx, 2
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x491dc4
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x491db6
jmp 0x491d06
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x491dc4
add edi, ecx
jmp 0x491d06
pop esi
lea edi, [esi + 0x8f000]
mov eax, dword [edi]
or eax, eax
je 0x491e2c
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x91000]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x9111c]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x491de1
mov ecx, edi
jns 0x491e10
movzx eax, word [edi]
inc edi
push eax
inc edi
mov ecx, 0xaef24857
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0x91124]
or eax, eax
je 0x491e26
mov dword [ebx], eax
add ebx, 4
jmp 0x491dfe
call dword [esi + 0x91120]
mov ebp, dword [esi + 0x91128]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x207]
and byte [eax], 0x7f
and byte [eax + 0x28], 0x7f
pop eax
push eax
push esp
push eax
push ebx
push edi
call ebp
pop eax
popal
lea eax, [esp - 0x80]
push 0
cmp esp, eax
jne 0x491e60
sub esp, 0xffffff80
jmp section.UPX0
Function at 0x10028a20
Capabilities:
Packed with generic packer

Disassembly:
cmp byte [esp + 8], 1
jne 0x10028bf8
pushal
mov esi, section.UPX1
lea edi, [esi - 0x17000]
lea eax, [edi + 0x20d08]
push dword [eax]
mov dword [eax], 0xca00ba1a
push eax
push edi
jmp 0x10028a5a
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x10028a61
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x10028a50
mov eax, 1
add ebx, ebx
jne 0x10028a73
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x10028a68
jne 0x10028a84
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x10028a68
xor ecx, ecx
sub eax, 3
jb 0x10028a98
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x10028b0a
mov ebp, eax
add ebx, ebx
jne 0x10028aa3
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jne 0x10028ab0
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jne 0x10028ad4
inc ecx
add ebx, ebx
jne 0x10028ac0
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x10028ab5
jne 0x10028ad1
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x10028ab5
add ecx, 2
cmp ebp, 0xfffff300
adc ecx, 1
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x10028af4
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x10028ae5
jmp 0x10028a56
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x10028af4
add edi, ecx
jmp 0x10028a56
pop esi
pop edi
pop eax
mov dword [edi], eax
mov edi, esi
mov ecx, 0x7d4
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x10028b16
cmp byte [edi], 0x11
jne 0x10028b16
mov eax, dword [edi]
mov bl, byte [edi + 4]
shr ax, 8
rol eax, 0x10
xchg ah, al
sub eax, edi
sub bl, 0xe8
add eax, esi
mov dword [edi], eax
add edi, 5
mov al, bl
loop 0x10028b1b
lea edi, [esi + 0x25000]
mov eax, dword [edi]
or eax, eax
je 0x10028b8a
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x280f0]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x28170]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x10028b48
mov ecx, edi
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0x28174]
or eax, eax
je 0x10028b84
mov dword [ebx], eax
add ebx, 4
jmp 0x10028b65
popal
xor eax, eax
ret 0xc
add edi, 4
lea ebx, [esi - 4]
xor eax, eax
mov al, byte [edi]
inc edi
or eax, eax
je 0x10028bbb
cmp al, 0xef
ja 0x10028bae
add ebx, eax
mov eax, dword [ebx]
xchg ah, al
rol eax, 0x10
xchg ah, al
add eax, esi
mov dword [ebx], eax
jmp 0x10028b90
and al, 0xf
shl eax, 0x10
mov ax, word [edi]
add edi, 2
jmp 0x10028b9d
mov ebp, dword [esi + 0x28178]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x237]
and byte [eax], 0x7f
and byte [eax + 0x28], 0x7f
pop eax
push eax
push esp
push eax
push ebx
push edi
call ebp
pop eax
popal
lea eax, [esp - 0x80]
push 0
cmp esp, eax
jne 0x10028bef
sub esp, 0xffffff80
jmp 0x1000372d
Function at 0x10840058
Capabilities:
Decompress data using aplib

Disassembly:
call fcn.108401a8
push ebx
mov ebx, esp
push ebx
mov esi, dword [ebx + 8]
mov edi, dword [ebx + 0x10]
cld
mov dl, 0x80
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
mov ebx, 2
add dl, dl
jne 0x1084007e
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x1084006a
add dl, dl
jne 0x10840089
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x108400dc
xor eax, eax
add dl, dl
jne 0x10840096
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x1084017d
add dl, dl
jne 0x108400a5
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x108400b0
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x108400bb
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x108400c6
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
je 0x108400d2
push edi
mov eax, eax
sub edi, eax
mov al, byte [edi]
pop edi
mov byte [edi], al
inc edi
mov ebx, 2
jmp 0x10840075
mov eax, 1
add dl, dl
jne 0x108400ea
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x108400f5
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x108400e1
sub eax, ebx
mov ebx, 1
jne 0x10840128
mov ecx, 1
add dl, dl
jne 0x1084010e
mov dl, byte [esi]
inc esi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x10840119
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x10840105
push esi
mov esi, edi
sub esi, ebp
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x10840075
dec eax
shl eax, 8
mov al, byte [esi]
inc esi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0x1084013f
mov dl, byte [esi]
inc esi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x1084014a
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x10840136
cmp eax, 0x7d00
jae 0x1084016d
cmp eax, 0x500
jb 0x10840168
inc ecx
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x10840075
cmp eax, 0x7f
ja 0x10840170
add ecx, 2
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x10840075
mov al, byte [esi]
inc esi
xor ecx, ecx
shr al, 1
je 0x1084019e
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 0x10840075
pop ebx
sub edi, dword [ebx + 0x10]
mov eax, edi
pop ebx
ret 0x10
Function at 0x42e000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
mov eax, section..text
nop
nop
nop
nop
nop
push 4
nop
nop
nop
pop edi
nop
nop
nop
nop
cmp eax, 0
nop
nop
nop
je 0x42e072
nop
nop
mov ebx, 0x407ef8
nop
nop
mov ecx, ebx
nop
nop
nop
nop
nop
nop
nop
sub ecx, eax
nop
nop
nop
nop
xor edx, edx
nop
push eax
nop
nop
nop
nop
nop
nop
nop
nop
mov eax, ecx
nop
nop
div edi
nop
nop
xchg ecx, eax
nop
nop
nop
nop
nop
nop
nop
nop
pop eax
nop
nop
mov esi, 0x30104482
nop
xor dword [eax], esi
nop
nop
nop
nop
nop
nop
add eax, edi
nop
nop
nop
nop
nop
loop 0x42e060
nop
nop
mov eax, section..data
nop
nop
cmp eax, 0
nop
nop
nop
nop
nop
je 0x42e0d2
mov ebx, 0x42cd70
nop
nop
nop
nop
mov ecx, ebx
nop
sub ecx, eax
nop
nop
nop
nop
nop
nop
xor edx, edx
nop
nop
nop
nop
push eax
nop
nop
nop
nop
nop
nop
mov eax, ecx
nop
nop
div edi
nop
nop
nop
xchg ecx, eax
nop
nop
nop
nop
nop
nop
pop eax
nop
nop
nop
nop
mov esi, 0x8154934
nop
nop
nop
nop
nop
xor dword [eax], esi
nop
add eax, edi
nop
nop
nop
loop 0x42e0c0
nop
nop
nop
nop
popal
nop
nop
nop
nop
nop
jmp 0x401219
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 0x4285d0
push esi
mov dword [esp + 0x1c], 0xffffffff
call fcn.004045f0
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.00402650
add esp, 8
push ebp
call fcn.00413d7e
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.00410006
add esp, 0x10
test eax, eax
jns 0x4010e0
call fcn.00413d60
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.004027d0
add esp, 0x10
jmp 0x4011c2
push dword [ebx + 0xc]
call fcn.00413d99
mov ebp, eax
add esp, 4
test ebp, ebp
jne 0x401119
mov esi, dword [ebx + 0xc]
call fcn.00413d60
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.004027d0
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.0040fbe2
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.00413d60
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.004027d0
add esp, 0x10
or eax, 0xffffffff
mov edi, dword [esp + 0x14]
test eax, eax
je 0x4011c2
push ebp
call fcn.00413d7e
add esp, 4
xor ebp, ebp
push edi
call fcn.0040f981
add esp, 4
pop ebx
test ebp, ebp
je 0x4011e1
push dword [esp + 0x24]
push ebp
call fcn.00404700
add esp, 8
mov dword [esp + 0x14], eax
push ebp
call fcn.00413d7e
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.0040bab0
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.00402650
add esp, 0xc
or eax, 0xffffffff
pop esi
pop ebx
add esp, 0x48
ret
push 0x2000
call fcn.00413d99
add esp, 4
mov dword [esp + 0x10], eax
test eax, eax
jne 0x401291
call fcn.00413d60
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.004027d0
add esp, 0x10
jmp 0x4013be
push 0x2000
call fcn.00413d99
mov ebx, eax
add esp, 4
test ebx, ebx
jne 0x4012ca
call fcn.00413d60
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.004027d0
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.0040fbe2
add esp, 0x10
cmp eax, esi
jne 0x4013b9
push dword [esp + 0x5c]
call fcn.0040f9dd
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.00409fd0
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.00410305
add esp, 0x10
cmp eax, esi
jne 0x4013a0
push ebp
call fcn.0040f9dd
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.00402650
add esp, 0xc
or esi, 0xffffffff
pop edi
pop ebp
lea eax, [esp + 0x18]
push eax
call fcn.0040b8a0
push dword [esp + 0x14]
call fcn.00413d7e
push ebx
call fcn.00413d7e
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.0040d0c0
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 0x4285d0
push esi
call fcn.004045f0
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.00402650
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.00410006
add esp, 0x10
test eax, eax
jns 0x4014eb
call fcn.00413d60
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.004027d0
add esp, 0x10
push ebx
call fcn.0040f981
add esp, 4
mov eax, ebp
pop edi
pop esi
pop ebp
pop ebx
add esp, 8
ret
push dword [edi + 0xc]
call fcn.00413d99
mov ebp, eax
add esp, 4
mov dword [esp + 0x14], ebp
test ebp, ebp
jne 0x401534
mov esi, dword [edi + 0xc]
call fcn.00413d60
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.004027d0
add esp, 0x14
push ebx
call fcn.0040f981
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.0040fbe2
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.00413d60
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.004027d0
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.00413d7e
add esp, 4
xor ebp, ebp
push ebx
call fcn.0040f981
add esp, 4
mov eax, ebp
pop edi
pop esi
pop ebp
pop ebx
add esp, 8
ret
Function at 0x4015f0
Capabilities:
Read file on windows

Disassembly:
sub esp, 0xc
push ebx
mov ebx, dword [esp + 0x18]
push esi
cmp byte [ebx + 0x11], 0x6e
jne 0x40162f
push dword [esp + 0x20]
push ebx
push dword [esp + 0x20]
call fcn.00401040
mov esi, eax
add esp, 0xc
test esi, esi
jns 0x401627
lea ecx, [ebx + 0x12]
push ecx
push str.Failed_to_create_symbolic_link__s__n
call fcn.00402650
add esp, 8
mov eax, esi
pop esi
pop ebx
add esp, 0xc
ret
push edi
push 0x4286b8
push dword [esp + 0x28]
call fcn.004045f0
mov edi, eax
add esp, 8
mov dword [esp + 0x14], edi
test edi, edi
jne 0x401672
call fcn.00413d60
lea ecx, [ebx + 0x12]
push ecx
push str.Failed_to_extract__s:_failed_to_open_target_file__n
push dword [eax]
push str.fopen
call fcn.004027d0
add esp, 0x10
or eax, 0xffffffff
pop edi
pop esi
pop ebx
add esp, 0xc
ret
mov esi, dword [esp + 0x1c]
push ebp
push 0x4285d0
push esi
call fcn.004045f0
mov ebp, eax
add esp, 8
mov dword [esp + 0x14], ebp
test ebp, ebp
jne 0x4016a8
lea eax, [ebx + 0x12]
push eax
push str.Failed_to_extract__s:_failed_to_open_archive_file__n
call fcn.00402650
add esp, 8
or edi, 0xffffffff
jmp 0x4017fc
mov ecx, dword [ebx + 4]
xor eax, eax
add ecx, dword [esi + 0x1000]
push 0
adc eax, dword [esi + 0x1004]
push eax
push ecx
push ebp
call fcn.00410006
add esp, 0x10
test eax, eax
jns 0x4016ef
call fcn.00413d60
lea ecx, [ebx + 0x12]
push ecx
push str.Failed_to_extract__s:_failed_to_seek_to_the_entrys_data__n
push dword [eax]
push str.fseek
call fcn.004027d0
add esp, 0x10
or edi, 0xffffffff
jmp 0x4017f3
cmp byte [ebx + 0x10], 1
jne 0x401709
push 0
push edi
push ebx
push ebp
call fcn.00401200
add esp, 0x10
mov edi, eax
jmp 0x4017f3
push 0x2000
xor edi, edi
call fcn.00413d99
add esp, 4
mov dword [esp + 0x10], eax
test eax, eax
jne 0x401745
call fcn.00413d60
lea ecx, [ebx + 0x12]
push ecx
push str.Failed_to_extract__s:_failed_to_allocate_temporary_buffer__n
push dword [eax]
push str.malloc
call fcn.004027d0
add esp, 0x10
or edi, 0xffffffff
jmp 0x4017f3
mov esi, dword [ebx + 0xc]
xor ebp, ebp
test esi, esi
je 0x4017e6
test ebp, ebp
jb 0x401767
ja 0x401760
cmp esi, 0x2000
jbe 0x401767
mov edi, 0x2000
jmp 0x401769
mov edi, esi
push dword [esp + 0x14]
push 1
push edi
push eax
call fcn.0040fbe2
add esp, 0x10
cmp eax, 1
jb 0x4017c2
push dword [esp + 0x18]
push 1
push edi
push dword [esp + 0x1c]
call fcn.00410305
add esp, 0x10
cmp eax, 1
jb 0x4017ab
mov eax, dword [esp + 0x10]
sub esi, edi
sbb ebp, 0
jne 0x401752
jb 0x4017a7
test esi, esi
jne 0x401752
xor edi, edi
jmp 0x4017e2
call fcn.00413d60
lea ecx, [ebx + 0x12]
push ecx
push str.Failed_to_extract__s:_failed_to_write_data_chunk__n
push dword [eax]
push str.fwrite
jmp 0x4017d7
call fcn.00413d60
lea ecx, [ebx + 0x12]
push ecx
push str.Failed_to_extract__s:_failed_to_read_data_chunk__n
push dword [eax]
push str.fread
call fcn.004027d0
add esp, 0x10
or edi, 0xffffffff
mov eax, dword [esp + 0x10]
push eax
call fcn.00413d7e
mov ebp, dword [esp + 0x18]
add esp, 4
push ebp
call fcn.0040f981
add esp, 4
push dword [esp + 0x18]
call fcn.0040f981
add esp, 4
mov eax, edi
pop ebp
pop edi
pop esi
pop ebx
add esp, 0xc
ret