Function at 0x5b6470
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 0x5b6794
mov eax, dword [ecx + edx*4 + 0x1c]
dec edx
add ebx, 4
test eax, eax
je 0x5b6490
cmp edx, 0xfffffff8
jne 0x5b64b2
cmp dword [ecx], ebp
jbe 0x5b6794
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], edx
je 0x5b64fa
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 + 0xc]
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 + 4], ecx
and ecx, 0xfffffff8
mov dword [esp + 0x20], ecx
inc ecx
mov dword [esp + 0x1c], ecx
mov dword [esp + 0x24], edx
and edx, 0xfffffffc
mov dword [esp + 0x14], edx
inc al
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 0x5b657a
shr ecx, 0x1f
and ecx, dword [esp + 0x10]
mov ebp, dword [esp + 0x4c]
mov edi, dword [esp]
test ecx, ecx
mov ecx, dword [esp + 0x2c]
jne 0x5b67a2
dec ecx
je 0x5b67a9
mov dword [esp + 0x2c], ecx
push dword [esp + 0x58]
push dword [esp + 0x2c]
push esi
call fcn.005b67d0
add esp, 0xc
mov eax, dword [esp + 0xc]
and dword [esi + edi*4 + 0x20], eax
test ebp, ebp
je 0x5b65d0
test ebx, ebx
je 0x5b65e0
xor ecx, ecx
cmp ebx, 1
je 0x5b66d8
cmp dword [esp + 4], 8
jae 0x5b65e7
xor ecx, ecx
mov eax, 1
jmp 0x5b66d0
mov dword [esp + 0x10], 0xffffffff
jmp 0x5b66fd
mov ecx, 1
jmp 0x5b656e
cmp dword [esp], 0x18
jae 0x5b65f9
pxor xmm0, xmm0
xor eax, eax
pxor xmm1, xmm1
jmp 0x5b6668
pxor xmm0, xmm0
xor eax, eax
mov ecx, dword [esp + 0x14]
pxor xmm1, xmm1
nop word [eax + eax]
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 0x5b6610
test byte [esp + 0x24], 3
je 0x5b66a5
mov ecx, dword [esp + 0x18]
nop word cs:[eax + 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 0x5b6680
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 + 4], edx
je 0x5b66d8
nop dword [eax]
or ecx, dword [esi + eax*4]
inc eax
cmp ebx, eax
jne 0x5b66d0
mov eax, ecx
not eax
dec ecx
and ecx, eax
mov edx, dword [esi]
mov edi, edx
xor edi, ebp
mov eax, edx
sub eax, ebp
xor eax, edx
or eax, edi
xor eax, edx
and eax, ecx
sar eax, 0x1f
not eax
mov dword [esp + 0x10], eax
mov edi, dword [esp]
xor ecx, ecx
mov edx, 0
cmp edi, 0xfffffff8
mov esi, dword [esp + 0x50]
mov ebp, dword [esp + 0x48]
je 0x5b6762
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
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
test eax, eax
cmove ecx, edi
mov edi, dword [esp + 0x30]
add edx, 2
cmp edi, edx
jne 0x5b6720
mov ebx, dword [esp + 8]
test bl, 1
mov esi, ebp
je 0x5b6560
mov eax, dword [esi + edx*4]
mov edi, dword [esp + 0x50]
mov edx, dword [edi + edx*4]
mov edi, eax
sub edi, edx
xor edx, eax
xor edi, eax
or edi, edx
xor edi, eax
sar edi, 0x1f
test edx, edx
cmovne ecx, edi
jmp 0x5b6560
push 0xe6
push str.external_boringssl_src_crypto_fipsmodule_bn_random.c
push 0x6c
jmp 0x5b67b5
mov eax, 1
jmp 0x5b67c3
push 0x10f
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, 0x34
pop esi
pop edi
pop ebx
pop ebp
ret