Function at 0x535a10
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x5c
mov eax, dword [0x7cdffc]
xor eax, esp
mov dword [esp + 0x58], eax
push ebx
push esi
push edi
xorps xmm0, xmm0
mov dword [esp + 0x38], edx
lea eax, [esp + 0xc]
movlpd qword [esp + 0x58], xmm0
mov ebx, ecx
movlpd qword [esp + 0x48], xmm0
push 0
push eax
mov edx, 0x1b
mov dword [esp + 0x18], ebx
mov dword [esp + 0x14], 0
call fcn.0052e4c0
add esp, 8
mov dword [esp + 0x44], eax
test eax, eax
jne 0x535b47
mov eax, dword [ebx + 0xf8]
mov edi, dword [esp + 0xc]
cdq
push edx
push eax
push 1
push edi
call fcn.004d7cf0
mov eax, dword [esp + 0x6c]
add esp, 0x10
mov dword [esp + 0x28], eax
mov eax, dword [esp + 0x58]
mov dword [esp + 0x24], eax
push edi
call fcn.004d6c20
add esp, 4
cmp eax, 0x64
jne 0x535b38
xor edx, edx
mov ecx, edi
call fcn.004d7100
mov ecx, eax
call fcn.004d0b30
mov ebx, eax
test edi, edi
je 0x535af6
mov ecx, dword [edi]
mov edx, dword [edi + 0x50]
test ecx, ecx
jne 0x535ac6
movzx eax, dl
jmp 0x535ae0
cmp byte [ecx + 0x41], 0
jne 0x535adb
cmp edx, 0xc0a
je 0x535adb
mov eax, dword [ecx + 0x38]
and eax, edx
jmp 0x535ae0
call fcn.004b4cf0
mov dword [edi + 0x50], eax
mov eax, dword [edi]
mov eax, dword [eax + 0xc]
test eax, eax
je 0x535af6
push eax
call dword [0x81ea5c]
add esp, 4
mov eax, dword [esp + 0x10]
xor esi, esi
cmp dword [eax + 0xf8], esi
jle 0x535b2d
mov edi, eax
lea eax, [esp + 0x44]
mov edx, ebx
push eax
push esi
mov ecx, edi
call fcn.00535810
xor dword [esp + 0x2c], eax
inc esi
xor dword [esp + 0x30], edx
add esp, 8
cmp esi, dword [edi + 0xf8]
jl 0x535b06
mov edi, dword [esp + 0xc]
cmp dword [esp + 0x44], 0
je 0x535a90
push edi
call fcn.004d6050
mov ebx, dword [esp + 0x14]
add esp, 4
jmp 0x535b57
mov eax, dword [esp + 0x5c]
mov dword [esp + 0x28], eax
mov eax, dword [esp + 0x58]
mov dword [esp + 0x24], eax
lea eax, [esp + 0xc]
mov edx, 0x1b
push 0
push eax
mov ecx, ebx
call fcn.0052e4c0
mov esi, eax
add esp, 8
test esi, esi
jne 0x535e26
mov eax, dword [ebx + 0x24]
push dword [ebx + 0xd8]
push str.SELECT__s
mov eax, dword [eax]
mov dword [esp + 0x3c], eax
mov dword [esp + 0x44], esi
call fcn.004b66e0
mov edi, eax
add esp, 8
test edi, edi
jne 0x535bb9
push dword [esp + 0x3c]
mov edi, dword [esp + 0x50]
lea esi, [eax + 7]
mov ebx, dword [esp + 0x4c]
call fcn.004d5f90
add esp, 4
jmp 0x535e2e
mov ecx, dword [ebx + 0xc]
lea eax, [esp + 0x3c]
push 0
push eax
push 0
push 1
push 0xffffffffffffffff
mov edx, edi
call fcn.005038c0
add esp, 0x14
mov esi, eax
push edi
call fcn.004b4670
mov edi, dword [esp + 0x50]
add esp, 4
mov ebx, dword [esp + 0x48]
test esi, esi
jne 0x535e18
mov dword [esp + 0x14], edi
mov dword [esp + 0x18], ebx
push dword [esp + 0x3c]
call fcn.004d6c20
add esp, 4
cmp eax, 0x64
jne 0x535e10
mov edi, dword [esp + 0x3c]
xor edx, edx
mov ecx, edi
call fcn.004d7100
mov ecx, eax
call fcn.004d0b30
mov dword [esp + 0x30], eax
mov dword [esp + 0x2c], edx
test edi, edi
je 0x535c69
mov ecx, dword [edi]
mov edx, dword [edi + 0x50]
test ecx, ecx
jne 0x535c39
movzx eax, dl
jmp 0x535c53
cmp byte [ecx + 0x41], 0
jne 0x535c4e
cmp edx, 0xc0a
je 0x535c4e
mov eax, dword [ecx + 0x38]
and eax, edx
jmp 0x535c53
call fcn.004b4cf0
mov dword [edi + 0x50], eax
mov eax, dword [edi]
mov eax, dword [eax + 0xc]
test eax, eax
je 0x535c69
push eax
call dword [0x81ea5c]
add esp, 4
mov edi, dword [esp + 0x10]
mov dword [esp + 0x1c], 0
cmp dword [edi + 0x2c], 0
je 0x535c90
mov eax, dword [edi + 0x18]
inc eax
push eax
push dword [esp + 0x40]
call fcn.004d7470
add esp, 8
mov dword [esp + 0x1c], eax
xor ebx, ebx
mov dword [esp + 0x20], ebx
cmp ebx, dword [edi + 0x18]
jge 0x535bf6
mov eax, dword [edi + 0x20]
cmp byte [ebx + eax], 0
jne 0x535e03
lea esi, [ebx + 1]
push esi
push dword [esp + 0x40]
call fcn.004d7550
push esi
push dword [esp + 0x48]
mov edi, eax
call fcn.004d7250
mov edx, dword [esp + 0x2c]
lea ecx, [esp + 0x1c]
push ecx
push eax
push edi
mov edi, dword [esp + 0x2c]
mov dword [esp + 0x28], 0
mov ecx, dword [edi + 0x24]
call fcn.0052add0
mov esi, eax
add esp, 0x1c
mov eax, dword [esp + 0xc]
test esi, esi
jne 0x535dea
jmp 0x535d04
mov ebx, dword [esp + 0x20]
lea ecx, [esp + 0x44]
mov dword [esp + 0x54], 0
push ecx
lea ecx, [esp + 0x5c]
mov dword [esp + 0x4c], 0
push ecx
lea ecx, [esp + 0x50]
mov dword [esp + 0x60], 0
push ecx
lea ecx, [esp + 0x60]
mov dword [esp + 0x50], 0
push ecx
lea ecx, [esp + 0x50]
push ecx
push eax
mov eax, dword [esp + 0x4c]
mov eax, dword [eax + 0x14]
call eax
mov esi, eax
add esp, 0x18
test esi, esi
jne 0x535de6
push dword [esp + 0x44]
mov edx, dword [esp + 0x58]
mov ecx, dword [esp + 0x44]
push ebx
push dword [esp + 0x34]
push dword [esp + 0x3c]
push eax
push dword [esp + 0x30]
call fcn.00535750
xor dword [esp + 0x30], eax
mov esi, 1
xor dword [esp + 0x2c], edx
add esp, 0x18
mov ebx, dword [edi + 0xf8]
mov eax, dword [esp + 0xc]
cmp ebx, esi
jle 0x535d00
mov edi, dword [edi + 0xfc]
add edi, 0x18
nop
mov edx, dword [edi]
cmp edx, dword [esp + 0x54]
jg 0x535dd1
push dword [esp + 0x44]
mov ecx, dword [esp + 0x44]
push dword [esp + 0x24]
push dword [esp + 0x34]
push dword [esp + 0x3c]
push esi
push dword [esp + 0x30]
call fcn.00535750
xor dword [esp + 0x30], eax
add esp, 0x18
xor dword [esp + 0x14], edx
inc esi
add edi, 0x18
cmp esi, ebx
jl 0x535da0
mov edi, dword [esp + 0x10]
mov eax, dword [esp + 0xc]
jmp 0x535d00
mov eax, dword [esp + 0xc]
test eax, eax
je 0x535dfb
push eax
mov eax, dword [esp + 0x38]
mov eax, dword [eax + 0x10]
call eax
add esp, 4
xor eax, eax
cmp esi, 0x65
cmove esi, eax
inc ebx
mov dword [esp + 0x20], ebx
test esi, esi
je 0x535c96
mov ebx, dword [esp + 0x18]
mov edi, dword [esp + 0x14]
push dword [esp + 0x3c]
call fcn.004d5f90
add esp, 4
jmp 0x535e2e
mov edi, dword [esp + 0x4c]
mov ebx, dword [esp + 0x48]
cmp dword [esp + 0x24], ebx
jne 0x535e58
cmp dword [esp + 0x28], edi
jne 0x535e58
mov eax, dword [esp + 0x38]
mov dword [eax], 1
mov eax, esi
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x58]
xor ecx, esp
call fcn.006a7b19
mov esp, ebp
pop ebp
ret
mov eax, dword [esp + 0x38]
mov ecx, dword [esp + 0x64]
pop edi
mov dword [eax], 0
mov eax, esi
pop esi
pop ebx
xor ecx, esp
call fcn.006a7b19
mov esp, ebp
pop ebp
ret