joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4019e0
Capabilities:
Inspect load icon resource
Packed with generic packer

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebp
pop dword [0x4327f4]
push dword [0x4327f4]
push 0x4019fb
jmp fcn.00401630

Function at 0x401aa0
Capabilities:
Inspect load icon resource

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
cmp dword [ebp + 8], 1
jne 0x401ab4
mov eax, dword [0x432814]
mov dword [ebp + 8], eax
mov dword [ebp - 8], 0
jmp 0x401ac6
mov ecx, dword [ebp - 8]
add ecx, 1
mov dword [ebp - 8], ecx
mov edx, dword [0x432818]
shr edx, 1
cmp dword [ebp - 8], edx
jae 0x401b43
mov eax, dword [ebp - 8]
mov ecx, dword [0x4327fc]
movzx edx, word [ecx + eax*2]
mov dword [ebp - 4], edx
mov eax, dword [ebp - 4]
and eax, 0xfff
add eax, 0x1a7daf1c
mov dword [ebp - 0xc], eax
mov ecx, dword [ebp + 8]
mov edx, dword [ecx]
mov eax, dword [ebp - 0xc]
lea ecx, [eax + edx - 0x1a7daf1c]
mov dword [ebp - 0x10], ecx
mov edx, dword [ebp - 4]
shr edx, 0xc
cmp edx, 3
jne 0x401b3e
cmp dword [ebp - 8], 0
jne 0x401b2b
push 0xc938
push 0
call dword [sym.imp.USER32.dll_LoadIconA]
test eax, eax
je 0x401b2b
xor eax, eax
jmp 0x401b43
mov eax, dword [ebp + 0xc]
add eax, dword [ebp - 0x10]
mov ecx, dword [eax]
add ecx, dword [ebp + 0x10]
mov edx, dword [ebp + 0xc]
add edx, dword [ebp - 0x10]
mov dword [edx], ecx
jmp 0x401abd
mov esp, ebp
pop ebp
ret

Function at 0x401b50
Capabilities:
Inspect load icon resource

Disassembly:
push ebp
mov ebp, esp
push 0x15b3
push 0
call dword [sym.imp.USER32.dll_LoadIconA]
test eax, eax
je 0x401b68
xor eax, eax
jmp 0x401b78
mov eax, dword [ebp + 0xc]
push eax
mov ecx, dword [ebp + 8]
push ecx
call fcn.00401350
add esp, 8
pop ebp
ret
Function at 0x4037dd
Capabilities:
Identify system language via api

Disassembly:
cmp byte [0x436000], 0
push ebx
push ebp
push esi
push edi
mov edi, pe_overlay
mov ebx, 0x436000
je 0x4037fc
push ebx
call fcn.00405915
jmp 0x403802
call dword [sym.imp.KERNEL32.dll_GetUserDefaultLangID]
xor ecx, ecx
mov esi, dword [0x42f064]
test esi, esi
je 0x403855
mov ecx, dword [0x42f028]
mov ecx, dword [ecx + 0x64]
mov edx, ecx
imul ecx, esi
neg edx
add ecx, dword [0x42f060]
add ecx, edx
dec esi
mov bp, word [ecx]
xor bp, ax
and ebp, edi
test bp, bp
je 0x40383a
test esi, esi
jne 0x403824
jmp 0x403855
mov edx, dword [ecx + 2]
mov dword [0x42e800], edx
mov edx, dword [ecx + 6]
mov dword [0x42f0c8], edx
lea edx, [ecx + 0xa]
mov dword [0x42e7fc], edx
cmp dword [0x42e7fc], 0
jne 0x403870
cmp di, 0xffff
jne 0x40386c
mov edi, 0x3ff
jmp 0x403804
xor edi, edi
jmp 0x403804
movzx eax, word [ecx]
push eax
push ebx
call fcn.004058fc
push 0xfffffffffffffffe
push 0x42e820
call fcn.004059aa
push eax
push dword [0x42a478]
call dword [sym.imp.USER32.dll_SetWindowTextA]
mov eax, dword [0x42f04c]
mov esi, dword [0x42f048]
test eax, eax
je 0x4038bd
mov edi, eax
mov eax, dword [esi]
test eax, eax
je 0x4038b4
push eax
lea eax, [esi + 0x18]
push eax
call fcn.004059aa
add esi, 0x418
dec edi
jne 0x4038a4
pop edi
pop esi
pop ebp
pop ebx
ret

