Function at 0x140064710
Capabilities:
Create thread
Enumerate process modules

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
push rbp
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x3f0]
sub rsp, 0x4f0
mov rax, qword [0x140085020]
xor rax, rsp
mov qword [rbp + 0x3e0], rax
mov r12, r8
mov dword [rsp + 0x48], edx
mov ecx, 8
call qword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov rbx, rax
mov qword [rsp + 0x58], rax
cmp rax, 0xffffffffffffffff
je 0x140064c3c
mov dword [rsp + 0x60], 0x438
xor edx, edx
mov r8d, 0x434
lea rcx, [rsp + 0x64]
call fcn.14003bac0
lea rdx, [rsp + 0x60]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_Module32FirstW]
test eax, eax
je 0x140064c0f
xor ebx, ebx
nop
mov qword [rbp + 0x3a0], rbx
mov qword [rbp + 0x3b0], rbx
mov qword [rbp + 0x3b8], rbx
mov qword [rbp + 0x3b0], rbx
mov qword [rbp + 0x3b8], 7
mov word [rbp + 0x3a0], bx
lea rax, [rbp - 0x70]
mov r8, 0xffffffffffffffff
nop dword [rax]
inc r8
cmp word [rax + r8*2], 0
jne 0x1400647e0
lea rdx, [rbp - 0x70]
lea rcx, [rbp + 0x3a0]
call fcn.140002300
nop
mov qword [rbp + 0x3c0], rbx
mov qword [rbp + 0x3d0], rbx
mov qword [rbp + 0x3d8], rbx
mov qword [rbp + 0x3d0], rbx
mov qword [rbp + 0x3d8], 7
mov word [rbp + 0x3c0], bx
lea rax, [rbp + 0x190]
mov r8, 0xffffffffffffffff
nop dword [rax + rax]
inc r8
cmp word [rax + r8*2], 0
jne 0x140064840
lea rdx, [rbp + 0x190]
lea rcx, [rbp + 0x3c0]
call fcn.140002300
nop
mov rax, qword [r12 + 0x10]
mov r8, qword [rbp + 0x3c0]
mov qword [rsp + 0x40], r8
mov r13, qword [rbp + 0x3a0]
cmp qword [rbp + 0x3b0], rax
jne 0x140064ac9
lea r15, [rbp + 0x3a0]
mov rdi, qword [rbp + 0x3b8]
cmp rdi, 8
cmovae r15, r13
mov rcx, r12
cmp qword [r12 + 0x18], 8
jb 0x1400648a9
mov rcx, qword [r12]
lea rbx, [rcx + rax*2]
mov r14, r12
jb 0x1400648b6
mov r14, qword [r12]
cmp r14, rbx
je 0x1400648f4
sub r15, r14
nop
movzx esi, word [r15 + r14]
movzx ecx, word [r14]
call fcn.14003f878
mov edi, eax
mov ecx, esi
call fcn.14003f878
cmp edi, eax
jne 0x140064abf
add r14, 2
cmp r14, rbx
jne 0x1400648c0
mov r8, qword [rsp + 0x40]
mov rdi, qword [rbp + 0x3b8]
mov rax, qword [rbp + 0x3d8]
cmp rax, 8
jb 0x140064936
lea rdx, [rax*2 + 2]
mov rax, r8
cmp rdx, 0x1000
jb 0x14006492e
add rdx, 0x27
mov r8, qword [r8 - 8]
sub rax, r8
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140064c09
mov rcx, r8
call fcn.14003955c
xor esi, esi
mov qword [rbp + 0x3d0], rsi
mov qword [rbp + 0x3d8], 7
mov word [rbp + 0x3c0], si
cmp rdi, 8
jb 0x14006498c
lea rdx, [rdi*2 + 2]
mov rax, r13
cmp rdx, 0x1000
jb 0x140064984
add rdx, 0x27
mov r13, qword [r13 - 8]
sub rax, r13
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140064c36
mov rcx, r13
call fcn.14003955c
mov qword [rbp + 0x3b0], rsi
mov qword [rbp + 0x3b8], 7
mov word [rbp + 0x3a0], si
mov r8d, dword [rsp + 0x48]
xor edx, edx
mov ecx, 0x40a
call qword [sym.imp.KERNEL32.dll_OpenProcess]
mov rdi, rax
mov qword [rsp + 0x48], rax
test rax, rax
je 0x140064c63
lea rcx, str.Kernel32
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x140064c8a
lea rdx, [0x140079af8]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov r9, rax
test rax, rax
je 0x140064cb1
mov qword [rsp + 0x30], rsi
mov dword [rsp + 0x28], esi
mov rax, qword [rsp + 0x78]
mov qword [rsp + 0x20], rax
xor r8d, r8d
xor edx, edx
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CreateRemoteThread]
mov rbx, rax
mov qword [rsp + 0x40], rax
test rax, rax
je 0x140064cd8
mov edx, 0xffffffff
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
lea rdx, [rsp + 0x50]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetExitCodeThread]
test eax, eax
je 0x140064cff
cmp dword [rsp + 0x50], 0
je 0x140064d26
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov qword [rsp + 0x40], rsi
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov qword [rsp + 0x48], rsi
mov rax, qword [rsp + 0x58]
test rax, rax
je 0x140064a8f
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov qword [rsp + 0x58], rsi
mov rcx, qword [rbp + 0x3e0]
xor rcx, rsp
call fcn.140039500
lea r11, [rsp + 0x4f0]
mov rbx, qword [r11 + 0x30]
mov rsi, qword [r11 + 0x40]
mov rdi, qword [r11 + 0x48]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rbp
ret
mov rax, qword [r12 + 0x10]
mov r8, qword [rsp + 0x40]
cmp qword [rbp + 0x3d0], rax
jne 0x140064b3a
lea r15, [rbp + 0x3c0]
cmp qword [rbp + 0x3d8], 8
cmovae r15, r8
mov rcx, r12
cmp qword [r12 + 0x18], 8
jb 0x140064af4
mov rcx, qword [r12]
lea rbx, [rcx + rax*2]
mov r14, r12
jb 0x140064b01
mov r14, qword [r12]
cmp r14, rbx
je 0x1400648ed
sub r15, r14
nop dword [rax]
movzx esi, word [r15 + r14]
movzx ecx, word [r14]
call fcn.14003f878
mov edi, eax
mov ecx, esi
call fcn.14003f878
cmp edi, eax
jne 0x140064b3a
add r14, 2
cmp r14, rbx
je 0x1400648e8
jmp 0x140064b10
mov rax, qword [rbp + 0x3d8]
cmp rax, 8
jb 0x140064b7e
lea rdx, [rax*2 + 2]
mov rcx, qword [rsp + 0x40]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140064b79
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140064c09
call fcn.14003955c
xor ebx, ebx
mov qword [rbp + 0x3d0], rbx
mov qword [rbp + 0x3d8], 7
mov word [rbp + 0x3c0], bx
mov rax, qword [rbp + 0x3b8]
cmp rax, 8
jb 0x140064bd7
lea rdx, [rax*2 + 2]
mov rax, r13
cmp rdx, 0x1000
jb 0x140064bcf
add rdx, 0x27
mov r13, qword [r13 - 8]
sub rax, r13
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140064c36
mov rcx, r13
call fcn.14003955c
mov qword [rbp + 0x3b0], rbx
mov qword [rbp + 0x3b8], 7
mov word [rbp + 0x3a0], bx
lea rdx, [rsp + 0x60]
mov rcx, qword [rsp + 0x58]
call qword [sym.imp.KERNEL32.dll_Module32NextW]
test eax, eax
je 0x140064c0f
jmp 0x1400647a0
call fcn.14003fcc8
nop
lea rdx, str.Could_not_find_module_in_remote_process.
lea rcx, [rbp + 0x3a0]
call fcn.140001630
lea rdx, [0x140083d30]
lea rcx, [rbp + 0x3a0]
call fcn.14003b148
int3
call fcn.14003fcc8
int3
lea rdx, str.Could_not_get_module_snapshot_for_remote_process.
lea rcx, [rbp + 0x3a0]
call fcn.140001630
lea rdx, [0x140083d30]
lea rcx, [rbp + 0x3a0]
call fcn.14003b148
nop
lea rdx, str.Could_not_get_handle_to_process.
lea rcx, [rbp + 0x3a0]
call fcn.140001630
lea rdx, [0x140083d30]
lea rcx, [rbp + 0x3a0]
call fcn.14003b148
int3
lea rdx, str.Could_not_get_handle_to_Kernel32.
lea rcx, [rbp + 0x3a0]
call fcn.140001630
lea rdx, [0x140083d30]
lea rcx, [rbp + 0x3a0]
call fcn.14003b148
int3
lea rdx, str.Could_not_get_pointer_to_FreeLibrary.
lea rcx, [rbp + 0x3a0]
call fcn.140001630
lea rdx, [0x140083d30]
lea rcx, [rbp + 0x3a0]
call fcn.14003b148
nop
lea rdx, str.Could_not_create_thread_in_remote_process.
lea rcx, [rbp + 0x3a0]
call fcn.140001630
lea rdx, [0x140083d30]
lea rcx, [rbp + 0x3a0]
call fcn.14003b148
int3
lea rdx, str.Could_not_get_thread_exit_code.
lea rcx, [rbp + 0x3a0]
call fcn.140001630
lea rdx, [0x140083d30]
lea rcx, [rbp + 0x3a0]
call fcn.14003b148
int3
lea rdx, str.Call_to_FreeLibrary_in_remote_process_failed.
lea rcx, [rbp + 0x3a0]
call fcn.140001630
lea rdx, [0x140083d30]
lea rcx, [rbp + 0x3a0]
call fcn.14003b148
int3