joyce8/EMBER2024-capa huggingface dataset:
Function at 0x552fa1
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x6ed428]
jne 0x552fab
repz ret
jmp fcn.0055da0c

Function at 0x56e760
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.0055c675
and dword [ebp - 4], 0
cmp dword [0x74358c], 0
mov ebx, eax
jne 0x56e811
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x56e8c2
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x6c54a8
push edi
call esi
test eax, eax
je 0x56e8c2
push eax
call fcn.0055c603
mov dword [esp], 0x6c5498
push edi
mov dword [0x74358c], eax
call esi
push eax
call fcn.0055c603
mov dword [esp], 0x6c5484
push edi
mov dword [0x743590], eax
call esi
push eax
call fcn.0055c603
mov dword [esp], str.GetUserObjectInformationA
push edi
mov dword [0x743594], eax
call esi
push eax
call fcn.0055c603
pop ecx
mov dword [0x74359c], eax
test eax, eax
je 0x56e811
push 0x6c5450
push edi
call esi
push eax
call fcn.0055c603
pop ecx
mov dword [0x743598], eax
mov eax, dword [0x743598]
cmp eax, ebx
je 0x56e869
cmp dword [0x74359c], ebx
je 0x56e869
push eax
call fcn.0055c67e
push dword [0x74359c]
mov esi, eax
call fcn.0055c67e
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x56e869
test edi, edi
je 0x56e869
call esi
test eax, eax
je 0x56e860
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x56e860
test byte [ebp - 0xc], 1
jne 0x56e869
or dword [ebp + 0x10], 0x200000
jmp 0x56e8a2
mov eax, dword [0x743590]
cmp eax, ebx
je 0x56e8a2
push eax
call fcn.0055c67e
pop ecx
test eax, eax
je 0x56e8a2
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x56e8a2
mov eax, dword [0x743594]
cmp eax, ebx
je 0x56e8a2
push eax
call fcn.0055c67e
pop ecx
test eax, eax
je 0x56e8a2
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x74358c]
call fcn.0055c67e
pop ecx
test eax, eax
je 0x56e8c2
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x56e8c4
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x57ccd0
Capabilities:
Encrypt data using rc4 ksa

