Function at 0x10018000
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1008736c
mov eax, dword fs:[0]
push eax
sub esp, 0x300
mov eax, dword [0x100a7078]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
cmp dword [0x100aad18], 0
jne 0x10018115
push 0x100
lea eax, [ebp - 0x110]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
push 0
push 0
lea eax, [ebp - 0x210]
push eax
lea eax, [ebp - 0x214]
push eax
lea eax, [ebp - 0x110]
push eax
call fcn.100705d9
add esp, 0x14
lea eax, [ebp - 0x210]
push eax
lea eax, [ebp - 0x214]
push eax
lea eax, [ebp - 0x110]
push str._s_s
push eax
call fcn.100183a0
add esp, 0x10
mov dword [ebp - 0x2e4], 0xf
cmp byte [ebp - 0x110], 0
mov dword [ebp - 0x2e8], 0
mov byte [ebp - 0x2f8], 0
jne 0x100180b9
xor eax, eax
jmp 0x100180cb
lea eax, [ebp - 0x110]
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x100180c2
sub eax, edx
push eax
lea eax, [ebp - 0x110]
push eax
lea ecx, [ebp - 0x2f8]
call fcn.10002770
lea ecx, [ebp - 0x2f8]
mov dword [ebp - 4], 0
call fcn.100177c0
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x2e4]
cmp eax, 0x10
jb 0x10018115
inc eax
lea ecx, [ebp - 0x2f8]
push eax
push dword [ebp - 0x2f8]
call fcn.10002650
mov ecx, 0xd79978
call fcn.10019420
mov esi, eax
test esi, esi
je 0x100181a2
mov edi, dword [sym.imp.KERNEL32.dll_IsBadReadPtr]
push 4
push esi
call edi
test eax, eax
jne 0x100181a2
mov eax, dword [esi]
mov esi, dword [eax + 0xa8]
test esi, esi
je 0x100181a2
push 4
push esi
call edi
test eax, eax
jne 0x100181a2
call fcn.100665a0
call dword [sym.imp.KERNEL32.dll_GetCurrentThread]
push eax
call fcn.10066a70
push 0x10017f20
push 0x100aa878
call fcn.100662b0
call fcn.10066600
push 4
push esi
mov dword [0x100aa878], esi
call edi
test eax, eax
jne 0x100181a2
call fcn.100665a0
call dword [sym.imp.KERNEL32.dll_GetCurrentThread]
push eax
call fcn.10066a70
push 0x10017f20
push 0x100aa878
call fcn.10065e20
call fcn.10066600
push 0x98
lea eax, [ebp - 0x2c8]
push 0
push eax
call fcn.1006a300
add esp, 4
lea ecx, [ebp - 0x2c8]
call fcn.100045d0
mov dword [ebp - 4], 1
mov cl, 0x72
movaps xmm0, xmmword [0x1009e3e0]
mov al, 0x2f
xor al, cl
mov byte [ebp - 0x2cc], cl
mov byte [ebp - 0x2ca], 0
xor ecx, ecx
mov byte [ebp - 0x2cb], al
mov byte [ebp - 0x2ca], 0
movups xmmword [ebp - 0x2e0], xmm0
mov dword [ebp - 0x2d0], 0x740f5b
nop dword [eax]
nop dword [eax + eax]
mov al, byte [ebp - 0x2e0]
xor byte [ebp + ecx - 0x2df], al
inc ecx
cmp ecx, 0x12
jb 0x10018210
lea edx, [ebp - 0x2df]
mov byte [ebp - 0x2cd], 0
lea ecx, [ebp - 0x2c8]
call fcn.100075a0
mov esi, eax
test esi, esi
jne 0x10018245
xor ecx, ecx
jmp 0x1001824c
mov eax, dword [esi]
mov ecx, dword [eax + 4]
add ecx, esi
mov eax, dword [ecx + 0x14]
and eax, 0xfffff9ff
or eax, 0x800
push 0
mov dword [ecx + 0x14], eax
lea eax, [ebp - 0x308]
push 8
push eax
call fcn.10063ace
add esp, 0xc
mov edx, eax
mov ecx, esi
call fcn.10007850
mov esi, eax
mov ecx, dword [esi]
mov ecx, dword [ecx + 4]
mov byte [ecx + esi + 0x40], 0x30
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
push eax
mov ecx, esi
call fcn.10004c50
lea edx, [ebp - 0x2cb]
mov ecx, eax
call fcn.100075a0
lea eax, [ebp - 0x22c]
push eax
lea ecx, [ebp - 0x2c8]
call fcn.100044f0
cmp dword [ebp - 0x218], 0x10
lea ecx, [ebp - 0x22c]
mov eax, dword [ebp - 0x21c]
cmovae ecx, dword [ebp - 0x22c]
inc eax
push 0
push eax
push ecx
push 0xaf7b50
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_WriteProcessMemory]
cmp dword [ebp - 0x218], 0x10
lea esi, [ebp - 0x22c]
push 0x10017eb0
cmovae esi, dword [ebp - 0x22c]
lea edx, [ebp - 0x22c]
cmovae edx, dword [ebp - 0x22c]
push 0xfffffffffffffffc
push esi
push edx
call dword [sym.imp.USER32.dll_FindWindowA]
push eax
call dword [sym.imp.USER32.dll_SetWindowLongA]
mov dword [0x100aa880], eax
mov eax, dword [ebp - 0x218]
cmp eax, 0x10
jb 0x1001833c
inc eax
lea ecx, [ebp - 0x22c]
push eax
push dword [ebp - 0x22c]
call fcn.10002650
lea ecx, [ebp - 0x278]
mov dword [ebp - 0x218], 0xf
mov dword [ebp - 0x21c], 0
mov byte [ebp - 0x22c], 0
call fcn.10004510
lea eax, [ebp - 0x278]
mov dword [ebp - 4], 2
push eax
mov dword [ebp - method.std::ios_base.virtual_0], vtable.std::ios_base.0
call fcn.10063a46
add esp, 4
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.10067955
mov esp, ebp
pop ebp
ret