Function at 0x10016910
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1008251c
mov eax, dword fs:[0]
push eax
sub esp, 0x300
mov eax, dword [0x100a2078]
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 [0x100a5ad8], 0
jne 0x10016a25
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.1006de59
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.10016cb0
add esp, 0x10
mov dword [ebp - 0x2e4], 0xf
cmp byte [ebp - 0x110], 0
mov dword [ebp - 0x2e8], 0
mov byte [ebp - 0x2f8], 0
jne 0x100169c9
xor eax, eax
jmp 0x100169db
lea eax, [ebp - 0x110]
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x100169d2
sub eax, edx
push eax
lea eax, [ebp - 0x110]
push eax
lea ecx, [ebp - 0x2f8]
call fcn.10002710
lea ecx, [ebp - 0x2f8]
mov dword [ebp - 4], 0
call fcn.100160f0
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x2e4]
cmp eax, 0x10
jb 0x10016a25
inc eax
lea ecx, [ebp - 0x2f8]
push eax
push dword [ebp - 0x2f8]
call fcn.100025f0
mov ecx, 0xd79978
call fcn.10017d30
mov esi, eax
test esi, esi
je 0x10016ab2
mov edi, dword [sym.imp.KERNEL32.dll_IsBadReadPtr]
push 4
push esi
call edi
test eax, eax
jne 0x10016ab2
mov eax, dword [esi]
mov esi, dword [eax + 0xa8]
test esi, esi
je 0x10016ab2
push 4
push esi
call edi
test eax, eax
jne 0x10016ab2
call fcn.10064d80
call dword [sym.imp.KERNEL32.dll_GetCurrentThread]
push eax
call fcn.10065250
push 0x10016830
push 0x100a5650
call fcn.10064a90
call fcn.10064de0
push 4
push esi
mov dword [0x100a5650], esi
call edi
test eax, eax
jne 0x10016ab2
call fcn.10064d80
call dword [sym.imp.KERNEL32.dll_GetCurrentThread]
push eax
call fcn.10065250
push 0x10016830
push 0x100a5650
call fcn.10064600
call fcn.10064de0
push 0x98
lea eax, [ebp - 0x2c8]
push 0
push eax
call fcn.10068b00
add esp, 4
lea ecx, [ebp - 0x2c8]
call fcn.10003640
mov dword [ebp - 4], 1
mov cl, 0x65
movaps xmm0, xmmword [0x10099480]
mov al, 0x38
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], 0x7d0652
nop dword [eax]
nop dword [eax + eax]
mov al, byte [ebp - 0x2e0]
xor byte [ebp + ecx - 0x2df], al
inc ecx
cmp ecx, 0x12
jb 0x10016b20
lea edx, [ebp - 0x2df]
mov byte [ebp - 0x2cd], 0
lea ecx, [ebp - 0x2c8]
call fcn.10005fb0
mov esi, eax
test esi, esi
jne 0x10016b55
xor ecx, ecx
jmp 0x10016b5c
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.100622d7
add esp, 0xc
mov edx, eax
mov ecx, esi
call fcn.10006260
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.10003cc0
lea edx, [ebp - 0x2cb]
mov ecx, eax
call fcn.10005fb0
lea eax, [ebp - 0x22c]
push eax
lea ecx, [ebp - 0x2c8]
call fcn.10003560
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 0x100167c0
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 [0x100a5658], eax
mov eax, dword [ebp - 0x218]
cmp eax, 0x10
jb 0x10016c4c
inc eax
lea ecx, [ebp - 0x22c]
push eax
push dword [ebp - 0x22c]
call fcn.100025f0
lea ecx, [ebp - 0x278]
mov dword [ebp - 0x218], 0xf
mov dword [ebp - 0x21c], 0
mov byte [ebp - 0x22c], 0
call fcn.10003580
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.10062337
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.10066135
mov esp, ebp
pop ebp
ret