joyce8/EMBER2024-capa huggingface dataset:
Function at 0x10001560
Capabilities:
Create thread
Get system information on windows
Initialize winsock library

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
mov eax, dword [ebp + 0x10]
sub esp, 0x1b4
test eax, eax
mov ecx, 0x200
cmovle eax, ecx
push ebx
push esi
push edi
mov dword [0x10005010], eax
lea eax, [esp + 0x30]
push eax
push 0x202
call dword [sym.imp.WS2_32.dll_WSAStartup]
test eax, eax
jne 0x100015d8
mov eax, dword [ebp + 8]
mov esi, dword [sym.imp.KERNEL32.DLL_CreateIoCompletionPort]
push 0
push 0
push 0
mov dword [0x10005028], eax
mov eax, dword [ebp + 0xc]
push 0xffffffffffffffff
mov dword [0x10005034], eax
call esi
mov dword [0x10005038], eax
push 0
test eax, eax
je 0x100015d2
push 0
push 0
push 0xffffffffffffffff
call esi
mov dword [0x10005030], eax
test eax, eax
jne 0x100015e6
push eax
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
mov eax, 1
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
lea eax, [esp + 0xc]
push eax
call dword [sym.imp.KERNEL32.DLL_GetSystemInfo]
mov eax, dword [esp + 0x20]
mov ecx, 5
add eax, 2
cmp eax, ecx
cmovl eax, ecx
xor esi, esi
mov dword [0x1000502c], eax
test eax, eax
jle 0x10001657
mov edi, dword [sym.imp.KERNEL32.DLL_CloseHandle]
mov ebx, dword [sym.imp.MSVCRT.dll__beginthreadex]
nop dword [eax]
push 0
push 0
push 0
push 0x10001180
push 0
push 0
call ebx
add esp, 0x18
push eax
call edi
push 0
push 0
push 0
push 0x10001400
push 0
push 0
call ebx
add esp, 0x18
push eax
call edi
inc esi
cmp esi, dword [0x1000502c]
jl 0x10001620
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret 0xc

Function at 0x10001710
Capabilities:
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
push edi
mov edi, dword [ebp + 0x14]
cmp edi, 0x3e80000
ja 0x10001752
mov eax, dword [ebp + 8]
cmp dword [eax + 0x20], 0
je 0x1000175c
push esi
mov esi, dword [ebp + 0x10]
push edi
push esi
lea eax, [esi + 4]
mov dword [esi], edi
push eax
call sub.MSVCRT.dll_memcpy
add esp, 0xc
lea eax, [edi + 4]
push 0
push eax
push esi
push dword [ebp + 0xc]
call dword [sym.imp.WS2_32.dll_send]
pop esi
cmp eax, 0xffffffff
jne 0x1000177a
mov eax, 1
pop edi
pop ebp
ret 0x10
push 0
push edi
push dword [ebp + 0x10]
push dword [ebp + 0xc]
call dword [sym.imp.WS2_32.dll_send]
cmp eax, 0xffffffff
jne 0x1000177a
mov eax, 1
pop edi
pop ebp
ret 0x10
xor eax, eax
pop edi
pop ebp
ret 0x10

Function at 0x10001790
Capabilities:
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
cmp esi, 0xffffffff
jne 0x100017a3
xor eax, eax
pop esi
pop ebp
ret 4
push 4
lea eax, [ebp + 8]
mov dword [ebp + 8], 1
push eax
push 0x80
push 0xffff
push esi
call dword [sym.imp.WS2_32.dll_setsockopt]
push 2
push esi
call dword [sym.imp.WS2_32.dll_shutdown]
push esi
call dword [sym.imp.WS2_32.dll_closesocket]
pop esi
pop ebp
ret 4
Function at 0x100017e0
Capabilities:
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
push edi
mov edi, dword [esi]
cmp edi, 0xffffffff
je 0x10001831
push 4
lea eax, [ebp + 8]
mov dword [esi + 0x24], 1
push eax
push 0x80
push 0xffff
push edi
mov dword [esi + 4], 0
mov dword [ebp + 8], 1
call dword [sym.imp.WS2_32.dll_setsockopt]
push 2
push edi
call dword [sym.imp.WS2_32.dll_shutdown]
push edi
call dword [sym.imp.WS2_32.dll_closesocket]
mov dword [esi], 0xffffffff
pop edi
xor eax, eax
pop esi
pop ebp
ret 4

