Function at 0x506f90
Capabilities:
Encode data using xor

Disassembly:
push ebp
push ebx
push edi
push esi
sub esp, 0x74
mov eax, dword [esp + 0x9c]
mov ecx, dword [esp + 0x90]
mov esi, dword [esp + 0x94]
test esi, esi
cmove esi, ecx
xorps xmm0, xmm0
movups xmmword [esp + 0x20], xmm0
mov ecx, dword [ecx + 4]
mov edx, ecx
cmp eax, 0xffffffff
je 0x506fe7
cmp eax, 0xfffffffe
jne 0x506fcf
mov edx, 0xfffffffe
jmp 0x506fe7
mov edx, eax
jge 0x506fe7
push 0x204
push str.external_boringssl_src_crypto_fipsmodule_rsa_padding.c
push 0x8a
jmp 0x5071e7
mov dword [esp + 0x18], esi
mov dword [esp + 0x1c], edx
mov dword [esp + 0x10], ecx
mov esi, dword [esp + 0x98]
mov edx, dword [esp + 0x88]
mov ecx, dword [edx + 4]
mov ebp, dword [ecx + 4]
mov eax, ebp
sar eax, 0x1f
and eax, ebp
mov dword [esp + 8], eax
mov edi, ebp
nop word cs:[eax + eax]
test edi, edi
jle 0x507031
mov eax, dword [ecx]
mov eax, dword [eax + edi*4 - 4]
dec edi
test eax, eax
je 0x507020
jmp 0x507048
xor ebx, ebx
test ebp, ebp
jns 0x5070d1
mov eax, dword [ecx]
mov edx, dword [esp + 8]
lea edi, [edx - 1]
mov eax, dword [eax + edx*4 - 4]
shl edi, 5
xor ebx, ebx
test eax, eax
setne bl
mov dword [esp + 4], ebp
mov ebp, eax
shr ebp, 0x10
xor edx, edx
cmp eax, 0x10000
setae dl
cmovb ebp, eax
shl edx, 4
mov esi, ebp
shr esi, 8
xor eax, eax
cmp ebp, 0x100
setae al
mov dword [esp], eax
cmovb esi, ebp
mov ebp, esi
shr ebp, 4
xor eax, eax
cmp esi, 0x10
cmovb ebp, esi
setae al
mov dword [esp + 0xc], eax
mov esi, ebp
shr esi, 2
xor eax, eax
cmp ebp, 4
cmovb esi, ebp
mov ebp, dword [esp + 4]
setae al
or ebx, edi
or ebx, edx
mov edx, dword [esp]
lea edx, [ebx + edx*8]
mov edi, dword [esp + 0xc]
lea edx, [edx + edi*4]
cmp esi, 2
mov esi, dword [esp + 0x98]
lea ebx, [edx + eax*2]
mov edx, dword [esp + 0x88]
sbb ebx, 0xffffffff
dec ebx
and ebx, 7
mov eax, dword [edx]
mov eax, dword [eax + 0x14]
test eax, eax
je 0x5070eb
push edx
call eax
add esp, 4
mov edi, eax
jmp 0x507199
mov esi, ebp
nop dword [eax]
test esi, esi
jle 0x507101
mov eax, dword [ecx]
mov edi, dword [eax + esi*4 - 4]
dec esi
test edi, edi
je 0x5070f0
jmp 0x50711d
xor edi, edi
test ebp, ebp
mov esi, dword [esp + 0x98]
jns 0x507199
mov eax, dword [ecx]
mov esi, dword [esp + 8]
mov edi, dword [eax + esi*4 - 4]
dec esi
shl esi, 5
mov edx, edi
shr edx, 0x10
xor eax, eax
cmp edi, 0x10000
setae al
cmovb edx, edi
shl eax, 4
mov dword [esp + 4], eax
mov ebp, edx
shr ebp, 8
xor eax, eax
cmp edx, 0x100
setae al
mov dword [esp], eax
cmovb ebp, edx
mov eax, ebp
shr eax, 4
xor edx, edx
cmp ebp, 0x10
cmovb eax, ebp
setae dl
mov ebp, eax
shr ebp, 2
xor ecx, ecx
cmp eax, 4
cmovb ebp, eax
setae cl
cmp edi, 1
sbb esi, 0
add esi, 8
or esi, dword [esp + 4]
cmp ebp, 2
mov eax, dword [esp]
lea eax, [esi + eax*8]
lea eax, [eax + edx*4]
lea edi, [eax + ecx*2]
sbb edi, 0xffffffff
shr edi, 3
mov esi, dword [esp + 0x98]
movzx eax, byte [esi]
mov ecx, ebx
shr eax, cl
test eax, eax
je 0x5071b2
push 0x20b
push str.external_boringssl_src_crypto_fipsmodule_rsa_padding.c
push 0x7a
jmp 0x5071e7
xor eax, eax
test ebx, ebx
sete al
mov edx, edi
mov dword [esp + 4], eax
sub edx, eax
mov ecx, dword [esp + 0x10]
lea eax, [ecx + 2]
cmp edx, eax
jb 0x5071db
cmp dword [esp + 0x1c], 0
js 0x507227
add eax, dword [esp + 0x1c]
cmp edx, eax
jae 0x507227
push 0x215
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
xor edi, edi
xor esi, esi
push esi
call sym.fastboot.exe_OPENSSL_free
add esp, 4
push dword [esp + 0x24]
call sym.fastboot.exe_OPENSSL_free
add esp, 4
mov eax, dword [esp + 0x2c]
test eax, eax
je 0x50721d
push dword [esp + 0x28]
call dword [eax]
add esp, 4
mov eax, edi
add esp, 0x74
pop esi
pop edi
pop ebx
pop ebp
ret
mov eax, dword [esp + 4]
lea ebp, [esi + eax]
cmp byte [edx + ebp - 1], 0xbc
jne 0x5073ff
mov eax, ecx
not eax
mov esi, eax
mov dword [esp + 0xc], eax
add edx, eax
mov dword [esp], edx
push edx
call sym.fastboot.exe_OPENSSL_malloc
add esp, 4
test eax, eax
je 0x5071f3
mov esi, eax
mov edx, dword [esp]
lea eax, [edx + ebp]
mov ecx, esi
push dword [esp + 0x18]
push dword [esp + 0x14]
mov dword [esp + 0x20], eax
push eax
call fcn.00506a20
add esp, 0xc
test eax, eax
je 0x507410
mov eax, dword [esp + 4]
neg eax
mov dword [esp + 8], eax
cmp dword [esp], 0
mov eax, dword [esp + 0x98]
mov dword [esp + 0x30], eax
je 0x5073a1
xor ecx, ecx
mov edx, 0
cmp dword [esp], 8
jb 0x507368
mov eax, dword [esp + 8]
add eax, edi
mov dword [esp + 0x14], eax
mov edx, dword [esp + 0xc]
mov eax, ebp
mov ebp, dword [esp + 4]
add edx, ebp
mov ebp, eax
add edx, dword [esp + 0x14]
add edx, dword [esp + 0x98]
cmp esi, edx
jae 0x5072e5
mov eax, dword [esp]
add eax, esi
mov edx, 0
cmp ebp, eax
jb 0x507368
xor edx, edx
cmp dword [esp], 0x20
jb 0x507342
mov dword [esp + 0x14], ebp
mov ebp, dword [esp]
and ebp, 0xffffffe0
mov eax, dword [esp + 4]
mov edx, dword [esp + 0x98]
add edx, eax
add edx, 0x10
xor eax, eax
movups xmm0, xmmword [edx + eax - 0x10]
movups xmm1, xmmword [edx + eax]
movups xmm2, xmmword [esi + eax]
xorps xmm2, xmm0
movups xmm0, xmmword [esi + eax + 0x10]
xorps xmm0, xmm1
movups xmmword [esi + eax], xmm2
movups xmmword [esi + eax + 0x10], xmm0
add eax, 0x20
cmp ebp, eax
jne 0x507309
cmp dword [esp], ebp
mov edx, ebp
mov ebp, dword [esp + 0x14]
je 0x5073a1
test byte [esp], 0x18
je 0x507368
mov eax, edx
mov edx, dword [esp]
and edx, 0xfffffff8
movsd xmm0, qword [ebp + eax]
movsd xmm1, qword [esi + eax]
xorps xmm1, xmm0
movlps qword [esi + eax], xmm1
add eax, 8
cmp edx, eax
jne 0x50734a
cmp dword [esp], edx
je 0x5073a1
mov eax, dword [esp + 4]
add eax, edx
add dword [esp + 0x30], eax
mov eax, dword [esp + 8]
add eax, edi
sub eax, edx
add eax, dword [esp + 0xc]
lea ebp, [esi + edx]
nop word cs:[eax + eax]
mov edx, dword [esp + 0x30]
movzx edx, byte [edx + ecx]
xor byte [ebp + ecx], dl
inc ecx
cmp eax, ecx
jne 0x507390
test ebx, ebx
je 0x5073b2
mov cl, 8
sub cl, bl
mov eax, 0xff
shr eax, cl
and byte [esi], al
mov eax, dword [esp]
dec eax
xor ecx, ecx
nop dword [eax + eax]
movzx edx, byte [esi + ecx]
lea ebx, [ecx + 1]
test dl, dl
jne 0x5073d1
cmp ecx, eax
mov ecx, ebx
jb 0x5073c0
cmp dl, 1
jne 0x507417
mov eax, dword [esp + 0x1c]
test eax, eax
js 0x507439
add edi, dword [esp + 8]
sub edi, eax
mov eax, dword [esp + 0xc]
add eax, edi
cmp eax, ebx
je 0x507439
push 0x23a
push str.external_boringssl_src_crypto_fipsmodule_rsa_padding.c
push 0x8a
jmp 0x507426
push 0x219
push str.external_boringssl_src_crypto_fipsmodule_rsa_padding.c
push 0x7f
jmp 0x5071e7
xor edi, edi
jmp 0x5071f7
push 0x234
push str.external_boringssl_src_crypto_fipsmodule_rsa_padding.c
push 0x8b
push 0
push 4
call sym.fastboot.exe_ERR_put_error
add esp, 0x14
xor edi, edi
jmp 0x5071f7
xorps xmm0, xmm0
movups xmmword [esp + 0x64], xmm0
movups xmmword [esp + 0x54], xmm0
movups xmmword [esp + 0x44], xmm0
movups xmmword [esp + 0x34], xmm0
sub esp, 4
lea ebp, [esp + 0x24]
push dword [esp + 0x94]
push ebp
call sym.fastboot.exe_EVP_DigestInit_ex
add esp, 0xc
xor edi, edi
test eax, eax
je 0x5071f7
mov ecx, ebp
mov ebp, dword [esp]
sub ebp, ebx
mov eax, dword [esp + 0x20]
push 8
push 0x5967ca
push ecx
call dword [eax + 0x10]
add esp, 0xc
mov eax, dword [esp + 0x20]
push dword [esp + 0x10]
push dword [esp + 0x90]
lea ecx, [esp + 0x28]
push ecx
call dword [eax + 0x10]
add esp, 0xc
mov eax, esi
add eax, ebx
mov ecx, dword [esp + 0x20]
push ebp
push eax
lea ebp, [esp + 0x28]
push ebp
call dword [ecx + 0x10]
add esp, 0xc
mov eax, dword [esp + 0x20]
lea ebx, [esp + 0x34]
push ebx
push ebp
call dword [eax + 0x14]
add esp, 8
mov eax, dword [esp + 0x20]
push dword [eax + 0x1c]
push dword [esp + 0x28]
call sym.fastboot.exe_OPENSSL_cleanse
mov ebp, dword [esp + 0x18]
add esp, 8
test ebp, ebp
je 0x507513
push ebp
push dword [esp + 0x1c]
push ebx
call sub.api_ms_win_crt_private_l1_1_0.dll_memcmp
add esp, 0xc
test eax, eax
je 0x507513
push 0x246
push str.external_boringssl_src_crypto_fipsmodule_rsa_padding.c
push 0x69
push 0
push 4
call sym.fastboot.exe_ERR_put_error
add esp, 0x14
jmp 0x5071f7
mov edi, 1
jmp 0x5071f7