joyce8/EMBER2024-capa huggingface dataset:
Function at 0x404200
Capabilities:
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
push ebx
mov ebx, dword [ebp + 0xc]
push esi
xor esi, esi
mov ecx, dword [ebx]
test ecx, ecx
jle 0x404223
mov eax, dword [ebx + 4]
add eax, 4
cmp dword [eax], 1
je 0x404226
inc esi
add eax, 0x24
cmp esi, ecx
jl 0x404216
or esi, 0xffffffff
mov eax, dword [ebp + 8]
push edi
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push eax
mov eax, dword [eax + 0xd0]
call eax
mov edi, eax
add esp, 0xc
lea edx, [edi + 1]
mov cl, byte [edi]
inc edi
test cl, cl
jne 0x404241
sub edi, edx
lea esi, [esi + esi*8]
push 0
inc edi
push edi
push eax
mov eax, dword [ebx + 4]
push dword [eax + esi*4 + 0x10]
call dword [sym.imp.WS2_32.dll_send]
cmp eax, edi
pop edi
je 0x404286
call dword [sym.imp.MSVCR120.dll__errno]
push dword [eax]
call dword [sym.imp.MSVCR120.dll_strerror]
push eax
push str.could_not_write_to_the_communication_channel:__s_n
push dword [0x421008]
call fcn.00410f40
add esp, 0x10
mov eax, dword [ebx + 4]
mov ecx, dword [ebp + 0x10]
mov dword [eax + esi*4 + 4], 2
mov eax, dword [ebx + 4]
mov eax, dword [eax + esi*4]
pop esi
pop ebx
mov dword [eax + 4], ecx
pop ebp
ret
Function at 0x404b90
Capabilities:
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 0xc]
sub esp, 8
push edi
push dword [eax]
call fcn.00405040
mov edi, eax
add esp, 4
test edi, edi
je 0x404d44
push ebx
mov ebx, dword [sym.imp.MSVCR120.dll_strncmp]
push esi
mov esi, dword [sym.imp.MSVCR120.dll_sscanf]
lea esp, [esp]
push 5
push str.DUMP
push edi
call ebx
add esp, 0xc
test eax, eax
jne 0x404c6d
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 4]
push eax
lea eax, [edi + 5]
push str._d_n
push eax
call esi
push dword [ebp - 4]
mov ebx, dword [ebp + 8]
push ebx
call fcn.00407810
mov esi, eax
push esi
push ebx
call fcn.00404ae0
mov eax, dword [ebx + 0xdc]
push esi
push ebx
call eax
mov ebx, eax
add esp, 0x28
mov esi, ebx
lea eax, [esi + 1]
mov cl, byte [esi]
inc esi
test cl, cl
jne 0x404c11
sub esi, eax
mov eax, dword [ebp + 0xc]
push 0
inc esi
push esi
push ebx
push dword [eax + 4]
call dword [sym.imp.WS2_32.dll_send]
cmp eax, esi
je 0x404c51
call dword [sym.imp.MSVCR120.dll__errno]
push dword [eax]
call dword [sym.imp.MSVCR120.dll_strerror]
push eax
push str.could_not_write_to_the_communication_channel:__s_n
push dword [0x421008]
call fcn.00410f40
add esp, 0x10
mov eax, dword [sym.imp.MSVCR120.dll_free]
push ebx
call eax
mov ebx, dword [sym.imp.MSVCR120.dll_strncmp]
add esp, 4
mov esi, dword [sym.imp.MSVCR120.dll_sscanf]
jmp 0x404d24
push 8
push str.RESTORE
push edi
call ebx
add esp, 0xc
test eax, eax
jne 0x404d10
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 4]
push eax
lea eax, [edi + 8]
push str._d_n
push eax
call esi
push dword [ebp - 4]
mov ebx, dword [ebp + 8]
push ebx
call fcn.00407810
push eax
mov eax, dword [ebx + 0xe0]
push ebx
call eax
mov ebx, eax
add esp, 0x20
mov ecx, ebx
lea eax, [ecx + 1]
mov dl, byte [ecx]
inc ecx
test dl, dl
jne 0x404cb5
sub ecx, eax
mov eax, dword [ebp + 0xc]
push 0
lea esi, [ecx + 1]
push esi
push ebx
push dword [eax + 4]
call dword [sym.imp.WS2_32.dll_send]
cmp eax, esi
je 0x404cf7
call dword [sym.imp.MSVCR120.dll__errno]
push dword [eax]
call dword [sym.imp.MSVCR120.dll_strerror]
push eax
push str.could_not_write_to_the_communication_channel:__s_n
push dword [0x421008]
call fcn.00410f40
add esp, 0x10
mov eax, dword [sym.imp.MSVCR120.dll_free]
push ebx
call eax
mov ebx, dword [sym.imp.MSVCR120.dll_strncmp]
add esp, 4
mov esi, dword [sym.imp.MSVCR120.dll_sscanf]
jmp 0x404d24
push edi
push str.unrecognized_command_received_from_master:___s__n
push dword [0x421008]
call fcn.00410f40
add esp, 0xc
push edi
call dword [sym.imp.MSVCR120.dll_free]
mov eax, dword [ebp + 0xc]
push dword [eax]
call fcn.00405040
mov edi, eax
add esp, 8
test edi, edi
jne 0x404bc0
pop esi
pop ebx
pop edi
mov esp, ebp
pop ebp
ret
Function at 0x404e40
Capabilities:
Get socket status

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x118
mov eax, dword [0x4210a8]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0x10]
xor ecx, ecx
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
or edi, 0xffffffff
mov dword [ebp - 0x110], eax
mov edx, dword [ebx]
mov dword [ebp - 0x118], 0
mov dword [ebp - 0x114], 0
mov dword [ebp - 0x108], ecx
mov dword [ebp - 0x10c], edx
test edx, edx
jle 0x404ef9
mov eax, dword [ebx + 4]
xor esi, esi
cmp dword [esi + eax + 4], 0
je 0x404eed
xor eax, eax
test ecx, ecx
je 0x404eba
mov edx, dword [ebx + 4]
mov edx, dword [esi + edx + 0xc]
cmp dword [ebp + eax*4 - 0x104], edx
je 0x404eb4
inc eax
cmp eax, ecx
jb 0x404ea6
mov edx, dword [ebp - 0x10c]
cmp eax, ecx
jne 0x404ede
cmp ecx, 0x40
jae 0x404ede
mov ecx, dword [ebx + 4]
mov ecx, dword [esi + ecx + 0xc]
mov dword [ebp + eax*4 - 0x104], ecx
mov ecx, dword [ebp - 0x108]
inc ecx
mov dword [ebp - 0x108], ecx
mov eax, dword [ebx + 4]
mov eax, dword [esi + eax + 0xc]
cmp eax, edi
cmovg edi, eax
mov eax, dword [ebx + 4]
add esi, 0x24
dec edx
mov dword [ebp - 0x10c], edx
jne 0x404e92
cmp byte [ebp + 0xc], 0
je 0x404f72
lea eax, [ebp - 0x108]
push eax
push edi
call fcn.00404dd0
add esp, 8
test eax, eax
jns 0x404f35
call dword [sym.imp.MSVCR120.dll__errno]
push dword [eax]
call dword [sym.imp.MSVCR120.dll_strerror]
push eax
push str.select___failed:__s_n
push dword [0x421008]
call fcn.00410f40
add esp, 0x10
xor esi, esi
cmp dword [ebx], esi
jle 0x404f5f
xor edi, edi
lea ecx, [ecx]
lea eax, [ebp - 0x108]
push eax
mov eax, dword [ebx + 4]
push dword [eax + edi + 0xc]
call sub.WS2_32.dll___WSAFDIsSet
test eax, eax
jne 0x404fa7
inc esi
add edi, 0x24
cmp esi, dword [ebx]
jl 0x404f40
pop edi
pop esi
xor eax, eax
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004175a2
mov esp, ebp
pop ebp
ret
lea eax, [ebp - 0x118]
push eax
push 0
push 0
lea eax, [ebp - 0x108]
push eax
lea eax, [edi + 1]
push eax
call dword [sym.imp.WS2_32.dll_select]
test eax, eax
jne 0x404f11
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004175a2
mov esp, ebp
pop ebp
ret
mov eax, dword [ebx + 4]
lea ecx, [esi + esi*8]
push dword [eax + ecx*4 + 0xc]
call fcn.00405040
mov ecx, dword [ebp - 0x110]
add esp, 4
mov dword [ecx], esi
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004175a2
mov esp, ebp
pop ebp
ret
Function at 0x405040
Capabilities:
Receive data
Receive data on socket

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov edi, 0x40
push edi
call fcn.00412190
add esp, 4
xor esi, esi
mov ebx, eax
lea esp, [esp]
push 0
push 1
lea eax, [esi + ebx]
push eax
push dword [ebp + 8]
call dword [sym.imp.WS2_32.dll_recv]
mov dword [ebp - 4], eax
test eax, eax
jns 0x40508a
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, 0x2746
je 0x4050af
mov eax, dword [ebp - 4]
test eax, eax
jle 0x4050af
cmp byte [esi + ebx], 0
je 0x4050a6
inc esi
cmp esi, edi
jne 0x405060
add edi, 0x10
push edi
push ebx
call fcn.004121e0
add esp, 8
jmp 0x405057
pop edi
pop esi
mov eax, ebx
pop ebx
mov esp, ebp
pop ebp
ret
push ebx
call fcn.00412230
add esp, 4
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x407da0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push ebx
push edi
mov edi, dword [ebp + 0x14]
cmp dword [edi + 0x118], 0
je 0x407e54
mov ebx, dword [ebp + 0xc]
mov eax, ebx
imul eax, dword [ebp + 0x10]
push esi
mov dword [ebp - 8], eax
mov esi, eax
mov eax, dword [edi + 0x168]
add eax, esi
cmp eax, dword [edi + 0x16c]
mov eax, dword [ebp + 8]
jbe 0x407e2e
mov dword [ebp + 0x14], eax
mov ebx, esi
nop
mov ecx, dword [edi + 0x168]
mov esi, dword [edi + 0x16c]
sub esi, ecx
push esi
push eax
mov eax, dword [edi + 0x164]
add eax, ecx
push eax
call sub.MSVCR120.dll_memcpy
add dword [ebp + 0x14], esi
sub ebx, esi
add dword [edi + 0x168], esi
push edi
call fcn.0040a9d0
mov eax, dword [edi + 0x168]
add esp, 0x10
add eax, ebx
cmp eax, dword [edi + 0x16c]
mov eax, dword [ebp + 0x14]
ja 0x407de0
mov dword [ebp - 4], ebx
mov ebx, dword [ebp + 0xc]
mov esi, dword [ebp - 4]
push esi
push eax
mov eax, dword [edi + 0x164]
add eax, dword [edi + 0x168]
push eax
call sub.MSVCR120.dll_memcpy
mov eax, dword [ebp - 8]
add esp, 0xc
add dword [edi + 0x168], esi
pop esi
jmp 0x407ee6
cmp dword [edi + 0x12c], 0
je 0x407e7a
mov ebx, dword [ebp + 0xc]
mov eax, ebx
imul eax, dword [ebp + 0x10]
push eax
push dword [ebp + 8]
push dword [edi + 0x128]
call sub.zlib1.dll_gzwrite
add esp, 0xc
jmp 0x407ee6
mov ecx, dword [edi + 0xec]
test ecx, ecx
je 0x407e99
mov ebx, dword [ebp + 0xc]
mov eax, ebx
imul eax, dword [ebp + 0x10]
push eax
push dword [ebp + 8]
push edi
call ecx
add esp, 0xc
jmp 0x407ee6
mov eax, dword [edi + 4]
test eax, eax
je 0x407eca
cmp dword [eax + 0xa0], 0
je 0x407eca
cmp dword [edi + 0x100], 0
je 0x407eca
mov ebx, dword [ebp + 0xc]
mov eax, ebx
imul eax, dword [ebp + 0x10]
push eax
push dword [ebp + 8]
push edi
call fcn.0040d3f0
add esp, 0xc
jmp 0x407ee6
push dword [edi + 0x128]
mov ebx, dword [ebp + 0xc]
push dword [ebp + 0x10]
push ebx
push dword [ebp + 8]
call dword [sym.imp.MSVCR120.dll_fwrite]
add esp, 0x10
imul eax, ebx
imul ebx, dword [ebp + 0x10]
pop edi
cmp eax, ebx
pop ebx
je 0x407f12
call dword [sym.imp.MSVCR120.dll__errno]
push dword [eax]
call dword [sym.imp.MSVCR120.dll_strerror]
push eax
push str.could_not_write_to_output_file:__s_n
push dword [0x42100c]
call fcn.00410f40
add esp, 0x10
mov esp, ebp
pop ebp
ret
Function at 0x40c3b0
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ebx
mov ebx, dword [ebp + 0x10]
push esi
push edi
mov edi, dword [ebp + 8]
push dword [edi + 0x124]
mov esi, dword [edi + 0x150]
push ebx
push 1
push dword [ebp + 0xc]
call dword [sym.imp.MSVCR120.dll_fread]
add esp, 0x10
cmp eax, ebx
je 0x40c42f
push dword [edi + 0x124]
call dword [sym.imp.MSVCR120.dll_feof]
add esp, 4
test eax, eax
je 0x40c40d
push str.could_not_read_from_input_file:_end_of_file_n
push dword [0x421010]
call fcn.00410f40
add esp, 8
add dword [esi + 8], ebx
adc dword [esi + 0xc], 0
pop edi
pop esi
pop ebx
pop ebp
ret
call dword [sym.imp.MSVCR120.dll__errno]
push dword [eax]
call dword [sym.imp.MSVCR120.dll_strerror]
push eax
push str.could_not_read_from_input_file:__s_n
push dword [0x421010]
call fcn.00410f40
add esp, 0x10
add dword [esi + 8], ebx
pop edi
adc dword [esi + 0xc], 0
pop esi
pop ebx
pop ebp
ret

