joyce8/EMBER2024-capa huggingface dataset:
Function at 0x414134
Capabilities:
Hide graphical window

Disassembly:
mov eax, 0x42b360
call fcn.00428a70
sub esp, 0x44
push ebx
push esi
push edi
mov esi, ecx
push 0
call fcn.00412d04
push 1
mov ecx, esi
call fcn.00413680
mov edx, 0x198
lea ecx, [ebp - 0x20]
call fcn.0040f383
mov eax, dword [eax]
lea edi, [esi + 4]
push eax
push 2
push dword [edi]
call dword [sym.imp.USER32.dll_SetDlgItemTextW]
push dword [ebp - 0x20]
call fcn.00402183
mov ebx, dword [sym.imp.USER32.dll_GetDlgItem]
pop ecx
push 2
push dword [edi]
call ebx
push 1
push 1
push 0xf4
push eax
call dword [sym.imp.USER32.dll_SendMessageW]
push 0x1bc
push dword [edi]
call ebx
push 0
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
push 0x1be
push dword [edi]
call ebx
xor ebx, ebx
push ebx
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0x38]
lea ecx, [ebp - 0x50]
call fcn.004142e5
lea ecx, [ebp - 0x38]
mov dword [ebp - 4], ebx
call fcn.004142e5
lea eax, [esi + 0x200]
mov dword [ebp - 4], 1
push eax
mov dword [ebp - 0x14], eax
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp dword [esi + 0x1c8], ebx
lea ebx, [esi + 0x1d0]
push ebx
lea ecx, [ebp - 0x50]
mov byte [ebp - 4], 2
setne byte [ebp - 0xd]
call fcn.00414316
add ebx, 0x18
lea ecx, [ebp - 0x38]
push ebx
call fcn.00414316
push dword [ebp - 0x14]
mov byte [ebp - 4], 1
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
xor ebx, ebx
cmp dword [ebp - 0x40], ebx
je 0x414257
cmp dword [ebp - 0x4c], ebx
mov byte [esi + 0x21b], 1
jne 0x414244
push 0x42d318
lea ecx, [ebp - 0x50]
call fcn.00402993
cmp byte [0x4331c0], 0
jne 0x4142c3
push 0x10
push dword [ebp - 0x50]
push dword [ebp - 0x44]
jmp 0x41428b
cmp byte [ebp - 0xd], 0
jne 0x41429b
cmp dword [ebp - 0x28], ebx
mov byte [esi + 0x21b], 1
je 0x41429b
cmp dword [ebp - 0x34], ebx
jne 0x41427b
push 0x42d318
lea ecx, [ebp - 0x38]
call fcn.00402993
cmp byte [0x4331c0], 0
jne 0x4142c3
push ebx
push dword [ebp - 0x38]
push dword [ebp - 0x2c]
mov eax, esi
neg eax
sbb eax, eax
and eax, edi
push dword [eax]
call dword [sym.imp.USER32.dll_MessageBoxW]
cmp byte [0x4331c0], 0
jne 0x4142c3
cmp byte [ebp - 0xd], 0
je 0x4142c3
cmp byte [esi + 0x156], 0
jne 0x4142c3
mov ecx, esi
mov byte [esi + 0x155], 1
call fcn.004146ed
jmp 0x4142cc
push ebx
push dword [edi]
call dword [sym.imp.USER32.dll_EndDialog]
lea ecx, [ebp - 0x50]
call fcn.00412ba2
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov al, 1
pop ebx
mov dword fs:[0], ecx
leave
ret

Function at 0x414eb6
Capabilities:
Get file system object information

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2b4
or dword [ebp - 0x2b0], 0xffffffff
mov eax, edx
test eax, eax
jne 0x414ecf
push 0x20
pop eax
push 0x4010
lea edx, [ebp - 0x2b4]
push 0x2b4
push edx
push eax
push ecx
call dword [sym.imp.SHELL32.dll_SHGetFileInfoW]
mov ecx, dword [ebp + 8]
mov edx, dword [ebp - 0x2b0]
mov dword [ecx], edx
leave
ret 4

Function at 0x415152
Capabilities:
Get file system object information

