Function at 0x460320
Capabilities:
Encode data using xor

Disassembly:
push ebp
push ebx
push edi
push esi
sub esp, 0x50
mov eax, dword [esp + 0x7c]
mov ebp, dword [esp + 0x80]
mov ebx, dword [esp + 0x68]
test eax, eax
jne 0x460351
push 0x450cd0
push 0x53f904
call sym.fastboot.exe_CRYPTO_once
add esp, 8
mov eax, 0x53f908
mov esi, dword [eax + 4]
test ebp, ebp
cmove ebp, eax
lea ecx, [esi + esi + 2]
cmp ecx, ebx
jbe 0x460368
push 0x147
jmp 0x460396
lea ecx, [esi + esi]
mov edi, ecx
not edi
lea edx, [ebx + edi - 1]
cmp edx, dword [esp + 0x70]
jae 0x460387
push 0x14d
push str.external_boringssl_src_crypto_fipsmodule_rsa_padding.c
push 0x72
jmp 0x46039d
lea edx, [ebx - 1]
or ecx, 1
cmp edx, ecx
jae 0x4603b5
push 0x152
push str.external_boringssl_src_crypto_fipsmodule_rsa_padding.c
push 0x7e
push 0
push 4
call sym.fastboot.exe_ERR_put_error
add esp, 0x14
xor ecx, ecx
mov eax, ecx
add esp, 0x50
pop esi
pop edi
pop ebx
pop ebp
ret
mov ecx, dword [esp + 0x64]
mov dword [esp], edx
mov edx, dword [esp + 0x78]
mov byte [ecx], 0
lea ecx, [ecx + esi + 1]
sub esp, 4
push eax
push 0
mov dword [esp + 0x18], ecx
push ecx
push edx
push dword [esp + 0x88]
call sym.fastboot.exe_EVP_Digest
add esp, 0x18
xor ecx, ecx
test eax, eax
je 0x4603ab
mov eax, dword [esp]
mov edx, dword [esp + 0xc]
sub eax, dword [esp + 0x70]
add edi, eax
mov dword [esp + 4], eax
je 0x46040e
lea eax, [edx + esi]
push edi
push 0
push eax
mov edi, edx
call sub.msvcrt.dll_memset
mov edx, edi
add esp, 0xc
mov eax, dword [esp + 0x64]
mov edi, dword [esp + 4]
lea ecx, [eax + 1]
mov eax, esi
not eax
mov dword [esp + 8], ecx
add edi, eax
mov byte [edx + edi], 1
mov edi, dword [esp + 0x70]
test edi, edi
mov edi, dword [esp]
je 0x460450
lea eax, [edx + edi]
sub eax, dword [esp + 0x70]
sub eax, esi
push dword [esp + 0x70]
push dword [esp + 0x70]
push eax
call sub.msvcrt.dll_memcpy
mov ecx, dword [esp + 0x14]
add esp, 0xc
push 0x526b67
push esi
push ecx
call fcn.004497a0
add esp, 0xc
sub edi, esi
push edi
call sym.fastboot.exe_OPENSSL_malloc
add esp, 4
test eax, eax
je 0x4604ad
mov dword [esp], eax
mov ecx, eax
mov edx, edi
push ebp
push esi
push dword [esp + 0x10]
call fcn.004605d0
add esp, 0xc
test eax, eax
je 0x4604be
mov edx, dword [esp + 0xc]
mov ecx, dword [esp]
test edi, edi
mov dword [esp + 4], 0
je 0x460540
xor eax, eax
cmp edi, 0x1f
ja 0x4604ce
mov ecx, dword [esp]
jmp 0x460530
push 0x166
push str.external_boringssl_src_crypto_fipsmodule_rsa_padding.c
push 0x41
jmp 0x46039d
mov edi, dword [esp]
mov dword [esp + 4], 0
jmp 0x4605bd
mov ecx, dword [esp]
lea ecx, [ecx + edi]
cmp edx, ecx
mov ecx, dword [esp]
jae 0x4604e3
add ebx, dword [esp + 0x64]
cmp ecx, ebx
jb 0x460530
mov eax, edi
mov ebx, edi
mov edi, ecx
mov ecx, dword [esp + 0x64]
xor edx, edx
and eax, 0xffffffe0
lea ecx, [ecx + esi + 0x11]
movups xmm0, xmmword [edi + edx]
movups xmm2, xmmword [ecx + edx - 0x10]
movups xmm1, xmmword [edi + edx + 0x10]
movups xmm3, xmmword [ecx + edx]
xorps xmm2, xmm0
xorps xmm3, xmm1
movups xmmword [ecx + edx - 0x10], xmm2
movups xmmword [ecx + edx], xmm3
add edx, 0x20
cmp eax, edx
jne 0x4604f6
mov edx, dword [esp + 0xc]
mov ecx, edi
mov edi, ebx
cmp ebx, eax
je 0x460540
nop word [eax + eax]
mov ebx, ecx
movzx ecx, byte [ecx + eax]
xor byte [edx + eax], cl
inc eax
mov ecx, ebx
cmp edi, eax
jne 0x460530
mov ebx, ecx
mov eax, edx
lea ecx, [esp + 0x10]
mov edx, esi
push ebp
push edi
push eax
call fcn.004605d0
add esp, 0xc
test eax, eax
mov edi, ebx
je 0x4605bd
test esi, esi
mov dword [esp + 4], 1
je 0x4605bd
xor eax, eax
cmp esi, 0x1f
jbe 0x4605a8
mov edx, dword [esp + 0x64]
mov eax, esi
xor ecx, ecx
and eax, 0xffffffe0
movups xmm0, xmmword [esp + ecx + 0x10]
movups xmm2, xmmword [edx + ecx + 1]
movups xmm1, xmmword [esp + ecx + 0x20]
movups xmm3, xmmword [edx + ecx + 0x11]
xorps xmm2, xmm0
xorps xmm3, xmm1
movups xmmword [edx + ecx + 1], xmm2
movups xmmword [edx + ecx + 0x11], xmm3
add ecx, 0x20
cmp eax, ecx
jne 0x460579
cmp esi, eax
je 0x4605bd
mov edx, dword [esp + 8]
nop dword [eax]
movzx ecx, byte [esp + eax + 0x10]
xor byte [edx + eax], cl
inc eax
cmp esi, eax
jne 0x4605b0
push edi
call sym.fastboot.exe_OPENSSL_free
add esp, 4
mov ecx, dword [esp + 4]
jmp 0x4603ab