Function at 0x140002220
Capabilities:
Allocate or change rwx memory
Create thread
Inject thread
Spawn thread to rwx shellcode

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rbp
push rdi
push r12
push r14
push r15
lea rbp, [rsp - 0xc0]
sub rsp, 0x1c0
mov rbx, rdx
mov dword [rbp + 0xa0], r8d
lea r14, [method.std::basic_streambuf_char__struct_std::char_traits_char__.virtual_8]
movsxd r8, r8d
lea r12, [0x140001f80]
mov dword [rsp + 0x20], 4
xor edx, edx
mov r9d, 0x1000
sub r14, r12
mov rsi, rcx
call qword [sym.imp.KERNEL32.dll_VirtualAllocEx]
mov qword [rbp + 0x98], rax
test rax, rax
je 0x1400026bc
movsxd r9, dword [rbp + 0xa0]
xor r15d, r15d
mov r8, rbx
mov qword [rsp + 0x20], r15
mov rdx, rax
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_WriteProcessMemory]
test eax, eax
jne 0x1400022b6
lea rdx, str.Couldnt_write_memory_
jmp 0x1400026c3
lea rcx, str.kernel32.dll
call qword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov rcx, rax
lea rdx, str.GetModuleHandleA
mov rbx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
lea rdx, [0x1400425e8]
mov rcx, rbx
mov qword [rsp + 0x40], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
lea rdx, str.Sleep
mov rcx, rbx
mov qword [rsp + 0x48], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
movups xmm0, xmmword [str.Py_AddPendingCall]
mov qword [rsp + 0x50], rax
movzx eax, word [0x140042610]
movsd xmm1, qword [0x140042628]
mov word [rsp + 0x70], ax
mov eax, dword [0x140042630]
mov dword [rbp - 0x68], eax
movzx eax, word [0x140042634]
mov word [rbp - 0x64], ax
movzx eax, byte [0x140042636]
mov byte [rbp - 0x62], al
movzx eax, word [0x140042658]
mov word [rbp - 0x30], ax
movzx eax, byte [0x14004265a]
mov byte [rbp - 0x2e], al
mov eax, dword [0x140042670]
mov dword [rbp - 0x10], eax
movzx eax, byte [0x140042674]
movaps xmmword [rsp + 0x60], xmm0
movups xmm0, xmmword [str.PyMarshal_ReadObjectFromString]
mov byte [rbp - 0xc], al
movzx eax, word [0x140042680]
movaps xmmword [rbp - 0x80], xmm0
movups xmm0, xmmword [str.PyEval_EvalCode]
mov word [rbp + 8], ax
mov eax, dword [0x140042690]
movups xmmword [rbp - 0x58], xmm0
mov dword [rbp + 0x20], eax
movzx eax, word [0x140042694]
movups xmm0, xmmword [str.PyDict_SetItemString]
mov word [rbp + 0x24], ax
movzx eax, byte [0x140042696]
movaps xmmword [rbp - 0x20], xmm0
movsd xmm0, qword [str.Py_DecRef]
movsd qword [rbp], xmm0
movsd xmm0, qword [str.PyErr_Occurred]
mov byte [rbp + 0x26], al
mov eax, dword [0x1400426a0]
movsd qword [rbp + 0x18], xmm0
movsd xmm0, qword [str.PyErr_Print]
mov dword [rbp + 0x38], eax
movzx eax, word [0x1400426b8]
movsd qword [rbp + 0x30], xmm0
movups xmm0, xmmword [str.PyImport_AddModule]
mov word [rbp + 0x58], ax
movzx eax, byte [0x1400426ba]
movups xmmword [rbp + 0x48], xmm0
mov byte [rbp + 0x5a], al
movzx eax, byte [0x1400426d0]
movups xmm0, xmmword [str.PyModule_GetDict]
mov byte [rbp + 0x78], al
movzx eax, byte [0x1400426e0]
movups xmmword [rbp + 0x68], xmm0
mov byte [rbp + 0x81], al
movsd xmm0, qword [str.python27]
movzx eax, byte [0x1400426f0]
movsd qword [rbp + 0x79], xmm0
movsd xmm0, qword [str.__main__]
movsd qword [rbp - 0x70], xmm1
movups xmm1, xmmword [str.PyEval_GetBuiltins]
mov byte [rbp + 0x8a], al
mov eax, dword [0x140042700]
movsd qword [rbp + 0x82], xmm0
movsd xmm0, qword [str.__builtins__]
mov dword [rbp + 0x93], eax
movaps xmmword [rbp - 0x40], xmm1
movsd qword [rbp + 0x8b], xmm0
movzx eax, byte [0x140042704]
mov r9d, 0x1000
mov r8, r14
mov byte [rbp + 0x97], al
xor edx, edx
mov dword [rsp + 0x20], 0x40
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_VirtualAllocEx]
mov rdi, rax
test rax, rax
je 0x1400026bc
xor edx, edx
mov dword [rsp + 0x20], 0x40
mov r9d, 0x1000
mov r8d, 0x178
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_VirtualAllocEx]
mov rbx, rax
test rax, rax
jne 0x1400024f8
lea r9d, [rax + 0x10]
xor ecx, ecx
lea r8, str.Error
lea rdx, str.Couldnt_allocate_memory_
call qword [sym.imp.USER32.dll_MessageBoxA]
jmp 0x14000268b
lea rax, [0x140002130]
mov qword [rsp + 0x20], r15
sub rax, r12
mov r9, r14
add rax, rdi
mov r8, r12
mov rdx, rdi
mov qword [rbp + 0xa8], rax
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_WriteProcessMemory]
test eax, eax
jne 0x140002546
lea r9d, [rax + 0x10]
xor ecx, ecx
lea r8, str.Error
lea rdx, str.Couldnt_write_memory_
call qword [sym.imp.USER32.dll_MessageBoxA]
jmp 0x14000268b
mov r9d, 0x178
mov qword [rsp + 0x20], r15
lea r8, [rsp + 0x40]
mov rdx, rbx
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_WriteProcessMemory]
test eax, eax
jne 0x140002585
lea r9d, [rax + 0x10]
xor ecx, ecx
lea r8, str.Error
lea rdx, str.Couldnt_write_memory_
call qword [sym.imp.USER32.dll_MessageBoxA]
jmp 0x14000268b
mov qword [rsp + 0x30], r15
mov r9, rdi
mov dword [rsp + 0x28], r15d
xor r8d, r8d
xor edx, edx
mov qword [rsp + 0x20], rbx
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_CreateRemoteThread]
mov rsi, rax
test rax, rax
jne 0x1400025cc
lea r9d, [rax + 0x10]
xor ecx, ecx
lea r8, str.Error
lea rdx, str.Couldnt_create_remote_thread_
call qword [sym.imp.USER32.dll_MessageBoxA]
jmp 0x14000268b
mov edx, 0xffffffff
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
lea rdx, [rbp + 0x100]
mov dword [rbp + 0x100], 2
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_GetExitCodeThread]
mov eax, dword [rbp + 0x100]
sub eax, 1
je 0x140002666
sub eax, 1
je 0x14000265d
sub eax, 1
je 0x140002654
cmp eax, 1
je 0x14000264b
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov r9d, 0x8000
xor r8d, r8d
mov rdx, rdi
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_VirtualFreeEx]
mov r9d, 0x8000
xor r8d, r8d
mov rdx, rbx
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_VirtualFreeEx]
mov eax, 1
jmp 0x1400026da
lea rdx, str.Error_evaluating_code.
jmp 0x14000266d
lea rdx, str.Py_AddPendingCall_failed.
jmp 0x14000266d
lea rdx, str.missing_export_s_.
jmp 0x14000266d
lea rdx, str.python27.dll_was_null__you_tried_to_inject_too_early.
mov r9d, 0x10
lea r8, str.Error
xor ecx, ecx
call qword [sym.imp.USER32.dll_MessageBoxA]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov r9d, 0x8000
xor r8d, r8d
mov rdx, rdi
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_VirtualFreeEx]
test rbx, rbx
je 0x1400026d8
mov r9d, 0x8000
xor r8d, r8d
mov rdx, rbx
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_VirtualFreeEx]
jmp 0x1400026d8
lea rdx, str.Couldnt_allocate_memory_
mov r9d, 0x10
lea r8, str.Error
xor ecx, ecx
call qword [sym.imp.USER32.dll_MessageBoxA]
xor eax, eax
lea r11, [rsp + 0x1c0]
mov rbx, qword [r11 + 0x30]
mov rsi, qword [r11 + 0x38]
mov rsp, r11
pop r15
pop r14
pop r12
pop rdi
pop rbp
ret