Function at 0x45a960
Capabilities:
Encode data using xor

Disassembly:
push ebp
push ebx
push edi
push esi
sub esp, 0x28
mov eax, dword [esp + 0x48]
mov ecx, dword [esp + 0x44]
mov ebx, 0xfffffffc
mov ebp, eax
nop word cs:[eax + eax]
mov edx, ebp
test ebp, ebp
je 0x45ab99
mov eax, dword [ecx + edx*4 - 4]
add ebx, 4
lea ebp, [edx - 1]
test eax, eax
je 0x45a980
test ebp, ebp
jne 0x45a9a8
mov edi, dword [esp + 0x40]
cmp dword [ecx], edi
jbe 0x45ab99
mov ecx, eax
mov edi, ebp
mov ebp, dword [esp + 0x3c]
mov dword [esp + 4], edx
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 eax, ecx
shr eax, 8
or eax, ecx
mov esi, eax
shr eax, 0x10
test ebx, ebx
mov dword [esp + 8], eax
je 0x45a9ea
lea eax, [ebp + edi*4 + 4]
push ebx
push 0
push eax
call sub.msvcrt.dll_memset
add esp, 0xc
or dword [esp + 8], esi
mov esi, dword [esp + 0x48]
mov eax, edi
lea edx, [edi + 1]
mov dword [esp + 0x1c], edi
and eax, 0xfffffff8
mov dword [esp + 0x10], edx
mov dword [esp], eax
inc eax
mov dword [esp + 0x18], eax
lea eax, [ebp + 0x14]
shl esi, 2
mov dword [esp + 0x14], eax
mov eax, 0x64
sub esi, ebx
mov ebx, dword [esp + 4]
mov dword [esp + 0x20], esi
mov esi, ebp
nop word cs:[eax + eax]
nop
dec eax
je 0x45abb3
mov ebp, edx
mov dword [esp + 0x24], eax
push dword [esp + 0x4c]
push dword [esp + 0x24]
push esi
call fcn.0045abe0
add esp, 0xc
mov eax, dword [esp + 8]
and dword [esi + ebx*4 - 4], eax
cmp dword [esp + 0x40], 0
je 0x45aa80
cmp ebp, 1
je 0x45aa90
mov edx, ebp
test ebp, ebp
mov ecx, ebp
mov eax, ebp
je 0x45ab86
cmp edi, 8
jae 0x45aa94
xor ecx, ecx
mov eax, 1
jmp 0x45aaf0
mov dword [esp + 0xc], 0xffffffff
jmp 0x45ab1e
xor ecx, ecx
jmp 0x45aaf8
mov eax, dword [esp]
mov ecx, dword [esp + 0x14]
pxor xmm0, xmm0
pxor xmm1, xmm1
nop word cs:[eax + eax]
nop dword [eax]
movdqu xmm2, xmmword [ecx - 0x10]
movdqu xmm3, xmmword [ecx]
add ecx, 0x20
add eax, 0xfffffff8
por xmm0, xmm2
por xmm1, xmm3
jne 0x45aab0
por xmm1, xmm0
cmp edi, dword [esp]
mov eax, dword [esp + 0x18]
pshufd xmm0, xmm1, 0x4e
por xmm0, xmm1
pshufd xmm1, xmm0, 0xe5
por xmm1, xmm0
movd ecx, xmm1
je 0x45aaf8
nop dword [eax]
or ecx, dword [esi + eax*4]
inc eax
cmp edx, eax
jne 0x45aaf0
mov ebx, dword [esi]
mov eax, dword [esp + 0x40]
mov edi, ecx
dec ecx
not edi
mov esi, ebx
mov edx, ebx
sub esi, eax
xor edx, eax
xor esi, ebx
or esi, edx
xor esi, ebx
and esi, edi
and esi, ecx
sar esi, 0x1f
not esi
mov dword [esp + 0xc], esi
mov edi, dword [esp + 0x44]
xor eax, eax
xor edx, edx
nop word cs:[eax + eax]
mov ecx, dword [esp + 0x3c]
mov esi, dword [edi + edx*4]
mov ebp, dword [ecx + edx*4]
inc edx
mov ebx, ebp
sub ebx, esi
xor esi, ebp
xor ebx, ebp
lea ecx, [esi - 1]
or ebx, esi
not esi
xor ebx, ebp
and ecx, esi
mov ebp, eax
sar ebx, 0x1f
sar ecx, 0x1f
mov esi, ebx
and ebp, ecx
not ecx
not esi
and esi, 1
or esi, ebx
and ecx, esi
mov eax, ecx
or eax, ebp
cmp dword [esp + 0x10], edx
jne 0x45ab30
mov esi, dword [esp + 0x3c]
mov ebx, dword [esp + 4]
mov edi, dword [esp + 0x1c]
mov edx, dword [esp + 0x10]
mov ecx, dword [esp + 0xc]
shr eax, 0x1f
test eax, ecx
mov eax, dword [esp + 0x24]
je 0x45aa30
mov eax, 1
jmp 0x45abcd
push 0xe2
push str.external_boringssl_src_crypto_fipsmodule_bn_random.c
push 0x6c
push 0
push 3
call sym.adb.exe_ERR_put_error
add esp, 0x14
jmp 0x45abcb
push 0x10b
push str.external_boringssl_src_crypto_fipsmodule_bn_random.c
push 0x73
push 0
push 3
call sym.adb.exe_ERR_put_error
add esp, 0x14
xor eax, eax
add esp, 0x28
pop esi
pop edi
pop ebx
pop ebp
ret