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

Disassembly:
jmp 0x14004e320
push rbp
push rsi
push rdi
sub rsp, 0x550
lea rbp, [rsp + 0x40]
lea rdi, [rsp + 0x40]
mov ecx, 0xe4
mov eax, 0xcccccccc
rep stosd dword [rdi], eax
mov rax, qword [0x1400a7e78]
xor rax, rbp
mov qword [rbp + 0x508], rax
lea rcx, [0x1400b419c]
call fcn.140021842
mov qword [rbp + 0x28], 0
mov qword [rbp + 0x48], 0
mov qword [rbp + 0xa8], 0
lea rax, [rbp + 0xc8]
lea rcx, str.InjectedDLL.dll
mov rdi, rax
mov rsi, rcx
mov ecx, 0x20
rep movsb byte [rdi], byte [rsi]
mov dword [rbp + 0x354], 0
lea rcx, str.notepad.exe
call fcn.1400204fb
mov dword [rbp + 4], eax
cmp dword [rbp + 4], 0
jne 0x14004e3ba
xor eax, eax
jmp 0x14004e64c
mov edx, dword [rbp + 4]
lea rcx, str._t___Getting_proc_id:__u_n
call fcn.1400200d7
call fcn.140020a00
mov dword [rbp + 0x374], eax
mov edx, dword [rbp + 0x374]
lea rcx, str._t___Setting_Debug_Privileges___d__n
call fcn.1400200d7
cmp dword [rbp + 0x374], 0
jne 0x14004e3f6
xor eax, eax
jmp 0x14004e64c
mov r8d, dword [rbp + 4]
xor edx, edx
mov ecx, 0x1fffff
call qword [sym.imp.KERNEL32.dll_OpenProcess]
mov qword [rbp + 0x28], rax
cmp qword [rbp + 0x28], 0
jne 0x14004e428
lea rcx, str.OpenProcess
call fcn.140020d5c
jmp 0x14004e611
lea rcx, [0x14006b608]
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov qword [rbp + 0x68], rax
cmp qword [rbp + 0x68], 0
jne 0x14004e456
lea rcx, str.GetModuleHandle
call fcn.140020d5c
jmp 0x14004e611
lea rcx, str._t___Looking_for_LoadLibrary_in_kernel32_n
call fcn.1400200d7
lea rdx, str.LoadLibraryW
mov rcx, qword [rbp + 0x68]
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [rbp + 0x88], rax
cmp qword [rbp + 0x88], 0
jne 0x14004e49a
lea rcx, str.GetProcAddress
call fcn.140020d5c
jmp 0x14004e611
mov rdx, qword [rbp + 0x88]
lea rcx, str._t___Found_at_0x_p_n
call fcn.1400200d7
xor r9d, r9d
lea r8, [rbp + 0x110]
mov edx, 0x104
lea rcx, [rbp + 0xc8]
call qword [sym.imp.KERNEL32.dll_GetFullPathNameW]
lea rdx, [rbp + 0x110]
lea rcx, str._t___Full_DLL_Path:__s_n
call fcn.1400200d7
lea rcx, [rbp + 0x110]
call qword [sym.imp.ucrtbased.dll_wcslen]
shl rax, 1
mov qword [rbp + 0x338], rax
lea rcx, str._t___Allocating_space_for_the_path_of_the_DLL_n
call fcn.1400200d7
mov dword [rsp + 0x20], 4
mov r9d, 0x3000
mov r8, qword [rbp + 0x338]
xor edx, edx
mov rcx, qword [rbp + 0x28]
call qword [sym.imp.KERNEL32.dll_VirtualAllocEx]
mov qword [rbp + 0xa8], rax
cmp qword [rbp + 0xa8], 0
jne 0x14004e547
lea rcx, str.VirtualAllocEx
call fcn.140020d5c
jmp 0x14004e611
mov rdx, qword [rbp + 0xa8]
lea rcx, str._t___Writing_into_the_current_process_space_at_0x_p_n
call fcn.140020adc
mov qword [rsp + 0x20], 0
mov r9, qword [rbp + 0x338]
lea r8, [rbp + 0x110]
mov rdx, qword [rbp + 0xa8]
mov rcx, qword [rbp + 0x28]
call qword [sym.imp.KERNEL32.dll_WriteProcessMemory]
test eax, eax
jne 0x14004e596
lea rcx, str.WriteProcessMemory
call fcn.140020d5c
jmp 0x14004e611
mov qword [rsp + 0x30], 0
mov dword [rsp + 0x28], 0
mov rax, qword [rbp + 0xa8]
mov qword [rsp + 0x20], rax
mov r9, qword [rbp + 0x88]
xor r8d, r8d
xor edx, edx
mov rcx, qword [rbp + 0x28]
call qword [sym.imp.KERNEL32.dll_CreateRemoteThread]
mov qword [rbp + 0x48], rax
cmp qword [rbp + 0x48], 0
jne 0x14004e5e2
lea rcx, str.CreateRemoteThread
call fcn.140020d5c
jmp 0x14004e611
lea rcx, str.Remote_thread_has_been_created_successfully_..._n
call fcn.1400200d7
mov edx, 0xffffffff
mov rcx, qword [rbp + 0x48]
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov rcx, qword [rbp + 0x48]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [rbp + 0x354], 1
cmp qword [rbp + 0xa8], 0
je 0x14004e635
mov r9d, 0x8000
xor r8d, r8d
mov rdx, qword [rbp + 0xa8]
mov rcx, qword [rbp + 0x28]
call qword [sym.imp.KERNEL32.dll_VirtualFreeEx]
cmp qword [rbp + 0x28], 0
je 0x14004e646
mov rcx, qword [rbp + 0x28]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [rbp + 0x354]
mov rdi, rax
lea rcx, [rbp - 0x40]
lea rdx, reloc.OLEAUT32.dll_SysReAllocString
call fcn.1400213b0
mov rax, rdi
mov rcx, qword [rbp + 0x508]
xor rcx, rbp
call fcn.140020b4a
lea rsp, [rbp + 0x510]
pop rdi
pop rsi
pop rbp
ret