Function at 0x5b53f0
Capabilities:
Encode data using xor

Disassembly:
push ebp
push ebx
push edi
push esi
sub esp, 0x18
mov edx, dword [esp + 0x38]
mov ecx, dword [esp + 0x34]
mov eax, dword [edx]
mov ebx, dword [edx + 4]
lea ebp, [ebx*4 + 4]
add ebx, 0xfffffff8
nop
cmp ebx, 0xfffffff8
je 0x5b548e
mov edi, dword [eax + ebx*4 + 0x1c]
dec ebx
add ebp, 0xfffffffc
test edi, edi
je 0x5b5410
cmp ebx, 0xfffffff8
jne 0x5b542a
cmp dword [eax], ecx
jbe 0x5b548e
lea eax, [ebx + 9]
mov dword [esp], eax
push eax
push dword [esp + 0x30]
call fcn.0059f5c0
add esp, 8
xor esi, esi
test eax, eax
je 0x5b54a8
mov eax, edi
shr eax, 1
or eax, edi
mov ecx, eax
shr ecx, 2
or ecx, eax
mov eax, ecx
shr eax, 4
or eax, ecx
mov ecx, eax
shr ecx, 8
or ecx, eax
mov edi, ecx
shr edi, 0x10
or edi, ecx
mov eax, edi
shr eax, 1
cmp ebx, 0xfffffff8
jne 0x5b54b2
cmp eax, dword [esp + 0x34]
jae 0x5b54b2
push 0x13d
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 0x5b54a8
push 0xe6
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
xor esi, esi
mov eax, esi
add esp, 0x18
pop esi
pop edi
pop ebx
pop ebp
ret
mov dword [esp + 0x10], eax
push 0x8bf7c3
push ebp
mov esi, dword [esp + 0x34]
push dword [esi]
call fcn.005b67d0
add esp, 0xc
mov eax, dword [esi]
and dword [eax + ebx*4 + 0x20], edi
mov edi, dword [esi]
cmp dword [esp + 0x34], 0
mov dword [esp + 4], edi
je 0x5b54fe
xor edx, edx
cmp ebx, 0xfffffff8
mov eax, dword [esp]
je 0x5b5628
mov ebp, ebx
add ebp, 8
jae 0x5b550e
xor edx, edx
mov esi, 1
jmp 0x5b5620
mov dword [esp + 0xc], 0xffffffff
mov eax, dword [esp]
jmp 0x5b5651
mov ecx, ebx
shr ecx, 3
inc ecx
cmp ebx, 0x18
jae 0x5b5525
pxor xmm0, xmm0
xor edx, edx
pxor xmm1, xmm1
jmp 0x5b5598
mov esi, ecx
and esi, 0xfffffffc
pxor xmm0, xmm0
xor edx, edx
pxor xmm1, xmm1
nop word cs:[eax + eax]
movdqu xmm2, xmmword [edi + edx*4 + 4]
por xmm2, xmm0
movdqu xmm0, xmmword [edi + edx*4 + 0x14]
por xmm0, xmm1
movdqu xmm1, xmmword [edi + edx*4 + 0x24]
movdqu xmm3, xmmword [edi + edx*4 + 0x34]
movdqu xmm4, xmmword [edi + edx*4 + 0x44]
por xmm4, xmm1
por xmm4, xmm2
movdqu xmm2, xmmword [edi + edx*4 + 0x54]
por xmm2, xmm3
por xmm2, xmm0
movdqu xmm0, xmmword [edi + edx*4 + 0x64]
por xmm0, xmm4
movdqu xmm1, xmmword [edi + edx*4 + 0x74]
por xmm1, xmm2
add edx, 0x20
add esi, 0xfffffffc
jne 0x5b5540
mov dword [esp + 8], ebp
mov esi, ebp
and esi, 0xfffffff8
test cl, 3
je 0x5b55f2
mov ecx, ebx
shr cl, 3
inc cl
movzx ecx, cl
and ecx, 3
shl ecx, 3
nop word cs:[eax + eax]
lea edi, [edx*4]
or edi, 4
mov ebp, dword [esp + 4]
movdqu xmm2, xmmword [ebp + edi]
por xmm0, xmm2
mov ebp, dword [esp + 4]
movdqu xmm2, xmmword [ebp + edi + 0x10]
mov edi, dword [esp + 4]
por xmm1, xmm2
add edx, 8
add ecx, 0xfffffff8
jne 0x5b55c0
por xmm0, xmm1
pshufd xmm1, xmm0, 0xee
por xmm1, xmm0
pshufd xmm0, xmm1, 0x55
por xmm0, xmm1
movd edx, xmm0
cmp dword [esp + 8], esi
je 0x5b5628
or esi, 1
nop word cs:[eax + eax]
or edx, dword [edi + esi*4]
inc esi
cmp eax, esi
jne 0x5b5620
mov ecx, edx
not ecx
dec edx
and edx, ecx
mov ecx, dword [edi]
mov esi, ecx
mov eax, dword [esp + 0x34]
xor esi, eax
mov edi, ecx
sub edi, eax
mov eax, dword [esp]
xor edi, ecx
or edi, esi
xor edi, ecx
and edi, edx
sar edi, 0x1f
not edi
mov dword [esp + 0xc], edi
mov ecx, dword [esp + 0x38]
mov ecx, dword [ecx]
cmp ebx, 0xfffffff8
jne 0x5b5662
xor edx, edx
xor edi, edi
jmp 0x5b56cb
and eax, 0xfffffffe
mov dword [esp + 0x14], eax
xor edx, edx
xor edi, edi
mov dword [esp + 8], ecx
mov esi, dword [esp + 4]
nop word cs:[eax + eax]
mov eax, dword [esi + edi*4]
mov ecx, dword [esp + 8]
mov ecx, dword [ecx + edi*4]
mov ebp, eax
sub ebp, ecx
xor ecx, eax
xor ebp, eax
or ebp, ecx
xor ebp, eax
mov eax, dword [esi + edi*4 + 4]
sar ebp, 0x1f
test ecx, ecx
mov ecx, dword [esp + 8]
mov ecx, dword [ecx + edi*4 + 4]
cmove ebp, edx
mov edx, eax
sub edx, ecx
xor ecx, eax
xor edx, eax
or edx, ecx
xor edx, eax
sar edx, 0x1f
test ecx, ecx
mov ecx, dword [esp + 8]
cmove edx, ebp
add edi, 2
cmp dword [esp + 0x14], edi
jne 0x5b5680
test byte [esp], 1
je 0x5b56ef
mov eax, dword [esp + 4]
mov eax, dword [eax + edi*4]
mov ecx, dword [ecx + edi*4]
mov esi, eax
sub esi, ecx
xor ecx, eax
xor esi, eax
or esi, ecx
xor esi, eax
sar esi, 0x1f
test ecx, ecx
cmovne edx, esi
shr edx, 0x1f
and edx, dword [esp + 0xc]
mov eax, dword [esp + 0x30]
mov dword [eax], edx
mov eax, edx
dec edx
and edx, dword [esp + 0x34]
mov esi, dword [esp + 0x2c]
mov ecx, dword [esi]
or dword [ecx], edx
neg eax
mov ecx, dword [esp + 0x10]
or ecx, eax
mov eax, dword [esi]
and dword [eax + ebx*4 + 0x20], ecx
mov dword [esi + 0xc], 0
mov eax, dword [esp]
mov dword [esi + 4], eax
mov esi, 1
jmp 0x5b54a8