Function at 0x5054e0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff0
sub esp, 0x90
mov ebx, dword [ebp + 0x10]
push 0x118
call sym.fastboot.exe_OPENSSL_malloc
add esp, 4
mov esi, eax
cmp ebx, 0x30
ja 0x50556e
test esi, esi
je 0x50556e
mov eax, dword [ebp + 8]
movups xmm0, xmmword [eax + 0x20]
movaps xmmword [esp + 0x20], xmm0
movups xmm0, xmmword [eax]
movups xmm1, xmmword [eax + 0x10]
movaps xmmword [esp + 0x10], xmm1
movaps xmmword [esp], xmm0
test ebx, ebx
je 0x5055cc
mov eax, dword [ebp + 0xc]
xor ecx, ecx
cmp ebx, 8
jb 0x5055c0
xor ecx, ecx
cmp ebx, 0x10
jae 0x50557e
mov edx, ecx
mov ecx, ebx
and ecx, 0xfffffff8
nop word [eax + eax]
movsd xmm0, qword [eax + edx]
movsd xmm1, qword [esp + edx]
xorps xmm1, xmm0
movlps qword [esp + edx], xmm1
add edx, 8
cmp ecx, edx
jne 0x505550
cmp ecx, ebx
jne 0x5055c0
jmp 0x5055cc
push esi
call sym.fastboot.exe_OPENSSL_free
add esp, 4
xor esi, esi
jmp 0x505773
mov ecx, ebx
and ecx, 0xfffffff0
movups xmm0, xmmword [eax]
xorps xmm0, xmmword [esp]
movaps xmmword [esp], xmm0
cmp ecx, 0x10
je 0x5055b4
movups xmm0, xmmword [eax + 0x10]
xorps xmm0, xmmword [esp + 0x10]
movaps xmmword [esp + 0x10], xmm0
cmp ecx, 0x20
je 0x5055b4
movups xmm0, xmmword [eax + 0x20]
xorps xmm0, xmmword [esp + 0x20]
movaps xmmword [esp + 0x20], xmm0
cmp ecx, ebx
je 0x5055cc
test bl, 8
jne 0x505543
nop dword [eax]
movzx edx, byte [eax + ecx]
xor byte [esp + ecx], dl
inc ecx
cmp ebx, ecx
jne 0x5055c0
movaps xmm0, xmmword [esp]
xorps xmm0, xmmword [0x595970]
movdqa xmm1, xmmword [esp + 0x10]
movaps xmmword [esp], xmm0
pxor xmm1, xmmword [0x595980]
movdqa xmmword [esp + 0x10], xmm1
movaps xmm0, xmmword [esp + 0x20]
xorps xmm0, xmmword [0x595990]
movaps xmmword [esp + 0x20], xmm0
mov dword [esi + 0xf0], 0xe
movaps xmm0, xmmword [esp]
movaps xmmword [esp + 0x50], xmm0
movups xmmword [esi], xmm0
movaps xmm0, xmmword [esp + 0x10]
movaps xmmword [esp + 0x40], xmm0
movups xmmword [esi + 0x10], xmm0
movaps xmm0, xmmword [esp + 0x50]
movaps xmmword [esp + 0x70], xmm0
mov ebx, 0x30
mov edi, 0x596aee
movaps xmm0, xmmword [esp + 0x40]
movaps xmmword [esp + 0x60], xmm0
nop word cs:[eax + eax]
xorps xmm0, xmm0
movaps xmmword [esp + 0x30], xmm0
lea ecx, [esp + 0x30]
lea edx, [esp + 0x40]
call fcn.00512de0
movzx eax, byte [edi]
movd xmm1, eax
pxor xmm1, xmmword [esp + 0x70]
movdqa xmm0, xmmword [esp + 0x30]
movdqa xmm2, xmm0
psrld xmm2, 8
pslld xmm0, 0x18
por xmm0, xmm2
psrldq xmm0, 0xc
pxor xmm0, xmm1
movdqa xmm1, xmm0
pslldq xmm1, 4
movdqa xmm2, xmm0
pslldq xmm2, 8
pxor xmm2, xmm1
movdqa xmm1, xmm0
pslldq xmm1, 0xc
pxor xmm1, xmm2
pxor xmm1, xmm0
movdqa xmmword [esp + 0x50], xmm1
movaps xmm0, xmmword [esp + 0x50]
movups xmmword [esi + ebx - 0x10], xmm0
cmp ebx, 0xf0
je 0x50573f
movdqa xmmword [esp + 0x70], xmm1
lea ecx, [esp + 0x30]
lea edx, [esp + 0x50]
call fcn.00512de0
movdqa xmm0, xmmword [esp + 0x30]
psrldq xmm0, 0xc
movdqa xmm2, xmmword [esp + 0x60]
pxor xmm2, xmm0
movdqa xmm0, xmm2
pslldq xmm0, 4
movdqa xmm1, xmm2
pslldq xmm1, 8
pxor xmm1, xmm0
movdqa xmm0, xmm2
pslldq xmm0, 0xc
pxor xmm0, xmm1
pxor xmm2, xmm0
movdqa xmmword [esp + 0x60], xmm2
movdqa xmmword [esp + 0x40], xmm2
movaps xmm0, xmmword [esp + 0x40]
movups xmmword [esi + ebx], xmm0
add ebx, 0x20
inc edi
jmp 0x505650
mov dword [esi + 0xf4], fcn.004cf490
mov dword [esi + 0xf8], 0x4d1780
movaps xmm0, xmmword [esp + 0x20]
movups xmmword [esi + 0xfc], xmm0
mov dword [esi + 0x114], 0
mov dword [esi + 0x110], 1
mov eax, esi
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret