Function at 0x10119160
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10184768
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 0x101191b5
xor ecx, ecx
jmp 0x101191ca
push eax
lea ecx, [edi + 0x10]
call fcn.1004f5c0
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 0x10119221
cmp byte [eax + 0x10d], 0
je 0x10119221
mov eax, dword [esi + 0x78]
test eax, eax
je 0x10119221
cmp byte [eax + 0x10d], 0
je 0x10119221
push 1
mov ecx, esi
mov dword [esi + 0x1b4], 0x10001
call fcn.101184f0
mov edx, dword [0x1027c0b4]
movzx edx, word [edx + 0x36]
lea ecx, [ebp - 0x8c]
call fcn.1004a870
mov esi, dword [esi + 0x1b8]
mov dword [ebp - 4], 0
test esi, esi
je 0x1011925d
push 4
push esi
call dword [sym.imp.KERNEL32.dll_IsBadReadPtr]
test eax, eax
jne 0x1011925d
lea eax, [ebp - 0x8c]
mov ecx, esi
push eax
call dword [0x101ba78c]
lea ecx, [ebp - 0x8c]
mov dword [ebp - 4], 0xffffffff
call fcn.100448c0
mov eax, dword [ebp - 0x74]
cmp eax, 0x10
jb 0x10119287
inc eax
push eax
push dword [ebp - 0x88]
call fcn.10049010
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.10049010
movaps xmm0, xmmword [0x101c1bd0]
add esp, 8
movups xmmword [ebp - 0x50], xmm0
xor ecx, ecx
mov dword [ebp - 0x20], 0x1003161f
movaps xmm0, xmmword [0x101c2990]
movups xmmword [ebp - 0x40], xmm0
mov dword [ebp - 0x1c], 0x101d0405
movaps xmm0, xmmword [0x101c2170]
movups xmmword [ebp - 0x30], xmm0
mov dword [ebp - 0x18], 0x1f1e1805
mov word [ebp - 0x14], 0x5f02
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 0x10119300
sub esp, 0x1c
mov byte [ebp - 0x12], 0
lea eax, [ebp - 0x4f]
mov ecx, esp
push eax
call fcn.10047780
lea eax, [ebp - 0x6c]
push eax
call fcn.1004a910
add esp, 0x20
mov dword [ebp - 4], 1
lea ecx, [eax + 4]
cmp dword [eax + 0x18], 0x10
mov dword [ebp - 0x90], ecx
jb 0x10119349
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 0x10119350
sub ecx, edx
mov dword [ebp - 0x70], ecx
lea esi, [ecx + 0x21]
push esi
call fcn.10121110
push esi
mov edi, eax
push 0
push edi
mov dword [ebp - 0x94], edi
call fcn.101234b0
push dword [ebp - 0x70]
lea esi, [edi + 0x20]
push dword [ebp - 0x90]
push esi
call fcn.10122d50
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.101204d0
add esp, 4
lea ecx, [ebp - 0x6c]
call fcn.100448c0
mov eax, dword [ebp - 0x54]
cmp eax, 0x10
jb 0x101193dc
inc eax
push eax
push dword [ebp - 0x68]
call fcn.10049010
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.10049010
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.101204c0
mov esp, ebp
pop ebp
ret 4