joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4056d0
Capabilities:
Encode data using base64

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [ebp + 8]
push ebx
mov ebx, ecx
mov dword [ebp - 4], eax
mov dword [ebp - 8], edx
mov ecx, dword [eax]
mov eax, 0xaaaaaaab
add ecx, 2
mov dword [ebp - 0xc], ebx
mul ecx
push esi
push edi
shr edx, 1
mov ecx, ebx
shl edx, 2
push 0x3d
mov dword [ebx + 0x10], 0
mov dword [ebx + 0x14], 0xf
push edx
mov dword [ebp - 0x10], ebx
mov dword [ebp - 0xc], ebx
mov byte [ebx], 0
call fcn.0041bfc0
cmp dword [ebx + 0x14], 0x10
mov edi, ebx
jb 0x405723
mov edi, dword [ebx]
mov ecx, dword [ebp - 4]
xor edx, edx
mov dword [ebp - 4], 3
xor esi, esi
mov ecx, dword [ecx]
mov eax, ecx
div dword [ebp - 4]
sub ecx, edx
mov dword [ebp - 0x18], edx
mov dword [ebp - 0xc], ecx
je 0x4057ce
mov eax, dword [ebp - 8]
dec ecx
add eax, 2
mov dword [ebp - 4], eax
mov eax, 0xaaaaaaab
mul ecx
mov eax, edx
mov edx, dword [ebp - 4]
shr eax, 1
inc eax
mov ebx, eax
movsx ecx, byte [edx - 2]
lea edx, [edx + 3]
movsx eax, byte [edx - 4]
shl ecx, 8
or ecx, eax
movsx eax, byte [edx - 3]
shl ecx, 8
or ecx, eax
mov eax, ecx
sar eax, 0x12
movzx eax, byte [eax + 0x45cd20]
mov byte [edi + esi], al
mov eax, ecx
sar eax, 0xc
and eax, 0x3f
movzx eax, byte [eax + 0x45cd20]
mov byte [edi + esi + 1], al
mov eax, ecx
sar eax, 6
and ecx, 0x3f
and eax, 0x3f
movzx eax, byte [eax + 0x45cd20]
mov byte [edi + esi + 2], al
movzx eax, byte [ecx + 0x45cd20]
mov byte [edi + esi + 3], al
add esi, 4
sub ebx, 1
jne 0x405761
mov ebx, dword [ebp - 0x10]
mov edx, dword [ebp - 0x18]
mov ecx, dword [ebp - 0xc]
test edx, edx
je 0x405845
mov eax, dword [ebp - 8]
movsx eax, byte [ecx + eax]
sub edx, 1
je 0x4057f8
mov ebx, dword [ebp - 8]
shl eax, 8
movsx ecx, byte [ecx + ebx + 1]
mov ebx, dword [ebp - 0x10]
or ecx, eax
mov eax, ecx
sar eax, 0xa
and eax, 0x3f
jmp 0x4057fd
mov ecx, eax
sar eax, 2
mov al, byte [eax + 0x45cd20]
mov byte [edi + esi], al
mov eax, ecx
test edx, edx
je 0x405814
sar eax, 4
and eax, 0x3f
jmp 0x40581a
and eax, 3
shl eax, 4
mov al, byte [eax + 0x45cd20]
mov byte [edi + esi + 1], al
test edx, edx
je 0x40583f
and ecx, 0xf
mov al, byte [ecx*4 + 0x45cd20]
mov byte [edi + esi + 2], al
mov eax, ebx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov al, 0x3d
mov byte [edi + esi + 2], al
pop edi
pop esi
mov eax, ebx
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x405ac0
Capabilities:
Hash data with md5

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x24
mov eax, dword [0x467014]
xor eax, esp
mov dword [esp + 0x20], eax
push ebx
push esi
push edi
mov edi, ecx
mov dword [esp + 0x1c], 0x67452301
push 4
lea ecx, [esp + 0x14]
mov dword [esp + 0x24], 0xefcdab89
mov dword [esp + 0x28], 0x98badcfe
mov dword [esp + 0x2c], 0x10325476
mov dword [esp + 0x14], 0
mov dword [esp + 0x18], 0
mov dword [esp + 0x1c], 0
call fcn.0041bc30
mov esi, dword [esp + 0x10]
lea eax, [esp + 0x1c]
push 0x10
push eax
push esi
call fcn.00438290
lea eax, [esp + 0x1c]
add esp, 0xc
lea ebx, [esi + 0x10]
cmp edi, eax
je 0x405b8b
mov eax, dword [edi]
test eax, eax
je 0x405b6d
mov ecx, dword [edi + 8]
sub ecx, eax
and ecx, 0xfffffffc
cmp ecx, 0x1000
jb 0x405b63
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x405bce
mov eax, edx
push ecx
push eax
call fcn.004216ab
add esp, 8
mov eax, dword [esp + 0x18]
mov dword [edi], esi
mov dword [edi + 4], ebx
mov dword [edi + 8], eax
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x20]
xor ecx, esp
call fcn.00421034
mov esp, ebp
pop ebp
ret
test esi, esi
je 0x405bbc
mov ecx, dword [esp + 0x18]
mov eax, esi
sub ecx, esi
and ecx, 0xfffffffc
cmp ecx, 0x1000
jb 0x405bb2
mov esi, dword [esi - 4]
add ecx, 0x23
sub eax, esi
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x405bce
push ecx
push esi
call fcn.004216ab
add esp, 8
mov ecx, dword [esp + 0x2c]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.00421034
mov esp, ebp
pop ebp
ret
call fcn.0043acab
int3
Function at 0x4080f0
Capabilities:
Enumerate pe sections
Parse pe header

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff0
sub esp, 0x188
mov eax, dword [0x467014]
xor eax, esp
mov dword [esp + 0x184], eax
push esi
push edi
push 0x104
lea eax, [esp + 0x84]
mov esi, ecx
push eax
push 0
call dword [0x4540c0]
mov eax, 0x5a4d
cmp word [esi], ax
jne 0x4082d9
mov edi, dword [esi + 0x3c]
add edi, esi
cmp dword [edi], 0x4550
jne 0x4082d9
push 0x44
lea eax, [esp + 0x3c]
push 0
push eax
call fcn.00438130
add esp, 0xc
lea eax, [esp + 0x20]
xorps xmm0, xmm0
movaps xmmword [esp + 0x20], xmm0
push eax
lea eax, [esp + 0x3c]
push eax
push 0
push 0
push 4
push 0
push 0
push 0
push 0
lea eax, [esp + 0xa4]
push eax
call dword [0x454068]
test eax, eax
je 0x4082d9
push 4
push 0x1000
push 4
push 0
call dword [0x4540b0]
push eax
mov dword [esp + 0x1c], eax
mov dword [eax], 0x10007
push dword [esp + 0x28]
call dword [0x454054]
test eax, eax
je 0x4082d9
push 0
push 4
lea eax, [esp + 0x24]
push eax
push str.ldexp
push dword [esp + 0x30]
call dword [0x4540c4]
mov eax, dword [edi + 0x34]
cmp dword [esp + 0x1c], eax
jne 0x4081fc
push 0x45cdf0
push 0x45ce08
call dword [0x454098]
push eax
call dword [0x454058]
push dword [esp + 0x1c]
push dword [esp + 0x24]
call eax
mov eax, dword [edi + 0x34]
push 0x40
push 0x3000
push dword [edi + 0x50]
push eax
push dword [esp + 0x30]
call dword [0x45405c]
mov dword [esp + 0x14], eax
test eax, eax
je 0x4082d9
push 0
push dword [edi + 0x54]
push esi
push eax
push dword [esp + 0x30]
call dword [0x4540bc]
xor eax, eax
mov dword [esp + 0x10], 0
cmp ax, word [edi + 6]
jae 0x408293
mov dword [esp + 0xc], eax
call fcn.00407f40
push eax
call dword [0x454094]
mov ecx, dword [esp + 0xc]
add ecx, esi
add ecx, dword [esi + 0x3c]
push 0
push dword [ecx + 0x108]
mov eax, dword [ecx + 0x10c]
add eax, esi
push eax
mov eax, dword [ecx + 0x104]
add eax, dword [esp + 0x20]
push eax
push dword [esp + 0x30]
call dword [0x4540bc]
mov ecx, dword [esp + 0x10]
movzx eax, word [edi + 6]
inc ecx
add dword [esp + 0xc], 0x28
mov dword [esp + 0x10], ecx
cmp ecx, eax
jl 0x408242
push 0
push 4
lea eax, [edi + 0x34]
push eax
mov eax, dword [esp + 0x24]
mov eax, dword [eax + 0xa4]
add eax, 8
push eax
push dword [esp + 0x30]
call dword [0x4540bc]
mov ecx, dword [esp + 0x18]
mov eax, dword [edi + 0x28]
add eax, dword [esp + 0x14]
push ecx
mov dword [ecx + 0xb0], eax
push dword [esp + 0x28]
call dword [0x454070]
push dword [esp + 0x24]
call dword [0x4540a0]
push 0x8000
push 0
push esi
call dword [0x4540b8]
mov ecx, dword [esp + 0x18c]
mov al, 1
pop edi
pop esi
xor ecx, esp
call fcn.00421034
mov esp, ebp
pop ebp
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 0x426580
push esi
mov dword [esp + 0x1c], 0xffffffff
call fcn.00403ac0
mov ebx, eax
add esp, 8
test ebx, ebx
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.00402370
add esp, 8
xor ebp, ebp
push ebp
call fcn.00411e7e
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 ebx
call fcn.0040e1b6
add esp, 0x10
test eax, eax
jns 0x4010d9
lea eax, [edi + 0x12]
push eax
push str.Failed_to_extract__s:_failed_to_seek_to_the_entrys_data__n
push str.fseek
call fcn.004024a0
push ebx
call fcn.0040db31
add esp, 0x10
jmp 0x4011f5
push dword [edi + 0xc]
call fcn.00411e99
mov esi, eax
add esp, 4
mov dword [esp + 0x10], esi
mov ebp, esi
mov dword [esp + 0x1c], ebp
test esi, esi
jne 0x401128
push dword [edi + 0xc]
lea eax, [edi + 0x12]
push eax
push str.Failed_to_extract__s:_failed_to_allocate_data_buffer___u_bytes___n
push str.malloc
call fcn.004024a0
push ebx
call fcn.0040db31
add esp, 0x14
pop edi
push ebp
call fcn.00411e7e
mov eax, dword [esp + 0x18]
add esp, 4
pop esi
pop ebp
pop ebx
add esp, 0x10
ret
cmp byte [edi + 0x10], 1
jne 0x401145
push esi
push 0
push edi
push ebx
call fcn.00401210
add esp, 0x10
test eax, eax
jne 0x4011e6
jmp 0x40119c
mov edi, dword [edi + 0xc]
xor ebp, ebp
mov dword [esp + 0x14], eax
test edi, edi
je 0x401198
test ebp, ebp
jb 0x401167
ja 0x401160
cmp edi, 0x2000
jbe 0x401167
mov esi, 0x2000
jmp 0x401169
mov esi, edi
push ebx
push 1
push esi
push eax
call fcn.0040dd92
add esp, 0x10
cmp eax, 1
jb 0x4011c8
mov eax, dword [esp + 0x14]
sub edi, esi
sbb ebp, 0
add eax, esi
mov dword [esp + 0x14], eax
test ebp, ebp
ja 0x401160
jb 0x401194
test edi, edi
jne 0x401152
mov esi, dword [esp + 0x10]
mov ebp, dword [esp + 0x1c]
push ebx
call fcn.0040db31
push dword [esp + 0x30]
push esi
call fcn.00403bd0
add esp, 0xc
mov dword [esp + 0x18], eax
pop edi
push ebp
call fcn.00411e7e
mov eax, dword [esp + 0x18]
add esp, 4
pop esi
pop ebp
pop ebx
add esp, 0x10
ret
mov eax, dword [esp + 0x28]
add eax, 0x12
push eax
push str.Failed_to_extract__s:_failed_to_read_data_chunk__n
push str.fread
call fcn.004024a0
mov esi, dword [esp + 0x1c]
add esp, 0xc
push esi
call fcn.00411e7e
push ebx
call fcn.0040db31
add esp, 8
xor ebp, ebp
pop edi
push ebp
call fcn.00411e7e
mov eax, dword [esp + 0x18]
add esp, 4
pop esi
pop ebp
pop ebx
add esp, 0x10
ret
Function at 0x401210
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.00409eb0
mov esi, eax
add esp, 0xc
test esi, esi
je 0x401264
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.00402370
add esp, 0xc
or eax, 0xffffffff
pop esi
pop ebx
add esp, 0x48
ret
push 0x2000
call fcn.00411e99
add esp, 4
mov dword [esp + 0x10], eax
test eax, eax
jne 0x401298
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.004024a0
add esp, 0xc
jmp 0x4013be
push 0x2000
call fcn.00411e99
mov ebx, eax
add esp, 4
test ebx, ebx
jne 0x4012ca
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.004024a0
add esp, 0xc
jmp 0x4013be
mov eax, dword [esp + 0x58]
xor ecx, ecx
push ebp
mov ebp, dword [esp + 0x60]
push edi
mov eax, dword [eax + 8]
mov edi, dword [esp + 0x68]
mov dword [esp + 0x10], eax
mov dword [esp + 0x14], ecx
test ecx, ecx
jb 0x4012f9
ja 0x4012f2
cmp eax, 0x2000
jbe 0x4012f9
mov esi, 0x2000
jmp 0x4012fb
mov esi, eax
push dword [esp + 0x5c]
push esi
push 1
push dword [esp + 0x24]
call fcn.0040dd92
add esp, 0x10
cmp eax, esi
jne 0x4013b9
push dword [esp + 0x5c]
call fcn.0040db8d
add esp, 4
test eax, eax
jne 0x4013b9
sub dword [esp + 0x10], esi
mov dword [esp + 0x24], esi
sbb dword [esp + 0x14], eax
mov eax, dword [esp + 0x18]
mov dword [esp + 0x20], eax
nop
lea eax, [esp + 0x20]
mov dword [esp + 0x30], 0x2000
push 0
push eax
mov dword [esp + 0x34], ebx
call fcn.00408520
add esp, 8
mov dword [esp + 0x1c], eax
lea ecx, [eax + 4]
cmp ecx, 6
ja case.0x40136e.1
movzx ecx, byte [ecx + 0x401444]
jmp dword [ecx*4 + 0x401438]
mov esi, 0x2000
sub esi, dword [esp + 0x30]
test ebp, ebp
je 0x4013e2
push ebp
push esi
push 1
push ebx
call fcn.0040e4b5
add esp, 0x10
cmp eax, esi
jne 0x4013a0
push ebp
call fcn.0040db8d
add esp, 4
test eax, eax
je 0x4013f3
or eax, 0xffffffff
push eax
mov eax, dword [esp + 0x64]
add eax, 0x12
push eax
push str.Failed_to_extract__s:_decompression_resulted_in_return_code__d__n
call fcn.00402370
add esp, 0xc
or esi, 0xffffffff
pop edi
pop ebp
lea eax, [esp + 0x18]
push eax
call fcn.00409ca0
push dword [esp + 0x14]
call fcn.00411e7e
push ebx
call fcn.00411e7e
add esp, 0xc
mov eax, esi
pop esi
pop ebx
add esp, 0x48
ret
test edi, edi
je 0x4013f7
push esi
push ebx
push edi
call fcn.0040b270
add esp, 0xc
add edi, esi
mov eax, dword [esp + 0x1c]
cmp dword [esp + 0x30], 0
je 0x401340
cmp eax, 1
je 0x401431
mov ecx, dword [esp + 0x14]
test ecx, ecx
jne 0x401415
cmp dword [esp + 0x10], ecx
jbe 0x4013a3
mov eax, dword [esp + 0x10]
jmp 0x4012e5
mov eax, 0xfffffffd
jmp 0x4013a3
cmp eax, 1
jne 0x4013a3
xor esi, esi
jmp 0x4013bc
Function at 0x401450
Capabilities:
Read file on windows

