Function at 0x49df60
Capabilities:
Encode data using xor

Disassembly:
push ebx
mov ebx, esp
sub esp, 8
and esp, 0xfffffff8
add esp, 4
push ebp
mov ebp, dword [ebx + 4]
mov dword [esp + 4], ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x52192d
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ebx
sub esp, 0x50
mov eax, dword [0x55cf94]
push esi
push edi
push 0
push 0
push 0
push 0
push dword [ebx + 0xc]
mov dword [ebp - 0x24], edx
mov edi, ecx
call eax
mov esi, eax
mov dword [ebp - 0x18], esi
test esi, esi
jne 0x49dfc7
lea eax, [esi + 1]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret
push 4
lea eax, [ebx + 0x10]
push eax
push 6
push esi
call dword [0x55cf98]
mov eax, dword [0x55cf84]
push 0
push 0
push 3
push 0
push 0
push 0x50
push edi
push esi
call eax
cmp byte [ebx + 8], 0
mov edi, eax
mov dword [ebp - 0x2c], edi
mov dword [ebp - 0x14], connect
mov dword [ebp - 0x20], connect
je 0x49e012
mov dword [ebp - 0x14], 0x80803000
mov dword [ebp - 0x20], 0x80803000
mov eax, dword [0x55cf8c]
xorps xmm0, xmm0
mov dword [ebp - 0x28], eax
xor ecx, ecx
mov dword [ebp - 0x5f], 0xcec8cdcf
movq qword [ebp - 0x5b], xmm0
mov word [ebp - 0x53], 0
lea eax, [ecx - 0x79]
xor byte [ebp + ecx - 0x5f], al
inc ecx
cmp ecx, 4
jb 0x49e031
mov dword [0x55d5d8], ecx
xorps xmm0, xmm0
lea ecx, [ebp - 0x5f]
mov byte [ebp - 0x5b], 0
movups xmmword [ebp - 0x44], xmm0
mov dword [ebp - 0x34], 0
lea edx, [ecx + 1]
mov dword [ebp - 0x30], 0
mov al, byte [ecx]
inc ecx
test al, al
jne 0x49e063
sub ecx, edx
lea eax, [ebp - 0x5f]
push ecx
push eax
lea ecx, [ebp - 0x44]
call fcn.00402b80
push 0
push dword [ebp - 0x20]
mov dword [ebp - 4], 0
lea eax, [ebp - 0x44]
cmp dword [ebp - 0x30], 0x10
push 0
cmovae eax, dword [ebp - 0x44]
push 0
push 0
push dword [ebp - 0x24]
push eax
push edi
call dword [ebp - 0x28]
mov dword [ebp - 4], 0xffffffff
mov edi, eax
mov ecx, dword [ebp - 0x30]
cmp ecx, 0x10
jb 0x49e0db
mov edx, dword [ebp - 0x44]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x49e0d1
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x49e1c3
push ecx
push edx
call fcn.004fb0f1
add esp, 8
mov eax, dword [0x55cf88]
push 0
push 0
push 0
push 0
push edi
mov dword [ebp - 0x34], 0
mov dword [ebp - 0x30], 0xf
mov byte [ebp - 0x44], 0
call eax
test eax, eax
jne 0x49e15e
push eax
push 0x43348739
call fcn.0049df20
add esp, 8
mov dword [ebp - 0x28], edx
mov esi, eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
xor ecx, ecx
cmp eax, esi
jne 0x49e15b
cmp ecx, dword [ebp - 0x28]
jne 0x49e15b
cmp byte [ebx + 8], cl
je 0x49e15b
lea eax, [ebp - 0x1c]
mov dword [ebp - 0x14], ecx
push eax
lea eax, [ebp - 0x14]
mov dword [ebp - 0x1c], 4
push eax
push 0x1f
push edi
call dword [0x55cf78]
or dword [ebp - 0x14], 0x100
lea eax, [ebp - 0x14]
push 4
push eax
push 0x1f
push edi
call dword [0x55cf98]
mov esi, dword [ebp - 0x18]
mov eax, dword [0x55cf90]
lea ecx, [ebp - 0x1c]
push 0
push ecx
push dword [ebx + 0x14]
mov dword [ebp - 0x1c], 4
push 0x20000005
push edi
call eax
test eax, eax
mov ecx, 2
mov eax, 0
cmove eax, ecx
mov dword [ebp - 0x28], eax
test edi, edi
je 0x49e198
push edi
call dword [0x55cf7c]
mov eax, dword [ebp - 0x2c]
test eax, eax
je 0x49e1a6
push eax
call dword [0x55cf7c]
push esi
call dword [0x55cf7c]
mov ecx, dword [ebp - 0xc]
mov eax, dword [ebp - 0x28]
pop edi
mov dword fs:[0], ecx
pop esi
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret
call fcn.00500390
int3