Disassembly:
mov edx, dword [esp + 4]
sub esp, 0x10
push ebx
mov bl, byte [edx + 8]
cmp bl, 3
je 0x57ce7a
mov ecx, dword [esp + 0x20]
push ebp
mov ebp, dword [edx]
push esi
xor esi, esi
push edi
mov dword [esp + 0x24], esi
test bl, 2
je 0x57cd28
movzx eax, byte [edx + 9]
movzx esi, byte [ecx]
mov edi, eax
sub edi, esi
movzx esi, byte [ecx + 1]
mov dword [esp + 0x10], edi
mov edi, eax
sub edi, esi
movzx esi, byte [ecx + 2]
sub eax, esi
mov esi, dword [esp + 0x24]
mov dword [esp + 0x14], edi
mov dword [esp + 0x18], eax
mov edi, 3
jmp 0x57cd3b
movzx eax, byte [ecx + 3]
movzx edi, byte [edx + 9]
sub edi, eax
mov dword [esp + 0x10], edi
mov edi, 1
test bl, 4
je 0x57cd4f
movzx ecx, byte [ecx + 4]
movzx eax, byte [edx + 9]
sub eax, ecx
mov dword [esp + edi*4 + 0x10], eax
inc edi
xor ecx, ecx
xor eax, eax
cmp edi, ecx
jle case.0x57cd96.3
jmp 0x57cd60
cmp dword [esp + eax*4 + 0x10], ecx
jg 0x57cd6c
mov dword [esp + eax*4 + 0x10], ecx
jmp 0x57cd71
mov esi, 1
inc eax
cmp eax, edi
jl 0x57cd60
cmp si, cx
je case.0x57cd96.3
movzx eax, byte [edx + 9]
add eax, 0xfffffffe
cmp eax, 0xe
ja case.0x57cd96.3
movzx eax, byte [eax + 0x57ce94]
jmp dword [eax*4 + 0x57ce80]
mov edx, dword [edx + 4]
mov eax, dword [esp + 0x28]
cmp edx, ecx
jbe case.0x57cd96.3
lea esp, [esp]
mov cl, byte [eax]
shr cl, 1
and cl, 0x55
mov byte [eax], cl
inc eax
sub edx, 1
jne 0x57cdb0
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x10
ret
mov edi, dword [edx + 4]
mov edx, dword [esp + 0x10]
mov esi, dword [esp + 0x28]
mov ecx, edx
mov eax, 0xf0
sar eax, cl
mov ebx, 0xf
sar ebx, cl
and al, 0xf0
or al, bl
test edi, edi
jbe case.0x57cd96.3
mov edi, edi
mov bl, byte [esi]
mov cl, dl
shr bl, cl
inc esi
and bl, al
sub edi, 1
mov byte [esi - 1], bl
jne 0x57cdf0
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x10
ret
mov esi, dword [esp + 0x28]
imul ebp, edi
xor ebx, ebx
test ebp, ebp
jbe case.0x57cd96.3
mov eax, ebx
xor edx, edx
div edi
inc ebx
inc esi
mov cl, byte [esp + edx*4 + 0x10]
shr byte [esi - 1], cl
cmp ebx, ebp
jb 0x57ce16
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x10
ret
mov esi, dword [esp + 0x28]
imul ebp, edi
xor ebx, ebx
test ebp, ebp
jbe case.0x57cd96.3
mov edi, edi
xor edx, edx
mov eax, ebx
div edi
movzx ax, byte [esi]
mov ecx, pe_nt_image_headers32
imul ax, cx
movzx ecx, byte [esi + 1]
add ax, cx
inc esi
inc ebx
inc esi
movzx ecx, word [esp + edx*4 + 0x10]
shr ax, cl
movzx eax, ax
mov edx, eax
shr edx, 8
mov byte [esi - 2], dl
mov byte [esi - 1], al
cmp ebx, ebp
jb 0x57ce40
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x10
ret
Function at 0x582f40
Capabilities:
Enumerate pe sections

