Function at 0x4d64e0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff0
sub esp, 0x70
mov eax, dword [ebp + 0x20]
mov edi, dword [ebp + 0x24]
mov ebx, dword [ebp + 0xc]
test eax, eax
jne 0x4d6510
push 0x4c51e0
push 0x54b074
call sym.fastboot.exe_CRYPTO_once
add esp, 8
mov eax, 0x54b078
mov edx, dword [eax + 4]
test edi, edi
cmove edi, eax
lea ecx, [edx + edx + 2]
cmp ecx, ebx
jbe 0x4d6527
push 0x14a
jmp 0x4d6558
lea ecx, [edx + edx]
mov dword [esp + 0xc], edx
mov esi, ecx
not esi
lea edx, [ebx + esi - 1]
cmp edx, dword [ebp + 0x14]
jae 0x4d6549
push 0x150
push str.external_boringssl_src_crypto_fipsmodule_rsa_padding.c
push 0x72
jmp 0x4d655f
lea edx, [ebx - 1]
or ecx, 1
cmp edx, ecx
jae 0x4d6577
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
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret
mov dword [esp + 0x14], edx
mov edx, dword [ebp + 8]
mov ecx, dword [esp + 0xc]
lea ecx, [edx + ecx + 1]
mov byte [edx], 0
sub esp, 4
push eax
push 0
mov dword [esp + 0x1c], ecx
push ecx
push dword [ebp + 0x1c]
push dword [ebp + 0x18]
call sym.fastboot.exe_EVP_Digest
add esp, 0x18
xor ecx, ecx
test eax, eax
je 0x4d656d
mov eax, dword [esp + 0x14]
mov ecx, dword [ebp + 0x14]
mov edx, dword [esp + 0x10]
sub eax, ecx
mov dword [esp + 8], eax
add esi, eax
mov eax, dword [esp + 0xc]
je 0x4d65de
mov eax, dword [esp + 0xc]
add eax, edx
push esi
push 0
push eax
call sub.api_ms_win_crt_string_l1_1_0.dll_memset
mov eax, dword [esp + 0x18]
mov edx, dword [esp + 0x1c]
mov ecx, dword [ebp + 0x14]
add esp, 0xc
mov esi, dword [esp + 8]
not eax
add esi, eax
test ecx, ecx
mov byte [edx + esi], 1
mov edx, dword [ebp + 8]
lea edx, [edx + 1]
je 0x4d6615
mov eax, dword [esp + 0x14]
mov esi, dword [esp + 0x10]
add eax, esi
sub eax, ecx
sub eax, dword [esp + 0xc]
push ecx
push dword [ebp + 0x10]
push eax
mov esi, edx
call sub.api_ms_win_crt_private_l1_1_0.dll_memcpy
mov edx, esi
add esp, 0xc
mov dword [esp + 0x1c], edx
push 0x533f0b
mov esi, dword [esp + 0x10]
push esi
push edx
call fcn.004be5d0
add esp, 0xc
mov eax, dword [esp + 0x14]
sub eax, esi
mov dword [esp + 0x14], eax
push eax
call sym.fastboot.exe_OPENSSL_malloc
add esp, 4
test eax, eax
je 0x4d668e
mov edx, dword [esp + 0x14]
mov dword [esp + 8], eax
mov ecx, eax
push edi
push dword [esp + 0x10]
push dword [esp + 0x24]
call fcn.004d67e0
add esp, 0xc
test eax, eax
je 0x4d669f
mov edx, dword [esp + 0x14]
mov esi, dword [esp + 0x10]
mov dword [esp + 0x18], 0
test edx, edx
je 0x4d6720
xor eax, eax
cmp edx, 0x1f
ja 0x4d66ac
mov ecx, dword [esp + 8]
mov esi, dword [esp + 0x10]
jmp 0x4d6710
push 0x169
push str.external_boringssl_src_crypto_fipsmodule_rsa_padding.c
push 0x41
jmp 0x4d655f
mov dword [esp + 0x18], 0
jmp 0x4d67bd
mov ecx, dword [esp + 8]
mov esi, dword [esp + 0x10]
add ecx, edx
cmp esi, ecx
mov ecx, dword [esp + 8]
jae 0x4d66c5
add ebx, dword [ebp + 8]
cmp ecx, ebx
jb 0x4d6710
mov eax, edx
mov ebx, edx
mov esi, ecx
mov ecx, dword [ebp + 8]
mov edx, dword [esp + 0xc]
and eax, 0xffffffe0
lea ecx, [edx + ecx + 0x11]
xor edx, edx
movups xmm0, xmmword [esi + edx]
movups xmm2, xmmword [ecx + edx - 0x10]
movups xmm1, xmmword [esi + 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 0x4d66db
mov ecx, esi
mov esi, dword [esp + 0x10]
mov edx, ebx
cmp ebx, eax
je 0x4d6720
nop
mov ebx, ecx
movzx ecx, byte [ecx + eax]
xor byte [esi + eax], cl
inc eax
mov ecx, ebx
cmp edx, eax
jne 0x4d6710
mov ebx, dword [esp + 0xc]
xorps xmm0, xmm0
mov eax, edx
lea ecx, [esp + 0x20]
movaps xmmword [esp + 0x50], xmm0
movaps xmmword [esp + 0x40], xmm0
movaps xmmword [esp + 0x30], xmm0
movaps xmmword [esp + 0x20], xmm0
mov edx, ebx
push edi
push eax
push esi
call fcn.004d67e0
add esp, 0xc
mov esi, dword [esp + 8]
test eax, eax
je 0x4d67c1
test ebx, ebx
mov dword [esp + 0x18], 1
je 0x4d67c1
xor eax, eax
cmp ebx, 0x1f
jbe 0x4d67a2
mov edx, dword [ebp + 8]
mov eax, ebx
xor ecx, ecx
and eax, 0xffffffe0
movups xmm0, xmmword [esp + ecx + 0x20]
movups xmm2, xmmword [edx + ecx + 1]
movups xmm1, xmmword [esp + ecx + 0x30]
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 0x4d6773
cmp ebx, eax
je 0x4d67bd
mov edx, dword [esp + 0x1c]
nop word cs:[eax + eax]
movzx ecx, byte [esp + eax + 0x20]
xor byte [edx + eax], cl
inc eax
cmp ebx, eax
jne 0x4d67b0
mov esi, dword [esp + 8]
push esi
call sym.fastboot.exe_OPENSSL_free
add esp, 4
mov ecx, dword [esp + 0x18]
jmp 0x4d656d