Function at 0x1001b52a
Capabilities:
Encode data using xor

Disassembly:
push 8
push 0x98
mov eax, 0x100372e8
call fcn.100355fe
mov esi, ecx
mov dword [ebp - 0x74], esi
cmp dword [0x10046ff8], 0
je 0x1001ba23
lea edi, [esi + 0x158]
mov ecx, edi
call fcn.1001c139
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 - 0x58], 2
test eax, eax
jle 0x1001b6d1
mov edi, ecx
mov eax, dword [esi + 0x14c]
mov dword [ebp - 0x38], eax
cmp word [eax + edi + 0x60], cx
je 0x1001b60d
cmp byte [0x10047013], 0
mov eax, dword [0x10046ff8]
mov dword [ebp - 0x30], eax
je 0x1001b5fb
mov ecx, 0x10b8134
call fcn.1000a011
mov dword [ebp - 0x34], eax
test eax, eax
je 0x1001b5f5
push 4
push eax
call dword [sym.imp.KERNEL32.dll_IsBadReadPtr]
test eax, eax
jne 0x1001b5f5
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 0x1001b5f8
mov eax, dword [ebp - 0x34]
mov ecx, dword [ebp - 0x30]
mov ax, word [eax]
mov word [ecx + 0x40], ax
mov eax, ecx
jmp 0x1001b5fb
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 0x1001b6a3
mov eax, dword [esi + 0x14c]
mov dword [ebp - 0x38], eax
movzx eax, word [eax + edi + 0x60]
cmp ax, dx
je 0x1001b626
cmp ax, word [ebp - 0x58]
jne 0x1001b68f
cmp byte [0x10047013], 0
mov eax, dword [0x10046ff8]
mov dword [ebp - 0x30], eax
je 0x1001b67f
mov ecx, 0x10b8134
call fcn.1000a011
mov dword [ebp - 0x34], eax
test eax, eax
je 0x1001b67c
push 4
push eax
call dword [sym.imp.KERNEL32.dll_IsBadReadPtr]
test eax, eax
jne 0x1001b67c
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 0x1001b67c
mov eax, dword [ebp - 0x34]
mov ecx, dword [ebp - 0x30]
mov al, byte [eax]
mov byte [ecx + 0x38], al
mov eax, ecx
jmp 0x1001b67f
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 0x1001b6a3
mov eax, dword [esi + 0x14c]
lea ecx, [esi + 0x158]
add eax, edi
push eax
call fcn.1001c160
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 0x1001b58a
lea edi, [esi + 0x158]
mov eax, dword [edi]
cmp eax, dword [edi + 4]
jne 0x1001b712
push 4
lea edi, [esi + 0xc]
pop esi
mov ecx, dword [edi]
xor dl, dl
call fcn.10009671
lea edi, [edi + 4]
sub esi, 1
jne 0x1001b6de
mov esi, dword [ebp - 0x74]
mov edx, dword [esi + 0x144]
mov ecx, dword [esi + 0x134]
call fcn.10009ef5
mov dword [esi + 0x148], 1
jmp 0x1001ba23
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 + 0x1003f6e0]
mulsd xmm0, qword [0x1003ecb8]
movsd qword [ebp - 0x80], xmm0
fld qword [ebp - 0x80]
fstp qword [esp]
call sub.api_ms_win_crt_math_l1_1_0.dll_ceil
fstp qword [ebp - 0x80]
movsd xmm0, qword [ebp - 0x80]
andps xmm0, xmmword [0x1003fcd0]
cvttsd2si eax, xmm0
pop ecx
pop ecx
mov dword [esi + 0x148], eax
cmp dword [esi + 0x144], eax
jle 0x1001b776
mov dword [esi + 0x144], 1
movzx eax, byte [ebx + 8]
lea edx, [esi + 8]
or dword [ebp - 0x54], 0xffffffff
shl eax, 2
mov dword [ebp - 0x7c], eax
lea ecx, [eax - 4]
imul eax, ecx, 0x68
mov dword [ebp - 0x34], ecx
mov dword [ebp - 0x38], eax
lea eax, [esi + 0xc]
mov esi, dword [ebp - 0x38]
inc dword [ebp - 0x54]
add edx, 4
add eax, 0x18
mov dword [ebp - 0x40], edx
cmp dword [ebp - 0x54], 4
mov dword [ebp - 0x30], eax
jg 0x1001ba08
mov eax, dword [edi + 4]
sub eax, dword [edi]
cdq
idiv dword [ebp - 0x3c]
dec eax
cmp ecx, eax
jle 0x1001b7d1
mov ecx, dword [ebp - 0x40]
xor dl, dl
mov ecx, dword [ecx]
call fcn.10009671
jmp 0x1001b9ef
mov eax, dword [edi]
lea ecx, [ebp - 0x2c]
add eax, esi
mov dword [ebp - 0x38], 0xffc4fc03
push eax
call fcn.10002347
xor edx, edx
mov dword [ebp - 4], edx
mov eax, dword [edi]
cmp byte [esi + eax + 0x65], 2
jne 0x1001b844
movaps xmm0, xmmword [str.kK0_]
mov eax, dword [ebp - 0x58]
movups xmmword [ebp - 0x70], xmm0
mov word [ebp - 0x60], 0xa18
mov byte [ebp - 0x5e], 0x1f
mov byte [ebp - 0x5d], al
mov dword [ebp - 0x5c], 0x360504
mov cl, byte [ebp - 0x70]
xor byte [ebp + edx - 0x6f], cl
inc edx
cmp edx, 0x16
jb 0x1001b815
lea ecx, [ebp - 0x6f]
mov byte [ebp - 0x59], 0
call fcn.1000282d
push eax
lea eax, [ebp - 0x6f]
push eax
lea ecx, [ebp - 0x2c]
call fcn.10007f48
mov dword [ebp - 0x38], 0xff5cb9fe
jmp 0x1001b88d
mov cl, 0x58
mov dword [ebp - 0x50], 0xd037858
mov dword [ebp - 0x4c], 0x2a3d3c36
mov dword [ebp - 0x48], 0x21392f78
mov word [ebp - 0x44], 5
xor cl, byte [ebp + edx - 0x4f]
mov byte [ebp + edx - 0x4f], cl
inc edx
cmp edx, 0xc
jae 0x1001b874
mov cl, byte [ebp - 0x50]
jmp 0x1001b861
lea ecx, [ebp - 0x4f]
mov byte [ebp - 0x43], 0
call fcn.1000282d
push eax
lea eax, [ebp - 0x4f]
push eax
lea ecx, [ebp - 0x2c]
call fcn.10007f48
cmp dword [ebp - 0x18], 0x10
lea eax, [ebp - 0x2c]
lea ecx, [ebp - 0x70]
cmovae eax, dword [ebp - 0x2c]
push eax
call fcn.10002845
mov ecx, dword [ebp - 0x30]
lea edx, [ebp - 0x70]
mov byte [ebp - 4], 1
mov ecx, dword [ecx]
call fcn.10009ed2
push 0
push 1
lea ecx, [ebp - 0x70]
mov byte [ebp - 4], 0
call fcn.100026f1
mov eax, dword [ebp - 0x30]
mov edx, dword [ebp - 0x38]
mov ecx, dword [eax]
call fcn.10009f18
mov ecx, dword [edi]
xor edx, edx
movaps xmm0, xmmword [0x1003eda0]
movzx eax, byte [esi + ecx + 0x64]
push eax
movzx eax, byte [esi + ecx + 0x63]
push eax
movups xmmword [ebp - 0x90], xmm0
mov cl, byte [ebp - 0x90]
xor byte [ebp + edx - 0x8f], cl
inc edx
cmp edx, 0xe
jb 0x1001b8ed
sub esp, 0x18
mov byte [ebp - 0x81], 0
lea eax, [ebp - 0x8f]
mov ecx, esp
push eax
call fcn.10002845
lea eax, [ebp - 0xa8]
push eax
call fcn.10004ac0
add esp, 0x24
mov ecx, dword [ebp - 0x58]
mov byte [ebp - 4], cl
cmp dword [eax + 0x14], 0x10
jb 0x1001b935
mov eax, dword [eax]
push eax
lea ecx, [ebp - 0x70]
call fcn.10002845
mov eax, dword [ebp - 0x30]
lea edx, [ebp - 0x70]
mov byte [ebp - 4], 3
mov ecx, dword [eax - 4]
call fcn.10009ed2
push 0
push 1
lea ecx, [ebp - 0x70]
call fcn.100026f1
push 0
push 1
lea ecx, [ebp - 0xa8]
mov byte [ebp - 4], 0
call fcn.100026f1
mov eax, dword [edi]
lea ecx, [ebp - 0xa8]
mov dx, word [eax + esi + 0x60]
call fcn.10017b7c
mov byte [ebp - 4], 4
cmp dword [eax + 0x14], 0x10
jb 0x1001b98d
mov eax, dword [eax]
push eax
lea ecx, [ebp - 0x70]
call fcn.10002845
mov eax, dword [ebp - 0x30]
lea edx, [ebp - 0x70]
mov byte [ebp - 4], 5
mov ecx, dword [eax + 8]
call fcn.10009ed2
push 0
push 1
lea ecx, [ebp - 0x70]
call fcn.100026f1
push 0
push 1
lea ecx, [ebp - 0xa8]
mov byte [ebp - 4], 0
call fcn.100026f1
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 - 0x40]
mov ecx, dword [ecx]
call fcn.10009671
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x2c]
push 0
push 1
call fcn.100026f1
mov ecx, dword [ebp - 0x34]
add esi, dword [ebp - 0x3c]
inc ecx
mov eax, dword [ebp - 0x30]
mov edx, dword [ebp - 0x40]
mov dword [ebp - 0x34], ecx
cmp ecx, dword [ebp - 0x7c]
jl 0x1001b799
mov esi, dword [ebp - 0x74]
mov edx, dword [esi + 0x144]
mov ecx, dword [esi + 0x134]
call fcn.10009ef5
mov ecx, esi
call fcn.1001af1d
mov ecx, dword [ebp - 0x14]
call fcn.100355d9
ret 4