Function at 0x49aa80
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 0x51e31d
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ebx
sub esp, 0x50
mov eax, dword [0x557f84]
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 0x49aae7
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 [0x557f88]
mov eax, dword [0x557f74]
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 0x49ab32
mov dword [ebp - 0x14], 0x80803000
mov dword [ebp - 0x20], 0x80803000
mov eax, dword [0x557f7c]
xorps xmm0, xmm0
mov dword [ebp - 0x28], eax
xor ecx, ecx
mov dword [ebp - 0x5d], 0xaaaca9a3
movq qword [ebp - 0x59], xmm0
mov byte [ebp - 0x51], 0
nop
lea eax, [ecx - 0x15]
xor byte [ebp + ecx - 0x5d], al
inc ecx
cmp ecx, 4
jb 0x49ab50
mov dword [0x558588], ecx
xorps xmm0, xmm0
lea ecx, [ebp - 0x5d]
mov byte [ebp - 0x59], 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 0x49ab82
sub ecx, edx
lea eax, [ebp - 0x5d]
push ecx
push eax
lea ecx, [ebp - 0x44]
call fcn.00402b20
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 0x49abfa
mov edx, dword [ebp - 0x44]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x49abf0
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x49ace2
push ecx
push edx
call fcn.004f7c11
add esp, 8
mov eax, dword [0x557f78]
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 0x49ac7d
push eax
push 0x43548758
call fcn.0049aa40
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 0x49ac7a
cmp ecx, dword [ebp - 0x28]
jne 0x49ac7a
cmp byte [ebx + 8], cl
je 0x49ac7a
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 [0x557f68]
or dword [ebp - 0x14], 0x100
lea eax, [ebp - 0x14]
push 4
push eax
push 0x1f
push edi
call dword [0x557f88]
mov esi, dword [ebp - 0x18]
mov eax, dword [0x557f80]
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 0x49acb7
push edi
call dword [0x557f6c]
mov eax, dword [ebp - 0x2c]
test eax, eax
je 0x49acc5
push eax
call dword [0x557f6c]
push esi
call dword [0x557f6c]
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.004fceb0
int3