Function at 0x1400026f0
Capabilities:
Check if file exists
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.140007bdc
call fcn.140007be4
xor edi, edi
mov qword [rsp + 0xdc0], r12
mov r15d, 0x1000
lea r13, str.TEMP_file_copy_application_PID_TIME
lea r14, [0x14003c5f0]
mov ecx, 0x7b
mov rax, qword [rax]
mov esi, 0x80
mov qword [rsp + 0x70], rax
mov eax, edi
mov word [0x14003c5f0], di
cmp cx, 0x7b
jne 0x14000277e
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.14000f650
test eax, eax
jne 0x1400027be
mov rdx, r14
mov ecx, r15d
call qword [sym.imp.KERNEL32.dll_GetTempPathW]
mov r12b, 1
jmp 0x140002c3d
lea rdx, [0x140025ba8]
lea rcx, [rbp + 0x480]
call fcn.14000f650
test eax, eax
jne 0x14000282d
mov rbx, r15
call fcn.140007be4
cmp word [r14], 0
mov rcx, qword [rax]
mov rax, r14
mov rdx, qword [rcx]
je 0x1400027fd
nop dword [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 0x140003292
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.14000f650
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 0x140003272
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.14000f650
test eax, eax
jne 0x140002c3d
mov word [rbx - 8], di
jmp 0x140002c3d
lea rdx, [0x140025c08]
lea rcx, [rbp + 0x480]
call fcn.14000f650
test eax, eax
jne 0x14000299b
call qword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
lea r8, [0x140025b90]
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.140007968
cmp rax, 1
jne 0x14000328c
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 0x14000328c
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, [0x140025c10]
lea rcx, [rbp + 0x480]
call fcn.14000f650
test eax, eax
jne 0x1400029b9
mov edx, 0x28
jmp 0x1400029d5
lea rdx, str.CACHE_DIR
lea rcx, [rbp + 0x480]
call fcn.14000f650
test eax, eax
jne 0x1400029f0
mov edx, 0x1c
mov r8, r15
mov rcx, r14
call fcn.140001230
test al, al
je 0x140003272
mov r12b, 1
jmp 0x140002c3d
lea rdx, str.COMPANY
lea rcx, [rbp + 0x480]
call fcn.14000f650
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.AGREX__INC.
sub r8, rcx
nop word [rax + rax]
cmp rdx, 1
jb 0x140003292
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.14000f650
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, [0x140025c70]
sub r8, rcx
nop word [rax + rax]
cmp rdx, 1
jb 0x140003292
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.14000f650
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.1.0.0
sub r8, rcx
nop word [rax + rax]
cmp rdx, 1
jb 0x140003292
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.14000f650
test eax, eax
jne 0x140003272
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.140007968
cmp rax, 1
jne 0x140003298
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 0x140003298
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 0x140003272
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 0x140002765
mov edx, 1
mov word [r14], di
lea rcx, [0x140002390]
call qword [sym.imp.KERNEL32.dll_SetConsoleCtrlHandler]
test eax, eax
je 0x14000327f
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 [0x140042df8], rax
mov qword [0x140042df0], rax
call qword [sym.imp.KERNEL32.dll_SizeofResource]
mov rax, qword [0x140042df0]
movzx ecx, word [rax]
movzx edx, byte [rax + 2]
add rax, 3
mov word [rsp + 0x50], cx
mov qword [0x140042df0], rax
cmp cl, 0x4b
jne 0x1400032c4
cmp byte [rsp + 0x51], 0x41
jne 0x1400032c4
cmp dl, 0x58
jne 0x1400032c4
call fcn.1400034f0
mov byte [0x14002bde8], 1
lea r13, [0x14003e5f0]
lea r12, [0x14004ce10]
lea r14, [0x14002bdf0]
nop
mov rax, qword [0x140042df0]
mov rdx, r13
movzx ecx, word [rax]
lea r8, [rax + 2]
mov qword [0x140042df0], r8
mov word [0x14003e5f0], cx
test cx, cx
je 0x140002fc8
mov rcx, r8
nop dword [rax + rax]
movzx eax, word [r8]
lea rdx, [rdx + 2]
mov word [rdx], ax
lea r8, [rcx + 2]
mov rcx, r8
test ax, ax
jne 0x140002db0
cmp word [0x14003e5f0], ax
mov qword [0x140042df0], r8
je 0x140002fc8
cmp word [0x14003c5f0], ax
mov edx, 0x1000
mov word [0x14004ce10], di
mov rcx, r12
je 0x140002e21
lea r9, [0x14003c5f0]
sub r9, r12
nop dword [rax]
cmp rdx, 1
jb 0x1400032aa
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 [0x14004ce10], 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 0x1400032aa
mov dword [rax], 0x5c
mov edx, 0x1000
cmp word [0x14004ce10], 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 0x1400032aa
movzx ecx, word [r9 + rax]
dec rdx
mov word [rax], cx
add rax, 2
cmp word [r9 + rax], 0
jne 0x140002e83
cmp word [0x14002bdf0], 0
mov word [rax], di
jne 0x140002ef4
cmp word [0x14004ce10], 0
mov edx, 0x1000
mov rcx, r14
je 0x140002ef1
mov r9, r12
sub r9, r14
nop dword [rax]
cmp rdx, 1
jb 0x1400032aa
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 [0x140042df0], 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 0x1400032a4
test rsi, rsi
je 0x140002fba
nop dword [rax]
nop dword [rax + rax]
mov rbx, qword [0x140042df0]
lea rcx, [0x140044e10]
mov edi, 0x8000
mov rdx, rbx
cmp rsi, rdi
cmovbe edi, esi
movsxd r14, edi
mov r8, r14
call fcn.14001bcf0
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, [0x140044e10]
mov qword [0x140042df0], rbx
mov rcx, r15
call qword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x14000329e
sub rsi, r14
jne 0x140002f50
lea r14, [0x14002bdf0]
xor edi, edi
mov rcx, r15
call qword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x140002d80
call qword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
mov esi, 0x80
lea r8, [0x140025b90]
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 word [rax + rax]
mov r8d, 2
mov byte [rsp + 0x50], al
lea rdx, [rsp + 0x50]
mov byte [rsp + 0x51], 0
lea rcx, [rsp + 0x58]
call fcn.140007968
cmp rax, 1
jne 0x1400032be
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 0x1400032be
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
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.1400023c0
mov rdx, rax
xor edi, edi
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], rdi
mov qword [rsp + 0x30], rdi
mov dword [rsp + 0x28], 0x20
mov dword [rsp + 0x20], 1
call qword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
je 0x1400032b0
mov rcx, qword [rbp - 0x80]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rax, qword [rsp + 0x78]
mov ebx, 0x32
mov qword [0x14002bdd8], rax
mov dword [rsp + 0x5c], edi
test rax, rax
je 0x140003236
mov edx, ebx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov rcx, qword [0x14002bdd8]
lea rdx, [rsp + 0x5c]
call qword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
test eax, eax
je 0x14000321a
cmp dword [rsp + 0x5c], 0x103
jne 0x140003222
cmp byte [0x14002bdd4], dil
je 0x140003203
lea rcx, [0x14004ee10]
call qword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x1400031fa
mov rcx, qword [0x14002bde0]
test rcx, rcx
je 0x1400031f1
call qword [sym.imp.USER32.dll_DestroyWindow]
mov qword [0x14002bde0], rdi
mov byte [0x14002bdd4], dil
jmp 0x140003203
cmp byte [0x14002bdd4], dil
jne 0x140003208
mov ebx, 0xffffffff
mov rax, qword [0x14002bdd8]
test rax, rax
jne 0x140003193
jmp 0x140003236
mov dword [rsp + 0x5c], 1
mov rcx, qword [0x14002bdd8]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov qword [0x14002bdd8], rdi
call fcn.140002250
mov eax, dword [rsp + 0x5c]
mov r12, qword [rsp + 0xdc0]
mov rcx, qword [rbp + 0xc80]
xor rcx, rsp
call fcn.140003e10
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.TEMP_file_copy_application_PID_TIME
call fcn.140001a20
int3
lea rcx, str.Error__failed_to_register_signal_handler.
call fcn.140001950
int3
call fcn.140007634
int3
call fcn.140007634
int3
call fcn.140007634
int3
call fcn.140001990
int3
call fcn.1400019f0
int3
call fcn.140007634
int3
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
call fcn.1400019d0
int3
call fcn.140007634
int3
call fcn.1400019b0
int3