Disassembly:
sub esp, 0x2b4
xor eax, eax
test cl, cl
setne al
or ax, 0x4010
push eax
lea eax, [esp + 4]
push 0x2b4
push eax
push 0x10
push 0x42c958
call dword [sym.imp.SHELL32.dll_SHGetFileInfoW]
add esp, 0x2b4
ret
Function at 0x415784
Capabilities:
Access peb ldr_data
Get kernel32 base address
Get process heap flags

Disassembly:
mov eax, 0x42b52b
call fcn.00428a70
push ecx
push ebx
push esi
mov esi, ecx
xor ebx, ebx
mov dword [ebp - 0x10], esi
mov dword [esi + 4], ebx
mov dword [esi], 0x42d0a0
lea ecx, [esi + 0xc]
mov dword [ebp - 4], ebx
mov dword [esi + 8], ebx
call fcn.004026d3
lea ecx, [esi + 0x18]
mov byte [ebp - 4], 1
call fcn.004026d3
mov ecx, dword [ebp - 0xc]
mov byte [esi + 0x24], bl
mov byte [esi + 0x25], bl
mov byte [esi + 0x30], bl
mov byte [esi + 0x31], bl
mov dword [esi], 0x42d394
mov byte [esi + 0x30], 1
mov eax, esi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret
Function at 0x421b70
Capabilities:
Check os version
Get common file path

Disassembly:
sub esp, 0x2d4
push esi
call dword [sym.imp.KERNEL32.dll_GetVersion]
cmp ax, 6
je 0x421bad
push str.SetDefaultDllDirectories
push str.kernel32.dll
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x421bad
push 0xc00
call eax
test eax, eax
jne 0x421c46
lea eax, [esp + 8]
push 0x106
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
test eax, eax
je 0x421c46
cmp eax, 0x104
ja 0x421c46
cmp word [esp + eax*2 + 6], 0x5c
je 0x421bdc
mov word [esp + eax*2 + 8], 0x5c
inc eax
mov esi, dword [str.userenv]
cmp byte [esi], 0
je 0x421c46
push ebp
lea ecx, [esp + eax*2 + 0xc]
push edi
mov edi, dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov dword [esp + 0xc], ecx
mov ebp, 0x6c
mov cl, byte [esi]
mov eax, dword [esp + 0xc]
inc esi
test cl, cl
je 0x421c1b
xor dx, dx
add eax, 2
mov dl, cl
inc esi
mov word [eax - 2], dx
mov cl, byte [esi - 1]
test cl, cl
jne 0x421c07
mov word [eax], 0x2e
mov word [eax + 2], 0x64
mov word [eax + 4], bp
mov word [eax + 6], bp
mov word [eax + 8], 0
push 8
lea eax, [esp + 0x14]
push 0
push eax
call edi
cmp byte [esi], 0
jne 0x421bfc
pop edi
pop ebp
pop esi
add esp, 0x2d4
ret
Function at 0x425442
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebx
push ebp
push esi
mov esi, ecx
mov eax, 1
push edi
mov dword [esi + 0x30], eax
mov dword [esi + 0x44], eax
or eax, 0xffffffff
xor edi, edi
mov dword [esi + 0x90], eax
mov dword [esi + 0x94], eax
mov eax, dword [esi + 4]
mov dword [esi + 0x78], edi
mov dword [esi + 0x68], edi
cmp eax, 0x20
mov dword [esi + 0x7c], edi
mov dword [esi + 0x34], edi
mov dword [esi + 0x38], edi
mov dword [esi + 0x3c], edi
mov dword [esi + 0x40], edi
mov dword [esi + 0x70], edi
mov dword [esi + 0x88], edi
mov dword [esi + 0x6c], edi
mov dword [esi + 0x48], edi
mov dword [esi + 0x4c], edi
mov dword [esi + 0x50], edi
mov dword [esi + 0x60], edi
mov dword [esi + 0x64], edi
mov dword [esi + 0x80], edi
mov dword [esi + 0x84], edi
jbe 0x4254ab
mov eax, 0x20
mov ecx, dword [esi + 0x20]
mov dword [esi + 0x54], eax
mov eax, dword [esi]
mov dword [esi + 0x58], edi
cmp eax, ecx
je 0x4254ec
lea ebx, [esi + 0xc8]
mov ebp, 0x20
cmp dword [ebx + 8], edi
je 0x4254d1
mov ecx, ebx
call fcn.00425130
add ebx, 0x28
dec ebp
jne 0x4254c5
mov edx, dword [esi + 0x5c]
cmp edx, edi
je 0x4254e7
mov ecx, dword [esi + 0x14]
call dword [ecx + 4]
mov dword [esi + 0x5c], edi
mov ecx, dword [esi]
mov dword [esi + 0x20], ecx
mov edx, dword [esi + 0x10]
lea ecx, [esi + 0x98]
call fcn.00425060
mov eax, dword [esi + 0x58]
mov dword [esi + 0x24], edi
mov dword [esi + 0x28], edi
lea edx, [eax + eax*4 + 0x19]
inc eax
mov dword [esi + 0x58], eax
lea ebp, [esi + edx*8]
mov ecx, ebp
call fcn.00425590
mov ebx, eax
cmp ebx, edi
jne 0x42554f
lea ecx, [ebp + 0x20]
call fcn.004276b0
mov ebx, eax
cmp ebx, edi
jne 0x42554f
lea ecx, [ebp + 0x1c]
call fcn.004276b0
mov ebx, eax
cmp ebx, edi
jne 0x42554f
push ebp
call fcn.004255d0
mov ebx, eax
cmp ebx, edi
je 0x425564
mov ecx, esi
mov dword [esi + 0x44], edi
call fcn.004255b0
cmp ebx, edi
jle 0x42555f
and ebx, 0xffff
or ebx, 0x80070000
cmp ebx, edi
je 0x425564
mov dword [esi + 0x40], ebx
cmp dword [esi + 0x38], edi
jne 0x425576
cmp dword [esi + 0x40], edi
jne 0x425576
cmp dword [esi + 0x3c], edi
jne 0x425576
mov dword [esi + 0x44], edi
mov eax, dword [esi + 0x44]
pop edi
neg eax
sbb eax, eax
pop esi
not eax
and eax, ebx
pop ebp
pop ebx
ret
Function at 0x426600
Capabilities:
Encrypt data using rc4 ksa

