Function at 0x10015980
Capabilities:
Encode data using xor
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100992ec
mov eax, dword fs:[0]
push eax
sub esp, 0x31c
mov eax, dword [0x100bd078]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
cmp dword [0x100c1f1c], 0
jne 0x10015ab3
push 0x100
lea eax, [ebp - 0x110]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
push 0
push 0
push 0
push 0
push 0x100
lea eax, [ebp - 0x210]
push eax
push 3
lea eax, [ebp - 0x21c]
push eax
lea eax, [ebp - 0x110]
push eax
call fcn.10085ba7
add esp, 0x24
test eax, eax
jne 0x10015ab3
mov ah, 0x39
mov byte [ebp - 0x213], 0
mov al, 0x1c
mov byte [ebp - 0x218], ah
mov dl, al
mov byte [ebp - 0x213], 0
xor al, ah
mov cl, 0x4a
xor dl, ah
mov byte [ebp - 0x217], al
mov bl, cl
mov byte [ebp - 0x215], dl
xor cl, ah
xor bl, ah
lea eax, [ebp - 0x210]
mov byte [ebp - 0x216], cl
push eax
lea eax, [ebp - 0x21c]
mov byte [ebp - 0x214], bl
push eax
lea eax, [ebp - 0x217]
push eax
lea eax, [ebp - 0x110]
push 0x100
push eax
call fcn.10016270
add esp, 0x14
lea eax, [ebp - 0x110]
lea ecx, [ebp - 0x258]
push eax
call fcn.10002980
lea ecx, [ebp - 0x258]
mov dword [ebp - 4], 0
call fcn.100151a0
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x244]
cmp eax, 0x10
jb 0x10015ab3
inc eax
lea ecx, [ebp - 0x258]
push eax
push dword [ebp - 0x258]
call fcn.10002760
mov ecx, 0xd79978
call fcn.100173f0
mov ebx, dword [sym.imp.KERNEL32.dll_GetCurrentThread]
mov esi, eax
test esi, esi
je 0x10015b3b
mov edi, dword [sym.imp.KERNEL32.dll_IsBadReadPtr]
push 4
push esi
call edi
test eax, eax
jne 0x10015b3b
mov eax, dword [esi]
mov esi, dword [eax + 0x44]
test esi, esi
je 0x10015b3b
push 4
push esi
call edi
test eax, eax
jne 0x10015b3b
call fcn.100668c0
call ebx
push eax
call fcn.10066d90
push 0x100158c0
push 0x100c1a20
call fcn.100665d0
call fcn.10066920
push 4
push esi
mov dword [0x100c1a20], esi
call edi
test eax, eax
jne 0x10015b3b
call fcn.100668c0
call ebx
push eax
call fcn.10066d90
push 0x100158c0
push 0x100c1a20
call fcn.10066140
call fcn.10066920
lea eax, [ebp - 0x264]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov ecx, dword [ebp - 0x250]
cmp ecx, 2
jle 0x10015b79
mov edi, 1
mov esi, edi
shl esi, cl
dec esi
push esi
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_SetProcessAffinityMask]
call ebx
mov ecx, esi
shl edi, cl
push edi
push eax
call dword [sym.imp.KERNEL32.dll_SetThreadAffinityMask]
call fcn.100158e0
push 1
call dword [sym.imp.WINMM.dll_timeBeginPeriod]
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.KERNEL32.dll_QueryPerformanceFrequency]
movsd xmm0, qword [0x100b1190]
mov edx, dword [ebp - 0x214]
mov ecx, dword [ebp - 0x218]
movsd qword [0x100c1a28], xmm0
call fcn.10097b60
divsd xmm0, qword [0x100b11b0]
lea eax, [ebp - 0x240]
push eax
movsd qword [0x100c1a38], xmm0
call dword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
mov edx, dword [ebp - 0x23c]
mov ecx, dword [ebp - 0x240]
call fcn.10097b60
divsd xmm0, qword [0x100c1a38]
push 0x98
lea eax, [ebp - 0x300]
push 0
push eax
movsd qword [0x100c1a30], xmm0
call fcn.10080320
add esp, 4
lea ecx, [ebp - 0x300]
call fcn.100077d0
mov dword [ebp - 4], 1
mov cl, 0x78
movaps xmm0, xmmword [0x100b2350]
mov al, 0x25
xor al, cl
mov byte [ebp - 0x304], cl
mov byte [ebp - 0x302], 0
xor ecx, ecx
mov byte [ebp - 0x303], al
mov byte [ebp - 0x302], 0
movups xmmword [ebp - 0x318], xmm0
mov dword [ebp - 0x308], 0x4b3064
nop dword [eax]
nop dword [eax + eax]
mov al, byte [ebp - 0x318]
xor byte [ebp + ecx - 0x317], al
inc ecx
cmp ecx, 0x12
jb 0x10015c60
lea edx, [ebp - 0x317]
mov byte [ebp - 0x305], 0
lea ecx, [ebp - 0x300]
call fcn.100052c0
mov esi, eax
test esi, esi
jne 0x10015c95
xor ecx, ecx
jmp 0x10015c9c
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 - 0x328]
push 8
push eax
call fcn.10063c24
add esp, 0xc
mov edx, eax
test esi, esi
jne 0x10015cc9
xor ecx, ecx
jmp 0x10015cd0
mov eax, dword [esi]
mov ecx, dword [eax + 4]
add ecx, esi
push dword [edx + 0xc]
mov eax, dword [edx]
push dword [edx + 8]
push ecx
call eax
mov eax, dword [esi]
add esp, 0xc
mov eax, dword [eax + 4]
mov byte [eax + esi + 0x40], 0x30
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
push eax
mov ecx, esi
call fcn.10003090
lea edx, [ebp - 0x303]
mov ecx, eax
call fcn.100052c0
lea eax, [ebp - 0x234]
push eax
lea ecx, [ebp - 0x300]
call fcn.10004ff0
cmp dword [ebp - 0x220], 0x10
lea esi, [ebp - 0x234]
push 0x10015510
cmovae esi, dword [ebp - 0x234]
lea edx, [ebp - 0x234]
cmovae 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 dword [0x100c1a24], eax
mov eax, dword [ebp - 0x220]
cmp eax, 0x10
jb 0x10015d6f
inc eax
lea ecx, [ebp - 0x234]
push eax
push dword [ebp - 0x234]
call fcn.10002760
lea ecx, [ebp - 0x2b0]
mov dword [ebp - 0x220], 0xf
mov dword [ebp - 0x224], 0
mov byte [ebp - 0x234], 0
call fcn.10005570
lea eax, [ebp - 0x2b0]
mov dword [ebp - 4], 2
push eax
mov dword [ebp - method.std::ios_base.virtual_0], vtable.std::ios_base.0
call fcn.1006347f
add esp, 4
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.10067c75
mov esp, ebp
pop ebp
ret