joyce8/EMBER2024-capa huggingface dataset:
Function at 0x58cad0
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0x11f000]
push edi
or ebp, 0xffffffff
jmp 0x58caf2
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x58caf9
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x58cae8
mov eax, 1
add ebx, ebx
jne 0x58cb0b
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x58cb1c
jne 0x58cb3b
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x58cb3b
dec eax
add ebx, ebx
jne 0x58cb28
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
jmp 0x58cb00
add ebx, ebx
jne 0x58cb37
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jmp 0x58cb8d
xor ecx, ecx
sub eax, 3
jb 0x58cb53
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x58cbc2
sar eax, 1
mov ebp, eax
jmp 0x58cb5e
add ebx, ebx
jne 0x58cb5e
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x58cb2c
inc ecx
add ebx, ebx
jne 0x58cb6c
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x58cb2c
add ebx, ebx
jne 0x58cb79
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x58cb6e
jne 0x58cb8a
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x58cb6e
add ecx, 2
cmp ebp, 0xfffffb00
adc ecx, 2
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x58cbac
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x58cb9e
jmp 0x58caee
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x58cbac
add edi, ecx
jmp 0x58caee
pop esi
mov edi, esi
mov ecx, 0x5b1b
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x58cbca
cmp byte [edi], 0x15
jne 0x58cbca
mov eax, dword [edi]
mov bl, byte [edi + 4]
shr ax, 8
rol eax, 0x10
xchg ah, al
sub eax, edi
sub bl, 0xe8
add eax, esi
mov dword [edi], eax
add edi, 5
mov al, bl
loop 0x58cbcf
lea edi, [esi + 0x183000]
mov eax, dword [edi]
or eax, eax
je 0x58cc47
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x1971f0]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x197314]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x58cbfc
mov ecx, edi
jns 0x58cc2b
movzx eax, word [edi]
inc edi
push eax
inc edi
mov ecx, 0xaef24857
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0x19731c]
or eax, eax
je 0x58cc41
mov dword [ebx], eax
add ebx, 4
jmp 0x58cc19
call dword [esi + 0x197318]
add edi, 4
lea ebx, [esi - 4]
xor eax, eax
mov al, byte [edi]
inc edi
or eax, eax
je 0x58cc78
cmp al, 0xef
ja 0x58cc6b
add ebx, eax
mov eax, dword [ebx]
xchg ah, al
rol eax, 0x10
xchg ah, al
add eax, esi
mov dword [ebx], eax
jmp 0x58cc4d
and al, 0xf
shl eax, 0x10
mov ax, word [edi]
add edi, 2
jmp 0x58cc5a
mov ebp, dword [esi + 0x197320]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x23f]
and byte [eax], 0x7f
and byte [eax + 0x28], 0x7f
pop eax
push eax
push esp
push eax
push ebx
push edi
call ebp
pop eax
popal
lea eax, [esp - 0x80]
push 0
cmp esp, eax
jne 0x58ccac
sub esp, 0xffffff80
jmp 0x4b4400
Function at 0x433006
Capabilities:
Encode data using xor

Disassembly:
mov eax, section..text
nop
nop
mov ebx, 0x40de38
nop
mov ecx, 0x4be2ee1
nop
test eax, eax
nop
nop
nop
nop
je 0x43304e
nop
nop
nop
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
inc eax
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
inc eax
nop
nop
cmp eax, ebx
nop
nop
nop
nop
nop
nop
nop
jne 0x433024
nop
mov eax, section..rsrc
mov ebx, 0x4304d8
nop
mov ecx, 0x73742aca
nop
nop
nop
nop
test eax, eax
nop
nop
je 0x433084
nop
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
add eax, 4
nop
nop
nop
cmp eax, ebx
nop
nop
nop
jne 0x43306c
nop
nop
nop
nop
nop
nop
nop
popal
nop
jmp 0x431219
Function at 0x401110
Capabilities:
Resolve dns