Disassembly:
push ecx
push ebx
push edi
push 0x98
xor ebx, ebx
lea eax, [esi + 0x110]
push ebx
push eax
call sub.MSVCRT.dll_memset
mov eax, dword [esi + 0x34]
add eax, dword [esi + 0x30]
mov ecx, dword [esi + 0x28]
lea edi, [ecx + eax]
mov dword [esi + 0x40], eax
shr ecx, 3
mov eax, 0xaaaaaaab
mul ecx
mov eax, dword [esi + 0x18]
shr edx, 3
imul edx, edx, 0x54
mov ecx, edi
sub ecx, edx
add esp, 0xc
mov dword [esi + 0x3c], edi
mov dword [esi + 0x44], ecx
mov dword [esi + 0x38], ecx
mov dword [esi + 0x2c], ebx
mov dword [esi + 0xc], eax
mov edx, eax
cmp eax, 0xc
jb 0x42665b
mov edx, 0xc
or eax, 0xffffffff
sub eax, edx
mov dword [esi + 0x24], eax
mov dword [esi + 0x20], eax
lea eax, [edi - 0xc]
lea edx, [ecx + 0x600]
mov dword [esi + 0x38], edx
mov dword [esi + 0x3c], eax
mov dword [esi], eax
mov dword [esi + 4], eax
mov dword [esi + 0x14], ebx
mov dword [esi + 8], ecx
mov edx, 0x100
mov word [eax], dx
mov edx, 0x101
mov word [eax + 2], dx
mov dword [eax + 4], ecx
mov dword [eax + 8], ebx
xor edx, edx
lea eax, [ecx + 2]
lea esp, [esp]
xor ecx, ecx
mov byte [eax - 2], dl
mov byte [eax - 1], 1
mov word [eax], cx
mov word [eax + 2], cx
inc edx
add eax, 6
cmp edx, 0x100
jb 0x4266a0
lea edx, [esi + 0x9fc]
mov dword [esp + 8], edx
push ebp
jmp 0x4266d0
mov edi, dword [esp + 0xc]
xor ebp, ebp
jmp 0x4266e0
movzx eax, word [ebp + 0x42dce0]
xor edx, edx
lea ecx, [ebx + 2]
div ecx
mov edx, 0x4000
sub edx, eax
movzx ecx, dx
xor eax, eax
lea ebx, [ebx]
mov word [edi + eax*2], cx
add eax, 8
cmp eax, 0x40
jb 0x426700
add ebp, 2
add edi, 2
cmp ebp, 0x10
jb 0x4266e0
sub dword [esp + 0xc], 0xffffff80
inc ebx
cmp ebx, 0x80
jb 0x4266d0
mov ecx, 0x50
lea edi, [esi + 0x3bc]
lea ebx, [ecx - 0x4c]
pop ebp
mov eax, edi
mov edx, 0x10
jmp 0x426740
mov word [eax], cx
mov word [eax + 2], 0x403
add eax, ebx
dec edx
jne 0x426740
add ecx, 0x28
add edi, 0x40
cmp ecx, 0x438
jb 0x426734
pop edi
mov dword [esi + 0x3b8], 0x40070000
pop ebx
pop ecx
ret
Function at 0x427670
Capabilities:
Create thread