Function at 0x405237
Capabilities:
Check if file exists
Create process on windows
Get file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push dword [ebp + 0xc]
mov dword [0x42bca0], 0x44
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
xor ecx, ecx
cmp eax, 0xffffffff
je 0x40525b
test al, 0x10
jne 0x40525e
mov dword [ebp + 0xc], ecx
lea eax, [ebp - 0x10]
push eax
push 0x42bca0
push dword [ebp + 0xc]
push ecx
push ecx
push ecx
push ecx
push ecx
push dword [ebp + 8]
push ecx
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
test eax, eax
je 0x405289
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0x10]
leave
ret 8
Function at 0x405300
Capabilities:
Delete directory
Delete file
Enumerate files on windows
Enumerate files recursively
Set file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x144
push ebx
mov ebx, dword [ebp + 8]
push esi
push ebx
call fcn.00405585
mov ecx, dword [ebp + 0xc]
mov dword [ebp - 4], eax
test cl, 8
je 0x405336
push ebx
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
neg eax
sbb eax, eax
inc eax
add dword [0x42f0a8], eax
jmp 0x40549e
mov dword [ebp + 8], ecx
push edi
and dword [ebp + 8], 1
je 0x405351
test eax, eax
je 0x40544f
test cl, 2
je 0x40544f
mov esi, 0x42b4a0
push ebx
push esi
call sub.KERNEL32.dll_lstrcpyA
cmp dword [ebp + 8], 0
mov edi, dword [sym.imp.KERNEL32.dll_lstrcatA]
je 0x405373
push str..
push esi
call edi
jmp 0x405379
push ebx
call fcn.004054ec
push 0x40900c
push ebx
call edi
push ebx
call sub.KERNEL32.dll_lstrlenA
mov edi, eax
lea eax, [ebp - 0x144]
push eax
push esi
add edi, ebx
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov esi, eax
cmp esi, 0xffffffff
je 0x405445
cmp byte [ebp - 0x118], 0x2e
jne 0x4053bf
cmp byte [ebp - 0x117], 0x2e
je 0x405428
cmp byte [ebp - 0x117], 0
je 0x405428
lea eax, [ebp - 0x118]
push eax
push edi
call sub.KERNEL32.dll_lstrcpyA
mov eax, dword [ebp - 0x144]
test al, 0x10
je 0x4053eb
mov eax, dword [ebp + 0xc]
and eax, 3
cmp al, 3
jne 0x405428
push dword [ebp + 0xc]
push ebx
call fcn.00405300
jmp 0x405428
and al, 0xfe
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
push ebx
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
test eax, eax
jne 0x405420
test byte [ebp + 0xc], 4
je 0x405418
push ebx
push 0xfffffffffffffff1
call fcn.00404d56
push 0
push ebx
call fcn.004056db
jmp 0x405428
inc dword [0x42f0a8]
jmp 0x405428
push ebx
push 0xfffffffffffffff2
call fcn.00404d56
lea eax, [ebp - 0x144]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x4053a4
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
cmp dword [ebp + 8], 0
je 0x40544f
and byte [edi - 1], 0
xor esi, esi
pop edi
cmp dword [ebp + 8], esi
je 0x40549e
cmp dword [ebp - 4], esi
jne 0x405464
inc dword [0x42f0a8]
jmp 0x40549e
push ebx
call fcn.00405c80
test eax, eax
je 0x40549e
push ebx
call fcn.004054a4
push ebx
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryA]
test eax, eax
jne 0x405496
test byte [ebp + 0xc], 4
je 0x40545c
push ebx
push 0xfffffffffffffff1
call fcn.00404d56
push esi
push ebx
call fcn.004056db
jmp 0x40549e
push ebx
push 0xffffffffffffffe5
call fcn.00404d56
pop esi
pop ebx
leave
ret 8
Function at 0x401063
Capabilities:
Enumerate pe sections
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov edx, dword [ebp + 0x10]
push esi
mov esi, ecx
mov ecx, dword [ebp + 0xc]
mov dword [esi], eax
xor eax, eax
push edi
mov edi, dword [ebp + 0x18]
mov dword [esi + 8], eax
mov dword [esi + 0x14], eax
mov dword [esi + 0x18], eax
mov dword [esi + 0x1c], eax
mov dword [esi + 0x20], eax
mov dword [esi + 0x24], eax
mov dword [esi + 0x28], eax
mov dword [esi + 0x2c], eax
lea eax, [ebp + 8]
push eax
push 0x40
push dword [ebp + 0x1c]
mov dword [esi + 0xc], edx
mov edx, dword [ebp + 0x14]
push edi
mov dword [esi + 4], ecx
mov dword [esi + 0x10], edx
call dword [ecx + 0x18]
test eax, eax
jne 0x4010bb
mov dword [esi + 8], 9
jmp 0x401194
push ebx
mov ebx, dword [esi + 0x10]
cmp ebx, 0x40
jae 0x4010d0
mov dword [esi + 8], 1
jmp 0x401193
mov eax, dword [esi + 0xc]
mov ecx, 0x5a4d
mov dword [esi + 0x14], eax
cmp word [eax], cx
je 0x4010ec
mov dword [esi + 8], 2
jmp 0x401193
mov ecx, dword [eax + 0x3c]
lea edx, [ecx + 0xf8]
cmp ebx, edx
jae 0x401105
mov dword [esi + 8], 3
jmp 0x401193
add ecx, eax
mov dword [esi + 0x18], ecx
cmp dword [ecx], 0x4550
je 0x40111b
mov dword [esi + 8], 4
jmp 0x401193
mov edx, dword [esi + 0x18]
mov ecx, edi
and ecx, 0xfff
sub edi, ecx
lea ecx, [edi + 0x1000]
mov dword [esi + 0x20], ecx
mov edx, dword [edx + 0x54]
add edx, dword [eax + 0x3c]
cmp ebx, edx
jae 0x401144
mov dword [esi + 8], 7
jmp 0x401193
push edx
push eax
push ecx
call fcn.0040103e
mov eax, dword [esi + 0x18]
movzx ecx, word [eax + 0x14]
xor edx, edx
add esp, 0xc
xor ebx, ebx
lea ecx, [ecx + eax + 0x18]
cmp dx, word [eax + 6]
jae 0x401193
lea edi, [ecx + 0x10]
mov eax, dword [edi]
test eax, eax
je 0x401184
push eax
mov eax, dword [edi + 4]
add eax, dword [esi + 0xc]
push eax
mov eax, dword [edi - 4]
add eax, dword [esi + 0x20]
push eax
call fcn.0040103e
add esp, 0xc
mov eax, dword [esi + 0x18]
movzx eax, word [eax + 6]
inc ebx
add edi, 0x28
cmp ebx, eax
jl 0x401167
pop ebx
pop edi
mov eax, esi
pop esi
pop ebp
ret 0x18

