Function at 0x100608a0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x48
mov eax, dword [0x1013a420]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov ebx, dword [ebp + 0xc]
mov dword [ebp - 0x20], eax
test ebx, ebx
je 0x10060bd6
cmp dword [0x10147bf4], 0
push esi
push edi
je 0x1006091d
lea eax, [ebp - 0x28]
push eax
call fcn.100614b0
push 0xdf
push str.randmd_rand.c
push 0x13
push 5
call fcn.10061690
lea eax, [ebp - 0x28]
push eax
push 0x10148024
call fcn.10061440
mov esi, eax
push 0xe1
neg esi
push str.randmd_rand.c
sbb esi, esi
push 0x13
inc esi
push 6
mov dword [ebp - 0x1c], esi
call fcn.10061690
add esp, 0x2c
test esi, esi
jne 0x1006093a
jmp 0x10060924
mov dword [ebp - 0x1c], 0
push 0xe6
push str.randmd_rand.c
push 0x12
push 9
call fcn.10061690
add esp, 0x10
mov eax, dword [0x10147be0]
mov ecx, dword [0x10147bdc]
mov edi, ecx
mov dword [ebp - 0x30], eax
add ecx, ebx
mov eax, dword [0x10147be4]
mov dword [ebp - 0x2c], eax
mov eax, dword [0x10147bfc]
mov dword [ebp - 0x18], eax
mov eax, dword [0x10147c00]
mov dword [ebp - 0x14], eax
mov eax, dword [0x10147c04]
mov dword [ebp - 0x10], eax
mov eax, dword [0x10147c08]
mov dword [ebp - 0xc], eax
mov eax, dword [0x10147c0c]
mov dword [ebp - 8], eax
mov dword [0x10147bdc], ecx
cmp ecx, 0x3ff
jl 0x100609b7
mov eax, 0x7fdff7fd
mov dword [0x10147bd8], 0x3ff
imul ecx
sub edx, ecx
sar edx, 9
mov eax, edx
shr eax, 0x1f
add eax, edx
imul eax, eax, 0x3ff
add ecx, eax
mov dword [0x10147bdc], ecx
jmp 0x100609cd
mov eax, dword [0x10147bd8]
cmp eax, 0x3ff
jge 0x100609cd
cmp ecx, eax
cmovg eax, ecx
mov dword [0x10147bd8], eax
mov eax, 0x66666667
mov ecx, ebx
imul ebx
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 dword [0x10147be4], eax
cmp dword [ebp - 0x1c], 0
jne 0x10060a13
push 0x106
push str.randmd_rand.c
push 0x12
push 0xa
call fcn.10061690
add esp, 0x10
lea eax, [ebp - 0x48]
push eax
call fcn.1006b130
add esp, 4
test ebx, ebx
jle 0x10060b2c
lea ecx, [ebx - 1]
mov eax, 0xcccccccd
mul ecx
mov eax, edx
shr eax, 4
inc eax
mov dword [ebp - 0x24], eax
mov eax, 0x14
nop
cmp ebx, 0x14
mov esi, ebx
push 0
cmovg esi, eax
call fcn.1006b710
push eax
lea eax, [ebp - 0x48]
push eax
call fcn.1006ace0
push 0x14
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x48]
push eax
call fcn.1006ae90
lea ecx, [edi - 0x3ff]
add esp, 0x18
add ecx, esi
test ecx, ecx
jle 0x10060aa8
mov eax, esi
sub eax, ecx
push eax
lea eax, [edi + 0x10147c10]
push eax
lea eax, [ebp - 0x48]
push eax
call fcn.1006ae90
lea eax, [edi - 0x3ff]
add eax, esi
push eax
lea eax, [ebp - 0x48]
push 0x10147c10
push eax
call fcn.1006ae90
add esp, 0x18
jmp 0x10060abc
push esi
lea eax, [edi + 0x10147c10]
push eax
lea eax, [ebp - 0x48]
push eax
call fcn.1006ae90
add esp, 0xc
push esi
push dword [ebp - 0x20]
lea eax, [ebp - 0x48]
push eax
call fcn.1006ae90
push 8
lea eax, [ebp - 0x30]
push eax
lea eax, [ebp - 0x48]
push eax
call fcn.1006ae90
push 0
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x48]
push eax
call fcn.1006ac30
inc dword [ebp - 0x2c]
add esp, 0x24
add dword [ebp - 0x20], esi
xor ecx, ecx
test esi, esi
jle 0x10060b1b
jmp 0x10060b00
mov al, byte [ebp + ecx - 0x18]
xor byte [edi + 0x10147c10], al
inc edi
xor eax, eax
cmp edi, 0x3ff
cmovge edi, eax
inc ecx
cmp ecx, esi
jl 0x10060b00
sub ebx, 0x14
mov eax, 0x14
dec dword [ebp - 0x24]
jne 0x10060a40
lea eax, [ebp - 0x48]
push eax
call fcn.1006aea0
mov edx, dword [ebp - 0x1c]
add esp, 4
pop edi
pop esi
test edx, edx
jne 0x10060b5a
push 0x139
push str.randmd_rand.c
push 0x12
push 9
call fcn.10061690
mov edx, dword [ebp - 0x1c]
add esp, 0x10
xor ecx, ecx
lea esp, [esp]
movzx eax, byte [ebp + ecx - 0x18]
xor byte [ecx + 0x10147bfc], al
movzx eax, byte [ebp + ecx - 0x17]
xor byte [ecx + 0x10147bfd], al
movzx eax, byte [ebp + ecx - 0x16]
xor byte [ecx + 0x10147bfe], al
movzx eax, byte [ebp + ecx - 0x15]
xor byte [ecx + 0x10147bff], al
movzx eax, byte [ebp + ecx - 0x14]
xor byte [ecx + 0x10147c00], al
add ecx, 5
cmp ecx, 0x14
jl 0x10060b60
fld qword [0x10147be8]
fld qword [0x100f3ff0]
fcompi st(1)
jbe 0x10060bba
fadd qword [ebp + 0x10]
fstp qword [0x10147be8]
jmp 0x10060bbc
fstp st(0)
test edx, edx
jne 0x10060bd6
push 0x144
push str.randmd_rand.c
push 0x12
push 0xa
call fcn.10061690
add esp, 0x10
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop ebx
call fcn.1003890f
mov esp, ebp
pop ebp
ret