Disassembly:
sub esp, 8
push ebp
push esi
mov esi, dword [esp + 0x14]
push edi
push 0x426580
push esi
xor edi, edi
call fcn.00403ac0
mov ebp, eax
add esp, 8
mov dword [esp + 0x10], ebp
test ebp, ebp
jne 0x401492
mov eax, dword [esp + 0x1c]
add eax, 0x12
push eax
push str.Failed_to_extract__s:_failed_to_open_archive_file__n
call fcn.00402370
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.0040e1b6
add esp, 0x10
test eax, eax
jns 0x4014d1
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.004024a0
add esp, 0xc
jmp 0x401501
push dword [ebx + 0xc]
call fcn.00411e99
add esp, 4
mov dword [esp + 0x10], eax
test eax, eax
jne 0x401517
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.004024a0
add esp, 0x10
mov edi, dword [esp + 0x10]
push dword [esp + 0x14]
call fcn.0040db31
add esp, 4
mov eax, edi
pop ebx
pop edi
pop esi
pop ebp
add esp, 8
ret
cmp byte [ebx + 0x10], 1
jne 0x40153f
push eax
push 0
push ebx
push ebp
call fcn.00401210
add esp, 0x10
test eax, eax
je 0x4014fd
mov edi, dword [esp + 0x10]
push edi
call fcn.00411e7e
add esp, 4
xor edi, edi
jmp 0x401501
mov esi, dword [ebx + 0xc]
mov ebp, eax
xor ebx, ebx
test esi, esi
je 0x4015c4
nop word [eax + eax]
test ebx, ebx
jb 0x401565
ja 0x40155e
cmp esi, 0x2000
jbe 0x401565
mov edi, 0x2000
jmp 0x401567
mov edi, esi
push dword [esp + 0x14]
push 1
push edi
push ebp
call fcn.0040dd92
add esp, 0x10
cmp eax, 1
jb 0x401596
sub esi, edi
sbb ebx, 0
add ebp, edi
test ebx, ebx
ja 0x40155e
jb 0x4014fd
test esi, esi
jne 0x401550
jmp 0x4014fd
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.004024a0
mov edi, dword [esp + 0x1c]
add esp, 0xc
push edi
call fcn.00411e7e
add esp, 4
xor edi, edi
jmp 0x401501
mov edi, eax
jmp 0x401501
Function at 0x4015d0
Capabilities:
Read file on windows