Disassembly:
push esi
lea eax, [esp + 8]
push eax
push 0
mov esi, ecx
mov ecx, dword [esp + 0x10]
push ecx
push edx
push 0
push 0
call sub.MSVCRT.dll__beginthreadex
add esp, 0x18
mov dword [esi], eax
pop esi
test eax, eax
je 0x427698
xor eax, eax
ret 4
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x4276a7
mov eax, 1
ret 4

Function at 0x428300
Capabilities:
Hash data using sha256

Disassembly:
mov eax, dword [0x433158]
mov dword [ecx], eax
xor eax, eax
mov dword [ecx + 8], eax
mov dword [ecx + 0xc], eax
mov dword [ecx + 0x20], 0x6a09e667
mov dword [ecx + 0x24], 0xbb67ae85
mov dword [ecx + 0x28], 0x3c6ef372
mov dword [ecx + 0x2c], 0xa54ff53a
mov dword [ecx + 0x30], 0x510e527f
mov dword [ecx + 0x34], 0x9b05688c
mov dword [ecx + 0x38], 0x1f83d9ab
mov dword [ecx + 0x3c], 0x5be0cd19
ret

Function at 0x428910
Capabilities:
Hash data using sha256

Disassembly:
push ebx
push ebp
push esi
mov esi, ecx
mov eax, dword [esi + 8]
and eax, 0x3f
mov byte [eax + esi + 0x40], 0x80
inc eax
push edi
mov edi, edx
cmp eax, 0x38
jbe 0x428953
cmp eax, 0x40
je 0x428945
mov edx, 0x40
sub edx, eax
push edx
lea ecx, [eax + esi + 0x40]
push 0
push ecx
call sub.MSVCRT.dll_memset
add esp, 0xc
mov eax, dword [esi]
push 1
lea edx, [esi + 0x40]
lea ecx, [esi + 0x20]
call eax
xor eax, eax
mov ecx, 0x38
sub ecx, eax
push ecx
lea edx, [eax + esi + 0x40]
push 0
push edx
call sub.MSVCRT.dll_memset
mov eax, dword [esi + 8]
mov ecx, dword [esi + 0xc]
shld ecx, eax, 3
add eax, eax
add eax, eax
add eax, eax
bswap ecx
bswap eax
add esp, 0xc
mov dword [esi + 0x78], ecx
mov dword [esi + 0x7c], eax
mov eax, dword [esi]
push 1
lea edx, [esi + 0x40]
lea ecx, [esi + 0x20]
call eax
lea ecx, [esi + 0x20]
mov edx, 4
mov eax, dword [ecx + 4]
mov ebp, dword [ecx]
bswap ebp
bswap eax
mov dword [edi], ebp
mov dword [edi + 4], eax
add edi, 8
add ecx, 8
dec edx
jne 0x428998
xor eax, eax
pop edi
mov dword [esi + 8], eax
mov dword [esi + 0xc], eax
mov dword [esi + 0x20], 0x6a09e667
mov dword [esi + 0x24], 0xbb67ae85
mov dword [esi + 0x28], 0x3c6ef372
mov dword [esi + 0x2c], 0xa54ff53a
mov dword [esi + 0x30], 0x510e527f
mov dword [esi + 0x34], 0x9b05688c
mov dword [esi + 0x38], 0x1f83d9ab
mov dword [esi + 0x3c], 0x5be0cd19
pop esi
pop ebp
pop ebx
ret
Function at 0x429650
Capabilities:
Encode data using xor

