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

Disassembly:
push r15
push r14
push r13
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x348
movaps xmmword [rsp + 0x320], xmm6
movaps xmmword [rsp + 0x330], xmm7
lea rbx, str.TEMPonefile_PID_TIME
mov r8d, 0x1000
lea rcx, [0x140054120]
mov rdx, rbx
call fcn.14001b220
test al, al
je 0x14001cc82
mov edx, 1
lea rcx, [0x1400034b0]
call qword [sym.imp.KERNEL32.dll_SetConsoleCtrlHandler]
test eax, eax
je 0x14001cd25
mov r8d, 0xa
xor ecx, ecx
mov edx, 0x1b
call qword [sym.imp.KERNEL32.dll_FindResourceA]
xor ecx, ecx
mov rdx, rax
mov rbx, rax
call qword [sym.imp.KERNEL32.dll_LoadResource]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_LockResource]
xor ecx, ecx
mov rdx, rbx
mov qword [0x140056168], rax
call qword [sym.imp.KERNEL32.dll_SizeofResource]
mov esi, eax
mov rax, qword [0x140056168]
mov qword [0x140056160], rsi
cmp byte [rax + 1], 0x41
lea rdi, [rax + 3]
movzx ecx, byte [rax + 2]
setne dl
cmp byte [rax], 0x4b
mov qword [0x140056168], rdi
setne al
or dl, al
jne 0x14001cd19
cmp cl, 0x59
jne 0x14001cd19
mov qword [0x140056140], 0
mov ecx, 0x20000
call sub.msvcrt.dll_malloc
mov qword [0x140056120], rax
test rax, rax
je 0x14001cc95
mov ecx, 0x274b8
call sub.msvcrt.dll_malloc
mov r8, rax
test rax, rax
je 0x14001cc8a
mov qword [rax + 0x73b0], 0
pxor xmm0, xmm0
mov qword [rax + 0x73c8], 0
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
movups xmmword [rax + 0x73a0], xmm0
movups xmmword [rax + 0x73d8], xmm0
xor eax, eax
cpuid
xor ecx, ecx
cmp eax, 6
ja 0x14001c504
lea rax, [rsp + 0x220]
mov dword [r8 + 0x73d0], ecx
movdqa xmm6, xmmword [0x14002a1e0]
mov qword [r8 + 0x7410], 0x8000001
movd xmm7, dword [0x14002a1f0]
mov dword [r8 + 0x7458], 0
mov qword [r8 + 0x7388], 0
mov dword [r8 + 0x7390], 1
mov qword [0x140056158], r8
mov qword [0x140056140], rdi
mov qword [0x140056150], 0
mov qword [0x140056148], rsi
mov byte [0x140054100], 1
mov qword [rsp + 0x58], rax
mov rsi, qword [0x140056128]
mov rdi, qword [0x140056130]
lea r15, [0x1400490c0]
lea rbp, [0x140056120]
nop word [rax + rax]
mov r12, qword [rsp + 0x58]
xor r14d, r14d
mov ebx, 2
lea r13, [0x140056140]
nop dword [rax]
mov r8, rsi
sub r8, rdi
jne 0x14001c24a
mov rcx, qword [0x140056150]
mov rdx, qword [0x140056148]
cmp rcx, rdx
setb al
or r14b, al
je 0x14001c2a0
mov rcx, qword [0x140056158]
mov r8, r13
mov rdx, rbp
movups xmmword [0x140056128], xmm6
call fcn.140017e30
mov rsi, qword [0x140056130]
cmp qword [0x140056128], rsi
sete r14b
cmp rax, 0xffffffffffffff88
ja 0x14001c2a9
xor edi, edi
mov r8, rsi
mov qword [0x140056128], rsi
mov qword [0x140056130], 0
sub r8, rdi
je 0x14001c1e0
cmp r8, rbx
mov rdx, qword [rbp]
mov rcx, r12
cmova r8, rbx
add rdx, rdi
mov qword [rsp + 0x50], r8
call sub.msvcrt.dll_memcpy
mov r8, qword [rsp + 0x50]
add rdi, r8
add r12, r8
mov qword [0x140056130], rdi
sub rbx, r8
jne 0x14001c1d8
movzx eax, word [rsp + 0x220]
mov word [r15], ax
test ax, ax
je 0x14001c2b5
add r15, 2
jmp 0x14001c1c0
cmp rcx, rdx
je 0x14001c1d8
lea rcx, str.Error__couldnt_decode_attached_data.
call fcn.1400020e0
lea rax, [0x1400490c0]
movzx ecx, word [rax]
test cx, cx
je 0x14001c518
lea rax, [0x140054120]
lea rbx, [0x14004a0c0]
xor edi, edi
movzx r8d, word [rax]
mov word [0x14004a0c0], di
mov rdx, rbx
lea r9, [rax + 0x2000]
test r8w, r8w
jne 0x14001c301
jmp 0x14001c317
cmp rax, r9
je 0x140024b44
add rax, 2
mov word [rdx], r8w
add rdx, 2
movzx r8d, word [rax]
test r8w, r8w
jne 0x14001c2f8
xor esi, esi
mov word [rdx], si
cmp word [0x14004a0c0], 0
je 0x14001c4f8
mov edx, 0x1000
lea rax, [0x14004a0c0]
nop word cs:[rax + rax]
add rax, 2
sub rdx, 1
cmp word [rax], 0
jne 0x14001c340
test rdx, rdx
je 0x14001cd46
movd dword [rax], xmm7
mov edx, 0x1000
cmp word [0x14004a0c0], 0
lea rax, [0x14004a0c0]
je 0x14001c38f
nop dword [rax]
add rax, 2
sub rdx, 1
cmp word [rax], 0
jne 0x14001c378
test rdx, rdx
je 0x14001cd41
lea r8, [0x1400490c0]
jmp 0x14001c3a9
test rdx, rdx
je 0x14001cd32
add r8, 2
mov word [rax], cx
add rax, 2
sub rdx, 1
movzx ecx, word [r8]
test cx, cx
jne 0x14001c3a0
xor r11d, r11d
cmp word [0x1400498c0], 0
mov word [rax], r11w
je 0x14001c4a5
mov rcx, qword [rsp + 0x58]
mov edx, 8
call fcn.1400189d0
mov rsi, qword [rsp + 0x220]
call fcn.14001bad0
xor r9d, r9d
mov edx, 0x40000000
mov rcx, rbx
mov qword [rsp + 0x30], 0
mov r8d, 2
mov dword [rsp + 0x28], 0
mov dword [rsp + 0x20], 2
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov rbp, rax
cmp rax, 0xffffffffffffffff
je 0x14001ccee
mov r12, qword [sym.imp.KERNEL32.dll_WriteFile]
mov r13, qword [rsp + 0x58]
lea rdi, [0x1400410c0]
test rsi, rsi
je 0x14001c497
nop word [rax + rax]
mov ebx, 0x8000
mov rcx, rdi
cmp rsi, rbx
cmovbe rbx, rsi
mov rdx, rbx
call fcn.1400189d0
mov r9, r13
mov r8d, ebx
mov rdx, rdi
mov dword [rsp + 0x220], 0
mov rcx, rbp
mov qword [rsp + 0x20], 0
call r12
test eax, eax
je 0x14001ccd0
sub rsi, rbx
jne 0x14001c450
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x14001c19e
movzx ecx, word [0x14004a0c0]
lea rax, [0x14004a0c0]
lea rdx, [0x1400498c0]
lea r8, [rax + 0x2000]
test cx, cx
jne 0x14001c4d9
jmp 0x14001c4ec
cmp rax, r8
je 0x140024b44
add rax, 2
mov word [rdx], cx
add rdx, 2
movzx ecx, word [rax]
test cx, cx
jne 0x14001c4d0
xor r10d, r10d
mov word [rdx], r10w
jmp 0x14001c3d6
lea rax, [0x14004a0c0]
jmp 0x14001c357
mov eax, 7
cpuid
shr ebx, 8
and ebx, 1
mov ecx, ebx
jmp 0x14001c127
mov rcx, qword [0x140056158]
lea rbp, [rsp + 0x1a0]
call fcn.140012730
mov rcx, qword [0x140056120]
call sub.msvcrt.dll_free
call qword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
lea r8, [0x140026e4e]
mov edx, pe_nt_image_headers64
mov rcx, rbp
mov r9d, eax
call fcn.140002060
movzx eax, byte [rsp + 0x1a0]
xor r9d, r9d
mov word [rsp + 0x220], r9w
test al, al
je 0x14001c613
mov rsi, qword [rsp + 0x58]
mov edi, pe_nt_image_headers64
lea r15, [rsp + 0x7a]
lea r14, [rsp + 0x84]
mov r13d, 1
mov r8d, 2
mov rdx, r15
mov rcx, r14
mov byte [rsp + 0x7a], al
mov byte [rsp + 0x7b], 0
call sub.msvcrt.dll_mbstowcs
cmp rax, 1
jne 0x140024b44
cmp word [rsi], 0
movzx ecx, word [rsp + 0x84]
mov rdx, rdi
mov rax, rsi
je 0x14001c5de
nop word cs:[rax + rax]
add rax, 2
sub rdx, 1
cmp word [rax], 0
jne 0x14001c5d0
test rdx, rdx
je 0x140024b44
mov word [rax], cx
xor ecx, ecx
lea rdx, [rdi - 1]
add rsi, 2
mov word [rax + 2], cx
mov rax, r13
sub rax, rdi
mov rdi, qword [rsp + 0x58]
movzx eax, byte [rdi + rax]
test al, al
je 0x14001c613
mov rdi, rdx
jmp 0x14001c58e
xor r8d, r8d
lea rsi, [rsp + 0xe0]
lea r15, [rsp + 0x88]
mov eax, 0x4e
mov word [rsp + 0xe0], r8w
lea r13, str.NUITKA_ONEFILE_PARENT
mov rdi, rsi
mov rcx, r15
lea r12, [r13 + 0x28]
mov r15, rbp
lea r14, [rsp + 0x7c]
mov rbp, rsi
mov rsi, rbx
mov rbx, r12
mov r8d, 2
mov rdx, r14
mov byte [rsp + 0x7c], al
sub rbx, r13
mov byte [rsp + 0x7d], 0
mov qword [rsp + 0x50], rcx
call sub.msvcrt.dll_mbstowcs
cmp rax, 1
jne 0x140024b44
cmp word [rdi], 0
movzx edx, word [rsp + 0x88]
mov rax, rdi
mov rcx, qword [rsp + 0x50]
je 0x14001c6a6
nop dword [rax]
add rax, 2
sub rbx, 1
cmp word [rax], 0
jne 0x14001c698
test rbx, rbx
je 0x140024b44
mov word [rax], dx
add r13, 1
xor edx, edx
add rdi, 2
mov word [rax + 2], dx
movzx eax, byte [r13]
test al, al
jne 0x14001c653
mov rbx, rsi
mov rsi, rbp
mov rdx, qword [rsp + 0x58]
mov rbp, r15
mov rcx, rsi
mov rsi, qword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
xor edi, edi
lea r14, [rsp + 0x8c]
call rsi
xor ecx, ecx
lea r15, str.NUITKA_ONEFILE_BINARY
lea r13, [rsp + 0x7e]
call fcn.14001aeb0
lea r12, [r15 + 0x28]
mov qword [rsp + 0x50], rbp
lea rcx, [rsp + 0x90]
mov rdx, rax
mov qword [rsp + 0x60], rcx
mov eax, 0x4e
mov word [rsp + 0x90], di
mov rbp, rdx
mov rdi, rcx
mov rcx, r14
mov r14, rsi
mov rsi, rbx
mov rbx, r12
mov r8d, 2
mov rdx, r13
mov byte [rsp + 0x7e], al
sub rbx, r15
mov byte [rsp + 0x7f], 0
mov qword [rsp + 0x68], rcx
call sub.msvcrt.dll_mbstowcs
cmp rax, 1
jne 0x140024b44
cmp word [rdi], 0
movzx edx, word [rsp + 0x8c]
mov rax, rdi
mov rcx, qword [rsp + 0x68]
je 0x14001c78e
nop word [rax + rax]
add rax, 2
sub rbx, 1
cmp word [rax], 0
jne 0x14001c780
test rbx, rbx
je 0x140024b44
xor r11d, r11d
add r15, 1
mov word [rax], dx
add rdi, 2
mov word [rax + 2], r11w
movzx eax, byte [r15]
test al, al
jne 0x14001c735
mov rbx, rsi
mov rdx, rbp
lea rsi, [rsp + 0x130]
mov rcx, qword [rsp + 0x60]
mov rbp, qword [rsp + 0x50]
mov rdi, rsi
lea r13, [0x140050100]
call r14
xor eax, eax
mov ecx, 0xd
rep stosq qword [rdi], rax
mov rdi, qword [sym.imp.KERNEL32.dll_GetStdHandle]
mov ecx, 0xfffffff6
mov dword [rsp + 0x16c], 0x100
call rdi
mov ecx, 0xfffffff5
mov qword [rsp + 0x180], rax
call rdi
mov ecx, 0xfffffff4
mov qword [rsp + 0x188], rax
call rdi
mov dword [rsp + 0x130], 0x68
mov qword [rsp + 0x190], rax
call qword [sym.imp.KERNEL32.dll_GetCommandLineW]
lea rdx, [rsp + 0x80]
mov rcx, rax
call qword [sym.imp.SHELL32.dll_CommandLineToArgvW]
xor r10d, r10d
xor ecx, ecx
mov r8d, 0x1000
mov word [0x1400310c0], r10w
mov rdi, rax
mov rdx, r13
call qword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
test eax, eax
je 0x140024b44
mov r9d, dword [rsp + 0x80]
mov qword [rdi], r13
lea r13, [0x1400310c0]
mov r15d, dword [0x14002a1f0]
test r9d, r9d
jle 0x14001cad0
test ebx, ebx
jg 0x14001cc3e
mov r12, qword [rdi + rbx*8]
lea r14, str.__t_n_v_
mov eax, 0x20
jmp 0x14001c8ba
movzx eax, word [r14 + 2]
add r14, 2
test ax, ax
je 0x14001ca66
movzx edx, ax
mov rcx, r12
call sub.msvcrt.dll_wcschr
test rax, rax
je 0x14001c8a8
cmp word [r13], 0
mov edx, 0x8000
lea rax, [0x1400310c0]
je 0x14001c8f5
add rax, 2
sub rdx, 1
cmp word [rax], 0
jne 0x14001c8de
test rdx, rdx
je 0x140024b44
mov r11d, dword [0x14002a1f4]
mov rcx, qword [rdi + rbx*8]
mov dword [rax], r11d
movzx edx, word [rcx]
cmp dx, 0x5c
jne 0x14001c9e3
xor eax, eax
nop word [rax + rax]
mov r10, rcx
movzx edx, word [rcx + 2]
add rcx, 2
mov r9d, eax
add eax, 1
cmp dx, 0x5c
je 0x14001c918
test dx, dx
je 0x14001cbbd
cmp dx, 0x22
je 0x14001c9fa
xor r8d, r8d
test eax, eax
jle 0x14001c995
nop dword [rax]
cmp word [r13], 0
mov edx, 0x8000
lea rax, [0x1400310c0]
je 0x14001c97f
nop dword [rax]
add rax, 2
sub rdx, 1
cmp word [rax], 0
jne 0x14001c968
test rdx, rdx
je 0x140024b44
mov dword [rax], r15d
lea eax, [r8 + 1]
cmp r9d, r8d
je 0x14001c990
mov r8d, eax
jmp 0x14001c950
movzx edx, word [r10 + 2]
cmp word [r13], 0
je 0x14001ca5a
mov r8d, 0x8000
lea rax, [0x1400310c0]
nop
add rax, 2
sub r8, 1
cmp word [rax], 0
jne 0x14001c9b0
test r8, r8
je 0x14001cd3c
xor r8d, r8d
add rcx, 2
mov word [rax], dx
mov word [rax + 2], r8w
movzx edx, word [rcx]
cmp dx, 0x5c
je 0x14001c910
test dx, dx
je 0x14001cc0b
cmp dx, 0x22
jne 0x14001c995
mov r9d, 1
jmp 0x14001ca04
lea r9d, [rax + rax + 1]
test r9d, r9d
jle 0x14001c995
xor r8d, r8d
nop word [rax + rax]
cmp word [r13], 0
mov edx, 0x8000
lea rax, [0x1400310c0]
je 0x14001ca3f
nop dword [rax]
add rax, 2
sub rdx, 1
cmp word [rax], 0
jne 0x14001ca28
test rdx, rdx
je 0x140024b44
add r8d, 1
mov dword [rax], r15d
cmp r8d, r9d
jne 0x14001ca10
cmp word [r13], 0
movzx edx, word [rcx]
jne 0x14001c9a1
lea rax, [0x1400310c0]
jmp 0x14001c9c7
mov r8, qword [rdi + rbx*8]
cmp word [r13], 0
mov edx, 0x8000
lea rax, [0x1400310c0]
movzx ecx, word [r8]
je 0x14001cc74
add rax, 2
sub rdx, 1
cmp word [rax], 0
jne 0x14001ca86
test cx, cx
je 0x14001caba
test rdx, rdx
je 0x140024b44
add r8, 2
mov word [rax], cx
add rax, 2
sub rdx, 1
movzx ecx, word [r8]
test cx, cx
jne 0x14001ca99
xor edx, edx
mov word [rax], dx
add rbx, 1
cmp dword [rsp + 0x80], ebx
jg 0x14001c88b
mov rax, qword [rsp + 0x58]
xor r9d, r9d
xor r8d, r8d
mov qword [rsp + 0x40], rsi
mov qword [rsp + 0x38], 0
mov rdx, r13
lea rcx, [0x1400498c0]
mov qword [rsp + 0x48], rax
mov qword [rsp + 0x30], 0
mov dword [rsp + 0x28], 0x20
mov dword [rsp + 0x20], 1
call qword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
je 0x14001ccaa
mov rcx, qword [rsp + 0x228]
mov rbx, qword [sym.imp.KERNEL32.dll_CloseHandle]
call rbx
mov rcx, qword [rsp + 0x220]
mov dword [rsp + 0x1a0], 0
mov qword [0x1400310a8], rcx
test rcx, rcx
je 0x14001cb8d
mov edx, 0xffffffff
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov rcx, qword [0x1400310a8]
mov rdx, rbp
call qword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
test eax, eax
jne 0x14001cb79
mov dword [rsp + 0x1a0], 1
mov rcx, qword [0x1400310a8]
call rbx
mov qword [0x1400310a8], 0
call fcn.140003350
mov eax, dword [rsp + 0x1a0]
movaps xmm6, xmmword [rsp + 0x320]
movaps xmm7, xmmword [rsp + 0x330]
add rsp, 0x348
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
pop r15
ret
add eax, eax
test eax, eax
jle 0x14001cc0b
mov r9d, dword [0x14002a1f0]
xor r8d, r8d
cmp word [r13], 0
mov ecx, 0x8000
lea rdx, [0x1400310c0]
je 0x14001cbff
nop dword [rax]
add rdx, 2
sub rcx, 1
cmp word [rdx], 0
jne 0x14001cbe8
test rcx, rcx
je 0x140024b44
add r8d, 1
mov dword [rdx], r9d
cmp r8d, eax
jne 0x14001cbcd
cmp word [r13], 0
mov edx, 0x8000
lea rax, [0x1400310c0]
je 0x14001cc36
add rax, 2
sub rdx, 1
cmp word [rax], 0
jne 0x14001cc1f
test rdx, rdx
je 0x140024b44
mov dword [rax], r11d
jmp 0x14001cabf
cmp word [r13], 0
je 0x14001cca1
mov edx, 0x8000
lea rax, [0x1400310c0]
add rax, 2
sub rdx, 1
cmp word [rax], 0
jne 0x14001cc52
test rdx, rdx
je 0x14001cd37
mov dword [rax], 0x20
jmp 0x14001c893
test cx, cx
jne 0x14001caa2
jmp 0x14001caba
mov rcx, rbx
call fcn.1400020b0
mov qword [0x140056158], 0
lea rcx, str.Error__couldnt_allocate_memory.
call fcn.1400020e0
lea rax, [0x1400310c0]
jmp 0x14001cc69
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.Error__couldnt_launch_child
mov edx, eax
call fcn.14001bf00
mov ecx, 2
call sub.msvcrt.dll_exit
nop dword [rax + rax]
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.Error__couldnt_unpack_file_to_target_path.
mov edx, eax
call fcn.14001bf00
mov ecx, 2
call sub.msvcrt.dll_exit
mov ecx, 2
call qword [fcn.140024110]
lea r8, [0x14004a0c0]
lea rdx, str.Error__failed_to_open__ls_for_writing._n
mov rcx, rax
call fcn.140002080
mov ecx, 2
call sub.msvcrt.dll_exit
lea rcx, str.Error__couldnt_find_attached_data_header.
call fcn.1400020e0
lea rcx, str.Error__failed_to_register_signal_handler.
call fcn.1400020e0
nop
jmp 0x140024b44
jmp 0x140024b44
jmp 0x140024b44
jmp 0x140024b44
jmp 0x140024b44