Function at 0x10061da0
Capabilities:
Encode data using xor

Disassembly:
mov eax, 0x48
call fcn.10071fa0
mov eax, dword [0x100f51d4]
xor eax, esp
mov dword [esp + 0x44], eax
mov eax, dword [esp + 0x4c]
push edi
mov edi, dword [esp + 0x54]
mov dword [esp + 4], eax
test edi, edi
je 0x1006212e
cmp dword [0x100f7d0c], 0
push ebx
push ebp
push esi
je 0x10061e27
lea eax, [esp + 0x18]
push eax
call fcn.10059f10
push 0xdf
push 0x100e48d0
push 0x13
push 5
call fcn.10059fc0
lea eax, [esp + 0x2c]
push eax
push 0x100f8140
call fcn.10059ea0
neg eax
push 0xe1
push 0x100e48d0
sbb ebp, ebp
push 0x13
inc ebp
push 6
mov dword [esp + 0x40], ebp
call fcn.10059fc0
add esp, 0x2c
test ebp, ebp
jne 0x10061e43
jmp 0x10061e2d
xor ebp, ebp
mov dword [esp + 0x14], ebp
push 0xe6
push 0x100e48d0
push 0x12
push 9
call fcn.10059fc0
add esp, 0x10
mov eax, dword [0x100f7cf4]
mov ebx, dword [0x100f7cf0]
mov dword [esp + 0x20], eax
mov eax, dword [0x100f7cf8]
mov dword [esp + 0x24], eax
mov eax, dword [0x100f812c]
lea ecx, [edi + ebx]
mov dword [esp + 0x40], eax
mov eax, dword [0x100f8130]
mov dword [esp + 0x44], eax
mov eax, dword [0x100f8134]
mov dword [esp + 0x48], eax
mov eax, dword [0x100f8138]
mov dword [esp + 0x4c], eax
mov eax, dword [0x100f813c]
mov dword [esp + 0x50], eax
mov dword [0x100f7cf0], ecx
cmp ecx, 0x3ff
jb 0x10061ec5
mov eax, 0x401005
mov dword [0x100f7cec], 0x3ff
mul ecx
mov eax, ecx
sub eax, edx
shr eax, 1
add eax, edx
shr eax, 9
imul eax, eax, 0x3ff
sub ecx, eax
mov dword [0x100f7cf0], ecx
jmp 0x10061edb
mov eax, dword [0x100f7cec]
cmp eax, 0x3ff
jae 0x10061edb
cmp ecx, eax
jbe 0x10061edb
mov dword [0x100f7cec], ecx
mov eax, 0x66666667
mov ecx, edi
imul edi
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 [0x100f7cf8], eax
test ebp, ebp
jne 0x10061f1f
push 0x106
push 0x100e48d0
push 0x12
push 0xa
call fcn.10059fc0
add esp, 0x10
lea eax, [esp + 0x28]
push eax
call fcn.10063b80
add esp, 4
mov dword [esp + 0x18], 0
test edi, edi
jle 0x1006207b
mov ebp, edi
mov edi, edi
mov esi, ebp
cmp ebp, 0x14
jle 0x10061f4c
mov esi, 0x14
push 0
call fcn.1006e620
push eax
lea eax, [esp + 0x30]
push eax
call fcn.10063950
add esp, 0xc
test eax, eax
je 0x1006211e
push 0x14
lea eax, [esp + 0x44]
push eax
lea eax, [esp + 0x30]
push eax
call fcn.10063ad0
add esp, 0xc
test eax, eax
je 0x1006211e
lea edi, [ebx - 0x3ff]
add edi, esi
lea ecx, [ebx + 0x100f7d18]
test edi, edi
jle 0x10061fba
mov eax, esi
sub eax, edi
push eax
push ecx
lea eax, [esp + 0x30]
push eax
call fcn.10063ad0
add esp, 0xc
test eax, eax
je 0x1006211e
push edi
push 0x100f7d18
jmp 0x10061fbc
push esi
push ecx
lea eax, [esp + 0x30]
push eax
call fcn.10063ad0
add esp, 0xc
test eax, eax
je 0x1006211e
mov edi, dword [esp + 0x10]
lea eax, [esp + 0x28]
push esi
push edi
push eax
call fcn.10063ad0
add esp, 0xc
test eax, eax
je 0x1006211e
push 8
lea eax, [esp + 0x24]
push eax
lea eax, [esp + 0x30]
push eax
call fcn.10063ad0
add esp, 0xc
test eax, eax
je 0x1006211e
push 0
lea eax, [esp + 0x44]
push eax
lea eax, [esp + 0x30]
push eax
call fcn.100638d0
add esp, 0xc
test eax, eax
je 0x1006211e
inc dword [esp + 0x24]
add edi, esi
xor ecx, ecx
mov dword [esp + 0x10], edi
test esi, esi
jle 0x1006205f
jmp 0x10062040
mov al, byte [esp + ecx + 0x40]
xor byte [ebx + 0x100f7d18], al
lea eax, [ebx + 1]
xor ebx, ebx
cmp eax, 0x3ff
setge bl
inc ecx
dec ebx
and ebx, eax
cmp ecx, esi
jl 0x10062040
mov eax, dword [esp + 0x18]
sub ebp, 0x14
add eax, 0x14
mov dword [esp + 0x18], eax
cmp eax, dword [esp + 0x60]
jl 0x10061f40
mov ebp, dword [esp + 0x14]
test ebp, ebp
jne 0x10062095
push 0x13b
push 0x100e48d0
push 0x12
push 9
call fcn.10059fc0
add esp, 0x10
xor ecx, ecx
jmp 0x100620a0
movzx eax, byte [esp + ecx + 0x40]
xor byte [ecx + 0x100f812c], al
movzx eax, byte [esp + ecx + 0x41]
xor byte [ecx + 0x100f812d], al
movzx eax, byte [esp + ecx + 0x42]
xor byte [ecx + 0x100f812e], al
movzx eax, byte [esp + ecx + 0x43]
xor byte [ecx + 0x100f812f], al
movzx eax, byte [esp + ecx + 0x44]
xor byte [ecx + 0x100f8130], al
add ecx, 5
cmp ecx, 0x14
jl 0x100620a0
fld qword [0x100ce5d0]
fld qword [0x100f7d00]
fcom st(1)
fnstsw ax
fstp st(1)
test ah, 5
jp 0x10062102
fadd qword [esp + 0x64]
fstp qword [0x100f7d00]
jmp 0x10062104
fstp st(0)
test ebp, ebp
jne 0x1006211e
push 0x148
push 0x100e48d0
push 0x12
push 0xa
call fcn.10059fc0
add esp, 0x10
lea eax, [esp + 0x28]
push eax
call fcn.10063ae0
add esp, 4
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x48]
pop edi
xor ecx, esp
call fcn.10071699
add esp, 0x48
ret