Disassembly:
sub esp, 0xc
push ebx
mov ebx, dword [esp + 0x18]
push esi
cmp byte [ebx + 0x11], 0x6e
jne 0x40160f
push dword [esp + 0x20]
push ebx
push dword [esp + 0x20]
call fcn.00401040
mov esi, eax
add esp, 0xc
test esi, esi
jns 0x401607
lea ecx, [ebx + 0x12]
push ecx
push str.Failed_to_create_symbolic_link__s__n
call fcn.00402370
add esp, 8
mov eax, esi
pop esi
pop ebx
add esp, 0xc
ret
push edi
push 0x426668
push dword [esp + 0x28]
call fcn.00403ac0
mov edi, eax
add esp, 8
mov dword [esp + 0x14], edi
test edi, edi
jne 0x40164b
lea eax, [ebx + 0x12]
push eax
push str.Failed_to_extract__s:_failed_to_open_target_file__n
push str.fopen
call fcn.004024a0
add esp, 0xc
or eax, 0xffffffff
pop edi
pop esi
pop ebx
add esp, 0xc
ret
mov esi, dword [esp + 0x1c]
push ebp
push 0x426580
push esi
call fcn.00403ac0
mov ebp, eax
add esp, 8
mov dword [esp + 0x14], ebp
test ebp, ebp
jne 0x401681
lea eax, [ebx + 0x12]
push eax
push str.Failed_to_extract__s:_failed_to_open_archive_file__n
call fcn.00402370
add esp, 8
or edi, 0xffffffff
jmp 0x4017be
mov ecx, dword [ebx + 4]
xor eax, eax
add ecx, dword [esi + 0x1000]
push 0
adc eax, dword [esi + 0x1004]
push eax
push ecx
push ebp
call fcn.0040e1b6
add esp, 0x10
test eax, eax
jns 0x4016c1
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.004024a0
add esp, 0xc
or edi, 0xffffffff
jmp 0x4017b5
cmp byte [ebx + 0x10], 1
jne 0x4016db
push 0
push edi
push ebx
push ebp
call fcn.00401210
add esp, 0x10
mov edi, eax
jmp 0x4017b5
push 0x2000
xor edi, edi
call fcn.00411e99
add esp, 4
mov dword [esp + 0x10], eax
test eax, eax
jne 0x401710
lea eax, [ebx + 0x12]
push eax
push str.Failed_to_extract__s:_failed_to_allocate_temporary_buffer__n
push str.malloc
call fcn.004024a0
add esp, 0xc
or edi, 0xffffffff
jmp 0x4017b5
mov esi, dword [ebx + 0xc]
xor ebp, ebp
test esi, esi
je 0x4017a8
nop dword [eax]
test ebp, ebp
jb 0x401735
ja 0x40172e
cmp esi, 0x2000
jbe 0x401735
mov edi, 0x2000
jmp 0x401737
mov edi, esi
push dword [esp + 0x14]
push 1
push edi
push eax
call fcn.0040dd92
add esp, 0x10
cmp eax, 1
jb 0x40178b
push dword [esp + 0x18]
push 1
push edi
push dword [esp + 0x1c]
call fcn.0040e4b5
add esp, 0x10
cmp eax, 1
jb 0x40177b
mov eax, dword [esp + 0x10]
sub esi, edi
sbb ebp, 0
test ebp, ebp
ja 0x40172e
jb 0x401777
test esi, esi
jne 0x401720
xor edi, edi
jmp 0x4017a4
lea eax, [ebx + 0x12]
push eax
push str.Failed_to_extract__s:_failed_to_write_data_chunk__n
push str.fwrite
jmp 0x401799
lea eax, [ebx + 0x12]
push eax
push str.Failed_to_extract__s:_failed_to_read_data_chunk__n
push str.fread
call fcn.004024a0
add esp, 0xc
or edi, 0xffffffff
mov eax, dword [esp + 0x10]
push eax
call fcn.00411e7e
mov ebp, dword [esp + 0x18]
add esp, 4
push ebp
call fcn.0040db31
add esp, 4
push dword [esp + 0x18]
call fcn.0040db31
add esp, 4
mov eax, edi
pop ebp
pop edi
pop esi
pop ebx
add esp, 0xc
ret
Function at 0x406ae0
Capabilities:
Read file on windows

