Function at 0x1001b6e0
Capabilities:
Create process on windows
Encode data using xor
Get common file path
Terminate process

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10046768
mov eax, dword fs:[0]
push eax
sub esp, 0x2f0
mov eax, dword [0x100571c4]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
lea eax, [ebp - 0x114]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
mov edx, 0xc8
xor ecx, ecx
nop word [eax + eax]
mov al, byte [ecx + 0x10051164]
xor al, dl
mov byte [ebp + ecx - 0x234], al
inc ecx
lea eax, [edx + 1]
movzx edx, al
cmp ecx, 0x10
jb 0x1001b730
lea eax, [ebp - 0x114]
mov byte [ebp - 0x224], 0
push eax
lea eax, [ebp - 0x234]
push eax
lea eax, [ebp - 0x114]
push eax
call fcn.10002700
lea eax, [ebp - 0x114]
push eax
call fcn.10031dd2
add esp, 0xc
lea ecx, [ebp - 0x2fc]
call fcn.1001f4b0
push ecx
push 0x12
lea eax, [ebp - 0x114]
mov dword [ebp - 4], 0
push eax
lea ecx, [ebp - 0x2f8]
call fcn.1000f8e0
test eax, eax
lea ecx, [ebp - 0x2fc]
mov eax, dword [ebp - 0x2fc]
mov eax, dword [eax + 4]
jne 0x1001b7c8
add ecx, eax
mov eax, dword [ecx + 0xc]
or eax, 2
cmp dword [ecx + 0x38], 0
jne 0x1001b7d7
or eax, 4
jmp 0x1001b7d7
add ecx, eax
mov edx, 4
xor eax, eax
cmp dword [ecx + 0x38], eax
cmove eax, edx
push 0
push eax
call fcn.10005cf0
mov dword [ebp - 0x220], 0x6f727245
mov dword [ebp - 0x21c], 0x203a72
lea edx, [ebp - 0x220]
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x2fc]
call fcn.100126c0
mov edx, esi
mov ecx, eax
call fcn.100126c0
push eax
call fcn.1001fd00
add esp, 4
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x2fc]
call fcn.1000cc00
mov edx, 0xdd
xor ecx, ecx
mov al, byte [ecx + 0x10050e30]
xor al, dl
mov byte [ebp + ecx - 0x24c], al
inc ecx
lea eax, [edx + 1]
movzx edx, al
cmp ecx, 0x16
jb 0x1001b830
mov byte [ebp - 0x236], 0
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
push eax
lea eax, [ebp - 0x24c]
push eax
lea eax, [ebp - 0x218]
push eax
call fcn.10002700
add esp, 0xc
lea eax, [ebp - 0x218]
push 0
push eax
call dword [sym.imp.KERNEL32.dll_WinExec]
push 0x104
lea eax, [ebp - 0x218]
push 0
push eax
call fcn.1002aef0
add esp, 0xc
push 0
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
mov dword [ebp - 4], 2
mov eax, dword [ebp - 0x2fc]
mov eax, dword [eax + 4]
mov dword [ebp + eax - method.std::basic_ofstream_char__struct_std::char_traits_char__.virtual_0], vtable.std::basic_ofstream_char__struct_std::char_traits_char__.0
mov eax, dword [ebp - 0x2fc]
mov ecx, dword [eax + 4]
lea eax, [ecx - 0x68]
mov dword [ebp + ecx - 0x300], eax
lea ecx, [ebp - 0x2f8]
call fcn.1000d520
mov eax, dword [ebp - 0x2fc]
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 - 0x2fc]
mov ecx, dword [eax + 4]
lea eax, [ecx - 8]
mov dword [ebp + ecx - 0x300], eax
lea eax, [ebp - 0x294]
mov byte [ebp - 4], 4
push eax
mov dword [ebp - method.std::ios_base.virtual_0], vtable.std::ios_base.0
call fcn.10023f88
add esp, 4
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.10027e1f
mov esp, ebp
pop ebp
ret