Disassembly:
sub esp, 0xc
mov eax, dword [0x6ed428]
xor eax, esp
mov dword [esp + 8], eax
mov eax, dword [esp + 0x18]
push esi
mov esi, dword [esp + 0x14]
push edi
mov edi, dword [esp + 0x1c]
cmp eax, 3
jne 0x582fca
movzx eax, word [esi + 0x118]
test ax, ax
jne 0x582f76
test byte [esi + 0x230], 1
jne 0x582f9e
movzx cx, byte [edi]
cmp cx, ax
jbe 0x582f9e
push str.Invalid_background_palette_index
push esi
call fcn.00576540
add esp, 8
pop edi
pop esi
mov ecx, dword [esp + 8]
xor ecx, esp
call fcn.00552fa1
add esp, 0xc
ret
mov dl, byte [edi]
push 1
lea eax, [esp + 0xc]
push eax
push str.bKGD
push esi
mov byte [esp + 0x18], dl
call fcn.00582120
add esp, 0x10
pop edi
pop esi
mov ecx, dword [esp + 8]
xor ecx, esp
call fcn.00552fa1
add esp, 0xc
ret
test al, 2
je 0x58305e
movzx ecx, word [edi + 2]
push ecx
lea edx, [esp + 0xc]
push edx
call fcn.00581130
movzx eax, word [edi + 4]
push eax
lea ecx, [esp + 0x16]
push ecx
call fcn.00581130
movzx edx, word [edi + 6]
push edx
lea eax, [esp + 0x20]
push eax
call fcn.00581130
add esp, 0x18
cmp byte [esi + 0x127], 8
jne 0x583038
mov cl, byte [esp + 0xc]
or cl, byte [esp + 0xa]
or cl, byte [esp + 8]
je 0x583038
push str.Ignoring_attempt_to_write_16_bit_bKGD_chunk_when_bit_depth_is_8
push esi
call fcn.00576540
add esp, 8
pop edi
pop esi
mov ecx, dword [esp + 8]
xor ecx, esp
call fcn.00552fa1
add esp, 0xc
ret
push 6
lea edx, [esp + 0xc]
push edx
push str.bKGD
push esi
call fcn.00582120
add esp, 0x10
pop edi
pop esi
mov ecx, dword [esp + 8]
xor ecx, esp
call fcn.00552fa1
add esp, 0xc
ret
mov cl, byte [esi + 0x127]
movzx eax, word [edi + 8]
mov edx, 1
shl edx, cl
cmp eax, edx
jl 0x583092
push str.Ignoring_attempt_to_write_bKGD_chunk_out_of_range_for_bit_depth
push esi
call fcn.00576540
add esp, 8
pop edi
pop esi
mov ecx, dword [esp + 8]
xor ecx, esp
call fcn.00552fa1
add esp, 0xc
ret
push eax
lea eax, [esp + 0xc]
push eax
call fcn.00581130
push 2
lea ecx, [esp + 0x14]
push ecx
push str.bKGD
push esi
call fcn.00582120
mov ecx, dword [esp + 0x28]
add esp, 0x18
pop edi
pop esi
xor ecx, esp
call fcn.00552fa1
add esp, 0xc
ret
Function at 0x586a20
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebx
mov ebx, dword [edi + 0x24]
push ebp
push esi
mov ebp, dword [edi + 0x34]
sub ebp, dword [edi + 0x6c]
mov eax, dword [edi + 0x64]
mov ecx, dword [edi + 0x24]
lea edx, [ebx + ecx - 0x106]
sub ebp, eax
cmp eax, edx
jb 0x586a9e
mov eax, dword [edi + 0x30]
push ebx
lea ecx, [eax + ebx]
push ecx
push eax
call fcn.00553940
mov edx, dword [edi + 0x44]
mov eax, dword [edi + 0x3c]
sub dword [edi + 0x68], ebx
sub dword [edi + 0x64], ebx
add esp, 0xc
sub dword [edi + 0x54], ebx
lea ecx, [eax + edx*2]
movzx eax, word [ecx - 2]
sub ecx, 2
cmp eax, ebx
jb 0x586a71
sub eax, ebx
jmp 0x586a73
xor eax, eax
sub edx, 1
mov word [ecx], ax
jne 0x586a62
mov ecx, dword [edi + 0x38]
mov edx, ebx
lea ecx, [ecx + ebx*2]
movzx eax, word [ecx - 2]
sub ecx, 2
cmp eax, ebx
jb 0x586a92
sub eax, ebx
jmp 0x586a94
xor eax, eax
sub edx, 1
mov word [ecx], ax
jne 0x586a83
add ebp, ebx
mov esi, dword [edi]
cmp dword [esi + 4], 0
je 0x586af9
mov edx, dword [edi + 0x6c]
add edx, dword [edi + 0x64]
mov ecx, ebp
add edx, dword [edi + 0x30]
push edx
call fcn.00586720
add dword [edi + 0x6c], eax
mov edx, dword [edi + 0x6c]
add esp, 4
cmp edx, 3
jb 0x586ae5
mov eax, dword [edi + 0x64]
mov ecx, dword [edi + 0x30]
lea esi, [eax + ecx]
movzx eax, byte [esi]
mov ecx, dword [edi + 0x50]
mov dword [edi + 0x40], eax
shl eax, cl
movzx ecx, byte [esi + 1]
xor eax, ecx
and eax, dword [edi + 0x4c]
mov dword [edi + 0x40], eax
cmp edx, 0x106
jae 0x586af9
mov edx, dword [edi]
cmp dword [edx + 4], 0
jne 0x586a26
pop esi
pop ebp
pop ebx
ret
Function at 0x587f50
Capabilities:
Compute adler32 checksum

