Function at 0x14000fb80
Capabilities:
Accept command line arguments
Extract resource via kernel32 functions
Set environment variable
Write and execute a file
Write file on windows

Disassembly:
lea rcx, [0x140001560]
jmp fcn.140001530
push r15
push r14
push r13
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x298
movaps xmmword [rsp + 0x280], xmm6
lea r12, str.TEMPonefile_PID_TIME
mov r8d, 0x1000
lea rcx, [0x14002e0a0]
mov rdx, r12
call fcn.1400088c0
test al, al
je 0x140010527
lea rcx, [0x1400092f0]
mov edx, 1
call qword [sym.imp.KERNEL32.dll_SetConsoleCtrlHandler]
test eax, eax
je 0x1400105c7
mov r8d, 0xa
xor ecx, ecx
mov edx, 0x1b
call qword [sym.imp.KERNEL32.dll_FindResourceA]
xor ecx, ecx
mov rdx, rax
mov r12, rax
call qword [sym.imp.KERNEL32.dll_LoadResource]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_LockResource]
xor ecx, ecx
mov rdx, r12
mov qword [0x14002e090], rax
call qword [sym.imp.KERNEL32.dll_SizeofResource]
mov esi, eax
mov rax, qword [0x14002e090]
mov qword [0x14002e088], rsi
cmp byte [rax + 1], 0x41
lea rdi, [rax + 3]
movzx ecx, byte [rax + 2]
mov qword [0x14002e090], rdi
setne dl
cmp byte [rax], 0x4b
setne al
or dl, al
jne 0x1400105bb
cmp cl, 0x59
jne 0x1400105bb
mov qword [0x1400320b0], 0
mov ecx, 0x20000
call sub.msvcrt.dll_malloc
test rax, rax
mov qword [0x1400320d0], rax
je 0x14001053a
mov ecx, 0x274b8
call sub.msvcrt.dll_malloc
test rax, rax
mov r8, rax
je 0x14001052f
mov qword [rax + 0x73b0], 0
pxor xmm0, xmm0
mov qword [rax + 0x73c8], 0
movups xmmword [rax + 0x73a0], xmm0
movups xmmword [rax + 0x73d8], xmm0
mov qword [rax + 0x72d8], 0
mov qword [rax + 0x73ec], 0
mov qword [rax + 0x73f8], 0
mov qword [rax + 0x7400], 0
mov qword [rax + 0x7420], 0
mov dword [rax + 0x73f4], 0
mov qword [rax + 0x7440], 0
mov dword [rax + 0x7448], 0
mov dword [rax + 0x7454], 0
mov qword [rax + 0x274b0], 0
xor eax, eax
cpuid
xor ecx, ecx
cmp eax, 6
ja 0x1400100e0
movdqa xmm6, xmmword [0x14001e250]
mov dword [r8 + 0x73d0], ecx
lea rbp, [rsp + 0x180]
mov qword [r8 + 0x7410], 0x8000001
mov dword [r8 + 0x7458], 0
mov qword [r8 + 0x7388], 0
mov dword [r8 + 0x7390], 1
mov qword [0x1400320a8], r8
mov qword [0x1400320b0], rdi
mov qword [0x1400320c0], 0
mov qword [0x1400320b8], rsi
mov byte [0x14002e080], 1
mov r14, qword [0x1400320e0]
lea r12, [0x14002d880]
nop word [rax + rax]
mov rbx, qword [0x1400320d8]
xor r15d, r15d
mov rdi, rbp
mov esi, 2
nop word [rax + rax]
mov r8, rbx
sub r8, r14
jne 0x14000fe35
mov rcx, qword [0x1400320c0]
mov rdx, qword [0x1400320b8]
cmp rcx, rdx
setb al
or r15b, al
je 0x14000fe88
mov rcx, qword [0x1400320a8]
movups xmmword [0x1400320d8], xmm6
call fcn.14000e680
mov rbx, qword [0x1400320e0]
cmp qword [0x1400320d8], rbx
sete r15b
cmp rax, 0xffffffffffffff88
ja 0x14000fe91
xor r14d, r14d
mov r8, rbx
mov qword [0x1400320d8], rbx
mov qword [0x1400320e0], 0
sub r8, r14
je 0x14000fdd0
mov rdx, qword [0x1400320d0]
cmp r8, rsi
mov rcx, rdi
cmova r8, rsi
mov r13, r8
add rdx, r14
add rdi, r13
add r14, r13
call sub.msvcrt.dll_memcpy
sub rsi, r13
mov qword [0x1400320e0], r14
jne 0x14000fdc8
movzx eax, word [rsp + 0x180]
test ax, ax
mov word [r12], ax
je 0x14000fe9d
add r12, 2
jmp 0x14000fdb0
cmp rcx, rdx
je 0x14000fdc8
lea rcx, str.Error__couldnt_decode_attached_data.
call fcn.140009170
lea rax, [0x14002d880]
movzx ecx, word [rax]
test cx, cx
je 0x1400100f4
lea rax, [0x14002e0a0]
xor esi, esi
movzx edx, word [rax]
lea rax, [0x140021040]
mov word [0x140021040], si
lea r8, [0x14002e0a0]
lea r9, [rax + 0x2000]
test dx, dx
jne 0x14000fee9
jmp 0x14000fefd
cmp rax, r9
je 0x14001b688
add r8, 2
mov word [rax], dx
add rax, 2
movzx edx, word [r8]
test dx, dx
jne 0x14000fee0
xor ebx, ebx
mov word [rax], bx
lea rax, [0x140021040]
cmp word [rax], 0
je 0x1400100d4
mov edx, 0x1000
nop dword [rax + rax]
add rax, 2
sub rdx, 1
cmp word [rax], 0
jne 0x14000ff20
test rdx, rdx
je 0x14001061c
mov dword [rax], 0x5c
lea rax, [0x140021040]
mov edx, 0x1000
cmp word [rax], 0
je 0x1400100c8
nop dword [rax + rax]
add rax, 2
sub rdx, 1
cmp word [rax], 0
jne 0x14000ff58
test rdx, rdx
je 0x140010617
lea r8, [0x14002d880]
jmp 0x14000ff89
test rdx, rdx
je 0x140010612
add r8, 2
mov word [rax], cx
add rax, 2
sub rdx, 1
movzx ecx, word [r8]
test cx, cx
jne 0x14000ff80
xor r11d, r11d
cmp word [0x14002d080], 0
mov word [rax], r11w
je 0x14001007c
mov edx, 8
mov rcx, rbp
call fcn.14000f920
mov r15, qword [rsp + 0x180]
call fcn.140011c00
xor r9d, r9d
mov edx, 0x40000000
mov qword [rsp + 0x30], 0
mov dword [rsp + 0x28], 0
mov r8d, 2
mov dword [rsp + 0x20], 2
lea rcx, [0x140021040]
call qword [sym.imp.KERNEL32.dll_CreateFileW]
cmp rax, 0xffffffffffffffff
mov r12, rax
je 0x140010590
test r15, r15
mov rdi, qword [sym.imp.KERNEL32.dll_WriteFile]
lea rsi, [0x140023040]
je 0x14001006e
nop dword [rax]
mov ebx, 0x8000
mov rcx, rsi
cmp r15, rbx
cmovbe rbx, r15
mov rdx, rbx
call fcn.14000f920
mov r9, rbp
mov r8d, ebx
mov rdx, rsi
mov dword [rsp + 0x180], 0
mov rcx, r12
mov qword [rsp + 0x20], 0
call rdi
test eax, eax
je 0x140010572
sub r15, rbx
jne 0x140010028
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x14000fd99
lea rax, [0x140021040]
movzx ecx, word [rax]
lea rdx, [0x14002d080]
lea r8, [rax + 0x2000]
test cx, cx
jne 0x1400100a9
jmp 0x1400100bc
cmp rax, r8
je 0x14001b688
add rax, 2
mov word [rdx], cx
add rdx, 2
movzx ecx, word [rax]
test cx, cx
jne 0x1400100a0
xor r10d, r10d
mov word [rdx], r10w
jmp 0x14000ffb6
lea rax, [0x140021040]
jmp 0x14000ff6f
lea rax, [0x140021040]
jmp 0x14000ff37
mov eax, 7
cpuid
shr ebx, 8
mov ecx, ebx
and ecx, 1
jmp 0x14000fd2f
mov r12, qword [0x1400320a8]
test r12, r12
je 0x1400101ad
cmp qword [r12 + 0x73c8], 0
jne 0x1400101ad
mov r13, qword [r12 + 0x73d8]
mov rbx, qword [r12 + 0x73a8]
mov r14, qword [r12 + 0x73b0]
test r13, r13
je 0x140010161
mov rdx, qword [r13]
mov rsi, qword [r13 + 0x6ac8]
mov r15, qword [r13 + 0x6ad0]
test rdx, rdx
je 0x14001055c
test rsi, rsi
je 0x140010605
mov rcx, r15
call rsi
mov rdx, r13
mov rcx, r15
call rsi
mov rdx, qword [r12 + 0x73f8]
pxor xmm0, xmm0
mov dword [r12 + 0x73f0], 0
movups xmmword [r12 + 0x73d8], xmm0
test rdx, rdx
je 0x140010546
test rbx, rbx
je 0x1400105f8
mov rcx, r14
call rbx
mov qword [r12 + 0x73f8], 0
mov rdx, r12
mov rcx, r14
call rbx
mov rcx, qword [0x1400320d0]
lea rsi, [rsp + 0x100]
lea r12, [rsp + 0xb0]
call sub.msvcrt.dll_free
call qword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
lea r8, [0x14001d2e8]
mov edx, pe_nt_image_headers64
mov rcx, rsi
mov r9d, eax
call fcn.1400017b0
xor r9d, r9d
movzx r15d, byte [rsp + 0x100]
mov word [rsp + 0x180], r9w
test r15b, r15b
je 0x140010290
mov r13d, pe_nt_image_headers64
mov rdi, rbp
mov rbx, rbp
lea r12, [rsp + 0xb0]
mov r14d, 1
mov rcx, rbx
add rdi, 2
call sub.msvcrt.dll_wcslen
mov rdx, r12
mov r8d, 2
mov byte [rsp + 0xb0], r15b
lea rcx, [rbx + rax*2]
mov byte [rsp + 0xb1], 0
call sub.msvcrt.dll_mbstowcs
mov rdx, r13
mov rax, r14
sub r13, 1
sub rax, rdx
movzx r15d, byte [rbp + rax]
test r15b, r15b
je 0x140010290
cmp word [rdi], 0
mov rax, r13
mov rbx, rdi
je 0x14001027e
add rbx, 2
sub rax, 1
cmp word [rbx], 0
jne 0x140010270
test rax, rax
jne 0x14001021e
jmp 0x14001b688
lea r15, [rsp + 0x60]
xor r8d, r8d
mov r13d, 0x28
mov word [rsp + 0x60], r8w
mov rbx, r15
mov r14d, 0x4e
mov rdi, r15
mov rcx, rbx
add rdi, 2
call sub.msvcrt.dll_wcslen
mov rdx, r12
mov r8d, 2
mov byte [rsp + 0xb0], r14b
lea rcx, [rbx + rax*2]
mov byte [rsp + 0xb1], 0
call sub.msvcrt.dll_mbstowcs
mov rdx, r13
sub r13, 1
mov eax, 1
lea r9, [0x14001d5c4]
sub rax, rdx
movzx r14d, byte [r9 + rax]
test r14b, r14b
je 0x140010330
cmp word [rdi], 0
mov rax, r13
mov rbx, rdi
je 0x14001031e
nop word [rax + rax]
add rbx, 2
sub rax, 1
cmp word [rbx], 0
jne 0x140010310
test rax, rax
jne 0x1400102b0
jmp 0x14001b688
lea r14, [0x14002b060]
mov rdx, rbp
mov rcx, r15
mov r13, qword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
call r13
mov rdx, r14
xor ecx, ecx
mov r8d, 0x1001
call qword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
cmp word [0x14002b060], 0
mov rax, r14
lea rdx, [r14 + 0x2002]
je 0x140010380
add rax, 2
cmp word [rax], 0
je 0x140010380
cmp rax, rdx
jne 0x14001036c
jmp 0x14001b688
xor edx, edx
xor ecx, ecx
mov rbx, r12
mov word [rax], dx
mov r15d, 0x28
mov edx, 0x4e
mov rdi, r12
mov word [rsp + 0xb0], cx
mov rcx, rbx
mov byte [rsp + 0x5f], dl
add rdi, 2
call sub.msvcrt.dll_wcslen
movzx edx, byte [rsp + 0x5f]
mov r8d, 2
mov byte [rsp + 0x181], 0
lea rcx, [rbx + rax*2]
mov byte [rsp + 0x180], dl
mov rdx, rbp
call sub.msvcrt.dll_mbstowcs
mov rdx, r15
sub r15, 1
mov eax, 1
lea r10, [0x14001d5da]
sub rax, rdx
movzx edx, byte [r10 + rax]
test dl, dl
je 0x140010420
cmp word [rdi], 0
mov rax, r15
mov rbx, rdi
je 0x140010416
nop dword [rax]
add rbx, 2
sub rax, 1
cmp word [rbx], 0
jne 0x140010408
test rax, rax
jne 0x1400103a0
jmp 0x14001b688
mov rdx, r14
mov rcx, r12
mov rdi, rbp
call r13
xor eax, eax
mov ecx, 0xd
rep stosq qword [rdi], rax
mov dword [rsp + 0x180], 0x68
call qword [sym.imp.KERNEL32.dll_GetCommandLineW]
xor r9d, r9d
xor r8d, r8d
mov qword [rsp + 0x48], rsi
mov qword [rsp + 0x40], rbp
mov rdx, rax
mov qword [rsp + 0x38], 0
lea rcx, [0x14002d080]
mov qword [rsp + 0x30], 0
mov dword [rsp + 0x28], 0x20
mov dword [rsp + 0x20], 0
call qword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
je 0x1400105d3
mov rcx, qword [rsp + 0x108]
mov rbx, qword [sym.imp.KERNEL32.dll_CloseHandle]
call rbx
mov rcx, qword [rsp + 0x100]
mov dword [rsp + 0xb0], 0
test rcx, rcx
mov qword [0x14002b040], rcx
je 0x1400104ff
mov edx, 0xffffffff
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov rcx, qword [0x14002b040]
mov rdx, r12
call qword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
test eax, eax
jne 0x1400104eb
mov dword [rsp + 0xb0], 1
mov rcx, qword [0x14002b040]
call rbx
mov qword [0x14002b040], 0
call fcn.140009190
mov eax, dword [rsp + 0xb0]
movaps xmm6, xmmword [rsp + 0x280]
add rsp, 0x298
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
pop r15
ret
mov rcx, r12
call fcn.1400090d0
mov qword [0x1400320a8], 0
lea rcx, str.Error__couldnt_allocate_memory.
call fcn.140009170
test rbx, rbx
jne 0x1400101a5
mov rcx, r12
call sub.msvcrt.dll_free
jmp 0x1400101ad
test rsi, rsi
jne 0x140010159
mov rcx, r13
call sub.msvcrt.dll_free
jmp 0x140010161
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.Error__couldnt_unpack_file_to_target_path.
mov edx, eax
call fcn.140009100
mov ecx, 2
call sub.msvcrt.dll_exit
mov ecx, 2
call qword [fcn.14001b360]
lea r8, [0x140021040]
lea rdx, str.Error__failed_to_open__ls_for_writing._n
mov rcx, rax
call fcn.140001780
mov ecx, 2
call sub.msvcrt.dll_exit
lea rcx, str.Error__couldnt_find_attached_data_header.
call fcn.140009170
lea rcx, str.Error__failed_to_register_signal_handler.
call fcn.140009170
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.Error__couldnt_launch_child
mov edx, eax
call fcn.140009100
mov ecx, 2
call sub.msvcrt.dll_exit
nop dword [rax]
mov rcx, rdx
call sub.msvcrt.dll_free
jmp 0x14001054f
mov rcx, rdx
call sub.msvcrt.dll_free
jmp 0x140010565
jmp 0x14001b688
jmp 0x14001b688
jmp 0x14001b688
mov rax, qword [0x14001ea40]
xor edx, edx
mov r9d, dword [rax]
mov rax, qword [0x14001ea30]
mov r8, qword [rax]
mov rax, qword [0x14001ea20]
mov rcx, qword [rax]
jmp 0x14000fb80
call sub.msvcrt.dll_abort
nop
nop
nop
call sub.msvcrt.dll_abort
nop
call sub.msvcrt.dll_abort
nop
nop
nop
nop
nop
jmp 0x140001550