joyce8/EMBER2024-capa huggingface dataset:
Function at 0x10007a70
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x30
mov eax, dword [0x10017040]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 8]
push esi
mov esi, ecx
cmp ebx, 0xffffffff
jne 0x10007aa0
pop esi
xor eax, eax
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1000cfbf
mov esp, ebp
pop ebp
ret 4
mov eax, dword [esi + 0x20]
push edi
mov ecx, dword [eax]
test ecx, ecx
je 0x10007adc
mov edx, dword [esi + 0x30]
mov edi, dword [edx]
lea eax, [edi + ecx]
cmp ecx, eax
jae 0x10007adc
lea ecx, [edi - 1]
mov eax, ebx
mov dword [edx], ecx
mov edx, dword [esi + 0x20]
pop edi
mov esi, dword [edx]
lea ecx, [esi + 1]
mov dword [edx], ecx
mov byte [esi], bl
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1000cfbf
mov esp, ebp
pop ebp
ret 4
cmp dword [esi + 0x4c], 0
je 0x10007bb3
mov edi, dword [esi + 0xc]
lea eax, [esi + 0x3c]
cmp dword [edi], eax
jne 0x10007b04
mov edx, dword [esi + 0x54]
mov ecx, dword [esi + 0x50]
sub edx, ecx
mov dword [edi], ecx
mov eax, dword [esi + 0x1c]
mov dword [eax], ecx
mov eax, dword [esi + 0x2c]
mov dword [eax], edx
mov ecx, dword [esi + 0x38]
test ecx, ecx
jne 0x10007b10
movsx eax, bl
jmp 0x10007b48
lea eax, [ebp - 0x2c]
mov byte [ebp - 0x25], bl
push eax
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0x24]
push eax
lea eax, [ebp - 0x30]
push eax
lea eax, [ebp - 0x24]
push eax
lea eax, [ebp - 0x25]
push eax
lea eax, [esi + 0x40]
push eax
call dword [sym.imp.MSVCP140.dll_public:_int___thiscall_std::codecvt_char__char__struct__Mbstatet_::out_struct__Mbstatet___char_const___char_const___char_const____char___char___char___const]
sub eax, 0
je 0x10007b72
sub eax, 1
je 0x10007b72
sub eax, 2
jne 0x10007bb3
movsx eax, byte [ebp - 0x25]
push dword [esi + 0x4c]
push eax
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fputc]
add esp, 8
or ecx, 0xffffffff
cmp eax, ecx
cmove ebx, ecx
pop edi
pop esi
mov eax, ebx
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1000cfbf
mov esp, ebp
pop ebp
ret 4
mov edi, dword [ebp - 0x2c]
lea eax, [ebp - 0x24]
sub edi, eax
je 0x10007b90
push dword [esi + 0x4c]
push edi
push 1
push eax
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
add esp, 0x10
cmp edi, eax
jne 0x10007bb3
lea ecx, [ebp - 0x25]
mov byte [esi + 0x3d], 1
or eax, 0xffffffff
cmp dword [ebp - 0x30], ecx
pop edi
pop esi
cmovne eax, ebx
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1000cfbf
mov esp, ebp
pop ebp
ret 4
mov ecx, dword [ebp - 4]
or eax, 0xffffffff
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.1000cfbf
mov esp, ebp
pop ebp
ret 4
Function at 0x10007d60
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
mov eax, dword [0x10017040]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, ecx
cmp dword [esi + 0x38], 0
je 0x10007e1c
cmp byte [esi + 0x3d], 0
je 0x10007e1c
mov eax, dword [esi]
push edi
push 0xffffffffffffffff
call dword [eax + 0xc]
cmp eax, 0xffffffff
je 0x10007e0a
mov ecx, dword [esi + 0x38]
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0x24]
push eax
lea eax, [esi + 0x40]
push eax
call dword [sym.imp.MSVCP140.dll_public:_int___thiscall_std::codecvt_char__char__struct__Mbstatet_::unshift_struct__Mbstatet___char___char___char___const]
sub eax, 0
je 0x10007dd1
sub eax, 1
je 0x10007dd5
sub eax, 2
jne 0x10007e0a
mov byte [esi + 0x3d], al
mov al, 1
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1000cfbf
mov esp, ebp
pop ebp
ret
mov byte [esi + 0x3d], 0
mov edi, dword [ebp - 0x28]
lea eax, [ebp - 0x24]
sub edi, eax
je 0x10007df3
push dword [esi + 0x4c]
push edi
push 1
push eax
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
add esp, 0x10
cmp edi, eax
jne 0x10007e0a
cmp byte [esi + 0x3d], 0
pop edi
sete al
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1000cfbf
mov esp, ebp
pop ebp
ret
pop edi
xor al, al
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1000cfbf
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
mov al, 1
xor ecx, ebp
pop esi
call fcn.1000cfbf
mov esp, ebp
pop ebp
ret
Function at 0x1000df30
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [ebp + 0xc]
sub eax, 0x10000
push eax
call fcn.1000e100
add esp, 4
mov dword [ebp - 4], eax
mov ecx, dword [ebp - 4]
cmp ecx, dword [ebp + 8]
jbe 0x1000e00d
mov edx, dword [ebp - 4]
cmp edx, dword [0x100170a0]
jb 0x1000df7a
mov eax, dword [ebp - 4]
cmp eax, dword [0x100170a4]
ja 0x1000df7a
mov ecx, dword [ebp - 4]
sub ecx, 0x8000000
mov dword [ebp - 4], ecx
jmp 0x1000df4a
push 0x1c
push 0
lea edx, [ebp - 0x24]
push edx
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
push 0x1c
lea eax, [ebp - 0x24]
push eax
mov ecx, dword [ebp - 4]
push ecx
call sub.KERNEL32.dll_VirtualQuery
test eax, eax
jne 0x1000df9f
jmp 0x1000e00d
cmp dword [ebp - 0x14], 0x10000
jne 0x1000dff3
cmp dword [ebp - 0x18], 0x10000
jb 0x1000dff3
push 0x40
push 0x3000
push 0x10000
mov edx, dword [ebp - 4]
push edx
call sub.KERNEL32.dll_VirtualAlloc
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
je 0x1000dfd6
mov eax, dword [ebp - 8]
jmp 0x1000e00f
call sub.KERNEL32.dll_GetLastError
cmp eax, 0x677
jne 0x1000dfe6
xor eax, eax
jmp 0x1000e00f
mov eax, dword [ebp - 4]
sub eax, 0x10000
mov dword [ebp - 4], eax
jmp 0x1000e008
mov ecx, dword [ebp - 0x20]
sub ecx, 0x10000
push ecx
call fcn.1000e100
add esp, 4
mov dword [ebp - 4], eax
jmp 0x1000df4a
xor eax, eax
mov esp, ebp
pop ebp
ret

