Function at 0x100117de
Capabilities:
Encode data using xor

Disassembly:
push 8
push 0x90
mov eax, 0x10022ebb
call fcn.1002169e
mov esi, ecx
mov dword [ebp - 0x70], esi
cmp dword [0x10031080], 0
je 0x10011cbc
lea edi, [esi + 0x158]
mov ecx, edi
call fcn.100123d7
mov eax, dword [esi + 0x150]
xor ecx, ecx
sub eax, dword [esi + 0x14c]
cdq
mov dword [ebp - 0x3c], 0x68
idiv dword [ebp - 0x3c]
xor edx, edx
mov dword [ebp - 0x40], ecx
inc edx
mov dword [ebp - 0x6c], 2
test eax, eax
jle 0x10011985
mov edi, ecx
mov eax, dword [esi + 0x14c]
mov dword [ebp - 0x38], eax
cmp word [eax + edi + 0x60], cx
je 0x100118c1
cmp byte [0x100310b9], 0
mov eax, dword [0x10031080]
mov dword [ebp - 0x30], eax
je 0x100118af
mov ecx, 0x10b8134
call fcn.1000939a
mov dword [ebp - 0x34], eax
test eax, eax
je 0x100118a9
push 4
push eax
call dword [sym.imp.KERNEL32.dll_IsBadReadPtr]
test eax, eax
jne 0x100118a9
mov eax, dword [ebp - 0x34]
add eax, 0xc88
push 4
push eax
mov dword [ebp - 0x34], eax
call dword [sym.imp.KERNEL32.dll_IsBadReadPtr]
xor edx, edx
inc edx
test eax, eax
jne 0x100118ac
mov eax, dword [ebp - 0x34]
mov ecx, dword [ebp - 0x30]
mov ax, word [eax]
mov word [ecx + 0x40], ax
mov eax, ecx
jmp 0x100118af
xor edx, edx
inc edx
mov eax, dword [ebp - 0x30]
mov ecx, dword [ebp - 0x38]
movzx eax, word [eax + 0x40]
cmp word [ecx + edi + 0x60], ax
jne 0x10011957
mov eax, dword [esi + 0x14c]
mov dword [ebp - 0x38], eax
movzx eax, word [eax + edi + 0x60]
cmp ax, dx
je 0x100118da
cmp ax, word [ebp - 0x6c]
jne 0x10011943
cmp byte [0x100310b9], 0
mov eax, dword [0x10031080]
mov dword [ebp - 0x30], eax
je 0x10011933
mov ecx, 0x10b8134
call fcn.1000939a
mov dword [ebp - 0x34], eax
test eax, eax
je 0x10011930
push 4
push eax
call dword [sym.imp.KERNEL32.dll_IsBadReadPtr]
test eax, eax
jne 0x10011930
mov eax, dword [ebp - 0x34]
add eax, 0x6dc
push 4
push eax
mov dword [ebp - 0x34], eax
call dword [sym.imp.KERNEL32.dll_IsBadReadPtr]
test eax, eax
jne 0x10011930
mov eax, dword [ebp - 0x34]
mov ecx, dword [ebp - 0x30]
mov al, byte [eax]
mov byte [ecx + 0x38], al
mov eax, ecx
jmp 0x10011933
mov eax, dword [ebp - 0x30]
mov ecx, dword [ebp - 0x38]
mov al, byte [eax + 0x38]
movzx eax, al
cmp word [ecx + edi + 0x60], ax
jne 0x10011957
mov eax, dword [esi + 0x14c]
lea ecx, [esi + 0x158]
add eax, edi
push eax
call fcn.100123fe
mov eax, dword [esi + 0x150]
sub eax, dword [esi + 0x14c]
cdq
idiv dword [ebp - 0x3c]
mov ecx, dword [ebp - 0x40]
add edi, dword [ebp - 0x3c]
inc ecx
push 0
mov dword [ebp - 0x40], ecx
cmp ecx, eax
pop ecx
push 1
pop edx
jl 0x1001183e
lea edi, [esi + 0x158]
mov eax, dword [edi]
cmp eax, dword [edi + 4]
jne 0x100119c6
push 4
lea edi, [esi + 0xc]
pop esi
mov ecx, dword [edi]
xor dl, dl
call fcn.10009004
lea edi, [edi + 4]
sub esi, 1
jne 0x10011992
mov esi, dword [ebp - 0x70]
mov edx, dword [esi + 0x144]
mov ecx, dword [esi + 0x134]
call fcn.100092cd
mov dword [esi + 0x148], 1
jmp 0x10011cbc
mov eax, dword [edi + 4]
sub eax, dword [edi]
cdq
idiv dword [ebp - 0x3c]
push ecx
push ecx
movd xmm0, eax
cvtdq2pd xmm0, xmm0
shr eax, 0x1f
addsd xmm0, qword [eax*8 + 0x1002a3a0]
mulsd xmm0, qword [0x10029cb8]
movsd qword [ebp - 0x78], xmm0
fld qword [ebp - 0x78]
fstp qword [esp]
call sub.api_ms_win_crt_math_l1_1_0.dll_ceil
fstp qword [ebp - 0x78]
movsd xmm0, qword [ebp - 0x78]
andps xmm0, xmmword [0x1002a730]
cvttsd2si eax, xmm0
pop ecx
pop ecx
mov dword [esi + 0x148], eax
cmp dword [esi + 0x144], eax
jle 0x10011a2a
mov dword [esi + 0x144], 1
and dword [ebp - 0x40], 0
lea ecx, [esi + 8]
or edx, 0xffffffff
lea eax, [esi + 0xc]
and dword [ebp - 0x34], 0
mov esi, dword [ebp - 0x34]
inc edx
add ecx, 4
add eax, 0x18
mov dword [ebp - 0x74], edx
mov dword [ebp - 0x34], ecx
mov dword [ebp - 0x30], eax
cmp edx, 4
jg 0x10011ca1
mov eax, dword [edi + 4]
sub eax, dword [edi]
cdq
idiv dword [ebp - 0x3c]
dec eax
cmp dword [ebp - 0x40], eax
jle 0x10011a74
mov ecx, dword [ecx]
xor dl, dl
call fcn.10009004
jmp 0x10011c86
mov eax, dword [edi]
lea ecx, [ebp - 0x2c]
add eax, esi
mov dword [ebp - 0x38], 0xffc4fc03
push eax
call fcn.10003ada
xor edx, edx
mov dword [ebp - 4], edx
mov eax, dword [edi]
cmp byte [esi + eax + 0x65], 2
jne 0x10011ade
movaps xmm0, xmmword [0x1002a400]
movups xmmword [ebp - 0x68], xmm0
mov dword [ebp - 0x58], 0x435e4b59
mov dword [ebp - 0x54], 0x774445
mov cl, byte [ebp - 0x68]
xor byte [ebp + edx - 0x67], cl
inc edx
cmp edx, 0x16
jb 0x10011aaf
lea ecx, [ebp - 0x67]
mov byte [ebp - 0x51], 0
call fcn.10004078
push eax
lea eax, [ebp - 0x67]
push eax
lea ecx, [ebp - 0x2c]
call fcn.10007829
mov dword [ebp - 0x38], 0xff5cb9fe
jmp 0x10011b27
mov cl, 0x27
mov dword [ebp - 0x50], 0x727c0727
mov dword [ebp - 0x4c], 0x55424349
mov dword [ebp - 0x48], 0x5e465007
mov word [ebp - 0x44], 0x7a
xor cl, byte [ebp + edx - 0x4f]
mov byte [ebp + edx - 0x4f], cl
inc edx
cmp edx, 0xc
jae 0x10011b0e
mov cl, byte [ebp - 0x50]
jmp 0x10011afb
lea ecx, [ebp - 0x4f]
mov byte [ebp - 0x43], 0
call fcn.10004078
push eax
lea eax, [ebp - 0x4f]
push eax
lea ecx, [ebp - 0x2c]
call fcn.10007829
cmp dword [ebp - 0x18], 0x10
lea eax, [ebp - 0x2c]
lea ecx, [ebp - 0x68]
cmovae eax, dword [ebp - 0x2c]
push eax
call fcn.10004090
mov ecx, dword [ebp - 0x30]
lea edx, [ebp - 0x68]
mov byte [ebp - 4], 1
mov ecx, dword [ecx]
call fcn.100092aa
push 0
push 1
lea ecx, [ebp - 0x68]
mov byte [ebp - 4], 0
call fcn.10003f3c
mov eax, dword [ebp - 0x30]
mov edx, dword [ebp - 0x38]
mov ecx, dword [eax]
call fcn.100092f0
mov ecx, dword [edi]
xor edx, edx
movaps xmm0, xmmword [str.jCPCJ]
movzx eax, byte [esi + ecx + 0x64]
push eax
movzx eax, byte [esi + ecx + 0x63]
push eax
movups xmmword [ebp - 0x88], xmm0
mov cl, byte [ebp - 0x88]
xor byte [ebp + edx - 0x87], cl
inc edx
cmp edx, 0xe
jb 0x10011b87
sub esp, 0x18
mov byte [ebp - 0x79], 0
lea eax, [ebp - 0x87]
mov ecx, esp
push eax
call fcn.10004090
lea eax, [ebp - 0xa0]
push eax
call fcn.10003b75
add esp, 0x24
mov ecx, dword [ebp - 0x6c]
mov byte [ebp - 4], cl
cmp dword [eax + 0x14], 0x10
jb 0x10011bcc
mov eax, dword [eax]
push eax
lea ecx, [ebp - 0x68]
call fcn.10004090
mov eax, dword [ebp - 0x30]
lea edx, [ebp - 0x68]
mov byte [ebp - 4], 3
mov ecx, dword [eax - 4]
call fcn.100092aa
push 0
push 1
lea ecx, [ebp - 0x68]
call fcn.10003f3c
push 0
push 1
lea ecx, [ebp - 0xa0]
mov byte [ebp - 4], 0
call fcn.10003f3c
mov eax, dword [edi]
lea ecx, [ebp - 0xa0]
mov dx, word [eax + esi + 0x60]
call fcn.1000fa8b
mov byte [ebp - 4], 4
cmp dword [eax + 0x14], 0x10
jb 0x10011c24
mov eax, dword [eax]
push eax
lea ecx, [ebp - 0x68]
call fcn.10004090
mov eax, dword [ebp - 0x30]
lea edx, [ebp - 0x68]
mov byte [ebp - 4], 5
mov ecx, dword [eax + 8]
call fcn.100092aa
push 0
push 1
lea ecx, [ebp - 0x68]
call fcn.10003f3c
push 0
push 1
lea ecx, [ebp - 0xa0]
mov byte [ebp - 4], 0
call fcn.10003f3c
mov eax, dword [edi]
mov dl, 1
mov ecx, dword [ebp - 0x30]
mov eax, dword [esi + eax + 0x18]
mov dword [ecx - 8], eax
mov ecx, dword [ebp - 0x34]
mov ecx, dword [ecx]
call fcn.10009004
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x2c]
push 0
push 1
call fcn.10003f3c
add esi, dword [ebp - 0x3c]
inc dword [ebp - 0x40]
mov eax, dword [ebp - 0x30]
mov ecx, dword [ebp - 0x34]
mov edx, dword [ebp - 0x74]
cmp esi, 0x1a0
jl 0x10011a3e
mov esi, dword [ebp - 0x70]
mov edx, dword [esi + 0x144]
mov ecx, dword [esi + 0x134]
call fcn.100092cd
mov ecx, esi
call fcn.100111c9
mov ecx, dword [ebp - 0x14]
call fcn.10021679
ret 4