Function at 0x4c47f0
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 0x4c4821
push 0x4b59a0
push 0x537f54
call sym.fastboot.exe_CRYPTO_once
add esp, 8
mov eax, 0x537f58
mov esi, dword [eax + 4]
test ebp, ebp
cmove ebp, eax
lea ecx, [esi + esi + 2]
cmp ecx, ebx
jbe 0x4c4838
push 0x14a
jmp 0x4c4866
lea ecx, [esi + esi]
mov edi, ecx
not edi
lea edx, [ebx + edi - 1]
cmp edx, dword [esp + 0x70]
jae 0x4c4857
push 0x150
push str.external_boringssl_src_crypto_fipsmodule_rsa_padding.c
push 0x72
jmp 0x4c486d
lea edx, [ebx - 1]
or ecx, 1
cmp edx, ecx
jae 0x4c4885
push 0x155
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 0x4c487b
mov eax, dword [esp]
mov edx, dword [esp + 0xc]
sub eax, dword [esp + 0x70]
add edi, eax
mov dword [esp + 4], eax
je 0x4c48de
lea eax, [edx + esi]
push edi
push 0
push eax
mov edi, edx
call sub.api_ms_win_crt_string_l1_1_0.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 0x4c4920
lea eax, [edx + edi]
sub eax, dword [esp + 0x70]
sub eax, esi
push dword [esp + 0x70]
push dword [esp + 0x70]
push eax
call sub.api_ms_win_crt_private_l1_1_0.dll_memcpy
mov ecx, dword [esp + 0x14]
add esp, 0xc
push 0x520af4
push esi
push ecx
call fcn.004aedb0
add esp, 0xc
sub edi, esi
push edi
call sym.fastboot.exe_OPENSSL_malloc
add esp, 4
test eax, eax
je 0x4c497d
mov dword [esp], eax
mov ecx, eax
mov edx, edi
push ebp
push esi
push dword [esp + 0x10]
call fcn.004c4aa0
add esp, 0xc
test eax, eax
je 0x4c498e
mov edx, dword [esp + 0xc]
mov ecx, dword [esp]
test edi, edi
mov dword [esp + 4], 0
je 0x4c4a10
xor eax, eax
cmp edi, 0x1f
ja 0x4c499e
mov ecx, dword [esp]
jmp 0x4c4a00
push 0x169
push str.external_boringssl_src_crypto_fipsmodule_rsa_padding.c
push 0x41
jmp 0x4c486d
mov edi, dword [esp]
mov dword [esp + 4], 0
jmp 0x4c4a8d
mov ecx, dword [esp]
add ecx, edi
cmp edx, ecx
mov ecx, dword [esp]
jae 0x4c49b2
add ebx, dword [esp + 0x64]
cmp ecx, ebx
jb 0x4c4a00
mov eax, edi
mov ebx, edi
mov edi, ecx
mov ecx, dword [esp + 0x64]
xor edx, edx
and eax, 0xffffffe0
lea ecx, [esi + ecx + 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 0x4c49c5
mov edx, dword [esp + 0xc]
mov ecx, edi
mov edi, ebx
cmp ebx, eax
je 0x4c4a10
nop dword [eax]
mov ebx, ecx
movzx ecx, byte [ecx + eax]
xor byte [edx + eax], cl
inc eax
mov ecx, ebx
cmp edi, eax
jne 0x4c4a00
mov ebx, ecx
mov eax, edx
lea ecx, [esp + 0x10]
mov edx, esi
push ebp
push edi
push eax
call fcn.004c4aa0
add esp, 0xc
test eax, eax
mov edi, ebx
je 0x4c4a8d
test esi, esi
mov dword [esp + 4], 1
je 0x4c4a8d
xor eax, eax
cmp esi, 0x1f
jbe 0x4c4a78
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 0x4c4a49
cmp esi, eax
je 0x4c4a8d
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 0x4c4a80
push edi
call sym.fastboot.exe_OPENSSL_free
add esp, 4
mov ecx, dword [esp + 4]
jmp 0x4c487b