Function at 0x1000e020
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [ebp + 8]
push eax
call fcn.1000e130
add esp, 4
mov dword [ebp - 4], eax
mov ecx, dword [ebp - 4]
cmp ecx, dword [ebp + 0xc]
jae 0x1000e0f5
mov edx, dword [ebp - 4]
cmp edx, dword [0x100170a0]
jb 0x1000e065
mov eax, dword [ebp - 4]
cmp eax, dword [0x100170a4]
ja 0x1000e065
mov ecx, dword [ebp - 4]
add ecx, 0x8000000
mov dword [ebp - 4], ecx
jmp 0x1000e035
push 0x1c
push 0
lea edx, [ebp - 0x24]
push edx
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
push 0x1c
lea eax, [ebp - 0x24]
push eax
mov ecx, dword [ebp - 4]
push ecx
call sub.KERNEL32.dll_VirtualQuery
test eax, eax
jne 0x1000e08a
jmp 0x1000e0f5
cmp dword [ebp - 0x14], 0x10000
jne 0x1000e0de
cmp dword [ebp - 0x18], 0x10000
jb 0x1000e0de
push 0x40
push 0x3000
push 0x10000
mov edx, dword [ebp - 4]
push edx
call sub.KERNEL32.dll_VirtualAlloc
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
je 0x1000e0c1
mov eax, dword [ebp - 8]
jmp 0x1000e0f7
call sub.KERNEL32.dll_GetLastError
cmp eax, 0x677
jne 0x1000e0d1
xor eax, eax
jmp 0x1000e0f7
mov eax, dword [ebp - 4]
add eax, 0x10000
mov dword [ebp - 4], eax
jmp 0x1000e0f0
mov ecx, dword [ebp - 0x24]
add ecx, dword [ebp - 0x18]
push ecx
call fcn.1000e130
add esp, 4
mov dword [ebp - 4], eax
jmp 0x1000e035
xor eax, eax
mov esp, ebp
pop ebp
ret
Function at 0x1000e160
Capabilities:
Hook routines via microsoft detours

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
lea eax, [ebp - 0xc]
push eax
lea ecx, [ebp - 0x10]
push ecx
mov edx, dword [ebp + 8]
push edx
call fcn.1000e550
add esp, 0xc
mov dword [ebp - 4], 0
cmp dword [0x1001789c], 0
jne 0x1000e19d
cmp dword [0x10017898], 0
je 0x1000e19d
mov eax, dword [0x10017898]
mov dword [0x1001789c], eax
cmp dword [0x1001789c], 0
je 0x1000e21a
mov ecx, dword [0x1001789c]
cmp dword [ecx + 8], 0
je 0x1000e21a
mov edx, dword [0x1001789c]
mov eax, dword [edx + 8]
cmp eax, dword [ebp - 0x10]
jb 0x1000e21a
mov ecx, dword [0x1001789c]
mov edx, dword [ecx + 8]
cmp edx, dword [ebp - 0xc]
ja 0x1000e21a
mov eax, dword [0x1001789c]
mov ecx, dword [eax + 8]
mov dword [ebp - 4], ecx
mov edx, dword [ebp - 4]
cmp edx, dword [ebp - 0x10]
jb 0x1000e1e9
mov eax, dword [ebp - 4]
cmp eax, dword [ebp - 0xc]
jbe 0x1000e1f0
xor eax, eax
jmp 0x1000e339
mov ecx, dword [0x1001789c]
mov edx, dword [ebp - 4]
mov eax, dword [edx + 0x40]
mov dword [ecx + 8], eax
push 0x48
push 0xcc
mov ecx, dword [ebp - 4]
push ecx
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
mov eax, dword [ebp - 4]
jmp 0x1000e339
mov edx, dword [0x10017898]
mov dword [0x1001789c], edx
jmp 0x1000e236
mov eax, dword [0x1001789c]
mov ecx, dword [eax + 4]
mov dword [0x1001789c], ecx
cmp dword [0x1001789c], 0
je 0x1000e276
cmp dword [0x1001789c], 0
je 0x1000e274
mov edx, dword [0x1001789c]
cmp dword [edx + 8], 0
je 0x1000e274
mov eax, dword [0x1001789c]
mov ecx, dword [eax + 8]
cmp ecx, dword [ebp - 0x10]
jb 0x1000e274
mov edx, dword [0x1001789c]
mov eax, dword [edx + 8]
cmp eax, dword [ebp - 0xc]
ja 0x1000e274
jmp 0x1000e1ce
jmp 0x1000e228
mov ecx, dword [ebp + 8]
and ecx, 0xffff
mov edx, dword [ebp + 8]
sub edx, ecx
mov dword [ebp + 8], edx
mov eax, dword [ebp - 0xc]
push eax
mov ecx, dword [ebp - 0x10]
push ecx
mov edx, dword [ebp + 8]
push edx
call fcn.1000e340
add esp, 0xc
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0
je 0x1000e337
mov eax, dword [ebp - 0x18]
mov dword [0x1001789c], eax
mov ecx, dword [0x1001789c]
mov dword [ecx], 0x52727464
mov edx, dword [0x1001789c]
mov dword [edx + 8], 0
mov eax, dword [0x1001789c]
mov ecx, dword [0x10017898]
mov dword [eax + 4], ecx
mov edx, dword [0x1001789c]
mov dword [0x10017898], edx
mov dword [ebp - 0x14], 0
mov eax, dword [0x1001789c]
add eax, 0x48
mov dword [ebp - 4], eax
mov dword [ebp - 8], 0x38c
jmp 0x1000e307
mov ecx, dword [ebp - 8]
sub ecx, 1
mov dword [ebp - 8], ecx
cmp dword [ebp - 8], 1
jle 0x1000e327
imul edx, dword [ebp - 8], 0x48
mov eax, dword [ebp - 4]
mov ecx, dword [ebp - 0x14]
mov dword [eax + edx + 0x40], ecx
imul edx, dword [ebp - 8], 0x48
add edx, dword [ebp - 4]
mov dword [ebp - 0x14], edx
jmp 0x1000e2fe
mov eax, dword [0x1001789c]
mov ecx, dword [ebp - 0x14]
mov dword [eax + 8], ecx
jmp 0x1000e1ce
xor eax, eax
mov esp, ebp
pop ebp
ret
Function at 0x1000f080
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov eax, dword [0x10017898]
mov dword [ebp - 4], eax
jmp 0x1000f099
mov ecx, dword [ebp - 4]
mov edx, dword [ecx + 4]
mov dword [ebp - 4], edx
cmp dword [ebp - 4], 0
je 0x1000f0c0
lea eax, [ebp - 8]
push eax
push 0x40
push 0x10000
mov ecx, dword [ebp - 4]
push ecx
call sub.KERNEL32.dll_VirtualProtect
test eax, eax
jne 0x1000f0be
call sub.KERNEL32.dll_GetLastError
jmp 0x1000f0c2
jmp 0x1000f090
xor eax, eax
mov esp, ebp
pop ebp
ret
Function at 0x1000f560
Capabilities:
Resume thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
call sub.KERNEL32.dll_GetCurrentThreadId
cmp dword [0x100178a8], eax
je 0x1000f57d
mov eax, 0x10dd
jmp 0x1000f660
mov eax, dword [0x100178b8]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
je 0x1000f5fc
lea ecx, [ebp - 0x1c]
push ecx
mov edx, dword [ebp - 4]
mov eax, dword [edx + 0x14]
push eax
mov ecx, dword [ebp - 4]
mov edx, dword [ecx + 0x10]
movzx eax, byte [edx + 0x36]
push eax
mov ecx, dword [ebp - 4]
mov edx, dword [ecx + 0xc]
push edx
call sub.KERNEL32.dll_VirtualProtect
mov eax, dword [ebp - 4]
cmp dword [eax + 4], 0
jne 0x1000f5d8
mov ecx, dword [ebp - 4]
cmp dword [ecx + 0x10], 0
je 0x1000f5d8
mov edx, dword [ebp - 4]
mov eax, dword [edx + 0x10]
push eax
call fcn.1000e5e0
add esp, 4
mov ecx, dword [ebp - 4]
mov dword [ecx + 0x10], 0
mov edx, dword [ebp - 4]
mov eax, dword [edx]
mov dword [ebp - 0x10], eax
mov ecx, dword [ebp - 4]
mov dword [ebp - 0xc], ecx
push 0x18
mov edx, dword [ebp - 0xc]
push edx
call fcn.1000d002
add esp, 8
mov eax, dword [ebp - 0x10]
mov dword [ebp - 4], eax
jmp 0x1000f585
mov dword [0x100178b8], 0
call fcn.1000eec0
mov ecx, dword [0x100178b4]
mov dword [ebp - 8], ecx
cmp dword [ebp - 8], 0
je 0x1000f64a
mov edx, dword [ebp - 8]
mov eax, dword [edx + 4]
push eax
call sub.KERNEL32.dll_ResumeThread
mov ecx, dword [ebp - 8]
mov edx, dword [ecx]
mov dword [ebp - 0x18], edx
mov eax, dword [ebp - 8]
mov dword [ebp - 0x14], eax
push 8
mov ecx, dword [ebp - 0x14]
push ecx
call fcn.1000d002
add esp, 8
mov edx, dword [ebp - 0x18]
mov dword [ebp - 8], edx
jmp 0x1000f614
mov dword [0x100178b4], 0
mov dword [0x100178a8], 0
xor eax, eax
mov esp, ebp
pop ebp
ret

