Function at 0x10118520
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10183938
mov eax, dword fs:[0]
push eax
sub esp, 0x88
mov eax, dword [0x101dadb0]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov edi, dword [ebp + 8]
mov edx, dword [0x1027c0b4]
mov ecx, dword [edi + 0x18]
sub ecx, dword [edi + 0x14]
lea eax, [edx + 0x36]
mov dword [ebp - 0x70], eax
mov eax, dword [edi + 8]
add eax, 2
cmp eax, ecx
mov eax, dword [edi + 8]
jbe 0x10118575
xor ecx, ecx
jmp 0x1011858a
push eax
lea ecx, [edi + 0x10]
call fcn.1004ead0
mov edx, dword [0x1027c0b4]
movzx ecx, word [eax]
mov eax, dword [edi + 8]
add eax, 2
xorps xmm0, xmm0
mov dword [edi + 8], eax
mov eax, dword [ebp - 0x70]
mov word [eax], cx
movups xmmword [edx + 0x1c], xmm0
movq qword [edx + 0x2c], xmm0
mov word [edx + 0x34], 0
mov eax, dword [esi + 0x68]
test eax, eax
je 0x101185e1
cmp byte [eax + 0x10d], 0
je 0x101185e1
mov eax, dword [esi + 0x78]
test eax, eax
je 0x101185e1
cmp byte [eax + 0x10d], 0
je 0x101185e1
push 1
mov ecx, esi
mov dword [esi + 0x1b4], 0x10001
call fcn.101178b0
mov edx, dword [0x1027c0b4]
movzx edx, word [edx + 0x36]
lea ecx, [ebp - 0x8c]
call fcn.10049d90
mov esi, dword [esi + 0x1b8]
mov dword [ebp - 4], 0
test esi, esi
je 0x1011861d
push 4
push esi
call dword [sym.imp.KERNEL32.dll_IsBadReadPtr]
test eax, eax
jne 0x1011861d
lea eax, [ebp - 0x8c]
mov ecx, esi
push eax
call dword [0x101ba78c]
lea ecx, [ebp - 0x8c]
mov dword [ebp - 4], 0xffffffff
call fcn.10043e40
mov eax, dword [ebp - 0x74]
cmp eax, 0x10
jb 0x10118647
inc eax
push eax
push dword [ebp - 0x88]
call fcn.10048530
add esp, 8
mov eax, dword [ebp - 0x8c]
push 8
push eax
mov dword [ebp - 0x78], 0
mov dword [ebp - 0x74], 0xf
mov byte [ebp - 0x88], 0
mov dword [ebp - 0x8c], 0
call fcn.10048530
movaps xmm0, xmmword [0x101c1be0]
add esp, 8
movups xmmword [ebp - 0x50], xmm0
xor ecx, ecx
mov dword [ebp - 0x20], 0x6150009
movaps xmm0, xmmword [0x101c2550]
movups xmmword [ebp - 0x40], xmm0
mov dword [ebp - 0x1c], 0x60b1213
movaps xmm0, xmmword [0x101c1950]
movups xmmword [ebp - 0x30], xmm0
mov dword [ebp - 0x18], 0x9080e13
mov word [ebp - 0x14], 0x4914
mov byte [ebp - 0x12], 0
nop dword [eax]
mov al, byte [ebp - 0x50]
xor byte [ebp + ecx - 0x4f], al
inc ecx
cmp ecx, 0x3d
jb 0x101186c0
sub esp, 0x1c
mov byte [ebp - 0x12], 0
lea eax, [ebp - 0x4f]
mov ecx, esp
push eax
call fcn.10046d00
lea eax, [ebp - 0x6c]
push eax
call fcn.10049e30
add esp, 0x20
mov dword [ebp - 4], 1
lea ecx, [eax + 4]
cmp dword [eax + 0x18], 0x10
mov dword [ebp - 0x90], ecx
jb 0x10118709
mov ecx, dword [ecx]
mov dword [ebp - 0x90], ecx
lea edx, [ecx + 1]
nop dword [eax]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x10118710
sub ecx, edx
mov dword [ebp - 0x70], ecx
lea esi, [ecx + 0x21]
push esi
call fcn.101204d0
push esi
mov edi, eax
push 0
push edi
mov dword [ebp - 0x94], edi
call fcn.10122870
push dword [ebp - 0x70]
lea esi, [edi + 0x20]
push dword [ebp - 0x90]
push esi
call fcn.10122110
mov eax, dword [ebp - 0x70]
add esp, 0x1c
mov dword [edi + 0x14], eax
mov dword [edi + 4], esi
mov dword [edi + 0x18], 0x1f
mov ecx, dword ds:[0xf3690c]
push 0
push 0x42d1eb
push dword [ebp - 0x94]
mov eax, dword [0x101ba6ac]
call eax
push edi
call fcn.1011f890
add esp, 4
lea ecx, [ebp - 0x6c]
call fcn.10043e40
mov eax, dword [ebp - 0x54]
cmp eax, 0x10
jb 0x1011879c
inc eax
push eax
push dword [ebp - 0x68]
call fcn.10048530
add esp, 8
mov eax, dword [ebp - 0x6c]
push 8
push eax
mov dword [ebp - 0x58], 0
mov dword [ebp - 0x54], 0xf
mov byte [ebp - 0x68], 0
mov dword [ebp - 0x6c], 0
call fcn.10048530
add esp, 8
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.1011f880
mov esp, ebp
pop ebp
ret 4