Function at 0x14000bc40
Capabilities:
Check if file exists
Create process on windows
Extract resource via kernel32 functions
Get common file path
Reference cloudflare dns server
Write and execute a file
Write file on windows

Disassembly:
mov r11, rsp
mov qword [r11 + 0x18], rbx
mov qword [r11 + 0x20], rsi
push rbp
push rdi
push r13
push r14
push r15
lea rbp, [r11 - 0xcd8]
sub rsp, 0xdb0
mov rax, qword [section..data]
xor rax, rsp
mov qword [rbp + 0xca0], rax
movzx eax, word [str.TEMPonefile_PID_TIME]
lea r13, str.TEMPonefile_PID_TIME
xor edi, edi
mov qword [rsp + 0x78], rdx
mov word [0x140049560], di
lea r14, [0x140049560]
mov ecx, edi
mov qword [r11 + 8], r12
mov r15d, 0x1000
mov esi, 0x80
cmp ax, 0x7b
jne 0x14000bcbf
lea rcx, [rbp + 0x4a0]
mov word [rbp + 0x4a0], di
jmp 0x14000c1ef
movzx eax, word [r13]
cmp ax, 0x7d
jne 0x14000c1c8
mov word [rcx], di
lea rdx, [0x14002fd60]
lea rcx, [rbp + 0x4a0]
xor r12b, r12b
call fcn.140018ef8
test eax, eax
jne 0x14000bcff
mov rdx, r14
mov ecx, r15d
call qword [sym.imp.KERNEL32.dll_GetTempPathW]
mov r12b, 1
jmp 0x14000c17d
lea rdx, [0x14002fd70]
lea rcx, [rbp + 0x4a0]
call fcn.140018ef8
test eax, eax
jne 0x14000bd6d
mov rbx, r15
call fcn.14001116c
cmp word [r14], 0
mov rcx, qword [rax]
mov rax, r14
mov rdx, qword [rcx]
je 0x14000bd3d
nop
add rax, 2
dec rbx
cmp word [rax], 0
jne 0x14000bd30
movzx ecx, word [rdx]
test cx, cx
je 0x14000bd65
cmp rbx, 1
jb 0x14000c85f
add rdx, 2
mov word [rax], cx
add rax, 2
dec rbx
movzx ecx, word [rdx]
test cx, cx
jne 0x14000bd45
mov word [rax], di
jmp 0x14000c17d
lea rdx, str.PROGRAM_BASE
lea rcx, [rbp + 0x4a0]
call fcn.140018ef8
test eax, eax
jne 0x14000bdfa
mov rax, 0xffffffffffffffff
nop dword [rax + rax]
inc rax
cmp word [r14 + rax*2], 0
jne 0x14000bd90
mov r8, r15
lea rdx, str.PROGRAM
sub r8, rax
mov rcx, r14
call fcn.14000a6d0
test al, al
je 0x14000c83f
mov rax, 0xffffffffffffffff
nop
inc rax
cmp word [r14 + rax*2], 0
jne 0x14000bdc0
cmp rax, 4
jb 0x14000c17d
lea rbx, [r14 + rax*2]
lea rcx, [rbx - 8]
lea rdx, str..exe
call fcn.140018ef8
test eax, eax
jne 0x14000c17d
mov word [rbx - 8], di
jmp 0x14000c17d
lea rdx, [0x14002fdc8]
lea rcx, [rbp + 0x4a0]
call fcn.140018ef8
test eax, eax
jne 0x14000bedb
call qword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
lea r8, [0x14002fd5c]
mov rdx, rsi
mov r9d, eax
lea rcx, [rbp + 0x20]
call fcn.140001060
cmp word [r14], 0
lea rsi, [rbp + 0x20]
mov rdi, r15
mov rbx, r14
je 0x14000be4f
add rbx, 2
dec rdi
cmp word [rbx], 0
jne 0x14000be42
movzx eax, byte [rbp + 0x20]
test al, al
je 0x14000c176
nop dword [rax + rax]
mov r8d, 2
mov byte [rsp + 0x50], al
lea rdx, [rsp + 0x50]
mov byte [rsp + 0x51], r12b
lea rcx, [rsp + 0x70]
call fcn.140010ef0
cmp rax, 1
jne 0x14000c859
cmp word [rbx], 0
mov rax, rdi
mov rcx, rbx
je 0x14000bead
nop dword [rax]
nop dword [rax + rax]
add rcx, 2
dec rax
cmp word [rcx], 0
jne 0x14000bea0
cmp rax, 1
jb 0x14000c859
movzx eax, word [rsp + 0x70]
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 0x14000be60
jmp 0x14000c176
lea rdx, [0x14002fdd0]
lea rcx, [rbp + 0x4a0]
call fcn.140018ef8
test eax, eax
jne 0x14000bef9
mov edx, 0x28
jmp 0x14000bf15
lea rdx, str.CACHE_DIR
lea rcx, [rbp + 0x4a0]
call fcn.140018ef8
test eax, eax
jne 0x14000bf30
mov edx, 0x1c
mov r8, r15
mov rcx, r14
call fcn.14000a610
test al, al
je 0x14000c83f
mov r12b, 1
jmp 0x14000c17d
lea rdx, str.COMPANY
lea rcx, [rbp + 0x4a0]
call fcn.140018ef8
test eax, eax
jne 0x14000bf99
mov rdx, r15
mov rcx, r14
cmp word [r14], ax
je 0x14000bf60
add rcx, 2
dec rdx
cmp word [rcx], 0
jne 0x14000bf53
lea r8, str.CODAP_SARL
sub r8, rcx
nop word [rax + rax]
cmp rdx, 1
jb 0x14000c85f
movzx eax, word [r8 + rcx]
dec rdx
mov word [rcx], ax
add rcx, 2
cmp word [r8 + rcx], 0
jne 0x14000bf70
mov word [rcx], di
jmp 0x14000c17d
lea rdx, str.PRODUCT
lea rcx, [rbp + 0x4a0]
call fcn.140018ef8
test eax, eax
jne 0x14000c009
mov rdx, r15
mov rcx, r14
cmp word [r14], ax
je 0x14000bfcd
nop dword [rax]
add rcx, 2
dec rdx
cmp word [rcx], 0
jne 0x14000bfc0
lea r8, str.Codap_TraceV3_Parser
sub r8, rcx
nop word [rax + rax]
cmp rdx, 1
jb 0x14000c85f
movzx eax, word [r8 + rcx]
dec rdx
mov word [rcx], ax
add rcx, 2
cmp word [r8 + rcx], 0
jne 0x14000bfe0
mov word [rcx], di
jmp 0x14000c17d
lea rdx, str.VERSION
lea rcx, [rbp + 0x4a0]
call fcn.140018ef8
test eax, eax
jne 0x14000c079
mov rdx, r15
mov rcx, r14
cmp word [r14], ax
je 0x14000c03d
nop dword [rax]
add rcx, 2
dec rdx
cmp word [rcx], 0
jne 0x14000c030
lea r8, str.1.0.0.1
sub r8, rcx
nop word [rax + rax]
cmp rdx, 1
jb 0x14000c85f
movzx eax, word [r8 + rcx]
dec rdx
mov word [rcx], ax
add rcx, 2
cmp word [r8 + rcx], 0
jne 0x14000c050
mov word [rcx], di
jmp 0x14000c17d
lea rdx, str.TIME
lea rcx, [rbp + 0x4a0]
call fcn.140018ef8
test eax, eax
jne 0x14000c83f
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 + 0xa0]
call fcn.140001060
cmp word [r14], 0
lea rsi, [rbp + 0xa0]
mov rdi, r15
mov rbx, r14
je 0x14000c0ed
nop word [rax + rax]
add rbx, 2
dec rdi
cmp word [rbx], 0
jne 0x14000c0e0
movzx eax, byte [rbp + 0xa0]
test al, al
je 0x14000c176
nop dword [rax + rax]
mov r8d, 2
mov byte [rsp + 0x54], al
lea rdx, [rsp + 0x54]
mov byte [rsp + 0x55], r12b
lea rcx, [rsp + 0x58]
call fcn.140010ef0
cmp rax, 1
jne 0x14000c865
cmp word [rbx], 0
mov rax, rdi
mov rcx, rbx
je 0x14000c14d
nop dword [rax]
nop dword [rax + rax]
add rcx, 2
dec rax
cmp word [rcx], 0
jne 0x14000c140
cmp rax, 1
jb 0x14000c865
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 0x14000c100
xor edi, edi
mov esi, 0x80
cmp word [r14], 0
je 0x14000c19e
nop dword [rax]
nop dword [rax + rax]
add r14, 2
dec r15
cmp word [r14], 0
jne 0x14000c190
test r12b, r12b
je 0x14000c1c3
cmp word [r14 - 2], 0x5c
jne 0x14000c1c3
nop dword [rax + rax]
sub r14, 2
inc r15
mov word [r14], di
cmp word [r14 - 2], 0x5c
je 0x14000c1b0
mov rcx, rdi
jmp 0x14000c1ef
test rcx, rcx
je 0x14000c1d6
mov word [rcx], ax
add rcx, 2
jmp 0x14000c1ef
cmp r15, 1
jb 0x14000c83f
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 0x14000bca6
mov edx, 1
mov word [r14], di
lea rcx, [0x14000b8e0]
call qword [sym.imp.KERNEL32.dll_SetConsoleCtrlHandler]
test eax, eax
je 0x14000c84c
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 [0x14004fd88], rax
mov qword [0x14004fd60], rax
call qword [sym.imp.KERNEL32.dll_SizeofResource]
mov eax, eax
mov qword [0x140037540], rax
mov rax, qword [0x14004fd60]
movzx ecx, word [rax]
movzx edx, byte [rax + 2]
add rax, 3
mov word [rsp + 0x54], cx
mov qword [0x14004fd60], rax
cmp cl, 0x4b
jne 0x14000c89e
cmp byte [rsp + 0x55], 0x41
jne 0x14000c89e
cmp dl, 0x59
jne 0x14000c89e
mov ecx, 0x20000
mov qword [0x140037548], rdi
call fcn.140017430
mov qword [0x14004fd70], rax
test rax, rax
je 0x14000c872
movups xmm0, xmmword [0x140030e40]
mov ecx, 0x274b8
movaps xmmword [rbp - 0x80], xmm0
movsd xmm0, qword [0x140030e50]
movsd qword [rsp + 0x60], xmm0
call fcn.140017430
mov rbx, rax
test rax, rax
je 0x14000c86b
movaps xmm0, xmmword [rbp - 0x80]
mov rcx, rax
movups xmmword [rax + 0x73a0], xmm0
movsd xmm0, qword [rsp + 0x60]
movsd qword [rax + 0x73b0], xmm0
call fcn.140005380
mov rax, qword [0x14004fd60]
mov qword [0x140037548], rax
mov rax, qword [0x140037540]
mov qword [0x140037550], rax
mov qword [0x140036d38], rbx
mov qword [0x140037558], rdi
call fcn.14000cad0
mov byte [0x14004fd68], 1
lea r12, [0x14004b560]
lea r15, [0x140047560]
lea r13, [0x140036d40]
nop word [rax + rax]
mov edx, 2
lea rcx, [rsp + 0x50]
mov rbx, r12
call fcn.14000ae70
movzx eax, word [rsp + 0x50]
mov word [0x14004b560], ax
test ax, ax
je 0x14000c58b
nop word [rax + rax]
mov edx, 2
lea rcx, [rsp + 0x50]
lea rbx, [rbx + 2]
call fcn.14000ae70
movzx eax, word [rsp + 0x50]
mov word [rbx], ax
test ax, ax
jne 0x14000c3a0
cmp word [0x14004b560], ax
je 0x14000c58b
xor ebx, ebx
mov edx, 0x1000
cmp word [0x140049560], bx
mov rcx, r15
mov word [0x140047560], bx
je 0x14000c411
lea r8, [0x140049560]
sub r8, r15
cmp rdx, 1
jb 0x14000c884
movzx eax, word [r8 + rcx]
dec rdx
mov word [rcx], ax
add rcx, 2
cmp word [r8 + rcx], bx
jne 0x14000c3f1
mov word [rcx], bx
mov rax, r15
cmp word [0x140047560], bx
mov ecx, 0x1000
je 0x14000c446
nop word [rax + rax]
add rax, 2
dec rcx
cmp word [rax], bx
jne 0x14000c430
cmp rcx, 1
jb 0x14000c884
mov dword [rax], 0x5c
mov edx, 0x1000
cmp word [0x140047560], bx
mov rax, r15
je 0x14000c46c
nop dword [rax]
add rax, 2
dec rdx
cmp word [rax], bx
jne 0x14000c460
mov r8, r12
sub r8, rax
cmp rdx, 1
jb 0x14000c884
movzx ecx, word [r8 + rax]
dec rdx
mov word [rax], cx
add rax, 2
cmp word [r8 + rax], bx
jne 0x14000c472
cmp word [0x140036d40], bx
mov word [rax], bx
jne 0x14000c4d8
cmp word [0x140047560], bx
mov edx, 0x1000
mov rcx, r13
je 0x14000c4d5
mov r8, r15
sub r8, r13
cmp rdx, 1
jb 0x14000c884
movzx eax, word [r8 + rcx]
dec rdx
mov word [rcx], ax
add rcx, 2
cmp word [r8 + rcx], bx
jne 0x14000c4b5
mov word [rcx], bx
mov edx, 8
lea rcx, [rsp + 0x60]
call fcn.14000ae70
mov rcx, r15
call fcn.14000b690
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 0x14000c87e
mov rdi, qword [rsp + 0x60]
test rdi, rdi
je 0x14000c57d
nop
mov ebx, 0x8000
lea rcx, [0x140051da0]
cmp rdi, rbx
cmovbe ebx, edi
movsxd rsi, ebx
mov rdx, rsi
call fcn.14000ae70
xor eax, eax
lea r9, [rsp + 0x58]
mov r8d, ebx
mov dword [rsp + 0x58], eax
lea rdx, [0x140051da0]
mov qword [rsp + 0x20], rax
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x14000c878
sub rdi, rsi
jne 0x14000c530
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x14000c370
call fcn.140005510
mov rcx, qword [0x14004fd70]
call fcn.1400173f0
call qword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
mov esi, 0x80
lea r8, [0x14002fd5c]
mov r9d, eax
lea rcx, [rbp + 0x20]
mov edx, esi
call fcn.140001060
movzx eax, byte [rbp + 0x20]
lea rdi, [rbp + 0x20]
xor r14d, r14d
lea rbx, [rbp + 0xa0]
mov word [rbp + 0xa0], r14w
test al, al
je 0x14000c655
nop word [rax + rax]
mov r8d, 2
mov byte [rsp + 0x54], al
lea rdx, [rsp + 0x54]
mov byte [rsp + 0x55], r14b
lea rcx, [rsp + 0x58]
call fcn.140010ef0
cmp rax, 1
jne 0x14000c898
mov rax, rsi
mov rcx, rbx
cmp word [rbx], r14w
je 0x14000c62d
nop dword [rax]
nop dword [rax + rax]
add rcx, 2
dec rax
cmp word [rcx], r14w
jne 0x14000c620
cmp rax, 1
jb 0x14000c898
movzx eax, word [rsp + 0x58]
inc rdi
mov word [rcx], ax
add rbx, 2
dec rsi
mov word [rcx + 2], r14w
movzx eax, byte [rdi]
test al, al
jne 0x14000c5e0
lea rdx, [rbp + 0xa0]
lea rcx, str.NUITKA_ONEFILE_PARENT
call fcn.14000a4a0
call fcn.14000a5a0
mov rdx, rax
lea rcx, str.NUITKA_ONEFILE_BINARY
call fcn.14000a4a0
mov rdx, qword [rsp + 0x78]
lea rcx, str.NUITKA_ORIGINAL_ARGV0
mov rdx, qword [rdx]
call fcn.14000a4a0
xorps xmm0, xmm0
xor eax, eax
movups xmmword [rbp - 0x20], xmm0
mov ecx, 0xfffffff6
mov dword [rbp - 0x14], 0x100
movups xmmword [rbp - 0x50], xmm0
mov qword [rbp + 0x10], rax
movups xmmword [rbp - 0x40], xmm0
movups xmmword [rbp - 0x30], xmm0
movups xmmword [rbp - 0x10], xmm0
movups xmmword [rbp], xmm0
call qword [sym.imp.KERNEL32.dll_GetStdHandle]
mov ecx, 0xfffffff5
mov qword [rbp], rax
call qword [sym.imp.KERNEL32.dll_GetStdHandle]
mov ecx, 0xfffffff4
mov qword [rbp + 8], rax
call qword [sym.imp.KERNEL32.dll_GetStdHandle]
mov qword [rbp + 0x10], rax
mov dword [rbp - 0x50], 0x68
call fcn.14000b910
mov rdx, rax
xor r9d, r9d
lea rax, [rbp - 0x70]
xor r8d, r8d
mov qword [rsp + 0x48], rax
mov rcx, r13
lea rax, [rbp - 0x50]
mov qword [rsp + 0x40], rax
mov qword [rsp + 0x38], r14
mov qword [rsp + 0x30], r14
mov dword [rsp + 0x28], 0x20
mov dword [rsp + 0x20], 1
call qword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
je 0x14000c88a
mov rcx, qword [rbp - 0x68]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rax, qword [rbp - 0x70]
mov ebx, 0x32
mov qword [0x140036d28], rax
mov dword [rsp + 0x5c], r14d
test rax, rax
je 0x14000c803
nop
mov edx, ebx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov rcx, qword [0x140036d28]
lea rdx, [rsp + 0x5c]
call qword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
test eax, eax
je 0x14000c7e7
cmp dword [rsp + 0x5c], 0x103
jne 0x14000c7ef
cmp byte [0x140036d24], r14b
je 0x14000c7d0
lea rcx, [0x140059da0]
call qword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x14000c7c7
mov rcx, qword [0x140036d30]
test rcx, rcx
je 0x14000c7be
call qword [sym.imp.USER32.dll_DestroyWindow]
mov qword [0x140036d30], r14
mov byte [0x140036d24], r14b
jmp 0x14000c7d0
cmp byte [0x140036d24], r14b
jne 0x14000c7d5
mov ebx, 0xffffffff
mov rax, qword [0x140036d28]
test rax, rax
jne 0x14000c760
jmp 0x14000c803
mov dword [rsp + 0x5c], 1
mov rcx, qword [0x140036d28]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov qword [0x140036d28], r14
call fcn.14000b7a0
mov eax, dword [rsp + 0x5c]
mov r12, qword [rsp + 0xde0]
mov rcx, qword [rbp + 0xca0]
xor rcx, rsp
call fcn.14000d3f0
lea r11, [rsp + 0xdb0]
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.14000ae40
int3
lea rcx, str.Error__failed_to_register_signal_handler.
call fcn.14000ad30
int3
call fcn.140010bac
int3
call fcn.140010bac
int3
call fcn.140010bac
int3
mov qword [0x140036d38], rdi
call fcn.14000add0
int3
call fcn.14000ad70
int3
call fcn.14000ae10
int3
call fcn.140010bac
int3
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
call fcn.14000adf0
int3
call fcn.140010bac
int3
call fcn.14000adb0
int3