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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10061907
mov eax, dword fs:[0]
push eax
sub esp, 0x318
mov eax, dword [0x10077604]
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
mov dword [ebp - 0x21c], 0
cmp dword [0x100780f8], 0
jne 0x10011731
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 dword [sym.imp.api_ms_win_crt_filesystem_l1_1_0.dll__splitpath_s]
add esp, 0x24
test eax, eax
jne 0x10011731
mov ah, 0x2a
mov byte [ebp - 0x213], 0
mov al, 0xf
mov byte [ebp - 0x218], ah
mov dl, al
mov byte [ebp - 0x213], 0
xor al, ah
mov cl, 0x59
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.100121c0
add esp, 0x14
lea eax, [ebp - 0x110]
lea ecx, [ebp - 0x250]
push eax
call fcn.100017e0
lea eax, [ebp - 0x250]
mov dword [ebp - 4], 0
push eax
call fcn.100110f0
mov eax, dword [ebp - 0x23c]
add esp, 4
mov dword [ebp - 4], 0xffffffff
cmp eax, 0x10
jb 0x10011731
inc eax
push 1
push eax
push dword [ebp - 0x250]
call fcn.10002610
add esp, 0xc
push 0xd79978
call fcn.10013970
mov esi, eax
add esp, 4
test esi, esi
je 0x100117ab
mov edi, dword [sym.imp.KERNEL32.dll_IsBadReadPtr]
push 4
push esi
call edi
test eax, eax
jne 0x100117ab
mov eax, dword [esi]
mov esi, dword [eax + 0x44]
test esi, esi
je 0x100117ab
push 4
push esi
call edi
test eax, eax
jne 0x100117ab
call fcn.1005e2d0
call dword [sym.imp.KERNEL32.dll_GetCurrentThread]
push eax
call fcn.1005e7a0
push 0x100114f0
push 0x100781a8
call fcn.1005dfe0
call fcn.1005e330
push 4
push esi
mov dword [0x100781a8], esi
call edi
test eax, eax
jne 0x100117ab
push 0x100114f0
push 0x100781a8
call fcn.100114c0
add esp, 8
lea eax, [ebp - 0x25c]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov ecx, dword [ebp - 0x248]
mov ebx, dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
cmp ecx, 2
jle 0x100117ef
mov edi, 1
mov esi, edi
shl esi, cl
dec esi
push esi
call ebx
push eax
call dword [sym.imp.KERNEL32.dll_SetProcessAffinityMask]
call dword [sym.imp.KERNEL32.dll_GetCurrentThread]
mov ecx, esi
shl edi, cl
push edi
push eax
call dword [sym.imp.KERNEL32.dll_SetThreadAffinityMask]
push 0x2c
lea eax, [ebp - 0x264]
push eax
call ebx
push eax
call sub.KERNEL32.dll_K32GetProcessMemoryInfo
mov esi, dword [sym.imp.KERNEL32.dll_SetProcessWorkingSetSize]
test eax, eax
je 0x10011820
mov eax, dword [ebp - 0x258]
mov ecx, eax
shr ecx, 1
lea eax, [eax + eax*2]
shr eax, 1
push eax
push ecx
call ebx
push eax
call esi
call ebx
push 0xffffffffffffffff
push 0xffffffffffffffff
push eax
call esi
call fcn.10011560
push 1
call dword [sym.imp.WINMM.dll_timeBeginPeriod]
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.KERNEL32.dll_QueryPerformanceFrequency]
movss xmm1, dword [0x100773f0]
movsd xmm0, qword [0x10066a18]
cvtps2pd xmm1, xmm1
mov edx, dword [ebp - 0x214]
mov ecx, dword [ebp - 0x218]
divsd xmm0, xmm1
movsd qword [0x100781a0], xmm0
call fcn.1005fa50
divsd xmm0, qword [0x10066a18]
lea eax, [ebp - 0x220]
push eax
movsd qword [0x10078190], xmm0
call dword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
mov edx, dword [ebp - 0x21c]
mov ecx, dword [ebp - 0x220]
call fcn.1005fa50
divsd xmm0, qword [0x10078190]
push 0x98
lea eax, [ebp - 0x2fc]
push 0
push eax
movsd qword [0x10078198], xmm0
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
mov dword [ebp - 0x2fc], 0x10066518
lea ecx, [ebp - 0x2ac]
call dword [sym.imp.MSVCP140.dll_protected:_void___thiscall_std::basic_ios_char__struct_std::char_traits_char__::constructor_void_]
push 0
push 0
lea eax, [ebp - 0x2f8]
mov dword [ebp - 4], 1
push eax
lea ecx, [ebp - 0x2fc]
mov dword [ebp - 0x21c], 1
call dword [sym.imp.MSVCP140.dll_public:_void___thiscall_std::basic_ostream_char__struct_std::char_traits_char__::constructor_class_std::basic_streambuf_char__struct_std::char_traits_char_____bool_]
mov eax, dword [ebp - 0x2fc]
mov dword [ebp - 4], 2
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 - 0x2fc]
mov ecx, dword [eax + 4]
lea eax, [ecx - 0x50]
mov dword [ebp + ecx - 0x300], eax
lea eax, [ebp - 0x2f8]
mov ecx, eax
mov dword [ebp - 0x300], eax
call dword [sym.imp.MSVCP140.dll_protected:_void___thiscall_std::basic_streambuf_char__struct_std::char_traits_char__::constructor_void_]
mov dword [ebp - method.std::basic_stringbuf_char__struct_std::char_traits_char___class_std::allocator_char__.virtual_0], vtable.std::basic_stringbuf_char__struct_std::char_traits_char___class_std::allocator_char__.0
mov dword [ebp - 0x2c0], 0
mov dword [ebp - 0x2bc], 4
movaps xmm0, xmmword [0x10066a30]
mov cl, 0x17
mov al, 0x4a
mov byte [ebp - 0x300], cl
xor al, cl
mov byte [ebp - 0x2fe], 0
mov dword [ebp - 4], 4
xor ecx, ecx
mov byte [ebp - 0x2ff], al
mov byte [ebp - 0x2fe], 0
movups xmmword [ebp - 0x314], xmm0
mov dword [ebp - 0x304], 0x2b5004
nop word [eax + eax]
mov al, byte [ebp - 0x314]
xor byte [ebp + ecx - 0x313], al
inc ecx
cmp ecx, 0x12
jb 0x100119b0
push 0
lea eax, [ebp - 0x324]
mov byte [ebp - 0x301], 0
push 8
push eax
call dword [sym.imp.MSVCP140.dll_struct_std::_Smanip_long_long___int64_____cdecl_std::setw_long_long___int64__]
add esp, 0xc
mov edi, eax
lea eax, [ebp - 0x313]
push 0x10003850
push eax
lea eax, [ebp - 0x2fc]
push eax
call fcn.10002af0
add esp, 8
mov ecx, eax
call dword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______thiscall_std::basic_ostream_char__struct_std::char_traits_char__::operator___class_std::ios_base_____cdecl___class_std::ios_base___]
mov esi, eax
test esi, esi
je 0x10011a10
mov eax, dword [esi]
mov eax, dword [eax + 4]
add eax, esi
push dword [edi + 0xc]
push dword [edi + 8]
push eax
mov eax, dword [edi]
call eax
mov eax, dword [esi]
add esp, 0xc
mov ecx, dword [eax + 4]
push 0x30
add ecx, esi
call dword [sym.imp.MSVCP140.dll_public:_char___thiscall_std::basic_ios_char__struct_std::char_traits_char__::fill_char_]
lea eax, [ebp - 0x2ff]
push eax
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
push eax
mov ecx, esi
call dword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______thiscall_std::basic_ostream_char__struct_std::char_traits_char__::operator___unsigned_long_int_]
push eax
call fcn.10002af0
add esp, 8
lea eax, [ebp - 0x238]
lea ecx, [ebp - 0x2fc]
push eax
call fcn.10003ed0
cmp dword [ebp - 0x224], 0x10
lea esi, [ebp - 0x238]
push 0x10011b60
cmovae esi, dword [ebp - 0x238]
lea edx, [ebp - 0x238]
cmovae edx, dword [ebp - 0x238]
push 0xfffffffffffffffc
push esi
push edx
call dword [sym.imp.USER32.dll_FindWindowA]
push eax
call dword [sym.imp.USER32.dll_SetWindowLongA]
mov dword [0x100781ac], eax
mov eax, dword [ebp - 0x224]
cmp eax, 0x10
jb 0x10011ab7
inc eax
push 1
push eax
push dword [ebp - 0x238]
call fcn.10002610
add esp, 0xc
mov eax, dword [ebp - 0x2fc]
mov dword [ebp - 0x224], 0xf
mov dword [ebp - 0x228], 0
mov byte [ebp - 0x238], 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 - 0x2fc]
mov ecx, dword [eax + 4]
lea eax, [ecx - 0x50]
mov dword [ebp + ecx - 0x300], eax
lea ecx, [ebp - 0x2f8]
mov dword [ebp - 4], 5
mov dword [ebp - method.std::basic_stringbuf_char__struct_std::char_traits_char___class_std::allocator_char__.virtual_0], vtable.std::basic_stringbuf_char__struct_std::char_traits_char___class_std::allocator_char__.0
call fcn.100037e0
lea ecx, [ebp - 0x2f8]
call dword [sym.imp.MSVCP140.dll_public_virtual:_void___thiscall_std::basic_streambuf_char__struct_std::char_traits_char__::destructor_void_]
lea ecx, [ebp - 0x2f4]
call dword [sym.imp.MSVCP140.dll_public_virtual:_void___thiscall_std::basic_ostream_char__struct_std::char_traits_char__::destructor_void_]
lea ecx, [ebp - 0x2ac]
call dword [sym.imp.MSVCP140.dll_public_virtual:_void___thiscall_std::basic_ios_char__struct_std::char_traits_char__::destructor_void_]
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.1005f6be
mov esp, ebp
pop ebp
ret