Function at 0x501c6f
Capabilities:
Get file size
Read file via mapping

Disassembly:
push esi
push edi
xor edi, edi
push edi
push edi
push 3
push edi
push 1
mov esi, ecx
mov eax, dword [esi + 4]
push bind
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
cmp eax, 0xffffffff
mov dword [esi + 0x14], eax
je 0x501ca7
push edi
push edi
push edi
push 2
push edi
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileMappingA]
cmp eax, edi
mov dword [esi + 0x10], eax
jne 0x501cab
xor eax, eax
jmp 0x501cd2
push ebx
push edi
push dword [esi + 0x14]
call dword [sym.imp.KERNEL32.dll_GetFileSize]
push edi
push edi
push edi
push 4
push dword [esi + 0x10]
mov ebx, eax
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov dword [esi + 8], eax
add eax, ebx
mov dword [esi + 0xc], eax
xor eax, eax
inc eax
pop ebx
pop edi
pop esi
ret

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

Disassembly:
push ebp
mov ebp, esp
push ebx
mov ebx, dword [ebp + 0xc]
test ebx, ebx
push esi
push edi
je 0x503f0e
mov edi, dword [ebp + 0x10]
test edi, edi
jle 0x503f0e
xor esi, esi
push dword [ebp + 0x14]
lea eax, [esi + ebx]
push edi
push eax
push dword [ebp + 8]
call sub.WSOCK32.dll_send
test eax, eax
jle 0x503f10
sub edi, eax
add esi, eax
test edi, edi
jg 0x503eed
mov eax, dword [ebp + 0x10]
jmp 0x503f10
xor eax, eax
pop edi
pop esi
pop ebx
pop ebp
ret

Function at 0x503f15
Capabilities:
Get socket status
Receive data
Receive data on socket

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10c
push ebx
mov ebx, dword [ebp + 0x10]
push esi
xor esi, esi
test ebx, ebx
push edi
jle 0x503f8b
mov edi, dword [ebp + 8]
mov eax, dword [ebp + 0x18]
xor ecx, ecx
lea edx, [ebp - 8]
push edx
push ecx
push ecx
mov dword [ebp - 8], eax
mov dword [ebp - 4], ecx
xor eax, eax
lea ecx, [ebp - 0x10c]
inc eax
push ecx
push eax
mov dword [ebp - 0x108], edi
mov dword [ebp - 0x10c], eax
call sub.WSOCK32.dll_select
test eax, eax
je 0x503f92
lea eax, [ebp - 0x10c]
push eax
push edi
call sub.WSOCK32.dll___WSAFDIsSet
test eax, eax
je 0x503f92
push dword [ebp + 0x14]
mov eax, dword [ebp + 0xc]
push ebx
add eax, esi
push eax
push edi
call sub.WSOCK32.dll_recv
test eax, eax
jle 0x503f8d
sub ebx, eax
add esi, eax
test ebx, ebx
jg 0x503f2d
mov eax, esi
pop edi
pop esi
pop ebx
leave
ret
or eax, 0xffffffff
jmp 0x503f8d

Function at 0x503feb
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 0xc]
xor eax, eax
cmp esi, eax
je 0x504027
mov ecx, dword [ebp + 0x14]
cmp ecx, eax
jne 0x504004
mov ecx, 0x5b11c0
cmp dword [ebp + 0x10], eax
jbe 0x504027
push edi
movzx edi, byte [ebp + 8]
movzx edx, byte [eax + esi]
xor edx, edi
mov edi, dword [ebp + 8]
shr edi, 8
xor edi, dword [ecx + edx*4]
inc eax
cmp eax, dword [ebp + 0x10]
mov dword [ebp + 8], edi
jb 0x50400a
pop edi
mov eax, dword [ebp + 8]
pop esi
pop ebp
ret

Function at 0x504187
Capabilities:
Set socket configuration

Disassembly:
push esi
mov esi, dword [esp + 8]
jmp 0x5041a6
lea eax, [esi + 4]
push eax
call sub.WSOCK32.dll_inet_addr
push eax
call fcn.00503ddc
add esp, 4
test al, al
jne 0x5041ae
mov esi, dword [esi]
test esi, esi
jne 0x50418e
xor eax, eax
pop esi
ret
xor eax, eax
inc eax
pop esi
ret