Function at 0x4d6cd0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff0
sub esp, 0xa0
mov edi, dword [ebp + 0x14]
mov ecx, dword [ebp + 0x10]
xorps xmm0, xmm0
mov eax, dword [ebp + 0x1c]
movaps xmmword [esp + 0x80], xmm0
movaps xmmword [esp + 0x70], xmm0
movaps xmmword [esp + 0x60], xmm0
movaps xmmword [esp + 0x50], xmm0
movaps xmmword [esp + 0x20], xmm0
test edi, edi
cmove edi, ecx
mov ecx, dword [ecx + 4]
cmp eax, 0xffffffff
mov edx, ecx
je 0x4d6d3d
cmp eax, 0xfffffffe
jne 0x4d6d22
mov edx, 0xfffffffe
jmp 0x4d6d3d
cmp eax, 0xfffffffd
mov edx, eax
jg 0x4d6d3d
push 0x202
push str.external_boringssl_src_crypto_fipsmodule_rsa_padding.c
push 0x8a
jmp 0x4d6f71
mov esi, dword [ebp + 8]
mov dword [esp + 0x1c], edx
mov dword [esp + 0x14], ecx
mov ebx, dword [esi + 4]
push ebx
call sym.fastboot.exe_BN_num_bits
add esp, 4
mov ecx, dword [esi]
dec eax
mov dword [esp + 0xc], edi
and eax, 7
mov edi, eax
mov ecx, dword [ecx + 0x14]
test ecx, ecx
je 0x4d6d6f
push esi
call ecx
add esp, 4
jmp 0x4d6d7e
push ebx
call sym.fastboot.exe_BN_num_bits
add esp, 4
add eax, 7
shr eax, 3
mov esi, dword [ebp + 0x18]
mov edx, dword [esp + 0x1c]
mov ecx, edi
movzx ebx, byte [esi]
shr ebx, cl
test bl, bl
je 0x4d6da1
push 0x209
push str.external_boringssl_src_crypto_fipsmodule_rsa_padding.c
push 0x7a
jmp 0x4d6f71
xor ebx, ebx
test ecx, ecx
mov dword [esp + 0x4c], ecx
mov ecx, dword [esp + 0x14]
mov edi, esi
lea esi, [esi + 1]
cmovne esi, edi
sete bl
mov dword [esp + 0x18], esi
mov esi, eax
mov edi, ebx
sub esi, ebx
lea ebx, [ecx + 2]
cmp esi, ebx
jl 0x4d6f49
lea edx, [ecx + edx + 2]
cmp esi, edx
jl 0x4d6f49
mov edx, dword [esp + 0x18]
cmp byte [esi + edx - 1], 0xbc
jne 0x4d6f57
mov dword [esp + 0x48], eax
mov eax, ecx
not eax
add esi, eax
mov dword [esp + 0x44], eax
push esi
call sym.fastboot.exe_OPENSSL_malloc
add esp, 4
test eax, eax
je 0x4d6f65
mov ebx, eax
mov eax, dword [esp + 0x18]
mov edx, esi
mov ecx, ebx
add eax, esi
push dword [esp + 0xc]
push dword [esp + 0x18]
mov dword [esp + 0x48], eax
push eax
call fcn.004d67e0
add esp, 0xc
test eax, eax
je 0x4d6fb1
neg edi
test esi, esi
mov dword [esp + 0xc], ebx
mov dword [esp + 0x10], esi
mov dword [esp + 0x3c], edi
mov edi, dword [esp + 0x18]
jle 0x4d6edc
xor eax, eax
cmp esi, 0x20
mov ecx, 0
jb 0x4d6eaa
mov ecx, dword [esp + 0x40]
cmp dword [esp + 0xc], ecx
jae 0x4d6e6f
mov ecx, dword [esp + 0xc]
add ecx, esi
cmp edi, ecx
mov ecx, 0
jb 0x4d6eaa
mov ecx, esi
mov esi, dword [esp + 0xc]
xor edx, edx
and ecx, 0xffffffe0
movups xmm0, xmmword [edi + edx]
movups xmm2, xmmword [esi + edx]
movups xmm1, xmmword [edi + edx + 0x10]
movups xmm3, xmmword [esi + edx + 0x10]
xorps xmm2, xmm0
xorps xmm3, xmm1
movups xmmword [esi + edx], xmm2
movups xmmword [esi + edx + 0x10], xmm3
add edx, 0x20
cmp ecx, edx
jne 0x4d6e7a
mov esi, dword [esp + 0x10]
cmp esi, ecx
je 0x4d6edc
mov edx, dword [esp + 0x48]
mov esi, dword [esp + 0x3c]
add edi, ecx
add edx, esi
mov esi, dword [esp + 0xc]
sub edx, ecx
add edx, dword [esp + 0x44]
add ecx, esi
mov esi, dword [esp + 0x10]
nop word cs:[eax + eax]
movzx ebx, byte [edi + eax]
xor byte [ecx + eax], bl
inc eax
cmp edx, eax
jne 0x4d6ed0
mov eax, dword [esp + 0x4c]
mov ebx, dword [esp + 0xc]
test eax, eax
je 0x4d6ef5
mov cl, 8
sub cl, al
mov eax, 0xff
shr eax, cl
and byte [ebx], al
mov edx, dword [esp + 0x1c]
lea eax, [esi - 1]
xor esi, esi
nop
movzx ecx, byte [ebx + esi]
cmp esi, eax
lea esi, [esi + 1]
jge 0x4d6f0f
test cl, cl
je 0x4d6f00
cmp cl, 1
jne 0x4d6fb5
test edx, edx
js 0x4d6fd4
mov eax, dword [esp + 0x48]
mov ecx, dword [esp + 0x44]
add eax, dword [esp + 0x3c]
sub eax, edx
add ecx, eax
cmp ecx, esi
je 0x4d6fd4
push 0x231
push str.external_boringssl_src_crypto_fipsmodule_rsa_padding.c
push 0x8a
jmp 0x4d6fc4
push 0x212
push str.external_boringssl_src_crypto_fipsmodule_rsa_padding.c
push 0x71
jmp 0x4d6f71
push 0x216
push str.external_boringssl_src_crypto_fipsmodule_rsa_padding.c
push 0x7f
jmp 0x4d6f71
push 0x21d
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 + 0x24]
call sym.fastboot.exe_OPENSSL_free
add esp, 4
mov eax, dword [esp + 0x2c]
test eax, eax
je 0x4d6fa7
push dword [esp + 0x28]
call dword [eax]
add esp, 4
mov eax, edi
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret
xor edi, edi
jmp 0x4d6f81
push 0x22d
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 0x4d6f81
sub esp, 4
lea eax, [esp + 0x24]
push dword [ebp + 0x10]
push eax
call sym.fastboot.exe_EVP_DigestInit_ex
add esp, 0xc
xor edi, edi
test eax, eax
je 0x4d6f81
mov eax, dword [esp + 0x20]
sub dword [esp + 0x10], esi
push 8
push 0x533f9a
lea ecx, [esp + 0x28]
push ecx
call dword [eax + 0x10]
add esp, 0xc
mov eax, dword [esp + 0x20]
push dword [esp + 0x14]
push dword [ebp + 0xc]
lea ecx, [esp + 0x28]
push ecx
call dword [eax + 0x10]
add esp, 0xc
mov ecx, dword [esp + 0x20]
add ebx, esi
push dword [esp + 0x10]
push ebx
lea ebx, [esp + 0x28]
push ebx
call dword [ecx + 0x10]
add esp, 0xc
mov eax, dword [esp + 0x20]
lea esi, [esp + 0x50]
push esi
push ebx
call dword [eax + 0x14]
add esp, 8
mov eax, dword [esp + 0x20]
push dword [eax + 0x1c]
push dword [esp + 0x28]
call sym.fastboot.exe_OPENSSL_cleanse
mov eax, dword [esp + 0x1c]
add esp, 8
test eax, eax
je 0x4d708a
push eax
push dword [esp + 0x44]
push esi
call sub.api_ms_win_crt_private_l1_1_0.dll_memcmp
add esp, 0xc
test eax, eax
je 0x4d708a
push 0x23c
push str.external_boringssl_src_crypto_fipsmodule_rsa_padding.c
push 0x69
push 0
push 4
call sym.fastboot.exe_ERR_put_error
add esp, 0x14
jmp 0x4d708f
mov edi, 1
mov ebx, dword [esp + 0xc]
jmp 0x4d6f81