Function at 0x4c4f50
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff0
sub esp, 0x80
mov esi, dword [ebp + 0x14]
mov ecx, dword [ebp + 0x10]
xorps xmm0, xmm0
mov eax, dword [ebp + 0x1c]
movaps xmmword [esp + 0x20], xmm0
test esi, esi
cmove esi, ecx
mov ecx, dword [ecx + 4]
cmp eax, 0xffffffff
mov edx, ecx
je 0x4c4fa6
cmp eax, 0xfffffffe
jne 0x4c4f8b
mov edx, 0xfffffffe
jmp 0x4c4fa6
cmp eax, 0xfffffffd
mov edx, eax
jg 0x4c4fa6
push 0x202
push str.external_boringssl_src_crypto_fipsmodule_rsa_padding.c
push 0x8a
jmp 0x4c51d1
mov edi, dword [ebp + 8]
mov dword [esp + 0x38], edx
mov dword [esp + 0x10], ecx
mov ebx, dword [edi + 4]
push ebx
call sym.fastboot.exe_BN_num_bits
add esp, 4
dec eax
and eax, 7
mov dword [esp + 0x14], eax
mov eax, dword [edi]
mov eax, dword [eax + 0x14]
test eax, eax
je 0x4c4fd6
push edi
call eax
add esp, 4
jmp 0x4c4fe5
push ebx
call sym.fastboot.exe_BN_num_bits
add esp, 4
add eax, 7
shr eax, 3
mov ebx, dword [ebp + 0x18]
mov ecx, dword [esp + 0x14]
mov edx, 0xff
movzx edi, byte [ebx]
shl edx, cl
test edx, edi
je 0x4c500b
push 0x209
push str.external_boringssl_src_crypto_fipsmodule_rsa_padding.c
push 0x7a
jmp 0x4c51d1
lea edx, [ebx + 1]
mov edi, ebx
xor ebx, ebx
test ecx, ecx
mov ecx, dword [esp + 0x10]
cmovne edx, edi
sete bl
mov edi, eax
mov dword [esp + 0x1c], edx
sub edi, ebx
lea edx, [ecx + 2]
cmp edi, edx
mov edx, dword [esp + 0x38]
jl 0x4c51a9
lea edx, [ecx + edx + 2]
cmp edi, edx
jl 0x4c51a9
mov edx, dword [esp + 0x1c]
cmp byte [edi + edx - 1], 0xbc
jne 0x4c51b7
mov dword [esp + 0x34], eax
mov eax, ecx
mov dword [esp + 0x18], ebx
not eax
add edi, eax
push edi
call sym.fastboot.exe_OPENSSL_malloc
add esp, 4
test eax, eax
je 0x4c51c5
mov ebx, eax
mov eax, dword [esp + 0x1c]
mov edx, edi
mov ecx, ebx
add eax, edi
push esi
push dword [esp + 0x14]
mov dword [esp + 0x38], eax
push eax
call fcn.004c4aa0
add esp, 0xc
test eax, eax
je 0x4c5211
mov esi, dword [esp + 0x1c]
not dword [esp + 0x18]
test edi, edi
mov dword [esp + 0xc], ebx
jle 0x4c513c
xor eax, eax
cmp edi, 0x20
mov ecx, 0
jb 0x4c5109
mov ecx, dword [esp + 0x30]
cmp dword [esp + 0xc], ecx
jae 0x4c50ce
mov ecx, dword [esp + 0xc]
add ecx, edi
cmp esi, ecx
mov ecx, 0
jb 0x4c5109
mov ebx, esi
mov esi, dword [esp + 0xc]
mov ecx, edi
xor edx, edx
and ecx, 0xffffffe0
movups xmm0, xmmword [ebx + edx]
movups xmm2, xmmword [esi + edx]
movups xmm1, xmmword [ebx + 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 0x4c50db
cmp edi, ecx
mov esi, ebx
je 0x4c513c
mov edx, dword [esp + 0x34]
add esi, ecx
mov ebx, esi
mov esi, dword [esp + 0xc]
sub edx, ecx
sub edx, dword [esp + 0x10]
add ecx, esi
mov esi, ebx
add edx, dword [esp + 0x18]
nop word cs:[eax + eax]
nop dword [eax]
movzx ebx, byte [esi + eax]
xor byte [ecx + eax], bl
inc eax
cmp edx, eax
jne 0x4c5130
mov eax, dword [esp + 0x14]
mov ebx, dword [esp + 0xc]
test eax, eax
je 0x4c5155
mov cl, 8
sub cl, al
mov eax, 0xff
shr eax, cl
and byte [ebx], al
mov edx, dword [esp + 0x38]
lea eax, [edi - 1]
xor esi, esi
nop
movzx ecx, byte [ebx + esi]
cmp esi, eax
lea esi, [esi + 1]
jge 0x4c516f
test cl, cl
je 0x4c5160
cmp cl, 1
jne 0x4c5215
test edx, edx
js 0x4c5234
mov eax, dword [esp + 0x34]
mov ecx, dword [esp + 0x18]
sub eax, edx
sub eax, dword [esp + 0x10]
add ecx, eax
cmp ecx, esi
je 0x4c5234
push 0x231
push str.external_boringssl_src_crypto_fipsmodule_rsa_padding.c
push 0x8a
jmp 0x4c5224
push 0x212
push str.external_boringssl_src_crypto_fipsmodule_rsa_padding.c
push 0x71
jmp 0x4c51d1
push 0x216
push str.external_boringssl_src_crypto_fipsmodule_rsa_padding.c
push 0x7f
jmp 0x4c51d1
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 0x4c5207
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 0x4c51e1
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 0x4c51e1
mov dword [esp + 0x14], edi
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 0x4c51e1
mov eax, dword [esp + 0x20]
sub dword [esp + 0x14], esi
push 8
push 0x520b83
lea ecx, [esp + 0x28]
push ecx
call dword [eax + 0x10]
add esp, 0xc
mov eax, dword [esp + 0x20]
push dword [esp + 0x10]
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 + 0x14]
push ebx
lea ebx, [esp + 0x28]
push ebx
call dword [ecx + 0x10]
add esp, 0xc
mov eax, dword [esp + 0x20]
lea esi, [esp + 0x3c]
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 + 0x18]
add esp, 8
test eax, eax
je 0x4c52ee
push eax
push dword [esp + 0x34]
push esi
call sub.api_ms_win_crt_private_l1_1_0.dll_memcmp
add esp, 0xc
test eax, eax
je 0x4c52ee
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 0x4c52f3
mov edi, 1
mov ebx, dword [esp + 0xc]
jmp 0x4c51e1