Function at 0x14001bf60
Capabilities:
Accept command line arguments
Create process on windows
Extract resource via kernel32 functions
Get file size
Read file via mapping
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, 0x2a8
movaps xmmword [rsp + 0x280], xmm6
movaps xmmword [rsp + 0x290], xmm7
lea rbx, str.E:MailTemplate
mov r8d, 0x1000
lea rcx, [0x14003f080]
mov rdx, rbx
call fcn.14001b280
test al, al
je 0x14001c9cd
lea rcx, [0x140003310]
mov edx, 1
call qword [sym.imp.KERNEL32.dll_SetConsoleCtrlHandler]
test eax, eax
je 0x14001c9ff
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 [0x1400410c8], rax
call qword [sym.imp.KERNEL32.dll_SizeofResource]
mov esi, eax
mov rax, qword [0x1400410c8]
mov qword [0x1400410c0], rsi
cmp byte [rax + 1], 0x41
lea rdi, [rax + 3]
movzx ecx, byte [rax + 2]
mov qword [0x1400410c8], rdi
setne dl
cmp byte [rax], 0x4b
setne al
or dl, al
jne 0x14001c9f3
cmp cl, 0x59
jne 0x14001c9f3
mov qword [0x1400410a0], 0
mov ecx, 0x20000
call sub.msvcrt.dll_malloc
test rax, rax
mov qword [0x140041080], rax
je 0x14001c9c1
mov ecx, 0x274b8
call sub.msvcrt.dll_malloc
test rax, rax
mov r8, rax
je 0x14001c9b6
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 0x14001c64b
lea rax, [rsp + 0x180]
movdqa xmm6, xmmword [0x1400291b0]
mov dword [r8 + 0x73d0], ecx
movd xmm7, dword [0x1400291c0]
mov qword [rsp + 0x58], rax
mov qword [r8 + 0x7410], 0x8000001
mov dword [r8 + 0x7458], 0
mov qword [r8 + 0x7388], 0
mov dword [r8 + 0x7390], 1
mov qword [0x1400410b8], r8
mov qword [0x1400410a0], rdi
mov qword [0x1400410b0], 0
mov qword [0x1400410a8], rsi
mov rbx, qword [0x140041088]
lea r14, [0x140036060]
mov rsi, qword [0x140041090]
lea rbp, [0x140041080]
mov r13, qword [rsp + 0x58]
nop dword [rax + rax]
xor r15d, r15d
mov r12, r13
mov edi, 2
nop dword [rax + rax]
mov r8, rbx
sub r8, rsi
jne 0x14001c236
mov rcx, qword [0x1400410b0]
mov rdx, qword [0x1400410a8]
cmp rcx, rdx
setb al
or r15b, al
je 0x14001c290
mov rcx, qword [0x1400410b8]
lea r8, [0x1400410a0]
mov rdx, rbp
movups xmmword [0x140041088], xmm6
call fcn.1400181d0
mov rbx, qword [0x140041090]
cmp qword [0x140041088], rbx
sete r15b
cmp rax, 0xffffffffffffff88
ja 0x14001c299
xor esi, esi
mov r8, rbx
mov qword [0x140041088], rbx
mov qword [0x140041090], 0
sub r8, rsi
je 0x14001c1c8
mov rdx, qword [rbp]
cmp r8, rdi
mov rcx, r12
cmova r8, rdi
mov qword [rsp + 0x50], r8
add rdx, rsi
call sub.msvcrt.dll_memcpy
mov r8, qword [rsp + 0x50]
add rsi, r8
add r12, r8
sub rdi, r8
mov qword [0x140041090], rsi
jne 0x14001c1c0
movzx eax, word [rsp + 0x180]
test ax, ax
mov word [r14], ax
je 0x14001c2a5
add r14, 2
jmp 0x14001c1b0
cmp rcx, rdx
je 0x14001c1c0
lea rcx, str.Error__couldnt_decode_attached_data.
call fcn.1400018b0
lea rax, [0x140036060]
movzx ecx, word [rax]
test cx, cx
je 0x14001c65f
lea rax, [0x14003f080]
xor r11d, r11d
movzx edx, word [rax]
lea rsi, [0x140037060]
mov word [0x140037060], r11w
lea r8, [0x14003f080]
mov rax, rsi
lea r9, [rsi + 0x2000]
test dx, dx
jne 0x14001c2f9
jmp 0x14001c30d
cmp rax, r9
je 0x14002336f
add r8, 2
mov word [rax], dx
add rax, 2
movzx edx, word [r8]
test dx, dx
jne 0x14001c2f0
xor r10d, r10d
mov word [rax], r10w
cmp word [0x140037060], 0
je 0x14001c63f
lea rax, [0x140037060]
mov edx, 0x1000
nop
add rax, 2
sub rdx, 1
cmp word [rax], 0
jne 0x14001c330
test rdx, rdx
je 0x14001ca69
movd dword [rax], xmm7
lea rax, [0x140037060]
mov edx, 0x1000
cmp word [0x140037060], 0
je 0x14001c37f
nop dword [rax]
add rax, 2
sub rdx, 1
cmp word [rax], 0
jne 0x14001c368
test rdx, rdx
je 0x14001ca64
lea r8, [0x140036060]
jmp 0x14001c399
test rdx, rdx
je 0x14001ca5f
add r8, 2
mov word [rax], cx
add rax, 2
sub rdx, 1
movzx ecx, word [r8]
test cx, cx
jne 0x14001c390
xor r9d, r9d
cmp word [0x140036860], 0
mov word [rax], r9w
je 0x14001c5d1
mov rdi, qword [rsp + 0x58]
mov edx, 8
mov rcx, rdi
call fcn.140018d80
mov rcx, rdi
mov edx, 4
mov rbx, qword [rsp + 0x180]
call fcn.140018d80
xor r9d, r9d
mov rcx, rsi
mov r14d, dword [rsp + 0x180]
mov r13, qword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [rsp + 0x28], pe_nt_image_headers64
mov r8d, 7
mov edx, 0x80000000
mov qword [rsp + 0x30], 0
mov dword [rsp + 0x20], 3
call r13
cmp rax, 0xffffffffffffffff
mov rdi, rax
je 0x14001c637
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetFileSize]
cmp eax, 0xffffffff
mov r12d, eax
je 0x14001c620
xor r9d, r9d
xor edx, edx
mov dword [rsp + 0x20], 0
mov rcx, rdi
mov qword [rsp + 0x28], 0
mov r8d, 2
call qword [sym.imp.KERNEL32.dll_CreateFileMappingW]
test rax, rax
mov rbp, rax
je 0x14001c620
xor r9d, r9d
xor r8d, r8d
mov rcx, rax
mov qword [rsp + 0x20], 0
mov edx, 4
call qword [sym.imp.KERNEL32.dll_MapViewOfFile]
test rax, rax
mov rdx, rax
je 0x14001c99a
mov r8d, r12d
xor ecx, ecx
mov qword [rsp + 0x50], rax
call fcn.140019d60
mov ecx, 1
test eax, eax
cmovne ecx, eax
mov r12d, ecx
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
mov rcx, rbp
mov rbp, qword [sym.imp.KERNEL32.dll_CloseHandle]
call rbp
mov rcx, rdi
call rbp
cmp r14d, r12d
je 0x14001c59d
mov rcx, rsi
call fcn.14001bb20
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 r13
cmp rax, 0xffffffffffffffff
mov rbp, rax
je 0x14001ca0b
mov r13, qword [rsp + 0x58]
test rbx, rbx
mov r12, qword [sym.imp.KERNEL32.dll_WriteFile]
lea rdi, [0x14002e060]
je 0x14001c58f
nop word [rax + rax]
mov esi, 0x8000
mov rcx, rdi
cmp rbx, rsi
cmovbe rsi, rbx
mov rdx, rsi
call fcn.140018d80
mov r9, r13
mov r8d, esi
mov rdx, rdi
mov dword [rsp + 0x180], 0
mov rcx, rbp
mov qword [rsp + 0x20], 0
call r12
test eax, eax
je 0x14001ca40
sub rbx, rsi
jne 0x14001c548
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x14001c187
test rbx, rbx
je 0x14001c187
lea rdi, [0x14002e060]
nop dword [rax]
mov esi, 0x8000
mov rcx, rdi
cmp rbx, rsi
cmovbe rsi, rbx
mov rdx, rsi
call fcn.140018d80
sub rbx, rsi
jne 0x14001c5b0
jmp 0x14001c187
movzx edx, word [0x140037060]
lea rax, [0x140036860]
lea rcx, [0x140037060]
lea r8, [rax + 0x2000]
test dx, dx
jne 0x14001c601
jmp 0x14001c614
cmp rax, r8
je 0x14002336f
add rcx, 2
mov word [rax], dx
add rax, 2
movzx edx, word [rcx]
test dx, dx
jne 0x14001c5f8
xor r8d, r8d
mov word [rax], r8w
jmp 0x14001c3c6
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
xor r12d, r12d
jmp 0x14001c4df
call qword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x14001c62f
lea rax, [0x140037060]
jmp 0x14001c347
mov eax, 7
cpuid
shr ebx, 8
mov ecx, ebx
and ecx, 1
jmp 0x14001c117
mov rcx, qword [0x1400410b8]
lea rbp, [rsp + 0x100]
mov r15d, pe_nt_image_headers64
mov r13d, 1
lea r14, [rsp + 0xb0]
call fcn.140012940
mov rcx, qword [0x140041080]
call sub.msvcrt.dll_free
call qword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
mov rcx, rbp
mov edx, pe_nt_image_headers64
lea r8, [0x140025e2e]
mov r9d, eax
call fcn.140001830
movzx edi, byte [rsp + 0x100]
xor ecx, ecx
mov r12, qword [rsp + 0x58]
mov word [rsp + 0x180], cx
test dil, dil
je 0x14001c742
cmp word [r12], 0
mov rax, r15
mov rbx, r12
je 0x14001c6ee
nop word [rax + rax]
add rbx, 2
sub rax, 1
cmp word [rbx], 0
jne 0x14001c6e0
test rax, rax
je 0x14002336f
mov rcx, rbx
add r12, 2
call sub.msvcrt.dll_wcslen
mov rdx, r14
mov r8d, 2
mov byte [rsp + 0xb0], dil
lea rcx, [rbx + rax*2]
mov byte [rsp + 0xb1], 0
call sub.msvcrt.dll_mbstowcs
mov rdi, qword [rsp + 0x58]
lea rax, [r15 - 1]
mov rdx, r13
sub rdx, r15
movzx edi, byte [rdi + rdx]
test dil, dil
je 0x14001c742
mov r15, rax
jmp 0x14001c6cc
lea rcx, [rsp + 0x60]
xor edx, edx
mov r15d, 0x4e
lea r13, str.NUITKA_ONEFILE_PARENT
mov word [rsp + 0x60], dx
mov rdi, rcx
mov rsi, rcx
lea r14, [r13 + 0x28]
lea r12, [rsp + 0xb0]
mov rax, r14
mov rbx, rdi
sub rax, r13
cmp word [rdi], 0
je 0x14001c78e
nop dword [rax]
add rbx, 2
sub rax, 1
cmp word [rbx], 0
jne 0x14001c780
test rax, rax
je 0x14002336f
mov rcx, rbx
add r13, 1
add rdi, 2
call sub.msvcrt.dll_wcslen
mov r8d, 2
mov rdx, r12
mov byte [rsp + 0xb0], r15b
lea rcx, [rbx + rax*2]
mov byte [rsp + 0xb1], 0
call sub.msvcrt.dll_mbstowcs
movzx r15d, byte [r13]
test r15b, r15b
jne 0x14001c76d
mov rdx, qword [rsp + 0x58]
mov rcx, rsi
mov rdi, r12
mov r14d, 0x4e
mov r13, qword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
lea r15, str.NUITKA_ONEFILE_BINARY
call r13
lea rbx, [r15 + 0x28]
xor ecx, ecx
call fcn.140001a20
xor eax, eax
mov word [rsp + 0xb0], ax
mov rax, rbx
mov rsi, rdi
sub rax, r15
cmp word [rdi], 0
je 0x14001c82e
nop dword [rax]
add rsi, 2
sub rax, 1
cmp word [rsi], 0
jne 0x14001c820
test rax, rax
je 0x14002336f
mov rcx, rsi
add r15, 1
add rdi, 2
call sub.msvcrt.dll_wcslen
mov rdx, qword [rsp + 0x58]
mov r8d, 2
mov byte [rsp + 0x180], r14b
lea rcx, [rsi + rax*2]
mov byte [rsp + 0x181], 0
call sub.msvcrt.dll_mbstowcs
movzx r14d, byte [r15]
test r14b, r14b
jne 0x14001c80a
lea rdx, [0x140039060]
mov rcx, r12
call r13
lea rdx, [rsp + 0x184]
xor eax, eax
mov ecx, 0xc
mov rdi, rdx
rep stosq qword [rdi], rax
mov dword [rdi], 0
mov dword [rsp + 0x180], 0x68
call qword [sym.imp.KERNEL32.dll_GetCommandLineW]
xor r9d, r9d
xor r8d, r8d
mov qword [rsp + 0x48], rbp
mov rdx, rax
mov rax, qword [rsp + 0x58]
mov qword [rsp + 0x38], 0
mov qword [rsp + 0x30], 0
lea rcx, [0x140036860]
mov dword [rsp + 0x28], 0x20
mov dword [rsp + 0x20], 0
mov qword [rsp + 0x40], rax
call qword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
je 0x14001c9d5
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 [0x14002e048], rcx
je 0x14001c96a
mov edx, 0xffffffff
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov rcx, qword [0x14002e048]
mov rdx, r12
call qword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
test eax, eax
jne 0x14001c956
mov dword [rsp + 0xb0], 1
mov rcx, qword [0x14002e048]
call rbx
mov qword [0x14002e048], 0
call fcn.1400032b0
mov eax, dword [rsp + 0xb0]
movaps xmm6, xmmword [rsp + 0x280]
movaps xmm7, xmmword [rsp + 0x290]
add rsp, 0x2a8
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
pop r15
ret
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov rcx, rbp
mov rbp, qword [sym.imp.KERNEL32.dll_CloseHandle]
call rbp
mov rcx, rdi
call rbp
jmp 0x14001c62f
mov qword [0x1400410b8], 0
lea rcx, str.Error__couldnt_allocate_memory.
call fcn.1400018b0
mov rcx, rbx
call fcn.140001880
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.Error__couldnt_launch_child
mov edx, eax
call fcn.14001bef0
mov ecx, 2
call fcn.14001d6e0
lea rcx, str.Error__couldnt_find_attached_data_header.
call fcn.1400018b0
lea rcx, str.Error__failed_to_register_signal_handler.
call fcn.1400018b0
mov ecx, 2
call qword [fcn.140022b20]
lea r8, [0x140037060]
lea rdx, str.Error__failed_to_open__ls_for_writing._n
mov rcx, rax
call fcn.140001850
mov ecx, 2
call fcn.14001d6e0
nop word cs:[rax + rax]
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.Error__couldnt_unpack_file_to_target_path.
mov edx, eax
call fcn.14001bef0
mov ecx, 2
call fcn.14001d6e0
nop
jmp 0x14002336f
jmp 0x14002336f
jmp 0x14002336f