Function at 0x10001970
Capabilities:
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
push edi
mov edi, dword [esi]
mov dword [esi + 0x14], 1
cmp edi, 0xffffffff
je 0x100019b4
push 4
lea eax, [ebp + 8]
mov dword [ebp + 8], 1
push eax
push 0x80
push 0xffff
push edi
call dword [sym.imp.WS2_32.dll_setsockopt]
push 2
push edi
call dword [sym.imp.WS2_32.dll_shutdown]
push edi
call dword [sym.imp.WS2_32.dll_closesocket]
pop edi
mov dword [esi], 0xffffffff
xor eax, eax
pop esi
pop ebp
ret 4

Function at 0x100019e0
Capabilities:
Get hostname
Resolve dns

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x100
lea eax, [ebp - 0x100]
push 0x100
push eax
call dword [sym.imp.WS2_32.dll_gethostname]
cmp eax, 0xffffffff
jne 0x10001a08
xor al, al
mov esp, ebp
pop ebp
ret 4
lea eax, [ebp - 0x100]
push eax
call dword [sym.imp.WS2_32.dll_gethostbyname]
test eax, eax
je 0x10001a00
mov eax, dword [eax + 0xc]
mov eax, dword [eax]
push dword [eax]
call dword [sym.imp.WS2_32.dll_inet_ntoa]
mov edx, dword [ebp + 8]
sub edx, eax
nop dword [eax + eax]
mov cl, byte [eax]
lea eax, [eax + 1]
mov byte [edx + eax - 1], cl
test cl, cl
jne 0x10001a30
mov al, 1
mov esp, ebp
pop ebp
ret 4

