joyce8/EMBER2024-capa huggingface dataset:
Function at 0x57b960
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
cmp dword [ecx + 0x38], 0
push ebx
push esi
push edi
mov dword [ebp - 4], ecx
je 0x57ba34
mov esi, dword [ebp + 0x10]
mov ebx, esi
mov edx, dword [ebp + 0xc]
mov edi, edx
mov eax, dword [ebp + 8]
mov dword [ebp + 8], eax
test esi, esi
jl 0x57ba23
jg 0x57b998
test edx, edx
je 0x57ba23
call fcn.0045beb0
mov esi, eax
mov eax, edx
mov dword [ebp - 8], eax
test eax, eax
jl 0x57b9e8
jg 0x57b9ae
test esi, esi
je 0x57b9e8
cmp ebx, eax
jg 0x57b9bd
jl 0x57b9b8
cmp edi, esi
jae 0x57b9bd
mov esi, edi
mov dword [ebp - 8], ebx
mov eax, dword [ebp - 4]
push esi
mov eax, dword [eax + 0x1c]
push dword [eax]
push dword [ebp + 8]
call fcn.00524cd0
mov ecx, dword [ebp - 4]
add esp, 0xc
sub edi, esi
sbb ebx, dword [ebp - 8]
mov eax, dword [ecx + 0x2c]
sub dword [eax], esi
mov eax, dword [ecx + 0x1c]
add dword [eax], esi
mov eax, dword [ebp + 8]
jmp 0x57ba0a
mov ecx, dword [ebp - 4]
mov eax, dword [ecx]
call dword [eax + 0x1c]
mov ecx, eax
cmp ecx, 0xffffffff
je 0x57ba1d
mov eax, dword [ebp + 8]
add edi, 0xffffffff
mov esi, 1
adc ebx, 0xffffffff
mov byte [eax], cl
mov ecx, dword [ebp - 4]
add eax, esi
mov dword [ebp + 8], eax
test ebx, ebx
jg 0x57b998
jl 0x57ba1d
test edi, edi
jne 0x57b998
mov edx, dword [ebp + 0xc]
mov esi, dword [ebp + 0x10]
sub edx, edi
pop edi
sbb esi, ebx
mov eax, edx
mov edx, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
mov eax, dword [ecx + 0x1c]
mov esi, dword [ebp + 0xc]
mov edi, dword [ebp + 0x10]
mov dword [ebp - 0xc], esi
mov eax, dword [eax]
mov dword [ebp - 0x10], edi
mov dword [ebp - 8], eax
test eax, eax
je 0x57ba53
mov eax, dword [ecx + 0x2c]
mov eax, dword [eax]
jmp 0x57ba55
xor eax, eax
cdq
mov ebx, eax
mov eax, edx
mov dword [ebp + 0x10], eax
test edi, edi
jl 0x57bafd
jg 0x57ba6f
test esi, esi
je 0x57bafd
test eax, eax
jl 0x57baae
jg 0x57ba79
test ebx, ebx
je 0x57baae
cmp edi, eax
jg 0x57ba88
jl 0x57ba83
cmp esi, ebx
jae 0x57ba88
mov ebx, esi
mov dword [ebp + 0x10], edi
push ebx
push dword [ebp - 8]
push dword [ebp + 8]
call fcn.00524cd0
mov ecx, dword [ebp - 4]
add esp, 0xc
add dword [ebp + 8], ebx
sub esi, ebx
sbb edi, dword [ebp + 0x10]
mov eax, dword [ecx + 0x2c]
sub dword [eax], ebx
mov eax, dword [ecx + 0x1c]
add dword [eax], ebx
jmp 0x57bab4
mov eax, dword [ebp + 8]
mov dword [ebp + 8], eax
test edi, edi
jl 0x57bafd
jg 0x57babe
test esi, esi
je 0x57bafd
mov edx, dword [ecx + 0x4c]
test edx, edx
je 0x57bafd
mov ebx, dword [ecx + 0xc]
lea eax, [ecx + 0x3c]
cmp dword [ebx], eax
jne 0x57bae9
mov edx, dword [ecx + 0x54]
mov ecx, dword [ecx + 0x50]
sub edx, ecx
mov dword [ebx], ecx
mov ebx, dword [ebp - 4]
mov eax, dword [ebx + 0x1c]
mov dword [eax], ecx
mov eax, dword [ebx + 0x2c]
mov dword [eax], edx
mov edx, dword [ebx + 0x4c]
push edx
push esi
push 1
push dword [ebp + 8]
call fcn.005ccdc0
add esp, 0x10
sub esi, eax
sbb edi, 0
mov eax, dword [ebp - 0xc]
mov edx, dword [ebp - 0x10]
sub eax, esi
sbb edx, edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
Function at 0x57bb10
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
cmp dword [ecx + 0x38], 0
push ebx
push esi
push edi
mov dword [ebp - 4], ecx
je 0x57bbde
mov esi, dword [ebp + 0x10]
mov ebx, esi
mov edx, dword [ebp + 0xc]
mov edi, edx
mov eax, dword [ebp + 8]
mov dword [ebp + 8], eax
test esi, esi
jl 0x57bbcd
jg 0x57bb48
test edx, edx
je 0x57bbcd
call fcn.0045c700
mov esi, eax
mov eax, edx
mov dword [ebp - 8], eax
test eax, eax
jl 0x57bb96
jg 0x57bb5e
test esi, esi
je 0x57bb96
cmp ebx, eax
jg 0x57bb6d
jl 0x57bb68
cmp edi, esi
jae 0x57bb6d
mov esi, edi
mov dword [ebp - 8], ebx
mov ecx, dword [ebp - 4]
mov eax, dword [ebp + 8]
push esi
push eax
mov eax, dword [ecx + 0x20]
push dword [eax]
call fcn.00524cd0
mov ecx, dword [ebp - 4]
add esp, 0xc
sub edi, esi
sbb ebx, dword [ebp - 8]
mov eax, dword [ecx + 0x30]
sub dword [eax], esi
mov eax, dword [ecx + 0x20]
add dword [eax], esi
jmp 0x57bbba
mov ecx, dword [ebp - 4]
mov eax, dword [ecx]
mov edx, dword [eax + 0xc]
mov eax, dword [ebp + 8]
movzx eax, byte [eax]
push eax
call edx
cmp eax, 0xffffffff
je 0x57bbc7
mov ecx, dword [ebp - 4]
add edi, 0xffffffff
mov esi, 1
adc ebx, 0xffffffff
add dword [ebp + 8], esi
test ebx, ebx
jg 0x57bb48
jl 0x57bbc7
test edi, edi
jne 0x57bb48
mov edx, dword [ebp + 0xc]
mov esi, dword [ebp + 0x10]
sub edx, edi
pop edi
sbb esi, ebx
mov eax, edx
mov edx, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
mov eax, dword [ecx + 0x20]
mov esi, dword [ebp + 0xc]
mov edi, dword [ebp + 0x10]
mov dword [ebp - 0xc], esi
mov eax, dword [eax]
mov dword [ebp - 0x10], edi
mov dword [ebp - 8], eax
test eax, eax
je 0x57bbfd
mov eax, dword [ecx + 0x30]
mov eax, dword [eax]
jmp 0x57bbff
xor eax, eax
cdq
mov ebx, eax
mov eax, edx
mov dword [ebp + 0x10], eax
test edi, edi
jl 0x57bc78
jg 0x57bc11
test esi, esi
je 0x57bc78
test eax, eax
jl 0x57bc52
jg 0x57bc1b
test ebx, ebx
je 0x57bc52
cmp edi, eax
jg 0x57bc2a
jl 0x57bc25
cmp esi, ebx
jae 0x57bc2a
mov ebx, esi
mov dword [ebp + 0x10], edi
push ebx
push dword [ebp + 8]
push dword [ebp - 8]
call fcn.00524cd0
mov ecx, dword [ebp - 4]
add esp, 0xc
mov edx, dword [ebp + 8]
add edx, ebx
sub esi, ebx
mov eax, dword [ecx + 0x30]
sbb edi, dword [ebp + 0x10]
sub dword [eax], ebx
mov eax, dword [ecx + 0x20]
add dword [eax], ebx
jmp 0x57bc55
mov edx, dword [ebp + 8]
test edi, edi
jl 0x57bc78
jg 0x57bc5f
test esi, esi
je 0x57bc78
mov eax, dword [ecx + 0x4c]
test eax, eax
je 0x57bc78
push eax
push esi
push 1
push edx
call fcn.005cd4de
add esp, 0x10
sub esi, eax
sbb edi, 0
mov eax, dword [ebp - 0xc]
mov edx, dword [ebp - 0x10]
sub eax, esi
sbb edx, edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
Function at 0x5a7bd0
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
push 0
push dword [ebp + 8]
call fcn.005a81e0
add esp, 8
test al, al
je 0x5a7bf5
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
je 0x5a7bf5
mov al, 1
pop ebp
ret
xor al, al
pop ebp
ret