Disassembly:
mov eax, 0x1004
call fcn.0040a8a0
mov eax, dword [0x43400c]
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 0x426580
push eax
call fcn.00403ac0
mov esi, eax
add esp, 8
test esi, esi
je 0x406b3c
push 0x426668
push edi
call fcn.00403ac0
add esp, 8
mov edi, eax
push esi
test edi, edi
jne 0x406b57
call fcn.0040db31
add esp, 4
pop edi
pop esi
or eax, 0xffffffff
pop ebx
mov ecx, dword [esp + 0x1000]
xor ecx, esp
call fcn.0040a6b7
add esp, 0x1004
ret
call fcn.0040db61
add esp, 4
test eax, eax
jne 0x406bc9
push esi
push 0x1000
lea eax, [esp + 0x14]
push 1
push eax
call fcn.0040dd92
add esp, 0x10
test eax, eax
je 0x406bb0
push edi
push eax
lea eax, [esp + 0x14]
push 1
push eax
call fcn.0040e4b5
add esp, 0x10
test eax, eax
je 0x406bad
push edi
call fcn.0040db8d
add esp, 4
test eax, eax
jne 0x406bad
push esi
call fcn.0040db61
add esp, 4
test eax, eax
je 0x406b63
jmp 0x406bc9
push edi
jmp 0x406bbe
push esi
call fcn.0040db8d
add esp, 4
test eax, eax
je 0x406bc9
push esi
call fcn.00413d6b
add esp, 4
or ebx, 0xffffffff
push esi
call fcn.0040db31
push edi
call fcn.0040db31
mov ecx, dword [esp + 0x1014]
add esp, 8
mov eax, ebx
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.0040a6b7
add esp, 0x1004
ret

