Function at 0x14000c5b0
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 r11, rsp
mov qword [r11 + 0x10], rbx
mov qword [r11 + 0x18], rsi
push rbp
push rdi
push r13
push r14
push r15
lea rbp, [r11 - 0xca8]
sub rsp, 0xd80
mov rax, qword [section..data]
xor rax, rsp
mov qword [rbp + 0xc70], rax
xor edi, edi
mov qword [r11 + 8], r12
mov word [0x140040390], di
lea r13, str.TEMPonefile_PID_TIME
mov eax, edi
lea rsi, [0x140040390]
mov r15d, 0x1000
mov ecx, 0x7b
mov r14d, 0x80
cmp cx, 0x7b
jne 0x14000c629
lea rax, [rbp + 0x470]
mov word [rbp + 0x470], di
jmp 0x14000ca0b
movzx ecx, word [r13]
cmp cx, 0x7d
jne 0x14000c9e6
lea rdx, str.TEMP
mov word [rax], di
lea rcx, [rbp + 0x470]
xor r12b, r12b
call fcn.140015164
test eax, eax
jne 0x14000c669
mov rdx, rsi
mov ecx, r15d
call qword [sym.imp.KERNEL32.dll_GetTempPathW]
mov r12b, 1
jmp 0x14000c9aa
lea rdx, [0x140025980]
lea rcx, [rbp + 0x470]
call fcn.140015164
test eax, eax
jne 0x14000c6dd
mov rbx, r15
call fcn.140010ecc
cmp word [rsi], 0
mov rcx, qword [rax]
mov rax, rsi
mov rdx, qword [rcx]
je 0x14000c6ad
nop word [rax + rax]
add rax, 2
dec rbx
cmp word [rax], 0
jne 0x14000c6a0
movzx ecx, word [rdx]
test cx, cx
je 0x14000c6d5
cmp rbx, 1
jb 0x14000cfe5
add rdx, 2
mov word [rax], cx
add rax, 2
dec rbx
movzx ecx, word [rdx]
test cx, cx
jne 0x14000c6b5
mov word [rax], di
jmp 0x14000c9aa
lea rdx, str.PROGRAM_BASE
lea rcx, [rbp + 0x470]
call fcn.140015164
test eax, eax
jne 0x14000c769
mov rax, 0xffffffffffffffff
nop dword [rax + rax]
inc rax
cmp word [rsi + rax*2], 0
jne 0x14000c700
mov r8, r15
lea rdx, str.PROGRAM
sub r8, rax
mov rcx, rsi
call fcn.14000ba10
test al, al
je 0x14000cfc5
mov rax, 0xffffffffffffffff
nop
inc rax
cmp word [rsi + rax*2], 0
jne 0x14000c730
cmp rax, 4
jb 0x14000c9aa
lea rbx, [rsi + rax*2]
lea rcx, [rbx - 8]
lea rdx, str..exe
call fcn.140015164
test eax, eax
jne 0x14000c9aa
mov word [rbx - 8], di
jmp 0x14000c9aa
lea rdx, [0x1400259d8]
lea rcx, [rbp + 0x470]
call fcn.140015164
test eax, eax
jne 0x14000c84c
call qword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
lea r8, [0x140025968]
mov rdx, r14
mov r9d, eax
lea rcx, [rbp - 0x10]
call fcn.14000c550
cmp word [rsi], 0
lea r14, [rbp - 0x10]
mov rdi, r15
mov rbx, rsi
je 0x14000c7bd
add rbx, 2
dec rdi
cmp word [rbx], 0
jne 0x14000c7b0
movzx eax, byte [rbp - 0x10]
test al, al
je 0x14000c9a2
nop dword [rax]
mov r8d, 2
mov byte [rsp + 0x50], al
lea rdx, [rsp + 0x50]
mov byte [rsp + 0x51], r12b
lea rcx, [rsp + 0x54]
call fcn.140010e00
cmp rax, 1
jne 0x14000cfdf
cmp word [rbx], 0
mov rax, rdi
mov rcx, rbx
je 0x14000c81d
nop dword [rax]
nop dword [rax + rax]
add rcx, 2
dec rax
cmp word [rcx], 0
jne 0x14000c810
cmp rax, 1
jb 0x14000cfdf
movzx eax, word [rsp + 0x54]
inc r14
mov word [rcx], ax
add rbx, 2
xor eax, eax
dec rdi
mov word [rcx + 2], ax
movzx eax, byte [r14]
test al, al
jne 0x14000c7d0
jmp 0x14000c9a2
lea rdx, [0x1400259e0]
lea rcx, [rbp + 0x470]
call fcn.140015164
test eax, eax
jne 0x14000c86a
mov edx, 0x28
jmp 0x14000c886
lea rdx, str.CACHE_DIR
lea rcx, [rbp + 0x470]
call fcn.140015164
test eax, eax
jne 0x14000c8a1
mov edx, 0x1c
mov r8, r15
mov rcx, rsi
call fcn.14000b050
test al, al
je 0x14000cfc5
mov r12b, 1
jmp 0x14000c9aa
lea rdx, str.VERSION
lea rcx, [rbp + 0x470]
call fcn.140015164
test eax, eax
jne 0x14000c909
mov rdx, r15
mov rcx, rsi
cmp word [rsi], ax
je 0x14000c8d0
add rcx, 2
dec rdx
cmp word [rcx], 0
jne 0x14000c8c3
lea r8, [0x140025a18]
sub r8, rcx
nop word [rax + rax]
cmp rdx, 1
jb 0x14000cfe5
movzx eax, word [r8 + rcx]
dec rdx
mov word [rcx], ax
add rcx, 2
cmp word [r8 + rcx], 0
jne 0x14000c8e0
mov word [rcx], di
jmp 0x14000c9aa
lea rdx, str.TIME
lea rcx, [rbp + 0x470]
call fcn.140015164
test eax, eax
jne 0x14000cfc5
lea rcx, [rsp + 0x60]
mov qword [rsp + 0x60], rdi
call qword [sym.imp.KERNEL32.dll_GetSystemTimeAsFileTime]
mov r9, qword [rsp + 0x60]
lea r8, str._lld
mov edx, 0x400
lea rcx, [rbp + 0x70]
call fcn.14000c550
cmp word [rsi], 0
lea r14, [rbp + 0x70]
mov rdi, r15
mov rbx, rsi
je 0x14000c96d
nop
add rbx, 2
dec rdi
cmp word [rbx], 0
jne 0x14000c960
movzx eax, byte [rbp + 0x70]
test al, al
je 0x14000c9a2
nop word [rax + rax]
mov r8, rdi
movzx edx, al
mov rcx, rbx
call fcn.14000afd0
movzx eax, byte [r14 + 1]
lea r14, [r14 + 1]
add rbx, 2
dec rdi
test al, al
jne 0x14000c980
mov r14d, 0x80
xor edi, edi
cmp word [rsi], 0
je 0x14000c9bd
add rsi, 2
dec r15
cmp word [rsi], 0
jne 0x14000c9b0
test r12b, r12b
je 0x14000c9e1
cmp word [rsi - 2], 0x5c
jne 0x14000c9e1
nop dword [rax]
sub rsi, 2
inc r15
mov word [rsi], di
cmp word [rsi - 2], 0x5c
je 0x14000c9d0
mov rax, rdi
jmp 0x14000ca0b
test rax, rax
je 0x14000c9f4
mov word [rax], cx
add rax, 2
jmp 0x14000ca0b
cmp r15, 1
jb 0x14000cfc5
mov word [rsi], cx
add rsi, 2
dec r15
mov word [rsi], di
movzx ecx, word [r13 + 2]
add r13, 2
test cx, cx
jne 0x14000c610
mov edx, 1
mov word [rsi], di
lea rcx, [0x14000c290]
call qword [sym.imp.KERNEL32.dll_SetConsoleCtrlHandler]
test eax, eax
je 0x14000cfd2
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 [0x140037b38], rax
mov qword [0x140037b40], rax
call qword [sym.imp.KERNEL32.dll_SizeofResource]
mov eax, eax
mov qword [0x140037b48], rax
mov rax, qword [0x140037b40]
movzx ecx, word [rax]
movzx edx, byte [rax + 2]
add rax, 3
mov word [rsp + 0x50], cx
mov qword [0x140037b40], rax
cmp cl, 0x4b
jne 0x14000d021
cmp byte [rsp + 0x51], 0x41
jne 0x14000d021
cmp dl, 0x59
jne 0x14000d021
mov ecx, 0x20000
mov qword [0x140037b58], rdi
call fcn.1400107b0
mov qword [0x140037b70], rax
test rax, rax
je 0x14000d01b
call fcn.1400059a0
mov qword [0x140037b50], rax
test rax, rax
je 0x14000d01b
mov rax, qword [0x140037b40]
lea r12, [0x140037b90]
mov qword [0x140037b58], rax
lea r15, [0x140054b90]
mov rax, qword [0x140037b48]
lea r13, [0x140054390]
mov qword [0x140037b60], rax
mov qword [0x140037b68], rdi
mov byte [0x140031b0c], 1
nop word [rax + rax]
mov edx, 2
lea rcx, [rsp + 0x50]
mov rbx, r12
call fcn.14000c330
movzx eax, word [rsp + 0x50]
mov word [0x140037b90], ax
test ax, ax
je 0x14000cd5b
nop word [rax + rax]
mov edx, 2
lea rcx, [rsp + 0x50]
lea rbx, [rbx + 2]
call fcn.14000c330
movzx eax, word [rsp + 0x50]
mov word [rbx], ax
test ax, ax
jne 0x14000cb70
cmp word [0x140037b90], ax
je 0x14000cd5b
xor ebx, ebx
mov edx, 0x1000
cmp word [0x140040390], bx
mov rcx, r15
mov word [0x140054b90], bx
je 0x14000cbe1
lea r8, [0x140040390]
sub r8, r15
cmp rdx, 1
jb 0x14000d015
movzx eax, word [r8 + rcx]
dec rdx
mov word [rcx], ax
add rcx, 2
cmp word [r8 + rcx], bx
jne 0x14000cbc1
mov word [rcx], bx
mov rax, r15
cmp word [0x140054b90], bx
mov ecx, 0x1000
je 0x14000cc16
nop word [rax + rax]
add rax, 2
dec rcx
cmp word [rax], bx
jne 0x14000cc00
cmp rcx, 1
jb 0x14000d015
mov dword [rax], 0x5c
mov edx, 0x1000
cmp word [0x140054b90], bx
mov rax, r15
je 0x14000cc3c
nop dword [rax]
add rax, 2
dec rdx
cmp word [rax], bx
jne 0x14000cc30
mov r8, r12
sub r8, rax
cmp rdx, 1
jb 0x14000d015
movzx ecx, word [r8 + rax]
dec rdx
mov word [rax], cx
add rax, 2
cmp word [r8 + rax], bx
jne 0x14000cc42
cmp word [0x140054390], bx
mov word [rax], bx
jne 0x14000cca8
cmp word [0x140054b90], bx
mov edx, 0x1000
mov rcx, r13
je 0x14000cca5
mov r8, r15
sub r8, r13
cmp rdx, 1
jb 0x14000d015
movzx eax, word [r8 + rcx]
dec rdx
mov word [rcx], ax
add rcx, 2
cmp word [r8 + rcx], bx
jne 0x14000cc85
mov word [rcx], bx
mov edx, 8
lea rcx, [rsp + 0x60]
call fcn.14000c330
mov rcx, r15
call fcn.14000b340
mov qword [rsp + 0x30], rbx
xor r9d, r9d
mov dword [rsp + 0x28], ebx
mov edx, 0x40000000
mov r8d, 2
mov dword [rsp + 0x20], 2
mov rcx, r15
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov r14, rax
cmp rax, 0xffffffffffffffff
je 0x14000cff1
mov rdi, qword [rsp + 0x60]
test rdi, rdi
je 0x14000cd4d
nop
mov ebx, 0x8000
lea rcx, [0x140038390]
cmp rdi, rbx
cmovbe ebx, edi
movsxd rsi, ebx
mov rdx, rsi
call fcn.14000c330
xor eax, eax
lea r9, [rsp + 0x54]
mov r8d, ebx
mov dword [rsp + 0x54], eax
lea rdx, [0x140038390]
mov qword [rsp + 0x20], rax
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x14000cfeb
sub rdi, rsi
jne 0x14000cd00
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x14000cb40
mov rcx, qword [0x140037b50]
call fcn.14000a000
mov rcx, qword [0x140037b70]
call fcn.14001079c
call qword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
mov r14d, 0x80
lea r8, [0x140025968]
mov r9d, eax
lea rcx, [rbp - 0x10]
mov edx, r14d
call fcn.14000c550
movzx eax, byte [rbp - 0x10]
lea rdi, [rbp - 0x10]
xor esi, esi
lea rbx, [rbp + 0x70]
mov word [rbp + 0x70], si
test al, al
je 0x14000ce16
nop dword [rax + rax]
mov r8d, 2
mov byte [rsp + 0x50], al
lea rdx, [rsp + 0x50]
mov byte [rsp + 0x51], sil
lea rcx, [rsp + 0x54]
call fcn.140010e00
cmp rax, 1
jne 0x14000d00f
mov rax, r14
mov rcx, rbx
cmp word [rbx], si
je 0x14000cdef
add rcx, 2
dec rax
cmp word [rcx], si
jne 0x14000cde3
cmp rax, 1
jb 0x14000d00f
movzx eax, word [rsp + 0x54]
inc rdi
mov word [rcx], ax
add rbx, 2
dec r14
mov word [rcx + 2], si
movzx eax, byte [rdi]
test al, al
jne 0x14000cdb0
lea rdx, [rbp + 0x70]
lea rcx, str.NUITKA_ONEFILE_PARENT
call fcn.14000c460
cmp word [0x140035b20], si
jne 0x14000ce6f
mov ebx, 0x1001
lea rdx, [0x140035b20]
mov r8d, ebx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
cmp word [0x140035b20], si
lea rax, [0x140035b20]
je 0x14000ce6c
cmp rbx, 1
jb 0x14000d015
add rax, 2
dec rbx
cmp word [rax], si
jne 0x14000ce56
mov word [rax], si
lea rdx, [0x140035b20]
lea rcx, str.NUITKA_ONEFILE_BINARY
call fcn.14000c460
xorps xmm0, xmm0
xor eax, eax
movups xmmword [rbp - 0x50], xmm0
mov ecx, 0xfffffff6
mov dword [rbp - 0x44], 0x100
movups xmmword [rbp - 0x80], xmm0
mov qword [rbp - 0x20], rax
movups xmmword [rbp - 0x70], xmm0
movups xmmword [rbp - 0x60], xmm0
movups xmmword [rbp - 0x40], xmm0
movups xmmword [rbp - 0x30], xmm0
call qword [sym.imp.KERNEL32.dll_GetStdHandle]
mov ecx, 0xfffffff5
mov qword [rbp - 0x30], rax
call qword [sym.imp.KERNEL32.dll_GetStdHandle]
mov ecx, 0xfffffff4
mov qword [rbp - 0x28], rax
call qword [sym.imp.KERNEL32.dll_GetStdHandle]
mov qword [rbp - 0x20], rax
mov dword [rbp - 0x80], 0x68
call fcn.14000bf50
mov rdx, rax
xor r9d, r9d
lea rax, [rsp + 0x68]
xor r8d, r8d
mov qword [rsp + 0x48], rax
mov rcx, r13
lea rax, [rbp - 0x80]
mov qword [rsp + 0x40], rax
mov qword [rsp + 0x38], rsi
mov qword [rsp + 0x30], rsi
mov dword [rsp + 0x28], 0x20
mov dword [rsp + 0x20], 1
call qword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
je 0x14000cffa
mov rcx, qword [rsp + 0x70]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rsp + 0x68]
mov qword [0x140031b00], rcx
mov dword [rsp + 0x58], esi
test rcx, rcx
je 0x14000cf87
mov edx, 0xffffffff
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov rcx, qword [0x140031b00]
lea rdx, [rsp + 0x58]
call qword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
test eax, eax
jne 0x14000cf73
mov dword [rsp + 0x58], 1
mov rcx, qword [0x140031b00]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov qword [0x140031b00], rsi
xor ecx, ecx
call fcn.14000b1d0
mov eax, dword [rsp + 0x58]
mov r12, qword [rsp + 0xdb0]
mov rcx, qword [rbp + 0xc70]
xor rcx, rsp
call fcn.14000d120
lea r11, [rsp + 0xd80]
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.14000be60
int3
lea rcx, str.Error__failed_to_register_signal_handler.
call fcn.14000bdd0
int3
call fcn.140010acc
int3
call fcn.140010acc
int3
call fcn.14000bec0
int3
mov rcx, r15
call fcn.14000be90
int3
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
lea rcx, str.Error__couldnt_launch_child
call fcn.14000be10
int3
call fcn.140010acc
int3
call fcn.140010acc
int3
call fcn.14000be40
int3
call fcn.14000be20
int3