joyce8/EMBER2024-capa huggingface dataset:
Function at 0x417000
Capabilities:
Parse pe header
Read file on windows

Disassembly:
sub esp, 0x40
lea eax, [esp + 0x44]
lea ecx, [esp]
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_ReadFile]
push ebp
push esi
mov esi, dword [esp + 0x50]
push edi
push 0
push eax
push 0x40
push ecx
push esi
call ebx
test eax, eax
je 0x417175
cmp dword [esp + 0x54], 0x40
jne 0x417175
cmp word [esp + 0x10], 0x5a4d
jne 0x417175
mov edx, dword [esp + 0x4c]
mov ebp, dword [sym.imp.KERNEL32.dll_SetFilePointer]
push 0
push 0
push edx
push esi
call ebp
cmp eax, 0xffffffff
je 0x417175
lea eax, [esp + 0x54]
push 0
push eax
push 0xf8
push 0x41d960
push esi
call ebx
test eax, eax
je 0x417175
cmp dword [esp + 0x54], 0xf8
jne 0x417175
cmp dword [0x41d960], 0x4550
jne 0x417175
mov eax, dword [0x41d976]
test ah, 0x20
jne 0x417175
mov edx, dword [0x41da80]
xor eax, eax
mov ax, word [0x41d966]
add eax, edx
lea eax, [eax + eax*4]
shl eax, 3
push eax
push 0x40
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
test eax, eax
mov dword [0x41da58], eax
je 0x417175
push 1
push 0
push 0
push esi
call ebp
mov dword [0x41da6c], eax
xor eax, eax
mov ax, word [0x41d966]
mov edx, dword [0x41da58]
lea ecx, [esp + 0x54]
push 0
lea edi, [eax + eax*4]
push ecx
shl edi, 3
push edi
push edx
push esi
call ebx
test eax, eax
je 0x417175
cmp dword [esp + 0x54], edi
jne 0x417175
push 1
push 0
push 0
push esi
call ebp
mov ecx, dword [0x41da80]
lea ecx, [ecx + ecx*4]
lea edx, [eax + ecx*8]
mov eax, dword [0x41d9b4]
cmp edx, eax
ja 0x417175
mov edi, dword [0x41da58]
mov ecx, dword [0x41d988]
mov eax, dword [edi + 0x10]
mov edx, dword [edi + 0xc]
add eax, edx
cmp ecx, eax
jae 0x417175
xor eax, eax
push 2
mov ax, word [0x41d966]
push 0
push 0
push esi
lea ecx, [eax + eax*4]
mov ebx, dword [edi + ecx*8 - 0x18]
lea edi, [edi + ecx*8]
call ebp
mov edx, dword [edi - 0x14]
add edx, ebx
cmp eax, edx
jne 0x417175
cmp dword [edi - 0x20], ebx
ja 0x417175
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0x40
ret
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x40
ret
Function at 0x419769
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1a4
mov edx, dword [ebp + 8]
xor ecx, ecx
mov eax, 0x41d190
cmp edx, dword [eax]
je 0x41978b
add eax, 8
inc ecx
cmp eax, 0x41d220
jl 0x41977c
push esi
mov esi, ecx
shl esi, 3
cmp edx, dword [esi + 0x41d190]
jne 0x4198b9
mov eax, dword [0x41dbb0]
cmp eax, 1
je 0x419893
test eax, eax
jne 0x4197bc
cmp dword [0x41d0e4], 1
je 0x419893
cmp edx, 0xfc
je 0x4198b9
lea eax, [ebp - 0x1a4]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x4197f3
lea eax, [ebp - 0x1a4]
push str._program_name_unknown_
push eax
call fcn.0041a670
pop ecx
pop ecx
lea eax, [ebp - 0x1a4]
push edi
push eax
lea edi, [ebp - 0x1a4]
call fcn.0041a490
inc eax
pop ecx
cmp eax, 0x3c
jbe 0x419836
lea eax, [ebp - 0x1a4]
push eax
call fcn.0041a490
mov edi, eax
lea eax, [ebp - 0x1a4]
sub eax, 0x3b
push 3
add edi, eax
push 0x41c45c
push edi
call fcn.0041af00
add esp, 0x10
lea eax, [ebp - 0xa0]
push str.Runtime_Error__n_nProgram:
push eax
call fcn.0041a670
lea eax, [ebp - 0xa0]
push edi
push eax
call fcn.0041a680
lea eax, [ebp - 0xa0]
push 0x41c43c
push eax
call fcn.0041a680
push dword [esi + 0x41d194]
lea eax, [ebp - 0xa0]
push eax
call fcn.0041a680
push 0x12010
lea eax, [ebp - 0xa0]
push str.Microsoft_Visual_C_Runtime_Library
push eax
call fcn.0041ae75
add esp, 0x2c
pop edi
jmp 0x4198b9
lea eax, [ebp + 8]
lea esi, [esi + 0x41d194]
push 0
push eax
push dword [esi]
call fcn.0041a490
pop ecx
push eax
push dword [esi]
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop esi
leave
ret
Function at 0x4011aa
Capabilities:
Read file on windows

