Function at 0x140002610
Capabilities:
Create process on windows
Extract resource via kernel32 functions
Get common file path
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 r13
push r14
push r15
lea rbp, [rsp - 0xc90]
sub rsp, 0xd90
mov rax, qword [section..data]
xor rax, rsp
mov qword [rbp + 0xc80], rax
mov qword [rsp + 0x70], rdx
call qword [sym.imp.KERNEL32.dll_GetConsoleWindow]
mov edx, 2
lea rcx, [rsp + 0x68]
mov rbx, rax
call qword [sym.imp.KERNEL32.dll_GetConsoleProcessList]
test rbx, rbx
je 0x140002675
cmp eax, 1
ja 0x140002675
xor edx, edx
mov rcx, rbx
call qword [sym.imp.USER32.dll_ShowWindow]
movzx eax, word [str.TEMPonefile_PID_TIME]
lea r13, str.TEMPonefile_PID_TIME
xor edi, edi
mov qword [rsp + 0xdc0], r12
mov word [0x1400385e0], di
lea r14, [0x1400385e0]
mov ecx, edi
mov r15d, 0x1000
mov esi, 0x80
cmp ax, 0x7b
jne 0x1400026c1
lea rcx, [rbp + 0x480]
mov word [rbp + 0x480], di
jmp 0x140002b7f
movzx eax, word [r13]
cmp ax, 0x7d
jne 0x140002b58
mov word [rcx], di
lea rdx, str.TEMP
lea rcx, [rbp + 0x480]
xor r12b, r12b
call fcn.14000b16c
test eax, eax
jne 0x140002701
mov rdx, r14
mov ecx, r15d
call qword [sym.imp.KERNEL32.dll_GetTempPathW]
mov r12b, 1
jmp 0x140002b0d
lea rdx, [0x140020708]
lea rcx, [rbp + 0x480]
call fcn.14000b16c
test eax, eax
jne 0x14000276d
mov rbx, r15
call fcn.140006ecc
cmp word [r14], 0
mov rcx, qword [rax]
mov rax, r14
mov rdx, qword [rcx]
je 0x14000273d
add rax, 2
dec rbx
cmp word [rax], 0
jne 0x140002730
movzx ecx, word [rdx]
test cx, cx
je 0x140002765
cmp rbx, 1
jb 0x1400030f3
add rdx, 2
mov word [rax], cx
add rax, 2
dec rbx
movzx ecx, word [rdx]
test cx, cx
jne 0x140002745
mov word [rax], di
jmp 0x140002b0d
lea rdx, str.PROGRAM_BASE
lea rcx, [rbp + 0x480]
call fcn.14000b16c
test eax, eax
jne 0x1400027fa
mov rax, 0xffffffffffffffff
nop dword [rax + rax]
inc rax
cmp word [r14 + rax*2], 0
jne 0x140002790
mov r8, r15
lea rdx, str.PROGRAM
sub r8, rax
mov rcx, r14
call fcn.1400012f0
test al, al
je 0x1400030d3
mov rax, 0xffffffffffffffff
nop
inc rax
cmp word [r14 + rax*2], 0
jne 0x1400027c0
cmp rax, 4
jb 0x140002b0d
lea rbx, [r14 + rax*2]
lea rcx, [rbx - 8]
lea rdx, str..exe
call fcn.14000b16c
test eax, eax
jne 0x140002b0d
mov word [rbx - 8], di
jmp 0x140002b0d
lea rdx, [0x140020768]
lea rcx, [rbp + 0x480]
call fcn.14000b16c
test eax, eax
jne 0x1400028db
call qword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
lea r8, [0x1400206f0]
mov rdx, rsi
mov r9d, eax
lea rcx, [rbp]
call fcn.140001060
cmp word [r14], 0
lea rsi, [rbp]
mov rdi, r15
mov rbx, r14
je 0x14000284f
add rbx, 2
dec rdi
cmp word [rbx], 0
jne 0x140002842
movzx eax, byte [rbp]
test al, al
je 0x140002b06
nop dword [rax + rax]
mov r8d, 2
mov byte [rsp + 0x54], al
lea rdx, [rsp + 0x54]
mov byte [rsp + 0x55], r12b
lea rcx, [rsp + 0x60]
call fcn.140006c58
cmp rax, 1
jne 0x1400030ed
cmp word [rbx], 0
mov rax, rdi
mov rcx, rbx
je 0x1400028ad
nop dword [rax]
nop dword [rax + rax]
add rcx, 2
dec rax
cmp word [rcx], 0
jne 0x1400028a0
cmp rax, 1
jb 0x1400030ed
movzx eax, word [rsp + 0x60]
inc rsi
mov word [rcx], ax
add rbx, 2
xor eax, eax
dec rdi
mov word [rcx + 2], ax
movzx eax, byte [rsi]
test al, al
jne 0x140002860
jmp 0x140002b06
lea rdx, [0x140020770]
lea rcx, [rbp + 0x480]
call fcn.14000b16c
test eax, eax
jne 0x1400028f9
mov edx, 0x28
jmp 0x140002915
lea rdx, str.CACHE_DIR
lea rcx, [rbp + 0x480]
call fcn.14000b16c
test eax, eax
jne 0x140002930
mov edx, 0x1c
mov r8, r15
mov rcx, r14
call fcn.140001230
test al, al
je 0x1400030d3
mov r12b, 1
jmp 0x140002b0d
lea rdx, str.PRODUCT
lea rcx, [rbp + 0x480]
call fcn.14000b16c
test eax, eax
jne 0x140002999
mov rdx, r15
mov rcx, r14
cmp word [r14], ax
je 0x140002960
add rcx, 2
dec rdx
cmp word [rcx], 0
jne 0x140002953
lea r8, [0x1400207a8]
sub r8, rcx
nop word [rax + rax]
cmp rdx, 1
jb 0x1400030f3
movzx eax, word [r8 + rcx]
dec rdx
mov word [rcx], ax
add rcx, 2
cmp word [r8 + rcx], 0
jne 0x140002970
mov word [rcx], di
jmp 0x140002b0d
lea rdx, str.VERSION
lea rcx, [rbp + 0x480]
call fcn.14000b16c
test eax, eax
jne 0x140002a09
mov rdx, r15
mov rcx, r14
cmp word [r14], ax
je 0x1400029cd
nop dword [rax]
add rcx, 2
dec rdx
cmp word [rcx], 0
jne 0x1400029c0
lea r8, str.0.4.16
sub r8, rcx
nop word [rax + rax]
cmp rdx, 1
jb 0x1400030f3
movzx eax, word [r8 + rcx]
dec rdx
mov word [rcx], ax
add rcx, 2
cmp word [r8 + rcx], 0
jne 0x1400029e0
mov word [rcx], di
jmp 0x140002b0d
lea rdx, str.TIME
lea rcx, [rbp + 0x480]
call fcn.14000b16c
test eax, eax
jne 0x1400030d3
lea rcx, [rsp + 0x68]
mov qword [rsp + 0x68], rdi
call qword [sym.imp.KERNEL32.dll_GetSystemTimeAsFileTime]
mov r9, qword [rsp + 0x68]
lea r8, str._lld
mov edx, 0x400
lea rcx, [rbp + 0x80]
call fcn.140001060
cmp word [r14], 0
lea rsi, [rbp + 0x80]
mov rdi, r15
mov rbx, r14
je 0x140002a7d
nop word [rax + rax]
add rbx, 2
dec rdi
cmp word [rbx], 0
jne 0x140002a70
movzx eax, byte [rbp + 0x80]
test al, al
je 0x140002b06
nop dword [rax + rax]
mov r8d, 2
mov byte [rsp + 0x50], al
lea rdx, [rsp + 0x50]
mov byte [rsp + 0x51], r12b
lea rcx, [rsp + 0x58]
call fcn.140006c58
cmp rax, 1
jne 0x1400030f9
cmp word [rbx], 0
mov rax, rdi
mov rcx, rbx
je 0x140002add
nop dword [rax]
nop dword [rax + rax]
add rcx, 2
dec rax
cmp word [rcx], 0
jne 0x140002ad0
cmp rax, 1
jb 0x1400030f9
movzx eax, word [rsp + 0x58]
inc rsi
mov word [rcx], ax
add rbx, 2
xor eax, eax
dec rdi
mov word [rcx + 2], ax
movzx eax, byte [rsi]
test al, al
jne 0x140002a90
xor edi, edi
mov esi, 0x80
cmp word [r14], 0
je 0x140002b2e
nop dword [rax]
nop dword [rax + rax]
add r14, 2
dec r15
cmp word [r14], 0
jne 0x140002b20
test r12b, r12b
je 0x140002b53
cmp word [r14 - 2], 0x5c
jne 0x140002b53
nop dword [rax + rax]
sub r14, 2
inc r15
mov word [r14], di
cmp word [r14 - 2], 0x5c
je 0x140002b40
mov rcx, rdi
jmp 0x140002b7f
test rcx, rcx
je 0x140002b66
mov word [rcx], ax
add rcx, 2
jmp 0x140002b7f
cmp r15, 1
jb 0x1400030d3
mov word [r14], ax
add r14, 2
dec r15
mov word [r14], di
mov eax, 2
add r13, rax
movzx eax, word [r13]
test ax, ax
jne 0x1400026a8
mov edx, 1
mov word [r14], di
lea rcx, [0x1400022b0]
call qword [sym.imp.KERNEL32.dll_SetConsoleCtrlHandler]
test eax, eax
je 0x1400030e0
mov edx, 0x1b
xor ecx, ecx
mov r8d, 0xa
call qword [sym.imp.KERNEL32.dll_FindResourceA]
mov rdx, rax
xor ecx, ecx
mov rbx, rax
call qword [sym.imp.KERNEL32.dll_LoadResource]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_LockResource]
mov rdx, rbx
xor ecx, ecx
mov qword [0x140048e00], rax
mov qword [0x14003ede0], rax
call qword [sym.imp.KERNEL32.dll_SizeofResource]
mov r8, qword [0x14003ede0]
movzx eax, word [r8]
movzx ecx, byte [r8 + 2]
add r8, 3
mov word [rsp + 0x50], ax
mov qword [0x14003ede0], r8
cmp al, 0x4b
jne 0x140003125
cmp byte [rsp + 0x51], 0x41
jne 0x140003125
cmp cl, 0x58
jne 0x140003125
mov byte [0x14003ede8], 1
lea r13, [0x14003a5e0]
lea r12, [0x1400365e0]
lea r14, [0x140025de0]
nop
movzx eax, word [r8]
mov rcx, r13
add r8, 2
mov word [0x14003a5e0], ax
mov qword [0x14003ede0], r8
test ax, ax
je 0x140002e9f
mov rdx, r8
nop word [rax + rax]
movzx eax, word [r8]
lea rcx, [rcx + 2]
mov word [rcx], ax
lea r8, [rdx + 2]
mov rdx, r8
test ax, ax
jne 0x140002c80
cmp word [0x14003a5e0], ax
mov qword [0x14003ede0], r8
je 0x140002e9f
cmp word [0x1400385e0], ax
mov edx, 0x1000
mov word [0x1400365e0], di
mov rcx, r12
je 0x140002cf1
lea r9, [0x1400385e0]
sub r9, r12
nop dword [rax]
cmp rdx, 1
jb 0x14000310b
movzx eax, word [r9 + rcx]
dec rdx
mov word [rcx], ax
add rcx, 2
cmp word [r9 + rcx], 0
jne 0x140002cd0
mov word [rcx], di
mov rax, r12
cmp word [0x1400365e0], 0
mov ecx, 0x1000
je 0x140002d27
nop word [rax + rax]
add rax, 2
dec rcx
cmp word [rax], 0
jne 0x140002d10
cmp rcx, 1
jb 0x14000310b
mov dword [rax], 0x5c
mov edx, 0x1000
cmp word [0x1400365e0], 0
mov rax, r12
je 0x140002d4d
nop
add rax, 2
dec rdx
cmp word [rax], 0
jne 0x140002d40
mov r9, r13
sub r9, rax
cmp rdx, 1
jb 0x14000310b
movzx ecx, word [r9 + rax]
dec rdx
mov word [rax], cx
add rax, 2
cmp word [r9 + rax], 0
jne 0x140002d53
cmp word [0x140025de0], 0
mov word [rax], di
jne 0x140002dc4
cmp word [0x1400365e0], 0
mov edx, 0x1000
mov rcx, r14
je 0x140002dc1
mov r9, r12
sub r9, r14
nop dword [rax]
cmp rdx, 1
jb 0x14000310b
movzx eax, word [r9 + rcx]
dec rdx
mov word [rcx], ax
add rcx, 2
cmp word [r9 + rcx], 0
jne 0x140002da0
mov word [rcx], di
mov rsi, qword [r8]
mov rcx, r12
add r8, 8
mov qword [0x14003ede0], r8
call fcn.140002060
mov qword [rsp + 0x30], rdi
xor r9d, r9d
mov dword [rsp + 0x28], edi
mov edx, 0x40000000
mov r8d, 2
mov dword [rsp + 0x20], 2
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov r15, rax
cmp rax, 0xffffffffffffffff
je 0x140003105
test rsi, rsi
je 0x140002e8a
nop dword [rax]
nop dword [rax + rax]
mov rbx, qword [0x14003ede0]
lea rcx, [0x140040e00]
mov edi, 0x8000
mov rdx, rbx
cmp rsi, rdi
cmovbe edi, esi
movsxd r14, edi
mov r8, r14
call fcn.140017180
xor eax, eax
lea r9, [rsp + 0x58]
add rbx, r14
mov dword [rsp + 0x58], eax
mov r8d, edi
mov qword [rsp + 0x20], rax
lea rdx, [0x140040e00]
mov qword [0x14003ede0], rbx
mov rcx, r15
call qword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x1400030ff
sub rsi, r14
jne 0x140002e20
lea r14, [0x140025de0]
xor edi, edi
mov rcx, r15
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov r8, qword [0x14003ede0]
jmp 0x140002c50
call qword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
mov esi, 0x80
lea r8, [0x1400206f0]
mov r9d, eax
lea rcx, [rbp]
mov edx, esi
call fcn.140001060
movzx eax, byte [rbp]
lea rbx, [rbp + 0x80]
mov word [rbp + 0x80], di
lea rdi, [rbp]
test al, al
je 0x140002f56
nop dword [rax]
mov r8d, 2
mov byte [rsp + 0x50], al
lea rdx, [rsp + 0x50]
mov byte [rsp + 0x51], 0
lea rcx, [rsp + 0x58]
call fcn.140006c58
cmp rax, 1
jne 0x14000311f
cmp word [rbx], 0
mov rax, rsi
mov rcx, rbx
je 0x140002f2d
nop dword [rax]
nop dword [rax + rax]
add rcx, 2
dec rax
cmp word [rcx], 0
jne 0x140002f20
cmp rax, 1
jb 0x14000311f
movzx eax, word [rsp + 0x58]
inc rdi
mov word [rcx], ax
add rbx, 2
xor eax, eax
dec rsi
mov word [rcx + 2], ax
movzx eax, byte [rdi]
test al, al
jne 0x140002ee0
lea rdx, [rbp + 0x80]
lea rcx, str.NUITKA_ONEFILE_PARENT
call fcn.1400010c0
call fcn.1400011c0
mov rdx, rax
lea rcx, str.NUITKA_ONEFILE_BINARY
call fcn.1400010c0
mov rdx, qword [rsp + 0x70]
lea rcx, str.NUITKA_ORIGINAL_ARGV0
mov rdx, qword [rdx]
call fcn.1400010c0
xorps xmm0, xmm0
xor eax, eax
movups xmmword [rbp - 0x40], xmm0
mov ecx, 0xfffffff6
mov dword [rbp - 0x34], 0x100
movups xmmword [rbp - 0x70], xmm0
mov qword [rbp - 0x10], rax
movups xmmword [rbp - 0x60], xmm0
movups xmmword [rbp - 0x50], xmm0
movups xmmword [rbp - 0x30], xmm0
movups xmmword [rbp - 0x20], xmm0
call qword [sym.imp.KERNEL32.dll_GetStdHandle]
mov ecx, 0xfffffff5
mov qword [rbp - 0x20], rax
call qword [sym.imp.KERNEL32.dll_GetStdHandle]
mov ecx, 0xfffffff4
mov qword [rbp - 0x18], rax
call qword [sym.imp.KERNEL32.dll_GetStdHandle]
mov qword [rbp - 0x10], rax
mov dword [rbp - 0x70], 0x68
call fcn.1400022e0
mov rdx, rax
xor ebx, ebx
lea rax, [rsp + 0x78]
xor r9d, r9d
mov qword [rsp + 0x48], rax
xor r8d, r8d
lea rax, [rbp - 0x70]
mov rcx, r14
mov qword [rsp + 0x40], rax
mov qword [rsp + 0x38], rbx
mov qword [rsp + 0x30], rbx
mov dword [rsp + 0x28], 0x20
mov dword [rsp + 0x20], 1
call qword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
je 0x140003111
mov rcx, qword [rbp - 0x80]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rsp + 0x78]
mov qword [0x140025dd8], rcx
mov dword [rsp + 0x5c], ebx
test rcx, rcx
je 0x140003097
mov edx, 0xffffffff
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov rcx, qword [0x140025dd8]
lea rdx, [rsp + 0x5c]
call qword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
test eax, eax
jne 0x140003083
mov dword [rsp + 0x5c], 1
mov rcx, qword [0x140025dd8]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov qword [0x140025dd8], rbx
call fcn.140002170
mov eax, dword [rsp + 0x5c]
mov r12, qword [rsp + 0xdc0]
mov rcx, qword [rbp + 0xc80]
xor rcx, rsp
call fcn.140003140
lea r11, [rsp + 0xd90]
mov rbx, qword [r11 + 0x40]
mov rsi, qword [r11 + 0x48]
mov rsp, r11
pop r15
pop r14
pop r13
pop rdi
pop rbp
ret
lea rcx, str.TEMPonefile_PID_TIME
call fcn.1400019b0
int3
lea rcx, str.Error__failed_to_register_signal_handler.
call fcn.1400018e0
int3
call fcn.140006924
int3
call fcn.140006924
int3
call fcn.140006924
int3
call fcn.140001920
int3
call fcn.140001980
int3
call fcn.140006924
int3
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
call fcn.140001960
int3
call fcn.140006924
int3
call fcn.140001940
int3