Function at 0x5a81e0
Capabilities:
Set file attributes

Disassembly:
push ebp
mov ebp, esp
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
test eax, eax
setne al
pop ebp
ret

Function at 0x5a9690
Capabilities:
Get file size

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
lea eax, [ebp - 4]
push eax
push dword [ecx]
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov esi, eax
cmp esi, 0xffffffff
jne 0x5a96bb
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
je 0x5a96bb
xor al, al
pop esi
mov esp, ebp
pop ebp
ret 4
mov eax, dword [ebp + 8]
xor ecx, ecx
mov edx, dword [ebp - 4]
add ecx, esi
pop esi
adc edx, 0
mov dword [eax], ecx
mov dword [eax + 4], edx
mov al, 1
mov esp, ebp
pop ebp
ret 4
Function at 0x5aac90
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x840
mov eax, dword [0x655494]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, dword [ebp + 8]
cmp dword [esi + 0x14], 8
jb 0x5aacb0
mov esi, dword [esi]
push 0x20a
lea eax, [ebp - 0x210]
push 0
push eax
call fcn.005245e0
push 0x20a
lea eax, [ebp - 0x628]
push 0
push eax
call fcn.005245e0
push esi
push 0x6273b4
lea eax, [ebp - 0x210]
push 0x104
push eax
call fcn.0040d440
add esp, 0x28
lea eax, [ebp - 0x210]
push 0x104
push eax
call dword [sym.imp.USER32.dll_CharLowerBuffW]
lea eax, [ebp - 0x210]
push eax
push 0x5edce8
push 0x6273bc
lea eax, [ebp - 0x628]
push 0x104
push eax
call fcn.0040d440
push 0x20a
lea eax, [ebp - 0x41c]
push 0
push eax
call fcn.005245e0
lea eax, [ebp - 0x210]
push eax
push str.SoftwareClasses_s
lea eax, [ebp - 0x41c]
push 0x104
push eax
call fcn.0040d440
lea eax, [ebp - 0x628]
push eax
lea eax, [ebp - 0x41c]
push eax
push SysReAllocString
call fcn.005ac2b0
push 0x20a
lea eax, [ebp - 0x834]
push 0
push eax
call fcn.005245e0
add esp, 0x48
lea eax, [ebp - 0x210]
push eax
push str.SOFTWAREMicrosoftWindowsCurrentVersionExplorerFileExts_s
lea eax, [ebp - 0x834]
push 0x104
push eax
call fcn.0040d440
lea eax, [ebp - 0x628]
push eax
lea eax, [ebp - 0x834]
push eax
push SysReAllocString
call fcn.005ac2b0
lea eax, [ebp - 0x210]
push eax
lea eax, [ebp - 0x838]
push eax
call fcn.005abb00
push 0x104
lea eax, [ebp - 0x318]
push 0
push eax
call fcn.005245e0
add esp, 0x30
mov dword [ebp - 0x840], 0
lea eax, [ebp - 0x83c]
mov dword [ebp - 0x83c], 0x104
push eax
lea eax, [ebp - 0x318]
push eax
lea eax, [ebp - 0x840]
push eax
push str.ProgId
push dword [ebp - 0x838]
push SysReAllocString
call dword [sym.imp.SHLWAPI.dll_SHGetValueW]
lea eax, [ebp - 0x628]
push eax
lea eax, [ebp - 0x318]
push eax
call dword [sym.imp.SHLWAPI.dll_StrCmpIW]
mov edx, dword [ebp - 0x838]
test eax, eax
sete bl
add edx, 0xfffffff0
or eax, 0xffffffff
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x5aae56
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
pop esi
test bl, bl
pop ebx
jne 0x5aae72
lea eax, [ebp - 0x628]
push eax
lea eax, [ebp - 0x210]
push eax
call fcn.005ab230
add esp, 8
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00468f28
mov esp, ebp
pop ebp
ret 4
Function at 0x5abfb0
Capabilities:
Delete registry value
Query or enumerate registry value
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x21c
mov eax, dword [0x655494]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 0x10]
lea eax, [ebp - 0x210]
push esi
mov esi, dword [ebp + 8]
push edi
mov edi, dword [ebp + 0xc]
push 0x20a
push 0
push eax
mov dword [ebp - 0x21c], ebx
call fcn.005245e0
add esp, 0xc
mov dword [ebp - 0x218], 0
lea eax, [ebp - 0x214]
mov dword [ebp - 0x214], 0x208
push eax
lea eax, [ebp - 0x210]
push eax
lea eax, [ebp - 0x218]
push eax
push 0x5eb574
push edi
push esi
call dword [sym.imp.SHLWAPI.dll_SHGetValueW]
push ebx
lea eax, [ebp - 0x210]
push eax
call dword [sym.imp.SHLWAPI.dll_StrCmpIW]
mov ebx, dword [sym.imp.SHLWAPI.dll_SHDeleteValueW]
test eax, eax
jne 0x5ac042
push 0x5eb574
push edi
push esi
call ebx
push 0x20a
lea eax, [ebp - 0x210]
push 0
push eax
call fcn.005245e0
add esp, 0xc
mov dword [ebp - 0x218], 0
lea eax, [ebp - 0x214]
mov dword [ebp - 0x214], 0x208
push eax
lea eax, [ebp - 0x210]
push eax
lea eax, [ebp - 0x218]
push eax
push str.BiscuitZip_bak
push edi
push esi
call dword [sym.imp.SHLWAPI.dll_SHGetValueW]
push dword [ebp - 0x21c]
lea eax, [ebp - 0x210]
push eax
call dword [sym.imp.SHLWAPI.dll_StrCmpIW]
test eax, eax
je 0x5ac0d4
cmp word [ebp - 0x210], 0
je 0x5ac0cb
push dword [ebp - 0x214]
lea eax, [ebp - 0x210]
push eax
push 1
push 0x5eb574
push edi
push esi
call dword [sym.imp.SHLWAPI.dll_SHSetValueW]
push str.BiscuitZip_bak
push edi
push esi
call ebx
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00468f28
mov esp, ebp
pop ebp
ret

