Function at 0x568a80
Capabilities:
Encode data using xor

Disassembly:
mov eax, 0x18
call fcn.006149d0
push ebx
mov ebx, dword [esp + 0x2c]
xor ecx, ecx
push esi
mov esi, dword [esp + 0x24]
mov eax, dword [esi + 0x178]
mov dword [esp + 0x1c], eax
mov eax, ebx
add eax, dword [esi + 0x38]
adc ecx, dword [esi + 0x3c]
cmp ecx, 0xf
ja 0x568d81
jb 0x568abc
cmp eax, 0xffffffe0
ja 0x568d81
cmp dword [esi + 0x170], 0
mov edx, dword [esi + 0x16c]
mov dword [esi + 0x3c], ecx
lea ecx, [esi + 0x40]
push ebp
push edi
mov dword [esi + 0x38], eax
mov dword [esp + 0x10], edx
mov dword [esp + 0x18], ecx
je 0x568cd2
test ebx, ebx
jne 0x568b06
lea eax, [esi + 0x60]
push eax
mov eax, dword [esi + 0x168]
push ecx
call eax
add esp, 8
mov dword [esi + 0x170], ebx
xor eax, eax
pop edi
pop ebp
pop esi
pop ebx
add esp, 0x18
ret
movups xmm0, xmmword [ecx]
lea eax, [esi + 0x17c]
mov dword [esp + 0x14], 0
mov dword [esp + 0x20], eax
mov edx, 0x10
movups xmmword [eax], xmm0
mov dword [ecx], 0
mov dword [ecx + 4], 0
mov dword [esi + 0x48], 0
mov dword [esi + 0x4c], 0
mov eax, dword [esi + 0xc]
bswap eax
mov dword [esp + 0x10], edx
mov dword [esi + 0x170], 0
mov dword [esp + 0x38], eax
mov edi, dword [esp + 0x34]
mov ebp, dword [esp + 0x30]
mov dword [esp + 0x1c], edi
mov eax, dword [esp + 0x18]
mov dword [esp + 0x2c], eax
cmp ebx, 0x10
jb 0x568b9b
mov dword [esp + 0x2c], eax
test edx, edx
je 0x568b9b
push edx
push dword [esp + 0x24]
lea ecx, [esi + 0x60]
push ecx
push eax
mov eax, dword [esi + 0x164]
call eax
mov eax, dword [esp + 0x28]
add esp, 0x10
mov dword [esp + 0x10], 0
mov dword [esp + 0x2c], eax
cmp ebx, 0xc00
jb 0x568c0d
mov dword [esp + 0x2c], eax
mov eax, 0xaaaaaaab
mul ebx
shr edx, 0xb
mov dword [esp + 0x20], edx
push esi
push dword [esp + 0x28]
push 0xc0
push edi
push ebp
call dword [esp + 0x50]
mov eax, dword [esp + 0x4c]
add eax, 0xc0
mov dword [esp + 0x4c], eax
bswap eax
push 0xc00
mov dword [esi + 0xc], eax
lea eax, [esi + 0x60]
push edi
push eax
push dword [esp + 0x4c]
mov eax, dword [esi + 0x164]
call eax
add esp, 0x24
add edi, 0xc00
add ebp, 0xc00
sub ebx, 0xc00
sub dword [esp + 0x20], 1
jne 0x568bb5
mov dword [esp + 0x1c], edi
mov eax, ebx
and eax, 0xfffffff0
mov dword [esp + 0x20], eax
je 0x568c60
push esi
push dword [esp + 0x28]
mov edi, eax
shr edi, 4
push edi
push dword [esp + 0x28]
push ebp
call dword [esp + 0x50]
mov eax, dword [esp + 0x4c]
add eax, edi
mov edi, dword [esp + 0x30]
mov dword [esp + 0x4c], eax
bswap eax
mov dword [esi + 0xc], eax
mov eax, dword [esp + 0x34]
add ebp, eax
push eax
sub ebx, eax
lea eax, [esi + 0x60]
push edi
push eax
push dword [esp + 0x4c]
mov eax, dword [esi + 0x164]
call eax
add esp, 0x24
add edi, dword [esp + 0x20]
test ebx, ebx
je 0x568cbe
push dword [esp + 0x24]
lea eax, [esi + 0x10]
push eax
mov eax, dword [esi + 0x174]
push esi
call eax
mov eax, dword [esp + 0x44]
sub ebp, edi
mov edx, dword [esp + 0x1c]
inc eax
bswap eax
mov dword [esi + 0xc], eax
add edx, 0x17c
mov eax, dword [esp + 0x20]
add esp, 0xc
add edx, esi
lea ecx, [eax + edi]
add eax, 0x10
add eax, esi
add dword [esp + 0x10], ebx
mov dword [esp + 0x2c], eax
mov edi, eax
mov al, byte [ecx + ebp]
lea edx, [edx + 1]
xor al, byte [edi]
lea edi, [edi + 1]
mov byte [ecx], al
lea ecx, [ecx + 1]
mov byte [edx - 1], al
sub ebx, 1
jne 0x568ca6
mov edx, dword [esp + 0x10]
pop edi
pop ebp
mov dword [esi + 0x16c], edx
xor eax, eax
pop esi
pop ebx
add esp, 0x18
ret
lea eax, [esi + 0x17c]
mov dword [esp + 0x18], ecx
mov dword [esp + 0x20], eax
mov ecx, edx
mov eax, dword [esi + 0xc]
and ecx, 0xf
bswap eax
mov dword [esp + 0x38], eax
mov dword [esp + 0x14], ecx
je 0x568b55
mov edi, dword [esp + 0x34]
lea eax, [esi + 0x17c]
mov ebp, dword [esp + 0x30]
add eax, edx
mov dword [esp + 0x18], eax
nop dword [eax]
test ebx, ebx
je 0x568cc2
mov al, byte [ecx + esi + 0x10]
inc edx
xor al, byte [ebp]
inc ecx
mov esi, dword [esp + 0x18]
inc ebp
inc dword [esp + 0x18]
dec ebx
mov byte [edi], al
inc edi
and ecx, 0xf
mov dword [esp + 0x1c], edi
mov byte [esi], al
mov esi, dword [esp + 0x2c]
mov dword [esp + 0x14], ecx
jne 0x568d10
push edx
lea edx, [esi + 0x17c]
lea eax, [esi + 0x17c]
push edx
mov dword [esp + 0x28], eax
lea ecx, [esi + 0x60]
lea eax, [esi + 0x40]
push ecx
mov dword [esp + 0x24], eax
push eax
mov eax, dword [esi + 0x164]
call eax
mov ecx, dword [esp + 0x24]
add esp, 0x10
mov eax, dword [esp + 0x38]
xor edx, edx
mov dword [esp + 0x10], edx
mov dword [esp + 0x14], ecx
mov dword [esp + 0x38], eax
jmp 0x568b61
pop esi
or eax, 0xffffffff
pop ebx
add esp, 0x18
ret