Function at 0x40c960
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
xor edi, edi
mov eax, dword [ebx + 0x150]
push ebx
mov dword [ebp - 4], eax
mov dword [ebp + 8], edi
call fcn.004078f0
mov esi, eax
add esp, 4
test esi, esi
je 0x40ca3d
jmp 0x40c990
cmp esi, dword [ebp + 8]
jbe 0x40c9b1
test edi, edi
je 0x40c9a3
push edi
call dword [sym.imp.MSVCR120.dll_free]
add esp, 4
push esi
call fcn.00412190
add esp, 4
mov dword [ebp + 8], esi
mov edi, eax
push dword [ebx + 0x124]
push esi
push 1
push edi
call dword [sym.imp.MSVCR120.dll_fread]
add esp, 0x10
cmp eax, esi
je 0x40ca12
push dword [ebx + 0x124]
call dword [sym.imp.MSVCR120.dll_feof]
add esp, 4
test eax, eax
je 0x40c9f0
push str.could_not_read_from_input_file:_end_of_file_n
push dword [0x421010]
call fcn.00410f40
add esp, 8
jmp 0x40ca12
call dword [sym.imp.MSVCR120.dll__errno]
push dword [eax]
call dword [sym.imp.MSVCR120.dll_strerror]
push eax
push str.could_not_read_from_input_file:__s_n
push dword [0x421010]
call fcn.00410f40
add esp, 0x10
mov eax, dword [ebp - 4]
push ebx
add dword [eax + 8], esi
adc dword [eax + 0xc], 0
call fcn.004078f0
mov esi, eax
add esp, 4
test esi, esi
jne 0x40c990
test edi, edi
je 0x40ca3d
push edi
call dword [sym.imp.MSVCR120.dll_free]
add esp, 4
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x40ca50
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push ebx
mov ebx, dword [ebp + 8]
push ebx
call fcn.004078f0
add esp, 4
test eax, eax
je 0x40cb51
push esi
push edi
lea ecx, [ecx]
mov eax, dword [ebx + 0x150]
xor edi, edi
push ebx
mov dword [ebp - 8], eax
mov dword [ebp - 4], edi
call fcn.004078f0
mov esi, eax
add esp, 4
test esi, esi
je 0x40cb3e
cmp esi, dword [ebp - 4]
jbe 0x40cab2
test edi, edi
je 0x40caa4
push edi
call dword [sym.imp.MSVCR120.dll_free]
add esp, 4
push esi
call fcn.00412190
add esp, 4
mov dword [ebp - 4], esi
mov edi, eax
push dword [ebx + 0x124]
push esi
push 1
push edi
call dword [sym.imp.MSVCR120.dll_fread]
add esp, 0x10
cmp eax, esi
je 0x40cb13
push dword [ebx + 0x124]
call dword [sym.imp.MSVCR120.dll_feof]
add esp, 4
test eax, eax
je 0x40caf1
push str.could_not_read_from_input_file:_end_of_file_n
push dword [0x421010]
call fcn.00410f40
add esp, 8
jmp 0x40cb13
call dword [sym.imp.MSVCR120.dll__errno]
push dword [eax]
call dword [sym.imp.MSVCR120.dll_strerror]
push eax
push str.could_not_read_from_input_file:__s_n
push dword [0x421010]
call fcn.00410f40
add esp, 0x10
mov eax, dword [ebp - 8]
push ebx
add dword [eax + 8], esi
adc dword [eax + 0xc], 0
call fcn.004078f0
mov esi, eax
add esp, 4
test esi, esi
jne 0x40ca91
test edi, edi
je 0x40cb3e
push edi
call dword [sym.imp.MSVCR120.dll_free]
add esp, 4
push ebx
call fcn.004078f0
add esp, 4
test eax, eax
jne 0x40ca70
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x40d3a0
Capabilities:
Reference sql statements

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
mov eax, dword [esi + 0x100]
test eax, eax
je 0x40d3d7
push eax
call sub.LIBPQ.dll_Ordinal_113
add esp, 4
cmp eax, 0x15f90
jge 0x40d3d7
mov eax, dword [ebp + 0xc]
push eax
push eax
push str.SELECT_CASE_WHEN_EXISTS_SELECT_1_FROM_pg_catalog.pg_largeobject_WHERE_loid___u__THEN_pg_catalog.lo_unlink__u__END__n
push esi
call fcn.00407f20
add esp, 0x10
pop esi
pop ebp
ret
push dword [ebp + 0xc]
push str.SELECT_pg_catalog.lo_unlink_oid__FROM_pg_catalog.pg_largeobject_metadata_WHERE_oid___u__n
push esi
call fcn.00407f20
add esp, 0xc
pop esi
pop ebp
ret
Function at 0x410150
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
push 0x80
call fcn.00412190
mov ebx, eax
lea eax, [ebp + 0x14]
push eax
push dword [ebp + 0x10]
push 0x80
push ebx
call fcn.00412510
mov edi, eax
add esp, 0x14
cmp edi, 0x80
jb 0x4101a9
push ebx
call dword [sym.imp.MSVCR120.dll_free]
push edi
mov esi, edi
call fcn.00412190
mov ebx, eax
lea eax, [ebp + 0x14]
push eax
push dword [ebp + 0x10]
push edi
push ebx
call fcn.00412510
mov edi, eax
add esp, 0x18
cmp edi, esi
jae 0x410181
mov esi, dword [ebp + 0xc]
mov eax, dword [esi]
test eax, eax
je 0x4101bf
push edi
push ebx
push eax
call sub.zlib1.dll_gzwrite
add esp, 0xc
jmp 0x4101cf
push dword [esi + 4]
push edi
push 1
push ebx
call dword [sym.imp.MSVCR120.dll_fwrite]
add esp, 0x10
mov edi, eax
add dword [esi + 0x18], edi
push ebx
adc dword [esi + 0x1c], 0
call dword [sym.imp.MSVCR120.dll_free]
add esp, 4
mov eax, edi
pop edi
pop esi
pop ebx
pop ebp
ret
Function at 0x4107c0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x204
mov eax, dword [0x4210a8]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 8]
push 0
call dword [sym.imp.MSVCR120.dll__time32]
push eax
push 0x400
push 0x800
push 0x180
push dword [esi + 0x24]
lea eax, [ebp - 0x204]
push dword [esi + 0x20]
push 0
push dword [esi + 0x10]
push eax
call fcn.00415750
push dword [esi + 8]
lea eax, [ebp - 0x204]
push 0x200
push 1
push eax
call dword [sym.imp.MSVCR120.dll_fwrite]
add esp, 0x38
pop esi
cmp eax, 0x200
je 0x41084a
call dword [sym.imp.MSVCR120.dll__errno]
push dword [eax]
call dword [sym.imp.MSVCR120.dll_strerror]
push eax
push str.could_not_write_to_output_file:__s_n
push dword [0x42101c]
call fcn.00410f40
add esp, 0x10
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004175a2
mov esp, ebp
pop ebp
ret

