Function at 0x14000e590
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 rbp
push rdi
push rsi
push rbx
sub rsp, 0x28
lea rbp, [rsp + 0x20]
lea rsi, str.libgcc_s_dw2_1.dll
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov rbx, rax
test rax, rax
je 0x140001670
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov rdi, qword [sym.imp.KERNEL32.dll_GetProcAddress]
lea rdx, str.__register_frame_info
mov rcx, rbx
mov qword [0x140023040], rax
call rdi
lea rdx, str.__deregister_frame_info
mov rcx, rbx
mov rsi, rax
call rdi
mov qword [section..data], rax
test rsi, rsi
je 0x140001653
lea rdx, [0x140023060]
lea rcx, [section..eh_fram]
call rsi
lea rcx, [0x140001690]
add rsp, 0x28
pop rbx
pop rsi
pop rdi
pop rbp
jmp fcn.140001586
lea rax, [0x1400015d0]
lea rsi, [0x1400015c0]
mov qword [section..data], rax
jmp 0x140001643
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, [0x140042100]
mov rdx, rbx
call fcn.140007540
test al, al
je 0x14000f117
mov edx, 1
lea rcx, [0x140007e00]
call qword [sym.imp.KERNEL32.dll_SetConsoleCtrlHandler]
test eax, eax
je 0x14000f1c5
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 [0x1400420f0], rax
call qword [sym.imp.KERNEL32.dll_SizeofResource]
mov esi, eax
mov rax, qword [0x1400420f0]
mov qword [0x1400420e8], rsi
cmp byte [rax], 0x4b
lea rdi, [rax + 3]
movzx ecx, byte [rax + 2]
setne dl
cmp byte [rax + 1], 0x41
mov qword [0x1400420f0], rdi
setne al
or dl, al
jne 0x14000f1b9
cmp cl, 0x59
jne 0x14000f1b9
mov qword [0x140046110], 0
mov ecx, 0x20000
call sub.msvcrt.dll_malloc
mov qword [0x140046130], rax
test rax, rax
je 0x14000f12a
mov ecx, 0x274b8
call sub.msvcrt.dll_malloc
mov r8, rax
test rax, rax
je 0x14000f11f
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 0x14000eb05
mov dword [r8 + 0x73d0], ecx
movdqa xmm6, xmmword [0x14001e250]
lea rbx, [rsp + 0x220]
mov qword [r8 + 0x7410], 0x8000001
movd xmm7, dword [0x14001e260]
mov dword [r8 + 0x7458], 0
mov qword [r8 + 0x7388], 0
mov dword [r8 + 0x7390], 1
mov qword [0x140046108], r8
mov qword [0x140046110], rdi
mov qword [0x140046120], 0
mov qword [0x140046118], rsi
mov byte [0x1400420e0], 1
mov rsi, qword [0x140046138]
mov rdi, qword [0x140046140]
lea r13, [0x1400418e0]
nop
xor r14d, r14d
mov r12, rbx
mov ebp, 2
nop dword [rax + rax]
mov r8, rsi
sub r8, rdi
jne 0x14000e84c
mov rcx, qword [0x140046120]
mov rdx, qword [0x140046118]
cmp rcx, rdx
setb al
or r14b, al
je 0x14000e8a0
mov rcx, qword [0x140046108]
movups xmmword [0x140046138], xmm6
call fcn.14000d0b0
mov rsi, qword [0x140046140]
cmp qword [0x140046138], rsi
sete r14b
cmp rax, 0xffffffffffffff88
ja 0x14000e8a9
xor edi, edi
mov r8, rsi
mov qword [0x140046138], rsi
mov qword [0x140046140], 0
sub r8, rdi
je 0x14000e7e8
cmp r8, rbp
mov r15, r8
mov rdx, qword [0x140046130]
mov rcx, r12
cmova r15, rbp
add rdx, rdi
mov r8, r15
add rdi, r15
add r12, r15
call sub.msvcrt.dll_memcpy
mov qword [0x140046140], rdi
sub rbp, r15
jne 0x14000e7e0
movzx eax, word [rsp + 0x220]
mov word [r13], ax
test ax, ax
je 0x14000e8b5
add r13, 2
jmp 0x14000e7d0
cmp rcx, rdx
je 0x14000e7e0
lea rcx, str.Error__couldnt_decode_attached_data.
call fcn.140007c80
lea rax, [0x1400418e0]
movzx ecx, word [rax]
test cx, cx
je 0x14000eb19
lea rax, [0x140042100]
lea rsi, [0x1400230a0]
xor ebp, ebp
movzx r8d, word [rax]
mov word [0x1400230a0], bp
mov rdx, rsi
lea r9, [rax + 0x2000]
test r8w, r8w
jne 0x14000e901
jmp 0x14000e917
cmp rax, r9
je 0x14001bd48
add rax, 2
mov word [rdx], r8w
add rdx, 2
movzx r8d, word [rax]
test r8w, r8w
jne 0x14000e8f8
xor edi, edi
mov word [rdx], di
cmp word [0x1400230a0], 0
je 0x14000eaf9
mov edx, 0x1000
lea rax, [0x1400230a0]
nop word cs:[rax + rax]
add rax, 2
sub rdx, 1
cmp word [rax], 0
jne 0x14000e940
test rdx, rdx
je 0x14000f293
movd dword [rax], xmm7
cmp word [0x1400230a0], 0
je 0x14000eae8
mov edx, 0x1000
lea rax, [0x1400230a0]
nop dword [rax]
add rax, 2
sub rdx, 1
cmp word [rax], 0
jne 0x14000e978
test rdx, rdx
je 0x14000f28e
lea r8, [0x1400418e0]
jmp 0x14000e9a9
test rdx, rdx
je 0x14000f27f
add r8, 2
mov word [rax], cx
add rax, 2
sub rdx, 1
movzx ecx, word [r8]
test cx, cx
jne 0x14000e9a0
xor r11d, r11d
cmp word [0x1400410e0], 0
mov word [rax], r11w
je 0x14000ea95
mov edx, 8
mov rcx, rbx
call fcn.14000e340
mov rdi, qword [rsp + 0x220]
call fcn.140010540
xor r9d, r9d
mov edx, 0x40000000
mov rcx, rsi
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 r12, rax
cmp rax, 0xffffffffffffffff
je 0x14000f1f6
mov r13, qword [sym.imp.KERNEL32.dll_WriteFile]
lea rbp, [0x1400250a0]
test rdi, rdi
je 0x14000ea87
mov esi, 0x8000
mov rcx, rbp
cmp rdi, rsi
cmovbe rsi, rdi
mov rdx, rsi
call fcn.14000e340
mov r9, rbx
mov r8d, esi
mov rdx, rbp
mov dword [rsp + 0x220], 0
mov rcx, r12
mov qword [rsp + 0x20], 0
call r13
test eax, eax
je 0x14000f1d8
sub rdi, rsi
jne 0x14000ea40
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x14000e7b9
movzx edx, word [0x1400230a0]
lea rax, [0x1400410e0]
lea rcx, [0x1400230a0]
lea r8, [rax + 0x2000]
test dx, dx
jne 0x14000eac9
jmp 0x14000eadc
cmp rax, r8
je 0x14001bd48
add rcx, 2
mov word [rax], dx
add rax, 2
movzx edx, word [rcx]
test dx, dx
jne 0x14000eac0
xor r10d, r10d
mov word [rax], r10w
jmp 0x14000e9d6
lea rax, [0x1400230a0]
mov edx, 0x1000
jmp 0x14000e98f
lea rax, [0x1400230a0]
jmp 0x14000e957
mov eax, 7
cpuid
shr ebx, 8
and ebx, 1
mov ecx, ebx
jmp 0x14000e747
mov rsi, qword [0x140046108]
test rsi, rsi
je 0x14000ebc9
cmp qword [rsi + 0x73c8], 0
jne 0x14000ebc9
mov rdi, qword [rsi + 0x73d8]
mov rbp, qword [rsi + 0x73a8]
mov r13, qword [rsi + 0x73b0]
test rdi, rdi
je 0x14000eb83
mov rdx, qword [rdi]
mov r12, qword [rdi + 0x6ac8]
mov r14, qword [rdi + 0x6ad0]
test rdx, rdx
je 0x14000f1a3
test r12, r12
je 0x14000f26d
mov rcx, r14
call r12
mov rdx, rdi
mov rcx, r14
call r12
mov rdx, qword [rsi + 0x73f8]
pxor xmm0, xmm0
mov dword [rsi + 0x73f0], 0
movups xmmword [rsi + 0x73d8], xmm0
test rdx, rdx
je 0x14000f18d
test rbp, rbp
je 0x14000f260
mov rcx, r13
call rbp
mov qword [rsi + 0x73f8], 0
mov rdx, rsi
mov rcx, r13
call rbp
mov rcx, qword [0x140046130]
lea r12, [rsp + 0x1a0]
call sub.msvcrt.dll_free
call qword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
lea r8, [0x14001d31a]
mov edx, pe_nt_image_headers64
mov rcx, r12
mov r9d, eax
call fcn.140001910
movzx eax, byte [rsp + 0x1a0]
xor r9d, r9d
mov word [rsp + 0x220], r9w
test al, al
je 0x14000ecab
mov r14d, pe_nt_image_headers64
mov rsi, rbx
lea r13, [rsp + 0x7a]
mov edi, 1
lea rbp, [rsp + 0x84]
mov r8d, 2
mov rdx, r13
mov rcx, rbp
mov byte [rsp + 0x7a], al
mov byte [rsp + 0x7b], 0
call sub.msvcrt.dll_mbstowcs
cmp rax, 1
jne 0x14001bd48
cmp word [rsi], 0
movzx ecx, word [rsp + 0x84]
mov rdx, r14
mov rax, rsi
je 0x14000ec7e
nop dword [rax]
add rax, 2
sub rdx, 1
cmp word [rax], 0
jne 0x14000ec70
test rdx, rdx
je 0x14001bd48
mov word [rax], cx
xor ecx, ecx
add rsi, 2
lea rdx, [r14 - 1]
mov word [rax + 2], cx
mov rax, rdi
sub rax, r14
movzx eax, byte [rbx + rax]
test al, al
je 0x14000ecab
mov r14, rdx
jmp 0x14000ec31
xor r8d, r8d
lea rcx, [rsp + 0x88]
lea r15, str.NUITKA_ONEFILE_PARENT
mov eax, 0x4e
mov qword [rsp + 0x58], rcx
lea rbp, [rsp + 0xe0]
lea r14, [r15 + 0x28]
mov word [rsp + 0xe0], r8w
mov rdi, rbp
lea r13, [rsp + 0x7c]
mov rcx, qword [rsp + 0x58]
mov rsi, r14
mov rdx, r13
mov byte [rsp + 0x7c], al
mov r8d, 2
sub rsi, r15
mov byte [rsp + 0x7d], 0
call sub.msvcrt.dll_mbstowcs
cmp rax, 1
jne 0x14001bd48
cmp word [rdi], 0
movzx edx, word [rsp + 0x88]
mov rax, rdi
je 0x14000ed36
nop dword [rax]
add rax, 2
sub rsi, 1
cmp word [rax], 0
jne 0x14000ed28
test rsi, rsi
je 0x14001bd48
mov word [rax], dx
add r15, 1
xor edx, edx
add rdi, 2
mov word [rax + 2], dx
movzx eax, byte [r15]
test al, al
jne 0x14000ece4
mov r13, qword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
mov rdx, rbx
mov rcx, rbp
lea rdi, [0x14002d0a0]
call r13
cmp word [0x14002d0a0], 0
je 0x14000f13f
lea rcx, [rsp + 0x7e]
xor r11d, r11d
lea r14, [rsp + 0x90]
mov eax, 0x4e
mov qword [rsp + 0x58], rcx
lea rcx, [rsp + 0x8c]
lea r9, str.NUITKA_ONEFILE_BINARY
mov r15, r14
mov word [rsp + 0x90], r11w
mov qword [rsp + 0x60], rcx
mov rdx, qword [rsp + 0x58]
mov rcx, qword [rsp + 0x60]
mov qword [rsp + 0x68], r9
lea rsi, [0x14001d4ba]
mov r8d, 2
mov byte [rsp + 0x7e], al
sub rsi, r9
mov byte [rsp + 0x7f], 0
call sub.msvcrt.dll_mbstowcs
mov rbp, rax
cmp rax, 1
jne 0x14001bd48
cmp word [r15], 0
movzx edx, word [rsp + 0x8c]
mov rax, r15
mov r9, qword [rsp + 0x68]
je 0x14000ee1e
nop dword [rax + rax]
add rax, 2
sub rsi, 1
cmp word [rax], 0
jne 0x14000ee10
test rsi, rsi
je 0x14001bd48
xor r10d, r10d
add r9, 1
mov word [rax], dx
add r15, 2
mov word [rax + 2], r10w
movzx eax, byte [r9]
test al, al
jne 0x14000edb7
mov rdx, rdi
mov rcx, r14
call r13
lea r13, [rsp + 0x130]
xor eax, eax
mov ecx, 0xd
mov rdi, r13
mov rsi, qword [sym.imp.KERNEL32.dll_GetStdHandle]
rep stosq qword [rdi], rax
mov ecx, 0xfffffff6
mov dword [rsp + 0x16c], 0x100
call rsi
mov ecx, 0xfffffff5
mov qword [rsp + 0x180], rax
call rsi
mov ecx, 0xfffffff4
mov qword [rsp + 0x188], rax
call rsi
lea rsi, [0x1400310c0]
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 r8d, r8d
xor ecx, ecx
lea rdx, [0x14002f0c0]
mov word [0x1400310c0], r8w
mov rdi, rax
mov r8d, 0x1000
call qword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
test eax, eax
je 0x14001bd48
cmp word [0x1400310c0], 0
movzx ecx, word [0x14002f0c0]
je 0x14000f228
mov edx, 0x8000
mov rax, rsi
add rax, 2
sub rdx, 1
cmp word [rax], 0
jne 0x14000ef14
test cx, cx
je 0x14000ef5a
test rdx, rdx
je 0x14000f284
lea r8, [0x14002f0c0]
jmp 0x14000ef42
test rdx, rdx
je 0x14000f289
add r8, 2
mov word [rax], cx
add rax, 2
sub rdx, 1
movzx ecx, word [r8]
test cx, cx
jne 0x14000ef39
mov r10d, dword [rsp + 0x80]
xor ecx, ecx
mov r11d, dword [0x14001e264]
mov word [rax], cx
lea r9d, [r10 - 1]
cmp r10d, 1
jle 0x14000eff0
mov r8, qword [rdi + rbp*8]
cmp word [rsi], 0
mov edx, 0x8000
lea rax, [0x1400310c0]
movzx ecx, word [r8]
je 0x14000f109
nop word cs:[rax + rax]
add rax, 2
sub rdx, 1
cmp word [rax], 0
jne 0x14000efa0
test cx, cx
je 0x14000efd9
nop dword [rax + rax]
test rdx, rdx
je 0x14001bd48
add r8, 2
mov word [rax], cx
add rax, 2
sub rdx, 1
movzx ecx, word [r8]
test cx, cx
jne 0x14000efb8
xor edx, edx
mov word [rax], dx
cmp r9d, ebp
jne 0x14000f0d8
add rbp, 1
cmp rbp, r10
jne 0x14000ef78
xor r9d, r9d
xor r8d, r8d
mov qword [rsp + 0x48], rbx
mov rdx, rsi
mov qword [rsp + 0x40], r13
lea rcx, [0x1400410e0]
mov qword [rsp + 0x38], 0
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 0x14000f23e
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 [0x1400410c0], rcx
test rcx, rcx
je 0x14000f0a8
mov edx, 0xffffffff
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov rcx, qword [0x1400410c0]
mov rdx, r12
call qword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
test eax, eax
jne 0x14000f094
mov dword [rsp + 0x1a0], 1
mov rcx, qword [0x1400410c0]
call rbx
mov qword [0x1400410c0], 0
call fcn.140007ca0
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
cmp word [rsi], 0
je 0x14000f136
mov edx, 0x8000
lea rax, [0x1400310c0]
add rax, 2
sub rdx, 1
cmp word [rax], 0
jne 0x14000f0ea
test rdx, rdx
je 0x14000f27a
mov dword [rax], r11d
jmp 0x14000efe7
test cx, cx
jne 0x14000efc1
jmp 0x14000efd9
mov rcx, rbx
call fcn.140007be0
mov qword [0x140046108], 0
lea rcx, str.Error__couldnt_allocate_memory.
call fcn.140007c80
lea rax, [0x1400310c0]
jmp 0x14000f101
mov rdx, rdi
xor ecx, ecx
mov r8d, 0x1001
call qword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
cmp word [0x14002d0a0], 0
mov rax, rdi
lea rdx, [rdi + 0x2002]
jne 0x14000f179
jmp 0x14000f183
cmp rax, rdx
je 0x14001bd48
add rax, 2
cmp word [rax], 0
jne 0x14000f170
xor esi, esi
mov word [rax], si
jmp 0x14000ed7d
test rbp, rbp
jne 0x14000ebc1
mov rcx, rsi
call sub.msvcrt.dll_free
jmp 0x14000ebc9
test r12, r12
jne 0x14000eb7a
mov rcx, rdi
call sub.msvcrt.dll_free
jmp 0x14000eb83
lea rcx, str.Error__couldnt_find_attached_data_header.
call fcn.140007c80
lea rcx, str.Error__failed_to_register_signal_handler.
call fcn.140007c80
nop dword [rax]
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.Error__couldnt_unpack_file_to_target_path.
mov edx, eax
call fcn.140007c10
mov ecx, 2
call sub.msvcrt.dll_exit
mov ecx, 2
call qword [fcn.14001b380]
lea r8, [0x1400230a0]
lea rdx, str.Error__failed_to_open__ls_for_writing._n
mov rcx, rax
call fcn.1400018e0
mov ecx, 2
call sub.msvcrt.dll_exit
nop dword [rax]
mov rax, rsi
mov edx, 0x8000
test cx, cx
jne 0x14000ef30
jmp 0x14000ef5a
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.Error__couldnt_launch_child
mov edx, eax
call fcn.140007c10
mov ecx, 2
call sub.msvcrt.dll_exit
nop dword [rax]
mov rcx, rdx
call sub.msvcrt.dll_free
jmp 0x14000f196
mov rcx, rdx
call sub.msvcrt.dll_free
jmp 0x14000f1ac
jmp 0x14001bd48
jmp 0x14001bd48
jmp 0x14001bd48
jmp 0x14001bd48
jmp 0x14001bd48
jmp 0x14001bd48
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 0x1400015e0