Function at 0x404d60
Capabilities:
Encode data using xor
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x44
mov eax, dword [0x418250]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
push ebx
mov ebx, dword [ebp + 8]
push esi
mov esi, ecx
push edi
cmp byte [esi + 0x10e1], 0
mov edi, dword [ebp + 0x10]
mov dword [ebp - 0x3c], esi
mov dword [ebp - 0x38], eax
je 0x404db7
push edi
push ebx
push eax
call fcn.00405aa0
mov edx, dword [ebp - 0x38]
add esp, 0xc
mov ecx, esi
push edi
push edx
call fcn.00405120
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00405923
mov esp, ebp
pop ebp
ret 0xc
cmp edi, 0x10
jne 0x404e71
cmp byte [esi], 0
jne 0x404e06
cmp byte [esi + 0x10e0], 0
je 0x404e06
lea ecx, [ebx + 2]
lea edx, [esi + 0x10c1]
mov edi, 4
lea esp, [esp]
movzx eax, byte [edx - 1]
xor byte [ecx - 2], al
movzx eax, byte [edx]
xor byte [ecx - 1], al
movzx eax, byte [edx + 1]
xor byte [ecx], al
movzx eax, byte [edx + 2]
xor byte [ecx + 1], al
lea edx, [edx + 4]
lea ecx, [ecx + 4]
dec edi
jne 0x404de0
mov eax, dword [ebp - 0x38]
push eax
push ebx
mov ecx, esi
call fcn.004048e0
cmp byte [esi], 0
je 0x404e53
cmp byte [esi + 0x10e0], 0
je 0x404e53
mov ecx, dword [ebp - 0x38]
add ecx, 2
lea edx, [esi + 0x10b1]
mov edi, 4
mov edi, edi
movzx eax, byte [edx - 1]
xor byte [ecx - 2], al
movzx eax, byte [edx]
xor byte [ecx - 1], al
movzx eax, byte [edx + 1]
xor byte [ecx], al
movzx eax, byte [edx + 2]
xor byte [ecx + 1], al
lea edx, [edx + 4]
lea ecx, [ecx + 4]
dec edi
jne 0x404e30
push dword [ebp - 0x38]
mov ecx, esi
push ebx
call fcn.00405680
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00405923
mov esp, ebp
pop ebp
ret 0xc
cmp byte [esi], 0
je 0x40504d
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x24]
push eax
call fcn.00405630
lea eax, [ebp - 0x34]
push eax
lea eax, [ebp - 0x24]
push eax
mov ecx, esi
call fcn.004048e0
test edi, edi
jle 0x404ed7
lea eax, [ebp - 0x34]
sub eax, ebx
mov dword [ebp - 0x40], eax
mov eax, dword [ebp - 0x38]
sub eax, ebx
mov edx, edi
mov edi, dword [ebp - 0x40]
mov ecx, ebx
mov esi, eax
mov al, byte [edi + ecx]
xor al, byte [ecx]
lea ecx, [ecx + 1]
mov byte [esi + ecx - 1], al
dec edx
jne 0x404eb0
mov edi, dword [ebp + 0x10]
mov esi, dword [ebp - 0x3c]
test edi, edi
jle 0x404ed7
push edi
lea eax, [ebp - 0x24]
push ebx
push eax
call fcn.00405aa0
add esp, 0xc
cmp edi, 0x10
jge 0x404ef8
mov eax, 0x10
sub eax, edi
lea ecx, [ebp - 0x34]
push eax
add ecx, edi
lea edx, [ebp - 0x24]
add edx, edi
push ecx
push edx
call fcn.00405aa0
add esp, 0xc
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x24]
push eax
mov ecx, esi
call fcn.004048e0
lea ecx, [ebp - 0x13]
lea edx, [esi + 0x10d1]
mov edi, 4
movzx eax, byte [edx - 1]
xor byte [ecx - 1], al
movzx eax, byte [edx]
xor byte [ecx], al
movzx eax, byte [edx + 1]
xor byte [ecx + 1], al
movzx eax, byte [edx + 2]
xor byte [ecx + 2], al
lea edx, [edx + 4]
lea ecx, [ecx + 4]
dec edi
jne 0x404f15
cmp byte [esi + 0x10e0], 0
mov eax, dword [sym.imp.WS2_32.dll_send]
je 0x404f9b
cmp byte [esi + 3], 0
lea edi, [esi + 0x10c0]
je 0x404f5f
push 0
push 0x10
push edi
push dword [esi + 0x10ac]
call eax
mov ebx, 0x10
cmp byte [esi + 1], 0
je 0x404f7c
movsx eax, byte [edi]
push dword [esi + 0x10a4]
push eax
call fcn.00407536
add esp, 8
cmp byte [esi + 2], 0
je 0x404f92
mov ecx, dword [esi + 0x10a8]
mov al, byte [edi]
mov byte [ecx], al
inc dword [esi + 0x10a8]
inc edi
dec ebx
jne 0x404f64
mov eax, dword [sym.imp.WS2_32.dll_send]
movq xmm0, qword [esi + 0x10b0]
movq qword [esi + 0x10d0], xmm0
movq xmm0, qword [esi + 0x10b8]
movq qword [esi + 0x10d8], xmm0
movq xmm0, qword [ebp - 0x24]
movq qword [esi + 0x10b0], xmm0
movq xmm0, qword [ebp - 0x1c]
movq qword [esi + 0x10b8], xmm0
movq xmm0, qword [ebp - 0x14]
lea edi, [esi + 0x10c0]
movq qword [edi], xmm0
movq xmm0, qword [ebp - 0xc]
movq qword [edi + 8], xmm0
cmp byte [esi + 3], 0
mov byte [esi + 0x10e0], 1
je 0x405008
push 0
push 0x10
push edi
push dword [esi + 0x10ac]
call eax
mov ebx, 0x10
lea ecx, [ecx]
cmp byte [esi + 1], 0
je 0x405028
movsx eax, byte [edi]
push dword [esi + 0x10a4]
push eax
call fcn.00407536
add esp, 8
cmp byte [esi + 2], 0
je 0x40503e
mov ecx, dword [esi + 0x10a8]
mov al, byte [edi]
mov byte [ecx], al
inc dword [esi + 0x10a8]
inc edi
dec ebx
jne 0x405010
push dword [ebp + 0x10]
push dword [ebp - 0x38]
jmp 0x4050dc
lea eax, [ebp - 0x24]
push eax
lea eax, [ebp - 0x14]
push eax
call fcn.00405630
push edi
xorps xmm0, xmm0
lea eax, [ebp - 0x14]
push ebx
push eax
movq qword [ebp - 0x14], xmm0
movq qword [ebp - 0xc], xmm0
call fcn.00405aa0
add esp, 0xc
xor ecx, ecx
jmp 0x405080
movzx eax, byte [ebp + ecx - 0x24]
xor byte [ebp + ecx - 0x14], al
movzx eax, byte [ebp + ecx - 0x23]
xor byte [ebp + ecx - 0x13], al
movzx eax, byte [ebp + ecx - 0x22]
xor byte [ebp + ecx - 0x12], al
movzx eax, byte [ebp + ecx - 0x21]
xor byte [ebp + ecx - 0x11], al
add ecx, 4
cmp ecx, 0x10
jl 0x405080
mov ebx, dword [ebp - 0x38]
push ebx
lea eax, [ebp - 0x14]
push eax
mov ecx, esi
call fcn.004048e0
push ebx
lea eax, [ebp - 0x14]
push eax
mov ecx, esi
call fcn.00405680
lea eax, [esi + 0x10c0]
push 0x10
push eax
mov ecx, esi
call fcn.00405120
push edi
lea eax, [ebp - 0x24]
push eax
mov ecx, esi
call fcn.00405120
mov ecx, dword [ebp - 4]
pop edi
mov byte [esi + 0x10e0], 0
pop esi
xor ecx, ebp
pop ebx
call fcn.00405923
mov esp, ebp
pop ebp
ret 0xc