Function at 0x1000fb40
Capabilities:
Suspend thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
cmp dword [0x100178ac], 0
je 0x1000fb59
mov eax, dword [0x100178ac]
jmp 0x1000fbf8
call sub.KERNEL32.dll_GetCurrentThread
cmp dword [ebp + 8], eax
jne 0x1000fb6a
xor eax, eax
jmp 0x1000fbf8
push 8
call fcn.1000cfd2
add esp, 4
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0xc]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jne 0x1000fbc2
mov dword [ebp - 8], 8
cmp dword [ebp - 4], 0
je 0x1000fbab
mov ecx, dword [ebp - 4]
mov dword [ebp - 0x10], ecx
push 8
mov edx, dword [ebp - 0x10]
push edx
call fcn.1000d002
add esp, 8
mov dword [ebp - 4], 0
mov eax, dword [ebp - 8]
mov dword [0x100178ac], eax
mov dword [0x100178b0], 0
mov eax, dword [ebp - 8]
jmp 0x1000fbf8
mov ecx, dword [ebp + 8]
push ecx
call sub.KERNEL32.dll_SuspendThread
cmp eax, 0xffffffff
jne 0x1000fbda
call sub.KERNEL32.dll_GetLastError
mov dword [ebp - 8], eax
jmp 0x1000fb8a
mov edx, dword [ebp - 4]
mov eax, dword [ebp + 8]
mov dword [edx + 4], eax
mov ecx, dword [ebp - 4]
mov edx, dword [0x100178b4]
mov dword [ecx], edx
mov eax, dword [ebp - 4]
mov dword [0x100178b4], eax
xor eax, eax
mov esp, ebp
pop ebp
ret 4
Function at 0x401040
Capabilities:
Read file on windows