Disassembly:
push ebx
push ebp
mov ebp, dword [esp + 0x14]
push esi
mov esi, eax
mov eax, dword [esp + 0x1c]
mov dword [esi], 0
push ecx
mov byte [eax], 0
call dword [sym.imp.WS2_32.dll_gethostbyname]
mov ebx, eax
test ebx, ebx
je 0x4011a4
cmp word [ebx + 8], 2
push edi
jne 0x401175
cmp word [ebx + 0xa], 4
jne 0x401175
mov edi, dword [ebx + 0xc]
mov eax, dword [edi]
test eax, eax
je 0x401175
jmp 0x401150
mov edx, dword [eax]
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x14]
push edx
push ebp
push eax
push ecx
call fcn.004010a0
test eax, eax
mov dword [esi], eax
je 0x401198
add edi, 4
lea esi, [eax + 0x1c]
mov eax, dword [edi]
test eax, eax
jne 0x401150
mov edx, dword [ebx]
mov eax, dword [esp + 0x20]
push 0x400
push edx
push 0x401
push eax
call fcn.004078c1
add esp, 0x10
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
ret 0x10
pop edi
pop esi
pop ebp
mov eax, 8
pop ebx
ret 0x10
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
add eax, 0xffffd507
cmp eax, 3
ja case.0x4011b4.11001
jmp dword [eax*4 + 0x4011dc]
pop esi
pop ebp
mov eax, 0x2af9
pop ebx
ret 0x10
pop esi
pop ebp
mov eax, 0x2afa
pop ebx
ret 0x10
pop esi
pop ebp
mov eax, 0x2afb
pop ebx
ret 0x10
Function at 0x401a00
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x23c
mov eax, dword [0x418a28]
xor eax, esp
mov dword [esp + 0x238], eax
cmp dword [0x419b34], 0
push ebx
push esi
push edi
mov dword [esp + 0x10], str.getaddrinfo
mov dword [esp + 0x14], 0x401460
mov dword [esp + 0x18], str.getnameinfo
mov dword [esp + 0x1c], 0x401740
mov dword [esp + 0x20], str.freeaddrinfo
mov dword [esp + 0x24], fcn.00401410
je 0x401a78
movzx eax, word [ebp + 8]
mov eax, dword [eax*8 + 0x419084]
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x238]
xor ecx, esp
call fcn.004075d7
mov esp, ebp
pop ebp
ret 4
push 0x104
lea ecx, [esp + 0x13c]
push ecx
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
test eax, eax
je 0x401b75
lea edx, [esp + 0x138]
push edx
lea eax, [esp + 0x2c]
push 0x10c
push eax
call fcn.004071c5
push str.ws2_32
lea ecx, [esp + 0x38]
push 0x10c
push ecx
call fcn.004075e6
mov edi, dword [sym.imp.KERNEL32.dll_LoadLibraryA]
add esp, 0x18
lea edx, [esp + 0x28]
push edx
call edi
mov ebx, dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov esi, eax
test esi, esi
je 0x401aed
push str.getaddrinfo
push esi
call ebx
test eax, eax
jne 0x401b3d
push esi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
lea eax, [esp + 0x138]
push eax
lea ecx, [esp + 0x2c]
push 0x10c
push ecx
call fcn.004071c5
push str.wship6
lea edx, [esp + 0x38]
push 0x10c
push edx
call fcn.004075e6
add esp, 0x18
lea eax, [esp + 0x28]
push eax
call edi
mov esi, eax
test esi, esi
je 0x401b75
push str.getaddrinfo
push esi
call ebx
test eax, eax
jne 0x401b3d
push esi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
jmp 0x401b75
xor edi, edi
nop
mov ecx, dword [esp + edi*8 + 0x10]
push ecx
push esi
call ebx
test eax, eax
mov dword [esp + edi*8 + 0x14], eax
je 0x401b34
add edi, 1
cmp edi, 3
jl 0x401b40
mov edx, dword [esp + 0x14]
mov eax, dword [esp + 0x1c]
mov ecx, dword [esp + 0x24]
mov dword [0x419084], edx
mov dword [0x41908c], eax
mov dword [fcn.00401410], ecx
movzx edx, word [ebp + 8]
mov ecx, dword [esp + 0x244]
mov eax, dword [edx*8 + 0x419084]
pop edi
pop esi
pop ebx
xor ecx, esp
mov dword [0x419b34], 1
call fcn.004075d7
mov esp, ebp
pop ebp
ret 4
Function at 0x4029e0
Capabilities:
Receive data
Receive data on socket