Function at 0x10001a60
Capabilities:
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
mov esi, ecx
cmp esi, 0xffffffff
jne 0x10001a73
xor eax, eax
pop esi
mov esp, ebp
pop ebp
ret
push 4
lea eax, [ebp - 4]
mov dword [ebp - 4], 1
push eax
push 0x80
push 0xffff
push esi
call dword [sym.imp.WS2_32.dll_setsockopt]
push 2
push esi
call dword [sym.imp.WS2_32.dll_shutdown]
push esi
call dword [sym.imp.WS2_32.dll_closesocket]
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x10001ab0
Capabilities:
Encode data using base64

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
mov ebx, edx
mov eax, 0x55555556
imul ebx
push edi
mov edi, edx
mov dword [ebp - 0xc], ebx
shr edi, 0x1f
add edi, edx
mov dword [ebp - 8], edi
lea edx, [edi + 1]
mov dword [ebp - 4], edx
test edx, edx
jle 0x10001c1b
mov eax, dword [ebp + 8]
lea edx, [ecx + 2]
mov ebx, dword [ebp - 4]
mov edi, 0x2f
push esi
lea esi, [eax + 2]
nop
mov cl, byte [edx - 2]
shr cl, 2
cmp cl, 0x19
ja 0x10001b00
add cl, 0x41
jmp 0x10001b2e
lea eax, [ecx - 0x1a]
cmp al, 0x19
ja 0x10001b0c
add cl, 0x47
jmp 0x10001b2e
lea eax, [ecx - 0x34]
cmp al, 9
ja 0x10001b18
sub cl, 4
jmp 0x10001b2e
cmp cl, 0x3e
jne 0x10001b21
mov cl, 0x2b
jmp 0x10001b2e
cmp cl, 0x3f
mov eax, 0x3d
cmove eax, edi
mov cl, al
mov byte [esi - 2], cl
mov cl, byte [edx - 2]
mov al, byte [edx - 1]
and cl, 3
shl cl, 4
shr al, 4
add cl, al
cmp cl, 0x19
ja 0x10001b4c
add cl, 0x41
jmp 0x10001b7a
lea eax, [ecx - 0x1a]
cmp al, 0x19
ja 0x10001b58
add cl, 0x47
jmp 0x10001b7a
lea eax, [ecx - 0x34]
cmp al, 9
ja 0x10001b64
sub cl, 4
jmp 0x10001b7a
cmp cl, 0x3e
jne 0x10001b6d
mov cl, 0x2b
jmp 0x10001b7a
cmp cl, 0x3f
mov eax, 0x3d
cmove eax, edi
mov cl, al
mov byte [esi - 1], cl
mov al, byte [edx - 1]
mov cl, byte [edx]
and al, 0xf
shl al, 2
shr cl, 6
add al, cl
cmp al, 0x19
ja 0x10001b94
add al, 0x41
jmp 0x10001bc0
lea ecx, [eax - 0x1a]
cmp cl, 0x19
ja 0x10001ba0
add al, 0x47
jmp 0x10001bc0
lea ecx, [eax - 0x34]
cmp cl, 9
ja 0x10001bac
sub al, 4
jmp 0x10001bc0
cmp al, 0x3e
jne 0x10001bb4
mov al, 0x2b
jmp 0x10001bc0
cmp al, 0x3f
mov ecx, 0x3d
cmove ecx, edi
mov al, cl
mov byte [esi], al
mov cl, byte [edx]
and cl, 0x3f
cmp cl, 0x19
ja 0x10001bd1
add cl, 0x41
jmp 0x10001bff
lea eax, [ecx - 0x1a]
cmp al, 0x19
ja 0x10001bdd
add cl, 0x47
jmp 0x10001bff
lea eax, [ecx - 0x34]
cmp al, 9
ja 0x10001be9
sub cl, 4
jmp 0x10001bff
cmp cl, 0x3e
jne 0x10001bf2
mov cl, 0x2b
jmp 0x10001bff
cmp cl, 0x3f
mov eax, 0x3d
cmove eax, edi
mov cl, al
mov byte [esi + 1], cl
add edx, 3
add esi, 4
sub ebx, 1
jne 0x10001af0
mov edi, dword [ebp - 8]
mov ebx, dword [ebp - 0xc]
mov edx, dword [ebp - 4]
pop esi
lea eax, [edi + edi*2]
sub ebx, eax
cmp ebx, 1
jne 0x10001c31
mov eax, dword [ebp + 8]
mov word [eax + edi*4 + 2], 0x3d3d
jmp 0x10001c3e
cmp ebx, 2
jne 0x10001c40
mov eax, dword [ebp + 8]
mov byte [eax + edi*4 + 3], 0x3d
mov edi, edx
mov ecx, dword [ebp + 8]
lea eax, [edi*4]
pop edi
pop ebx
mov byte [eax + ecx], 0
mov esp, ebp
pop ebp
ret 8
Function at 0x10001c60
Capabilities:
Create tcp socket
Create udp socket

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push edi
mov edi, ecx
cmp dword [edi], 0xffffffff
jne 0x10001d0e
mov eax, dword [ebp + 0x14]
push 1
push 0
push 0
push 6
push 1
mov dword [edi + 0x28], eax
mov eax, dword [ebp + 0x10]
push 2
mov dword [edi + 0x20], eax
call dword [sym.imp.WS2_32.dll_WSASocketW]
mov dword [edi], eax
cmp eax, 0xffffffff
je 0x10001d0e
push ebx
push 4
call dword [sym.imp.MSVCRT.dll_void____cdecl_operator_new_unsigned_int_]
mov ebx, eax
add esp, 4
test ebx, ebx
je 0x10001cb1
mov dword [ebx], 0
jmp 0x10001cb3
xor ebx, ebx
push 8
push 0x40
mov dword [edi + 0x2c], ebx
call dword [sym.imp.KERNEL32.DLL_LocalAlloc]
push 0
push 0x40
mov dword [ebx], eax
call dword [sym.imp.KERNEL32.DLL_LocalAlloc]
mov ecx, dword [ebx]
push dword [ebp + 8]
mov dword [ecx + 4], eax
mov eax, 2
mov word [ebp - 0x10], ax
call dword [sym.imp.WS2_32.dll_inet_addr]
push dword [ebp + 0xc]
mov dword [ebp - 0xc], eax
call dword [sym.imp.WS2_32.dll_htons]
mov word [ebp - 0xe], ax
lea eax, [ebp - 0x10]
push 0x10
push eax
push dword [edi]
call dword [sym.imp.WS2_32.dll_bind]
pop ebx
cmp eax, 0xffffffff
jne 0x10001d1a
mov ecx, edi
call fcn.10002010
mov eax, 1
pop edi
mov esp, ebp
pop ebp
ret 0x10
push dword [0x1000502c]
push dword [edi]
call dword [sym.imp.WS2_32.dll_listen]
cmp eax, 0xffffffff
je 0x10001d07
push 0
push 0
push dword [0x10005038]
push dword [edi]
call dword [sym.imp.KERNEL32.DLL_CreateIoCompletionPort]
mov ecx, edi
call fcn.10001d50
pop edi
mov esp, ebp
pop ebp
ret 0x10
Function at 0x10002010
Capabilities:
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
mov esi, ecx
push edi
mov edi, dword [esi]
cmp edi, 0xffffffff
je 0x10002061
push 4
lea eax, [ebp - 4]
mov dword [esi + 0x24], 1
push eax
push 0x80
push 0xffff
push edi
mov dword [esi + 4], 0
mov dword [ebp - 4], 1
call dword [sym.imp.WS2_32.dll_setsockopt]
push 2
push edi
call dword [sym.imp.WS2_32.dll_shutdown]
push edi
call dword [sym.imp.WS2_32.dll_closesocket]
mov dword [esi], 0xffffffff
pop edi
xor eax, eax
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x10002af0
Capabilities:
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push ebx
mov ebx, dword [ebp + 0x10]
push esi
mov esi, ecx
cmp ebx, 0x3e80000
jbe 0x10002b12
pop esi
mov eax, 1
pop ebx
mov esp, ebp
pop ebp
ret 0xc
push edi
push 0x34
call dword [sym.imp.MSVCRT.dll_void____cdecl_operator_new_unsigned_int_]
push 0x34
mov edi, eax
push 0
push edi
call sub.MSVCRT.dll_memset
add esp, 0x10
mov dword [edi + 0x14], esi
mov dword [edi + 0x18], 4
cmp dword [esi + 0x20], 0
je 0x10002b69
lea esi, [ebx + 4]
push esi
call fcn.10003acf
mov dword [edi + 0x20], eax
mov dword [edi + 0x2c], esi
mov dword [ebp - 4], eax
mov ecx, dword [edi + 0x2c]
mov dword [ebp - 8], ecx
mov dword [eax], ebx
mov eax, dword [ebp - 4]
push ebx
push dword [ebp + 0xc]
add eax, 4
push eax
call sub.MSVCRT.dll_memcpy
add esp, 0x10
jmp 0x10002b72
mov eax, dword [ebp + 0xc]
mov dword [ebp - 4], eax
mov dword [ebp - 8], ebx
push 0
push edi
push 0
lea eax, [edi + 0x28]
mov dword [edi + 0x30], 0
push eax
push 1
lea eax, [ebp - 8]
push eax
push dword [ebp + 8]
call dword [sym.imp.WS2_32.dll_WSASend]
test eax, eax
je 0x10002bca
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, 0x3e5
je 0x10002bca
push dword [edi + 0x20]
call fcn.10003abc
push 0x34
push edi
mov dword [edi + 0x20], 0
call fcn.10003ac1
add esp, 0xc
mov eax, 1
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret 0xc
Function at 0x10003030
Capabilities:
Receive data
Receive data on socket
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push ebx
mov ebx, dword [sym.imp.WS2_32.dll_setsockopt]
push esi
push edi
push 0
push 0
mov edi, ecx
push 0x7010
push 0xffff
push dword [edi]
call ebx
push dword [edi + 0x10]
push 0
push 0
push 1
push dword [edi]
push edi
call dword [0x10005034]
mov esi, dword [ebp + 0xc]
push dword [esi + 0x1c]
call fcn.10003abc
cmp byte [ebp + 8], 0
jne 0x10003104
add esp, 4
cmp dword [edi + 4], 0
je 0x10003093
push 4
call fcn.10003acf
mov dword [esi + 0x28], 4
jmp 0x100030a4
push 0xffff
call fcn.10003acf
mov dword [esi + 0x28], 0xffff
add esp, 4
mov dword [esi + 0x1c], eax
mov dword [ebp - 4], eax
mov eax, dword [esi + 0x28]
mov dword [ebp - 8], eax
lea eax, [ebp + 8]
push 0
push esi
push eax
lea eax, [esi + 0x24]
mov dword [esi + 0x2c], 0
push eax
push 1
lea eax, [ebp - 8]
mov dword [esi + 0x14], edi
push eax
mov dword [esi + 0x18], 2
push dword [edi]
mov dword [ebp + 8], 0
call dword [sym.imp.WS2_32.dll_WSARecv]
test eax, eax
je 0x10003166
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, 0x271e
je 0x10003166
cmp eax, 0x3e5
je 0x10003166
push dword [esi + 0x1c]
call fcn.10003abc
push 0x30
push esi
mov dword [esi + 0x1c], 0
call fcn.10003ac1
add esp, 0xc
push dword [edi + 0x10]
push 0
push 0
push 3
push dword [edi]
push edi
call dword [0x10005034]
mov esi, dword [edi]
mov dword [edi + 0x14], 1
cmp esi, 0xffffffff
je 0x10003160
push 4
lea eax, [ebp + 8]
mov dword [ebp + 8], 1
push eax
push 0x80
push 0xffff
push esi
call ebx
push 2
push esi
call dword [sym.imp.WS2_32.dll_shutdown]
push esi
call dword [sym.imp.WS2_32.dll_closesocket]
mov dword [edi], 0xffffffff
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
Function at 0x10003390
Capabilities:
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
mov esi, ecx
push edi
mov edi, dword [esi]
mov dword [esi + 0x14], 1
cmp edi, 0xffffffff
je 0x100033d4
push 4
lea eax, [ebp - 4]
mov dword [ebp - 4], 1
push eax
push 0x80
push 0xffff
push edi
call dword [sym.imp.WS2_32.dll_setsockopt]
push 2
push edi
call dword [sym.imp.WS2_32.dll_shutdown]
push edi
call dword [sym.imp.WS2_32.dll_closesocket]
pop edi
mov dword [esi], 0xffffffff
xor eax, eax
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x100033f0
Capabilities:
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push ebx
push esi
mov esi, dword [ebp + 0xc]
mov ebx, ecx
cmp esi, 0x3e80000
jbe 0x1000340f
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret 0x14
mov eax, dword [ebp + 0x10]
push edi
mov dword [ebx + 8], eax
mov eax, dword [ebp + 0x14]
push 0x30
mov dword [ebx + 0xc], eax
call dword [sym.imp.MSVCRT.dll_void____cdecl_operator_new_unsigned_int_]
push 0x30
mov edi, eax
push 0
push edi
call sub.MSVCRT.dll_memset
add esp, 0x10
mov dword [edi + 0x14], ebx
mov dword [edi + 0x18], 4
cmp dword [ebx + 4], 0
je 0x10003475
add esi, 4
push esi
call fcn.10003acf
mov dword [edi + 0x1c], eax
mov dword [edi + 0x28], esi
mov dword [ebp - 4], eax
mov ecx, dword [edi + 0x28]
mov dword [ebp - 8], ecx
mov ecx, dword [ebp + 0xc]
mov dword [eax], ecx
mov eax, dword [ebp - 4]
push ecx
push dword [ebp + 8]
add eax, 4
push eax
call sub.MSVCRT.dll_memcpy
add esp, 0x10
jmp 0x10003487
mov eax, dword [ebp + 8]
mov dword [edi + 0x1c], eax
mov dword [edi + 0x28], esi
mov dword [ebp - 4], eax
mov eax, dword [edi + 0x28]
mov dword [ebp - 8], eax
push 0
push edi
push 0
lea eax, [edi + 0x24]
push eax
push 1
lea eax, [ebp - 8]
push eax
push dword [ebx]
call dword [sym.imp.WS2_32.dll_WSASend]
test eax, eax
je 0x100034d0
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, 0x3e5
je 0x100034d0
push dword [edi + 0x1c]
call fcn.10003abc
push 0x30
push edi
call fcn.10003ac1
add esp, 0xc
mov eax, 1
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x14
cmp dword [ebx + 8], 0
jle 0x100034f3
mov eax, dword [ebp + 0x18]
mov ecx, 2
test eax, eax
cmovle eax, ecx
imul eax, eax, 0x3e8
push eax
push dword [ebx + 0x18]
call dword [sym.imp.KERNEL32.DLL_WaitForSingleObject]
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret 0x14
Function at 0x10003500
Capabilities:
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
cmp byte [ebp + 8], 0
push esi
push edi
mov edi, ecx
je 0x10003584
mov esi, dword [ebp + 0xc]
push dword [esi + 0x1c]
call fcn.10003abc
push 0x30
push esi
mov dword [esi + 0x1c], 0
call fcn.10003ac1
add esp, 0xc
push dword [edi + 0x10]
push 0
push 0
push 3
push dword [edi]
push edi
call dword [0x10005034]
mov esi, dword [edi]
mov dword [edi + 0x14], 1
cmp esi, 0xffffffff
je 0x10003578
push 4
lea eax, [ebp + 8]
mov dword [ebp + 8], 1
push eax
push 0x80
push 0xffff
push esi
call dword [sym.imp.WS2_32.dll_setsockopt]
push 2
push esi
call dword [sym.imp.WS2_32.dll_shutdown]
push esi
call dword [sym.imp.WS2_32.dll_closesocket]
mov dword [edi], 0xffffffff
pop edi
pop esi
pop ebp
ret 8
cmp dword [edi + 4], 0
je 0x100035a0
mov esi, dword [ebp + 0xc]
push dword [esi + 0x1c]
call fcn.10003abc
push 0x30
push esi
call fcn.10003ac1
add esp, 0xc
pop edi
pop esi
pop ebp
ret 8

