Function at 0x56e850
Capabilities:
Encode data using xor

Disassembly:
mov eax, 0x20
call fcn.005c8080
push ebx
mov ebx, dword [esp + 0x28]
xor ecx, ecx
push esi
mov esi, dword [esp + 0x38]
mov eax, dword [ebx + 0x174]
mov dword [esp + 0x24], eax
mov eax, dword [ebx + 0x164]
mov dword [esp + 0x20], eax
mov eax, esi
add eax, dword [ebx + 0x38]
adc ecx, dword [ebx + 0x3c]
cmp ecx, 0xf
ja 0x56eb73
jb 0x56e896
cmp eax, 0xffffffe0
ja 0x56eb73
cmp dword [ebx + 0x16c], 0
lea edx, [ebx + 0x40]
push ebp
mov dword [ebx + 0x3c], ecx
mov ecx, dword [ebx + 0x168]
push edi
mov dword [ebx + 0x38], eax
mov dword [esp + 0x40], ecx
mov dword [esp + 0x1c], edx
je 0x56ea9b
test esi, esi
jne 0x56e8e0
lea eax, [ebx + 0x60]
push eax
mov eax, dword [ebx + 0x160]
push edx
call eax
add esp, 8
mov dword [ebx + 0x16c], esi
xor eax, eax
pop edi
pop ebp
pop esi
pop ebx
add esp, 0x20
ret
movups xmm0, xmmword [edx]
lea eax, [ebx + 0x178]
mov ecx, 0x10
mov dword [esp + 0x24], eax
movups xmmword [eax], xmm0
mov dword [edx], 0
lea eax, [ebx + 0xc]
mov dword [edx + 4], 0
mov dword [ebx + 0x48], 0
mov dword [ebx + 0x4c], 0
mov edi, dword [eax]
mov dword [esp + 0x20], eax
xor eax, eax
bswap edi
mov dword [esp + 0x40], ecx
mov dword [ebx + 0x16c], 0
mov dword [esp + 0x14], edi
mov dword [esp + 0x18], eax
mov eax, dword [esp + 0x3c]
mov ebp, dword [esp + 0x38]
mov dword [esp + 0x10], eax
cmp esi, 0x10
jb 0x56e961
test ecx, ecx
je 0x56e961
push ecx
push dword [esp + 0x28]
lea eax, [ebx + 0x60]
push eax
push edx
call dword [esp + 0x38]
add esp, 0x10
mov dword [esp + 0x40], 0
cmp esi, 0xc00
jb 0x56e9cf
mov eax, 0xaaaaaaab
mul esi
shr edx, 0xb
mov dword [esp + 0x24], edx
push 0xc00
push ebp
lea eax, [ebx + 0x60]
push eax
push dword [esp + 0x28]
call dword [esp + 0x38]
mov ecx, dword [esp + 0x20]
push ebx
push dword [esp + 0x40]
push 0xc0
push ecx
push ebp
call dword [esp + 0x68]
mov ecx, dword [esp + 0x44]
add edi, 0xc0
add dword [esp + 0x34], 0xc00
mov eax, edi
add esp, 0x24
add ebp, 0xc00
bswap eax
sub esi, 0xc00
mov dword [ecx], eax
sub dword [esp + 0x24], 1
jne 0x56e977
mov dword [esp + 0x14], edi
mov eax, esi
and eax, 0xfffffff0
mov dword [esp + 0x24], eax
je 0x56ea1e
push eax
mov edi, eax
lea eax, [ebx + 0x60]
push ebp
push eax
push dword [esp + 0x28]
shr edi, 4
call dword [esp + 0x38]
mov ecx, dword [esp + 0x20]
push ebx
push dword [esp + 0x40]
push edi
push ecx
push ebp
call dword [esp + 0x68]
add dword [esp + 0x38], edi
add esp, 0x24
mov edi, dword [esp + 0x14]
mov eax, edi
mov ecx, dword [esp + 0x20]
bswap eax
mov dword [ecx], eax
mov eax, dword [esp + 0x24]
add ebp, eax
add dword [esp + 0x10], eax
sub esi, eax
test esi, esi
je 0x56ea87
push dword [esp + 0x2c]
lea eax, [ebx + 0x10]
push eax
mov eax, dword [ebx + 0x170]
push ebx
call eax
mov eax, dword [esp + 0x2c]
inc edi
mov ecx, dword [esp + 0x1c]
add esp, 0xc
bswap edi
sub ebp, ecx
mov dword [eax], edi
mov eax, dword [esp + 0x18]
lea edi, [eax + 0x10]
add edi, ebx
lea edx, [eax + ecx]
mov eax, dword [esp + 0x40]
add ebx, 0x178
add eax, ebx
add dword [esp + 0x40], esi
mov dword [esp + 0x2c], eax
mov ebx, eax
mov cl, byte [edx + ebp]
lea ebx, [ebx + 1]
mov byte [ebx - 1], cl
lea edi, [edi + 1]
mov al, byte [edi - 1]
lea edx, [edx + 1]
xor al, cl
mov byte [edx - 1], al
sub esi, 1
jne 0x56ea67
mov ebx, dword [esp + 0x34]
mov eax, dword [esp + 0x40]
pop edi
pop ebp
mov dword [ebx + 0x168], eax
xor eax, eax
pop esi
pop ebx
add esp, 0x20
ret
mov edi, dword [ebx + 0xc]
lea eax, [ebx + 0x178]
mov dword [esp + 0x24], eax
lea eax, [ebx + 0xc]
mov dword [esp + 0x20], eax
mov eax, ecx
bswap edi
and eax, 0xf
mov dword [esp + 0x1c], edx
mov dword [esp + 0x14], edi
mov dword [esp + 0x18], eax
je 0x56e933
mov ebp, dword [esp + 0x38]
lea edx, [ebx + 0x178]
add edx, ecx
mov dword [esp + 0x20], edx
mov edx, dword [esp + 0x3c]
nop dword [eax]
test esi, esi
je 0x56eb63
mov edi, dword [esp + 0x20]
dec esi
mov cl, byte [ebp]
inc ebp
inc dword [esp + 0x20]
mov byte [edi], cl
mov al, byte [eax + ebx + 0x10]
mov edi, dword [esp + 0x14]
xor al, cl
mov ecx, dword [esp + 0x40]
mov byte [edx], al
inc ecx
mov eax, dword [esp + 0x18]
inc edx
inc eax
mov dword [esp + 0x10], edx
and eax, 0xf
mov dword [esp + 0x40], ecx
mov dword [esp + 0x18], eax
jne 0x56eae0
push dword [esp + 0x40]
lea eax, [ebx + 0x178]
push eax
lea edx, [ebx + 0x60]
lea ecx, [ebx + 0x40]
push edx
push ecx
call dword [esp + 0x38]
mov eax, dword [esp + 0x28]
add esp, 0x10
mov edx, dword [esp + 0x1c]
xor ecx, ecx
mov dword [esp + 0x18], eax
mov eax, dword [esp + 0x24]
mov dword [esp + 0x24], eax
lea eax, [ebx + 0xc]
mov dword [esp + 0x40], ecx
mov dword [esp + 0x1c], edx
mov dword [esp + 0x20], eax
mov dword [esp + 0x14], edi
jmp 0x56e93f
pop edi
pop ebp
pop esi
mov dword [ebx + 0x168], ecx
xor eax, eax
pop ebx
add esp, 0x20
ret
pop esi
or eax, 0xffffffff
pop ebx
add esp, 0x20
ret