Disassembly:
push ebp
lea ebp, [esp - 0x1b8]
sub esp, 0x238
mov eax, dword [0x4205cc]
xor eax, ebp
mov dword [ebp + 0x1b4], eax
push ebx
push esi
mov esi, edx
push esi
mov ebx, ecx
call fcn.0040115c
test eax, eax
pop ecx
jne 0x40133f
push edi
push 0x8000
push ebx
call fcn.00410ea0
mov edi, eax
test edi, edi
pop ecx
pop ecx
mov dword [ebp - 0x50], edi
jl 0x401319
lea eax, [ebp - 0x80]
push eax
push edi
call fcn.004070f6
test eax, eax
pop ecx
pop ecx
jne 0x401319
movzx eax, word [ebp - 0x7a]
push eax
push esi
call fcn.00401138
mov ebx, eax
test ebx, ebx
pop ecx
pop ecx
jge 0x401250
call fcn.0040608b
push dword [eax]
push esi
push str.copy_file:_failed_to_open:__s__d_n
call fcn.0040106d
add esp, 0xc
cmp ebx, 0xffffffff
je 0x40123d
push ebx
call fcn.0040ba5c
pop ecx
cmp edi, 0xffffffff
je 0x401249
push edi
call fcn.0040ba5c
pop ecx
push 7
jmp 0x40133d
push 0x200
lea eax, [ebp - 0x4c]
push eax
push edi
call fcn.004120b1
mov esi, eax
add esp, 0xc
test esi, esi
jle 0x4012a9
lea edi, [ebp - 0x4c]
push esi
mov eax, edi
push eax
jmp 0x401279
sub esi, eax
je 0x401286
add edi, eax
push esi
push edi
push ebx
call fcn.0041066b
add esp, 0xc
test eax, eax
jg 0x401271
test eax, eax
jl 0x4012cc
push 0x200
lea eax, [ebp - 0x4c]
push eax
push dword [ebp - 0x50]
call fcn.004120b1
mov esi, eax
add esp, 0xc
test esi, esi
jg 0x401268
mov edi, dword [ebp - 0x50]
test esi, esi
jge 0x4012fd
call fcn.0040608b
push dword [eax]
push str.copy_file:_failed_to_read:__d_n
call fcn.0040106d
cmp ebx, 0xffffffff
pop ecx
pop ecx
je 0x40132f
push ebx
call fcn.0040ba5c
pop ecx
jmp 0x40132f
call fcn.0040608b
push dword [eax]
push str.copy_file:_failed_to_write:__d_n
call fcn.0040106d
cmp ebx, 0xffffffff
pop ecx
pop ecx
je 0x4012eb
push ebx
call fcn.0040ba5c
pop ecx
cmp dword [ebp - 0x50], 0xffffffff
je 0x401249
push dword [ebp - 0x50]
jmp 0x401243
cmp ebx, 0xffffffff
je 0x401309
push ebx
call fcn.0040ba5c
pop ecx
cmp edi, 0xffffffff
je 0x401315
push edi
call fcn.0040ba5c
pop ecx
xor eax, eax
jmp 0x40133e
call fcn.0040608b
push dword [eax]
push ebx
push edi
push str.copy_file:_failed_to_open_or_stat:__d__s__d_n
call fcn.0040106d
add esp, 0x10
cmp edi, 0xffffffff
je 0x40133b
push edi
call fcn.0040ba5c
pop ecx
push 6
pop eax
pop edi
mov ecx, dword [ebp + 0x1b4]
pop esi
xor ecx, ebp
pop ebx
call fcn.00406041
add ebp, 0x1b8
leave
ret
Function at 0x4016c7
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x34
push ebx
push edi
lea eax, [ebp - 0x34]
push eax
push dword [ebp + 8]
call fcn.004070f6
test eax, eax
pop ecx
pop ecx
je 0x4016e9
push 6
pop eax
jmp 0x40177a
mov eax, dword [esi + 0x1c]
cmp dword [ebp - 0x20], eax
je 0x4016f5
push 8
jmp 0x4016e3
push eax
call fcn.004074a7
test eax, eax
pop ecx
mov dword [esi + 0x38], eax
jne 0x401706
inc eax
jmp 0x40177a
mov edi, dword [esi + 0x1c]
mov ebx, eax
jmp 0x401735
mov eax, 0x200
cmp edi, eax
jae 0x401718
mov eax, edi
push eax
push ebx
push dword [ebp + 8]
call fcn.004120b1
add esp, 0xc
test eax, eax
jl 0x4016e1
sub edi, eax
add ebx, eax
test eax, eax
jne 0x401735
test edi, edi
jne 0x4016f1
test edi, edi
jne 0x40170d
mov ecx, dword [esi + 0x38]
mov eax, dword [esi + 0x1c]
or edx, 0xffffffff
add eax, ecx
jmp 0x40175b
movzx ebx, byte [ecx]
mov edi, edx
shr edi, 0x18
xor edi, ebx
shl edx, 8
xor edx, dword [edi*4 + 0x421958]
inc ecx
cmp ecx, eax
jne 0x401746
not edx
cmp edx, dword [esi + 0x20]
je 0x401778
push str.CRC_check_failed_n
call fcn.0040106d
pop ecx
push 4
jmp 0x4016e3
xor eax, eax
pop edi
pop ebx
leave
ret 4
Function at 0x401b65
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x64
push ebx
xor ebx, ebx
cmp dword [0x422c64], ebx
push esi
push edi
jne 0x401bb4
mov esi, dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push str.IsUserAnAdmin
push str.shell32.dll
call esi
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call edi
push str.CreateProcessWithTokenW
push str.advapi32.dll
mov dword [0x422c6c], eax
call esi
push eax
call edi
cmp eax, ebx
mov dword [0x422c64], eax
je 0x401cad
mov eax, dword [0x422c6c]
cmp eax, ebx
je 0x401cad
call eax
test eax, eax
je 0x401cad
push ebx
push str.Progman
call dword [sym.imp.USER32.dll_FindWindowA]
lea ecx, [ebp - 0x10]
push ecx
push eax
call dword [sym.imp.USER32.dll_GetWindowThreadProcessId]
push dword [ebp - 0x10]
mov edi, 0x2000000
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov esi, eax
cmp esi, ebx
je 0x401cad
lea eax, [ebp - 8]
push eax
push edi
push esi
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
push esi
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [ebp - 4], eax
call esi
cmp dword [ebp - 4], ebx
je 0x401cad
lea eax, [ebp - 0xc]
push eax
push 1
push 3
push ebx
push edi
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_DuplicateTokenEx]
push dword [ebp - 8]
mov edi, eax
call esi
cmp edi, ebx
je 0x401cad
push 0x3c
lea eax, [ebp - 0x5c]
push ebx
push eax
mov dword [ebp - 0x64], 0x44
mov dword [ebp - 0x60], ebx
call fcn.00409210
mov dword [ebp - 0x20], ebx
xor eax, eax
lea edi, [ebp - 0x1c]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
add esp, 0xc
stosd dword es:[edi], eax
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov edi, eax
lea eax, [ebp - 0x20]
push eax
lea eax, [ebp - 0x64]
push eax
push ebx
push edi
push 0x400
push dword [ebp + 0xc]
push dword [ebp + 8]
push ebx
push dword [ebp - 0xc]
call dword [0x422c64]
cmp edi, ebx
mov dword [ebp - 4], eax
je 0x401c94
push edi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
push dword [ebp - 0xc]
call esi
cmp dword [ebp - 4], ebx
je 0x401cad
push dword [ebp - 0x20]
call esi
push dword [ebp - 0x1c]
call esi
xor eax, eax
inc eax
jmp 0x401caf
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x401cb4
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x54
push ebx
push esi
xor esi, esi
cmp dword [ebp + 0xc], esi
push edi
mov ebx, ecx
jle 0x401d03
add ebx, 4
dec eax
push eax
call fcn.00401ad2
mov edi, eax
cmp edi, esi
pop ecx
jne 0x401cde
xor eax, eax
jmp 0x401d8e
push 0xa
push esi
push edi
push dword [ebp + 8]
push esi
push esi
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
push 0x20
pop ecx
cmp ecx, eax
sbb esi, esi
push edi
neg esi
call fcn.00407068
mov eax, esi
jmp 0x401d8d
push eax
call fcn.00401ad2
mov ebx, eax
cmp ebx, esi
pop ecx
je 0x401cd7
cmp dword [ebp + 0xc], esi
jge 0x401d2b
push ebx
push dword [ebp + 8]
call fcn.00401b65
mov edi, eax
cmp edi, esi
pop ecx
pop ecx
jne 0x401d2e
mov dword [ebp + 0xc], esi
jmp 0x401d2e
mov edi, dword [ebp + 0xc]
cmp dword [ebp + 0xc], esi
jne 0x401d85
push 0x3c
lea eax, [ebp - 0x4c]
push esi
push eax
mov dword [ebp - 0x54], 0x44
mov dword [ebp - 0x50], esi
call fcn.00409210
xor eax, eax
mov dword [ebp - 0x10], esi
lea edi, [ebp - 0xc]
stosd dword es:[edi], eax
add esp, 0xc
stosd dword es:[edi], eax
stosd dword es:[edi], eax
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0x54]
push eax
push esi
push esi
push esi
push esi
push esi
push esi
push ebx
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
mov edi, eax
cmp edi, esi
je 0x401d85
push dword [ebp - 0x10]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call esi
push dword [ebp - 0xc]
call esi
push ebx
call fcn.00407068
mov eax, edi
pop ecx
pop edi
pop esi
pop ebx
leave
ret
Function at 0x401d93
Capabilities:
Copy file
Read .ini file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc38
mov eax, dword [0x4205cc]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push eax
mov dword [ebp - 0xc38], eax
lea eax, [ebp - 0x414]
push eax
call fcn.004060f9
lea eax, [ebp - 0x414]
push 0x5c
push eax
call fcn.00406c2f
add esp, 0x10
test eax, eax
je 0x401f20
push ebx
push esi
push edi
add eax, 2
push str.updater.ini
push eax
call fcn.004060f9
mov edi, dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
pop ecx
pop ecx
lea eax, [ebp - 0x414]
push eax
mov esi, 0x104
push esi
lea eax, [ebp - 0xa2c]
push eax
push 0
push str.ExeRelPath
mov ebx, str.PostUpdateWin
push ebx
call edi
test eax, eax
je 0x401f1d
lea eax, [ebp - 0x414]
push eax
push esi
lea eax, [ebp - 0x824]
push eax
push 0
push str.ExeArg
push ebx
call edi
test eax, eax
je 0x401f1d
push dword [ebp - 0xc38]
lea eax, [ebp - 0x20c]
push eax
call fcn.004060f9
lea eax, [ebp - 0x20c]
push 0x5c
push eax
call fcn.00406c2f
lea ecx, [ebp - 0xa2c]
push ecx
add eax, 2
push eax
call fcn.004060f9
lea eax, [ebp - 0x20c]
push eax
lea eax, [ebp - 0x61c]
push eax
call fcn.004060f9
lea eax, [ebp - 0x61c]
push 0x5c
push eax
call fcn.00406c2f
add eax, 2
push str.uninstall.update
push eax
call fcn.004060f9
push dword [0x422c68]
lea eax, [ebp - 0xc34]
push 0x41dcb8
push esi
push eax
call fcn.00406dbd
lea eax, [ebp - 0x61c]
add esp, 0x40
push eax
call fcn.004060cf
pop ecx
push 0
lea eax, [ebp - 0x61c]
push eax
lea eax, [ebp - 0xc34]
push eax
call dword [sym.imp.KERNEL32.dll_CopyFileW]
test byte [0x422c8c], 1
jne 0x401efc
or dword [0x422c8c], 1
lea eax, [ebp - 0x824]
mov dword [0x4210d4], eax
mov dword [0x4210d8], 0x41dfc8
push 1
lea eax, [ebp - 0x20c]
push eax
mov esi, 0x4210d0
push 2
mov ecx, esi
pop eax
call fcn.00401cb4
push esi
call fcn.00407068
add esp, 0xc
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00406041
leave
ret
Function at 0x40208d
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
cmp dword [ebp + 8], 3
jge 0x4020b3
push str.Usage:_updater__dir_path___parent_pid___working_dir_callback_args...__n
call fcn.0040762b
add eax, 0x40
push eax
call fcn.00406e8e
pop ecx
xor eax, eax
pop ecx
inc eax
leave
ret
push ebx
mov ebx, dword [ebp + 0xc]
push esi
push edi
push dword [ebx + 8]
call fcn.00407447
test eax, eax
mov esi, dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
pop ecx
je 0x40210d
push eax
push 0
push 0x100000
call dword [sym.imp.KERNEL32.dll_OpenProcess]
test eax, eax
mov dword [ebp - 4], eax
je 0x40210d
push 0x1388
push eax
call esi
push dword [ebp - 4]
mov dword [ebp - 8], eax
call edi
cmp dword [ebp - 8], 0
je 0x402105
xor eax, eax
inc eax
jmp 0x4021c2
push 0x32
call dword [sym.imp.KERNEL32.dll_Sleep]
mov eax, dword [ebx + 4]
mov dword [0x422c68], eax
call fcn.00401010
xor eax, eax
lea ecx, [ebp - 8]
push ecx
push eax
lea ecx, [ebp - 0x14]
push ecx
push section..text
push eax
push eax
mov dword [ebp - 0x10], 0x401fcd
mov dword [ebp - 0xc], eax
call fcn.00406b81
add esp, 0x18
test eax, eax
mov dword [ebp - 0x14], eax
je 0x40214a
call fcn.00402f17
push 0xffffffffffffffff
push dword [ebp - 0x14]
call esi
push dword [ebp - 0x14]
call edi
mov eax, dword [0x422c78]
test eax, eax
je 0x40216d
push eax
call fcn.004061b1
and dword [0x422c78], 0
pop ecx
cmp byte [0x422c74], 0
je 0x402185
cmp dword [ebp + 8], 4
jle 0x4021c0
push dword [ebx + 0x10]
call fcn.00401d93
pop ecx
mov edi, dword [ebp + 8]
cmp edi, 4
jle 0x4021c0
lea esi, [ebx + 0x10]
mov ebx, dword [ebx + 0xc]
push str.NO_EM_RESTART
call fcn.0040643c
mov dword [esp], str.MOZ_LAUNCHED_CHILD1
call fcn.0040643c
push ebx
call fcn.00406c8b
push 0xffffffffffffffff
push dword [esi]
lea eax, [edi - 4]
mov ecx, esi
call fcn.00401cb4
add esp, 0x10
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x40266e
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x38
push edi
push 0x20
push esi
push dword [ebp + 8]
call fcn.004120b1
add esp, 0xc
cmp eax, 0x20
je 0x40268d
push 6
pop eax
jmp 0x402704
push dword [esi + 8]
mov edi, dword [sym.imp.WSOCK32.dll_ntohl]
call edi
push dword [esi + 0xc]
mov dword [esi + 8], eax
call edi
push dword [esi + 0x10]
mov dword [esi + 0xc], eax
call edi
push dword [esi + 0x14]
mov dword [esi + 0x10], eax
call edi
push dword [esi + 0x18]
mov dword [esi + 0x14], eax
call edi
push dword [esi + 0x1c]
mov dword [esi + 0x18], eax
call edi
mov dword [esi + 0x1c], eax
lea eax, [ebp - 0x34]
push eax
push dword [ebp + 8]
call fcn.004070f6
test eax, eax
pop ecx
pop ecx
jne 0x402688
push 8
push str.MBDIFF10
push esi
call fcn.00407b88
add esp, 0xc
test eax, eax
je 0x4026ed
push 8
jmp 0x40268a
mov eax, dword [esi + 0x14]
add eax, dword [esi + 0x18]
mov ecx, dword [esi + 0x1c]
lea eax, [eax + ecx + 0x20]
sub eax, dword [ebp - 0x20]
neg eax
sbb eax, eax
and eax, 8
pop edi
leave
ret
Function at 0x402707
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
push edi
mov edi, eax
mov eax, dword [edi + 8]
add eax, dword [ebp + 0xc]
mov dword [ebp - 0x14], eax
mov eax, dword [edi + 0x14]
add eax, dword [edi + 0x18]
add eax, dword [edi + 0x1c]
push eax
call fcn.004074a7
test eax, eax
pop ecx
mov dword [ebp - 0x10], eax
jne 0x402736
inc eax
jmp 0x402880
and dword [ebp - 4], 0
push ebx
push esi
mov esi, dword [edi + 0x14]
add esi, dword [edi + 0x18]
add esi, dword [edi + 0x1c]
je 0x40277d
mov ebx, 0x7fffffff
cmp esi, ebx
mov eax, ebx
jg 0x402754
mov eax, esi
push eax
push dword [ebp - 0x10]
push dword [ebp + 8]
call fcn.004120b1
add esp, 0xc
test eax, eax
jl 0x402859
sub esi, eax
test eax, eax
jne 0x402779
test esi, esi
jne 0x40286b
test esi, esi
jne 0x40274c
mov eax, dword [edi + 0x14]
mov esi, dword [ebp - 0x10]
mov ebx, dword [edi + 0x18]
mov edi, dword [edi + 0x1c]
add eax, esi
add ebx, eax
mov dword [ebp - 8], eax
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x18], ebx
add edi, ebx
push dword [esi]
call dword [sym.imp.WSOCK32.dll_ntohl]
push dword [esi + 4]
mov dword [esi], eax
call dword [sym.imp.WSOCK32.dll_ntohl]
push dword [esi + 8]
mov dword [esi + 4], eax
call dword [sym.imp.WSOCK32.dll_ntohl]
mov ecx, dword [ebp + 0xc]
mov dword [esi + 8], eax
mov eax, dword [esi]
lea edx, [eax + ecx]
cmp edx, dword [ebp - 0x14]
ja 0x40286b
mov edx, dword [ebp - 8]
add edx, eax
cmp edx, dword [ebp - 0x18]
ja 0x40286b
and dword [ebp - 0xc], 0
test eax, eax
jbe 0x4027f6
mov eax, dword [ebp - 8]
sub ecx, eax
mov dl, byte [ecx + eax]
add byte [eax], dl
inc dword [ebp - 0xc]
mov edx, dword [ebp - 0xc]
inc eax
cmp edx, dword [esi]
jb 0x4027e6
mov eax, dword [esi]
push eax
push dword [ebp - 8]
mov dword [ebp - 0xc], eax
push dword [ebp + 0x10]
call fcn.0041066b
mov ecx, dword [ebp - 0xc]
add esp, 0xc
cmp eax, ecx
jne 0x402862
mov eax, dword [esi + 4]
add dword [ebp + 0xc], ecx
add dword [ebp - 8], ecx
add eax, ebx
cmp eax, edi
ja 0x40286b
mov eax, dword [esi + 4]
push eax
push ebx
push dword [ebp + 0x10]
mov dword [ebp - 0xc], eax
call fcn.0041066b
add esp, 0xc
cmp eax, dword [ebp - 0xc]
jne 0x402862
mov eax, dword [esi + 8]
mov ecx, dword [ebp + 0xc]
add ebx, dword [ebp - 0xc]
add eax, ecx
cmp eax, dword [ebp - 0x14]
ja 0x40286b
add esi, 0xc
cmp esi, dword [ebp - 0x1c]
mov dword [ebp + 0xc], eax
jb 0x402798
jmp 0x402872
mov dword [ebp - 4], 6
jmp 0x402872
mov dword [ebp - 4], 7
jmp 0x402872
mov dword [ebp - 4], 8
push dword [ebp - 0x10]
call fcn.00407068
mov eax, dword [ebp - 4]
pop ecx
pop esi
pop ebx
pop edi
leave
ret