Disassembly:
mov eax, 0xfa14
call fcn.00413ba0
mov eax, dword [0x418a28]
xor eax, esp
mov dword [esp + 0xfa0c], eax
mov eax, dword [esp + 0xfa1c]
push ebx
push ebp
mov ebp, dword [esp + 0xfa20]
mov ebx, ecx
mov ecx, dword [str.rpcap:__]
mov dword [ebp], ecx
push esi
mov esi, edx
mov edx, dword [0x4156c8]
mov dword [ebp + 4], edx
mov dword [esp + 0x10], eax
mov al, byte [0x4156cc]
lea ecx, [ebx + 8]
cmp ecx, 0x400
push edi
mov byte [ebp + 8], al
jl 0x402a51
push 0
push 6
push esi
mov ebx, str.Source_string_too_long
call fcn.00405420
add esp, 0xc
or eax, 0xffffffff
jmp 0x402b8a
xor edi, edi
test ebx, ebx
je 0x402a7e
push 0
mov edx, ebx
sub edx, edi
push edx
lea eax, [edi + ebp + 8]
push eax
push esi
call dword [sym.imp.WS2_32.dll_recv]
cmp eax, 0xffffffff
je 0x402abd
test eax, eax
je 0x402ad8
add edi, eax
cmp edi, ebx
jne 0x402a57
cmp edi, 0xffffffff
je 0x402a49
mov ecx, dword [esp + 0x14]
push ecx
push 0x3e8
push 0
mov ecx, 0x5dc
mov edx, ebp
mov byte [ebx + ebp + 8], 0
call fcn.00404250
add esp, 0xc
mov edi, eax
test edi, edi
push 0
jne 0x402b06
mov ebx, dword [esp + 0x18]
push 6
push esi
call fcn.00405420
add esp, 0xc
or eax, 0xffffffff
jmp 0x402b8a
mov esi, dword [esp + 0x14]
mov ebx, 0x100
mov edi, str.recv__:
call fcn.00406290
or eax, 0xffffffff
jmp 0x402b8a
mov esi, dword [esp + 0x14]
test esi, esi
je 0x402a49
push str.The_other_host_terminated_the_connection.
push 0x100
push esi
call fcn.0040722a
add esp, 0xc
mov byte [esi + 0xff], 0
or eax, 0xffffffff
jmp 0x402b8a
xor eax, eax
mov dword [esp + 0x1c], eax
mov dword [esp + 0x20], eax
mov byte [esp + 0x1c], al
mov byte [esp + 0x1d], 0x83
call dword [sym.imp.WS2_32.dll_htons]
mov ebx, dword [sym.imp.WS2_32.dll_htonl]
push 8
mov word [esp + 0x1e], ax
call ebx
mov dword [esp + 0x1c], eax
xor eax, eax
mov dword [esp + 0x20], eax
mov dword [esp + 0x24], eax
mov edx, dword [edi + 0x20]
push edx
call ebx
mov dword [esp + 0x20], eax
mov eax, dword [edi + 0x28]
push eax
call ebx
mov ecx, dword [esp + 0x14]
push 0x100
mov dword [esp + 0x28], eax
push ecx
mov eax, 0x10
lea ecx, [esp + 0x20]
mov edx, esi
call fcn.004066b0
add esp, 8
cmp eax, 0xffffffff
push edi
jne 0x402b80
call sub.wpcap.dll_pcap_close
add esp, 4
or eax, 0xffffffff
jmp 0x402b8a
call sub.wpcap.dll_pcap_close
add esp, 4
xor eax, eax
mov ecx, dword [esp + 0xfa1c]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.004075d7
add esp, 0xfa14
ret
Function at 0x4035b0
Capabilities:
Receive data
Receive data on socket

