Function at 0x56ef10
Capabilities:
Encode data using xor

Disassembly:
mov eax, 0x1c
call fcn.005c8080
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 0x56f21f
jb 0x56ef56
cmp eax, 0xffffffe0
ja 0x56f21f
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 0x56f161
test edi, edi
jne 0x56efa0
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 0x56f023
test edx, edx
je 0x56f023
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 0x56f099
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 0x56f040
mov dword [esp + 0x20], esi
mov eax, edi
and eax, 0xfffffff0
mov dword [esp + 0x1c], eax
je 0x56f0e9
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 0x56f14d
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 0x56f135
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 0x56eff5
mov esi, dword [esp + 0x38]
lea ecx, [ebx + 0x178]
mov ebp, dword [esp + 0x34]
add ecx, edx
nop dword [eax]
test edi, edi
je 0x56f20f
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 0x56f1a0
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 0x56f001
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