Function at 0x410a60
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
mov esi, dword [ebp + 0x10]
xor ebx, ebx
push edi
mov edi, dword [ebp + 8]
mov dword [ebp + 8], ebx
mov eax, dword [edi + 0x150]
mov ecx, dword [edi + 0x80]
mov dword [ebp - 4], eax
mov eax, dword [edi + 0x78]
sub eax, ecx
je 0x410ab0
cmp eax, esi
mov ebx, eax
mov eax, dword [edi + 0x70]
cmovae ebx, esi
add eax, ecx
push ebx
push eax
push dword [ebp + 0xc]
call sub.MSVCR120.dll_memcpy
add esp, 0xc
add dword [edi + 0x80], ebx
adc dword [edi + 0x84], 0
sub esi, ebx
test esi, esi
je 0x410ba3
mov edi, dword [ebp + 0x18]
test edi, edi
je 0x410b05
mov eax, dword [ebp + 0xc]
push edi
push esi
add eax, ebx
push 1
push eax
call dword [sym.imp.MSVCR120.dll_fread]
add esp, 0x10
mov dword [ebp + 8], eax
cmp eax, esi
je 0x410ba3
mov esi, dword [sym.imp.MSVCR120.dll_feof]
push edi
call esi
add esp, 4
test eax, eax
jne 0x410ba3
push edi
call esi
add esp, 4
test eax, eax
je 0x410b3b
push str.could_not_read_from_input_file:_end_of_file_n
jmp 0x410b95
mov edi, dword [ebp + 0x14]
test edi, edi
je 0x410b90
mov eax, dword [ebp + 0xc]
mov ecx, dword [edi]
add eax, ebx
test ecx, ecx
je 0x410b5f
push esi
push eax
push ecx
call sub.zlib1.dll_gzread
add esp, 0xc
mov dword [ebp + 8], eax
cmp eax, esi
je 0x410ba3
push dword [edi]
call sub.zlib1.dll_gzeof
add esp, 4
test eax, eax
jne 0x410ba3
call dword [sym.imp.MSVCR120.dll__errno]
push dword [eax]
call dword [sym.imp.MSVCR120.dll_strerror]
push eax
push str.could_not_read_from_input_file:__s_n
push dword [0x42101c]
call fcn.00410f40
add esp, 0x10
jmp 0x410ba3
push dword [edi + 4]
push esi
push 1
push eax
call dword [sym.imp.MSVCR120.dll_fread]
add esp, 0x10
mov dword [ebp + 8], eax
cmp eax, esi
je 0x410ba3
push dword [edi + 4]
mov esi, dword [sym.imp.MSVCR120.dll_feof]
call esi
add esp, 4
test eax, eax
jne 0x410ba3
push dword [edi + 4]
jmp 0x410af2
push str.internal_error____neither_th_nor_fh_specified_in_tarReadRaw___n
push dword [0x42101c]
call fcn.00410f40
add esp, 8
mov ecx, dword [ebp - 4]
mov eax, dword [ebp + 8]
add eax, ebx
pop edi
add dword [ecx + 0x18], eax
pop esi
adc dword [ecx + 0x1c], 0
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x410ee0
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [0x42118c]
dec esi
push edi
mov edi, dword [ebp + 8]
js 0x410f08
push dword [esi*8 + 0x421194]
mov eax, dword [esi*8 + 0x421190]
push edi
call eax
add esp, 8
dec esi
jns 0x410ef1
cmp byte [0x4210d4], 0
je 0x410f29
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
cmp eax, dword [0x421608]
je 0x410f29
push edi
call dword [sym.imp.MSVCR120.dll__endthreadex]
add esp, 4
push edi
call dword [sym.imp.MSVCR120.dll_exit]
int3
Function at 0x412140
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
test eax, eax
jne 0x412172
push str.cannot_duplicate_null_pointer__internal_error__n
call sub.libintl_8.dll_libintl_gettext
add esp, 4
push eax
call dword [sym.imp.MSVCR120.dll___iob_func]
add eax, 0x40
push eax
call fcn.00413530
add esp, 8
push 1
call dword [sym.imp.MSVCR120.dll_exit]
push eax
call dword [sym.imp.MSVCR120.dll__strdup]
add esp, 4
test eax, eax
jne 0x412187
push str.out_of_memory_n
jmp 0x41214f
pop ebp
ret

