Function at 0x567840
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffd4
push ebx
mov dword [ebp - 0xc], ecx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x2c]
mov edx, dword [ebp - 4]
sub eax, dword [edx + 0x28]
cmp eax, dword [ebp - 8]
jge 0x567875
mov ecx, 0xf0
mov edx, 0x567a2c
mov eax, 0x567af8
call fcn.00406fb4
mov eax, dword [ebp - 0xc]
cmp eax, dword [ebp - 8]
je 0x56789a
mov eax, dword [ebp - 8]
dec eax
cmp eax, dword [ebp - 0xc]
je 0x56789a
mov ecx, 0xf2
mov edx, 0x567a2c
mov eax, 0x567b84
call fcn.00406fb4
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x28]
mov dword [ebp - 0x28], eax
mov eax, dword [ebp - 8]
cmp eax, dword [ebp - 0xc]
jle 0x5678ae
inc dword [ebp - 0x28]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x18]
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x1c]
mov dword [ebp - 0x20], eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x20]
mov dword [ebp - 0x24], eax
mov eax, dword [ebp - 0xc]
dec eax
test eax, eax
jl 0x567922
inc eax
mov dword [ebp - 0x2c], eax
mov dword [ebp - 0x10], 0
mov eax, dword [ebp - 0x24]
shl eax, 5
mov edx, dword [ebp - 0x28]
movzx edx, byte [edx + 2]
xor eax, edx
and eax, 0x3fff
mov dword [ebp - 0x24], eax
mov eax, dword [ebp - 0x20]
mov edx, dword [ebp - 0x24]
mov eax, dword [eax + edx*4]
mov edx, dword [ebp - 0x28]
mov ecx, dword [ebp - 4]
and edx, dword [ecx + 0x58]
mov ecx, dword [ebp - 0x1c]
mov dword [ecx + edx*4], eax
mov eax, dword [ebp - 0x20]
mov edx, dword [ebp - 0x24]
mov ecx, dword [ebp - 0x28]
mov dword [eax + edx*4], ecx
inc dword [ebp - 0x28]
inc dword [ebp - 0x10]
dec dword [ebp - 0x2c]
jne 0x5678dc
mov eax, dword [ebp - 0x1c]
mov edx, dword [ebp - 4]
mov dword [edx + 0x18], eax
mov eax, dword [ebp - 0x20]
mov edx, dword [ebp - 4]
mov dword [edx + 0x1c], eax
mov eax, dword [ebp - 0x24]
mov edx, dword [ebp - 4]
mov dword [edx + 0x20], eax
mov eax, dword [ebp - 0x28]
mov edx, dword [ebp - 4]
mov dword [edx + 0x28], eax
mov eax, dword [ebp - 4]
cmp byte [eax + 4], 0
je 0x567982
mov eax, dword [ebp - 8]
mov edx, dword [ebp - 4]
add dword [edx + 0x44], eax
mov eax, dword [ebp - 8]
mov edx, dword [ebp - 4]
add dword [edx + 0x48], eax
mov eax, dword [ebp - 4]
cmp byte [eax + 0x34], 0
je 0x5679be
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x44]
mov edx, dword [ebp - 4]
cmp eax, dword [edx + 0x40]
jb 0x5679be
mov eax, dword [ebp - 4]
call fcn.00568074
jmp 0x5679be
mov eax, dword [ebp - 0x28]
mov edx, dword [ebp - 4]
sub eax, dword [edx + 0x44]
mov edx, dword [ebp - 4]
cmp eax, dword [edx + 0x5c]
jl 0x5679be
mov eax, dword [ebp - 4]
mov byte [eax + 4], 1
mov eax, dword [ebp - 0x28]
mov edx, dword [ebp - 4]
sub eax, dword [edx + 0x5c]
mov edx, dword [ebp - 4]
sub eax, dword [edx + 0x44]
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x14]
mov edx, dword [ebp - 4]
add dword [edx + 0x44], eax
mov eax, dword [ebp - 0x14]
mov edx, dword [ebp - 4]
add dword [edx + 0x48], eax
mov eax, dword [ebp - 4]
cmp word [eax + 0x3a], 0
je 0x567a05
mov eax, dword [ebp - 8]
mov edx, dword [ebp - 4]
add dword [edx + 0x10], eax
mov eax, dword [ebp - 4]
test dword [eax + 0x10], 0xfff
jne 0x567a05
mov eax, dword [ebp - 4]
fild dword [eax + 0x10]
fmul dword [0x567bf8]
mov eax, dword [ebp - 4]
fild dword [eax + 0x50]
fdivp st(1)
call fcn.00404e60
mov dword [ebp - 0x18], eax
mov ebx, dword [ebp - 4]
mov edx, dword [ebp - 0x18]
mov eax, dword [ebx + 0x3c]
call dword [ebx + 0x38]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x44]
mov edx, dword [ebp - 4]
cmp eax, dword [edx + 0x40]
jb 0x567a1b
mov eax, dword [ebp - 4]
call fcn.00568074
pop ebx
mov esp, ebp
pop ebp
ret