Function at 0x563000
Capabilities:
Encode data using xor

Disassembly:
push ebx
mov ebx, esp
sub esp, 8
and esp, 0xfffffff8
add esp, 4
push ebp
mov ebp, dword [ebx + 4]
mov dword [esp + 4], ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x63e46d
mov eax, dword fs:[0]
push eax
push ebx
sub esp, 0x20
push esi
push edi
mov eax, dword [0x6a6040]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ecx, 0x6ae120
call fcn.00409430
mov eax, dword [0x6ae124]
lea ecx, [ebp - 0x14]
xor esi, esi
mov dword [ebp - 0x28], eax
mov dword [ebp - 0x14], esi
mov dword [ebp - 0x30], ecx
mov dword [ebp - 0x2c], eax
mov dword [ebp - 4], esi
mov eax, dword [0x6ae138]
test al, 1
jne 0x563248
mov edi, dword [ebx + 8]
mov dword [ebp - 0x18], esi
test al, 2
jne 0x5630ac
movzx eax, word [edi]
xor edx, edx
xor eax, dword [edi + 2]
div dword [0x6ae130]
mov eax, dword [0x6ae134]
mov ecx, dword [eax + edx*4]
lea edx, [eax + edx*4]
mov dword [ebp - 0x18], edx
test ecx, ecx
je 0x5630ac
mov edx, dword [edi]
cmp dword [ecx + 4], edx
jne 0x5630a6
mov ax, word [ecx + 8]
cmp ax, word [edi + 4]
je 0x5630de
mov ecx, dword [ecx]
test ecx, ecx
jne 0x563097
mov edx, dword [0x6ae12c]
mov eax, dword [0x6ae128]
cmp edx, eax
jb 0x5631f8
cmp eax, 2
mov dword [ebp - 0x24], 2
lea ecx, [eax + eax]
cmovb ecx, dword [ebp - 0x24]
cmp ecx, edx
jae 0x5630f0
mov edi, 3
jmp 0x56324d
mov eax, dword [ebx + 0xc]
xor edi, edi
mov eax, dword [eax]
mov dword [ecx + 0xa], eax
mov esi, dword [ebp - 0x14]
jmp 0x56324d
push dword [0x6ae138]
mov eax, dword [0x6ae120]
push 0x6ae120
push ecx
mov ecx, 0x6ae120
mov eax, dword [eax + 8]
call eax
mov esi, eax
mov dword [ebp - 0x18], esi
test esi, esi
je 0x563245
mov cl, byte [esi + 0x18]
not cl
test cl, 1
je 0x563245
mov ecx, dword [0x6ae134]
test ecx, ecx
je 0x5631c8
xor edx, edx
mov dword [ebp - 0x1c], edx
cmp dword [0x6ae130], edx
jbe 0x5631c8
xor eax, eax
xor esi, esi
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x24], esi
nop
mov edi, dword [eax + ecx]
test edi, edi
je 0x56319b
mov ecx, dword [ebp - 0x18]
nop word [eax + eax]
mov esi, dword [edi]
xor edx, edx
dec dword [0x6ae12c]
movzx eax, word [edi + 4]
xor eax, dword [edi + 6]
div dword [ecx + 0x10]
mov eax, dword [ecx + 0x14]
lea ecx, [eax + edx*4]
mov eax, dword [ecx]
mov dword [edi], eax
mov dword [ecx], edi
mov edi, esi
mov ecx, dword [ebp - 0x18]
inc dword [ecx + 0xc]
test esi, esi
jne 0x563160
mov ecx, dword [0x6ae134]
mov eax, dword [ebp - 0x20]
mov edx, dword [ebp - 0x1c]
mov esi, dword [ebp - 0x24]
mov dword [esi + ecx], 0
inc edx
add eax, 4
mov dword [ebp - 0x1c], edx
add esi, 4
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x24], esi
cmp edx, dword [0x6ae130]
jae 0x5631c2
mov ecx, dword [0x6ae134]
jmp 0x563150
mov esi, dword [ebp - 0x18]
mov edi, dword [ebx + 8]
mov eax, dword [0x6ae120]
mov ecx, 0x6ae120
push esi
call dword [eax + 4]
mov eax, dword [esi]
mov ecx, esi
push 1
call dword [eax + 0xc]
movzx eax, word [edi]
xor edx, edx
xor eax, dword [edi + 2]
div dword [0x6ae130]
mov eax, dword [0x6ae134]
lea eax, [eax + edx*4]
mov dword [ebp - 0x18], eax
push ecx
mov ecx, dword [0x6ae124]
push 0x6ae124
call fcn.005690d0
mov esi, eax
mov dword [ebp - 0x14], esi
test esi, esi
je 0x563248
mov eax, dword [edi]
mov edx, dword [ebp - 0x18]
mov dword [esi + 4], eax
mov ax, word [edi + 4]
mov word [esi + 8], ax
mov eax, dword [ebx + 0xc]
mov eax, dword [eax]
mov dword [esi + 0xa], eax
xor esi, esi
mov eax, dword [ebp - 0x14]
mov ecx, dword [edx]
mov dword [eax], ecx
mov eax, dword [ebp - 0x14]
mov dword [edx], eax
inc dword [0x6ae12c]
xor edi, edi
mov dword [ebp - 0x14], esi
jmp 0x56324d
mov esi, dword [ebp - 0x14]
mov edi, 2
test esi, esi
je 0x56325f
push ecx
mov ecx, dword [ebp - 0x28]
lea eax, [ebp - 0x2c]
push eax
push esi
call fcn.005628e0
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret 0xc