Function at 0x4011bf
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x3c]
lea ecx, [ecx + eax + 0x78]
cmp dword [ecx + 4], 0
push ebx
push edi
jne 0x4011da
xor eax, eax
jmp 0x40124a
push esi
mov esi, dword [ecx]
add esi, eax
mov ecx, dword [esi + 0x18]
test ecx, ecx
je 0x401247
cmp dword [esi + 0x14], 0
je 0x401247
mov edi, dword [esi + 0x20]
mov ebx, dword [esi + 0x24]
or dword [ebp - 8], 0xffffffff
add edi, eax
add ebx, eax
test ecx, ecx
je 0x401247
mov dword [ebp - 4], ecx
jmp 0x401206
mov eax, dword [ebp + 8]
mov ecx, dword [edi]
add ecx, eax
push ecx
push dword [ebp + 0xc]
call section..text
pop ecx
pop ecx
test eax, eax
jne 0x40121f
movzx eax, word [ebx]
mov dword [ebp - 8], eax
add edi, 4
add ebx, 2
dec dword [ebp - 4]
jne 0x401203
mov eax, dword [ebp - 8]
cmp eax, 0xffffffff
je 0x401247
cmp eax, dword [esi + 0x14]
jg 0x401247
mov ecx, dword [esi + 0x1c]
lea eax, [ecx + eax*4]
mov ecx, dword [ebp + 8]
mov eax, dword [eax + ecx]
add eax, ecx
jmp 0x401249
xor eax, eax
pop esi
pop edi
pop ebx
leave
ret 8
Function at 0x40195c
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
mov ecx, dword [ebp + 0x14]
mov edx, dword [ecx]
mov ecx, dword [ebp + 0xc]
xor eax, eax
and edx, 7
cmp ecx, 5
jae 0x401975
leave
ret
add dword [ebp + 0x10], 5
or dword [ebp + 0xc], 0xffffffff
push ebx
push esi
mov esi, dword [ebp + 8]
lea ecx, [esi + ecx - 4]
push edi
mov dword [ebp - 4], ecx
lea edi, [eax + esi]
jmp 0x401998
mov al, byte [edi]
and al, 0xfe
cmp al, 0xe8
je 0x40199d
inc edi
cmp edi, dword [ebp - 4]
jb 0x40198f
mov eax, edi
sub eax, esi
mov dword [ebp - 8], eax
cmp edi, dword [ebp - 4]
jae 0x401a95
mov ecx, eax
sub ecx, dword [ebp + 0xc]
cmp ecx, 3
jbe 0x4019f4
xor edx, edx
mov cl, byte [edi + 4]
mov dword [ebp + 0xc], eax
test cl, cl
je 0x4019c8
cmp cl, 0xff
jne 0x401a1f
movzx esi, cl
movzx ecx, byte [edi + 3]
shl esi, 8
or esi, ecx
movzx ecx, byte [edi + 2]
shl esi, 8
or esi, ecx
movzx ecx, byte [edi + 1]
shl esi, 8
or esi, ecx
cmp dword [ebp + 0x18], 0
je 0x401a2d
lea ebx, [esi + eax]
add ebx, dword [ebp + 0x10]
jmp 0x401a34
dec ecx
shl edx, cl
and edx, 7
je 0x4019b9
movzx ecx, byte [edx + 0x1039218]
mov ebx, edi
sub ebx, ecx
cmp byte [edx + 0x1039210], 0
mov cl, byte [ebx + 4]
je 0x401a1c
test cl, cl
je 0x401a1c
cmp cl, 0xff
jne 0x4019b9
mov dword [ebp + 0xc], eax
and edx, 3
add edx, edx
or edx, 1
inc eax
jmp 0x40198a
sub esi, eax
sub esi, dword [ebp + 0x10]
mov ebx, esi
test edx, edx
je 0x401a68
movzx esi, byte [edx + 0x1039218]
push 0x18
shl esi, 3
pop ecx
sub ecx, esi
mov eax, ebx
shr eax, cl
test al, al
je 0x401a53
cmp al, 0xff
jne 0x401a65
mov eax, dword [ebp - 8]
push 0x20
pop ecx
sub ecx, esi
xor esi, esi
inc esi
shl esi, cl
dec esi
xor esi, ebx
jmp 0x4019e6
mov eax, dword [ebp - 8]
mov esi, dword [ebp + 8]
mov ecx, ebx
shr ecx, 0x18
and cl, 1
dec cl
not cl
mov byte [edi + 4], cl
mov ecx, ebx
shr ecx, 0x10
mov byte [edi + 3], cl
mov ecx, ebx
shr ecx, 8
mov byte [edi + 2], cl
mov byte [edi + 1], bl
add eax, 5
jmp 0x40198a
mov esi, eax
sub esi, dword [ebp + 0xc]
push 3
lea ecx, [esi - 1]
shl edx, cl
pop edi
and edx, 7
cmp edi, esi
sbb ecx, ecx
not ecx
pop edi
and ecx, edx
mov edx, dword [ebp + 0x14]
pop esi
mov dword [edx], ecx
pop ebx
leave
ret

