Function at 0x459970
Capabilities:
Encode data using xor

Disassembly:
push ebp
push ebx
push edi
push esi
sub esp, 0x14
mov edx, dword [esp + 0x34]
mov ecx, dword [esp + 0x30]
mov ebp, dword [edx + 4]
mov eax, dword [edx]
lea edi, [ebp*4 + 4]
nop dword [eax + eax]
mov ebx, ebp
test ebp, ebp
je 0x459a14
mov esi, dword [eax + ebx*4 - 4]
add edi, 0xfffffffc
lea ebp, [ebx - 1]
test esi, esi
je 0x459990
test ebp, ebp
jne 0x4599ac
cmp dword [eax], ecx
jbe 0x459a14
lea eax, [ebp + 1]
mov dword [esp + 4], eax
push eax
push dword [esp + 0x2c]
call fcn.00447880
add esp, 8
xor ecx, ecx
test eax, eax
je 0x459a2e
mov eax, esi
shr eax, 1
or eax, esi
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 eax, dword [esp + 0x30]
mov esi, ecx
shr esi, 0x10
or esi, ecx
mov ecx, esi
shr ecx, 1
test ebp, ebp
jne 0x459a38
cmp ecx, eax
jae 0x459a38
push 0x137
push str.external_boringssl_src_crypto_fipsmodule_bn_random.c
push 0x6c
push 0
push 3
call sym.adb.exe_ERR_put_error
xor ecx, ecx
add esp, 0x14
jmp 0x459a2e
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
xor ecx, ecx
mov eax, ecx
add esp, 0x14
pop esi
pop edi
pop ebx
pop ebp
ret
mov dword [esp + 0xc], ecx
push 0x57c0a7
push edi
mov eax, dword [esp + 0x30]
mov edi, eax
push dword [eax]
call fcn.0045abe0
mov ecx, dword [esp + 0x3c]
add esp, 0xc
mov eax, dword [edi]
and dword [eax + ebx*4 - 4], esi
mov eax, dword [esp + 0x34]
test ecx, ecx
mov edi, dword [edi]
mov eax, dword [eax]
mov dword [esp + 8], edi
mov dword [esp + 0x10], eax
je 0x459a86
test ebp, ebp
je 0x459a92
cmp ebp, 7
ja 0x459a96
mov eax, dword [esp + 4]
xor esi, esi
mov edx, 1
jmp 0x459b00
mov dword [esp], 0xffffffff
jmp 0x459b2d
xor esi, esi
jmp 0x459b08
mov eax, ebp
lea esi, [edi + 0x14]
pxor xmm0, xmm0
pxor xmm1, xmm1
and eax, 0xfffffff8
lea edx, [eax + 1]
mov dword [esp], eax
mov edi, eax
mov eax, dword [esp + 4]
nop word cs:[eax + eax]
nop dword [eax]
movdqu xmm2, xmmword [esi - 0x10]
movdqu xmm3, xmmword [esi]
add esi, 0x20
add edi, 0xfffffff8
por xmm0, xmm2
por xmm1, xmm3
jne 0x459ac0
por xmm1, xmm0
cmp ebp, dword [esp]
mov edi, dword [esp + 8]
pshufd xmm0, xmm1, 0x4e
por xmm0, xmm1
pshufd xmm1, xmm0, 0xe5
por xmm1, xmm0
movd esi, xmm1
je 0x459b08
nop dword [eax]
or esi, dword [edi + edx*4]
inc edx
cmp eax, edx
jne 0x459b00
mov ebp, dword [edi]
mov eax, dword [esp + 0x30]
mov ecx, esi
dec esi
not ecx
mov edx, ebp
mov edi, ebp
sub edx, eax
xor edi, eax
xor edx, ebp
or edx, edi
xor edx, ebp
and edx, ecx
and edx, esi
sar edx, 0x1f
not edx
mov dword [esp], edx
xor eax, eax
xor edi, edi
nop word cs:[eax + eax]
nop dword [eax + eax]
mov ecx, dword [esp + 8]
mov edx, dword [esp + 0x10]
mov ecx, dword [ecx + edi*4]
mov edx, dword [edx + edi*4]
inc edi
mov ebp, ecx
sub ebp, edx
xor edx, ecx
xor ebp, ecx
lea esi, [edx - 1]
or ebp, edx
not edx
xor ebp, ecx
and esi, edx
mov edx, eax
sar ebp, 0x1f
sar esi, 0x1f
mov ecx, ebp
and edx, esi
not esi
not ecx
and ecx, 1
or ecx, ebp
and esi, ecx
mov eax, esi
or eax, edx
cmp dword [esp + 4], edi
jne 0x459b40
mov edx, dword [esp + 0x30]
shr eax, 0x1f
mov ecx, dword [esp + 0x2c]
and eax, dword [esp]
mov edi, edx
mov edx, dword [esp + 0x28]
mov dword [ecx], eax
mov ecx, eax
dec eax
and edi, eax
neg ecx
mov esi, edx
mov edx, dword [edx]
or dword [edx], edi
and eax, dword [esp + 0xc]
or eax, ecx
mov ecx, dword [esi]
and dword [ecx + ebx*4 - 4], eax
mov ecx, 1
mov dword [esi + 0xc], 0
mov eax, dword [esp + 4]
mov dword [esi + 4], eax
jmp 0x459a2e