Function at 0x140002d30
Capabilities:
Create thread
Inject dll
Inject thread

Disassembly:
push rbp
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbx
sub rsp, 0x108
lea rbp, [rsp + 0x80]
mov qword [rbp + 0x80], 0xfffffffffffffffe
mov rdi, rdx
mov rsi, rcx
add r9, r8
mov qword [rbp - 0x48], r8
mov qword [rbp - 0x40], r9
mov word [rbp - 0x38], 0
lea rcx, [rbp + 0x10]
lea rdx, [rbp - 0x48]
call fcn.140005240
mov rbx, qword [rbp + 0x20]
cmp rbx, qword [rbp + 0x10]
jne 0x140002d8d
lea rcx, [rbp + 0x10]
call fcn.140005870
mov rax, qword [rbp + 0x18]
mov word [rax + rbx*2], 0
inc rbx
mov qword [rbp + 0x20], rbx
mov rdx, qword [rdi]
mov rax, qword [rdx + 0x10]
movabs rcx, 0x7fffffffffffffff
cmp rax, rcx
jae 0x140003290
cmp byte [rdx + 0xe4], 0
je 0x140003251
inc rax
mov qword [rdx + 0x10], rax
mov qword [rbp + 0x68], rdx
mov r8d, dword [rdx + 0xe0]
mov ecx, 0x43a
xor edx, edx
call qword [sym.imp.kernel32.dll_OpenProcess]
mov rdi, rax
lea rbx, [rax + 1]
cmp rbx, 1
ja 0x140002e82
call fcn.140006070
mov dword [rbp + 0x38], edx
lea rdi, [rbp + 0x30]
mov qword [rbp + 0x30], rax
mov qword [rbp + 0x28], 1
mov rax, qword [rbp + 0x68]
dec qword [rax + 0x10]
movzx eax, byte [0x140030141]
mov ecx, 0x16
mov edx, 1
call fcn.140002bc0
test rax, rax
je 0x1400032a1
movups xmm0, xmmword [0x14002178c]
movups xmmword [rax], xmm0
movabs rcx, 0x64696c61766e6920
mov qword [rax + 0xe], rcx
mov qword [rsi], 0x16
mov qword [rsi + 8], rax
mov qword [rsi + 0x10], 0x16
cmp qword [rbp + 0x28], 0
je 0x14000325e
cmp qword [rbp + 0x30], 0
je 0x14000325e
mov rcx, rdi
call fcn.140005c90
jmp 0x14000325e
mov qword [rbp - 0x28], rbx
mov qword [rbp + 0x30], rdi
mov qword [rbp + 0x28], 0
mov r13, qword [rbp + 0x68]
dec qword [r13 + 0x10]
lea r12, [rbp + 0x30]
mov r8, qword [rbp + 0x20]
add r8, r8
mov qword [rbp + 0x78], r12
mov dword [rsp + 0x20], 4
mov rcx, rdi
xor edx, edx
mov r9d, 0x3000
call qword [sym.imp.kernel32.dll_VirtualAllocEx]
mov rbx, rax
mov r14, qword [rbp + 0x18]
mov rax, qword [rbp + 0x20]
add rax, rax
mov qword [rbp + 0x70], rax
je 0x140002f08
js 0x1400032c8
movzx eax, byte [0x140030141]
mov r15d, 1
mov edx, 1
mov rcx, qword [rbp + 0x70]
call fcn.140002bc0
test rax, rax
je 0x1400032cb
mov rcx, rax
mov r15, rax
jmp 0x140002f0e
mov r15d, 1
mov rcx, r15
mov rdx, r14
mov r14, qword [rbp + 0x70]
mov r8, r14
call sub.VCRUNTIME140.dll_memcpy
mov rax, qword [r13 + 0x10]
movabs rcx, 0x7ffffffffffffffe
cmp rax, rcx
mov qword [rbp - 0x30], r15
ja 0x1400032ba
inc rax
mov qword [r13 + 0x10], rax
mov rcx, qword [r13 + 0xd8]
mov qword [rbp + 0x40], 0
lea rax, [rbp + 0x40]
mov qword [rsp + 0x20], rax
mov rdx, rbx
mov r8, r15
mov r9, r14
call qword [sym.imp.kernel32.dll_WriteProcessMemory]
test eax, eax
jne 0x140002f8f
call fcn.140006070
mov qword [rbp - 0x18], rax
mov dword [rbp - 0x10], edx
mov qword [rbp - 0x20], 1
test rax, rax
je 0x140002f8f
lea rcx, [rbp - 0x18]
call fcn.140005c90
mov rax, qword [rbp + 0x68]
dec qword [rax + 0x10]
mov rdx, qword [rbp + 0x70]
test rdx, rdx
lea r15, [rbp + 0x30]
je 0x140002fb3
mov r8d, 1
mov rcx, qword [rbp - 0x30]
call fcn.140002bd0
lea rax, [0x140021718]
mov qword [rbp - 0x20], rax
lea rax, str.LoadLibraryW
mov qword [rbp - 0x18], rax
mov word [rbp - 0x10], 0
mov qword [rbp + 0x78], r15
lea rcx, [rbp + 0x40]
lea rdx, [rbp - 0x20]
call fcn.140005240
mov rdx, qword [rbp + 0x40]
mov r14, qword [rbp + 0x48]
test rdx, rdx
je 0x140002ffe
add rdx, rdx
mov r8d, 2
mov rcx, r14
call fcn.140002bd0
mov qword [rbp + 0x78], r15
mov rcx, r14
call qword [sym.imp.kernel32.dll_GetModuleHandleW]
mov r14, rax
test rax, rax
je 0x14000310b
lea r15, [rbp]
mov qword [rbp], r14
mov qword [rbp - 8], 0
mov qword [rbp + 0x60], r15
lea rdx, str.LoadLibraryW
mov qword [rbp + 0x68], r14
mov rcx, r14
call qword [sym.imp.kernel32.dll_GetProcAddress]
test rax, rax
je 0x14000319b
mov qword [rbp + 0x60], r15
mov qword [rsp + 0x20], rbx
mov qword [rsp + 0x30], 0
mov dword [rsp + 0x28], 0
mov rcx, rdi
xor edx, edx
xor r8d, r8d
mov r9, rax
call qword [sym.imp.kernel32.dll_CreateRemoteThread]
lea r14, [rax + 1]
cmp r14, 1
ja 0x1400031e4
mov qword [rbp + 0x60], r15
call fcn.140006070
mov dword [rbp + 0x50], edx
lea rdi, [rbp + 0x48]
mov qword [rbp + 0x48], rax
mov qword [rbp + 0x40], 1
movzx eax, byte [0x140030141]
mov ecx, 0x1d
mov edx, 1
call fcn.140002bc0
test rax, rax
je 0x14000330b
movups xmm0, xmmword [0x14002173f]
movups xmmword [rax + 0xd], xmm0
movups xmm0, xmmword [str.Failed_to_start_remote_threadFailed_to_find_LoadLibraryWfailed_to_load_module_kernel32.dllprocess_handle_invalidC:UsersFrank.cargo_registry_srcindex.crates.io_6f17d22bba15001fmem_rs_0.1.5_srcprocess_read_write.rs]
movups xmmword [rax], xmm0
mov qword [rsi], 0x1d
mov qword [rsi + 8], rax
mov qword [rsi + 0x10], 0x1d
cmp qword [rbp + 0x40], 0
je 0x14000325e
cmp qword [rbp + 0x48], 0
je 0x14000325e
mov qword [rbp + 0x60], r15
mov rcx, rdi
call fcn.140005c90
jmp 0x14000325e
mov qword [rbp + 0x78], r15
call fcn.140006070
mov dword [rbp + 8], edx
lea rdi, [rbp]
mov qword [rbp], rax
mov qword [rbp - 8], 1
movzx eax, byte [0x140030141]
mov ecx, 0x22
mov edx, 1
call fcn.140002bc0
test rax, rax
je 0x1400032dd
movups xmm0, xmmword [0x14002177a]
movups xmmword [rax + 0x10], xmm0
movups xmm0, xmmword [0x14002176a]
movups xmmword [rax], xmm0
mov word [rax + 0x20], 0x6c6c
mov qword [rsi], 0x22
mov qword [rsi + 8], rax
mov qword [rsi + 0x10], 0x22
cmp qword [rbp - 8], 0
je 0x14000325e
cmp qword [rbp], 0
je 0x14000325e
mov qword [rbp + 0x78], r15
mov rcx, rdi
call fcn.140005c90
jmp 0x14000325e
movzx eax, byte [0x140030141]
mov ecx, 0x1b
mov edx, 1
call fcn.140002bc0
test rax, rax
je 0x1400032f6
movups xmm0, xmmword [0x14002175a]
movups xmmword [rax + 0xb], xmm0
movups xmm0, xmmword [0x14002174f]
movups xmmword [rax], xmm0
mov qword [rsi], 0x1b
mov qword [rsi + 8], rax
mov qword [rsi + 0x10], 0x1b
jmp 0x14000325e
mov qword [rbp + 0x70], r14
lea r14, [rbp + 0x48]
mov qword [rbp + 0x48], rax
mov qword [rbp + 0x40], 0
mov qword [rbp + 0x58], r14
mov rcx, rax
mov edx, 0x2710
call qword [sym.imp.kernel32.dll_WaitForSingleObject]
mov qword [rbp + 0x58], r14
mov rcx, rdi
mov rdx, rbx
xor r8d, r8d
mov r9d, 0x8000
call qword [sym.imp.kernel32.dll_VirtualFreeEx]
test eax, eax
jne 0x140003251
mov qword [rbp + 0x58], r14
call fcn.140006070
mov qword [rbp - 0x18], rax
mov dword [rbp - 0x10], edx
mov qword [rbp - 0x20], 1
test rax, rax
je 0x140003251
lea rcx, [rbp - 0x18]
mov qword [rbp + 0x58], r14
call fcn.140005c90
movabs rax, 0x8000000000000000
mov qword [rsi], rax
mov rdx, qword [rbp + 0x10]
test rdx, rdx
je 0x140003279
mov rcx, qword [rbp + 0x18]
add rdx, rdx
mov r8d, 2
call fcn.140002bd0
mov rax, rsi
add rsp, 0x108
pop rbx
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
pop rbp
ret
lea rcx, str.C:UsersFrank.cargo_registry_srcindex.crates.io_6f17d22bba15001fmem_rs_0.1.5_srcprocessmod.rs
call fcn.1400206b0
jmp 0x140003322
mov qword [rbp - 0x28], rbx
mov qword [rbp + 0x78], rdi
mov ecx, 1
mov edx, 0x16
call fcn.140020580
jmp 0x140003322
lea rcx, [0x140021810]
call fcn.1400206b0
jmp 0x140003322
xor r15d, r15d
mov qword [rbp + 0x78], r12
mov rcx, r15
mov rdx, qword [rbp + 0x70]
call fcn.140020580
jmp 0x140003322
mov qword [rbp + 0x68], r14
mov qword [rbp + 0x60], rdi
mov ecx, 1
mov edx, 0x22
call fcn.140020580
jmp 0x140003322
mov qword [rbp + 0x60], r15
mov ecx, 1
mov edx, 0x1b
call fcn.140020580
jmp 0x140003322
mov qword [rbp + 0x70], r14
mov qword [rbp + 0x58], rdi
mov ecx, 1
mov edx, 0x1d
call fcn.140020580
ud2