Function at 0x4032a5
Capabilities:
Encode data using xor

Disassembly:
push esi
mov eax, section..data
mov ecx, 0x202b
mov esi, 0x3ad80c
imul ecx, ecx, 0x19660d
add ecx, 0x3c6ef35f
mov edx, ecx
shr edx, 0xc
xor byte [eax], dl
inc eax
dec esi
jne 0x4032b5
pop esi
ret
Function at 0x403411
Capabilities:
Enumerate pe sections

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
and dword [ebp - 4], 0
push ebx
mov ebx, eax
push esi
mov esi, dword [ebx + 0x3c]
add esi, ebx
movzx eax, word [esi + 0x14]
push edi
lea edi, [eax + esi + 0x18]
xor eax, eax
cmp ax, word [esi + 6]
jae 0x403458
push 7
push str..custom
push edi
call fcn.0040167f
add esp, 0xc
test eax, eax
je 0x40345f
movzx eax, word [esi + 6]
inc dword [ebp - 4]
add edi, 0x28
cmp dword [ebp - 4], eax
jl 0x403435
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
mov eax, dword [edi + 0xc]
mov esi, dword [eax + ebx]
lea edi, [eax + ebx + 8]
mov ebx, dword [eax + ebx + 4]
push esi
call fcn.0040379e
and dword [ebp - 8], 0
lea ecx, [ebp - 0x18]
push ecx
lea ecx, [ebp - 8]
push ecx
push 1
push 5
push edi
lea ecx, [ebp - 0xc]
push ecx
add edi, 5
push edi
lea ecx, [ebp - 0x10]
push ecx
push eax
mov dword [ebp - 4], eax
mov dword [ebp - 0x10], esi
mov dword [ebp - 0xc], ebx
mov dword [ebp - 0x18], 0x4032ce
mov dword [ebp - 0x14], 0x4032d9
call fcn.0040320c
add esp, 0x28
test eax, eax
je 0x4034bf
push dword [ebp - 4]
call fcn.004037b5
pop ecx
jmp 0x403458
mov eax, dword [ebp + 8]
mov dword [eax], esi
mov eax, dword [ebp - 4]
jmp 0x40345a