Function at 0x5ac2b0
Capabilities:
Query or enumerate registry value
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x220
mov eax, dword [0x655494]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 0xc]
lea eax, [ebp - 0x210]
push esi
mov esi, dword [ebp + 0x10]
push edi
mov edi, dword [ebp + 8]
push 0x20a
push 0
push eax
mov dword [ebp - 0x220], esi
call fcn.005245e0
add esp, 0xc
mov dword [ebp - 0x218], 0
lea eax, [ebp - 0x214]
mov dword [ebp - 0x214], 0x208
push eax
lea eax, [ebp - 0x210]
push eax
lea eax, [ebp - 0x218]
push eax
push 0x5eb574
push ebx
push edi
call dword [sym.imp.SHLWAPI.dll_SHGetValueW]
mov dword [ebp - 0x21c], eax
mov eax, esi
lea edx, [eax + 2]
nop dword [eax]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x5ac330
sub eax, edx
sar eax, 1
add eax, eax
push eax
push esi
mov esi, dword [sym.imp.SHLWAPI.dll_SHSetValueW]
push 1
push 0x5eb574
push ebx
push edi
call esi
cmp dword [ebp - 0x21c], 0
jne 0x5ac396
cmp word [ebp - 0x210], 0
je 0x5ac396
push dword [ebp - 0x220]
lea eax, [ebp - 0x210]
push eax
call dword [sym.imp.SHLWAPI.dll_StrCmpIW]
test eax, eax
je 0x5ac396
push dword [ebp - 0x214]
lea eax, [ebp - 0x210]
push eax
push 1
push str.BiscuitZip_bak
push ebx
push edi
call esi
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00468f28
mov esp, ebp
pop ebp
ret
Function at 0x5acb20
Capabilities:
Check if file exists
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x414
mov eax, dword [0x655494]
xor eax, ebp
mov dword [ebp - 4], eax
push 0x208
lea eax, [ebp - 0x20c]
push 0
push eax
call fcn.005245e0
add esp, 0xc
lea eax, [ebp - 0x20c]
push 0
push 0x1a
push eax
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
push 0x5edce8
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x5acb8e
lea eax, [ebp - 0x20c]
push eax
push 0
call dword [sym.imp.SHELL32.dll_SHCreateDirectory]
push 0x208
lea eax, [ebp - 0x414]
push 0
push eax
call fcn.005245e0
add esp, 0xc
lea eax, [ebp - 0x20c]
push str.config.ini
push eax
lea eax, [ebp - 0x414]
push eax
call dword [sym.imp.SHLWAPI.dll_PathCombineW]
lea eax, [ebp - 0x414]
push eax
push 0x5f47fc
push str.linkA
push str.LinkType
call dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringW]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00468f28
mov esp, ebp
pop ebp
ret
Function at 0x5ae910
Capabilities:
Encode data using base64

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x4c4
mov eax, dword [0x655494]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0x10]
xorps xmm0, xmm0
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
push 0x68
mov dword [ebp - 0xa4], eax
lea eax, [ebp - 0x9c]
push 0
push eax
movlpd qword [ebp - 0xb4], xmm0
movlpd qword [ebp - 0xac], xmm0
movlpd qword [ebp - 0xc], xmm0
call fcn.005245e0
lea eax, [ebp - 0x9c]
push 0
push eax
call fcn.0043a170
mov esi, dword [ebp + 0xc]
lea eax, [ebp - 0x9c]
push esi
push edi
push eax
call fcn.0043a1c0
lea eax, [ebp - 0x9c]
push eax
call fcn.00439ea0
movups xmm0, xmmword [ebp - 0x44]
push 0x20
lea eax, [ebp - 0x34]
push eax
movups xmmword [ebp - 0xc4], xmm0
push esi
xorps xmm0, xmm0
push edi
movups xmmword [ebp - 0x34], xmm0
movups xmmword [ebp - 0x24], xmm0
call fcn.005ca540
push 0x400
lea eax, [ebp - 0x4c4]
push 0
push eax
call fcn.005245e0
mov eax, esi
add esp, 0x40
and al, 4
cmp al, 1
sbb eax, eax
shr esi, 2
neg eax
lea ebx, [esi - 1]
add ebx, eax
cmp ebx, 1
jbe 0x5aeb16
test bl, 1
jne 0x5aeb16
lea ecx, [ebp - 0x4c4]
dec eax
push ecx
lea ecx, [ebp - 0xc4]
add eax, esi
push ecx
push eax
push edi
call fcn.005ae560
add esp, 0x10
test al, al
je 0x5aeb16
lea eax, [ebp - 0x4bc]
push eax
lea eax, [ebp - 0xc4]
push eax
push ebx
push edi
call fcn.005ae720
add esp, 0x10
test al, al
je 0x5aeb16
mov eax, dword [ebp - 0x4c4]
xor eax, dword [ebp - 0x4bc]
mov edi, dword [ebp - 0xa4]
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x4c0]
xor eax, dword [ebp - 0x4b8]
mov dword [ebp - 0x10], eax
xor eax, eax
mov dword [ebp - 0xa0], eax
add edi, 4
mov dl, byte [ebp + eax - 0x14]
lea ecx, [eax + 1]
cmp ecx, 8
jb 0x5aea64
xor bh, bh
jmp 0x5aea68
mov bh, byte [ebp + eax - 0x13]
cmp ecx, 8
sbb ecx, ecx
neg ecx
inc ecx
add eax, ecx
cmp eax, 8
jb 0x5aea7b
xor bl, bl
jmp 0x5aea80
mov bl, byte [ebp + eax - 0x14]
inc eax
movzx edx, dl
mov ecx, edx
movzx esi, bh
shr ecx, 2
and edx, 3
shl edx, 4
movzx ecx, word [ecx*2 + 0x6277d8]
mov word [edi - 4], cx
mov ecx, esi
shr ecx, 4
and esi, 0xf
or ecx, edx
shl esi, 2
movzx edx, bl
mov ebx, dword [ebp - 0xa0]
add ebx, 4
movzx ecx, word [ecx*2 + 0x6277d8]
mov word [edi - 2], cx
mov ecx, edx
shr ecx, 6
and edx, 0x3f
or esi, ecx
mov dword [ebp - 0xa0], ebx
movzx ecx, word [esi*2 + 0x6277d8]
mov word [edi], cx
movzx ecx, word [edx*2 + 0x6277d8]
mov word [edi + 2], cx
add edi, 8
cmp eax, 8
jb 0x5aea54
mov eax, dword [ebp - 0xa4]
pop edi
pop esi
mov dword [eax + ebx*2 - 2], 0x3d
mov al, 1
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00468f28
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
xor al, al
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00468f28
mov esp, ebp
pop ebp
ret
Function at 0x5ca250
Capabilities:
Get file size
Read file via mapping

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x8c
mov eax, dword [0x655494]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
xor ebx, ebx
xor esi, esi
mov dword [ebp - 0x80], eax
mov dword [ebp - 0x70], ebx
test edi, edi
je 0x5ca418
test eax, eax
je 0x5ca418
mov ecx, dword [ebp + 0x10]
cmp ecx, 0x20
jl 0x5ca418
push ecx
push ebx
push eax
call fcn.005245e0
add esp, 0xc
push ebx
push 1
push 3
push ebx
push 1
push 1
push edi
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
mov dword [ebp - 0x84], edi
test edi, edi
je 0x5ca418
cmp edi, 0xffffffff
je 0x5ca411
lea eax, [ebp - 0x6c]
push ebx
push eax
call fcn.0043a170
add esp, 8
lea eax, [ebp - 0x78]
xorps xmm0, xmm0
movq qword [ebp - 0x78], xmm0
push eax
push edi
call dword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
je 0x5ca411
mov eax, dword [ebp - 0x78]
or eax, dword [ebp - 0x74]
je 0x5ca3a7
push ebx
push ebx
push ebx
push 2
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_CreateFileMappingW]
mov edx, eax
mov dword [ebp - 0x70], edx
test edx, edx
je 0x5ca411
mov ecx, dword [ebp - 0x74]
xorps xmm0, xmm0
movq qword [ebp - 0x8c], xmm0
mov eax, dword [ebp - 0x88]
mov dword [ebp - 0x7c], eax
cmp eax, ecx
jg 0x5ca3a7
mov esi, dword [ebp - 0x78]
mov edi, dword [ebp - 0x8c]
jl 0x5ca340
cmp edi, esi
jae 0x5ca3a7
nop
sub esi, edi
sbb ecx, eax
js 0x5ca355
jg 0x5ca350
cmp esi, 0x400000
jb 0x5ca355
mov esi, 0x400000
push esi
push edi
push eax
push 4
push edx
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov ebx, eax
test ebx, ebx
je 0x5ca3a7
push esi
lea eax, [ebp - 0x6c]
push ebx
push eax
call fcn.0043a1c0
add esp, 0xc
push ebx
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
mov eax, dword [ebp - 0x7c]
xor ebx, ebx
mov ecx, dword [ebp - 0x74]
add edi, 0x400000
adc eax, ebx
mov dword [ebp - 0x7c], eax
cmp eax, ecx
jge 0x5ca39b
mov esi, dword [ebp - 0x78]
mov edx, dword [ebp - 0x70]
jmp 0x5ca340
jg 0x5ca3a7
mov esi, dword [ebp - 0x78]
mov edx, dword [ebp - 0x70]
cmp edi, esi
jb 0x5ca340
lea eax, [ebp - 0x6c]
push eax
call fcn.00439ea0
mov edi, dword [ebp - 0x80]
add esp, 4
xor esi, esi
nop dword [eax + eax]
movzx eax, byte [ebp + esi - 0x14]
push eax
push 0x62963c
push 3
push edi
call fcn.0045de30
inc esi
add esp, 0x10
add edi, 2
cmp esi, 0x10
jl 0x5ca3c0
push dword [ebp + 0x10]
push dword [ebp - 0x80]
call fcn.005cfddd
add esp, 8
mov esi, 1
test ebx, ebx
je 0x5ca3fd
push ebx
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
mov eax, dword [ebp - 0x70]
test eax, eax
je 0x5ca40b
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov edi, dword [ebp - 0x84]
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 4]
mov eax, esi
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00468f28
mov esp, ebp
pop ebp
ret
Function at 0x401040
Capabilities:
Read file on windows
Write file on windows

