Function at 0x4a7d30
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 0x52b4cd
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ebx
sub esp, 0x50
mov eax, dword [0x564f94]
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 0x4a7d97
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 [0x564f98]
mov eax, dword [0x564f84]
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 0x4a7de2
mov dword [ebp - 0x14], 0x80803000
mov dword [ebp - 0x20], 0x80803000
mov eax, dword [0x564f8c]
xorps xmm0, xmm0
mov dword [ebp - 0x28], eax
xor ecx, ecx
mov dword [ebp - 0x5f], 0xf6f0f5e7
movups xmmword [ebp - 0x5b], xmm0
mov dword [ebp - 0x4b], 0
mov word [ebp - 0x47], 0
mov byte [ebp - 0x45], 0
nop dword [eax + eax]
lea eax, [ecx - 0x51]
xor byte [ebp + ecx - 0x5f], al
inc ecx
cmp ecx, 4
jb 0x4a7e10
mov dword [0x5655d8], 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 0x4a7e42
sub ecx, edx
lea eax, [ebp - 0x5f]
push ecx
push eax
lea ecx, [ebp - 0x44]
call fcn.00402c40
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 0x4a7eba
mov edx, dword [ebp - 0x44]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x4a7eb0
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4a7fa2
push ecx
push edx
call fcn.00504f31
add esp, 8
mov eax, dword [0x564f88]
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 0x4a7f3d
push eax
push 0x43348739
call fcn.004a7cf0
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 0x4a7f3a
cmp ecx, dword [ebp - 0x28]
jne 0x4a7f3a
cmp byte [ebx + 8], cl
je 0x4a7f3a
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 [0x564f78]
or dword [ebp - 0x14], 0x100
lea eax, [ebp - 0x14]
push 4
push eax
push 0x1f
push edi
call dword [0x564f98]
mov esi, dword [ebp - 0x18]
mov eax, dword [0x564f90]
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 0x4a7f77
push edi
call dword [0x564f7c]
mov eax, dword [ebp - 0x2c]
test eax, eax
je 0x4a7f85
push eax
call dword [0x564f7c]
push esi
call dword [0x564f7c]
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.0050a1d0
int3