Function at 0x4036f2
Capabilities:
Encode data using xor

Disassembly:
mov edx, dword [esp + 4]
push ebx
mov ebx, dword [esp + 0x10]
push esi
xor esi, esi
test ebx, ebx
je 0x403731
push edi
mov edi, dword [esp + 0x14]
sub edi, 0x13e7818
imul edx, edx, 0x19660d
add edx, 0x3c6ef35f
mov eax, edx
shr eax, 0xc
xor al, byte [edi + esi + 0x13e7818]
inc esi
mov byte [esi + 0x13e7817], al
cmp esi, ebx
jb 0x40370d
pop edi
pop esi
mov byte [ebx + 0x13e7818], 0
mov eax, 0x13e7818
pop ebx
ret

Function at 0x403740
Capabilities:
Encode data using xor

Disassembly:
mov edx, dword [esp + 4]
push esi
push edi
mov edi, dword [esp + 0x14]
xor esi, esi
test edi, edi
je 0x40377e
mov eax, dword [esp + 0x10]
sub eax, 0x13e7818
push ebx
imul edx, edx, 0x19660d
add edx, 0x3c6ef35f
mov ebx, edx
shr ebx, 0xc
xor bl, byte [eax + esi + 0x13e7818]
inc esi
mov byte [esi + 0x13e7817], bl
cmp esi, edi
jb 0x40375a
pop ebx
mov byte [edi + 0x13e7818], 0
mov byte [edi + 0x13e7819], 0
pop edi
mov eax, 0x13e7818
pop esi
ret
Function at 0x662bc0
Capabilities:
Encode data using xor

