Function at 0x571d40
Capabilities:
Encode data using xor

Disassembly:
push ebp
push ebx
push edi
push esi
sub esp, 0x18
mov ebx, dword [esp + 0x2c]
mov eax, dword [ebx]
mov eax, dword [eax + 0x20]
test eax, eax
je 0x571d5d
add esp, 0x18
pop esi
pop edi
pop ebx
pop ebp
jmp eax
mov eax, dword [esp + 0x44]
mov dword [esp], eax
mov eax, dword [esp + 0x40]
mov dword [esp + 0xc], eax
mov eax, dword [esp + 0x3c]
mov dword [esp + 8], eax
mov ebp, dword [esp + 0x38]
mov esi, dword [esp + 0x34]
mov eax, dword [esp + 0x30]
mov dword [esp + 4], eax
push ebx
call sym.fastboot.exe_RSA_size
add esp, 4
cmp eax, ebp
jbe 0x571db3
push 0x1dc
push str.external_boringssl_src_crypto_rsa_extra_rsa_crypt.c
push 0x87
push 0
push 4
call sym.fastboot.exe_ERR_put_error
add esp, 0x14
xor ebx, ebx
jmp 0x571ecd
mov edi, eax
mov ebp, esi
cmp dword [esp], 3
mov eax, esi
je 0x571dd6
push edi
mov esi, eax
call sym.fastboot.exe_OPENSSL_malloc
add esp, 4
mov ebp, eax
mov eax, esi
test ebp, ebp
je 0x571e59
mov esi, dword [esp + 0xc]
cmp edi, esi
jne 0x571e33
mov dword [esp + 0x10], eax
push esi
push dword [esp + 0xc]
push ebp
push ebx
call fcn.005015a0
add esp, 0x10
xor ebx, ebx
test eax, eax
mov edi, dword [esp]
je 0x571e50
cmp edi, 4
je 0x571e5f
cmp edi, 3
je 0x571e98
cmp edi, 1
jne 0x571ea5
test esi, esi
je 0x571ed7
cmp esi, 0xa
ja 0x571f0f
push 0x125
push str.external_boringssl_src_crypto_rsa_extra_rsa_crypt.c
push 0x7e
jmp 0x571ee3
push 0x1eb
push str.external_boringssl_src_crypto_rsa_extra_rsa_crypt.c
push 0x70
push 0
push 4
call sym.fastboot.exe_ERR_put_error
add esp, 0x14
xor ebx, ebx
mov edi, dword [esp]
mov esi, ebx
cmp edi, 3
jne 0x571ec2
jmp 0x571ecd
xor esi, esi
xor ebp, ebp
jmp 0x571ec2
sub esp, 0x24
xorps xmm0, xmm0
movups xmmword [esp + 0x14], xmm0
mov dword [esp + 0x10], esi
mov dword [esp + 0xc], ebp
mov dword [esp + 8], esi
mov eax, dword [esp + 0x28]
mov dword [esp + 4], eax
mov eax, dword [esp + 0x34]
mov dword [esp], eax
call fcn.00571540
add esp, 0x24
mov esi, 1
test eax, eax
jne 0x571ec2
jmp 0x571eef
mov eax, dword [esp + 4]
mov dword [eax], esi
mov ebx, 1
jmp 0x571ecd
push 0x202
push str.external_boringssl_src_crypto_rsa_extra_rsa_crypt.c
push 0x8f
push 0
push 4
call sym.fastboot.exe_ERR_put_error
add esp, 0x14
xor esi, esi
push ebp
call sym.fastboot.exe_OPENSSL_free
add esp, 4
mov ebx, esi
mov eax, ebx
add esp, 0x18
pop esi
pop edi
pop ebx
pop ebp
ret
push 0x11c
push str.external_boringssl_src_crypto_rsa_extra_rsa_crypt.c
push pe_nt_image_headers32
push 0
push 4
call sym.fastboot.exe_ERR_put_error
add esp, 0x14
push 0x208
push str.external_boringssl_src_crypto_rsa_extra_rsa_crypt.c
push 0x88
push 0
push 4
call sym.fastboot.exe_ERR_put_error
add esp, 0x14
jmp 0x571e50
movzx eax, byte [ebp]
mov dword [esp + 8], eax
movzx eax, byte [ebp + 1]
mov dword [esp + 0x14], eax
xor eax, eax
mov ecx, 0xffffffff
mov esi, 2
mov edx, eax
mov ebx, ecx
movzx ecx, byte [ebp + esi]
dec ecx
sar ecx, 0x1f
mov edi, ebp
mov ebp, ecx
and ebp, ebx
mov eax, esi
xor eax, edx
and eax, ebp
mov ebp, edi
xor eax, edx
not ecx
and ecx, ebx
inc esi
cmp dword [esp + 0xc], esi
jne 0x571f2b
lea edx, [eax - 0xa]
mov esi, eax
not esi
test edx, esi
js 0x571f99
mov esi, dword [esp + 0x14]
xor esi, 2
mov edx, dword [esp + 8]
dec edx
dec esi
and esi, edx
jns 0x571f99
cmp ecx, 0xffffffff
je 0x571f99
inc eax
mov esi, dword [esp + 0xc]
sub esi, eax
mov edi, dword [esp]
mov ebx, 0
jae 0x571fbe
push 0x152
push str.external_boringssl_src_crypto_rsa_extra_rsa_crypt.c
push 0x89
jmp 0x571ee3
push 0x14a
push str.external_boringssl_src_crypto_rsa_extra_rsa_crypt.c
push 0x89
push 0
push 4
call sym.fastboot.exe_ERR_put_error
add esp, 0x14
mov edi, dword [esp]
xor ebx, ebx
jmp 0x571eef
je 0x571fd0
add eax, ebp
push esi
push eax
push dword [esp + 0x18]
call sub.api_ms_win_crt_private_l1_1_0.dll_memcpy
add esp, 0xc
mov eax, dword [esp + 4]
mov dword [eax], esi
mov ebx, 1
jmp 0x571e50