Disassembly:
sub esp, 0x10
push ebx
push ebp
push esi
mov esi, dword [esp + 0x20]
push 0x4245a0
push esi
mov dword [esp + 0x1c], 0xffffffff
call fcn.004040c0
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.004024b0
add esp, 8
xor ebp, ebp
push ebp
call fcn.004103f1
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.0040dd15
add esp, 0x10
test eax, eax
jns 0x4010e2
call fcn.004103d3
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.00402630
push ebx
call fcn.0040d65c
add esp, 0x14
jmp 0x40120f
push dword [edi + 0xc]
call fcn.0041040c
mov esi, eax
add esp, 4
mov dword [esp + 0x10], esi
mov ebp, esi
mov dword [esp + 0x1c], ebp
test esi, esi
jne 0x40113b
mov esi, dword [edi + 0xc]
call fcn.004103d3
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.00402630
push ebx
call fcn.0040d65c
add esp, 0x18
pop edi
push ebp
call fcn.004103f1
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 ebx
call fcn.00401230
add esp, 0x10
test eax, eax
jne 0x401200
jmp 0x4011af
mov edi, dword [edi + 0xc]
xor ebp, ebp
mov dword [esp + 0x14], eax
test edi, edi
je 0x4011ab
test ebp, ebp
jb 0x40117a
ja 0x401173
cmp edi, 0x2000
jbe 0x40117a
mov esi, 0x2000
jmp 0x40117c
mov esi, edi
push ebx
push 1
push esi
push eax
call fcn.0040d91e
add esp, 0x10
cmp eax, 1
jb 0x4011db
mov eax, dword [esp + 0x14]
sub edi, esi
sbb ebp, 0
add eax, esi
mov dword [esp + 0x14], eax
test ebp, ebp
ja 0x401173
jb 0x4011a7
test edi, edi
jne 0x401165
mov esi, dword [esp + 0x10]
mov ebp, dword [esp + 0x1c]
push ebx
call fcn.0040d65c
push dword [esp + 0x30]
push esi
call fcn.004041d0
add esp, 0xc
mov dword [esp + 0x18], eax
pop edi
push ebp
call fcn.004103f1
mov eax, dword [esp + 0x18]
add esp, 4
pop esi
pop ebp
pop ebx
add esp, 0x10
ret
call fcn.004103d3
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.00402630
mov esi, dword [esp + 0x20]
add esp, 0x10
push esi
call fcn.004103f1
push ebx
call fcn.0040d65c
add esp, 8
xor ebp, ebp
pop edi
push ebp
call fcn.004103f1
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 0x4245a0
push esi
xor edi, edi
call fcn.004040c0
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.004024b0
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.0040dd15
add esp, 0x10
test eax, eax
jns 0x40150a
call fcn.004103d3
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.00402630
add esp, 0x10
jmp 0x401542
push dword [ebx + 0xc]
call fcn.0041040c
add esp, 4
mov dword [esp + 0x10], eax
test eax, eax
jne 0x401558
mov esi, dword [ebx + 0xc]
call fcn.004103d3
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.00402630
add esp, 0x14
mov edi, dword [esp + 0x10]
push dword [esp + 0x14]
call fcn.0040d65c
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.004103f1
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.0040d91e
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.004103d3
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.00402630
mov edi, dword [esp + 0x20]
add esp, 0x10
push edi
call fcn.004103f1
add esp, 4
xor edi, edi
jmp 0x401542
mov edi, eax
jmp 0x401542
Function at 0x407390
Capabilities:
Read file on windows
Write file on windows

