Function at 0x435064
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2c
mov eax, dword [ebp + 8]
mov eax, dword [eax + 0x24]
test eax, eax
jne 0x43507d
mov dword [ebp - 0x2c], 0
jmp 0x4350b5
mov eax, dword [ebp + 8]
mov eax, dword [eax + 0x24]
cmp eax, 1
jne 0x435091
mov dword [ebp - 0x2c], 1
jmp 0x4350b5
mov eax, dword [ebp + 8]
mov eax, dword [eax + 0x24]
cmp eax, 2
jne 0x4350a5
mov dword [ebp - 0x2c], 9
jmp 0x4350b5
mov eax, dword [ebp + 0x18]
mov dword [eax], 0
mov eax, 0xb
leave
ret
mov eax, dword [ebp - 0x2c]
add eax, 7
mov dword [ebp - 0x28], eax
mov eax, dword [ebp + 8]
mov edx, dword [ebp + 0x24]
add edx, dword [eax + 0x20]
mov dword [ebp - 0x24], edx
mov eax, dword [ebp - 0x24]
mov edx, dword [ebp - 0x2c]
cmp eax, edx
jb 0x4350ec
mov eax, dword [ebp - 0x2c]
neg eax
add eax, dword [ebp - 0x24]
shr eax, 3
add eax, eax
add eax, eax
add eax, eax
mov edx, dword [ebp + 0x18]
mov dword [edx], eax
jmp 0x4350f5
mov eax, dword [ebp + 0x18]
mov dword [eax], 0
mov eax, dword [ebp + 0x18]
mov eax, dword [eax]
mov edx, dword [ebp + 0x1c]
cmp eax, edx
jbe 0x435111
mov eax, dword [ebp + 0x18]
mov dword [eax], 0
mov eax, 0xa
leave
ret
mov eax, dword [ebp + 0x24]
test eax, eax
jne 0x43511c
xor eax, eax
leave
ret
mov eax, dword [ebp + 8]
mov eax, dword [eax + 0x20]
test eax, eax
jbe 0x43525f
mov eax, dword [ebp + 8]
mov edx, dword [ebp + 0x24]
add edx, dword [eax + 0x20]
mov eax, dword [ebp - 0x28]
cmp edx, eax
jbe 0x43525f
mov eax, dword [ebp + 8]
mov eax, dword [eax + 0x20]
cmp eax, 8
jae 0x4351be
mov eax, dword [ebp + 8]
mov eax, dword [eax + 0x20]
neg eax
add eax, 8
mov dword [ebp - 0x20], eax
mov eax, dword [ebp + 8]
mov edx, dword [ebp + 8]
mov eax, dword [eax + 0x20]
lea eax, [edx + eax + 0x10]
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp + 0x20]
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 0x20]
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x14]
dec eax
mov dword [ebp - 0x14], eax
test eax, eax
jl 0x4351a0
mov eax, dword [ebp - 0x18]
mov edx, eax
inc edx
mov dword [ebp - 0x18], edx
movzx eax, byte [eax]
mov edx, dword [ebp - 0x1c]
mov ecx, edx
inc ecx
mov dword [ebp - 0x1c], ecx
mov byte [edx], al
mov eax, dword [ebp - 0x14]
dec eax
mov dword [ebp - 0x14], eax
test eax, eax
jge 0x43517e
mov eax, dword [ebp - 0x20]
add eax, dword [ebp + 0x20]
mov dword [ebp + 0x20], eax
mov eax, dword [ebp - 0x20]
neg eax
add eax, dword [ebp + 0x24]
mov dword [ebp + 0x24], eax
mov eax, dword [ebp + 8]
mov dword [eax + 0x20], 8
mov eax, dword [ebp + 0x10]
add esp, 0xfffffff4
mov edx, dword [ebp + 0xc]
mov dword [esp], edx
lea edx, [ebp - 0x10]
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 eax, dword [eax + 8]
xor eax, dword [ebp - 0x10]
mov dword [ebp - 0x10], eax
mov eax, dword [ebp + 8]
mov eax, dword [eax + 0xc]
xor eax, dword [ebp - 0xc]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp + 0x14]
mov edx, dword [ebp - 0x10]
mov dword [eax], edx
mov eax, dword [ebp + 0x14]
mov edx, dword [ebp - 0xc]
mov dword [eax + 4], edx
mov eax, dword [ebp + 8]
mov edx, dword [ebp + 8]
mov eax, dword [eax + 0x10]
mov dword [edx + 8], eax
mov eax, dword [ebp + 8]
mov edx, dword [ebp + 8]
mov eax, dword [eax + 0x14]
mov dword [edx + 0xc], eax
mov eax, dword [ebp + 0x14]
add eax, 8
mov dword [ebp + 0x14], eax
mov eax, dword [ebp + 8]
mov eax, dword [eax + 0x20]
add eax, 0xfffffff8
mov edx, dword [ebp + 8]
mov dword [edx + 0x20], eax
mov eax, dword [ebp + 8]
mov edx, dword [ebp + 8]
mov eax, dword [eax + 0x18]
mov dword [edx + 0x10], eax
mov eax, dword [ebp + 8]
mov edx, dword [ebp + 8]
mov eax, dword [eax + 0x20]
mov dword [edx + 0x14], eax
mov eax, dword [ebp + 8]
mov eax, dword [eax + 0x20]
test eax, eax
ja 0x43512a
mov eax, dword [ebp + 0x24]
mov edx, dword [ebp - 0x28]
cmp eax, edx
jbe 0x435301
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 + 0x10]
add esp, 0xfffffff4
mov edx, dword [ebp + 0xc]
mov dword [esp], edx
lea edx, [ebp - 0x10]
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 eax, dword [eax + 8]
xor eax, dword [ebp - 0x10]
mov dword [ebp - 0x10], eax
mov eax, dword [ebp + 8]
mov eax, dword [eax + 0xc]
xor eax, dword [ebp - 0xc]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp + 0x14]
mov edx, dword [ebp - 0x10]
mov dword [eax], edx
mov eax, dword [ebp + 0x14]
mov edx, dword [ebp - 0xc]
mov dword [eax + 4], edx
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]
add eax, 8
mov dword [ebp + 0x14], eax
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 + 0x24]
mov edx, dword [ebp - 0x28]
cmp eax, edx
ja 0x43526d
mov eax, dword [ebp + 8]
mov edx, dword [ebp + 8]
mov eax, dword [eax + 0x20]
lea eax, [edx + eax + 0x10]
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp + 0x20]
mov dword [ebp - 0x18], eax
mov eax, dword [ebp + 0x24]
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x14]
dec eax
mov dword [ebp - 0x14], eax
test eax, eax
jl 0x43534a
mov eax, dword [ebp - 0x18]
mov edx, eax
inc edx
mov dword [ebp - 0x18], edx
movzx eax, byte [eax]
mov edx, dword [ebp - 0x1c]
mov ecx, edx
inc ecx
mov dword [ebp - 0x1c], ecx
mov byte [edx], al
mov eax, dword [ebp - 0x14]
dec eax
mov dword [ebp - 0x14], eax
test eax, eax
jge 0x435328
mov eax, dword [ebp + 8]
mov edx, dword [ebp + 0x24]
add edx, dword [eax + 0x20]
mov eax, dword [ebp + 8]
mov dword [eax + 0x20], edx
xor eax, eax
leave
ret