Disassembly:
sub esp, 0x10
push ebx
mov ebx, dword [sym.imp.WS2_32.dll_recv]
push ebp
mov ebp, dword [esp + 0x1c]
push esi
push edi
mov esi, eax
xor edi, edi
push 0
mov eax, 8
sub eax, edi
push eax
lea ecx, [esp + edi + 0x20]
push ecx
push ebp
call ebx
cmp eax, 0xffffffff
je 0x40367d
test eax, eax
je 0x403691
add edi, eax
cmp edi, 8
jne 0x4035c5
mov eax, dword [esp + 0x1c]
mov dl, byte [esp + 0x18]
mov ebx, dword [esp + 0x28]
push eax
mov byte [ebx], dl
call dword [sym.imp.WS2_32.dll_ntohl]
mov dword [ebx + 4], eax
xor eax, eax
mov dword [esp + 0x10], eax
push eax
mov dword [esp + 0x18], eax
mov byte [esp + 0x14], al
mov byte [esp + 0x15], 0x8b
call dword [sym.imp.WS2_32.dll_htons]
push 0
mov word [esp + 0x16], ax
call dword [sym.imp.WS2_32.dll_htonl]
mov dword [esp + 0x14], eax
push 0x100
push esi
mov eax, edi
lea ecx, [esp + 0x18]
mov edx, ebp
call fcn.004066b0
add esp, 8
test eax, eax
je 0x4036b4
mov ecx, dword [esp + 0x2c]
cmp edi, ecx
je 0x403663
push 0
push 0
sub ecx, edi
push ebp
call fcn.004067a0
add esp, 0xc
push 0
push 0xf
push ebp
mov ebx, esi
call fcn.00405420
add esp, 0xc
or eax, 0xffffffff
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x10
ret
mov ebx, 0x100
mov edi, str.recv__:
call fcn.00406290
or edi, 0xffffffff
jmp 0x40364c
test esi, esi
je 0x4036af
push str.The_other_host_terminated_the_connection.
push 0x100
push esi
call fcn.0040722a
add esp, 0xc
mov byte [esi + 0xff], 0
or edi, 0xffffffff
jmp 0x40364c
mov eax, dword [esp + 0x2c]
cmp eax, 8
je 0x4036cd
push 0
push 0
lea ecx, [eax - 8]
push ebp
call fcn.004067a0
add esp, 0xc
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x10
ret
Function at 0x405250
Capabilities:
Receive data
Receive data on socket

