Function at 0x56e4a0
Capabilities:
Encode data using xor

Disassembly:
mov eax, 0x28
call fcn.005c8080
push ebp
mov ebp, dword [esp + 0x3c]
xor ecx, ecx
push esi
mov esi, dword [esp + 0x34]
mov eax, dword [esi + 0x170]
mov dword [esp + 0x28], eax
mov eax, dword [esi + 0x174]
mov dword [esp + 0x24], eax
mov eax, dword [esi + 0x164]
mov dword [esp + 0x20], eax
mov eax, ebp
add eax, dword [esi + 0x38]
adc ecx, dword [esi + 0x3c]
cmp ecx, 0xf
ja 0x56e839
jb 0x56e4f0
cmp eax, 0xffffffe0
ja 0x56e839
cmp dword [esi + 0x16c], 0
mov edx, dword [esi + 0x168]
mov dword [esi + 0x3c], ecx
lea ecx, [esi + 0x40]
push ebx
push edi
mov dword [esi + 0x38], eax
mov dword [esp + 0x1c], edx
mov dword [esp + 0x18], ecx
je 0x56e6e7
test ebp, ebp
jne 0x56e53a
lea eax, [esi + 0x60]
push eax
mov eax, dword [esi + 0x160]
push ecx
call eax
add esp, 8
mov dword [esi + 0x16c], ebp
xor eax, eax
pop edi
pop ebx
pop esi
pop ebp
add esp, 0x28
ret
movups xmm0, xmmword [ecx]
lea eax, [esi + 0x178]
mov edx, 0x10
mov dword [esp + 0x24], eax
movups xmmword [eax], xmm0
mov dword [ecx], 0
mov dword [ecx + 4], 0
lea ecx, [esi + 0xc]
mov dword [esi + 0x48], 0
mov dword [esi + 0x4c], 0
mov eax, dword [ecx]
bswap eax
mov dword [esp + 0x10], eax
xor eax, eax
mov dword [esp + 0x1c], edx
mov dword [esi + 0x16c], 0
mov dword [esp + 0x20], ecx
mov dword [esp + 0x14], eax
mov ebx, dword [esp + 0x44]
mov edi, dword [esp + 0x40]
mov ecx, dword [esp + 0x18]
lea eax, [esi + 0x60]
cmp ebp, 0x10
jb 0x56e5bb
test edx, edx
je 0x56e5bb
push edx
push dword [esp + 0x28]
push eax
push ecx
call dword [esp + 0x38]
add esp, 0x10
mov dword [esp + 0x1c], 0
cmp ebp, 0xc00
jb 0x56e65d
mov eax, 0xaaaaaaab
mul ebp
shr edx, 0xb
mov dword [esp + 0x34], edx
push 0xc00
push edi
lea eax, [esi + 0x60]
push eax
push dword [esp + 0x24]
call dword [esp + 0x38]
mov ebp, dword [esp + 0x20]
add esp, 0x10
mov dword [esp + 0x24], 0xc0
push dword [esp + 0x2c]
lea eax, [esi + 0x10]
push eax
push esi
call dword [esp + 0x3c]
mov ecx, dword [esp + 0x2c]
inc ebp
mov eax, ebp
add esp, 0xc
bswap eax
mov dword [ecx], eax
mov eax, dword [esi + 0x10]
xor eax, dword [edi]
mov dword [ebx], eax
mov eax, dword [edi + 4]
xor eax, dword [esi + 0x14]
mov dword [ebx + 4], eax
mov eax, dword [edi + 8]
xor eax, dword [esi + 0x18]
mov dword [ebx + 8], eax
mov eax, dword [edi + 0xc]
add edi, 0x10
xor eax, dword [esi + 0x1c]
mov dword [ebx + 0xc], eax
add ebx, 0x10
sub dword [esp + 0x24], 1
jne 0x56e5f6
mov dword [esp + 0x10], ebp
mov ebp, dword [esp + 0x48]
sub ebp, 0xc00
sub dword [esp + 0x34], 1
mov dword [esp + 0x48], ebp
jne 0x56e5d5
mov eax, ebp
and eax, 0xfffffff0
je 0x56e7b3
push eax
push edi
lea eax, [esi + 0x60]
push eax
push dword [esp + 0x24]
call dword [esp + 0x38]
add esp, 0x10
lea ecx, [esi + 0x10]
cmp ebp, 0x10
jb 0x56e7b6
mov eax, ebp
shr eax, 4
mov dword [esp + 0x48], eax
nop
push dword [esp + 0x2c]
push ecx
push esi
call dword [esp + 0x3c]
mov eax, dword [esp + 0x1c]
add esp, 0xc
mov ecx, dword [esp + 0x20]
inc eax
mov dword [esp + 0x10], eax
sub ebp, 0x10
bswap eax
mov dword [ecx], eax
lea ecx, [esi + 0x10]
mov eax, dword [ecx]
xor eax, dword [edi]
mov dword [ebx], eax
mov eax, dword [edi + 4]
xor eax, dword [esi + 0x14]
mov dword [ebx + 4], eax
mov eax, dword [edi + 8]
xor eax, dword [esi + 0x18]
mov dword [ebx + 8], eax
mov eax, dword [edi + 0xc]
add edi, 0x10
xor eax, dword [esi + 0x1c]
mov dword [ebx + 0xc], eax
add ebx, 0x10
sub dword [esp + 0x48], 1
jne 0x56e690
jmp 0x56e7b6
lea eax, [esi + 0x178]
mov dword [esp + 0x18], ecx
mov dword [esp + 0x24], eax
lea ecx, [esi + 0xc]
mov eax, dword [ecx]
bswap eax
mov dword [esp + 0x10], eax
mov eax, edx
and eax, 0xf
mov dword [esp + 0x20], ecx
mov dword [esp + 0x14], eax
je 0x56e58d
mov ebx, dword [esp + 0x44]
lea eax, [esi + 0x178]
mov edi, dword [esp + 0x40]
add eax, edx
mov dword [esp + 0x48], eax
test ebp, ebp
je 0x56e7a3
mov cl, byte [edi]
inc edx
mov byte [eax], cl
inc edi
mov eax, dword [esp + 0x14]
dec ebp
mov al, byte [eax + esi + 0x10]
xor al, cl
mov ecx, dword [esp + 0x14]
mov byte [ebx], al
inc ecx
mov eax, dword [esp + 0x48]
inc ebx
inc eax
and ecx, 0xf
mov dword [esp + 0x48], eax
mov dword [esp + 0x14], ecx
jne 0x56e727
push edx
lea eax, [esi + 0x178]
push eax
lea eax, [esi + 0x60]
lea ecx, [esi + 0x40]
push eax
push ecx
call dword [esp + 0x38]
mov eax, dword [esp + 0x24]
add esp, 0x10
mov ecx, dword [esp + 0x18]
xor edx, edx
mov dword [esp + 0x14], eax
mov eax, dword [esp + 0x24]
mov dword [esp + 0x24], eax
lea eax, [esi + 0xc]
mov dword [esp + 0x20], eax
mov eax, dword [esp + 0x10]
mov dword [esp + 0x1c], edx
mov dword [esp + 0x48], ebp
mov dword [esp + 0x18], ecx
mov dword [esp + 0x10], eax
jmp 0x56e599
pop edi
pop ebx
mov dword [esi + 0x168], edx
xor eax, eax
pop esi
pop ebp
add esp, 0x28
ret
lea ecx, [esi + 0x10]
test ebp, ebp
je 0x56e825
push dword [esp + 0x2c]
push ecx
push esi
call dword [esp + 0x3c]
mov eax, dword [esp + 0x1c]
add esp, 0xc
mov ecx, dword [esp + 0x20]
inc eax
bswap eax
sub edi, ebx
mov dword [ecx], eax
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x1c]
lea edx, [eax + ebx]
add eax, 0x10
add eax, esi
mov dword [esp + 0x34], eax
lea eax, [esi + 0x178]
mov esi, dword [esp + 0x34]
add eax, ecx
add ecx, ebp
mov dword [esp + 0x48], eax
mov dword [esp + 0x1c], ecx
mov cl, byte [edi + edx]
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 + 0x48]
inc eax
mov dword [esp + 0x48], eax
sub ebp, 1
jne 0x56e800
mov esi, dword [esp + 0x3c]
mov eax, dword [esp + 0x1c]
pop edi
pop ebx
mov dword [esi + 0x168], eax
xor eax, eax
pop esi
pop ebp
add esp, 0x28
ret
pop esi
or eax, 0xffffffff
pop ebp
add esp, 0x28
ret