Function at 0x536063
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x44
mov eax, dword [0x7b088c]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov ebx, dword [ebp + 0x10]
mov dword [ebp - 0x3c], eax
mov eax, dword [ebp + 0x18]
push esi
mov dword [ebp - 0x40], eax
xor esi, esi
push edi
mov edi, dword [ebp + 0x14]
lea eax, [ebp - 0x24]
mov dword [ebp - 0x34], edi
sub ebx, eax
lea eax, [ebx + esi*4]
push dword [ebp + eax - 0x24]
call fcn.006aefd4
mov dword [ebp + esi*4 - 0x24], eax
inc esi
pop ecx
cmp esi, 4
jl 0x536092
mov ebx, dword [ebp + 0xc]
add ebx, 0xa
and ebx, reloc.WS2_32.dll_getsockopt
jns 0x5360bc
dec ebx
or ebx, 0xfffffff8
inc ebx
je 0x5360c5
push 8
pop eax
sub eax, ebx
mov ebx, eax
call fcn.005367cd
and al, 0xf8
xor ecx, ecx
inc ecx
or al, bl
mov byte [ebp - 0xc], al
mov esi, ecx
mov dword [ebp - 0x44], ecx
test ebx, ebx
je 0x5360ef
call fcn.005367cd
mov byte [ebp + esi - 0xc], al
inc esi
sub ebx, 1
jne 0x5360dd
xor ecx, ecx
inc ecx
xor ebx, ebx
mov eax, ebx
cmp eax, 8
jae 0x536499
mov byte [ebp + eax - 0x14], bl
inc eax
cmp eax, 8
jl 0x5360f6
mov edx, dword [ebp - 0xc]
lea eax, [ebp - 0x14]
mov dword [ebp - 0x28], eax
mov eax, dword [ebp - 0x40]
mov dword [eax], ebx
mov eax, dword [ebp - 8]
cmp esi, 8
jge 0x536136
call fcn.005367cd
mov ecx, dword [ebp - 0x44]
mov byte [ebp + esi - 0xc], al
inc esi
mov eax, dword [ebp - 8]
inc ecx
mov edx, dword [ebp - 0xc]
cmp esi, 8
mov dword [ebp - 0x44], ecx
jne 0x5361f1
mov ecx, dword [ebp - 0x28]
xor edx, dword [ecx]
xor eax, dword [ecx + 4]
push edx
mov dword [ebp - 0x38], edx
mov dword [ebp - 0xc], edx
mov dword [ebp - 0x28], eax
mov dword [ebp - 8], eax
call fcn.006aefd4
mov esi, dword [ebp - 0x28]
push esi
mov dword [ebp - 0x2c], eax
call fcn.006aefd4
mov edx, dword [ebp - 0x2c]
mov esi, eax
pop ecx
pop ecx
mov edi, ebx
mov dword [ebp - 0x30], 0x10
mov ecx, esi
lea edi, [edi - 0x61c88647]
shl ecx, 4
mov eax, esi
add ecx, dword [ebp - 0x24]
shr eax, 5
add eax, dword [ebp - 0x20]
xor ecx, eax
lea eax, [edi + esi]
xor ecx, eax
add edx, ecx
mov ecx, edx
mov eax, edx
shr ecx, 5
add ecx, dword [ebp - 0x18]
shl eax, 4
add eax, dword [ebp - 0x1c]
xor ecx, eax
lea eax, [edi + edx]
xor ecx, eax
add esi, ecx
sub dword [ebp - 0x30], 1
jne 0x536172
push edx
call fcn.006aefd4
mov edi, dword [ebp - 0x34]
push esi
mov dword [edi], eax
call fcn.006aefd4
mov edx, dword [ebp - 0x38]
mov esi, ebx
mov dword [edi + 4], eax
mov eax, dword [ebp - 0x14]
xor dword [edi], eax
mov eax, dword [ebp - 0x10]
xor dword [edi + 4], eax
mov eax, dword [ebp - 0x28]
pop ecx
pop ecx
mov ecx, dword [ebp - 0x40]
mov dword [ebp - 0x28], edi
mov dword [ebp - 0x14], edx
mov dword [ebp - 0x10], eax
add dword [ecx], 8
add edi, 8
mov ecx, dword [ebp - 0x44]
mov dword [ebp - 0x34], edi
cmp ecx, 2
jle 0x536117
test esi, esi
jle 0x5362ef
push 8
pop ecx
sub ecx, esi
mov dword [ebp - 0x2c], ecx
cmp dword [ebp + 0xc], ecx
jle 0x5362ef
cmp esi, 8
jge 0x53623c
lea eax, [ebp - 0xc]
add eax, esi
mov esi, dword [ebp - 0x3c]
push ecx
push esi
push eax
call fcn.00689000
mov eax, dword [ebp - 0x2c]
add esp, 0xc
sub dword [ebp + 0xc], eax
add esi, eax
mov eax, dword [ebp - 8]
mov edx, dword [ebp - 0xc]
mov dword [ebp - 0x3c], esi
mov ecx, dword [ebp - 0x28]
xor edx, dword [ecx]
xor eax, dword [ecx + 4]
push edx
mov dword [ebp - 0x38], edx
mov dword [ebp - 0x28], eax
call fcn.006aefd4
mov esi, dword [ebp - 0x28]
push esi
mov dword [ebp - 0x2c], eax
call fcn.006aefd4
mov edx, dword [ebp - 0x2c]
mov edi, eax
pop ecx
pop ecx
mov esi, ebx
mov dword [ebp - 0x30], 0x10
mov ecx, edi
lea esi, [esi - 0x61c88647]
shl ecx, 4
mov eax, edi
add ecx, dword [ebp - 0x24]
shr eax, 5
add eax, dword [ebp - 0x20]
xor ecx, eax
lea eax, [esi + edi]
xor ecx, eax
add edx, ecx
mov ecx, edx
mov eax, edx
shr ecx, 5
add ecx, dword [ebp - 0x18]
shl eax, 4
add eax, dword [ebp - 0x1c]
xor ecx, eax
lea eax, [esi + edx]
xor ecx, eax
add edi, ecx
sub dword [ebp - 0x30], 1
jne 0x53626c
push edx
mov dword [ebp - 0x2c], edi
call fcn.006aefd4
mov edi, dword [ebp - 0x34]
push dword [ebp - 0x2c]
mov dword [edi], eax
call fcn.006aefd4
mov esi, dword [ebp - 0x28]
mov dword [edi + 4], eax
mov eax, dword [ebp - 0x14]
xor dword [edi], eax
mov eax, dword [ebp - 0x10]
xor dword [edi + 4], eax
mov eax, dword [ebp - 0x38]
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x40]
pop ecx
pop ecx
mov ecx, edi
mov dword [ebp - 0x10], esi
add dword [eax], 8
add edi, 8
mov dword [ebp - 0x28], ecx
mov dword [ebp - 0x34], edi
jmp 0x5362f2
mov ecx, dword [ebp - 0x28]
mov esi, dword [ebp + 0xc]
mov eax, esi
cdq
and edx, 7
add eax, edx
sar eax, 3
mov dword [ebp - 8], eax
test eax, eax
jle 0x5363cc
mov dword [ebp - 0x38], eax
mov edx, dword [ebp - 0x3c]
mov eax, dword [edx]
mov esi, dword [edx + 4]
add edx, 8
xor eax, dword [ecx]
xor esi, dword [ecx + 4]
push eax
mov dword [ebp - 0x3c], edx
mov dword [ebp - 0x44], eax
mov dword [ebp - 0x28], esi
call fcn.006aefd4
push esi
mov dword [ebp - 0x2c], eax
call fcn.006aefd4
mov edx, dword [ebp - 0x2c]
mov esi, eax
pop ecx
pop ecx
mov edi, ebx
mov dword [ebp - 0x30], 0x10
mov ecx, esi
lea edi, [edi - 0x61c88647]
shl ecx, 4
mov eax, esi
add ecx, dword [ebp - 0x24]
shr eax, 5
add eax, dword [ebp - 0x20]
xor ecx, eax
lea eax, [edi + esi]
xor ecx, eax
add edx, ecx
mov ecx, edx
mov eax, edx
shr ecx, 5
add ecx, dword [ebp - 0x18]
shl eax, 4
add eax, dword [ebp - 0x1c]
xor ecx, eax
lea eax, [edi + edx]
xor ecx, eax
add esi, ecx
sub dword [ebp - 0x30], 1
jne 0x536346
push edx
call fcn.006aefd4
mov edi, dword [ebp - 0x34]
push esi
mov dword [edi], eax
call fcn.006aefd4
mov dword [edi + 4], eax
mov eax, dword [ebp - 0x14]
xor dword [edi], eax
mov eax, dword [ebp - 0x10]
xor dword [edi + 4], eax
mov eax, dword [ebp - 0x44]
pop ecx
pop ecx
mov ecx, edi
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x28]
add edi, 8
sub dword [ebp - 0x38], 1
mov dword [ebp - 0x10], eax
mov dword [ebp - 0x34], edi
jne 0x53630e
mov esi, dword [ebp + 0xc]
mov eax, dword [ebp - 8]
mov dword [ebp - 0x28], ecx
mov ecx, dword [ebp - 0x40]
xorps xmm0, xmm0
shl eax, 3
movlpd qword [ebp - 0xc], xmm0
add dword [ecx], eax
and esi, reloc.WS2_32.dll_getsockopt
jns 0x5363e9
dec esi
or esi, 0xfffffff8
inc esi
test esi, esi
jle 0x5363fd
push esi
push dword [ebp - 0x3c]
lea eax, [ebp - 0xc]
push eax
call fcn.00689000
add esp, 0xc
mov ecx, dword [ebp - 0x28]
mov eax, dword [ebp - 0xc]
mov esi, dword [ebp - 8]
xor eax, dword [ecx]
xor esi, dword [ecx + 4]
push eax
call fcn.006aefd4
push esi
mov dword [ebp - 8], eax
call fcn.006aefd4
mov edx, dword [ebp - 8]
mov esi, eax
pop ecx
pop ecx
push 0x10
pop edi
mov ecx, esi
lea ebx, [ebx - 0x61c88647]
shl ecx, 4
mov eax, esi
add ecx, dword [ebp - 0x24]
shr eax, 5
add eax, dword [ebp - 0x20]
xor ecx, eax
lea eax, [ebx + esi]
xor ecx, eax
add edx, ecx
mov ecx, edx
mov eax, edx
shr ecx, 5
add ecx, dword [ebp - 0x18]
shl eax, 4
add eax, dword [ebp - 0x1c]
xor ecx, eax
lea eax, [ebx + edx]
xor ecx, eax
add esi, ecx
sub edi, 1
jne 0x536424
push edx
call fcn.006aefd4
mov edi, dword [ebp - 0x34]
push esi
mov dword [edi], eax
call fcn.006aefd4
mov dword [edi + 4], eax
mov eax, dword [ebp - 0x14]
xor dword [edi], eax
mov eax, dword [ebp - 0x10]
xor dword [edi + 4], eax
mov eax, dword [ebp - 0x40]
pop ecx
pop ecx
mov ecx, dword [ebp - 4]
add dword [eax], 8
xor ecx, ebp
pop edi
pop esi
pop ebx
call fcn.00682c16
mov esp, ebp
pop ebp
ret
call fcn.00683380
int3