Function at 0x10018860
Capabilities:
Encode data using xor

Disassembly:
push ebx
mov ebx, esp
sub esp, 8
and esp, 0xfffffff8
add esp, 4
push ebp
mov ebp, dword [ebx + 4]
mov dword [esp + 4], ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100a111b
mov eax, dword fs:[0]
push eax
push ebx
sub esp, 0x300
mov eax, dword [0x100bd080]
xor eax, ebp
mov dword [ebp - 0x14], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
cmp dword [0x100befa0], 0
jne 0x1001899f
push 0x100
lea eax, [ebp - 0x118]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
push 0
push 0
lea eax, [ebp - 0x218]
push eax
lea eax, [ebp - 0x21c]
push eax
lea eax, [ebp - 0x118]
push eax
call fcn.1008920b
add esp, 0x14
lea eax, [ebp - 0x218]
push eax
lea eax, [ebp - 0x21c]
push eax
lea eax, [ebp - 0x118]
push str._s_s
push eax
call fcn.10018c90
xorps xmm0, xmm0
mov dword [ebp - 0x2f0], 0
lea ecx, [ebp - 0x118]
mov dword [ebp - 0x2ec], 0
add esp, 0x10
lea edx, [ecx + 1]
movups xmmword [ebp - 0x300], xmm0
nop dword [eax]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x10018930
sub ecx, edx
lea eax, [ebp - 0x118]
push ecx
push eax
lea ecx, [ebp - 0x300]
call fcn.10002570
lea ecx, [ebp - 0x300]
mov dword [ebp - 4], 0
call fcn.10018080
mov dword [ebp - 4], 0xffffffff
mov ecx, dword [ebp - 0x2ec]
cmp ecx, 0xf
jbe 0x1001899f
mov edx, dword [ebp - 0x300]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x10018995
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x10018c84
push ecx
push edx
call fcn.1007fa16
add esp, 8
mov ecx, 0xd79978
call fcn.10019710
mov esi, eax
test esi, esi
je 0x10018a2c
mov edi, dword [sym.imp.KERNEL32.dll_IsBadReadPtr]
push 4
push esi
call edi
test eax, eax
jne 0x10018a2c
mov eax, dword [esi]
mov esi, dword [eax + 0xa8]
test esi, esi
je 0x10018a2c
push 4
push esi
call edi
test eax, eax
jne 0x10018a2c
call fcn.1007e600
call dword [sym.imp.KERNEL32.dll_GetCurrentThread]
push eax
call fcn.1007ead0
push 0x100186e0
push 0x100c0b24
call fcn.1007e310
call fcn.1007e660
push 4
push esi
mov dword [0x100c0b24], esi
call edi
test eax, eax
jne 0x10018a2c
call fcn.1007e600
call dword [sym.imp.KERNEL32.dll_GetCurrentThread]
push eax
call fcn.1007ead0
push 0x100186e0
push 0x100c0b24
call fcn.1007de80
call fcn.1007e660
push 0x98
lea eax, [ebp - 0x2d0]
push 0
push eax
call fcn.10081a90
add esp, 8
lea ecx, [ebp - 0x2d0]
call fcn.10004ad0
mov dword [ebp - 4], 1
xor eax, eax
movaps xmm0, xmmword [0x100b4480]
movups xmmword [ebp - 0x2e8], xmm0
mov dword [ebp - 0x2d8], 0x5f2470
nop
mov cl, byte [ebp - 0x2e8]
xor byte [ebp + eax - 0x2e7], cl
inc eax
cmp eax, 0x12
jb 0x10018a70
lea edx, [ebp - 0x2e7]
mov byte [ebp - 0x2d5], 0
lea ecx, [ebp - 0x2d0]
call fcn.10006900
mov esi, eax
lea eax, [ebp - 0x310]
push 0
push 8
push eax
mov ecx, dword [esi]
mov edx, dword [ecx + 4]
mov ecx, dword [edx + esi + 0x14]
and ecx, 0xfffff9ff
or ecx, 0x800
mov dword [edx + esi + 0x14], ecx
call fcn.1007c109
add esp, 0xc
mov edx, eax
mov ecx, esi
call fcn.10006ba0
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.10004c10
mov dl, 0x20
mov byte [ebp - 0x2d2], 0
mov cl, 0x7d
mov byte [ebp - 0x2d4], dl
xor cl, dl
mov byte [ebp - 0x2d2], 0
mov byte [ebp - 0x2d3], cl
lea edx, [ebp - 0x2d3]
mov ecx, eax
call fcn.10006900
lea eax, [ebp - 0x234]
push eax
lea ecx, [ebp - 0x2d0]
call fcn.100049e0
mov edi, dword [ebp - 0x224]
lea esi, [ebp - 0x234]
inc edi
cmp dword [ebp - 0x220], 0xf
cmova esi, dword [ebp - 0x234]
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push 0
push edi
push esi
push 0xaf7b50
push eax
call dword [sym.imp.KERNEL32.dll_WriteProcessMemory]
cmp dword [ebp - 0x220], 0xf
lea esi, [ebp - 0x234]
push 0x10018570
cmova esi, dword [ebp - 0x234]
lea edx, [ebp - 0x234]
cmova edx, dword [ebp - 0x234]
push 0xfffffffffffffffc
push esi
push edx
call dword [sym.imp.USER32.dll_FindWindowA]
push eax
call dword [sym.imp.USER32.dll_SetWindowLongA]
mov ecx, dword [ebp - 0x220]
mov dword [0x100c0b28], eax
cmp ecx, 0xf
jbe 0x10018bd2
mov edx, dword [ebp - 0x234]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x10018bc8
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x10018c89
push ecx
push edx
call fcn.1007fa16
add esp, 8
mov eax, dword [ebp - 0x2d0]
mov dword [ebp - 0x224], 0
mov dword [ebp - 0x220], 0xf
mov byte [ebp - 0x234], 0
mov eax, dword [eax + 4]
mov dword [ebp + eax - method.std::basic_ostringstream_char__struct_std::char_traits_char___class_std::allocator_char__.virtual_0], vtable.std::basic_ostringstream_char__struct_std::char_traits_char___class_std::allocator_char__.0
mov eax, dword [ebp - 0x2d0]
mov ecx, dword [eax + 4]
lea eax, [ecx - 0x50]
mov dword [ebp + ecx - 0x2d4], eax
lea ecx, [ebp - 0x2cc]
call fcn.10009b10
mov eax, dword [ebp - 0x2d0]
mov eax, dword [eax + 4]
mov dword [ebp + eax - method.std::basic_ostream_char__struct_std::char_traits_char__.virtual_0], vtable.std::basic_ostream_char__struct_std::char_traits_char__.0
mov eax, dword [ebp - 0x2d0]
mov ecx, dword [eax + 4]
lea eax, [ecx - 8]
mov dword [ebp + ecx - 0x2d4], eax
lea eax, [ebp - 0x280]
mov dword [ebp - 4], 2
push eax
mov dword [ebp - method.std::ios_base.virtual_0], vtable.std::ios_base.0
call fcn.1007c04e
add esp, 4
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.1007f9b5
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret
call fcn.10084b1f
call fcn.10084b1f
int3