Function at 0x10036fa0
Capabilities:
Encode data using xor

Disassembly:
mov eax, 0x40
call fcn.10084230
mov eax, dword [esp + 0x48]
test eax, eax
je 0x100372e7
mov eax, dword [0x100c90a4]
push ebx
push ebp
push esi
test eax, eax
push edi
je 0x10037082
lea eax, [esp + 0x14]
push eax
call fcn.10027af0
push 0xdf
push 0x100a4bf0
push 0x13
push 5
call fcn.10027b80
lea ecx, [esp + 0x28]
push ecx
push 0x100c8c58
call fcn.10027b40
mov esi, eax
push 0xe1
neg esi
sbb esi, esi
push 0x100a4bf0
inc esi
push 0x13
push 6
mov dword [esp + 0x3c], esi
call fcn.10027b80
add esp, 0x2c
test esi, esi
jne 0x1003702e
push 0xe6
push 0x100a4bf0
push 0x12
push 9
call fcn.10027b80
add esp, 0x10
mov eax, dword [0x100c908c]
mov edx, dword [0x100c9090]
mov ebx, dword [0x100c9094]
mov ecx, 5
mov esi, 0x100c9074
lea edi, [esp + 0x24]
rep movsd dword es:[edi], dword [esi]
mov esi, dword [esp + 0x58]
mov ebp, eax
add eax, esi
mov dword [esp + 0x1c], edx
cmp eax, 0x3ff
mov dword [esp + 0x20], ebx
mov dword [0x100c908c], eax
jb 0x1003708c
xor edx, edx
mov ecx, 0x3ff
div ecx
mov dword [0x100c9088], ecx
mov dword [0x100c908c], edx
jmp 0x100370a3
mov dword [esp + 0x10], 0
jmp 0x10037018
mov ecx, dword [0x100c9088]
cmp ecx, 0x3ff
jae 0x100370a3
cmp eax, ecx
jbe 0x100370a3
mov dword [0x100c9088], eax
mov eax, esi
mov ecx, 0x14
cdq
idiv ecx
xor ecx, ecx
mov eax, 0x66666667
test edx, edx
setg cl
imul esi
sar edx, 3
mov esi, dword [esp + 0x10]
mov eax, edx
shr eax, 0x1f
add edx, eax
add edx, ebx
add edx, ecx
test esi, esi
mov dword [0x100c9094], edx
jne 0x100370ed
push 0x106
push 0x100a4bf0
push 0x12
push 0xa
call fcn.10027b80
add esp, 0x10
lea ecx, [esp + 0x38]
push ecx
call fcn.10049760
mov ebx, dword [esp + 0x5c]
add esp, 4
test ebx, ebx
mov dword [esp + 0x14], 0
jle 0x10037265
cmp ebx, 0x14
mov esi, ebx
jle 0x1003711a
mov esi, 0x14
push 0
call fcn.10040e70
lea edx, [esp + 0x3c]
push eax
push edx
call fcn.100497a0
add esp, 0xc
test eax, eax
je 0x100372d6
lea eax, [esp + 0x24]
push 0x14
lea ecx, [esp + 0x3c]
push eax
push ecx
call fcn.10049960
add esp, 0xc
test eax, eax
je 0x100372d6
lea edi, [esi + ebp - 0x3ff]
test edi, edi
jle 0x1003719c
mov edx, esi
lea eax, [ebp + 0x100c8c60]
sub edx, edi
lea ecx, [esp + 0x38]
push edx
push eax
push ecx
call fcn.10049960
add esp, 0xc
test eax, eax
je 0x100372d6
push edi
lea edx, [esp + 0x3c]
push 0x100c8c60
push edx
call fcn.10049960
add esp, 0xc
test eax, eax
je 0x100372d6
jmp 0x100371b9
lea eax, [ebp + 0x100c8c60]
push esi
lea ecx, [esp + 0x3c]
push eax
push ecx
call fcn.10049960
add esp, 0xc
test eax, eax
je 0x100372d6
mov edx, dword [esp + 0x54]
push esi
lea eax, [esp + 0x3c]
push edx
push eax
call fcn.10049960
add esp, 0xc
test eax, eax
je 0x100372d6
lea ecx, [esp + 0x1c]
push 8
lea edx, [esp + 0x3c]
push ecx
push edx
call fcn.10049960
add esp, 0xc
test eax, eax
je 0x100372d6
lea eax, [esp + 0x24]
push 0
lea ecx, [esp + 0x3c]
push eax
push ecx
call fcn.10049a80
add esp, 0xc
test eax, eax
je 0x100372d6
mov edi, dword [esp + 0x20]
mov edx, dword [esp + 0x54]
inc edi
add edx, esi
xor eax, eax
mov dword [esp + 0x20], edi
test esi, esi
mov dword [esp + 0x54], edx
jle 0x10037247
mov dl, byte [esp + eax + 0x24]
mov cl, byte [ebp + 0x100c8c60]
xor cl, dl
mov byte [ebp + 0x100c8c60], cl
inc ebp
cmp ebp, 0x3ff
jl 0x10037242
xor ebp, ebp
inc eax
cmp eax, esi
jl 0x10037225
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x58]
add eax, 0x14
sub ebx, 0x14
cmp eax, ecx
mov dword [esp + 0x14], eax
jl 0x1003710e
mov esi, dword [esp + 0x10]
test esi, esi
jne 0x1003727f
push 0x13b
push 0x100a4bf0
push 0x12
push 9
call fcn.10027b80
add esp, 0x10
xor eax, eax
mov cl, byte [esp + eax + 0x24]
mov bl, byte [eax + 0x100c9074]
xor bl, cl
mov byte [eax + 0x100c9074], bl
inc eax
cmp eax, 0x14
jl 0x10037281
fld qword [0x100c9098]
fcomp qword [0x100a4be8]
fnstsw ax
test ah, 1
je 0x100372bc
fld qword [0x100c9098]
fadd qword [esp + 0x5c]
fstp qword [0x100c9098]
test esi, esi
jne 0x100372d6
push 0x148
push 0x100a4bf0
push 0x12
push 0xa
call fcn.10027b80
add esp, 0x10
lea edx, [esp + 0x38]
push edx
call fcn.10049fe0
add esp, 4
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x40
ret