Function at 0x140007294
Capabilities:
Copy file
Create process on windows
Set current directory

Disassembly:
mov qword [rsp + 8], rbx
mov dword [rsp + 0x10], edx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x1410]
mov eax, 0x1510
call fcn.140168660
sub rsp, rax
mov rax, qword [0x14021c510]
xor rax, rsp
mov qword [rbp + 0x1400], rax
mov rbx, qword [0x14021fec0]
mov rdi, r8
call qword [sym.imp.USER32.dll_SetProcessDPIAware]
xor r12d, r12d
lea r13d, [r12 + 1]
cmp dword [rbp + 0x1458], r13d
jne 0x140007302
mov rcx, qword [rdi]
lea rdx, str.__slave
call fcn.1401792d0
test eax, eax
je 0x14000731f
cmp dword [rbp + 0x1458], 2
jne 0x14000736d
mov rcx, qword [rdi + 8]
lea rdx, str.__slave
call fcn.1401792d0
test eax, eax
jne 0x14000732c
mov rcx, rbx
call fcn.1400058f0
jmp 0x1400076c5
mov rcx, qword [rdi + 8]
lea rdx, str.__netinfo
call fcn.1401792d0
test eax, eax
jne 0x14000736d
lea rcx, [rsp + 0x50]
call fcn.14000ac9c
test eax, eax
jle 0x1400076c5
mov rdx, qword [rsp + 0x50]
lea rcx, str._s_r_n
call fcn.140001090
mov rcx, qword [rsp + 0x50]
jmp 0x1400076c0
cmp qword [rbx + 0x38], r12
jne 0x140007391
lea rax, [rbp]
mov byte [rbp], r12b
mov r8d, 0x400
mov qword [rbx + 0x38], rax
lea rdx, [rbp]
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
mov rcx, qword [rbx + 0x38]
lea rdx, [rbx + 0x5d8]
call fcn.140002e64
mov rcx, qword [rbx + 0x38]
lea rdx, str..log
call fcn.140002618
mov rcx, rax
or edx, 0xffffffff
call fcn.140078528
mov qword [0x14021feb0], rax
call fcn.1400718a4
mov rcx, qword [rbx]
lea rdx, [0x1400059ec]
mov r8, rbx
call fcn.1400732f8
mov rcx, qword [rdi]
lea r8, [0x1401e2224]
or edx, 0xffffffff
call fcn.140078294
test eax, eax
jle 0x140007427
mov r8, qword [rdi]
lea r15, [0x140221180]
movsxd rsi, eax
mov r14d, 0x10000
mov r9, rsi
mov edx, r14d
mov rcx, r15
call fcn.14016af4c
cmp rsi, r14
jae 0x1400076f1
mov rcx, r15
mov byte [rsi + r15], r12b
call qword [sym.imp.KERNEL32.dll_SetCurrentDirectoryA]
lea rax, [rbp + 0x1458]
mov qword [rbp - 0x20], rbx
mov qword [rbp - 0x18], rax
mov qword [rbp - 0x10], rdi
cmp qword [rbx + 0x20], r12
jne 0x14000767b
cmp dword [rbp + 0x1458], 2
jl 0x140007473
mov rcx, qword [rdi + 8]
lea r8, [0x1401e310c]
mov r9d, 3
mov dword [rsp + 0x20], r13d
or edx, 0xffffffff
call fcn.140078170
test eax, eax
jne 0x14000767b
mov rcx, qword [rbx]
lea r9, [rbp - 0x20]
xor r8d, r8d
lea rdx, [0x14000724c]
call fcn.1400733e4
mov rcx, qword [rbx]
call fcn.140073db0
mov rcx, qword [rbx + 0x48]
mov qword [rbx], r12
test rcx, rcx
je 0x1400074a6
call fcn.14007b77c
mov qword [rbx + 0x48], r12
cmp dword [rbx + 0x5b0], r12d
je 0x14000769c
xor edx, edx
mov dword [rsp + 0x70], WSAGetLastError
lea rcx, [rsp + 0x78]
mov esi, r12d
lea r8d, [rdx + 0x60]
call fcn.140169620
mov rcx, qword [rbx + 0x38]
lea rdx, str..update.exe
call fcn.140002618
mov r14, rax
cmp dword [rbx + 0x5bc], r12d
je 0x140007503
xor r9d, r9d
mov dword [rsp + 0x20], r12d
xor r8d, r8d
lea rcx, str.SelfUpdate____Updating...
xor edx, edx
call fcn.140078e6c
mov r15d, r13d
mov byte [rbp + 0x400], r12b
cmp dword [rbp + 0x1458], r13d
jle 0x140007556
add rdi, 8
test esi, esi
js 0x140007556
mov r9, qword [rdi]
lea rcx, [rbp + 0x400]
mov eax, 0x1000
lea r8, [0x1401e312c]
sub eax, esi
movsxd rdx, eax
movsxd rax, esi
add rcx, rax
call fcn.1400010e4
add esi, eax
add r15d, r13d
add rdi, 8
cmp r15d, dword [rbp + 0x1458]
jl 0x14000751a
lea rax, [rbp + 0x400]
mov r9, r14
mov qword [rsp + 0x28], rax
lea rdi, [0x140220180]
mov rax, qword [rbx + 0x38]
lea r8, str._s__update:__s__s
mov edx, 0x1000
mov qword [rsp + 0x20], rax
mov rcx, rdi
call fcn.1400010e4
lea rax, [rsp + 0x58]
mov esi, 0x8000000
mov qword [rsp + 0x48], rax
xor r9d, r9d
lea rax, [rsp + 0x70]
xor r8d, r8d
mov qword [rsp + 0x40], rax
mov rdx, rdi
mov qword [rsp + 0x38], r12
xor ecx, ecx
mov qword [rsp + 0x30], r12
mov dword [rsp + 0x28], esi
mov dword [rsp + 0x20], r13d
call qword [sym.imp.KERNEL32.dll_CreateProcessA]
test eax, eax
jne 0x140007663
cmp dword [rbx + 0x5bc], r12d
je 0x1400075f0
xor r9d, r9d
mov dword [rsp + 0x20], r12d
xor r8d, r8d
lea rcx, str.SelfUpdate____FAILED...
xor edx, edx
call fcn.140078e6c
test r14, r14
je 0x14000769c
mov rcx, qword [rbx + 0x38]
test rcx, rcx
je 0x14000769c
jmp 0x140007617
mov ecx, 0x1388
call qword [sym.imp.KERNEL32.dll_Sleep]
mov rcx, qword [rbx + 0x38]
xor r8d, r8d
mov rdx, r14
call qword [sym.imp.KERNEL32.dll_CopyFileA]
test eax, eax
je 0x140007608
lea rax, [rsp + 0x58]
xor r9d, r9d
mov qword [rsp + 0x48], rax
xor r8d, r8d
lea rax, [rsp + 0x70]
mov rdx, rdi
mov qword [rsp + 0x40], rax
xor ecx, ecx
mov qword [rsp + 0x38], r12
mov qword [rsp + 0x30], r12
mov dword [rsp + 0x28], esi
mov dword [rsp + 0x20], r13d
call qword [sym.imp.KERNEL32.dll_CreateProcessA]
test eax, eax
je 0x14000769c
mov rcx, qword [rsp + 0x58]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rsp + 0x60]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x14000769c
mov rcx, qword [rbx]
lea r9, [rbp - 0x20]
xor r8d, r8d
lea rdx, [0x140007238]
call fcn.1400733e4
mov rcx, qword [rbx]
call fcn.140073db0
mov qword [rbx], r12
mov eax, dword [0x14021fe78]
sub eax, r13d
mov dword [0x14021fe78], eax
test eax, eax
jg 0x1400076b4
call fcn.1400aa000
mov rcx, qword [0x14021feb0]
test rcx, rcx
je 0x1400076c5
call fcn.14016f3a8
xor eax, eax
mov rcx, qword [rbp + 0x1400]
xor rcx, rsp
call fcn.140168070
mov rbx, qword [rsp + 0x1550]
add rsp, 0x1510
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
call fcn.14016819c
int3