Disassembly:
push esi
mov esi, dword [esp + 0xc]
push edi
mov edi, dword [esp + 0xc]
movzx ecx, di
shr edi, 0x10
test esi, esi
jne 0x587f6a
pop edi
lea eax, [esi + 1]
pop esi
ret
push ebx
mov ebx, dword [esp + 0x18]
test ebx, ebx
jbe 0x58807a
push ebp
jmp 0x587f80
mov eax, ebx
cmp ebx, 0x15b0
jb 0x587f8f
mov eax, 0x15b0
sub ebx, eax
cmp eax, 0x10
jl 0x58803b
mov edx, eax
shr edx, 4
mov ebp, edx
neg ebp
shl ebp, 4
add eax, ebp
jmp 0x587fb0
movzx ebp, byte [esi]
add ecx, ebp
movzx ebp, byte [esi + 1]
add edi, ecx
add ecx, ebp
movzx ebp, byte [esi + 2]
add edi, ecx
add ecx, ebp
movzx ebp, byte [esi + 3]
add edi, ecx
add ecx, ebp
movzx ebp, byte [esi + 4]
add edi, ecx
add ecx, ebp
movzx ebp, byte [esi + 5]
add edi, ecx
add ecx, ebp
movzx ebp, byte [esi + 6]
add edi, ecx
add ecx, ebp
movzx ebp, byte [esi + 7]
add edi, ecx
add ecx, ebp
movzx ebp, byte [esi + 8]
add edi, ecx
add ecx, ebp
movzx ebp, byte [esi + 9]
add edi, ecx
add ecx, ebp
movzx ebp, byte [esi + 0xa]
add edi, ecx
add ecx, ebp
movzx ebp, byte [esi + 0xb]
add edi, ecx
add ecx, ebp
movzx ebp, byte [esi + 0xc]
add edi, ecx
add ecx, ebp
movzx ebp, byte [esi + 0xd]
add edi, ecx
add ecx, ebp
movzx ebp, byte [esi + 0xe]
add edi, ecx
add ecx, ebp
movzx ebp, byte [esi + 0xf]
add edi, ecx
add ecx, ebp
add edi, ecx
add esi, 0x10
sub edx, 1
jne 0x587fb0
test eax, eax
je 0x58804d
nop
movzx edx, byte [esi]
add ecx, edx
inc esi
add edi, ecx
sub eax, 1
jne 0x588040
mov eax, 0x80078071
mul ecx
shr edx, 0xf
imul edx, edx, 0xffff000f
add ecx, edx
mov eax, 0x80078071
mul edi
shr edx, 0xf
imul edx, edx, 0xffff000f
add edi, edx
test ebx, ebx
ja 0x587f80
pop ebp
mov eax, edi
pop ebx
shl eax, 0x10
pop edi
or eax, ecx
pop esi
ret
Function at 0x7c93c7
Capabilities:
Encode data using xor

Disassembly:
inc esp
add al, 0x57
ror dword [ebx - 0x62dffd73], 1
mov bl, byte [ebp + 0x5d4c3230]
outsb dx, byte [esi]
loop 0x7c93e4
ljmp 0x8bd7:0x89da29e3
cmp ecx, dword [edx]
invalid

Function at 0x7c9ba7
Capabilities:
Encode data using xor

Disassembly:
aaa
mov eax, esi
xchg edx, eax
cmp al, byte [edi + 7]
pop es
out dx, al
lcall 0xd0da, 0xa28b1512
or ecx, dword [ebx - 0x6f]
out 0x89, eax
cmp dword [edx - 0x6a2a39df], edi
invalid

Function at 0x820ff6
Capabilities:
Encode data using xor

