Function at 0x52f6d0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x174
mov eax, dword [0x5bc684]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, dword [ebp + 8]
mov ebx, ecx
mov eax, dword [ebx]
push edi
mov edi, dword [ebp + 0xc]
lea ecx, [eax + edi*8]
mov dword [ebp - 0x174], ebx
mov dword [ebp - 0x16c], esi
cmp ecx, eax
jae 0x52f706
inc dword [ebx + 4]
mov eax, edi
shr eax, 0x1d
add dword [ebx + 4], eax
movzx eax, word [ebx + 0x48]
mov dword [ebx], ecx
test ax, ax
je 0x52f75f
cwde
lea ecx, [eax + edi]
cmp ecx, 0x40
jb 0x52f75f
mov edx, 0x40
sub edx, eax
push edx
lea eax, [eax + ebx + 8]
push esi
push eax
call fcn.004fe210
add esp, 0xc
mov ecx, ebx
call fcn.0052f280
movsx eax, word [ebx + 0x48]
mov ecx, 0x40
sub ecx, eax
add esi, ecx
lea edi, [edi + eax - 0x40]
xor edx, edx
mov dword [ebp - 0x16c], esi
mov dword [ebp + 0xc], edi
mov word [ebx + 0x48], dx
cmp edi, 0x40
jb 0x52fa67
mov eax, dword [ebx + 0x4c]
mov ecx, dword [ebx + 0x50]
mov edx, dword [ebx + 0x54]
mov dword [ebp - 0x158], eax
mov eax, dword [ebx + 0x58]
mov dword [ebp - 0x168], ecx
mov ecx, dword [ebx + 0x5c]
shr edi, 6
mov dword [ebp - 0x160], edx
mov dword [ebp - 0x15c], eax
mov dword [ebp - 0x164], ecx
mov dword [ebp - 0x170], edi
mov edi, edi
mov ecx, 0x10
lea edi, [ebx + 8]
rep movsd dword es:[edi], dword [esi]
lea edx, [ebp - 0x144]
lea eax, [ebx + 0xa]
mov esi, 0x10
jmp 0x52f7c0
movzx ecx, byte [eax - 2]
movzx edi, byte [eax - 1]
movzx ebx, byte [eax]
shl edi, 0x10
shl ecx, 0x18
or ecx, edi
movzx edi, byte [eax + 1]
shl ebx, 8
or edi, ebx
or edi, ecx
mov dword [edx], edi
add eax, 4
add edx, 4
dec esi
jne 0x52f7c0
lea ecx, [ebp - 0x13c]
lea edx, [esi + 0x40]
mov eax, dword [ecx + 0x2c]
xor eax, dword [ecx + 0x18]
add ecx, 4
xor eax, dword [ecx - 0xc]
xor eax, dword [ecx - 4]
mov esi, eax
shr esi, 0x1f
add eax, eax
or esi, eax
dec edx
mov dword [ecx + 0x34], esi
jne 0x52f7f2
mov ecx, dword [ebp - 0x164]
mov edi, dword [ebp - 0x158]
mov eax, dword [ebp - 0x168]
mov edx, dword [ebp - 0x160]
mov esi, dword [ebp - 0x15c]
mov dword [ebp - 0x154], ecx
lea ecx, [ebp - 0x144]
mov dword [ebp - 0x14c], edi
mov dword [ebp - 0x150], ecx
mov dword [ebp - 0x148], 0x14
mov ecx, eax
not ecx
and ecx, esi
mov ebx, edx
and ebx, eax
or ecx, ebx
mov ebx, edi
shr ebx, 0x1b
shl edi, 5
or ebx, edi
mov edi, dword [ebp - 0x154]
add ecx, ebx
mov ebx, dword [ebp - 0x150]
add ecx, dword [ebx]
mov dword [ebp - 0x154], esi
mov esi, edx
mov edx, eax
shl eax, 0x1e
shr edx, 2
lea ecx, [ecx + edi + 0x5a827999]
or edx, eax
mov eax, dword [ebp - 0x14c]
add ebx, 4
dec dword [ebp - 0x148]
mov edi, ecx
mov dword [ebp - 0x14c], edi
mov dword [ebp - 0x150], ebx
jne 0x52f850
lea ebx, [ebp - 0xf4]
mov dword [ebp - 0x14c], ebx
mov dword [ebp - 0x148], 0x14
mov ebx, ecx
shl ecx, 5
shr ebx, 0x1b
or ebx, ecx
mov ecx, esi
xor ecx, edx
xor ecx, eax
add ebx, ecx
mov ecx, dword [ebp - 0x14c]
add ebx, dword [ecx]
mov ecx, dword [ebp - 0x154]
add dword [ebp - 0x14c], 4
mov dword [ebp - 0x154], esi
mov esi, edx
mov edx, eax
shl eax, 0x1e
shr edx, 2
or edx, eax
dec dword [ebp - 0x148]
lea ecx, [ebx + ecx + 0x6ed9eba1]
mov eax, edi
mov edi, ecx
jne 0x52f8c4
mov dword [ebp - 0x14c], edi
lea edi, [ebp - 0xa4]
mov dword [ebp - 0x150], edi
mov dword [ebp - 0x148], 0x14
lea esp, [esp]
mov edi, edx
or edi, eax
and edi, esi
mov ebx, edx
and ebx, eax
or edi, ebx
mov ebx, ecx
shl ecx, 5
shr ebx, 0x1b
or ebx, ecx
mov ecx, dword [ebp - 0x150]
add dword [ebp - 0x150], 4
add edi, ebx
add edi, dword [ecx]
mov ecx, dword [ebp - 0x154]
lea ecx, [edi + ecx - 0x70e44324]
mov edi, esi
mov esi, edx
mov edx, eax
shl eax, 0x1e
shr edx, 2
or edx, eax
dec dword [ebp - 0x148]
mov eax, dword [ebp - 0x14c]
mov dword [ebp - 0x154], edi
mov dword [ebp - 0x14c], ecx
jne 0x52f930
lea ebx, [ebp - 0x54]
mov dword [ebp - 0x150], ebx
mov dword [ebp - 0x148], 0x14
nop
mov ebx, ecx
shl ecx, 5
shr ebx, 0x1b
or ebx, ecx
mov ecx, esi
xor ecx, edx
xor ecx, eax
add ebx, ecx
mov ecx, dword [ebp - 0x150]
add ebx, dword [ecx]
add dword [ebp - 0x150], 4
lea ecx, [ebx + edi - 0x359d3e2a]
mov edi, esi
mov esi, edx
mov edx, eax
shl eax, 0x1e
shr edx, 2
or edx, eax
dec dword [ebp - 0x148]
mov eax, dword [ebp - 0x14c]
mov dword [ebp - 0x14c], ecx
jne 0x52f9a0
add dword [ebp - 0x158], ecx
mov ebx, dword [ebp - 0x174]
mov ecx, dword [ebp - 0x158]
mov dword [ebx + 0x4c], ecx
mov ecx, dword [ebp - 0x168]
add ecx, eax
mov eax, dword [ebp - 0x160]
add eax, edx
mov dword [ebp - 0x160], eax
mov dword [ebx + 0x54], eax
mov eax, dword [ebp - 0x15c]
add eax, esi
mov esi, dword [ebp - 0x16c]
mov dword [ebp - 0x15c], eax
mov dword [ebx + 0x58], eax
mov eax, dword [ebp - 0x164]
add eax, edi
mov edi, dword [ebp + 0xc]
add esi, 0x40
sub edi, 0x40
dec dword [ebp - 0x170]
mov dword [ebp - 0x168], ecx
mov dword [ebx + 0x50], ecx
mov dword [ebp - 0x164], eax
mov dword [ebx + 0x5c], eax
mov dword [ebp - 0x16c], esi
mov dword [ebp + 0xc], edi
jne 0x52f7a0
movsx edx, word [ebx + 0x48]
push edi
lea eax, [edx + ebx + 8]
push esi
push eax
call fcn.004fe210
add word [ebx + 0x48], di
mov ecx, dword [ebp - 4]
add esp, 0xc
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004fe1f5
mov esp, ebp
pop ebp
ret 8