Disassembly:
xor al, al
cmp dword [esp + 8], 0
push ebp
mov ebp, dword [esp + 8]
je 0x662c57
test ebp, ebp
je 0x662c57
mov eax, ebp
lea edx, [eax + 2]
nop
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x662be0
sub eax, edx
push ebx
sar eax, 1
shr eax, 1
push esi
mov ebx, eax
push edi
lea edi, [ebx + 2]
push edi
call fcn.0066374f
mov esi, eax
add esp, 4
test esi, esi
je 0x662c52
push edi
push 0
push esi
call fcn.00666370
push esi
push ebp
mov eax, ebx
call fcn.006620d0
add esp, 0x14
xor eax, eax
test ebx, ebx
jbe 0x662c2b
xor byte [eax + esi], bl
inc eax
cmp eax, ebx
jb 0x662c23
mov ecx, dword [esp + 0x18]
lea eax, [ebx + ebx]
push eax
push ecx
push ebx
push esi
push 0
push 0
call dword [0x66f018]
push esi
mov bl, 1
call fcn.0066574e
add esp, 4
pop edi
pop esi
mov al, bl
pop ebx
pop ebp
ret
pop edi
pop esi
xor al, al
pop ebx
pop ebp
ret

Function at 0x408951
Capabilities:
Encode data using xor

Disassembly:
push 0x4085d8
mov eax, dword [esp]
add esp, 4
call fcn.00408976
sub ebx, ebx
xor dword [edx], eax
and ebx, ebx
add ecx, ecx
inc edx
sub ecx, 1
cmp edx, esi
jne fcn.00408951
inc ecx
ret
Function at 0x401040
Capabilities:
Read file on windows