Disassembly:
push ebx
push ebp
push esi
push edi
mov eax, ecx
mov edi, dword [esp + 0x14]
mov ebp, dword [esp + 0x18]
cmp edi, 0x1f
jb 0x4297f0
test edx, 3
je 0x429682
movzx esi, byte [edx]
movzx ebx, al
inc edx
shr eax, 8
xor esi, ebx
xor eax, dword [ebp + esi*4]
dec edi
jmp 0x429667
xor eax, dword [edx]
lea edi, [edx + edi - 0x1b]
sub edx, edi
lea ebx, [ebx]
mov ecx, dword [edi + edx + 0xc]
mov ebx, dword [edi + edx + 8]
movzx esi, bl
xor ecx, dword [ebp + esi*4 + 0xc00]
movzx esi, bh
shr ebx, 0x10
xor ecx, dword [ebp + esi*4 + 0x800]
movzx esi, bl
shr ebx, 8
xor ecx, dword [ebp + esi*4 + 0x400]
xor ecx, dword [ebp + ebx*4]
mov ebx, dword [edi + edx + 4]
movzx esi, bl
xor ecx, dword [ebp + esi*4 + 0x1c00]
movzx esi, bh
shr ebx, 0x10
xor ecx, dword [ebp + esi*4 + 0x1800]
movzx esi, bl
shr ebx, 8
xor ecx, dword [ebp + esi*4 + 0x1400]
xor ecx, dword [ebp + ebx*4 + 0x1000]
movzx esi, al
mov ebx, eax
shr ebx, 0x18
xor ecx, dword [ebp + esi*4 + 0x2c00]
xor ecx, dword [ebp + ebx*4 + 0x2000]
ror eax, 0x10
movzx esi, al
shr eax, 0x18
xor ecx, dword [ebp + esi*4 + 0x2400]
xor ecx, dword [ebp + eax*4 + 0x2800]
mov eax, dword [edi + edx + 0x18]
mov ebx, dword [edi + edx + 0x14]
movzx esi, bl
xor eax, dword [ebp + esi*4 + 0xc00]
movzx esi, bh
shr ebx, 0x10
xor eax, dword [ebp + esi*4 + 0x800]
movzx esi, bl
shr ebx, 8
xor eax, dword [ebp + esi*4 + 0x400]
xor eax, dword [ebp + ebx*4]
mov ebx, dword [edi + edx + 0x10]
movzx esi, bl
xor eax, dword [ebp + esi*4 + 0x1c00]
movzx esi, bh
shr ebx, 0x10
xor eax, dword [ebp + esi*4 + 0x1800]
movzx esi, bl
shr ebx, 8
xor eax, dword [ebp + esi*4 + 0x1400]
xor eax, dword [ebp + ebx*4 + 0x1000]
movzx esi, cl
mov ebx, ecx
shr ebx, 0x18
xor eax, dword [ebp + esi*4 + 0x2c00]
xor eax, dword [ebp + ebx*4 + 0x2000]
ror ecx, 0x10
movzx esi, cl
shr ecx, 0x18
xor eax, dword [ebp + esi*4 + 0x2400]
xor eax, dword [ebp + ecx*4 + 0x2800]
add edx, 0x18
jae 0x429690
add edi, 0x18
sub edx, 0x18
movzx ebx, al
movzx ecx, ah
shr eax, 0x10
movzx esi, al
shr eax, 8
mov eax, dword [ebp + eax*4]
xor eax, dword [ebp + ebx*4 + 0xc00]
xor eax, dword [ebp + ecx*4 + 0x800]
xor eax, dword [ebp + esi*4 + 0x400]
add edx, 4
jb 0x4297e9
xor eax, dword [edi + edx]
jmp 0x4297b7
add edx, edi
add edi, 3
sub edi, edx
test edi, edi
je 0x429807
movzx esi, byte [edx]
movzx ebx, al
inc edx
shr eax, 8
xor esi, ebx
xor eax, dword [ebp + esi*4]
dec edi
jne 0x4297f4
pop edi
pop esi
pop ebp
pop ebx
ret 8
Function at 0x42e000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
nop
mov eax, section..text
mov ebx, 0x407ef8
nop
nop
mov ecx, 0x626b22b9
test eax, eax
nop
nop
nop
nop
nop
je 0x42e04e
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
nop
nop
inc eax
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
nop
cmp eax, ebx
nop
nop
nop
jne 0x42e024
nop
nop
nop
mov eax, section..data
nop
mov ebx, 0x42cd70
nop
mov ecx, 0x47b91ea4
nop
nop
nop
nop
test eax, eax
je 0x42e084
nop
nop
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
add eax, 4
nop
nop
nop
nop
nop
cmp eax, ebx
nop
jne 0x42e06c
nop
nop
nop
nop
nop
nop
nop
nop
popal
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 0x428520
push esi
mov dword [esp + 0x1c], 0xffffffff
call fcn.00402f90
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.00401d10
add esp, 8
push ebp
call fcn.00412cc9
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.0040dbb1
add esp, 0x10
test eax, eax
jns 0x4010d7
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.00401cf0
add esp, 0xc
jmp 0x4011a1
push dword [ebx + 0xc]
call fcn.00412ce4
mov ebp, eax
add esp, 4
test ebp, ebp
jne 0x401106
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.00401cf0
add esp, 0x10
jmp 0x4011a1
cmp byte [ebx + 0x10], 1
jne 0x40111b
push ebp
push 0
push ebx
push edi
call fcn.004011e0
add esp, 0x10
jmp 0x401192
mov esi, dword [ebx + 0xc]
xor ebx, ebx
mov dword [esp + 0x10], eax
test esi, esi
je 0x40116d
test ebx, ebx
jb 0x40113d
ja 0x401136
cmp esi, 0x2000
jbe 0x40113d
mov edi, 0x2000
jmp 0x40113f
mov edi, esi
push dword [esp + 0x14]
push 1
push edi
push eax
call fcn.0040d78d
add esp, 0x10
cmp eax, 1
jb 0x401171
mov eax, dword [esp + 0x10]
sub esi, edi
sbb ebx, 0
add eax, edi
mov dword [esp + 0x10], eax
test ebx, ebx
ja 0x401136
jb 0x40116d
test esi, esi
jne 0x401128
xor eax, eax
jmp 0x40118e
mov eax, dword [esp + 0x24]
add eax, 0x12
push eax
push str.Failed_to_extract__s:_failed_to_read_data_chunk__n
push str.fread
call fcn.00401cf0
add esp, 0xc
or eax, 0xffffffff
mov edi, dword [esp + 0x14]
test eax, eax
je 0x4011a1
push ebp
call fcn.00412cc9
add esp, 4
xor ebp, ebp
push edi
call fcn.0040d52c
add esp, 4
pop ebx
test ebp, ebp
je 0x4011c0
push dword [esp + 0x24]
push ebp
call fcn.004030a0
add esp, 8
mov dword [esp + 0x14], eax
push ebp
call fcn.00412cc9
mov eax, dword [esp + 0x18]
add esp, 4
pop edi
pop esi
pop ebp
add esp, 0xc
ret
Function at 0x4011e0
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.00409790
mov esi, eax
add esp, 0xc
test esi, esi
je 0x401234
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.00401d10
add esp, 0xc
or eax, 0xffffffff
pop esi
pop ebx
add esp, 0x48
ret
push 0x2000
call fcn.00412ce4
add esp, 4
mov dword [esp + 0x10], eax
test eax, eax
jne 0x401268
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.00401cf0
add esp, 0xc
jmp 0x40138e
push 0x2000
call fcn.00412ce4
mov ebx, eax
add esp, 4
test ebx, ebx
jne 0x40129a
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.00401cf0
add esp, 0xc
jmp 0x40138e
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 0x4012c9
ja 0x4012c2
cmp eax, 0x2000
jbe 0x4012c9
mov esi, 0x2000
jmp 0x4012cb
mov esi, eax
push dword [esp + 0x5c]
push esi
push 1
push dword [esp + 0x24]
call fcn.0040d78d
add esp, 0x10
cmp eax, esi
jne 0x401389
push dword [esp + 0x5c]
call fcn.0040d588
add esp, 4
test eax, eax
jne 0x401389
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.00407ca0
add esp, 8
mov dword [esp + 0x1c], eax
lea ecx, [eax + 4]
cmp ecx, 6
ja case.0x40133e.1
movzx ecx, byte [ecx + 0x401414]
jmp dword [ecx*4 + 0x401408]
mov esi, 0x2000
sub esi, dword [esp + 0x30]
test ebp, ebp
je 0x4013b2
push ebp
push esi
push 1
push ebx
call fcn.0040deb0
add esp, 0x10
cmp eax, esi
jne 0x401370
push ebp
call fcn.0040d588
add esp, 4
test eax, eax
je 0x4013c3
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.00401d10
add esp, 0xc
or esi, 0xffffffff
pop edi
pop ebp
lea eax, [esp + 0x18]
push eax
call fcn.00409580
push dword [esp + 0x14]
call fcn.00412cc9
push ebx
call fcn.00412cc9
add esp, 0xc
mov eax, esi
pop esi
pop ebx
add esp, 0x48
ret
test edi, edi
je 0x4013c7
push esi
push ebx
push edi
call fcn.0040ac90
add esp, 0xc
add edi, esi
mov eax, dword [esp + 0x1c]
cmp dword [esp + 0x30], 0
je 0x401310
cmp eax, 1
je 0x401401
mov ecx, dword [esp + 0x14]
test ecx, ecx
jne 0x4013e5
cmp dword [esp + 0x10], ecx
jbe 0x401373
mov eax, dword [esp + 0x10]
jmp 0x4012b5
mov eax, 0xfffffffd
jmp 0x401373
cmp eax, 1
jne 0x401373
xor esi, esi
jmp 0x40138c
Function at 0x401420
Capabilities:
Read file on windows

