Function at 0x532390
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xb0
mov eax, dword [0x899944]
xor eax, ebp
mov dword [ebp - 4], eax
cmp dword [ecx + 0x40], 3
mov eax, dword [ebp + 0x10]
mov edx, dword [ebp + 0x14]
push ebx
mov ebx, dword [ebp + 8]
push esi
mov esi, dword [ebp + 0x1c]
push edi
mov edi, dword [ebp + 0xc]
mov dword [ebp - 0x9c], eax
mov dword [ebp - 0xa0], edx
mov dword [ebp - 0xa8], esi
jne 0x5323f8
mov esi, dword [ebp + 0x20]
push esi
mov esi, dword [ebp - 0xa8]
push esi
mov esi, dword [ebp + 0x18]
push esi
push edx
push eax
push edi
push ebx
call fcn.00532190
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0070bb4c
mov esp, ebp
pop ebp
ret 0x1c
push eax
call fcn.00408eb0
mov ecx, eax
mov eax, dword [ebp + 0x18]
add eax, ecx
mov dword [ebp - 0xb0], eax
add eax, 0x14
add esp, 4
mov dword [ebp - 0xa4], ecx
cmp eax, 0x80
ja 0x53262b
lea eax, [edi + 1]
cdq
sub eax, edx
mov esi, eax
push ecx
mov ecx, dword [ebp - 0x9c]
sar esi, 1
sub edi, esi
push ecx
lea edx, [ebp - 0x84]
add edi, ebx
push edx
mov dword [ebp - 0xac], edi
call fcn.0070d6a0
mov eax, dword [ebp + 0x18]
mov ecx, dword [ebp - 0xa0]
mov edx, dword [ebp - 0xa4]
push eax
push ecx
lea eax, [ebp + edx - 0x84]
push eax
call fcn.0070d6a0
mov edx, dword [ebp - 0xb0]
lea ecx, [ebp - 0x94]
push ecx
push edx
lea eax, [ebp - 0x84]
push eax
push esi
push ebx
call fcn.004e9ae0
mov edi, dword [ebp + 0x20]
add esp, 0x2c
test edi, edi
jle 0x532537
mov ecx, dword [ebp - 0xa8]
mov eax, 0x10
sub eax, ecx
mov dword [ebp - 0xa4], eax
lea eax, [edi - 1]
shr eax, 4
inc eax
mov dword [ebp - 0xa0], ecx
mov dword [ebp - 0x9c], eax
jmp 0x5324c0
mov eax, dword [ebp - 0xb0]
lea ecx, [ebp - 0x18]
push ecx
add eax, 0x10
push eax
lea edx, [ebp - 0x94]
push edx
push esi
push ebx
call fcn.004e9ae0
lea eax, [ebp - 0x94]
push eax
push 0x10
mov ecx, eax
push ecx
push esi
push ebx
call fcn.004e9ae0
mov edx, dword [ebp - 0xa4]
mov ecx, dword [ebp - 0xa0]
add edx, ecx
add esp, 0x28
cmp edx, edi
jle 0x5325fa
mov eax, edi
and eax, reloc.WS2_32.dll_ntohs
jns 0x532516
dec eax
or eax, 0xfffffff0
inc eax
test eax, eax
jle 0x532528
push eax
lea eax, [ebp - 0x18]
push eax
push ecx
call fcn.0070d6a0
add esp, 0xc
add dword [ebp - 0xa0], 0x10
dec dword [ebp - 0x9c]
jne 0x5324c0
mov ebx, dword [ebp - 0xb0]
mov eax, dword [ebp - 0xac]
lea ecx, [ebp - 0x98]
push ecx
push ebx
lea edx, [ebp - 0x84]
push edx
push esi
push eax
call fcn.004e9b10
add esp, 0x14
test edi, edi
jle 0x53262b
add ebx, 0x14
mov dword [ebp - 0xa4], ebx
mov ebx, dword [ebp - 0xa8]
mov eax, 0x14
sub eax, ebx
mov dword [ebp - 0xa8], eax
lea ecx, [edi - 1]
mov eax, 0xcccccccd
mul ecx
shr edx, 4
inc edx
mov dword [ebp - 0x9c], edx
mov eax, dword [ebp - 0xa4]
lea edx, [ebp - 0x18]
push edx
mov edx, dword [ebp - 0xac]
push eax
lea ecx, [ebp - 0x98]
push ecx
push esi
push edx
call fcn.004e9b10
mov edx, dword [ebp - 0xac]
lea eax, [ebp - 0x98]
push eax
push 0x14
mov ecx, eax
push ecx
push esi
push edx
call fcn.004e9b10
mov eax, dword [ebp - 0xa8]
add eax, ebx
add esp, 0x28
cmp eax, edi
jle 0x532604
mov eax, 0x66666667
imul edi
sar edx, 3
mov eax, edx
shr eax, 0x1f
add eax, edx
lea ecx, [eax + eax*4]
add ecx, ecx
lea edx, [ecx + ecx]
mov ecx, edi
sub ecx, edx
jmp 0x532609
mov eax, 0x10
jmp 0x53251a
mov ecx, 0x14
xor eax, eax
test ecx, ecx
jle 0x53261c
nop
mov dl, byte [ebp + eax - 0x18]
xor byte [ebx + eax], dl
inc eax
cmp eax, ecx
jl 0x532610
add ebx, 0x14
dec dword [ebp - 0x9c]
jne 0x532594
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0070bb4c
mov esp, ebp
pop ebp
ret 0x1c