Disassembly:
sub esp, 0x10
push ebx
push ebp
push esi
mov esi, dword [esp + 0x20]
push 0x425550
push esi
mov dword [esp + 0x1c], 0xffffffff
call fcn.00403770
mov ebp, eax
add esp, 8
test ebp, ebp
jne 0x401091
mov eax, dword [esp + 0x24]
add eax, 0x12
push eax
push str.Failed_to_extract__s:_failed_to_open_archive_file__n
call fcn.00401dd0
add esp, 8
xor ebx, ebx
push ebx
call fcn.00410cf7
mov eax, dword [esp + 0x18]
add esp, 4
pop esi
pop ebp
pop ebx
add esp, 0x10
ret
push edi
mov edi, dword [esp + 0x28]
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 ebp
call fcn.0040d3f0
add esp, 0x10
test eax, eax
jns 0x4010e2
call fcn.00410cd9
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.00401f20
push ebp
call fcn.0040cd37
add esp, 0x14
jmp 0x40120f
push dword [edi + 0xc]
call fcn.00410d12
mov esi, eax
add esp, 4
mov dword [esp + 0x10], esi
mov ebx, esi
mov dword [esp + 0x1c], ebx
test esi, esi
jne 0x40113b
mov esi, dword [edi + 0xc]
call fcn.00410cd9
mov ecx, eax
lea eax, [edi + 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.00401f20
push ebp
call fcn.0040cd37
add esp, 0x18
pop edi
push ebx
call fcn.00410cf7
mov eax, dword [esp + 0x18]
add esp, 4
pop esi
pop ebp
pop ebx
add esp, 0x10
ret
cmp byte [edi + 0x10], 1
jne 0x401158
push esi
push 0
push edi
push ebp
call fcn.00401230
add esp, 0x10
test eax, eax
jne 0x401200
jmp 0x4011af
mov edi, dword [edi + 0xc]
xor ebx, ebx
mov dword [esp + 0x14], eax
test edi, edi
je 0x4011ab
test ebx, ebx
jb 0x40117a
ja 0x401173
cmp edi, 0x2000
jbe 0x40117a
mov esi, 0x2000
jmp 0x40117c
mov esi, edi
push ebp
push 1
push esi
push eax
call fcn.0040cff9
add esp, 0x10
cmp eax, 1
jb 0x4011db
mov eax, dword [esp + 0x14]
sub edi, esi
sbb ebx, 0
add eax, esi
mov dword [esp + 0x14], eax
test ebx, ebx
ja 0x401173
jb 0x4011a7
test edi, edi
jne 0x401165
mov esi, dword [esp + 0x10]
mov ebx, dword [esp + 0x1c]
push ebp
call fcn.0040cd37
push dword [esp + 0x30]
push esi
call fcn.00403880
add esp, 0xc
mov dword [esp + 0x18], eax
pop edi
push ebx
call fcn.00410cf7
mov eax, dword [esp + 0x18]
add esp, 4
pop esi
pop ebp
pop ebx
add esp, 0x10
ret
call fcn.00410cd9
mov ecx, dword [esp + 0x28]
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.00401f20
mov esi, dword [esp + 0x20]
add esp, 0x10
push esi
call fcn.00410cf7
push ebp
call fcn.0040cd37
add esp, 8
xor ebx, ebx
pop edi
push ebx
call fcn.00410cf7
mov eax, dword [esp + 0x18]
add esp, 4
pop esi
pop ebp
pop ebx
add esp, 0x10
ret
Function at 0x401480
Capabilities:
Read file on windows

Disassembly:
sub esp, 8
push ebp
push esi
mov esi, dword [esp + 0x14]
push edi
push 0x425550
push esi
xor edi, edi
call fcn.00403770
mov ebp, eax
add esp, 8
mov dword [esp + 0x10], ebp
test ebp, ebp
jne 0x4014c2
mov eax, dword [esp + 0x1c]
add eax, 0x12
push eax
push str.Failed_to_extract__s:_failed_to_open_archive_file__n
call fcn.00401dd0
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 ebp
call fcn.0040d3f0
add esp, 0x10
test eax, eax
jns 0x40150a
call fcn.00410cd9
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.00401f20
add esp, 0x10
jmp 0x401542
push dword [ebx + 0xc]
call fcn.00410d12
add esp, 4
mov dword [esp + 0x10], eax
test eax, eax
jne 0x401558
mov esi, dword [ebx + 0xc]
call fcn.00410cd9
push esi
lea ecx, [ebx + 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.00401f20
add esp, 0x14
mov edi, dword [esp + 0x10]
push dword [esp + 0x14]
call fcn.0040cd37
add esp, 4
mov eax, edi
pop ebx
pop edi
pop esi
pop ebp
add esp, 8
ret
cmp byte [ebx + 0x10], 1
jne 0x401580
push eax
push 0
push ebx
push ebp
call fcn.00401230
add esp, 0x10
test eax, eax
je 0x40153e
mov edi, dword [esp + 0x10]
push edi
call fcn.00410cf7
add esp, 4
xor edi, edi
jmp 0x401542
mov esi, dword [ebx + 0xc]
mov ebp, eax
xor ebx, ebx
test esi, esi
je 0x40160b
nop
test ebx, ebx
jb 0x4015a5
ja 0x40159e
cmp esi, 0x2000
jbe 0x4015a5
mov edi, 0x2000
jmp 0x4015a7
mov edi, esi
push dword [esp + 0x14]
push 1
push edi
push ebp
call fcn.0040cff9
add esp, 0x10
cmp eax, 1
jb 0x4015d6
sub esi, edi
sbb ebx, 0
add ebp, edi
test ebx, ebx
ja 0x40159e
jb 0x40153e
test esi, esi
jne 0x401590
jmp 0x40153e
call fcn.00410cd9
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.00401f20
mov edi, dword [esp + 0x20]
add esp, 0x10
push edi
call fcn.00410cf7
add esp, 4
xor edi, edi
jmp 0x401542
mov edi, eax
jmp 0x401542
Function at 0x406970
Capabilities:
Read file on windows
Write file on windows

Disassembly:
mov eax, 0x1004
call fcn.0040afb0
mov eax, dword [0x433008]
xor eax, esp
mov dword [esp + 0x1000], eax
mov eax, dword [esp + 0x1008]
push ebx
push esi
push edi
mov edi, dword [esp + 0x1018]
xor ebx, ebx
push 0x425550
push eax
call fcn.00403770
mov esi, eax
add esp, 8
test esi, esi
je 0x4069cc
push 0x425638
push edi
call fcn.00403770
add esp, 8
mov edi, eax
push esi
test edi, edi
jne 0x4069e7
call fcn.0040cd37
add esp, 4
pop edi
pop esi
or eax, 0xffffffff
pop ebx
mov ecx, dword [esp + 0x1000]
xor ecx, esp
call fcn.0040adc3
add esp, 0x1004
ret
call fcn.0040cdbb
add esp, 4
test eax, eax
jne 0x406a59
push esi
push 0x1000
lea eax, [esp + 0x14]
push 1
push eax
call fcn.0040cff9
add esp, 0x10
test eax, eax
je 0x406a40
push edi
push eax
lea eax, [esp + 0x14]
push 1
push eax
call fcn.0040d62a
add esp, 0x10
test eax, eax
je 0x406a3d
push edi
call fcn.0040cde7
add esp, 4
test eax, eax
jne 0x406a3d
push esi
call fcn.0040cdbb
add esp, 4
test eax, eax
je 0x4069f3
jmp 0x406a59
push edi
jmp 0x406a4e
push esi
call fcn.0040cde7
add esp, 4
test eax, eax
je 0x406a59
push esi
call fcn.00412ac7
add esp, 4
or ebx, 0xffffffff
push esi
call fcn.0040cd37
push edi
call fcn.0040cd37
mov ecx, dword [esp + 0x1014]
add esp, 8
mov eax, ebx
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.0040adc3
add esp, 0x1004
ret

Function at 0x406a90
Capabilities:
Create directory

Disassembly:
mov eax, 0x3008
call fcn.0040afb0
mov eax, dword [0x433008]
xor eax, esp
mov dword [esp + 0x3004], eax
mov eax, dword [esp + 0x300c]
push ebx
push ebp
push esi
mov esi, dword [esp + 0x301c]
mov ecx, esi
push edi
mov edi, dword [esp + 0x3024]
mov dword [esp + 0x10], eax
lea edx, [ecx + 1]
nop word [eax + eax]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x406ad0
sub ecx, edx
mov edx, edi
lea ebx, [edx + 1]
nop
mov al, byte [edx]
inc edx
test al, al
jne 0x406ae0
sub edx, ebx
lea eax, [edx + 1]
add eax, ecx
cmp eax, 0x1000
jae 0x406ba1
push 0x5c
push esi
push str._s_c
lea eax, [esp + 0x20]
push 0x1000
push eax
call fcn.00401c60
push 0x5c
push edi
mov ebp, eax
call fcn.0040c130
mov esi, eax
add esp, 0x1c
test esi, esi
je 0x406b9d
mov ebx, 0x1000
sub ebx, ebp
lea ebp, [esp + ebp + 0x14]
nop
push edi
mov eax, esi
sub eax, edi
push eax
push 0x427004
push ebx
push ebp
call fcn.00401c60
lea eax, [esp + 0x28]
push eax
call fcn.00403710
add esp, 0x18
test eax, eax
jne 0x406b89
push 0x1000
lea eax, [esp + 0x1018]
push eax
lea eax, [esp + 0x1c]
push eax
call fcn.00408030
mov eax, dword [esp + 0x1c]
add esp, 0xc
push dword [eax + 0x301c]
lea eax, [esp + 0x1018]
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
je 0x406ba1
lea eax, [esi + 1]
push 0x5c
push eax
call fcn.0040c130
mov esi, eax
add esp, 8
test esi, esi
jne 0x406b30
xor eax, eax
jmp 0x406ba4
or eax, 0xffffffff
mov ecx, dword [esp + 0x3014]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.0040adc3
add esp, 0x3008
ret