Function at 0x100035b0
Capabilities:
Receive data
Receive data on socket
Resolve dns
Send data
Send data on socket
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x404
push edi
lea eax, [ebp - 4]
mov dword [ebp - 4], 0
mov edi, ecx
push eax
push 0x8004667e
push dword [edi]
call dword [sym.imp.WS2_32.dll_ioctlsocket]
push dword [ebp + 8]
call dword [sym.imp.WS2_32.dll_gethostbyname]
test eax, eax
jne 0x100035eb
or eax, 0xffffffff
pop edi
mov esp, ebp
pop ebp
ret 0x10
mov eax, dword [eax + 0xc]
mov ecx, dword [ebp + 0xc]
push dword [ebp + 0x10]
mov eax, dword [eax]
mov edx, dword [eax]
mov eax, ecx
shr eax, 8
mov byte [ebp - 0x402], al
mov eax, edx
shr eax, 8
mov byte [ebp - 0x3ff], al
mov eax, edx
shr eax, 0x10
mov byte [ebp - 0x3fe], al
lea eax, [ebp - 0x3fc]
mov byte [ebp - 0x400], dl
shr edx, 0x18
push eax
mov word [ebp - 0x404], 0x104
mov byte [ebp - 0x401], cl
mov byte [ebp - 0x3fd], dl
call dword [sym.imp.KERNEL32.DLL_lstrcpyA]
push dword [ebp + 0x10]
call dword [sym.imp.KERNEL32.DLL_lstrlenA]
push 0
add eax, 9
push eax
lea eax, [ebp - 0x404]
push eax
push dword [edi]
call dword [sym.imp.WS2_32.dll_send]
test eax, eax
jle 0x100035e1
push 0
push 0x400
lea eax, [ebp - 0x404]
push eax
push dword [edi]
call dword [sym.imp.WS2_32.dll_recv]
test eax, eax
jle 0x100035e1
cmp byte [ebp - 0x404], 0
jne 0x100035e1
xor eax, eax
cmp byte [ebp - 0x403], 0x5a
pop edi
sete al
dec eax
mov esp, ebp
pop ebp
ret 0x10
Function at 0x100036b0
Capabilities:
Receive data
Receive data on socket
Send data
Send data on socket
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x408
push ebx
mov ebx, ecx
mov dword [ebp - 4], 0
lea eax, [ebp - 4]
mov dword [ebp - 8], ebx
push eax
push 0x8004667e
push dword [ebx]
call dword [sym.imp.WS2_32.dll_ioctlsocket]
push 0
push 4
lea eax, [ebp - 0x408]
mov dword [ebp - 0x408], 0x2000205
push eax
push dword [ebx]
call dword [sym.imp.WS2_32.dll_send]
test eax, eax
jg 0x10003702
or eax, 0xffffffff
pop ebx
mov esp, ebp
pop ebp
ret 0x10
push edi
mov edi, dword [sym.imp.WS2_32.dll_recv]
lea eax, [ebp - 0x408]
push 0
push 0x400
push eax
push dword [ebx]
call edi
test eax, eax
jle 0x10003728
cmp byte [ebp - 0x408], 5
je 0x10003733
pop edi
or eax, 0xffffffff
pop ebx
mov esp, ebp
pop ebp
ret 0x10
mov al, byte [ebp - 0x407]
mov ecx, dword [sym.imp.KERNEL32.DLL_lstrlenA]
push esi
cmp al, 2
jne 0x100037e6
mov esi, dword [ebp + 0x10]
push esi
call ecx
mov edi, dword [ebp + 0x14]
mov ebx, eax
push edi
call dword [sym.imp.KERNEL32.DLL_lstrlenA]
push ebx
mov dword [ebp + 0x10], eax
lea eax, [ebp - 0x406]
push esi
mov byte [ebp - 0x407], bl
mov ebx, dword [sym.imp.USER32.dll_wsprintfA]
push eax
mov byte [ebp - 0x408], 1
call ebx
mov esi, eax
lea ecx, [ebp - 0x408]
mov eax, dword [ebp + 0x10]
push eax
push edi
mov byte [ebp + esi - 0x406], al
add esi, 3
add ecx, esi
push ecx
call ebx
mov ebx, dword [ebp - 8]
add esp, 0x18
add esi, eax
lea eax, [ebp - 0x408]
push 0
push esi
push eax
push dword [ebx]
call dword [sym.imp.WS2_32.dll_send]
test eax, eax
jle 0x100037da
mov edi, dword [sym.imp.WS2_32.dll_recv]
lea eax, [ebp - 0x408]
push 0
push 0x400
push eax
push dword [ebx]
call edi
test eax, eax
jle 0x100037da
cmp byte [ebp - 0x407], 0
je 0x100037ec
pop esi
pop edi
or eax, 0xffffffff
pop ebx
mov esp, ebp
pop ebp
ret 0x10
test al, al
jne 0x100037da
jmp 0x100037f2
mov ecx, dword [sym.imp.KERNEL32.DLL_lstrlenA]
mov esi, dword [ebp + 8]
push esi
call ecx
push eax
mov byte [ebp - 0x404], al
lea eax, [ebp - 0x403]
push esi
push eax
mov dword [ebp - 0x408], 0x3000105
call dword [sym.imp.USER32.dll_wsprintfA]
mov edx, dword [ebp + 0xc]
add esp, 0xc
mov ecx, edx
shr ecx, 8
mov byte [ebp + eax - 0x403], cl
mov byte [ebp + eax - 0x402], dl
add eax, 7
push 0
push eax
lea eax, [ebp - 0x408]
push eax
push dword [ebx]
call dword [sym.imp.WS2_32.dll_send]
test eax, eax
jle 0x100037da
push 0
push 0x400
lea eax, [ebp - 0x408]
push eax
push dword [ebx]
call edi
test eax, eax
jle 0x100037da
cmp byte [ebp - 0x408], 5
jne 0x100037da
movzx eax, byte [ebp - 0x407]
pop esi
neg eax
pop edi
sbb eax, eax
pop ebx
mov esp, ebp
pop ebp
ret 0x10
Function at 0x402765
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x40427c]
jne 0x40276e
ret
jmp fcn.00402aa0