Disassembly:
mov eax, 0xfa18
call fcn.00413ba0
mov eax, dword [0x418a28]
xor eax, esp
mov dword [esp + 0xfa14], eax
push ebx
push ebp
mov ebp, dword [esp + 0xfa24]
push esi
xor eax, eax
push edi
mov esi, ecx
mov edi, dword [esi]
mov dword [esp + 0x20], eax
push eax
mov dword [esp + 0x18], 8
lea edi, [edi*8 + 8]
mov dword [esp + 0x28], eax
mov byte [esp + 0x24], al
mov byte [esp + 0x25], 5
call dword [sym.imp.WS2_32.dll_htons]
push edi
mov word [esp + 0x26], ax
call dword [sym.imp.WS2_32.dll_htonl]
mov dword [esp + 0x24], eax
push esi
lea eax, [esp + 0x18]
lea ecx, [esp + 0x2c]
mov edx, ebp
call fcn.00405160
add esp, 4
test eax, eax
jne 0x4053d7
mov eax, dword [esp + 0x14]
mov edx, dword [ebp + 0x228]
lea esi, [ebp + 0x108]
push 0x100
push esi
lea ecx, [esp + 0x28]
call fcn.004066b0
add esp, 8
test eax, eax
jne 0x4053d7
mov ebx, dword [ebp + 0x228]
xor edi, edi
lea ecx, [ecx]
push 0
mov eax, 8
sub eax, edi
push eax
lea ecx, [esp + edi + 0x20]
push ecx
push ebx
call dword [sym.imp.WS2_32.dll_recv]
cmp eax, 0xffffffff
je 0x4053a5
test eax, eax
je 0x4053b9
add edi, eax
cmp edi, 8
jne 0x405300
mov eax, dword [ebp + 0x228]
push 0
push 0x85
lea edx, [esp + 0x20]
push edx
push eax
mov ecx, esi
call fcn.004056b0
add esp, 0x10
cmp eax, 0x85
jne 0x4053d7
mov ecx, dword [esp + 0x1c]
mov edi, dword [sym.imp.WS2_32.dll_ntohl]
push ecx
call edi
test eax, eax
je 0x40538a
mov edx, dword [esp + 0x1c]
push 0x100
push esi
push edx
call edi
mov ecx, dword [ebp + 0x228]
push ecx
mov ecx, eax
call fcn.004067a0
add esp, 0xc
cmp eax, 0xffffffff
je 0x4053d7
xor eax, eax
mov ecx, dword [esp + 0xfa24]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.004075d7
add esp, 0xfa18
ret
mov ebx, 0x100
mov edi, str.recv__:
call fcn.00406290
or eax, 0xffffffff
jmp 0x40538c
test esi, esi
je 0x4053d7
push str.The_other_host_terminated_the_connection.
push 0x100
push esi
call fcn.0040722a
add esp, 0xc
mov byte [esi + 0xff], 0
or eax, 0xffffffff
jmp 0x40538c
Function at 0x405520
Capabilities:
Receive data
Receive data on socket

Disassembly:
mov eax, 0xfa10
call fcn.00413ba0
mov eax, dword [0x418a28]
xor eax, esp
mov dword [esp + 0xfa0c], eax
push ebx
push ebp
mov ebp, dword [esp + 0xfa1c]
push esi
xor eax, eax
push edi
mov edi, dword [sym.imp.WS2_32.dll_htons]
mov dword [esp + 0x18], eax
push eax
mov esi, ecx
mov dword [esp + 0x20], eax
mov byte [esp + 0x1c], al
mov byte [esp + 0x1d], 8
call edi
push 8
mov word [esp + 0x1e], ax
call dword [sym.imp.WS2_32.dll_htonl]
mov dword [esp + 0x1c], eax
xor eax, eax
push eax
mov dword [esp + 0x24], eax
mov dword [esp + 0x28], eax
call edi
mov word [esp + 0x20], ax
push 0x100
push esi
mov eax, 0x10
lea ecx, [esp + 0x20]
mov edx, ebp
call fcn.004066b0
add esp, 8
test eax, eax
jne 0x405670
mov ebx, dword [sym.imp.WS2_32.dll_recv]
xor edi, edi
lea ecx, [ecx]
push 0
mov eax, 8
sub eax, edi
push eax
lea ecx, [esp + edi + 0x18]
push ecx
push ebp
call ebx
cmp eax, 0xffffffff
je 0x40563e
test eax, eax
je 0x405652
add edi, eax
cmp edi, 8
jne 0x4055b0
push 0
push 1
push 0x88
lea edx, [esp + 0x1c]
push edx
push ebp
mov ecx, esi
call fcn.004056b0
add esp, 0x14
cmp eax, 0x88
jne 0x405670
mov eax, dword [esp + 0x14]
mov edi, dword [sym.imp.WS2_32.dll_ntohl]
push eax
call edi
test eax, eax
je 0x405623
mov ecx, dword [esp + 0x14]
push 0x100
push esi
push ecx
call edi
push ebp
mov ecx, eax
call fcn.004067a0
add esp, 0xc
test eax, eax
jne 0x405670
xor eax, eax
mov ecx, dword [esp + 0xfa1c]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.004075d7
add esp, 0xfa10
ret
mov ebx, 0x100
mov edi, str.recv__:
call fcn.00406290
or eax, 0xffffffff
jmp 0x405625
test esi, esi
je 0x405670
push str.The_other_host_terminated_the_connection.
push 0x100
push esi
call fcn.0040722a
add esp, 0xc
mov byte [esi + 0xff], 0
or eax, 0xffffffff
jmp 0x405625
Function at 0x4056b0
Capabilities:
Receive data
Receive data on socket

