Function at 0x10085010
Capabilities:
Encode data using xor

Disassembly:
mov eax, 0x48
call fcn.10123f80
mov eax, dword [0x101c2520]
xor eax, esp
mov dword [esp + 0x44], eax
mov eax, dword [esp + 0x4c]
push esi
mov esi, dword [esp + 0x54]
mov dword [esp + 8], eax
test esi, esi
je 0x1008539d
cmp dword [0x101cb71c], 0
push ebx
push ebp
push edi
je 0x10085099
lea eax, [esp + 0x20]
push eax
call fcn.1006eba0
push 0xdf
push str..crypto_randmd_rand.c
push 0x13
push 5
call fcn.1006efa0
lea eax, [esp + 0x34]
push eax
push 0x101cbb4c
call fcn.1006eb30
mov ebx, eax
push 0xe1
neg ebx
push str..crypto_randmd_rand.c
sbb ebx, ebx
push 0x13
inc ebx
push 6
mov dword [esp + 0x3c], ebx
call fcn.1006efa0
add esp, 0x2c
test ebx, ebx
jne 0x100850b5
jmp 0x1008509f
xor ebx, ebx
mov dword [esp + 0x10], ebx
push 0xe6
push str..crypto_randmd_rand.c
push 0x12
push 9
call fcn.1006efa0
add esp, 0x10
mov ecx, dword [0x101cb704]
mov eax, dword [0x101cb708]
movq xmm0, qword [0x101cb724]
mov ebp, dword [0x101cb70c]
mov edi, ecx
add ecx, esi
mov dword [esp + 0x18], eax
mov eax, dword [0x101cb734]
movq qword [esp + 0x40], xmm0
movq xmm0, qword [0x101cb72c]
mov dword [esp + 0x1c], ebp
movq qword [esp + 0x48], xmm0
mov dword [esp + 0x50], eax
mov dword [0x101cb704], ecx
cmp ecx, 0x3ff
jb 0x10085131
mov eax, 0x401005
mul ecx
mov eax, ecx
sub eax, edx
shr eax, 1
add eax, edx
shr eax, 9
imul eax, eax, 0xfffffc01
add ecx, eax
mov dword [0x101cb704], ecx
mov dword [0x101cb700], 0x3ff
jmp 0x10085147
mov eax, dword [0x101cb700]
cmp eax, 0x3ff
jae 0x10085147
cmp ecx, eax
cmova eax, ecx
mov dword [0x101cb700], eax
mov ecx, dword [esp + 0x60]
mov eax, 0x66666667
imul esi
sar edx, 3
mov esi, edx
shr esi, 0x1f
add esi, edx
lea eax, [esi + esi*4]
shl eax, 2
sub ecx, eax
xor eax, eax
test ecx, ecx
setg al
add eax, esi
add ebp, eax
mov dword [0x101cb70c], ebp
test ebx, ebx
jne 0x1008518f
push 0x106
push str..crypto_randmd_rand.c
push 0x12
push 0xa
call fcn.1006efa0
add esp, 0x10
lea eax, [esp + 0x28]
push eax
call fcn.1005f360
mov eax, dword [esp + 0x64]
add esp, 4
mov dword [esp + 0x20], 0
test eax, eax
jle 0x100852ec
mov ebp, eax
mov eax, 0x14
mov esi, ebp
cmp ebp, 0x14
push 0
cmovg esi, eax
call fcn.1005f4e0
push eax
lea eax, [esp + 0x30]
push eax
call fcn.1005ef40
add esp, 0xc
test eax, eax
je 0x1008538d
push 0x14
lea eax, [esp + 0x44]
push eax
lea eax, [esp + 0x30]
push eax
call fcn.1005f0f0
add esp, 0xc
test eax, eax
je 0x1008538d
lea ebx, [edi - 0x3ff]
add ebx, esi
test ebx, ebx
jle 0x1008522d
mov eax, esi
sub eax, ebx
push eax
lea eax, [edi + 0x101cb738]
push eax
lea eax, [esp + 0x30]
push eax
call fcn.1005f0f0
add esp, 0xc
test eax, eax
je 0x1008538d
push ebx
push 0x101cb738
jmp 0x10085235
push esi
lea eax, [edi + 0x101cb738]
push eax
lea eax, [esp + 0x30]
push eax
call fcn.1005f0f0
add esp, 0xc
test eax, eax
je 0x1008538d
mov ebx, dword [esp + 0x14]
push esi
lea eax, [esp + 0x2c]
push ebx
push eax
call fcn.1005f0f0
add esp, 0xc
test eax, eax
je 0x1008538d
push 8
lea eax, [esp + 0x1c]
push eax
lea eax, [esp + 0x30]
push eax
call fcn.1005f0f0
add esp, 0xc
test eax, eax
je 0x1008538d
push 0
lea eax, [esp + 0x44]
push eax
lea eax, [esp + 0x30]
push eax
call fcn.1005ee90
add esp, 0xc
test eax, eax
je 0x1008538d
inc dword [esp + 0x1c]
add ebx, esi
xor ecx, ecx
mov dword [esp + 0x14], ebx
test esi, esi
jle 0x100852cb
lea ecx, [ecx]
mov al, byte [esp + ecx + 0x40]
xor byte [edi + 0x101cb738], al
inc edi
xor eax, eax
cmp edi, 0x3ff
cmovge edi, eax
inc ecx
cmp ecx, esi
jl 0x100852b0
mov ebx, dword [esp + 0x20]
add ebx, 0x14
sub ebp, 0x14
mov dword [esp + 0x20], ebx
mov eax, 0x14
cmp ebx, dword [esp + 0x60]
jl 0x100851b7
mov ebx, dword [esp + 0x10]
test ebx, ebx
jne 0x10085306
push 0x13b
push str..crypto_randmd_rand.c
push 0x12
push 9
call fcn.1006efa0
add esp, 0x10
xor ecx, ecx
jmp 0x10085310
movzx eax, byte [esp + ecx + 0x40]
xor byte [ecx + 0x101cb724], al
movzx eax, byte [esp + ecx + 0x41]
xor byte [ecx + 0x101cb725], al
movzx eax, byte [esp + ecx + 0x42]
xor byte [ecx + 0x101cb726], al
movzx eax, byte [esp + ecx + 0x43]
xor byte [ecx + 0x101cb727], al
movzx eax, byte [esp + ecx + 0x44]
xor byte [ecx + 0x101cb728], al
add ecx, 5
cmp ecx, 0x14
jl 0x10085310
movsd xmm0, qword [0x101651e8]
movsd xmm1, qword [0x101cb710]
comisd xmm0, xmm1
jbe 0x10085373
addsd xmm1, qword [esp + 0x64]
movsd qword [0x101cb710], xmm1
test ebx, ebx
jne 0x1008538d
push 0x148
push str..crypto_randmd_rand.c
push 0x12
push 0xa
call fcn.1006efa0
add esp, 0x10
lea eax, [esp + 0x28]
push eax
call fcn.1005f100
add esp, 4
pop edi
pop ebp
pop ebx
mov ecx, dword [esp + 0x48]
pop esi
xor ecx, esp
call fcn.1012032b
add esp, 0x48
ret