Disassembly:
mov eax, 0x8f5524fe
clc
sub esp, 0x78
mov edi, ecx
fiadd word [eax]
fdivrp st(4)
and dword [ebp + 0x44], esp
and al, 0x70
mov ebx, 0x6824448d
cmp ah, byte [eax + 0x18c8a1bf]
push eax
call fcn.007656a1
or esi, ebx
inc ebx
pop es
mov cl, bh
call 0x24cee8ce
pop esp
mov dword [ecx], ebx
mov dword [ecx + 0x23], ebx
mov al, byte [0x8904fe1a]
pop ecx
or al, ch
mov byte [0x7487c954], al
mov edi, 0xcb80dfe1
xor al, 0x89
jl 0x820fbb
add al, 0x8d
lahf
jl 0x820f8e
cmp eax, ebx
je 0x820ff8
movzx edx, byte [ebp + 7]
adc edi, edi
jge 0x820fb8
lea esi, [esp + 0x4c]
mov ecx, dword [eax + 0x53]
push 0xc2806110
inc edx
inc eax
pop ss
inc esp
or eax, 0x8840cb74
movsx ebp, word [ebx - 0x60]
inc eax
mov bl, dh
movsx ebp, word [ebx - 0x60]
mov al, byte [0x54665060]
pushal
push eax
push sp
add al, 0x37
or al, 0x89
xor al, 0x24
call 0x5e76eba5
pop es
popfd
lea ebx, [esi + 0x56]
call 0x786b8425
call 0x7f8e7f63
push ebx
aas
xor al, 0xe8
mov cl, byte [eax + eax*2 + 0x44]
and al, 0x34
cmp eax, ebx
jne 0x820f9e
je 0x820fc1
sbb eax, 0x5ca1efff
push eax
push 0xd
push 0x103a919f
call 0x4cf07450
and al, 0x34
aaa
push eax
je 0x821009
test al, 0x31
pop ss
xor dword [edi], edx
jno 0x821015
call 0xba5d1f82
or dl, byte [edi + 0x10892849]
sub byte [ecx - 0x57ac06f0], cl
popfd
Function at 0x9b4560
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, 0x65f00d
lea edi, [esi - 0x25e00d]
push edi
or ebp, 0xffffffff
jmp 0x9b4582
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x9b4589
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x9b4578
mov eax, 1
add ebx, ebx
jne 0x9b459b
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x9b4590
jne 0x9b45ac
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x9b4590
xor ecx, ecx
sub eax, 3
jb 0x9b45c0
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x9b4632
mov ebp, eax
add ebx, ebx
jne 0x9b45cb
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jne 0x9b45d8
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jne 0x9b45fc
inc ecx
add ebx, ebx
jne 0x9b45e8
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x9b45dd
jne 0x9b45f9
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x9b45dd
add ecx, 2
cmp ebp, 0xfffff300
adc ecx, 1
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x9b461c
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x9b460d
jmp 0x9b457e
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x9b461c
add edi, ecx
jmp 0x9b457e
pop esi
mov edi, esi
mov ecx, 0x184b
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x9b463a
cmp byte [edi], 0x11
jne 0x9b463a
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 0x9b463f
lea edi, [esi + 0x5b0000]
mov eax, dword [edi]
or eax, eax
je 0x9b46ae
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x5b6f9c]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x5b6ff4]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x9b466c
mov ecx, edi
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0x5b6ffc]
or eax, eax
je 0x9b46a8
mov dword [ebx], eax
add ebx, 4
jmp 0x9b4689
call dword [esi + 0x5b6ff8]
add edi, 4
lea ebx, [esi - 4]
xor eax, eax
mov al, byte [edi]
inc edi
or eax, eax
je 0x9b46df
cmp al, 0xef
ja 0x9b46d2
add ebx, eax
mov eax, dword [ebx]
xchg ah, al
rol eax, 0x10
xchg ah, al
add eax, esi
mov dword [ebx], eax
jmp 0x9b46b4
and al, 0xf
shl eax, 0x10
mov ax, word [edi]
add edi, 2
jmp 0x9b46c1
mov ebp, dword [esi + 0x5b7000]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x197]
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 0x9b4713
sub esp, 0xffffff80
jmp 0x40f16c
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.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.0040aab0
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.00402690
add esp, 0xc
or eax, 0xffffffff
pop esi
pop ebx
add esp, 0x48
ret
push 0x2000
call fcn.00412b89
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.00402530
add esp, 0xc
jmp 0x4011ee
push 0x2000
call fcn.00412b89
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.00402530
add esp, 0xc
jmp 0x4011ee
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
push dword [esp + 0x5c]
push esi
push 1
push dword [esp + 0x24]
call fcn.0040ea82
add esp, 0x10
cmp eax, esi
jne 0x4011e9
push dword [esp + 0x5c]
call fcn.0040e87d
add esp, 4
test eax, eax
jne 0x4011e9
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.00408fe0
add esp, 8
mov dword [esp + 0x1c], eax
lea ecx, [eax + 4]
cmp ecx, 6
ja case.0x40119e.1
movzx ecx, byte [ecx + 0x401274]
jmp dword [ecx*4 + 0x401268]
mov esi, 0x2000
sub esi, dword [esp + 0x30]
test ebp, ebp
je 0x401212
push ebp
push esi
push 1
push ebx
call fcn.0040f1a5
add esp, 0x10
cmp eax, esi
jne 0x4011d0
push ebp
call fcn.0040e87d
add esp, 4
test eax, eax
je 0x401223
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.00402690
add esp, 0xc
or esi, 0xffffffff
pop edi
pop ebp
lea eax, [esp + 0x18]
push eax
call fcn.0040a8a0
push dword [esp + 0x14]
call fcn.00412b6e
push ebx
call fcn.00412b6e
add esp, 0xc
mov eax, esi
pop esi
pop ebx
add esp, 0x48
ret
test edi, edi
je 0x401227
push esi
push ebx
push edi
call fcn.0040bf60
add esp, 0xc
add edi, esi
mov eax, dword [esp + 0x1c]
cmp dword [esp + 0x30], 0
je 0x401170
cmp eax, 1
je 0x401261
mov ecx, dword [esp + 0x14]
test ecx, ecx
jne 0x401245
cmp dword [esp + 0x10], ecx
jbe 0x4011d3
mov eax, dword [esp + 0x10]
jmp 0x401115
mov eax, 0xfffffffd
jmp 0x4011d3
cmp eax, 1
jne 0x4011d3
xor esi, esi
jmp 0x4011ec
Function at 0x401280
Capabilities:
Read file on windows

