Function at 0x506b80
Capabilities:
Encode data using xor

Disassembly:
push ebp
push ebx
push edi
push esi
sub esp, 0x94
mov ebp, dword [esp + 0xc8]
mov edx, dword [esp + 0xc4]
mov ecx, dword [esp + 0xb8]
test edx, edx
jne 0x506bbe
push 0x4ef8a0
push 0x5b2da4
mov esi, ecx
call sym.fastboot.exe_CRYPTO_once
mov ecx, esi
add esp, 8
mov edx, 0x5b2da8
test ebp, ebp
cmove ebp, edx
mov edi, dword [edx + 4]
lea eax, [edi + edi]
add eax, 2
xor esi, esi
cmp eax, ecx
jbe 0x506bf2
push 0x1e4
push str.external_boringssl_src_crypto_fipsmodule_rsa_padding.c
push 0x85
push 0
push 4
call sym.fastboot.exe_ERR_put_error
add esp, 0x14
jmp 0x506f43
mov dword [esp + 0x10], edx
mov ebx, edi
not ebx
add ebx, ecx
push ebx
call sym.fastboot.exe_OPENSSL_malloc
add esp, 4
test eax, eax
je 0x506d00
mov esi, eax
mov eax, dword [esp + 0xb4]
add eax, edi
inc eax
xorps xmm0, xmm0
movups xmmword [esp + 0x44], xmm0
movups xmmword [esp + 0x34], xmm0
movups xmmword [esp + 0x24], xmm0
movups xmmword [esp + 0x14], xmm0
lea ecx, [esp + 0x14]
mov edx, edi
push ebp
push ebx
mov dword [esp + 0x14], eax
push eax
call fcn.00506a20
add esp, 0xc
test eax, eax
je 0x506f43
test edi, edi
mov edx, edi
mov dword [esp + 4], edi
mov edi, dword [esp + 0xc]
je 0x506d1a
mov eax, dword [esp + 0xb4]
inc eax
xor ecx, ecx
cmp edx, 8
jb 0x506d0b
xor ecx, ecx
cmp edx, 0x20
jb 0x506ccc
mov ecx, edx
and ecx, 0xffffffe0
xor edx, edx
mov edi, dword [esp + 0xb4]
nop word [eax + eax]
movups xmm0, xmmword [edi + edx + 1]
movups xmm1, xmmword [edi + edx + 0x11]
movups xmm2, xmmword [esp + edx + 0x14]
xorps xmm2, xmm0
movups xmm0, xmmword [esp + edx + 0x24]
xorps xmm0, xmm1
movups xmmword [esp + edx + 0x14], xmm2
movups xmmword [esp + edx + 0x24], xmm0
add edx, 0x20
cmp ecx, edx
jne 0x506c90
mov edx, dword [esp + 4]
cmp edx, ecx
mov edi, dword [esp + 0xc]
je 0x506d1a
test dl, 0x18
je 0x506d0b
mov edx, ecx
mov ecx, dword [esp + 4]
and ecx, 0xfffffff8
nop word cs:[eax + eax]
movsd xmm0, qword [eax + edx]
movsd xmm1, qword [esp + edx + 0x14]
xorps xmm1, xmm0
movlps qword [esp + edx + 0x14], xmm1
add edx, 8
cmp ecx, edx
jne 0x506ce0
mov edx, dword [esp + 4]
jmp 0x506d07
xor esi, esi
jmp 0x506f43
cmp edx, ecx
je 0x506d1a
movzx edx, byte [eax + ecx]
xor byte [esp + ecx + 0x14], dl
mov edx, dword [esp + 4]
inc ecx
jmp 0x506d07
mov ecx, esi
mov eax, edx
mov edx, ebx
push ebp
push eax
lea eax, [esp + 0x1c]
push eax
call fcn.00506a20
add esp, 0xc
test eax, eax
je 0x506f43
mov ecx, dword [esp + 0xc0]
mov eax, dword [esp + 0xbc]
test ebx, ebx
mov dword [esp], esi
mov dword [esp + 8], ebx
mov ebp, dword [esp + 0xb4]
je 0x506e40
xor edx, edx
cmp ebx, 8
jb 0x506e30
mov esi, dword [esp + 0xb8]
add esi, ebp
cmp dword [esp], esi
mov esi, dword [esp]
jae 0x506d87
mov esi, dword [esp]
add esi, ebx
cmp edi, esi
mov esi, dword [esp]
jb 0x506e30
xor edx, edx
cmp ebx, 0x20
jb 0x506df4
mov edx, ebx
and edx, 0xffffffe0
mov edi, ebp
mov ebp, esi
mov esi, dword [esp + 4]
add esi, edi
add esi, 0x11
xor ebx, ebx
nop word cs:[eax + eax]
movups xmm0, xmmword [esi + ebx - 0x10]
movups xmm1, xmmword [esi + ebx]
movups xmm2, xmmword [ebp + ebx]
xorps xmm2, xmm0
movups xmm0, xmmword [ebp + ebx + 0x10]
xorps xmm0, xmm1
movups xmmword [ebp + ebx], xmm2
movups xmmword [ebp + ebx + 0x10], xmm0
add ebx, 0x20
cmp edx, ebx
jne 0x506db0
mov ebx, dword [esp + 8]
cmp ebx, edx
mov esi, ebp
mov ebp, dword [esp + 0xb4]
mov edi, dword [esp + 0xc]
je 0x506e40
test bl, 0x18
je 0x506e30
mov ebp, ebx
mov ebx, esi
mov esi, edx
mov edx, ebp
and edx, 0xfffffff8
nop
movsd xmm0, qword [edi + esi]
movsd xmm1, qword [ebx + esi]
xorps xmm1, xmm0
movlps qword [ebx + esi], xmm1
add esi, 8
cmp edx, esi
jne 0x506e00
mov ebp, dword [esp + 8]
cmp ebp, edx
mov esi, ebx
mov ebx, ebp
mov ebp, dword [esp + 0xb4]
je 0x506e40
nop dword [eax + eax]
movzx ebx, byte [edi + edx]
xor byte [esi + edx], bl
mov ebx, dword [esp + 8]
inc edx
cmp ebx, edx
jne 0x506e30
xorps xmm0, xmm0
movups xmmword [esp + 0x84], xmm0
movups xmmword [esp + 0x74], xmm0
movups xmmword [esp + 0x64], xmm0
movups xmmword [esp + 0x54], xmm0
sub esp, 4
lea esi, [esp + 0x58]
push dword [esp + 0x14]
push 0
push esi
push ecx
push eax
call sym.fastboot.exe_EVP_Digest
add esp, 0x18
test eax, eax
je 0x506f40
mov edi, ebp
mov ebp, dword [esp + 4]
push ebp
push esi
push dword [esp + 8]
call sym.fastboot.exe_CRYPTO_memcmp
add esp, 0xc
mov ecx, eax
not ecx
dec eax
and eax, ecx
movzx ecx, byte [edi]
dec ecx
and ecx, eax
not ecx
sar ecx, 0x1f
cmp ebp, ebx
jae 0x506f01
mov esi, ebp
mov edx, ebp
add edx, ebp
not edx
add edx, dword [esp + 0xb8]
mov ebp, 0xffffffff
xor ebx, ebx
nop word [eax + eax]
mov dword [esp + 0x10], ebx
mov dword [esp + 4], ecx
mov eax, dword [esp]
movzx ebx, byte [eax + esi]
mov edi, ebx
xor edi, 1
dec edi
sar edi, 0x1f
mov eax, edi
and eax, ebp
mov ecx, eax
not eax
and eax, dword [esp + 0x10]
and ecx, esi
or eax, ecx
mov ecx, dword [esp + 4]
not edi
and edi, ebp
test ebx, ebx
cmovne ebx, edi
or ecx, ebx
inc esi
mov ebx, eax
mov ebp, edi
dec edx
jne 0x506ec0
jmp 0x506f08
xor eax, eax
mov edi, 0xffffffff
or ecx, edi
test ecx, ecx
je 0x506f16
mov esi, dword [esp]
jmp 0x506bd2
inc eax
mov ecx, dword [esp + 8]
mov ebx, ecx
sub ebx, eax
cmp ebx, dword [esp + 0xb0]
jbe 0x506f59
push 0x1d7
push str.external_boringssl_src_crypto_fipsmodule_rsa_padding.c
push 0x71
push 0
push 4
call sym.fastboot.exe_ERR_put_error
add esp, 0x14
mov esi, dword [esp]
push esi
call sym.fastboot.exe_OPENSSL_free
add esp, 4
xor eax, eax
add esp, 0x94
pop esi
pop edi
pop ebx
pop ebp
ret
mov esi, dword [esp + 0xac]
cmp ecx, eax
je 0x506f7a
mov ecx, dword [esp]
add ecx, eax
push ebx
push ecx
push dword [esp + 0xb0]
call sub.api_ms_win_crt_private_l1_1_0.dll_memcpy
add esp, 0xc
mov dword [esi], ebx
push dword [esp]
call sym.fastboot.exe_OPENSSL_free
add esp, 4
mov eax, 1
jmp 0x506f4e