Function at 0x4121e0
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
mov ecx, dword [ebp + 8]
mov eax, dword [ebp + 0xc]
test ecx, ecx
jne 0x4121f7
test eax, eax
mov edx, 1
cmove eax, edx
push eax
push ecx
call dword [sym.imp.MSVCR120.dll_realloc]
add esp, 8
test eax, eax
jne 0x41222e
push str.out_of_memory_n
call sub.libintl_8.dll_libintl_gettext
add esp, 4
push eax
call dword [sym.imp.MSVCR120.dll___iob_func]
add eax, 0x40
push eax
call fcn.00413530
add esp, 8
push 1
call dword [sym.imp.MSVCR120.dll_exit]
pop ebp
ret

Function at 0x412250
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
test eax, eax
jne 0x412282
push str.cannot_duplicate_null_pointer__internal_error__n
call sub.libintl_8.dll_libintl_gettext
add esp, 4
push eax
call dword [sym.imp.MSVCR120.dll___iob_func]
add eax, 0x40
push eax
call fcn.00413530
add esp, 8
push 1
call dword [sym.imp.MSVCR120.dll_exit]
push eax
call dword [sym.imp.MSVCR120.dll__strdup]
add esp, 4
test eax, eax
jne 0x412297
push str.out_of_memory_n
jmp 0x41225f
pop ebp
ret

Function at 0x412360
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
push ebx
mov ebx, dword [ebp + 8]
mov eax, 1
test ebx, ebx
cmove ebx, eax
push ebx
call dword [sym.imp.MSVCR120.dll_malloc]
add esp, 4
mov dword [ebp + 8], eax
test eax, eax
jne 0x4123b5
test byte [ebp + 0xc], 2
jne 0x4123b0
push str.out_of_memory_n
call sub.libintl_8.dll_libintl_gettext
add esp, 4
push eax
call dword [sym.imp.MSVCR120.dll___iob_func]
add eax, 0x40
push eax
call fcn.00413530
add esp, 8
push 1
call dword [sym.imp.MSVCR120.dll_exit]
xor eax, eax
pop ebx
pop ebp
ret
test byte [ebp + 0xc], 4
je 0x412411
push esi
test al, 3
jne 0x412401
test bl, 3
jne 0x412401
cmp ebx, 0x400
ja 0x412401
mov ecx, eax
xor edx, edx
add eax, ebx
xor ebx, ebx
mov esi, eax
sub esi, dword [ebp + 8]
add esi, 3
shr esi, 2
cmp dword [ebp + 8], eax
push edi
cmova esi, ebx
pop edi
test esi, esi
je 0x41240d
lea esp, [esp]
inc edx
mov dword [ecx], ebx
lea ecx, [ecx + 4]
cmp edx, esi
jb 0x4123f0
mov eax, dword [ebp + 8]
pop esi
pop ebx
pop ebp
ret
push ebx
push 0
push eax
call sub.MSVCR120.dll_memset
add esp, 0xc
mov eax, dword [ebp + 8]
pop esi
pop ebx
pop ebp
ret
Function at 0x412420
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
mov ebx, dword [sym.imp.MSVCR120.dll__errno]
push esi
push edi
mov edi, 0x80
push edi
call fcn.004122a0
mov esi, dword [ebp + 8]
mov dword [ebp - 4], eax
call ebx
mov dword [eax], 0
lea eax, [ebp + 0xc]
push eax
push esi
push edi
push dword [ebp - 4]
call fcn.00413320
mov esi, eax
add esp, 0x14
test esi, esi
jns 0x412496
call ebx
cmp dword [eax], 0
je 0x41246b
call ebx
cmp dword [eax], 0xc
jne 0x4124ae
cmp edi, 0x3fffffff
jae 0x4124e5
mov esi, 0x3fffffff
cmp edi, 0x1fffffff
jae 0x412483
lea esi, [edi + edi]
cmp esi, edi
jb 0x4124db
push dword [ebp - 4]
call fcn.00412340
add esp, 4
mov edi, esi
jmp 0x412432
lea eax, [edi - 1]
cmp esi, eax
jb 0x412483
cmp esi, edi
jbe 0x41246b
cmp esi, 0x3ffffffd
ja 0x41246b
add esi, 2
jmp 0x412483
call ebx
push dword [eax]
call dword [sym.imp.MSVCR120.dll_strerror]
add esp, 4
push eax
push str.vsnprintf_failed:__s_n
call dword [sym.imp.MSVCR120.dll___iob_func]
add eax, 0x40
push eax
call fcn.00413530
add esp, 0xc
push 1
call dword [sym.imp.MSVCR120.dll_exit]
mov eax, dword [ebp - 4]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push str.out_of_memory_n
call sub.libintl_8.dll_libintl_gettext
add esp, 4
push eax
call dword [sym.imp.MSVCR120.dll___iob_func]
add eax, 0x40
push eax
call fcn.00413530
add esp, 8
push 1
call dword [sym.imp.MSVCR120.dll_exit]
int3

