Function at 0x140004280
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call
Terminate thread

Disassembly:
push rbp
push rbx
push rdi
push r12
push r13
push r14
lea rbp, [rsp - 0x1f]
sub rsp, 0xc8
mov rax, qword [0x140009040]
xor rax, rsp
mov qword [rbp - 9], rax
mov rax, qword [rbp + 0x7f]
mov r14, rcx
lea rcx, str.ntdll.dll
mov qword [rbp - 0x49], rax
mov rdi, r9
mov r13, r8
mov r12, rdx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov rbx, rax
test rax, rax
jne 0x1400042df
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rdi], eax
mov eax, 0x1010000b
jmp 0x14000450f
lea rdx, str.NtWriteVirtualMemory
mov qword [rsp + 0xb8], r15
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov r15, rax
test rax, rax
je 0x140004317
lea rdx, str.NtCreateThreadEx
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rbx, rax
test rax, rax
jne 0x140004329
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rdi], eax
mov eax, 0x10100001
jmp 0x140004507
xor edx, edx
mov qword [rsp + 0xc0], rsi
mov r9d, 0x3000
mov qword [rbp - 0x41], 0
mov r8d, 0x100
mov dword [rsp + 0x20], 0x40
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_VirtualAllocEx]
mov rsi, rax
test rax, rax
jne 0x140004372
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rdi], eax
mov eax, 0x10100002
jmp 0x1400044ff
mov qword [rbp - 0x31], r12
lea r8, [rbp - 0x39]
xor r12d, r12d
mov dword [rbp - 0x29], 0x48c18b48
mov rdx, rsi
mov dword [rbp - 0x25], 0x8348088b
mov rcx, r14
mov dword [rbp - 0x21], 0x50ff28ec
mov dword [rbp - 0x1d], 0xc4834808
lea r9d, [r12 + 0x2f]
mov dword [rbp - 0x19], 0xd8d4828
mov dword [rbp - 0x15], 0xffffffd8
mov dword [rbp - 0x11], 0x48018948
mov word [rbp - 0xd], 0xc031
mov byte [rbp - 0xb], 0xc3
mov qword [rbp - 0x39], r13
mov qword [rsp + 0x20], r12
call r15
test eax, eax
jns 0x1400043fa
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov r9d, 0x8000
xor r8d, r8d
mov rdx, rsi
mov dword [rdi], eax
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_VirtualFreeEx]
mov eax, 0x10100003
jmp 0x1400044ff
mov qword [rsp + 0x50], r12
lea rax, [rsi + 0x10]
mov qword [rsp + 0x48], r12
lea rcx, [rbp - 0x41]
mov qword [rsp + 0x40], r12
mov r9, r14
mov qword [rsp + 0x38], r12
xor r8d, r8d
mov dword [rsp + 0x30], r12d
mov edx, 0x1fffff
mov qword [rsp + 0x28], rsi
mov qword [rsp + 0x20], rax
call rbx
test eax, eax
js 0x1400044e3
mov rcx, qword [rbp - 0x41]
test rcx, rcx
je 0x1400044e3
mov edx, 0x4e20
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
je 0x140004490
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov rcx, qword [rbp - 0x41]
xor edx, edx
mov dword [rdi], eax
call qword [sym.imp.KERNEL32.dll_TerminateThread]
mov rcx, qword [rbp - 0x41]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov r9d, 0x8000
xor r8d, r8d
mov rdx, rsi
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_VirtualFreeEx]
mov eax, 0x10100009
jmp 0x1400044ff
mov rcx, qword [rbp - 0x41]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov r8, qword [rbp - 0x49]
mov r9d, 8
mov rdx, rsi
mov qword [rsp + 0x20], r12
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_ReadProcessMemory]
mov r9d, 0x8000
xor r8d, r8d
mov rdx, rsi
mov rcx, r14
mov ebx, eax
call qword [sym.imp.KERNEL32.dll_VirtualFreeEx]
test ebx, ebx
jne 0x1400044df
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rdi], eax
mov eax, 0x10100008
jmp 0x1400044ff
xor eax, eax
jmp 0x1400044ff
mov r9d, 0x8000
mov dword [rdi], eax
xor r8d, r8d
mov rdx, rsi
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_VirtualFreeEx]
mov eax, 0x10100004
mov rsi, qword [rsp + 0xc0]
mov r15, qword [rsp + 0xb8]
mov rcx, qword [rbp - 9]
xor rcx, rsp
call fcn.140004540
add rsp, 0xc8
pop r14
pop r13
pop r12
pop rdi
pop rbx
pop rbp
ret