Function at 0x568360
Capabilities:
Encode data using xor

Disassembly:
mov eax, 0x1c
call fcn.006149d0
push ebx
mov ebx, dword [esp + 0x30]
xor ecx, ecx
push esi
mov esi, dword [esp + 0x28]
mov eax, dword [esi + 0x178]
mov dword [esp + 0x20], eax
mov eax, ebx
add eax, dword [esi + 0x38]
adc ecx, dword [esi + 0x3c]
cmp ecx, 0xf
ja 0x56869f
jb 0x56839c
cmp eax, 0xffffffe0
ja 0x56869f
cmp dword [esi + 0x170], 0
lea edx, [esi + 0x40]
push ebp
mov dword [esi + 0x3c], ecx
mov ecx, dword [esi + 0x16c]
push edi
mov dword [esi + 0x38], eax
mov dword [esp + 0x3c], ecx
mov dword [esp + 0x1c], edx
je 0x568436
test ebx, ebx
jne 0x5683e2
lea eax, [esi + 0x60]
push eax
mov eax, dword [esi + 0x168]
push edx
call eax
add esp, 8
mov dword [esi + 0x170], ebx
xor eax, eax
pop edi
pop ebp
pop esi
pop ebx
add esp, 0x1c
ret
movups xmm0, xmmword [edx]
lea eax, [esi + 0x17c]
mov dword [esp + 0x18], 0
mov dword [esp + 0x24], eax
movups xmmword [eax], xmm0
mov dword [edx], 0
mov dword [edx + 4], 0
mov edx, 0x10
mov dword [esi + 0x48], 0
mov dword [esi + 0x4c], 0
mov eax, dword [esi + 0xc]
bswap eax
mov dword [esp + 0x3c], edx
mov dword [esi + 0x170], 0
mov dword [esp + 0x10], eax
jmp 0x5684f7
lea eax, [esi + 0x17c]
mov dword [esp + 0x1c], edx
mov dword [esp + 0x24], eax
mov edx, ecx
mov eax, dword [esi + 0xc]
and edx, 0xf
bswap eax
mov dword [esp + 0x10], eax
mov dword [esp + 0x18], edx
je 0x5684f5
mov edi, dword [esp + 0x38]
lea eax, [esi + 0x17c]
mov ebp, dword [esp + 0x34]
add eax, ecx
mov dword [esp + 0x24], eax
test ebx, ebx
je 0x5684e5
mov cl, byte [ebp]
dec ebx
mov byte [eax], cl
inc ebp
mov al, byte [edx + esi + 0x10]
inc edx
xor al, cl
mov ecx, dword [esp + 0x3c]
mov byte [edi], al
inc ecx
mov eax, dword [esp + 0x24]
inc edi
inc eax
mov dword [esp + 0x20], edi
and edx, 0xf
mov dword [esp + 0x3c], ecx
mov dword [esp + 0x24], eax
mov dword [esp + 0x18], edx
jne 0x568470
push ecx
lea ecx, [esi + 0x17c]
lea eax, [esi + 0x17c]
push ecx
mov dword [esp + 0x2c], eax
lea edx, [esi + 0x60]
lea eax, [esi + 0x40]
push edx
mov dword [esp + 0x28], eax
push eax
mov eax, dword [esi + 0x164]
call eax
mov ecx, dword [esp + 0x28]
add esp, 0x10
mov eax, dword [esp + 0x10]
xor edx, edx
mov dword [esp + 0x3c], edx
mov dword [esp + 0x18], ecx
mov dword [esp + 0x10], eax
jmp 0x568503
pop edi
pop ebp
mov dword [esi + 0x16c], ecx
xor eax, eax
pop esi
pop ebx
add esp, 0x1c
ret
mov edx, ecx
mov edi, dword [esp + 0x38]
mov ebp, dword [esp + 0x34]
mov dword [esp + 0x20], edi
lea eax, [esi + 0x60]
mov ecx, eax
mov eax, dword [esp + 0x1c]
mov dword [esp + 0x14], eax
cmp ebx, 0x10
jb 0x568548
mov dword [esp + 0x14], eax
lea ecx, [esi + 0x60]
test edx, edx
je 0x568548
push edx
push dword [esp + 0x28]
lea ecx, [esi + 0x60]
push ecx
push eax
mov eax, dword [esi + 0x164]
call eax
mov eax, dword [esp + 0x2c]
lea ecx, [esi + 0x60]
add esp, 0x10
mov dword [esp + 0x3c], 0
mov dword [esp + 0x14], eax
cmp ebx, 0xc00
jb 0x5685ca
mov dword [esp + 0x14], eax
lea ecx, [esi + 0x60]
mov eax, 0xaaaaaaab
mov dword [esp + 0x1c], ecx
mul ebx
shr edx, 0xb
mov dword [esp + 0x24], edx
nop dword [eax]
mov eax, dword [esi + 0x164]
push 0xc00
push ebp
push ecx
push dword [esp + 0x20]
call eax
push esi
push dword [esp + 0x3c]
push 0xc0
push edi
push ebp
call dword [esp + 0x64]
mov ecx, dword [esp + 0x34]
add esp, 0x24
add ecx, 0xc0
add edi, 0xc00
mov dword [esp + 0x10], ecx
add ebp, 0xc00
bswap ecx
sub ebx, 0xc00
mov dword [esi + 0xc], ecx
sub dword [esp + 0x24], 1
mov ecx, dword [esp + 0x1c]
jne 0x568570
mov dword [esp + 0x20], edi
mov eax, ebx
and eax, 0xfffffff0
mov dword [esp + 0x24], eax
je 0x568618
push eax
push ebp
push ecx
push dword [esp + 0x20]
mov edi, eax
mov eax, dword [esi + 0x164]
shr edi, 4
call eax
push esi
push dword [esp + 0x3c]
push edi
push dword [esp + 0x3c]
push ebp
call dword [esp + 0x64]
mov eax, dword [esp + 0x34]
add esp, 0x24
add eax, edi
mov edi, dword [esp + 0x20]
mov dword [esp + 0x10], eax
bswap eax
mov dword [esi + 0xc], eax
mov eax, dword [esp + 0x24]
add edi, eax
add ebp, eax
sub ebx, eax
test ebx, ebx
je 0x56868b
push dword [esp + 0x28]
lea eax, [esi + 0x10]
push eax
mov eax, dword [esi + 0x174]
push esi
call eax
mov eax, dword [esp + 0x1c]
add esp, 0xc
mov ecx, dword [esp + 0x3c]
inc eax
bswap eax
mov dword [esi + 0xc], eax
sub ebp, edi
mov eax, dword [esp + 0x18]
lea edx, [eax + edi]
add eax, 0x10
add eax, esi
mov dword [esp + 0x24], eax
lea eax, [esi + 0x17c]
mov esi, dword [esp + 0x24]
add eax, ecx
add ecx, ebx
mov dword [esp + 0x28], eax
mov dword [esp + 0x3c], ecx
mov cl, byte [edx + ebp]
lea esi, [esi + 1]
mov byte [eax], cl
lea edx, [edx + 1]
mov al, byte [esi - 1]
xor al, cl
mov byte [edx - 1], al
mov eax, dword [esp + 0x28]
inc eax
mov dword [esp + 0x28], eax
sub ebx, 1
jne 0x568666
mov esi, dword [esp + 0x30]
mov eax, dword [esp + 0x3c]
pop edi
pop ebp
mov dword [esi + 0x16c], eax
xor eax, eax
pop esi
pop ebx
add esp, 0x1c
ret
pop esi
or eax, 0xffffffff
pop ebx
add esp, 0x1c
ret