Function at 0x4cb350
Capabilities:
Encode data using xor

Disassembly:
push ebp
push ebx
push edi
push esi
sub esp, 0x34
mov eax, dword [esp + 0x54]
mov ecx, dword [esp + 0x50]
mov ebp, dword [esp + 0x4c]
mov esi, dword [esp + 0x48]
lea edx, [eax - 8]
mov ebx, 0xfffffffc
nop
cmp edx, 0xfffffff8
je 0x4cb66d
mov eax, dword [ecx + edx*4 + 0x1c]
add edx, 0xffffffff
add ebx, 4
test eax, eax
je 0x4cb370
cmp edx, 0xfffffff8
jne 0x4cb394
cmp dword [ecx], ebp
jbe 0x4cb66d
lea ecx, [edx + 9]
mov dword [esp + 8], ecx
mov ecx, eax
shr ecx, 1
or ecx, eax
mov eax, ecx
shr eax, 2
or eax, ecx
mov ecx, eax
shr ecx, 4
or ecx, eax
mov edi, ecx
shr edi, 8
or edi, ecx
mov eax, edi
shr eax, 0x10
mov dword [esp + 0xc], eax
test ebx, ebx
mov dword [esp + 4], edx
je 0x4cb3dd
lea eax, [esi + edx*4]
add eax, 0x24
push ebx
push 0
push eax
call sub.api_ms_win_crt_string_l1_1_0.dll_memset
mov edx, dword [esp + 0x10]
add esp, 0xc
or dword [esp + 0xc], edi
mov eax, dword [esp + 0x54]
shl eax, 2
sub eax, ebx
mov dword [esp + 0x28], eax
lea ecx, [edx + 8]
mov eax, edx
shr eax, 3
mov edi, edx
lea edx, [eax + 1]
mov dword [esp], ecx
and ecx, 0xfffffff8
mov dword [esp + 0x20], ecx
add ecx, 1
mov dword [esp + 0x1c], ecx
mov dword [esp + 0x24], edx
and edx, 0xfffffffc
mov dword [esp + 0x14], edx
add al, 1
movzx eax, al
and eax, 3
shl eax, 3
mov dword [esp + 0x18], eax
mov ebx, dword [esp + 8]
mov eax, ebx
and eax, 0xfffffffe
mov ecx, 0x64
mov dword [esp + 0x30], eax
jmp 0x4cb45b
shr ecx, 0x1f
and ecx, dword [esp + 0x10]
mov ebp, dword [esp + 0x4c]
mov edi, dword [esp + 4]
test ecx, ecx
mov ecx, dword [esp + 0x2c]
jne 0x4cb67b
add ecx, 0xffffffff
je 0x4cb682
mov dword [esp + 0x2c], ecx
push dword [esp + 0x58]
push dword [esp + 0x2c]
push esi
call fcn.004cb6b0
add esp, 0xc
mov eax, dword [esp + 0xc]
and dword [esi + edi*4 + 0x20], eax
test ebp, ebp
je 0x4cb4b0
test ebx, ebx
je 0x4cb4c0
xor ecx, ecx
cmp ebx, 1
je 0x4cb5aa
cmp dword [esp], 8
jae 0x4cb4c7
xor ecx, ecx
mov eax, 1
jmp 0x4cb5a0
mov dword [esp + 0x10], 0xffffffff
jmp 0x4cb5ce
mov ecx, 1
jmp 0x4cb44f
pxor xmm0, xmm0
xor eax, eax
cmp edi, 0x18
jae 0x4cb4d8
pxor xmm1, xmm1
jmp 0x4cb538
mov ecx, dword [esp + 0x14]
pxor xmm1, xmm1
movdqu xmm2, xmmword [esi + eax*4 + 4]
por xmm2, xmm0
movdqu xmm0, xmmword [esi + eax*4 + 0x14]
por xmm0, xmm1
movdqu xmm1, xmmword [esi + eax*4 + 0x24]
movdqu xmm3, xmmword [esi + eax*4 + 0x34]
movdqu xmm4, xmmword [esi + eax*4 + 0x44]
por xmm4, xmm1
por xmm4, xmm2
movdqu xmm2, xmmword [esi + eax*4 + 0x54]
por xmm2, xmm3
por xmm2, xmm0
movdqu xmm0, xmmword [esi + eax*4 + 0x64]
por xmm0, xmm4
movdqu xmm1, xmmword [esi + eax*4 + 0x74]
por xmm1, xmm2
add eax, 0x20
add ecx, 0xfffffffc
jne 0x4cb4e0
test byte [esp + 0x24], 3
je 0x4cb575
mov ecx, dword [esp + 0x18]
nop word cs:[eax + eax]
nop dword [eax]
lea edx, [eax*4]
or edx, 4
movdqu xmm2, xmmword [esi + edx]
por xmm0, xmm2
movdqu xmm2, xmmword [esi + edx + 0x10]
por xmm1, xmm2
add eax, 8
add ecx, 0xfffffff8
jne 0x4cb550
por xmm0, xmm1
pshufd xmm1, xmm0, 0xee
por xmm1, xmm0
pshufd xmm0, xmm1, 0x55
por xmm0, xmm1
movd ecx, xmm0
mov eax, dword [esp + 0x1c]
mov edx, dword [esp + 0x20]
cmp dword [esp], edx
je 0x4cb5aa
nop dword [eax]
or ecx, dword [esi + eax*4]
add eax, 1
cmp ebx, eax
jne 0x4cb5a0
mov eax, ecx
not eax
add ecx, 0xffffffff
and ecx, eax
mov eax, dword [esi]
mov edx, eax
xor edx, ebp
mov esi, eax
sub esi, ebp
xor esi, eax
or esi, edx
xor esi, eax
and esi, ecx
sar esi, 0x1f
not esi
mov dword [esp + 0x10], esi
xor ecx, ecx
mov edx, 0
cmp edi, 0xfffffff8
mov esi, dword [esp + 0x50]
mov ebp, dword [esp + 0x48]
je 0x4cb638
xor ecx, ecx
xor edx, edx
nop word cs:[eax + eax]
mov ebx, dword [ebp + edx*4]
mov eax, dword [esi + edx*4]
mov edi, ebx
sub edi, eax
xor eax, ebx
xor edi, ebx
or edi, eax
xor edi, ebx
mov ebx, dword [ebp + edx*4 + 4]
sar edi, 0x1f
or edi, 1
test eax, eax
mov eax, dword [esi + edx*4 + 4]
cmove edi, ecx
mov ecx, ebx
sub ecx, eax
xor eax, ebx
xor ecx, ebx
or ecx, eax
xor ecx, ebx
sar ecx, 0x1f
or ecx, 1
test eax, eax
cmove ecx, edi
mov edi, dword [esp + 0x30]
add edx, 2
cmp edi, edx
jne 0x4cb5f0
mov ebx, dword [esp + 8]
test bl, 1
mov esi, ebp
je 0x4cb440
mov edi, dword [esi + edx*4]
mov eax, dword [esp + 0x50]
mov edx, dword [eax + edx*4]
mov eax, edi
sub eax, edx
xor edx, edi
xor eax, edi
or eax, edx
xor eax, edi
sar eax, 0x1f
or eax, 1
test edx, edx
cmovne ecx, eax
jmp 0x4cb440
push 0xe2
push str.external_boringssl_src_crypto_fipsmodule_bn_random.c
push 0x6c
jmp 0x4cb68e
mov eax, 1
jmp 0x4cb69c
push 0x10b
push str.external_boringssl_src_crypto_fipsmodule_bn_random.c
push 0x73
push 0
push 3
call sym.fastboot.exe_ERR_put_error
add esp, 0x14
xor eax, eax
add esp, 0x34
pop esi
pop edi
pop ebx
pop ebp
ret