Function at 0x460a90
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff0
sub esp, 0x80
mov esi, dword [ebp + 0x14]
mov ecx, dword [ebp + 0x10]
xorps xmm0, xmm0
mov eax, dword [ebp + 0x1c]
movaps xmmword [esp + 0x10], xmm0
test esi, esi
cmove esi, ecx
mov ecx, dword [ecx + 4]
cmp eax, 0xffffffff
mov edx, ecx
je 0x460ae6
cmp eax, 0xfffffffe
jne 0x460acb
mov edx, 0xfffffffe
jmp 0x460ae6
cmp eax, 0xfffffffd
mov edx, eax
jg 0x460ae6
push 0x1ff
push str.external_boringssl_src_crypto_fipsmodule_rsa_padding.c
push 0x8a
jmp 0x460d9a
mov edi, dword [ebp + 8]
mov dword [esp + 0xc], ecx
mov dword [esp + 8], esi
mov dword [esp + 0x38], edx
mov ecx, dword [edi + 4]
mov esi, dword [ecx + 4]
nop dword [eax + eax]
test esi, esi
jle 0x460b11
mov edx, dword [ecx]
mov edx, dword [edx + esi*4 - 4]
dec esi
test edx, edx
je 0x460b00
jmp 0x460b1f
test esi, esi
je 0x460d6b
mov edx, dword [ecx]
mov edx, dword [edx + esi*4 - 4]
xor ebx, ebx
test edx, edx
mov esi, edx
setne bl
shr esi, 0x10
mov eax, esi
xor esi, edx
neg eax
sar eax, 0x1f
and esi, eax
and eax, 0x10
xor esi, edx
or eax, ebx
mov edx, esi
shr edx, 8
mov ebx, edx
xor edx, esi
neg ebx
sar ebx, 0x1f
and edx, ebx
and ebx, 8
xor edx, esi
or ebx, eax
mov eax, edx
shr eax, 4
mov esi, eax
xor eax, edx
neg esi
sar esi, 0x1f
and eax, esi
and esi, 4
xor eax, edx
or esi, ebx
mov ebx, eax
shr ebx, 2
mov edx, ebx
xor ebx, eax
neg edx
sar edx, 0x1f
and ebx, edx
and edx, 2
xor ebx, eax
or edx, esi
shr ebx, 1
neg ebx
shr ebx, 0x1f
add ebx, edx
mov eax, dword [edi]
dec ebx
and ebx, 7
mov edx, dword [eax + 0x14]
test edx, edx
je 0x460b9d
push edi
call edx
jmp 0x460ba3
push ecx
call sym.fastboot.exe_BN_num_bytes
add esp, 4
mov edi, dword [ebp + 0x18]
mov edx, 0xff
mov ecx, ebx
shl edx, cl
movzx esi, byte [edi]
test edx, esi
je 0x460bca
push 0x206
push str.external_boringssl_src_crypto_fipsmodule_rsa_padding.c
push 0x7a
jmp 0x460d9a
mov ecx, dword [esp + 0xc]
mov edx, eax
xor eax, eax
test ebx, ebx
lea esi, [edi + 1]
sete al
cmovne esi, edi
mov dword [esp + 0x34], edx
mov dword [esp + 0x30], eax
sub edx, eax
lea eax, [ecx + 2]
cmp edx, eax
mov eax, dword [esp + 0x38]
jl 0x460d72
lea eax, [ecx + eax + 2]
cmp edx, eax
jl 0x460d72
cmp byte [esi + edx - 1], 0xbc
jne 0x460d80
mov eax, ecx
not eax
add edx, eax
push edx
mov edi, edx
call sym.fastboot.exe_OPENSSL_malloc
add esp, 4
test eax, eax
je 0x460d8e
lea ecx, [esi + edi]
mov dword [esp + 4], eax
mov edx, edi
mov dword [esp + 0x2c], ecx
mov ecx, eax
push dword [esp + 8]
push dword [esp + 0x10]
push dword [esp + 0x34]
call fcn.004605d0
add esp, 0xc
test eax, eax
je 0x460eea
neg dword [esp + 0x30]
test edi, edi
mov dword [esp + 8], edi
jle 0x460cfc
xor eax, eax
cmp dword [esp + 8], 0x20
mov ecx, 0
jb 0x460cc8
mov ecx, dword [esp + 0x2c]
cmp dword [esp + 4], ecx
jae 0x460c8d
mov ecx, dword [esp + 4]
mov edx, dword [esp + 8]
lea ecx, [ecx + edx]
cmp esi, ecx
mov ecx, 0
jb 0x460cc8
mov ecx, dword [esp + 8]
mov edi, dword [esp + 4]
xor edx, edx
and ecx, 0xffffffe0
movups xmm0, xmmword [esi + edx]
movups xmm2, xmmword [edi + edx]
movups xmm1, xmmword [esi + edx + 0x10]
movups xmm3, xmmword [edi + edx + 0x10]
xorps xmm2, xmm0
xorps xmm3, xmm1
movups xmmword [edi + edx], xmm2
movups xmmword [edi + edx + 0x10], xmm3
add edx, 0x20
cmp ecx, edx
jne 0x460c9a
cmp dword [esp + 8], ecx
je 0x460cfc
mov edx, dword [esp + 0x34]
mov edi, dword [esp + 0x30]
add esi, ecx
lea edi, [edx + edi - 1]
mov edx, dword [esp + 4]
sub edi, ecx
sub edi, dword [esp + 0xc]
lea ecx, [edx + ecx]
nop word cs:[eax + eax]
nop dword [eax]
movzx edx, byte [esi + eax]
xor byte [ecx + eax], dl
inc eax
cmp edi, eax
jne 0x460cf0
test ebx, ebx
je 0x460d11
mov edx, dword [esp + 4]
mov cl, 8
mov eax, 0xff
sub cl, bl
shr eax, cl
and byte [edx], al
mov eax, dword [esp + 8]
mov edx, dword [esp + 0x38]
mov ebx, dword [esp + 4]
xor esi, esi
dec eax
movzx ecx, byte [ebx + esi]
cmp esi, eax
lea esi, [esi + 1]
jge 0x460d2f
test cl, cl
je 0x460d20
cmp cl, 1
jne 0x460dda
test edx, edx
js 0x460df9
mov eax, dword [esp + 0x34]
mov ecx, dword [esp + 0x30]
lea eax, [eax + ecx - 1]
sub eax, edx
sub eax, dword [esp + 0xc]
cmp eax, esi
je 0x460df9
push 0x22e
push str.external_boringssl_src_crypto_fipsmodule_rsa_padding.c
push 0x8a
jmp 0x460de9
xor ebx, ebx
jmp 0x460b8b
push 0x20f
push str.external_boringssl_src_crypto_fipsmodule_rsa_padding.c
push 0x71
jmp 0x460d9a
push 0x213
push str.external_boringssl_src_crypto_fipsmodule_rsa_padding.c
push 0x7f
jmp 0x460d9a
push 0x21a
push str.external_boringssl_src_crypto_fipsmodule_rsa_padding.c
push 0x41
push 0
push 4
call sym.fastboot.exe_ERR_put_error
add esp, 0x14
xor edi, edi
xor ebx, ebx
push ebx
call sym.fastboot.exe_OPENSSL_free
add esp, 4
push dword [esp + 0x14]
call sym.fastboot.exe_OPENSSL_free
add esp, 4
mov eax, dword [esp + 0x1c]
test eax, eax
je 0x460dd0
push dword [esp + 0x18]
call dword [eax]
add esp, 4
mov eax, edi
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret
push 0x22a
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 0x460daa
mov eax, dword [ebp + 0x10]
cmp dword [esp + 0x10], eax
mov ecx, eax
je 0x460e31
mov edi, ecx
push dword [ecx + 0x1c]
call sym.fastboot.exe_OPENSSL_malloc
add esp, 4
test eax, eax
je 0x460ed2
mov ebx, eax
push dword [esp + 0x14]
call sym.fastboot.exe_OPENSSL_free
add esp, 4
mov ecx, edi
mov dword [esp + 0x14], ebx
mov dword [esp + 0x10], edi
mov edi, dword [esp + 8]
lea ebx, [esp + 0x10]
sub edi, esi
push ebx
call dword [ecx + 0xc]
add esp, 4
mov eax, dword [esp + 0x10]
push 8
push 0x526bf6
push ebx
call dword [eax + 0x10]
add esp, 0xc
mov ebx, dword [esp + 0xc]
mov eax, dword [esp + 0x10]
push ebx
push dword [ebp + 0xc]
lea ecx, [esp + 0x18]
push ecx
call dword [eax + 0x10]
add esp, 0xc
mov eax, dword [esp + 4]
mov ecx, dword [esp + 0x10]
add eax, esi
push edi
push eax
lea edi, [esp + 0x18]
push edi
call dword [ecx + 0x10]
add esp, 0xc
mov eax, dword [esp + 0x10]
lea esi, [esp + 0x3c]
push esi
push edi
call dword [eax + 0x14]
add esp, 8
mov eax, dword [esp + 0x10]
push dword [eax + 0x1c]
push dword [esp + 0x18]
call sym.fastboot.exe_OPENSSL_cleanse
add esp, 8
mov edi, 1
test ebx, ebx
je 0x460eec
push ebx
push dword [esp + 0x30]
push esi
call sub.msvcrt.dll_memcmp
add esp, 0xc
test eax, eax
je 0x460eec
push 0x239
push str.external_boringssl_src_crypto_fipsmodule_rsa_padding.c
push 0x69
push 0
push 4
jmp 0x460ee2
push 0xb4
push str.external_boringssl_src_crypto_fipsmodule_digest_digest.c
push 0x41
push 0
push 0x1d
call sym.fastboot.exe_ERR_put_error
add esp, 0x14
xor edi, edi
mov ebx, dword [esp + 4]
jmp 0x460daa