Function at 0x4fd390
Capabilities:
Encode data using xor

Disassembly:
push ebp
push ebx
push edi
push esi
sub esp, 0x74
mov eax, dword [esp + 0x9c]
mov ecx, dword [esp + 0x90]
mov esi, dword [esp + 0x94]
test esi, esi
cmove esi, ecx
xorps xmm0, xmm0
movups xmmword [esp + 0x1c], xmm0
mov ecx, dword [ecx + 4]
mov edx, ecx
cmp eax, 0xffffffff
je 0x4fd3e7
cmp eax, 0xfffffffe
jne 0x4fd3cf
mov edx, 0xfffffffe
jmp 0x4fd3e7
mov edx, eax
jge 0x4fd3e7
push 0xe9
push str.external_boringssl_src_crypto_fipsmodule_rsa_padding.c
push 0x8a
jmp 0x4fd5e9
mov dword [esp + 0x10], esi
mov dword [esp + 0x18], edx
mov dword [esp + 0xc], ecx
mov esi, dword [esp + 0x98]
mov edx, dword [esp + 0x88]
mov ecx, dword [edx + 4]
mov ebp, dword [ecx + 4]
mov eax, ebp
sar eax, 0x1f
and eax, ebp
mov dword [esp + 0x14], eax
mov edi, ebp
nop word cs:[eax + eax]
test edi, edi
jle 0x4fd431
mov eax, dword [ecx]
mov eax, dword [eax + edi*4 - 4]
dec edi
test eax, eax
je 0x4fd420
jmp 0x4fd448
xor ebx, ebx
test ebp, ebp
jns 0x4fd4d1
mov eax, dword [ecx]
mov edx, dword [esp + 0x14]
lea edi, [edx - 1]
mov eax, dword [eax + edx*4 - 4]
shl edi, 5
xor ebx, ebx
test eax, eax
setne bl
mov dword [esp + 4], ebp
mov ebp, eax
shr ebp, 0x10
xor edx, edx
cmp eax, 0x10000
setae dl
cmovb ebp, eax
shl edx, 4
mov esi, ebp
shr esi, 8
xor eax, eax
cmp ebp, 0x100
setae al
mov dword [esp + 8], eax
cmovb esi, ebp
mov ebp, esi
shr ebp, 4
xor eax, eax
cmp esi, 0x10
cmovb ebp, esi
setae al
mov dword [esp], eax
mov esi, ebp
shr esi, 2
xor eax, eax
cmp ebp, 4
cmovb esi, ebp
mov ebp, dword [esp + 4]
setae al
or ebx, edi
or ebx, edx
mov edx, dword [esp + 8]
lea edx, [ebx + edx*8]
mov edi, dword [esp]
lea edx, [edx + edi*4]
cmp esi, 2
mov esi, dword [esp + 0x98]
lea ebx, [edx + eax*2]
mov edx, dword [esp + 0x88]
sbb ebx, 0xffffffff
dec ebx
and ebx, 7
mov eax, dword [edx]
mov eax, dword [eax + 0x14]
test eax, eax
je 0x4fd4eb
push edx
call eax
add esp, 4
mov edi, eax
jmp 0x4fd59b
mov esi, ebp
nop dword [eax]
test esi, esi
jle 0x4fd501
mov eax, dword [ecx]
mov edi, dword [eax + esi*4 - 4]
dec esi
test edi, edi
je 0x4fd4f0
jmp 0x4fd51d
xor edi, edi
test ebp, ebp
mov esi, dword [esp + 0x98]
jns 0x4fd59b
mov eax, dword [ecx]
mov esi, dword [esp + 0x14]
mov edi, dword [eax + esi*4 - 4]
dec esi
shl esi, 5
mov edx, edi
shr edx, 0x10
xor eax, eax
cmp edi, 0x10000
setae al
cmovb edx, edi
shl eax, 4
mov dword [esp + 4], eax
mov ebp, edx
shr ebp, 8
xor eax, eax
cmp edx, 0x100
setae al
mov dword [esp + 8], eax
cmovb ebp, edx
mov eax, ebp
shr eax, 4
xor edx, edx
cmp ebp, 0x10
cmovb eax, ebp
setae dl
mov ebp, eax
shr ebp, 2
xor ecx, ecx
cmp eax, 4
cmovb ebp, eax
setae cl
cmp edi, 1
sbb esi, 0
add esi, 8
or esi, dword [esp + 4]
cmp ebp, 2
mov eax, dword [esp + 8]
lea eax, [esi + eax*8]
lea eax, [eax + edx*4]
lea edi, [eax + ecx*2]
sbb edi, 0xffffffff
shr edi, 3
mov esi, dword [esp + 0x98]
movzx eax, byte [esi]
mov ecx, ebx
shr eax, cl
test eax, eax
je 0x4fd5b4
push 0xf0
push str.external_boringssl_src_crypto_fipsmodule_rsa_padding.c
push 0x7a
jmp 0x4fd5e9
xor eax, eax
test ebx, ebx
sete al
mov ebp, edi
mov dword [esp + 4], eax
sub ebp, eax
mov ecx, dword [esp + 0xc]
lea eax, [ecx + 2]
cmp ebp, eax
jb 0x4fd5dd
add eax, dword [esp + 0x18]
cmp ebp, eax
jae 0x4fd629
cmp dword [esp + 0x18], 0
js 0x4fd629
push 0xfa
push str.external_boringssl_src_crypto_fipsmodule_rsa_padding.c
push 0x71
push 0
push 4
call sym.fastboot.exe_ERR_put_error
add esp, 0x14
xor edi, edi
xor esi, esi
push esi
call sym.fastboot.exe_OPENSSL_free
add esp, 4
push dword [esp + 0x20]
call sym.fastboot.exe_OPENSSL_free
add esp, 4
mov eax, dword [esp + 0x28]
test eax, eax
je 0x4fd61f
push dword [esp + 0x24]
call dword [eax]
add esp, 4
mov eax, edi
add esp, 0x74
pop esi
pop edi
pop ebx
pop ebp
ret
mov eax, dword [esp + 4]
add eax, esi
cmp byte [ebp + eax - 1], 0xbc
jne 0x4fd7ed
mov dword [esp + 8], eax
mov eax, ecx
not eax
mov dword [esp + 0x14], eax
add ebp, eax
push ebp
call sym.fastboot.exe_OPENSSL_malloc
add esp, 4
test eax, eax
je 0x4fd5f5
mov esi, eax
mov eax, dword [esp + 8]
add eax, ebp
push dword [esp + 0x10]
push dword [esp + 0x10]
mov dword [esp + 0x38], eax
push eax
push ebp
push esi
call fcn.004fd210
add esp, 0x14
test eax, eax
je 0x4fd7fe
mov eax, dword [esp + 4]
neg eax
mov dword [esp + 0x10], eax
mov dword [esp], ebp
test ebp, ebp
mov eax, dword [esp + 0x98]
mov dword [esp + 0x2c], eax
je 0x4fd790
xor ecx, ecx
mov edx, 0
cmp dword [esp], 8
jb 0x4fd756
mov eax, dword [esp + 0x10]
add eax, edi
mov edx, dword [esp + 0x14]
add edx, dword [esp + 4]
add edx, eax
add edx, dword [esp + 0x98]
cmp esi, edx
jae 0x4fd6d8
mov eax, dword [esp]
add eax, esi
mov edx, 0
cmp dword [esp + 8], eax
jb 0x4fd756
xor edx, edx
cmp dword [esp], 0x20
jb 0x4fd72c
mov edx, dword [esp]
and edx, 0xffffffe0
mov eax, dword [esp + 4]
mov ebp, dword [esp + 0x98]
add ebp, eax
add ebp, 0x10
xor eax, eax
movups xmm0, xmmword [ebp + eax - 0x10]
movups xmm1, xmmword [ebp + eax]
movups xmm2, xmmword [esi + eax]
xorps xmm2, xmm0
movups xmm0, xmmword [esi + eax + 0x10]
xorps xmm0, xmm1
movups xmmword [esi + eax], xmm2
movups xmmword [esi + eax + 0x10], xmm0
add eax, 0x20
cmp edx, eax
jne 0x4fd6f8
cmp dword [esp], edx
je 0x4fd790
test byte [esp], 0x18
je 0x4fd756
mov eax, edx
mov edx, dword [esp]
and edx, 0xfffffff8
mov ebp, dword [esp + 8]
movsd xmm0, qword [ebp + eax]
movsd xmm1, qword [esi + eax]
xorps xmm1, xmm0
movlps qword [esi + eax], xmm1
add eax, 8
cmp edx, eax
jne 0x4fd738
cmp dword [esp], edx
je 0x4fd790
mov eax, dword [esp + 0x10]
add eax, edi
mov ebp, edx
not ebp
add ebp, eax
mov eax, dword [esp + 4]
add eax, edx
add dword [esp + 0x2c], eax
sub ebp, dword [esp + 0xc]
lea eax, [esi + edx]
nop word cs:[eax + eax]
mov edx, dword [esp + 0x2c]
movzx edx, byte [edx + ecx]
xor byte [eax + ecx], dl
inc ecx
cmp ebp, ecx
jne 0x4fd780
test ebx, ebx
je 0x4fd7a1
mov cl, 8
sub cl, bl
mov eax, 0xff
shr eax, cl
and byte [esi], al
mov eax, dword [esp]
dec eax
xor ebx, ebx
nop word [eax + eax]
mov edx, ebx
movzx ecx, byte [esi + ebx]
inc ebx
cmp edx, eax
jae 0x4fd7bf
test cl, cl
je 0x4fd7b0
cmp cl, 1
jne 0x4fd805
mov eax, dword [esp + 0x18]
test eax, eax
js 0x4fd827
add edi, dword [esp + 0x10]
not eax
add eax, edi
sub eax, dword [esp + 0xc]
cmp eax, ebx
je 0x4fd827
push 0x11f
push str.external_boringssl_src_crypto_fipsmodule_rsa_padding.c
push 0x8a
jmp 0x4fd814
push 0xfe
push str.external_boringssl_src_crypto_fipsmodule_rsa_padding.c
push 0x7f
jmp 0x4fd5e9
xor edi, edi
jmp 0x4fd5f9
push 0x119
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 0x4fd5f9
xorps xmm0, xmm0
movups xmmword [esp + 0x64], xmm0
movups xmmword [esp + 0x54], xmm0
movups xmmword [esp + 0x44], xmm0
movups xmmword [esp + 0x34], xmm0
sub esp, 4
lea ebp, [esp + 0x20]
push dword [esp + 0x94]
push ebp
call sym.fastboot.exe_EVP_DigestInit_ex
add esp, 0xc
xor edi, edi
test eax, eax
je 0x4fd5f9
mov ecx, ebp
mov ebp, dword [esp]
sub ebp, ebx
mov eax, dword [esp + 0x1c]
push 8
push 0x58ea44
push ecx
call dword [eax + 0x10]
add esp, 0xc
mov eax, dword [esp + 0x1c]
push dword [esp + 0xc]
push dword [esp + 0x90]
lea ecx, [esp + 0x24]
push ecx
call dword [eax + 0x10]
add esp, 0xc
mov eax, esi
add eax, ebx
mov ecx, dword [esp + 0x1c]
push ebp
push eax
lea ebp, [esp + 0x24]
push ebp
call dword [ecx + 0x10]
add esp, 0xc
mov eax, dword [esp + 0x1c]
lea ebx, [esp + 0x34]
push ebx
push ebp
call dword [eax + 0x14]
add esp, 8
mov eax, dword [esp + 0x1c]
push dword [eax + 0x1c]
push dword [esp + 0x24]
call sym.fastboot.exe_OPENSSL_cleanse
mov ebp, dword [esp + 0x14]
add esp, 8
test ebp, ebp
je 0x4fd901
push ebp
push dword [esp + 0x34]
push ebx
call sub.api_ms_win_crt_private_l1_1_0.dll_memcmp
add esp, 0xc
test eax, eax
je 0x4fd901
push 0x12b
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 0x4fd5f9
mov edi, 1
jmp 0x4fd5f9