Disassembly:
mov eax, 0x101c
call fcn.0040b2e0
mov eax, dword [0x436040]
xor eax, esp
mov dword [esp + 0x1018], eax
push ebx
mov ebx, dword [esp + 0x1028]
push ebp
push esi
mov esi, dword [esp + 0x102c]
push edi
push 0x428580
mov dword [esp + 0x20], esi
lea eax, [esi + 0x68]
mov dword [esp + 0x24], 0xffffffff
push eax
call fcn.00403a40
mov ebp, eax
add esp, 8
mov dword [esp + 0x10], ebp
test ebp, ebp
jne 0x4012e4
lea eax, [ebx + 0x12]
push eax
push str.Failed_to_extract__s:_failed_to_open_archive_file__n
call fcn.00402690
jmp 0x401460
mov ecx, dword [ebx + 4]
xor eax, eax
add ecx, dword [esi]
push 0
adc eax, dword [esi + 4]
push eax
push ecx
push ebp
call fcn.0040eea6
add esp, 0x10
test eax, eax
jns 0x401320
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.00402530
push ebp
call fcn.0040e821
add esp, 0x10
jmp 0x401463
push dword [ebx + 0xc]
call fcn.00412b89
add esp, 4
mov dword [esp + 0x14], eax
mov edi, eax
mov dword [esp + 0x24], edi
test eax, eax
jne 0x40135d
push dword [ebx + 0xc]
lea eax, [ebx + 0x12]
push eax
push str.Failed_to_extract__s:_failed_to_allocate_data_buffer___u_bytes___n
push str.malloc
call fcn.00402530
push ebp
call fcn.0040e821
add esp, 0x14
jmp 0x401465
cmp byte [ebx + 0x10], 1
jne 0x40137e
push eax
push 0
push ebx
push ebp
call fcn.00401040
add esp, 0x10
test eax, eax
jne 0x401451
mov dword [esp + 0x14], edi
jmp 0x4013e1
mov edi, dword [ebx + 0xc]
xor ebp, ebp
mov dword [esp + 0x18], eax
test edi, edi
je 0x4013d9
nop dword [eax + eax]
test ebp, ebp
jb 0x4013a5
ja 0x40139e
cmp edi, 0x2000
jbe 0x4013a5
mov esi, 0x2000
jmp 0x4013a7
mov esi, edi
push dword [esp + 0x10]
push 1
push esi
push eax
call fcn.0040ea82
add esp, 0x10
cmp eax, 1
jb 0x401437
mov eax, dword [esp + 0x18]
sub edi, esi
sbb ebp, 0
add eax, esi
mov dword [esp + 0x18], eax
test ebp, ebp
ja 0x40139e
jb 0x4013d5
test edi, edi
jne 0x401390
mov esi, dword [esp + 0x1c]
mov edi, dword [esp + 0x24]
mov ebp, dword [esp + 0x10]
push ebp
add ebx, 0x12
call fcn.0040e821
add esi, 0x3068
push ebx
push esi
call fcn.00407240
add esp, 0xc
test eax, eax
js 0x401465
push ebx
push 0x5c
push esi
push str._s_c_s
lea eax, [esp + 0x38]
push 0x1000
push eax
call fcn.00401db0
add esp, 0x18
cmp eax, 0x1000
jge 0x401465
lea eax, [esp + 0x28]
push eax
push dword [esp + 0x18]
call fcn.00403bb0
add esp, 8
mov dword [esp + 0x20], eax
jmp 0x401465
lea eax, [ebx + 0x12]
push eax
push str.Failed_to_extract__s:_failed_to_read_data_chunk__n
push str.fread
call fcn.00402530
mov ebp, dword [esp + 0x1c]
add esp, 0xc
push dword [esp + 0x14]
call fcn.00412b6e
push ebp
call fcn.0040e821
add esp, 8
xor edi, edi
push edi
call fcn.00412b6e
mov ecx, dword [esp + 0x102c]
add esp, 4
mov eax, dword [esp + 0x20]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.0040b2c7
add esp, 0x101c
ret
Function at 0x401510
Capabilities:
Read file on windows