Disassembly:
mov eax, 0x1004
call fcn.0040b890
mov eax, dword [0x432010]
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 0x4245a0
push eax
call fcn.004040c0
mov esi, eax
add esp, 8
test esi, esi
je 0x4073ec
push 0x424688
push edi
call fcn.004040c0
add esp, 8
mov edi, eax
push esi
test edi, edi
jne 0x407407
call fcn.0040d65c
add esp, 4
pop edi
pop esi
or eax, 0xffffffff
pop ebx
mov ecx, dword [esp + 0x1000]
xor ecx, esp
call fcn.0040b6a3
add esp, 0x1004
ret
call fcn.0040d6e0
add esp, 4
test eax, eax
jne 0x407479
push esi
push 0x1000
lea eax, [esp + 0x14]
push 1
push eax
call fcn.0040d91e
add esp, 0x10
test eax, eax
je 0x407460
push edi
push eax
lea eax, [esp + 0x14]
push 1
push eax
call fcn.0040df4f
add esp, 0x10
test eax, eax
je 0x40745d
push edi
call fcn.0040d70c
add esp, 4
test eax, eax
jne 0x40745d
push esi
call fcn.0040d6e0
add esp, 4
test eax, eax
je 0x407413
jmp 0x407479
push edi
jmp 0x40746e
push esi
call fcn.0040d70c
add esp, 4
test eax, eax
je 0x407479
push esi
call fcn.004121b7
add esp, 4
or ebx, 0xffffffff
push esi
call fcn.0040d65c
push edi
call fcn.0040d65c
mov ecx, dword [esp + 0x1014]
add esp, 8
mov eax, ebx
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.0040b6a3
add esp, 0x1004
ret

