Function at 0x535880
Capabilities:
Encode data using xor

Disassembly:
mov eax, 0x14
call fcn.00420e60
mov ecx, dword [esp + 0x24]
xor edx, edx
push esi
mov esi, dword [esp + 0x1c]
mov eax, dword [esi + 0x170]
mov dword [esp + 8], eax
mov eax, dword [esi + 0x174]
mov dword [esp + 4], eax
mov eax, ecx
add eax, dword [esi + 0x38]
adc edx, dword [esi + 0x3c]
cmp edx, 0xf
ja 0x535b44
jb 0x5358c5
cmp eax, 0xffffffe0
ja 0x535b44
cmp dword [esi + 0x16c], 0
mov dword [esi + 0x38], eax
mov dword [esi + 0x3c], edx
je 0x5358f2
lea eax, [esi + 0x60]
push eax
lea eax, [esi + 0x40]
push eax
call fcn.00536ad0
mov ecx, dword [esp + 0x30]
add esp, 8
mov dword [esi + 0x16c], 0
movzx eax, byte [esi + 0xd]
mov edx, dword [esi + 0x168]
push ebx
movzx ebx, byte [esi + 0xc]
shl ebx, 8
or ebx, eax
mov dword [esp + 0x10], edx
movzx eax, byte [esi + 0xe]
shl ebx, 8
or ebx, eax
movzx eax, byte [esi + 0xf]
shl ebx, 8
push ebp
mov ebp, dword [esp + 0x2c]
or ebx, eax
push edi
mov edi, dword [esp + 0x2c]
test edx, edx
je 0x535972
nop word [eax + eax]
test ecx, ecx
je 0x53595a
mov cl, byte [edi]
inc edi
mov al, byte [edx + esi + 0x10]
xor al, cl
mov byte [ebp], al
inc ebp
xor byte [edx + esi + 0x40], cl
inc edx
mov ecx, dword [esp + 0x34]
dec ecx
and edx, 0xf
mov dword [esp + 0x34], ecx
mov dword [esp + 0x18], edx
jne 0x535930
jmp 0x535962
test edx, edx
jne 0x535b34
lea eax, [esi + 0x60]
push eax
lea eax, [esi + 0x40]
push eax
call fcn.00536ad0
add esp, 8
mov ecx, dword [esp + 0x34]
cmp ecx, 0xc00
jb 0x535a25
mov eax, 0xaaaaaaab
mul ecx
shr edx, 0xb
mov dword [esp + 0x20], edx
push 0xc00
push edi
lea eax, [esi + 0x60]
push eax
lea eax, [esi + 0x40]
push eax
call fcn.00536890
add esp, 0x10
mov dword [esp + 0x1c], 0xc0
nop
push dword [esp + 0x10]
lea eax, [esi + 0x10]
push eax
push esi
call dword [esp + 0x20]
inc ebx
add esp, 0xc
mov eax, ebx
mov byte [esi + 0xf], bl
shr eax, 0x18
mov byte [esi + 0xc], al
mov eax, ebx
shr eax, 0x10
mov byte [esi + 0xd], al
mov eax, ebx
shr eax, 8
mov byte [esi + 0xe], al
mov eax, dword [edi]
xor eax, dword [esi + 0x10]
mov dword [ebp], eax
mov eax, dword [edi + 4]
xor eax, dword [esi + 0x14]
mov dword [ebp + 4], eax
mov eax, dword [edi + 8]
xor eax, dword [esi + 0x18]
mov dword [ebp + 8], eax
mov eax, dword [edi + 0xc]
add edi, 0x10
xor eax, dword [esi + 0x1c]
mov dword [ebp + 0xc], eax
add ebp, 0x10
sub dword [esp + 0x1c], 1
jne 0x5359b0
mov ecx, dword [esp + 0x34]
sub ecx, 0xc00
sub dword [esp + 0x20], 1
mov dword [esp + 0x34], ecx
jne 0x535990
mov eax, ecx
and eax, 0xfffffff0
je 0x535abc
push eax
push edi
lea eax, [esi + 0x60]
push eax
lea eax, [esi + 0x40]
push eax
call fcn.00536890
mov ecx, dword [esp + 0x44]
add esp, 0x10
cmp ecx, 0x10
jb 0x535abc
shr ecx, 4
lea eax, [esi + 0x10]
mov dword [esp + 0x20], ecx
push dword [esp + 0x10]
push eax
push esi
call dword [esp + 0x20]
inc ebx
mov ecx, dword [esp + 0x40]
mov eax, ebx
mov byte [esi + 0xf], bl
shr eax, 0x18
sub ecx, 0x10
mov byte [esi + 0xc], al
add esp, 0xc
mov eax, ebx
mov dword [esp + 0x34], ecx
shr eax, 0x10
mov byte [esi + 0xd], al
mov eax, ebx
shr eax, 8
mov byte [esi + 0xe], al
mov eax, dword [edi]
xor eax, dword [esi + 0x10]
mov dword [ebp], eax
mov eax, dword [edi + 4]
xor eax, dword [esi + 0x14]
mov dword [ebp + 4], eax
mov eax, dword [edi + 8]
xor eax, dword [esi + 0x18]
mov dword [ebp + 8], eax
mov eax, dword [edi + 0xc]
add edi, 0x10
xor eax, dword [esi + 0x1c]
mov dword [ebp + 0xc], eax
add ebp, 0x10
sub dword [esp + 0x20], 1
lea eax, [esi + 0x10]
jne 0x535a55
test ecx, ecx
je 0x535b30
push dword [esp + 0x10]
lea eax, [esi + 0x10]
push eax
push esi
call dword [esp + 0x20]
mov edx, dword [esp + 0x24]
inc ebx
mov eax, ebx
mov byte [esi + 0xf], bl
shr eax, 0x18
add esp, 0xc
mov byte [esi + 0xc], al
mov eax, ebx
shr eax, 0x10
mov byte [esi + 0xd], al
mov eax, ebx
mov ebx, dword [esp + 0x34]
shr eax, 8
sub edi, ebp
mov byte [esi + 0xe], al
lea eax, [edx + ebp]
lea ebp, [esi + 0x40]
mov dword [esp + 0x20], eax
mov esi, eax
mov cl, byte [edi + esi]
lea eax, [edx + ebp]
xor byte [eax], cl
lea esi, [esi + 1]
mov al, byte [edx + ebp - 0x30]
inc edx
xor al, cl
mov byte [esi - 1], al
sub ebx, 1
jne 0x535b02
mov esi, dword [esp + 0x28]
xor eax, eax
pop edi
pop ebp
pop ebx
mov dword [esi + 0x168], edx
pop esi
add esp, 0x14
ret
mov edx, dword [esp + 0x18]
pop edi
pop ebp
pop ebx
mov dword [esi + 0x168], edx
xor eax, eax
pop esi
add esp, 0x14
ret
or eax, 0xffffffff
pop esi
add esp, 0x14
ret