Function at 0x4d70d0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff0
sub esp, 0x40
mov edx, dword [ebp + 8]
mov eax, dword [ebp + 0x18]
mov ecx, dword [ebp + 0x14]
mov ebx, dword [edx + 4]
test eax, eax
cmove eax, ecx
mov dword [esp + 0x1c], eax
mov eax, dword [ebx + 4]
test eax, eax
je 0x4d71a3
mov ecx, dword [ecx + 4]
xor esi, esi
cmp eax, 8
mov edi, 0
mov dword [esp + 0x14], ecx
mov ecx, dword [ebx]
jb 0x4d7167
mov esi, eax
lea edi, [ecx + 0x10]
pxor xmm0, xmm0
pxor xmm1, xmm1
and esi, 0xfffffff8
mov edx, esi
nop word cs:[eax + eax]
nop dword [eax]
movdqu xmm2, xmmword [edi - 0x10]
movdqu xmm3, xmmword [edi]
add edi, 0x20
add edx, 0xfffffff8
por xmm0, xmm2
por xmm1, xmm3
jne 0x4d7130
por xmm1, xmm0
cmp eax, esi
pshufd xmm0, xmm1, 0x4e
por xmm0, xmm1
pshufd xmm1, xmm0, 0xe5
por xmm1, xmm0
movd edi, xmm1
je 0x4d7178
sub eax, esi
lea ecx, [ecx + esi*4]
nop dword [eax]
or edi, dword [ecx]
add ecx, 4
dec eax
jne 0x4d7170
mov esi, dword [ebp + 8]
test edi, edi
je 0x4d71a3
push ebx
call sym.fastboot.exe_BN_num_bits
add esp, 4
dec eax
and eax, 7
mov dword [esp + 0x38], eax
mov eax, dword [esi]
mov eax, dword [eax + 0x14]
test eax, eax
je 0x4d71b1
push esi
call eax
add esp, 4
mov esi, eax
jmp 0x4d71c2
push 0x259
push str.external_boringssl_src_crypto_fipsmodule_rsa_padding.c
push 0x78
jmp 0x4d721c
push ebx
call sym.fastboot.exe_BN_num_bits
add esp, 4
mov esi, eax
add esi, 7
shr esi, 3
mov edx, dword [esp + 0x14]
mov ecx, dword [ebp + 0xc]
cmp dword [esp + 0x38], 0
jne 0x4d71d5
mov byte [ecx], 0
inc ecx
dec esi
lea eax, [edx + 2]
cmp esi, eax
jae 0x4d71e3
push 0x266
jmp 0x4d7215
mov eax, dword [ebp + 0x1c]
mov edi, edx
cmp eax, 0xffffffff
je 0x4d7205
cmp eax, 0xfffffffe
jne 0x4d71fb
mov edi, esi
sub edi, edx
add edi, 0xfffffffe
jmp 0x4d7205
test eax, eax
mov edi, eax
js 0x4d73b8
mov ebx, esi
sub ebx, edx
lea eax, [ebx - 2]
cmp eax, edi
jae 0x4d723f
push 0x27b
push str.external_boringssl_src_crypto_fipsmodule_rsa_padding.c
push 0x72
push 0
push 4
call sym.fastboot.exe_ERR_put_error
add esp, 0x14
xor esi, esi
xor edi, edi
push edi
call sym.fastboot.exe_OPENSSL_free
add esp, 4
mov eax, esi
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret
test edi, edi
mov dword [esp + 0x10], ebx
mov dword [esp + 8], ecx
je 0x4d7279
push edi
call sym.fastboot.exe_OPENSSL_malloc
add esp, 4
test eax, eax
je 0x4d73cc
mov ecx, edi
mov edi, eax
push 0x533f0b
mov dword [esp + 0x10], ecx
push ecx
push eax
call fcn.004be5d0
add esp, 0xc
mov ecx, dword [esp + 8]
jmp 0x4d727f
mov dword [esp + 0xc], edi
xor edi, edi
mov edx, dword [ebp + 0x14]
pxor xmm0, xmm0
movdqa xmmword [esp + 0x20], xmm0
test edx, edx
je 0x4d72c0
push dword [edx + 0x1c]
call sym.fastboot.exe_OPENSSL_malloc
add esp, 4
test eax, eax
je 0x4d73dd
push 0
mov ebx, eax
call sym.fastboot.exe_OPENSSL_free
add esp, 4
mov eax, dword [ebp + 0x14]
mov ecx, dword [esp + 8]
mov dword [esp + 0x24], ebx
mov edx, eax
mov dword [esp + 0x20], eax
mov ebx, dword [esp + 0x10]
mov dword [esp + 0x18], esi
lea esi, [esp + 0x20]
lea eax, [ecx + ebx - 1]
dec ebx
mov dword [esp + 0x34], eax
mov dword [esp + 0x10], ebx
push esi
call dword [edx + 0xc]
add esp, 4
mov eax, dword [esp + 0x20]
push 8
push 0x533f9a
push esi
call dword [eax + 0x10]
add esp, 0xc
mov eax, dword [esp + 0x20]
push dword [esp + 0x14]
push dword [ebp + 0x10]
push esi
call dword [eax + 0x10]
add esp, 0xc
mov eax, dword [esp + 0x20]
push dword [esp + 0xc]
push edi
push esi
call dword [eax + 0x10]
add esp, 0xc
mov eax, dword [esp + 0x20]
push dword [esp + 0x34]
push esi
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
add esp, 8
push dword [esp + 0x24]
call sym.fastboot.exe_OPENSSL_free
add esp, 4
mov eax, dword [esp + 0x2c]
test eax, eax
je 0x4d7353
push dword [esp + 0x28]
call dword [eax]
add esp, 4
mov esi, dword [esp + 8]
mov edx, dword [esp + 0x10]
pxor xmm0, xmm0
movdqa xmmword [esp + 0x20], xmm0
mov ecx, esi
push dword [esp + 0x1c]
mov ebx, dword [esp + 0x18]
push ebx
push dword [esp + 0x3c]
call fcn.004d67e0
add esp, 0xc
test eax, eax
mov eax, dword [esp + 0x18]
je 0x4d7409
mov ecx, esi
mov esi, dword [esp + 0xc]
lea edx, [ebx + esi]
mov ebx, eax
sub ebx, edx
xor byte [ebx + ecx - 2], 1
test esi, esi
je 0x4d74ad
mov eax, dword [esp + 8]
xor ecx, ecx
cmp esi, 0x20
lea eax, [ebx + eax - 2]
jae 0x4d7410
xor edx, edx
jmp 0x4d7495
push 0x274
push str.external_boringssl_src_crypto_fipsmodule_rsa_padding.c
push 0x8a
jmp 0x4d721c
push 0x282
push str.external_boringssl_src_crypto_fipsmodule_rsa_padding.c
push 0x41
jmp 0x4d721c
push 0xc2
push str.external_boringssl_src_crypto_fipsmodule_digest_digest.c
push 0x41
push 0
push 0x1d
call sym.fastboot.exe_ERR_put_error
add esp, 0x14
push 0
call sym.fastboot.exe_OPENSSL_free
add esp, 4
pxor xmm0, xmm0
movdqa xmmword [esp + 0x20], xmm0
xor esi, esi
jmp 0x4d722c
mov dword [esp + 0x10], ebx
mov ebx, dword [esp + 0x18]
mov dword [esp + 0xc], esi
dec ebx
mov dword [esp + 0x1c], ebx
sub ebx, edx
lea edx, [edi + esi]
add ebx, dword [esp + 8]
cmp ebx, edx
jae 0x4d7446
mov edx, dword [esp + 0x1c]
sub edx, dword [esp + 0x14]
add edx, dword [esp + 8]
cmp edi, edx
jae 0x4d7446
mov esi, dword [esp + 0xc]
xor edx, edx
jmp 0x4d7495
mov edx, dword [esp + 0xc]
mov esi, dword [esp + 0x10]
mov ebx, dword [esp + 8]
and edx, 0xffffffe0
lea esi, [esi + ebx + 0xf]
xor ebx, ebx
add eax, edx
movdqu xmm0, xmmword [edi + ebx]
movdqu xmm2, xmmword [esi + ebx - 0x10]
movdqu xmm1, xmmword [edi + ebx + 0x10]
movdqu xmm3, xmmword [esi + ebx]
pxor xmm2, xmm0
pxor xmm3, xmm1
movdqu xmmword [esi + ebx - 0x10], xmm2
movdqu xmmword [esi + ebx], xmm3
add ebx, 0x20
cmp edx, ebx
jne 0x4d745d
mov esi, dword [esp + 0xc]
cmp esi, edx
je 0x4d74ad
sub esi, edx
add edx, edi
nop dword [eax]
movzx ebx, byte [edx + ecx]
xor byte [eax + ecx + 1], bl
inc ecx
cmp esi, ecx
jne 0x4d74a0
mov eax, dword [esp + 0x38]
mov edx, dword [esp + 8]
test eax, eax
je 0x4d74c6
mov cl, 8
sub cl, al
mov eax, 0xff
shr eax, cl
and byte [edx], al
mov eax, dword [esp + 0x18]
mov esi, 1
mov byte [eax + edx - 1], 0xbc
jmp 0x4d722c