Function at 0x4074b0
Capabilities:
Create directory

Disassembly:
mov eax, 0x3008
call fcn.0040b890
mov eax, dword [0x432010]
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 0x4074f0
sub ecx, edx
mov edx, edi
lea ebx, [edx + 1]
nop
mov al, byte [edx]
inc edx
test al, al
jne 0x407500
sub edx, ebx
lea eax, [ecx + 1]
add eax, edx
cmp eax, 0x1000
jae 0x4075c1
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.0040ca30
mov esi, eax
add esp, 0x1c
test esi, esi
je 0x4075bd
mov ebx, 0x1000
sub ebx, ebp
lea ebp, [esp + ebp + 0x14]
nop
push edi
mov eax, esi
sub eax, edi
push eax
push 0x4260a4
push ebx
push ebp
call fcn.00401c60
lea eax, [esp + 0x28]
push eax
call fcn.00404060
add esp, 0x18
test eax, eax
jne 0x4075a9
push 0x1000
lea eax, [esp + 0x1018]
push eax
lea eax, [esp + 0x1c]
push eax
call fcn.00408910
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 0x4075c1
lea eax, [esi + 1]
push 0x5c
push eax
call fcn.0040ca30
mov esi, eax
add esp, 8
test esi, esi
jne 0x407550
xor eax, eax
jmp 0x4075c4
or eax, 0xffffffff
mov ecx, dword [esp + 0x3014]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.0040b6a3
add esp, 0x3008
ret
Function at 0x4075e0
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.0041040c
mov esi, eax
add esp, 4
mov dword [esp + 0x14], esi
test esi, esi
je 0x40774a
mov ebx, dword [esp + 0x2c]
push 2
push 0
push 0
push ebx
call fcn.0040dd15
add esp, 0x10
test eax, eax
js 0x40774a
push ebx
call fcn.00412838
add esp, 4
mov edi, eax
mov eax, dword [esp + 0x34]
test edx, edx
jb 0x40774a
ja 0x407666
cmp edi, eax
jb 0x40774a
test edx, edx
jne 0x407666
cmp edi, 0x2000
jae 0x407666
xorps xmm0, xmm0
movlpd qword [esp + 0x20], xmm0
mov ebx, dword [esp + 0x24]
mov ebp, dword [esp + 0x20]
jmp 0x407673
mov ebp, edi
mov ebx, edx
add ebp, 0xffffe000
adc ebx, 0xffffffff
sub edi, ebp
mov dword [esp + 0x10], ebx
cmp edi, eax
jb 0x40774a
push 0
push ebx
push ebp
push dword [esp + 0x38]
call fcn.0040dd15
add esp, 0x10
test eax, eax
js 0x40774a
push dword [esp + 0x2c]
push edi
push 1
push esi
call fcn.0040d91e
add esp, 0x10
cmp eax, edi
jne 0x40774a
mov eax, dword [esp + 0x34]
sub edi, eax
add edi, 1
je 0x407729
lea ebx, [esi - 1]
add ebx, edi
mov esi, dword [esp + 0x30]
mov edx, ebx
sub eax, 4
jb 0x4076e1
nop dword [eax]
mov ecx, dword [edx]
cmp ecx, dword [esi]
jne 0x4076ea
add edx, 4
add esi, 4
sub eax, 4
jae 0x4076d0
cmp eax, 0xfffffffc
je 0x40776a
mov cl, byte [edx]
cmp cl, byte [esi]
jne 0x407717
cmp eax, 0xfffffffd
je 0x40776a
mov cl, byte [edx + 1]
cmp cl, byte [esi + 1]
jne 0x407717
cmp eax, 0xfffffffe
je 0x40776a
mov cl, byte [edx + 2]
cmp cl, byte [esi + 2]
jne 0x407717
cmp eax, 0xffffffff
je 0x40776a
mov al, byte [edx + 3]
cmp al, byte [esi + 3]
je 0x40776a
mov eax, dword [esp + 0x34]
dec ebx
sub edi, 1
jne 0x4076c1
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 0x407647
test ebp, ebp
jne 0x407647
mov edi, dword [esp + 0x18]
mov esi, dword [esp + 0x1c]
push dword [esp + 0x14]
call fcn.004103f1
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 0x407752