Function at 0x435490
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
mov eax, dword [ebp + 8]
mov edx, dword [ebp + 0x24]
add edx, dword [eax + 0x20]
mov dword [ebp - 0x1c], edx
mov eax, dword [ebp - 0x1c]
shr eax, 3
add eax, eax
add eax, eax
add eax, eax
mov edx, dword [ebp + 0x18]
mov dword [edx], eax
mov edx, dword [ebp + 0x1c]
cmp eax, edx
jbe 0x4354c1
mov eax, 0xa
leave
ret
mov eax, dword [ebp - 0x1c]
cmp eax, 8
jae 0x435523
mov eax, dword [ebp + 8]
mov edx, dword [ebp + 8]
mov eax, dword [eax + 0x20]
lea eax, [edx + eax + 0x10]
mov dword [ebp - 0x18], eax
mov eax, dword [ebp + 0x20]
mov dword [ebp - 0x14], eax
mov eax, dword [ebp + 0x24]
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 0x10]
mov edx, eax
dec edx
mov dword [ebp - 0x10], edx
test eax, eax
jle 0x435516
mov eax, dword [ebp - 0x14]
mov edx, eax
inc edx
mov dword [ebp - 0x14], edx
movzx eax, byte [eax]
mov edx, dword [ebp - 0x18]
mov ecx, edx
inc ecx
mov dword [ebp - 0x18], ecx
mov byte [edx], al
mov eax, dword [ebp - 0x10]
mov edx, eax
dec edx
mov dword [ebp - 0x10], edx
test eax, eax
jg 0x4354f2
mov eax, dword [ebp + 8]
mov edx, dword [ebp - 0x1c]
mov dword [eax + 0x20], edx
xor eax, eax
leave
ret
mov eax, dword [ebp + 8]
mov edx, dword [ebp + 8]
mov eax, dword [eax + 0x20]
lea eax, [edx + eax + 0x10]
mov dword [ebp - 0x18], eax
mov eax, dword [ebp + 0x20]
mov dword [ebp - 0x14], eax
mov eax, dword [ebp + 8]
mov eax, dword [eax + 0x20]
neg eax
add eax, 8
mov dword [ebp - 0xc], eax
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 0x10]
mov edx, eax
dec edx
mov dword [ebp - 0x10], edx
test eax, eax
jle 0x43557b
mov eax, dword [ebp - 0x14]
mov edx, eax
inc edx
mov dword [ebp - 0x14], edx
movzx eax, byte [eax]
mov edx, dword [ebp - 0x18]
mov ecx, edx
inc ecx
mov dword [ebp - 0x18], ecx
mov byte [edx], al
mov eax, dword [ebp - 0x10]
mov edx, eax
dec edx
mov dword [ebp - 0x10], edx
test eax, eax
jg 0x435557
mov eax, dword [ebp + 8]
mov edx, dword [ebp + 8]
mov edx, dword [edx + 8]
xor edx, dword [eax + 0x10]
mov eax, dword [ebp + 8]
mov dword [eax + 0x10], edx
mov eax, dword [ebp + 8]
mov edx, dword [ebp + 8]
mov edx, dword [edx + 0xc]
xor edx, dword [eax + 0x14]
mov eax, dword [ebp + 8]
mov dword [eax + 0x14], edx
mov eax, dword [ebp + 0x10]
add esp, 0xfffffff4
mov edx, dword [ebp + 0xc]
mov dword [esp], edx
lea edx, [ebp - 8]
mov dword [esp + 4], edx
mov edx, dword [ebp + 8]
add edx, 0x10
mov dword [esp + 8], edx
call eax
add esp, 0xc
mov eax, dword [ebp + 8]
mov edx, dword [ebp - 8]
mov dword [eax + 8], edx
mov eax, dword [ebp + 8]
mov edx, dword [ebp - 4]
mov dword [eax + 0xc], edx
mov eax, dword [ebp + 0x14]
mov edx, dword [ebp - 8]
mov dword [eax], edx
mov eax, dword [ebp + 0x14]
mov edx, dword [ebp - 4]
mov dword [eax + 4], edx
mov eax, dword [ebp + 8]
mov dword [eax + 0x20], 0
mov eax, dword [ebp - 0xc]
add eax, dword [ebp + 0x20]
mov dword [ebp + 0x20], eax
mov eax, dword [ebp - 0xc]
neg eax
add eax, dword [ebp + 0x24]
mov dword [ebp + 0x24], eax
mov eax, dword [ebp + 0x14]
add eax, 8
mov dword [ebp + 0x14], eax
mov eax, dword [ebp + 0x24]
cmp eax, 8
jb 0x4356a9
mov eax, dword [ebp + 0x20]
mov eax, dword [eax]
mov dword [ebp - 8], eax
mov eax, dword [ebp + 0x20]
mov eax, dword [eax + 4]
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
mov eax, dword [eax + 8]
xor eax, dword [ebp - 8]
mov dword [ebp - 8], eax
mov eax, dword [ebp + 8]
mov eax, dword [eax + 0xc]
xor eax, dword [ebp - 4]
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0x10]
add esp, 0xfffffff4
mov edx, dword [ebp + 0xc]
mov dword [esp], edx
lea edx, [ebp - 8]
mov dword [esp + 4], edx
lea edx, [ebp - 8]
mov dword [esp + 8], edx
call eax
add esp, 0xc
mov eax, dword [ebp + 8]
mov edx, dword [ebp - 8]
mov dword [eax + 8], edx
mov eax, dword [ebp + 8]
mov edx, dword [ebp - 4]
mov dword [eax + 0xc], edx
mov eax, dword [ebp + 0x14]
mov edx, dword [ebp - 8]
mov dword [eax], edx
mov eax, dword [ebp + 0x14]
mov edx, dword [ebp - 4]
mov dword [eax + 4], edx
mov eax, dword [ebp + 0x20]
add eax, 8
mov dword [ebp + 0x20], eax
mov eax, dword [ebp + 0x24]
add eax, 0xfffffff8
mov dword [ebp + 0x24], eax
mov eax, dword [ebp + 0x14]
add eax, 8
mov dword [ebp + 0x14], eax
mov eax, dword [ebp + 0x24]
cmp eax, 8
jae 0x435617
mov eax, dword [ebp + 8]
add eax, 0x10
mov dword [ebp - 0x18], eax
mov eax, dword [ebp + 0x20]
mov dword [ebp - 0x14], eax
mov eax, dword [ebp + 0x24]
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 0x10]
mov edx, eax
dec edx
mov dword [ebp - 0x10], edx
test eax, eax
jle 0x4356ef
mov eax, dword [ebp - 0x14]
mov edx, eax
inc edx
mov dword [ebp - 0x14], edx
movzx eax, byte [eax]
mov edx, dword [ebp - 0x18]
mov ecx, edx
inc ecx
mov dword [ebp - 0x18], ecx
mov byte [edx], al
mov eax, dword [ebp - 0x10]
mov edx, eax
dec edx
mov dword [ebp - 0x10], edx
test eax, eax
jg 0x4356cb
mov eax, dword [ebp + 8]
mov edx, dword [ebp + 0x24]
mov dword [eax + 0x20], edx
xor eax, eax
leave
ret