Function at 0x4d6970
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff0
sub esp, 0xb0
mov edx, dword [ebp + 0x24]
mov ebx, dword [ebp + 0x28]
mov ecx, dword [ebp + 0x18]
test edx, edx
jne 0x4d69a7
push 0x4c51e0
push 0x54b074
mov esi, ecx
call sym.fastboot.exe_CRYPTO_once
mov ecx, esi
add esp, 8
mov edx, 0x54b078
mov edi, dword [edx + 4]
test ebx, ebx
cmove ebx, edx
xor esi, esi
lea eax, [edi + edi + 2]
cmp eax, ecx
jbe 0x4d69d9
push 0x1de
push str.external_boringssl_src_crypto_fipsmodule_rsa_padding.c
push 0x85
push 0
push 4
call sym.fastboot.exe_ERR_put_error
add esp, 0x14
jmp 0x4d6c5d
mov dword [esp + 0xc], ebx
mov ebx, edi
mov dword [esp + 0x18], edx
not ebx
add ebx, ecx
push ebx
call sym.fastboot.exe_OPENSSL_malloc
add esp, 4
test eax, eax
je 0x4d6c43
mov esi, eax
mov eax, dword [ebp + 0x14]
xorps xmm0, xmm0
lea ecx, [esp + 0x20]
mov edx, edi
movaps xmmword [esp + 0x50], xmm0
movaps xmmword [esp + 0x40], xmm0
movaps xmmword [esp + 0x30], xmm0
movaps xmmword [esp + 0x20], xmm0
lea eax, [eax + edi + 1]
push dword [esp + 0xc]
mov dword [esp + 0x14], ebx
push ebx
mov dword [esp + 0x1c], eax
push eax
call fcn.004d67e0
add esp, 0xc
test eax, eax
je 0x4d6c5d
test edi, edi
je 0x4d6aad
xor eax, eax
cmp edi, 0x1f
jbe 0x4d6a91
mov eax, edi
mov edx, edi
mov edi, dword [ebp + 0x14]
xor ecx, ecx
and eax, 0xffffffe0
nop word cs:[eax + eax]
nop dword [eax]
movups xmm0, xmmword [edi + ecx + 1]
movups xmm2, xmmword [esp + ecx + 0x20]
movups xmm1, xmmword [edi + ecx + 0x11]
movups xmm3, xmmword [esp + ecx + 0x30]
xorps xmm2, xmm0
xorps xmm3, xmm1
movups xmmword [esp + ecx + 0x20], xmm2
movups xmmword [esp + ecx + 0x30], xmm3
add ecx, 0x20
cmp eax, ecx
jne 0x4d6a60
mov edi, edx
cmp edx, eax
je 0x4d6aad
mov ecx, dword [ebp + 0x14]
inc ecx
nop word cs:[eax + eax]
nop
movzx edx, byte [ecx + eax]
xor byte [esp + eax + 0x20], dl
inc eax
cmp edi, eax
jne 0x4d6aa0
mov ebx, dword [esp + 0x10]
mov ecx, esi
mov edx, ebx
push dword [esp + 0xc]
push edi
lea eax, [esp + 0x28]
push eax
call fcn.004d67e0
add esp, 0xc
test eax, eax
je 0x4d6c5d
mov ecx, dword [esp + 0x14]
test ebx, ebx
je 0x4d6b5c
xor edx, edx
cmp ebx, 0x1f
jbe 0x4d6b50
mov eax, dword [ebp + 0x18]
mov ecx, dword [ebp + 0x14]
add eax, ecx
mov ecx, dword [esp + 0x14]
cmp esi, eax
jae 0x4d6af9
lea eax, [esi + ebx]
cmp ecx, eax
jb 0x4d6b50
mov eax, dword [ebp + 0x14]
mov edx, ebx
mov dword [esp + 0xc], edi
and edx, 0xffffffe0
lea edi, [edi + eax + 0x11]
xor eax, eax
nop dword [eax + eax]
movups xmm0, xmmword [edi + eax - 0x10]
movups xmm2, xmmword [esi + eax]
movups xmm1, xmmword [edi + eax]
movups xmm3, xmmword [esi + eax + 0x10]
mov ebx, esi
xorps xmm2, xmm0
xorps xmm3, xmm1
movups xmmword [esi + eax], xmm2
movups xmmword [esi + eax + 0x10], xmm3
add eax, 0x20
cmp edx, eax
jne 0x4d6b10
mov ebx, dword [esp + 0x10]
mov edi, dword [esp + 0xc]
cmp ebx, edx
je 0x4d6b5c
nop word cs:[eax + eax]
movzx eax, byte [ecx + edx]
xor byte [esi + edx], al
inc edx
cmp ebx, edx
jne 0x4d6b50
xorps xmm0, xmm0
mov ebx, edi
movaps xmmword [esp + 0x90], xmm0
movaps xmmword [esp + 0x80], xmm0
movaps xmmword [esp + 0x70], xmm0
movaps xmmword [esp + 0x60], xmm0
sub esp, 4
lea edi, [esp + 0x64]
push dword [esp + 0x1c]
push 0
push edi
push dword [ebp + 0x20]
push dword [ebp + 0x1c]
call sym.fastboot.exe_EVP_Digest
add esp, 0x18
test eax, eax
je 0x4d6c5d
push ebx
push edi
mov edi, ebx
push esi
call sym.fastboot.exe_CRYPTO_memcmp
add esp, 0xc
mov ebx, dword [esp + 0x10]
cmp edi, ebx
jae 0x4d6c70
mov ecx, dword [ebp + 0x14]
mov edx, eax
dec eax
mov dword [esp + 0x1c], esi
not edx
movzx ecx, byte [ecx]
dec ecx
and ecx, edx
mov edx, 0xffffffff
and ecx, eax
lea eax, [edi + edi]
not eax
sar ecx, 0x1f
add eax, dword [ebp + 0x18]
not ecx
mov dword [esp + 0x18], ecx
mov dword [esp + 0x14], eax
xor eax, eax
nop dword [eax + eax]
mov ecx, esi
mov esi, edx
mov dword [esp + 0xc], edx
movzx ebx, byte [ecx + edi]
mov edx, ebx
dec ebx
xor edx, 1
sar ebx, 0x1f
dec edx
not ebx
sar edx, 0x1f
mov ecx, edx
not edx
and edx, dword [esp + 0xc]
and ecx, esi
mov esi, ecx
not ecx
and esi, edi
and eax, ecx
inc edi
or eax, esi
mov esi, dword [esp + 0x1c]
and ebx, edx
or dword [esp + 0x18], ebx
dec dword [esp + 0x14]
jne 0x4d6bf0
or edx, dword [esp + 0x18]
mov ebx, dword [esp + 0x10]
inc eax
test edx, edx
jne 0x4d69b9
jmp 0x4d6c82
push 0x19f
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 esi, esi
push esi
call sym.fastboot.exe_OPENSSL_free
add esp, 4
xor eax, eax
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret
mov eax, 1
mov edx, 0xffffffff
test edx, edx
jne 0x4d69b9
sub ebx, eax
cmp ebx, dword [ebp + 0x10]
jbe 0x4d6c9a
push 0x1d2
push str.external_boringssl_src_crypto_fipsmodule_rsa_padding.c
push 0x71
jmp 0x4d69c8
mov edi, dword [ebp + 0xc]
test ebx, ebx
je 0x4d6cb2
mov ecx, esi
add ecx, eax
push ebx
push ecx
push dword [ebp + 8]
call sub.api_ms_win_crt_private_l1_1_0.dll_memcpy
add esp, 0xc
mov dword [edi], ebx
push esi
call sym.fastboot.exe_OPENSSL_free
add esp, 4
mov eax, 1
jmp 0x4d6c68