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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100655e6
mov eax, dword fs:[0]
push eax
sub esp, 0x324
mov eax, dword [0x10078014]
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 [0x1007a7c0], 0
jne 0x100139b2
push pe_nt_image_headers32
lea eax, [ebp - 0x110]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
push 0
push 0
push 0
push 0
push pe_nt_image_headers32
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 0x100139b2
mov ah, 0x34
mov byte [ebp - 0x213], 0
mov al, 0x11
mov byte [ebp - 0x218], ah
mov dl, al
mov byte [ebp - 0x213], 0
xor al, ah
mov cl, 0x47
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 pe_nt_image_headers32
push eax
call fcn.100141d0
add esp, 0x14
lea eax, [ebp - 0x110]
lea ecx, [ebp - 0x258]
push eax
call fcn.100029c0
lea ecx, [ebp - 0x258]
mov dword [ebp - 4], 0
call fcn.10013130
mov dword [ebp - 4], 0xffffffff
mov edx, dword [ebp - 0x244]
cmp edx, 0x10
jb 0x100139b2
mov ecx, dword [ebp - 0x258]
inc edx
push 1
call fcn.10002790
add esp, 4
mov ecx, 0xd79978
call fcn.10015280
mov ebx, dword [sym.imp.KERNEL32.dll_GetCurrentThread]
mov esi, eax
test esi, esi
je 0x10013a3a
mov edi, dword [sym.imp.KERNEL32.dll_IsBadReadPtr]
push 4
push esi
call edi
test eax, eax
jne 0x10013a3a
mov eax, dword [esi]
mov esi, dword [eax + 0x44]
test esi, esi
je 0x10013a3a
push 4
push esi
call edi
test eax, eax
jne 0x10013a3a
call fcn.10061cb0
call ebx
push eax
call fcn.10062180
push 0x10013760
push 0x1007a2a0
call fcn.100619c0
call fcn.10061d10
push 4
push esi
mov dword [0x1007a2a0], esi
call edi
test eax, eax
jne 0x10013a3a
call fcn.10061cb0
call ebx
push eax
call fcn.10062180
push 0x10013760
push 0x1007a2a0
call fcn.10061530
call fcn.10061d10
lea eax, [ebp - 0x264]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov ecx, dword [ebp - 0x250]
mov ebx, dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
cmp ecx, 2
jle 0x10013a7e
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 - 0x26c]
push eax
call ebx
push eax
call dword [sym.imp.KERNEL32.dll_K32GetProcessMemoryInfo]
mov esi, dword [sym.imp.KERNEL32.dll_SetProcessWorkingSetSize]
test eax, eax
je 0x10013ab0
mov eax, dword [ebp - 0x260]
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.10013820
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 [0x1006f0a0]
mov edx, dword [ebp - 0x214]
mov ecx, dword [ebp - 0x218]
movsd qword [0x1007a2a8], xmm0
call fcn.10064420
divsd xmm0, qword [0x1006f0b8]
lea eax, [ebp - 0x240]
push eax
movsd qword [0x1007a2b8], xmm0
call dword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
mov edx, dword [ebp - 0x23c]
mov ecx, dword [ebp - 0x240]
call fcn.10064420
divsd xmm0, qword [0x1007a2b8]
push 0x98
lea eax, [ebp - 0x308]
push 0
push eax
movsd qword [0x1007a2b0], xmm0
call sub.VCRUNTIME140.dll_memset
add esp, 4
lea ecx, [ebp - 0x308]
call fcn.10003ec0
mov dword [ebp - 4], 1
mov cl, 0x54
movaps xmm0, xmmword [0x1006faa0]
mov al, 9
xor al, cl
mov byte [ebp - 0x30c], cl
mov byte [ebp - 0x30a], 0
xor ecx, ecx
mov byte [ebp - 0x30b], al
mov byte [ebp - 0x30a], 0
movups xmmword [ebp - 0x320], xmm0
mov dword [ebp - 0x310], 0xb7024
nop dword [eax]
nop dword [eax + eax]
mov al, byte [ebp - 0x320]
xor byte [ebp + ecx - 0x31f], al
inc ecx
cmp ecx, 0x12
jb 0x10013ba0
push 0
lea eax, [ebp - 0x330]
mov byte [ebp - 0x30d], 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
lea edx, [ebp - 0x31f]
mov edi, eax
push 0x100032b0
push ecx
lea ecx, [ebp - 0x308]
call fcn.10003490
add esp, 4
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
jne 0x10013bfc
xor ecx, ecx
jmp 0x10013c03
mov eax, dword [esi]
mov ecx, dword [eax + 4]
add ecx, esi
push dword [edi + 0xc]
mov eax, dword [edi]
push dword [edi + 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 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_]
lea edx, [ebp - 0x30b]
mov ecx, eax
call fcn.10003490
lea eax, [ebp - 0x234]
push eax
lea ecx, [ebp - 0x308]
call fcn.10003290
cmp dword [ebp - 0x220], 0x10
lea esi, [ebp - 0x234]
push 0x10013450
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 edx, dword [ebp - 0x220]
mov dword [0x1007a2a4], eax
cmp edx, 0x10
jb 0x10013ca1
mov ecx, dword [ebp - 0x234]
inc edx
push 1
call fcn.10002790
add esp, 4
mov eax, dword [ebp - 0x308]
mov dword [ebp - 0x220], 0xf
mov dword [ebp - 0x224], 0
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 - 0x308]
mov ecx, dword [eax + 4]
lea eax, [ecx - 0x50]
mov dword [ebp + ecx - 0x30c], eax
lea ecx, [ebp - 0x304]
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.10003e40
lea ecx, [ebp - 0x304]
call dword [sym.imp.MSVCP140.dll_public_virtual:_void___thiscall_std::basic_streambuf_char__struct_std::char_traits_char__::destructor_void_]
lea ecx, [ebp - 0x300]
call dword [sym.imp.MSVCP140.dll_public_virtual:_void___thiscall_std::basic_ostream_char__struct_std::char_traits_char__::destructor_void_]
lea ecx, [ebp - 0x2b8]
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.10063065
mov esp, ebp
pop ebp
ret