Function at 0x402a96
Capabilities:
Terminate process

Disassembly:
push 0x58
push 0x404610
call fcn.00402ba4
xor ebx, ebx
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 4], ebx
lea eax, [ebp - 0x68]
push eax
call dword [sym.imp.KERNEL32.dll_GetStartupInfoA]
mov dword [ebp - 4], 0xfffffffe
mov dword [ebp - 4], 1
mov eax, dword fs:[0x18]
mov esi, dword [eax + 4]
mov edi, 0x4064a0
push 0
push esi
push edi
call dword [sym.imp.KERNEL32.dll_InterlockedCompareExchange]
test eax, eax
je 0x402835
cmp eax, esi
jne 0x402828
xor esi, esi
inc esi
mov ebx, esi
jmp 0x402838
push 0x3e8
call dword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x40280f
xor esi, esi
inc esi
mov eax, dword [0x40649c]
cmp eax, esi
jne 0x40284b
push 0x1f
call sub.MSVCR80.dll__amsg_exit
pop ecx
jmp 0x40287a
mov eax, dword [0x40649c]
test eax, eax
jne 0x402874
mov dword [0x40649c], esi
push 0x404250
push 0x404248
call sub.MSVCR80.dll__initterm_e
pop ecx
pop ecx
test eax, eax
je 0x40287a
jmp 0x4029a2
mov dword [0x4060d4], esi
mov eax, dword [0x40649c]
cmp eax, esi
jne 0x40289e
push 0x404244
push 0x404230
call sub.MSVCR80.dll__initterm
pop ecx
pop ecx
mov dword [0x40649c], 2
test ebx, ebx
jne 0x4028aa
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
cmp dword [0x4064ac], 0
je 0x4028ce
push 0x4064ac
call fcn.00402da2
pop ecx
test eax, eax
je 0x4028ce
push 0
push 2
push 0
call dword [0x4064ac]
mov eax, dword [sym.imp.MSVCR80.dll__acmdln]
mov esi, dword [eax]
mov dword [ebp - 0x20], esi
mov al, byte [esi]
cmp al, 0x20
ja 0x40292a
test al, al
je 0x4028e8
cmp dword [ebp - 0x1c], 0
jne 0x40292a
mov al, byte [esi]
test al, al
je 0x4028f8
cmp al, 0x20
ja 0x4028f8
inc esi
mov dword [ebp - 0x20], esi
jmp 0x4028e8
test byte [ebp - 0x3c], 1
je 0x402904
movzx eax, word [ebp - 0x38]
jmp 0x402907
push 0xa
pop eax
push eax
push esi
push 0
push 0x400000
call main
mov dword [0x4060d0], eax
cmp dword [0x4060c4], 0
jne 0x40297e
push eax
call dword [sym.imp.MSVCR80.dll_exit]
cmp al, 0x22
jne 0x402939
xor ecx, ecx
cmp dword [ebp - 0x1c], ecx
sete cl
mov dword [ebp - 0x1c], ecx
movzx eax, al
push eax
call dword [sym.imp.MSVCR80.dll__ismbblead]
pop ecx
test eax, eax
je 0x40294c
inc esi
mov dword [ebp - 0x20], esi
inc esi
jmp 0x4028d5
cmp dword [0x4060d4], 0
jne 0x40298d
call dword [sym.imp.MSVCR80.dll__cexit]
mov dword [ebp - 4], 0xfffffffe
mov eax, dword [0x4060d0]
jmp 0x4029ae
mov dword [ebp - 4], 0xfffffffe
mov eax, 0xff
call fcn.00402be9
ret
call 0x495000
jmp 0x4027d5