Function at 0x571540
Capabilities:
Encode data using xor

Disassembly:
push ebp
push ebx
push edi
push esi
sub esp, 0x94
mov ebp, dword [esp + 0xc8]
mov ebx, dword [esp + 0xc4]
mov edi, dword [esp + 0xb8]
test ebx, ebx
jne 0x57156a
call sym.fastboot.exe_EVP_sha1
mov ebx, eax
test ebp, ebp
cmove ebp, ebx
push ebx
call sym.fastboot.exe_EVP_MD_size
add esp, 4
lea ecx, [eax*2 + 2]
xor esi, esi
cmp ecx, edi
jbe 0x5715a5
push 0xfb
push str.external_boringssl_src_crypto_rsa_extra_rsa_crypt.c
push 0x85
push 0
push 4
call sym.fastboot.exe_ERR_put_error
add esp, 0x14
jmp 0x5718e3
mov dword [esp + 0x10], ebx
mov ebx, eax
not ebx
add ebx, edi
push ebx
mov edi, eax
call sym.fastboot.exe_OPENSSL_malloc
add esp, 4
test eax, eax
je 0x5716b0
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]
push ebp
push ebx
mov dword [esp + 0x14], eax
push eax
push edi
push ecx
call fcn.004fd210
add esp, 0x14
test eax, eax
je 0x5718e3
test edi, edi
mov edx, edi
mov dword [esp + 4], edi
mov edi, dword [esp + 0xc]
je 0x5716ca
mov eax, dword [esp + 0xb4]
inc eax
xor ecx, ecx
cmp edx, 8
jb 0x5716bb
xor ecx, ecx
cmp edx, 0x20
jb 0x57167c
mov ecx, edx
and ecx, 0xffffffe0
xor edx, edx
mov edi, dword [esp + 0xb4]
nop dword [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 0x571640
mov edx, dword [esp + 4]
cmp edx, ecx
mov edi, dword [esp + 0xc]
je 0x5716ca
test dl, 0x18
je 0x5716bb
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 0x571690
mov edx, dword [esp + 4]
jmp 0x5716b7
xor esi, esi
jmp 0x5718e3
cmp edx, ecx
je 0x5716ca
movzx edx, byte [eax + ecx]
xor byte [esp + ecx + 0x14], dl
mov edx, dword [esp + 4]
inc ecx
jmp 0x5716b7
push ebp
push edx
lea eax, [esp + 0x1c]
push eax
push ebx
push esi
call fcn.004fd210
add esp, 0x14
test eax, eax
je 0x5718e3
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 0x5717e0
xor edx, edx
cmp ebx, 8
jb 0x5717d0
mov esi, dword [esp + 0xb8]
add esi, ebp
cmp dword [esp], esi
mov esi, dword [esp]
jae 0x571733
mov esi, dword [esp]
add esi, ebx
cmp edi, esi
mov esi, dword [esp]
jb 0x5717d0
xor edx, edx
cmp ebx, 0x20
jb 0x571794
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
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 0x571750
mov ebx, dword [esp + 8]
cmp ebx, edx
mov esi, ebp
mov ebp, dword [esp + 0xb4]
mov edi, dword [esp + 0xc]
je 0x5717e0
test bl, 0x18
je 0x5717d0
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 0x5717a0
mov ebp, dword [esp + 8]
cmp ebp, edx
mov esi, ebx
mov ebx, ebp
mov ebp, dword [esp + 0xb4]
je 0x5717e0
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 0x5717d0
xorps xmm0, xmm0
movups xmmword [esp + 0x84], xmm0
movups xmmword [esp + 0x74], xmm0
movups xmmword [esp + 0x64], xmm0
movups xmmword [esp + 0x54], xmm0
lea esi, [esp + 0x54]
push 0
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 0x5718e0
mov edi, dword [esp + 4]
push edi
push esi
mov esi, dword [esp + 8]
push esi
call sym.fastboot.exe_CRYPTO_memcmp
add esp, 0xc
mov ecx, eax
not ecx
dec eax
and eax, ecx
movzx ecx, byte [ebp]
dec ecx
and ecx, eax
not ecx
sar ecx, 0x1f
cmp edi, ebx
jae 0x5718a1
mov edx, edi
mov ebx, edi
add ebx, edx
not ebx
add ebx, dword [esp + 0xb8]
mov ebp, 0xffffffff
xor esi, esi
nop dword [eax]
mov dword [esp + 0x10], ebx
mov dword [esp + 4], ecx
mov eax, dword [esp]
movzx ebx, byte [eax + edx]
mov edi, ebx
xor edi, 1
dec edi
sar edi, 0x1f
mov ecx, edi
and ecx, ebp
mov eax, edx
xor eax, esi
and eax, ecx
mov ecx, dword [esp + 4]
xor eax, esi
not edi
and edi, ebp
test ebx, ebx
cmovne ebx, edi
or ecx, ebx
mov ebx, dword [esp + 0x10]
inc edx
mov esi, eax
mov ebp, edi
dec ebx
jne 0x571860
jmp 0x5718a8
xor eax, eax
mov edi, 0xffffffff
or ecx, edi
test ecx, ecx
je 0x5718b6
mov esi, dword [esp]
jmp 0x571585
inc eax
mov ecx, dword [esp + 8]
mov ebx, ecx
sub ebx, eax
cmp ebx, dword [esp + 0xb0]
jbe 0x5718f9
push 0xef
push str.external_boringssl_src_crypto_rsa_extra_rsa_crypt.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 0x57191a
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 0x5718ee