Disassembly:
mov al, byte [esp + 0xc]
push ebp
mov ebp, dword [esp + 0xc]
cmp byte [ebp], 0
push esi
mov esi, ecx
je 0x4056f8
push str.Incompatible_version_number:_message_discarded.
push 0x100
push esi
call fcn.0040722a
mov eax, dword [ebp + 4]
add esp, 0xc
push 0
push 0
push eax
call dword [sym.imp.WS2_32.dll_ntohl]
mov ecx, dword [esp + 0x14]
push ecx
mov ecx, eax
call fcn.004067a0
add esp, 0xc
pop esi
or eax, 0xffffffff
pop ebp
ret
test al, al
je 0x40571a
mov dl, byte [ebp + 1]
lea ecx, [esp + 0x14]
cmp dl, 1
je 0x40574f
cmp dl, al
je 0x40581a
mov al, byte [ecx + 4]
add ecx, 4
test al, al
jne 0x405703
mov ecx, dword [ebp + 4]
push 0
push 0
push ecx
call dword [sym.imp.WS2_32.dll_ntohl]
mov edx, dword [esp + 0x14]
push edx
mov ecx, eax
call fcn.004067a0
push str.The_other_endpoint_sent_a_message_that_is_not_allowed_here.
push 0x100
push esi
call fcn.0040722a
add esp, 0x18
pop esi
mov eax, 0xfffffffe
pop ebp
ret
mov edx, dword [ebp + 4]
push edi
push edx
call dword [sym.imp.WS2_32.dll_ntohl]
mov edi, eax
cmp edi, 0x100
jl 0x4057e4
push ebx
mov ebx, dword [sym.imp.WS2_32.dll_recv]
xor edi, edi
mov edx, dword [esp + 0x14]
push 0
mov eax, 0xff
sub eax, edi
push eax
lea ecx, [edi + esi]
push ecx
push edx
call ebx
cmp eax, 0xffffffff
je 0x4057a3
test eax, eax
je 0x4057bc
add edi, eax
cmp edi, 0xff
jne 0x405771
pop ebx
pop edi
pop esi
mov eax, 0xfffffffd
pop ebp
ret
mov ebx, 0x100
mov edi, str.recv__:
call fcn.00406290
pop ebx
pop edi
pop esi
mov eax, 0xfffffffd
pop ebp
ret
test esi, esi
je 0x4057da
push str.The_other_host_terminated_the_connection.
push 0x100
push esi
call fcn.0040722a
add esp, 0xc
mov byte [esi + 0xff], 0
pop ebx
pop edi
pop esi
mov eax, 0xfffffffd
pop ebp
ret
test edi, edi
je 0x40580e
mov eax, dword [esp + 0x10]
push 0x100
push esi
push 1
push edi
push eax
mov eax, esi
call fcn.00406710
add esp, 0x14
cmp eax, 0xffffffff
jne 0x40580e
pop edi
pop esi
mov eax, 0xfffffffd
pop ebp
ret
mov byte [edi + esi], 0
movzx eax, byte [ebp + 1]
pop edi
pop esi
pop ebp
ret
pop esi
movzx eax, dl
pop ebp
ret
Function at 0x405cf0
Capabilities:
Terminate process