Disassembly:
sub esp, 0x48
push ebx
push esi
xor ebx, ebx
lea eax, [esp + 0x18]
push 0x38
push str.1.2.11
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.00407a00
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.00401c30
add esp, 0xc
or eax, 0xffffffff
pop esi
pop ebx
add esp, 0x48
ret
push 0x2000
call fcn.0040e730
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.00401c10
add esp, 0xc
jmp 0x4011f0
push 0x2000
call fcn.0040e730
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.00401c10
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.0040ad5e
add esp, 0x10
cmp eax, esi
jne 0x4011eb
mov eax, dword [esp + 0x5c]
push dword [eax]
call fcn.0040ab4c
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.00406070
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.0040b976
add esp, 0x10
cmp eax, esi
jne 0x4011d2
push ebp
call fcn.0040ab4c
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.00401c30
add esp, 0xc
or esi, 0xffffffff
pop edi
pop ebp
lea eax, [esp + 0x18]
push eax
call fcn.00407840
push dword [esp + 0x14]
call fcn.0040e715
push ebx
call fcn.0040e715
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.004097b0
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:
push ecx
push ebp
mov ebp, dword [esp + 0xc]
mov edx, dword [ebp]
test edx, edx
jne 0x4012e1
lea eax, [ebp + 0x70]
push 0x422210
push eax
call fcn.00402b00
mov edx, eax
add esp, 8
mov dword [ebp], edx
test edx, edx
jne 0x4012e1
mov eax, dword [esp + 0x10]
add eax, 0x12
push eax
push str.Failed_to_extract__s:_failed_to_open_archive_file__n
call fcn.00401c30
add esp, 8
xor eax, eax
pop ebp
pop ecx
ret
push ebx
mov ebx, dword [esp + 0x14]
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.0040b155
add esp, 0x10
test eax, eax
jns 0x40131e
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.00401c10
add esp, 0xc
xor eax, eax
pop ebx
pop ebp
pop ecx
ret
push esi
push edi
push dword [ebx + 0xc]
call fcn.0040e730
mov esi, eax
add esp, 4
mov dword [esp + 0x18], esi
test esi, esi
jne 0x401350
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.00401c10
add esp, 0x10
jmp 0x4013cb
cmp byte [ebx + 0x10], 1
jne 0x401374
push esi
push 0
push ebx
push ebp
call fcn.00401040
add esp, 0x10
test eax, eax
je 0x4013cb
push esi
call fcn.0040e715
add esp, 4
xor esi, esi
jmp 0x4013cb
mov eax, esi
mov esi, dword [ebx + 0xc]
xor ebx, ebx
mov dword [esp + 0x10], eax
test esi, esi
je 0x4013c7
test ebx, ebx
jb 0x401398
ja 0x401391
cmp esi, 0x2000
jbe 0x401398
mov edi, 0x2000
jmp 0x40139a
mov edi, esi
push dword [ebp]
push 1
push edi
push eax
call fcn.0040ad5e
add esp, 0x10
cmp eax, 1
jb 0x4013ea
mov eax, dword [esp + 0x10]
sub esi, edi
sbb ebx, 0
add eax, edi
mov dword [esp + 0x10], eax
test ebx, ebx
ja 0x401391
jb 0x4013c7
test esi, esi
jne 0x401383
mov esi, dword [esp + 0x18]
mov eax, dword [ebp]
test eax, eax
je 0x4013e2
push eax
call fcn.0040aa9c
add esp, 4
mov dword [ebp], 0
pop edi
mov eax, esi
pop esi
pop ebx
pop ebp
pop ecx
ret
mov eax, dword [esp + 0x1c]
add eax, 0x12
push eax
push str.Failed_to_extract__s:_failed_to_read_data_chunk__n
push str.fread
call fcn.00401c10
mov esi, dword [esp + 0x24]
add esp, 0xc
push esi
call fcn.0040e715
add esp, 4
xor esi, esi
jmp 0x4013cb