Function at 0x56f420
Capabilities:
Encode data using xor

Disassembly:
mov eax, 0x1c
call fcn.005c85a0
push ebx
mov ebx, dword [esp + 0x24]
xor ecx, ecx
push edi
mov edi, dword [esp + 0x34]
mov eax, dword [ebx + 0x174]
mov dword [esp + 0x20], eax
mov eax, dword [ebx + 0x164]
mov dword [esp + 0x1c], eax
mov eax, edi
add eax, dword [ebx + 0x38]
adc ecx, dword [ebx + 0x3c]
cmp ecx, 0xf
ja 0x56f72f
jb 0x56f466
cmp eax, 0xffffffe0
ja 0x56f72f
cmp dword [ebx + 0x16c], 0
mov edx, dword [ebx + 0x168]
mov dword [ebx + 0x3c], ecx
lea ecx, [ebx + 0x40]
push ebp
push esi
mov dword [ebx + 0x38], eax
mov dword [esp + 0x10], edx
mov dword [esp + 0x14], ecx
je 0x56f671
test edi, edi
jne 0x56f4b0
lea eax, [ebx + 0x60]
push eax
mov eax, dword [ebx + 0x160]
push ecx
call eax
add esp, 8
mov dword [ebx + 0x16c], edi
xor eax, eax
pop esi
pop ebp
pop edi
pop ebx
add esp, 0x1c
ret
movups xmm0, xmmword [ecx]
lea eax, [ebx + 0x178]
mov dword [esp + 0x3c], 0
mov dword [esp + 0x1c], eax
mov edx, 0x10
movups xmmword [eax], xmm0
mov dword [ecx], 0
lea eax, [ebx + 0xc]
mov dword [ecx + 4], 0
mov dword [ebx + 0x48], 0
mov dword [ebx + 0x4c], 0
mov dword [esp + 0x18], eax
mov eax, dword [eax]
bswap eax
mov dword [esp + 0x10], edx
mov dword [ebx + 0x16c], 0
mov dword [esp + 0x30], eax
mov esi, dword [esp + 0x38]
mov ebp, dword [esp + 0x34]
mov dword [esp + 0x20], esi
lea eax, [ebx + 0x60]
cmp edi, 0x10
jb 0x56f533
test edx, edx
je 0x56f533
push edx
push dword [esp + 0x20]
push eax
push ecx
call dword [esp + 0x34]
add esp, 0x10
mov dword [esp + 0x10], 0
mov ecx, dword [esp + 0x40]
cmp edi, 0xc00
jb 0x56f5a9
mov eax, 0xaaaaaaab
mul edi
shr edx, 0xb
mov dword [esp + 0x20], edx
nop dword [eax]
push ebx
push dword [esp + 0x2c]
push 0xc0
push esi
push ebp
call ecx
mov eax, dword [esp + 0x44]
mov ecx, dword [esp + 0x2c]
add eax, 0xc0
mov dword [esp + 0x44], eax
bswap eax
push 0xc00
mov dword [ecx], eax
lea eax, [ebx + 0x60]
push esi
push eax
push dword [esp + 0x34]
call dword [esp + 0x48]
mov ecx, dword [esp + 0x64]
add esp, 0x24
add esi, 0xc00
add ebp, 0xc00
sub edi, 0xc00
sub dword [esp + 0x20], 1
jne 0x56f550
mov dword [esp + 0x20], esi
mov eax, edi
and eax, 0xfffffff0
mov dword [esp + 0x1c], eax
je 0x56f5f9
push ebx
push dword [esp + 0x2c]
mov esi, eax
shr esi, 4
push esi
push dword [esp + 0x2c]
push ebp
call ecx
mov eax, dword [esp + 0x44]
mov ecx, dword [esp + 0x2c]
add eax, esi
mov esi, dword [esp + 0x34]
mov dword [esp + 0x44], eax
bswap eax
mov dword [ecx], eax
mov eax, dword [esp + 0x30]
add ebp, eax
push eax
sub edi, eax
lea eax, [ebx + 0x60]
push esi
push eax
push dword [esp + 0x34]
call dword [esp + 0x48]
add esp, 0x24
add esi, dword [esp + 0x1c]
test edi, edi
je 0x56f65d
push dword [esp + 0x28]
lea eax, [ebx + 0x10]
push eax
mov eax, dword [ebx + 0x170]
push ebx
call eax
mov eax, dword [esp + 0x3c]
sub ebp, esi
mov ecx, dword [esp + 0x24]
inc eax
mov edx, dword [esp + 0x1c]
add esp, 0xc
bswap eax
add edx, 0x178
mov dword [ecx], eax
add edx, ebx
mov eax, dword [esp + 0x3c]
mov ecx, dword [esp + 0x3c]
add eax, 0x10
add eax, ebx
add ecx, esi
add dword [esp + 0x10], edi
mov esi, eax
mov dword [esp + 0x30], eax
mov al, byte [ecx + ebp]
lea edx, [edx + 1]
xor al, byte [esi]
lea esi, [esi + 1]
mov byte [ecx], al
lea ecx, [ecx + 1]
mov byte [edx - 1], al
sub edi, 1
jne 0x56f645
mov eax, dword [esp + 0x10]
pop esi
pop ebp
mov dword [ebx + 0x168], eax
xor eax, eax
pop edi
pop ebx
add esp, 0x1c
ret
lea eax, [ebx + 0x178]
mov dword [esp + 0x14], ecx
mov dword [esp + 0x1c], eax
lea eax, [ebx + 0xc]
mov dword [esp + 0x18], eax
mov eax, dword [eax]
bswap eax
mov dword [esp + 0x30], eax
mov eax, edx
and eax, 0xf
mov dword [esp + 0x3c], eax
je 0x56f505
mov esi, dword [esp + 0x38]
lea ecx, [ebx + 0x178]
mov ebp, dword [esp + 0x34]
add ecx, edx
nop dword [eax]
test edi, edi
je 0x56f71f
mov al, byte [eax + ebx + 0x10]
inc edx
xor al, byte [ebp]
dec edi
mov byte [esi], al
inc ebp
mov byte [ecx], al
inc esi
mov eax, dword [esp + 0x3c]
inc ecx
inc eax
mov dword [esp + 0x20], esi
and eax, 0xf
mov dword [esp + 0x3c], eax
jne 0x56f6b0
push edx
lea eax, [ebx + 0x178]
push eax
lea eax, [ebx + 0x60]
lea ecx, [ebx + 0x40]
push eax
push ecx
call dword [esp + 0x34]
mov eax, dword [esp + 0x4c]
add esp, 0x10
mov ecx, dword [esp + 0x14]
xor edx, edx
mov dword [esp + 0x3c], eax
mov eax, dword [esp + 0x1c]
mov dword [esp + 0x1c], eax
lea eax, [ebx + 0xc]
mov dword [esp + 0x18], eax
mov eax, dword [esp + 0x30]
mov dword [esp + 0x10], edx
mov dword [esp + 0x14], ecx
mov dword [esp + 0x30], eax
jmp 0x56f511
pop esi
pop ebp
pop edi
mov dword [ebx + 0x168], edx
xor eax, eax
pop ebx
add esp, 0x1c
ret
pop edi
or eax, 0xffffffff
pop ebx
add esp, 0x1c
ret