Function at 0x4028ff
Capabilities:
Read file on windows
Write file on windows

Disassembly:
push dword [0x422c88]
call fcn.00403267
test eax, eax
pop ecx
jne 0x402915
push 6
pop eax
ret 4
mov ecx, eax
jmp fcn.0040291c
Function at 0x40291c
Capabilities:
Read file on windows
Write file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x444
mov eax, dword [0x4205cc]
xor eax, esp
mov dword [esp + 0x440], eax
mov eax, dword [ebp + 8]
push ebx
push esi
push edi
push 0x30
mov dword [esp + 0x18], eax
lea eax, [esp + 0x1c]
mov edi, ecx
push 0
push eax
mov dword [esp + 0x1c], edi
call fcn.00409210
add esp, 0xc
lea esi, [esp + 0x18]
call fcn.004032f2
test eax, eax
je 0x40296c
push 8
pop eax
jmp 0x402a64
mov eax, dword [edi + 8]
and dword [esp + 0xc], 0
test eax, eax
je 0x402a47
mov esi, 0x200
cmp dword [esp + 0xc], eax
jge 0x4029ec
cmp dword [esp + 0x1c], 0
jne 0x4029ec
sub eax, dword [esp + 0xc]
mov ecx, dword [0x422c88]
mov edi, eax
cmp edi, esi
mov ebx, ecx
jle 0x4029a2
mov edi, esi
mov eax, dword [esp + 0x10]
mov eax, dword [eax + 4]
add eax, dword [esp + 0xc]
push 0
push eax
push dword [ecx]
call fcn.00409c03
add esp, 0xc
test eax, eax
jne 0x402a4c
push dword [ebx]
lea eax, [esp + 0x4c]
push edi
push 1
push eax
call fcn.00409b61
add esp, 0x10
test eax, eax
jle 0x402a4c
add dword [esp + 0xc], eax
mov edi, dword [esp + 0x10]
lea ecx, [esp + 0x48]
mov dword [esp + 0x18], ecx
mov dword [esp + 0x1c], eax
lea eax, [esp + 0x248]
mov dword [esp + 0x28], eax
lea eax, [esp + 0x18]
mov dword [esp + 0x2c], esi
call fcn.00403d7a
mov ebx, eax
test ebx, ebx
je 0x402a0f
cmp ebx, 4
jne 0x402a47
cmp dword [esp + 0x2c], esi
jae 0x402a37
push dword [esp + 0x14]
mov eax, esi
sub eax, dword [esp + 0x30]
push 1
push eax
lea eax, [esp + 0x254]
push eax
call fcn.004093e9
add esp, 0x10
cmp eax, 1
jne 0x402a53
cmp ebx, 4
je 0x402a57
mov eax, dword [edi + 8]
test eax, eax
jne 0x402981
push 8
pop edi
jmp 0x402a59
push 6
jmp 0x402966
push 7
jmp 0x402a49
xor edi, edi
lea esi, [esp + 0x18]
call fcn.00403ec6
mov eax, edi
mov ecx, dword [esp + 0x44c]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.00406041
mov esp, ebp
pop ebp
ret 4
Function at 0x4030e5
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push dword [edi]
xor ebx, ebx
inc ebx
push ebx
lea eax, [ebp - 0x14]
push 4
push eax
call fcn.00409b61
add esp, 0x10
cmp eax, ebx
je 0x40310c
or eax, 0xffffffff
jmp 0x4031da
push 4
lea eax, [ebp - 0x14]
push str.MAR1
push eax
call fcn.00407b88
add esp, 0xc
test eax, eax
jne 0x403104
push dword [edi]
lea eax, [ebp - 0xc]
push ebx
push 4
push eax
call fcn.00409b61
add esp, 0x10
cmp eax, ebx
jne 0x403104
push esi
push dword [ebp - 0xc]
mov esi, dword [sym.imp.WSOCK32.dll_ntohl]
call esi
push 0
push eax
push dword [edi]
mov dword [ebp - 0xc], eax
call fcn.00409c03
add esp, 0xc
test eax, eax
jne 0x40319e
push dword [edi]
lea eax, [ebp - 4]
push ebx
push 4
push eax
call fcn.00409b61
add esp, 0x10
cmp eax, ebx
jne 0x40319e
push dword [ebp - 4]
call esi
push eax
mov dword [ebp - 4], eax
call fcn.004074a7
mov ebx, eax
test ebx, ebx
pop ecx
je 0x40319e
push dword [edi]
push 1
push dword [ebp - 4]
push ebx
call fcn.00409b61
add esp, 0x10
cmp eax, 1
je 0x4031a3
push ebx
call fcn.00407068
pop ecx
or eax, 0xffffffff
jmp 0x4031d9
mov eax, dword [ebp - 4]
add eax, ebx
mov dword [ebp - 8], ebx
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 0x10]
cmp dword [ebp - 8], eax
jae 0x4031c6
push eax
push edi
lea esi, [ebp - 8]
call fcn.00403044
test eax, eax
pop ecx
pop ecx
je 0x4031ae
push ebx
call fcn.00407068
pop ecx
mov ecx, dword [ebp - 0x10]
xor eax, eax
cmp dword [ebp - 8], ecx
sete al
dec eax
pop esi
pop ebx
leave
ret

Function at 0x4032a8
Capabilities:
Terminate process

Disassembly:
push str.1.0.4__20_Dec_2006
push dword [esp + 8]
push str._n_nbzip2_libbzip2:_internal_error_number__d._nThis_is_a_bug_in_bzip2_libbzip2___s._nPlease_report_it_to_me_at:_jseward_bzip.org.__If_this_happened_nwhen_you_were_using_some_program_which_uses_libbzip2_as_a_ncomponent__you_should_also_report_this_bug_to_the_author_s__nof_that_program.__Please_make_an_effort_to_report_this_bug__ntimely_and_accurate_bug_reports_eventually_lead_to_higher_nquality_software.__Thanks.__Julian_Seward__15_February_2005._n_n
call fcn.0040762b
add eax, 0x40
push eax
call fcn.00406e8e
add esp, 0x10
push 3
call fcn.0040a298
int3

Function at 0x406041
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x4205cc]
jne 0x40604b
repz ret
jmp fcn.0040b79a