Function at 0x433a40
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x585bc9
mov eax, dword fs:[0]
push eax
sub esp, 0x124
mov eax, dword [0x5e6990]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [ebp + 0xc]
mov ebx, edx
mov dword [ebp - 0x130], ebx
mov dword [ebp - 0x120], eax
mov dword [ebp - 0x124], ecx
push 0xff
lea edx, [ebp - 0x10f]
push 0
mov dword [ebp - 4], 0
push edx
mov byte [ebp - 0x110], 0
call fcn.0055e260
add esp, 0xc
call fcn.0045c778
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
jne 0x433ac3
push 0x80004005
call fcn.00402e90
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [ebp - 0x118], eax
mov byte [ebp - 4], 1
call fcn.0045c778
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
jne 0x433af3
push 0x80004005
call fcn.00402e90
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [ebp - 0x11c], eax
mov byte [ebp - 4], 2
call fcn.0045c778
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
jne 0x433b23
push 0x80004005
call fcn.00402e90
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
lea esi, [eax + 0x10]
mov dword [ebp - 0x12c], esi
push 0x20
lea ecx, [ebp + 8]
mov byte [ebp - 4], 3
call fcn.004087e0
push 9
lea ecx, [ebp + 8]
call fcn.004087e0
mov ecx, dword [ebp + 8]
mov eax, dword [ecx - 0xc]
cdq
sub eax, edx
sar eax, 1
mov dword [ebp - 0x128], eax
lea edx, [ebp - 0x128]
push edx
lea eax, [ebp - 0x110]
push eax
push ecx
lea eax, [ecx - 0x10]
mov dword [ebp - 0x114], esp
mov edi, esp
push eax
call fcn.00402b00
add eax, 0x10
add esp, 4
mov dword [edi], eax
call fcn.004052b0
mov edi, dword [ebp - 0x128]
movzx ecx, byte [ebp - 0x110]
mov eax, 1
add esp, 0xc
cmp edi, eax
jle 0x433bb3
movzx edx, byte [ebp + eax - 0x110]
inc eax
xor ecx, edx
cmp eax, edi
jl 0x433ba4
inc byte [ebp - 0x10b]
push 0
push ecx
mov byte [ebp + edi - 0x110], cl
mov eax, esp
mov dword [ebp - 0x114], esp
lea ecx, [ebp + 8]
push ecx
push str.Send:
push eax
inc edi
call fcn.00402850
add esp, 0xc
call fcn.0043f950
push edi
lea edx, [ebp - 0x110]
push edx
add ebx, 0x50c
push ebx
call fcn.0040f130
test eax, eax
jne 0x433c21
push 0
push ecx
mov ecx, esp
mov dword [ebp - 0x114], esp
push str.Recv:NULL
call fcn.004026e0
call fcn.0043f950
mov byte [ebp - 4], 2
lea eax, [esi - 0x10]
jmp 0x433ddb
mov edi, dword [ebp - 0x124]
push ebx
mov ebx, dword [ebp - 0x120]
call fcn.0040f000
test eax, eax
je 0x433bfb
mov ecx, edi
movzx ebx, byte [ecx]
lea edx, [ebx + ebx + 1]
push edx
call fcn.0045c711
mov edi, dword [ebp - 0x120]
mov esi, eax
add esp, 4
mov edx, esi
call fcn.00405180
push esi
lea eax, [ebp - 0x118]
push 0x5b7070
push eax
mov byte [esi + ebx*2], 0
call fcn.00403be0
add esp, 0xc
push esi
call fcn.0045c706
add esp, 4
push 0
push ecx
mov ecx, esp
mov dword [ebp - 0x114], esp
lea edx, [ebp - 0x118]
push edx
push str.Recv:
push ecx
call fcn.00402850
add esp, 0xc
call fcn.0043f950
mov eax, edi
mov cl, byte [eax]
cmp cl, byte [ebp - 0x110]
jne 0x433d5b
cmp byte [eax + 4], 0
jne 0x433d5b
mov byte [ebp - 4], 2
mov eax, dword [ebp - 0x12c]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x433cdf
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [ebp - 4], 1
mov eax, dword [ebp - 0x11c]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x433d05
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [ebp - 4], 0
mov eax, dword [ebp - 0x118]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x433d2b
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp + 8]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x433d51
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, 1
jmp 0x433e68
push 0
push ecx
mov ecx, esp
mov dword [ebp - 0x114], esp
lea edx, [ebp + 8]
push edx
push str.Send:
push ecx
call fcn.00402850
mov esi, dword [ebp - 0x130]
add esp, 0xc
call fcn.00428480
push 0
push ecx
mov eax, esp
mov dword [ebp - 0x114], esp
lea ecx, [ebp - 0x118]
push ecx
push str.Recv:
push eax
call fcn.00402850
add esp, 0xc
mov edi, esi
call fcn.00428480
mov edx, dword [ebp - 0x120]
movzx eax, byte [edx + 4]
push 0xdc
push ecx
mov esi, esp
mov dword [ebp - 0x114], esp
call fcn.0043f480
mov esi, edi
call fcn.00428480
mov byte [ebp - 4], 2
mov eax, dword [ebp - 0x12c]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x433df4
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [ebp - 4], 1
mov eax, dword [ebp - 0x11c]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x433e1a
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [ebp - 4], 0
mov eax, dword [ebp - 0x118]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x433e40
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp + 8]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x433e66
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0055a74e
mov esp, ebp
pop ebp
ret 8