Function at 0x406c00
Capabilities:
Create directory

Disassembly:
mov eax, 0x3008
call fcn.0040a8a0
mov eax, dword [0x43400c]
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 0x406c40
sub ecx, edx
mov edx, edi
lea ebx, [edx + 1]
nop
mov al, byte [edx]
inc edx
test al, al
jne 0x406c50
sub edx, ebx
lea eax, [edx + 1]
add eax, ecx
cmp eax, 0x1000
jae 0x406d11
push 0x5c
push esi
push str._s_c
lea eax, [esp + 0x20]
push 0x1000
push eax
call fcn.00401bb0
push 0x5c
push edi
mov ebp, eax
call fcn.0040b950
mov esi, eax
add esp, 0x1c
test esi, esi
je 0x406d0d
mov ebx, 0x1000
sub ebx, ebp
lea ebp, [esp + ebp + 0x14]
nop
push edi
mov eax, esi
sub eax, edi
push eax
push 0x427e6c
push ebx
push ebp
call fcn.00401bb0
lea eax, [esp + 0x28]
push eax
call fcn.00403a60
add esp, 0x18
test eax, eax
jne 0x406cf9
push 0x1000
lea eax, [esp + 0x1018]
push eax
lea eax, [esp + 0x1c]
push eax
call fcn.00407930
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 0x406d11
lea eax, [esi + 1]
push 0x5c
push eax
call fcn.0040b950
mov esi, eax
add esp, 8
test esi, esi
jne 0x406ca0
xor eax, eax
jmp 0x406d14
or eax, 0xffffffff
mov ecx, dword [esp + 0x3014]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.0040a6b7
add esp, 0x3008
ret
Function at 0x406d30
Capabilities:
Read file on windows