Function at 0x412510
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
push esi
push edi
mov edi, dword [sym.imp.MSVCR120.dll__errno]
call edi
push dword [ebp + 0x14]
mov esi, dword [ebp + 0xc]
push dword [ebp + 0x10]
mov dword [eax], 0
push esi
push dword [ebp + 8]
call fcn.00413320
mov ecx, eax
add esp, 0x10
test ecx, ecx
jns 0x412579
call edi
cmp dword [eax], 0
je 0x412599
call edi
cmp dword [eax], 0xc
je 0x412599
call edi
push dword [eax]
call dword [sym.imp.MSVCR120.dll_strerror]
add esp, 4
push eax
push str.vsnprintf_failed:__s_n
call dword [sym.imp.MSVCR120.dll___iob_func]
add eax, 0x40
push eax
call fcn.00413530
add esp, 0xc
push 1
call dword [sym.imp.MSVCR120.dll_exit]
lea eax, [esi - 1]
cmp ecx, eax
jae 0x412586
pop edi
mov eax, ecx
pop esi
pop ebp
ret
cmp ecx, esi
jbe 0x412599
cmp ecx, 0x3ffffffd
ja 0x412599
pop edi
lea eax, [ecx + 2]
pop esi
pop ebp
ret
cmp esi, 0x3fffffff
jb 0x4125c9
push str.out_of_memory_n
call sub.libintl_8.dll_libintl_gettext
add esp, 4
push eax
call dword [sym.imp.MSVCR120.dll___iob_func]
add eax, 0x40
push eax
call fcn.00413530
add esp, 8
push 1
call dword [sym.imp.MSVCR120.dll_exit]
mov eax, 0x3fffffff
cmp esi, 0x1fffffff
jae 0x4125d9
lea eax, [esi + esi]
pop edi
pop esi
pop ebp
ret