Disassembly:
sub esp, 8
push ebp
push esi
mov esi, dword [esp + 0x14]
push edi
push 0x428580
xor edi, edi
lea eax, [esi + 0x68]
push eax
call fcn.00403a40
mov ebp, eax
add esp, 8
mov dword [esp + 0x10], ebp
test ebp, ebp
jne 0x401555
mov eax, dword [esp + 0x1c]
add eax, 0x12
push eax
push str.Failed_to_extract__s:_failed_to_open_archive_file__n
call fcn.00402690
add esp, 8
xor eax, eax
pop edi
pop esi
pop ebp
add esp, 8
ret
push ebx
mov ebx, dword [esp + 0x20]
xor eax, eax
push 0
mov ecx, dword [ebx + 4]
add ecx, dword [esi]
adc eax, dword [esi + 4]
push eax
push ecx
push ebp
call fcn.0040eea6
add esp, 0x10
test eax, eax
jns 0x40158d
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.00402530
add esp, 0xc
jmp 0x4015bd
push dword [ebx + 0xc]
call fcn.00412b89
add esp, 4
mov dword [esp + 0x10], eax
test eax, eax
jne 0x4015d3
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.00402530
add esp, 0x10
mov edi, dword [esp + 0x10]
push dword [esp + 0x14]
call fcn.0040e821
add esp, 4
mov eax, edi
pop ebx
pop edi
pop esi
pop ebp
add esp, 8
ret
cmp byte [ebx + 0x10], 1
jne 0x4015fb
push eax
push 0
push ebx
push ebp
call fcn.00401040
add esp, 0x10
test eax, eax
je 0x4015b9
mov edi, dword [esp + 0x10]
push edi
call fcn.00412b6e
add esp, 4
xor edi, edi
jmp 0x4015bd
mov esi, dword [ebx + 0xc]
mov ebp, eax
xor ebx, ebx
test esi, esi
je 0x40167a
test ebx, ebx
jb 0x40161b
ja 0x401614
cmp esi, 0x2000
jbe 0x40161b
mov edi, 0x2000
jmp 0x40161d
mov edi, esi
push dword [esp + 0x14]
push 1
push edi
push ebp
call fcn.0040ea82
add esp, 0x10
cmp eax, 1
jb 0x40164c
sub esi, edi
sbb ebx, 0
add ebp, edi
test ebx, ebx
ja 0x401614
jb 0x4015b9
test esi, esi
jne 0x401606
jmp 0x4015b9
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.00402530
mov edi, dword [esp + 0x1c]
add esp, 0xc
push edi
call fcn.00412b6e
add esp, 4
xor edi, edi
jmp 0x4015bd
mov edi, eax
jmp 0x4015bd