Disassembly:
sub esp, 0x18
push ebx
push ebp
push esi
push edi
xorps xmm0, xmm0
push 0x2000
movlpd qword [esp + 0x1c], xmm0
call fcn.00411e99
mov esi, eax
add esp, 4
mov dword [esp + 0x14], esi
test esi, esi
je 0x406e9a
mov ebx, dword [esp + 0x2c]
push 2
push 0
push 0
push ebx
call fcn.0040e1b6
add esp, 0x10
test eax, eax
js 0x406e9a
push ebx
call fcn.00414412
add esp, 4
mov edi, eax
mov eax, dword [esp + 0x34]
test edx, edx
jb 0x406e9a
ja 0x406db6
cmp edi, eax
jb 0x406e9a
test edx, edx
jne 0x406db6
cmp edi, 0x2000
jae 0x406db6
xorps xmm0, xmm0
movlpd qword [esp + 0x20], xmm0
mov ebx, dword [esp + 0x24]
mov ebp, dword [esp + 0x20]
jmp 0x406dc3
mov ebp, edi
mov ebx, edx
add ebp, 0xffffe000
adc ebx, 0xffffffff
sub edi, ebp
mov dword [esp + 0x10], ebx
cmp edi, eax
jb 0x406e9a
push 0
push ebx
push ebp
push dword [esp + 0x38]
call fcn.0040e1b6
add esp, 0x10
test eax, eax
js 0x406e9a
push dword [esp + 0x2c]
push edi
push 1
push esi
call fcn.0040dd92
add esp, 0x10
cmp eax, edi
jne 0x406e9a
mov eax, dword [esp + 0x34]
sub edi, eax
add edi, 1
je 0x406e79
lea ebx, [esi - 1]
add ebx, edi
mov esi, dword [esp + 0x30]
mov edx, ebx
sub eax, 4
jb 0x406e31
nop dword [eax]
mov ecx, dword [edx]
cmp ecx, dword [esi]
jne 0x406e3a
add edx, 4
add esi, 4
sub eax, 4
jae 0x406e20
cmp eax, 0xfffffffc
je 0x406eba
mov cl, byte [edx]
cmp cl, byte [esi]
jne 0x406e67
cmp eax, 0xfffffffd
je 0x406eba
mov cl, byte [edx + 1]
cmp cl, byte [esi + 1]
jne 0x406e67
cmp eax, 0xfffffffe
je 0x406eba
mov cl, byte [edx + 2]
cmp cl, byte [esi + 2]
jne 0x406e67
cmp eax, 0xffffffff
je 0x406eba
mov al, byte [edx + 3]
cmp al, byte [esi + 3]
je 0x406eba
mov eax, dword [esp + 0x34]
dec ebx
sub edi, 1
jne 0x406e11
mov ebx, dword [esp + 0x10]
mov esi, dword [esp + 0x14]
mov edi, eax
mov edx, 0
add edi, ebp
adc edx, ebx
add edi, 0xffffffff
adc edx, 0xffffffff
test ebx, ebx
jne 0x406d97
test ebp, ebp
jne 0x406d97
mov edi, dword [esp + 0x18]
mov esi, dword [esp + 0x1c]
push dword [esp + 0x14]
call fcn.00411e7e
add esp, 4
mov eax, edi
mov edx, esi
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x18
ret
xor esi, esi
add edi, ebp
adc esi, dword [esp + 0x10]
add edi, 0xffffffff
adc esi, 0xffffffff
jmp 0x406ea2