Disassembly:
sub esp, 0x11c
mov eax, dword [0x418a28]
xor eax, esp
mov dword [esp + 0x118], eax
push ebx
push ebp
push esi
push edi
push 0x101
lea eax, [esp + 0x20]
push 0
push eax
mov dword [esp + 0x20], 0
call fcn.0040bf00
mov ebp, dword [sym.imp.pthreadVC.dll_pthread_attr_init]
add esp, 0xc
cmp byte [0x41b520], 0
je 0x405da9
mov esi, 0x41b520
cmp esi, 0x425570
jge 0x405da9
mov ecx, dword [0x425da4]
lea edx, [esp + 0x10]
push edx
mov dword [esi + 0x1004], ecx
call ebp
add esp, 4
lea eax, [esp + 0x10]
push 1
push eax
call dword [sym.imp.pthreadVC.dll_pthread_attr_setdetachstate]
push esi
push 0x4060d0
lea ecx, [esp + 0x20]
push ecx
lea edx, [esp + 0x2c]
push edx
call dword [sym.imp.pthreadVC.dll_pthread_create]
add esp, 0x18
test eax, eax
je 0x405d90
lea eax, [esp + 0x10]
push eax
call dword [sym.imp.pthreadVC.dll_pthread_attr_destroy]
add esp, 4
jmp 0x405da4
lea ecx, [esp + 0x10]
push ecx
call dword [sym.imp.pthreadVC.dll_pthread_attr_destroy]
add esp, 4
add esi, 0x1008
cmp byte [esi], 0
jne 0x405d38
cmp dword [0x4190a8], 0
je 0x405ea2
mov al, byte [0x425580]
neg al
lea edx, [esp + 0x14]
push edx
push 0x425da0
push 0x4357e0
sbb eax, eax
and eax, 0x425580
push eax
lea eax, [esp + 0x2c]
call fcn.004065c0
add esp, 0x10
cmp eax, 0xffffffff
je 0x405eb8
mov ebx, dword [esp + 0x14]
test ebx, ebx
je 0x405e8a
push 0xa
push 1
push ebx
lea ecx, [esp + 0x28]
call fcn.004063f0
mov edi, eax
add esp, 0xc
cmp edi, 0xffffffff
mov dword [0x435fe8], edi
je 0x405e7b
push 4
call fcn.004079c3
mov esi, eax
add esp, 4
test esi, esi
je 0x405eb1
lea ecx, [esp + 0x10]
push ecx
mov dword [esi], edi
call ebp
add esp, 4
lea edx, [esp + 0x10]
push 1
push edx
call dword [sym.imp.pthreadVC.dll_pthread_attr_setdetachstate]
push esi
push 0x405f20
lea eax, [esp + 0x20]
push eax
lea ecx, [esp + 0x2c]
push ecx
call dword [sym.imp.pthreadVC.dll_pthread_create]
add esp, 0x18
test eax, eax
je 0x405e6d
lea edx, [esp + 0x10]
push edx
call dword [sym.imp.pthreadVC.dll_pthread_attr_destroy]
add esp, 4
jmp 0x405e7e
lea eax, [esp + 0x10]
push eax
call dword [sym.imp.pthreadVC.dll_pthread_attr_destroy]
add esp, 4
mov ebx, dword [ebx + 0x1c]
test ebx, ebx
jne 0x405df5
mov ebx, dword [esp + 0x14]
mov eax, dword [0x419b3c]
test eax, eax
jne 0x405e9f
push 2
call fcn.00401a00
mov dword [0x419b3c], eax
push ebx
call eax
mov esi, dword [sym.imp.KERNEL32.dll_Sleep]
push 0x927c0
call esi
jmp 0x405ea8
push 0
call fcn.00408bdd
mov ecx, dword [esp + 0x128]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.004075d7
add esp, 0x11c
ret
Function at 0x406360
Capabilities:
Initialize winsock library

