Function at 0x1400026f0
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 + 0x10], rbx
mov qword [rsp + 0x18], 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
call fcn.140007024
call fcn.14000702c
xor edi, edi
mov qword [rsp + 0xdc0], r12
mov word [0x1400365e0], di
lea r13, str.TEMPonefile_PID_TIME
mov eax, edi
lea r14, [0x1400365e0]
mov r15d, 0x1000
mov ecx, 0x7b
mov esi, 0x80
nop dword [rax]
cmp cx, 0x7b
jne 0x140002779
lea rax, [rbp + 0x480]
mov word [rbp + 0x480], di
jmp 0x140002caf
movzx ecx, word [r13]
cmp cx, 0x7d
jne 0x140002c88
lea rdx, str.TEMP
mov word [rax], di
lea rcx, [rbp + 0x480]
xor r12b, r12b
call fcn.14000b1d8
test eax, eax
jne 0x1400027b9
mov rdx, r14
mov ecx, r15d
call qword [sym.imp.KERNEL32.dll_GetTempPathW]
mov r12b, 1
jmp 0x140002c3d
lea rdx, [0x1400206b8]
lea rcx, [rbp + 0x480]
call fcn.14000b1d8
test eax, eax
jne 0x14000282d
mov rbx, r15
call fcn.14000702c
cmp word [r14], 0
mov rcx, qword [rax]
mov rax, r14
mov rdx, qword [rcx]
je 0x1400027fd
nop dword [rax + rax]
add rax, 2
dec rbx
cmp word [rax], 0
jne 0x1400027f0
movzx ecx, word [rdx]
test cx, cx
je 0x140002825
cmp rbx, 1
jb 0x140003210
add rdx, 2
mov word [rax], cx
add rax, 2
dec rbx
movzx ecx, word [rdx]
test cx, cx
jne 0x140002805
mov word [rax], di
jmp 0x140002c3d
lea rdx, str.PROGRAM_BASE
lea rcx, [rbp + 0x480]
call fcn.14000b1d8
test eax, eax
jne 0x1400028ba
mov rax, 0xffffffffffffffff
nop dword [rax + rax]
inc rax
cmp word [r14 + rax*2], 0
jne 0x140002850
mov r8, r15
lea rdx, str.PROGRAM
sub r8, rax
mov rcx, r14
call fcn.1400012f0
test al, al
je 0x1400031f0
mov rax, 0xffffffffffffffff
nop
inc rax
cmp word [r14 + rax*2], 0
jne 0x140002880
cmp rax, 4
jb 0x140002c3d
lea rbx, [r14 + rax*2]
lea rcx, [rbx - 8]
lea rdx, str..exe
call fcn.14000b1d8
test eax, eax
jne 0x140002c3d
mov word [rbx - 8], di
jmp 0x140002c3d
lea rdx, [0x140020718]
lea rcx, [rbp + 0x480]
call fcn.14000b1d8
test eax, eax
jne 0x14000299b
call qword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
lea r8, [0x1400206a0]
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 0x14000290f
add rbx, 2
dec rdi
cmp word [rbx], 0
jne 0x140002902
movzx eax, byte [rbp]
test al, al
je 0x140002c36
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.140006db8
cmp rax, 1
jne 0x14000320a
cmp word [rbx], 0
mov rax, rdi
mov rcx, rbx
je 0x14000296d
nop dword [rax]
nop dword [rax + rax]
add rcx, 2
dec rax
cmp word [rcx], 0
jne 0x140002960
cmp rax, 1
jb 0x14000320a
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 0x140002920
jmp 0x140002c36
lea rdx, [0x140020720]
lea rcx, [rbp + 0x480]
call fcn.14000b1d8
test eax, eax
jne 0x1400029b9
mov edx, 0x28
jmp 0x1400029d5
lea rdx, str.CACHE_DIR
lea rcx, [rbp + 0x480]
call fcn.14000b1d8
test eax, eax
jne 0x1400029f0
mov edx, 0x1c
mov r8, r15
mov rcx, r14
call fcn.140001230
test al, al
je 0x1400031f0
mov r12b, 1
jmp 0x140002c3d
lea rdx, str.COMPANY
lea rcx, [rbp + 0x480]
call fcn.14000b1d8
test eax, eax
jne 0x140002a59
mov rdx, r15
mov rcx, r14
cmp word [r14], ax
je 0x140002a20
add rcx, 2
dec rdx
cmp word [rcx], 0
jne 0x140002a13
lea r8, str.Macrovision_Corporation
sub r8, rcx
nop word [rax + rax]
cmp rdx, 1
jb 0x140003210
movzx eax, word [r8 + rcx]
dec rdx
mov word [rcx], ax
add rcx, 2
cmp word [r8 + rcx], 0
jne 0x140002a30
mov word [rcx], di
jmp 0x140002c3d
lea rdx, str.PRODUCT
lea rcx, [rbp + 0x480]
call fcn.14000b1d8
test eax, eax
jne 0x140002ac9
mov rdx, r15
mov rcx, r14
cmp word [r14], ax
je 0x140002a8d
nop dword [rax]
add rcx, 2
dec rdx
cmp word [rcx], 0
jne 0x140002a80
lea r8, str.InstallShield_R_
sub r8, rcx
nop word [rax + rax]
cmp rdx, 1
jb 0x140003210
movzx eax, word [r8 + rcx]
dec rdx
mov word [rcx], ax
add rcx, 2
cmp word [r8 + rcx], 0
jne 0x140002aa0
mov word [rcx], di
jmp 0x140002c3d
lea rdx, str.VERSION
lea rcx, [rbp + 0x480]
call fcn.14000b1d8
test eax, eax
jne 0x140002b39
mov rdx, r15
mov rcx, r14
cmp word [r14], ax
je 0x140002afd
nop dword [rax]
add rcx, 2
dec rdx
cmp word [rcx], 0
jne 0x140002af0
lea r8, str.10.50.0.125
sub r8, rcx
nop word [rax + rax]
cmp rdx, 1
jb 0x140003210
movzx eax, word [r8 + rcx]
dec rdx
mov word [rcx], ax
add rcx, 2
cmp word [r8 + rcx], 0
jne 0x140002b10
mov word [rcx], di
jmp 0x140002c3d
lea rdx, str.TIME
lea rcx, [rbp + 0x480]
call fcn.14000b1d8
test eax, eax
jne 0x1400031f0
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 0x140002bad
nop word [rax + rax]
add rbx, 2
dec rdi
cmp word [rbx], 0
jne 0x140002ba0
movzx eax, byte [rbp + 0x80]
test al, al
je 0x140002c36
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.140006db8
cmp rax, 1
jne 0x140003216
cmp word [rbx], 0
mov rax, rdi
mov rcx, rbx
je 0x140002c0d
nop dword [rax]
nop dword [rax + rax]
add rcx, 2
dec rax
cmp word [rcx], 0
jne 0x140002c00
cmp rax, 1
jb 0x140003216
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 0x140002bc0
xor edi, edi
mov esi, 0x80
cmp word [r14], 0
je 0x140002c5e
nop dword [rax]
nop dword [rax + rax]
add r14, 2
dec r15
cmp word [r14], 0
jne 0x140002c50
test r12b, r12b
je 0x140002c83
cmp word [r14 - 2], 0x5c
jne 0x140002c83
nop dword [rax + rax]
sub r14, 2
inc r15
mov word [r14], di
cmp word [r14 - 2], 0x5c
je 0x140002c70
mov rax, rdi
jmp 0x140002caf
test rax, rax
je 0x140002c96
mov word [rax], cx
add rax, 2
jmp 0x140002caf
cmp r15, 1
jb 0x1400031f0
mov word [r14], cx
add r14, 2
dec r15
mov word [r14], di
movzx ecx, word [r13 + 2]
add r13, 2
test cx, cx
jne 0x140002760
mov edx, 1
mov word [r14], di
lea rcx, [0x140002390]
call qword [sym.imp.KERNEL32.dll_SetConsoleCtrlHandler]
test eax, eax
je 0x1400031fd
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 [0x14003cde0], rax
call qword [sym.imp.KERNEL32.dll_SizeofResource]
mov r8, qword [0x14003cde0]
movzx eax, word [r8]
movzx ecx, byte [r8 + 2]
add r8, 3
mov word [rsp + 0x50], ax
mov qword [0x14003cde0], r8
cmp al, 0x4b
jne 0x140003242
cmp byte [rsp + 0x51], 0x41
jne 0x140003242
cmp cl, 0x58
jne 0x140003242
mov byte [0x14003cde8], 1
lea r13, [0x1400385e0]
lea r12, [0x140046e00]
lea r14, [0x140025de0]
nop word [rax + rax]
movzx eax, word [r8]
mov rcx, r13
add r8, 2
mov word [0x1400385e0], ax
mov qword [0x14003cde0], r8
test ax, ax
je 0x140002fcf
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 0x140002db0
cmp word [0x1400385e0], ax
mov qword [0x14003cde0], r8
je 0x140002fcf
cmp word [0x1400365e0], ax
mov edx, 0x1000
mov word [0x140046e00], di
mov rcx, r12
je 0x140002e21
lea r9, [0x1400365e0]
sub r9, r12
nop dword [rax]
cmp rdx, 1
jb 0x140003228
movzx eax, word [r9 + rcx]
dec rdx
mov word [rcx], ax
add rcx, 2
cmp word [r9 + rcx], 0
jne 0x140002e00
mov word [rcx], di
mov rax, r12
cmp word [0x140046e00], 0
mov ecx, 0x1000
je 0x140002e57
nop word [rax + rax]
add rax, 2
dec rcx
cmp word [rax], 0
jne 0x140002e40
cmp rcx, 1
jb 0x140003228
mov dword [rax], 0x5c
mov edx, 0x1000
cmp word [0x140046e00], 0
mov rax, r12
je 0x140002e7d
nop
add rax, 2
dec rdx
cmp word [rax], 0
jne 0x140002e70
mov r9, r13
sub r9, rax
cmp rdx, 1
jb 0x140003228
movzx ecx, word [r9 + rax]
dec rdx
mov word [rax], cx
add rax, 2
cmp word [r9 + rax], 0
jne 0x140002e83
cmp word [0x140025de0], 0
mov word [rax], di
jne 0x140002ef4
cmp word [0x140046e00], 0
mov edx, 0x1000
mov rcx, r14
je 0x140002ef1
mov r9, r12
sub r9, r14
nop dword [rax]
cmp rdx, 1
jb 0x140003228
movzx eax, word [r9 + rcx]
dec rdx
mov word [rcx], ax
add rcx, 2
cmp word [r9 + rcx], 0
jne 0x140002ed0
mov word [rcx], di
mov rsi, qword [r8]
mov rcx, r12
add r8, 8
mov qword [0x14003cde0], r8
call fcn.140002140
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 0x140003222
test rsi, rsi
je 0x140002fba
nop dword [rax]
nop dword [rax + rax]
mov rbx, qword [0x14003cde0]
lea rcx, [0x14003ee00]
mov edi, 0x8000
mov rdx, rbx
cmp rsi, rdi
cmovbe edi, esi
movsxd r14, edi
mov r8, r14
call fcn.140016aa0
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, [0x14003ee00]
mov qword [0x14003cde0], rbx
mov rcx, r15
call qword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x14000321c
sub rsi, r14
jne 0x140002f50
lea r14, [0x140025de0]
xor edi, edi
mov rcx, r15
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov r8, qword [0x14003cde0]
jmp 0x140002d80
call qword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
mov esi, 0x80
lea r8, [0x1400206a0]
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 0x140003086
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.140006db8
cmp rax, 1
jne 0x14000323c
cmp word [rbx], 0
mov rax, rsi
mov rcx, rbx
je 0x14000305d
nop dword [rax]
nop dword [rax + rax]
add rcx, 2
dec rax
cmp word [rcx], 0
jne 0x140003050
cmp rax, 1
jb 0x14000323c
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 0x140003010
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
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.1400023c0
mov rdx, rax
xor ebx, ebx
lea rax, [rsp + 0x70]
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 0x14000322e
mov rcx, qword [rsp + 0x78]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rsp + 0x70]
mov qword [0x140025dd8], rcx
mov dword [rsp + 0x5c], ebx
test rcx, rcx
je 0x1400031b4
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 0x1400031a0
mov dword [rsp + 0x5c], 1
mov rcx, qword [0x140025dd8]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov qword [0x140025dd8], rbx
call fcn.140002250
mov eax, dword [rsp + 0x5c]
mov r12, qword [rsp + 0xdc0]
mov rcx, qword [rbp + 0xc80]
xor rcx, rsp
call fcn.140003260
lea r11, [rsp + 0xd90]
mov rbx, qword [r11 + 0x38]
mov rsi, qword [r11 + 0x40]
mov rsp, r11
pop r15
pop r14
pop r13
pop rdi
pop rbp
ret
lea rcx, str.TEMPonefile_PID_TIME
call fcn.140001a20
int3
lea rcx, str.Error__failed_to_register_signal_handler.
call fcn.140001950
int3
call fcn.140006a84
int3
call fcn.140006a84
int3
call fcn.140006a84
int3
call fcn.140001990
int3
call fcn.1400019f0
int3
call fcn.140006a84
int3
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
call fcn.1400019d0
int3
call fcn.140006a84
int3
call fcn.1400019b0
int3