Function at 0x4568d8
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffd0
push ebx
push esi
xor ebx, ebx
mov dword [ebp - 0x30], ebx
mov dword [ebp - 0x10], ebx
mov dword [ebp - 0xc], ecx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.00405af4
mov eax, dword [ebp - 8]
call fcn.00405af4
mov eax, dword [ebp - 0xc]
call fcn.00405af4
xor eax, eax
push ebp
push 0x456b3d
push dword fs:[eax]
mov dword fs:[eax], esp
push 0
mov eax, dword [ebp + 8]
mov ecx, 1
mov edx, dword [0x4076c8]
call fcn.00405a84
add esp, 4
mov eax, dword [ebp - 0xc]
call fcn.004058c8
push eax
lea eax, [ebp - 0x10]
mov ecx, 1
mov edx, dword [0x4076c8]
call fcn.00405a84
add esp, 4
mov eax, dword [ebp - 0xc]
call fcn.004058c8
dec eax
test eax, eax
jl 0x456974
inc eax
mov dword [ebp - 0x1c], eax
xor eax, eax
mov edx, dword [ebp - 0xc]
movzx edx, byte [edx + eax]
mov ecx, dword [ebp - 0x10]
mov byte [ecx + eax], dl
inc eax
dec dword [ebp - 0x1c]
jne 0x456961
mov eax, dword [ebp - 0x10]
call fcn.004058c8
and eax, 0x80000007
jns 0x456988
dec eax
or eax, 0xfffffff8
inc eax
test eax, eax
je 0x4569ad
lea ecx, [ebp - 0x30]
mov edx, 8
mov eax, dword [ebp - 0x10]
call fcn.0045676c
mov edx, dword [ebp - 0x30]
lea eax, [ebp - 0x10]
mov ecx, dword [0x4076c8]
call fcn.00405acc
mov eax, dword [ebp - 0x10]
call fcn.004058c8
mov esi, eax
test esi, esi
jns 0x4569be
add esi, 7
sar esi, 3
mov eax, dword [ebp - 4]
call fcn.004058c8
cmp eax, 0x10
jge 0x4569e6
push 0x10
lea eax, [ebp - 4]
mov ecx, 1
mov edx, dword [0x4076c8]
call fcn.00405a84
add esp, 4
mov eax, 8
lea edx, [ebp - 0x18]
mov byte [edx], 0
inc edx
dec eax
jne 0x4569ee
mov eax, dword [ebp - 8]
call fcn.004058c8
cmp eax, 8
jle 0x456a1a
push 8
lea eax, [ebp - 8]
mov ecx, 1
mov edx, dword [0x4076c8]
call fcn.00405a84
add esp, 4
mov eax, dword [ebp - 8]
call fcn.004058c8
dec eax
test eax, eax
jl 0x456a40
inc eax
mov dword [ebp - 0x1c], eax
xor eax, eax
lea edx, [ebp - 0x18]
mov ecx, dword [ebp - 8]
movzx ecx, byte [ecx + eax]
mov byte [edx], cl
inc eax
inc edx
dec dword [ebp - 0x1c]
jne 0x456a30
xor ebx, ebx
dec esi
test esi, esi
jl 0x456aaf
inc esi
mov dword [ebp - 0x1c], esi
xor eax, eax
lea edx, [ebp - 0x2c]
mov ecx, dword [ebp - 4]
movzx ecx, byte [ecx + eax]
mov byte [edx], cl
inc eax
inc edx
cmp eax, 0x10
jne 0x456a50
xor eax, eax
lea edx, [ebp - 0x18]
movzx ecx, bx
add ecx, eax
mov esi, dword [ebp - 0x10]
add esi, ecx
movzx ecx, byte [edx]
xor byte [esi], cl
inc eax
inc edx
cmp eax, 8
jne 0x456a65
movzx eax, bx
mov edx, dword [ebp - 0x10]
lea eax, [edx + eax]
lea edx, [ebp - 0x2c]
call fcn.0045651c
xor eax, eax
lea edx, [ebp - 0x18]
movzx ecx, bx
add ecx, eax
mov esi, dword [ebp - 0x10]
movzx ecx, byte [esi + ecx]
mov byte [edx], cl
inc eax
inc edx
cmp eax, 8
jne 0x456a91
add bx, 8
dec dword [ebp - 0x1c]
jne 0x456a4b
mov eax, dword [ebp - 0x10]
call fcn.004058c8
push eax
mov eax, dword [ebp + 8]
mov ecx, 1
mov edx, dword [0x4076c8]
call fcn.00405a84
add esp, 4
mov eax, dword [ebp - 0x10]
call fcn.004058c8
dec eax
test eax, eax
jl 0x456af6
inc eax
mov dword [ebp - 0x1c], eax
xor eax, eax
mov edx, dword [ebp - 0x10]
movzx edx, byte [edx + eax]
mov ecx, dword [ebp + 8]
mov ecx, dword [ecx]
mov byte [ecx + eax], dl
inc eax
dec dword [ebp - 0x1c]
jne 0x456ae1
push 0
lea eax, [ebp - 0x10]
mov ecx, 1
mov edx, dword [0x4076c8]
call fcn.00405a84
add esp, 4
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x456b44
lea eax, [ebp - 0x30]
mov edx, dword [0x4076c8]
call fcn.00405a90
lea eax, [ebp - 0x10]
mov edx, dword [0x4076c8]
mov ecx, 4
call fcn.00405568
ret