Disassembly:
sub esp, 0x19c
mov eax, dword [0x418a28]
xor eax, esp
mov dword [esp + 0x194], eax
cmp dword [0x419b44], 0
jne 0x4063cc
lea eax, [esp]
push eax
push 0x202
call dword [sym.imp.WS2_32.dll_WSAStartup]
test eax, eax
je 0x4063cc
test esi, esi
je 0x4063ae
push str.Failed_to_initialize_Winsock_n
push 0x100
push esi
call fcn.0040722a
add esp, 0xc
mov byte [esi + 0xff], 0
call dword [sym.imp.WS2_32.dll_WSACleanup]
or eax, 0xffffffff
mov ecx, dword [esp + 0x194]
xor ecx, esp
call fcn.004075d7
add esp, 0x19c
ret
mov ecx, dword [esp + 0x194]
add dword [0x419b44], 1
xor ecx, esp
xor eax, eax
call fcn.004075d7
add esp, 0x19c
ret

Function at 0x4063f0
Capabilities:
Connect socket

Disassembly:
sub esp, 0x480
mov eax, dword [0x418a28]
xor eax, esp
mov dword [esp + 0x47c], eax
push ebx
push ebp
mov ebp, dword [esp + 0x48c]
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 4]
push esi
push edi
mov esi, ecx
mov ecx, dword [ebp + 8]
push eax
push ecx
push edx
call dword [sym.imp.WS2_32.dll_socket]
mov edi, eax
cmp edi, 0xffffffff
mov dword [esp + 0x18], edi
jne 0x406445
mov ebx, 0x100
mov edi, str.socket__:
call fcn.00406290
or eax, 0xffffffff
jmp 0x406565
cmp dword [esp + 0x498], 0
je 0x4064b2
mov eax, dword [ebp + 0x10]
mov ecx, dword [ebp + 0x18]
push eax
push ecx
push edi
call dword [sym.imp.WS2_32.dll_bind]
test eax, eax
je 0x406479
mov ebx, 0x100
mov edi, str.bind__:
call fcn.00406290
or eax, 0xffffffff
jmp 0x406565
cmp dword [ebp + 8], 1
jne 0x406563
mov edx, dword [esp + 0x49c]
push edx
push edi
call dword [sym.imp.WS2_32.dll_listen]
cmp eax, 0xffffffff
jne 0x406563
mov ebx, 0x100
mov edi, str.listen__:
call fcn.00406290
or eax, 0xffffffff
jmp 0x406565
mov dword [esp + 0x1c], esi
mov dword [esp + 0x14], 0x100
mov byte [esi], 0
jmp 0x4064c7
mov edi, dword [esp + 0x18]
mov eax, dword [ebp + 0x10]
mov ecx, dword [ebp + 0x18]
push eax
push ecx
push edi
call dword [sym.imp.WS2_32.dll_connect]
cmp eax, 0xffffffff
jne 0x406563
mov ebx, 0x400
lea esi, [esp + 0x88]
xor edi, edi
call fcn.00406290
lea edx, [esp + 0x20]
mov eax, edx
push edx
push eax
mov eax, dword [ebp + 0x18]
call fcn.00406bd0
mov eax, dword [esp + 0x1c]
mov ecx, esi
mov esi, dword [esp + 0x24]
push ecx
lea edx, [esp + 0x2c]
push edx
push str.Is_the_server_properly_installed_on__s___connect___failed:__s
push eax
push esi
call fcn.0040722a
mov eax, esi
add esp, 0x1c
lea ecx, [eax + 1]
mov dl, byte [eax]
add eax, 1
test dl, dl
jne 0x406526
sub eax, ecx
lea ecx, [eax + esi + 1]
mov byte [ecx], dl
or edx, 0xffffffff
sub edx, eax
add dword [esp + 0x14], edx
mov byte [eax + esi], 0x20
mov ebp, dword [ebp + 0x1c]
test ebp, ebp
mov dword [esp + 0x1c], ecx
jne 0x4064c3
mov eax, dword [esp + 0x18]
push eax
call dword [sym.imp.WS2_32.dll_closesocket]
or eax, 0xffffffff
jmp 0x406565
mov eax, edi
mov ecx, dword [esp + 0x48c]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.004075d7
add esp, 0x480
ret