Disassembly:
sub esp, 8
push ebp
push esi
mov esi, dword [esp + 0x14]
xor ebp, ebp
push edi
push 0x428520
push esi
call fcn.00402f90
mov edi, eax
add esp, 8
mov dword [esp + 0xc], edi
test edi, edi
jne 0x401462
mov eax, dword [esp + 0x1c]
add eax, 0x12
push eax
push str.Failed_to_extract__s:_failed_to_open_archive_file__n
call fcn.00401d10
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 + 0x1000]
adc eax, dword [esi + 0x1004]
push eax
push ecx
push edi
call fcn.0040dbb1
add esp, 0x10
test eax, eax
jns 0x4014b2
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.00401cf0
add esp, 0xc
push edi
call fcn.0040d52c
add esp, 4
mov eax, ebp
pop ebx
pop edi
pop esi
pop ebp
add esp, 8
ret
push dword [ebx + 0xc]
call fcn.00412ce4
mov ebp, eax
add esp, 4
mov dword [esp + 0x14], ebp
test ebp, ebp
jne 0x4014f3
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.00401cf0
add esp, 0x10
push edi
call fcn.0040d52c
add esp, 4
mov eax, ebp
pop ebx
pop edi
pop esi
pop ebp
add esp, 8
ret
cmp byte [ebx + 0x10], 1
jne 0x401508
push ebp
push 0
push ebx
push edi
call fcn.004011e0
add esp, 0x10
jmp 0x401577
mov esi, dword [ebx + 0xc]
xor ebx, ebx
test esi, esi
je 0x40154e
test ebx, ebx
jb 0x401526
ja 0x40151f
cmp esi, 0x2000
jbe 0x401526
mov edi, 0x2000
jmp 0x401528
mov edi, esi
push dword [esp + 0x10]
push 1
push edi
push ebp
call fcn.0040d78d
add esp, 0x10
cmp eax, 1
jb 0x401552
sub esi, edi
sbb ebx, 0
add ebp, edi
test ebx, ebx
ja 0x40151f
jb 0x40154e
test esi, esi
jne 0x401511
xor eax, eax
jmp 0x40156f
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.00401cf0
add esp, 0xc
or eax, 0xffffffff
mov ebp, dword [esp + 0x14]
mov edi, dword [esp + 0x10]
test eax, eax
je 0x401586
push ebp
call fcn.00412cc9
add esp, 4
xor ebp, ebp
push edi
call fcn.0040d52c
add esp, 4
mov eax, ebp
pop ebx
pop edi
pop esi
pop ebp
add esp, 8
ret