Function at 0x140005f20
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.14015c3d0
sub rsp, rax
mov rax, qword [0x1401ff510]
xor rax, rsp
mov qword [rbp + 0x1400], rax
mov rbx, qword [0x140202e50]
mov rdi, r8
call qword [sym.imp.USER32.dll_SetProcessDPIAware]
xor r12d, r12d
lea r13d, [r12 + 1]
cmp dword [rbp + 0x1458], r13d
jne 0x140005f8e
mov rcx, qword [rdi]
lea rdx, str.__slave
call fcn.14016d040
test eax, eax
je 0x140005fab
cmp dword [rbp + 0x1458], 2
jne 0x140005ff4
mov rcx, qword [rdi + 8]
lea rdx, str.__slave
call fcn.14016d040
test eax, eax
jne 0x140005fb8
mov rcx, rbx
call fcn.140004c14
jmp 0x14000633d
mov rcx, qword [rdi + 8]
lea rdx, str.__netinfo
call fcn.14016d040
test eax, eax
jne 0x140005ff4
lea rcx, [rsp + 0x50]
call fcn.140009924
test eax, eax
jle 0x14000633d
mov rdx, qword [rsp + 0x50]
lea rcx, str._s_r_n
call fcn.140001090
jmp 0x14000633d
cmp qword [rbx + 0x30], r12
jne 0x140006018
lea rax, [rbp]
mov byte [rbp], r12b
mov r8d, 0x400
mov qword [rbx + 0x30], rax
lea rdx, [rbp]
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
mov rcx, qword [rbx + 0x30]
lea rdx, [rbx + 0x5ac]
call fcn.140002bd4
mov rcx, qword [rbx + 0x30]
lea rdx, str..log
call fcn.1400024ec
mov rcx, rax
or edx, 0xffffffff
call fcn.14006d630
mov qword [0x140202e10], rax
call fcn.1400661a4
mov rsi, qword [rbx]
xor edx, edx
xor r9d, r9d
xor r8d, r8d
lea ecx, [rdx + 0x10]
call fcn.1400686a4
mov r14, rax
lea rax, [0x140004cf8]
mov qword [r14], rax
mov qword [r14 + 8], rbx
cmp qword [rsi + 0x508], r12
jne 0x14000608a
xor ecx, ecx
call fcn.14006c6c4
mov qword [rsi + 0x508], rax
mov rcx, qword [rsi + 0x508]
mov rdx, r14
call fcn.14006c8a0
mov rcx, qword [rdi]
lea r8, [0x1401d585c]
or edx, 0xffffffff
call fcn.14006d39c
test eax, eax
jle 0x1400060e6
mov r8, qword [rdi]
lea r15, [0x140204120]
movsxd rsi, eax
mov r14d, 0x10000
mov r9, rsi
mov edx, r14d
mov rcx, r15
call fcn.14015ecbc
cmp rsi, r14
jae 0x140006369
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 + 0x18], r12
jne 0x1400062f3
cmp dword [rbp + 0x1458], 2
jl 0x140006132
mov rcx, qword [rdi + 8]
lea r8, [0x1401d5f94]
mov r9d, 3
mov dword [rsp + 0x20], r13d
or edx, 0xffffffff
call fcn.14006d278
test eax, eax
jne 0x1400062f3
mov rcx, qword [rbx]
lea r8, [rbp - 0x20]
xor r9d, r9d
lea rdx, [0x140005ed8]
call fcn.1400687cc
mov rcx, qword [rbx]
call fcn.140068f64
mov rcx, qword [rbx + 0x40]
mov qword [rbx], r12
test rcx, rcx
je 0x140006165
call fcn.14006ff54
mov qword [rbx + 0x40], r12
cmp dword [rbx + 0x5a4], r12d
je 0x140006314
xor edx, edx
mov dword [rsp + 0x70], WSAGetLastError
lea rcx, [rsp + 0x78]
mov r14d, r12d
lea r8d, [rdx + 0x60]
call fcn.14015d410
mov rcx, qword [rbx + 0x30]
lea rdx, str..update.exe
call fcn.1400024ec
mov rsi, rax
mov byte [rbp + 0x400], r12b
mov r15d, r13d
cmp dword [rbp + 0x1458], r13d
jle 0x1400061f1
add rdi, 8
mov r9, qword [rdi]
lea rax, [rbp + 0x400]
mov ecx, 0x1000
lea r8, [0x1401d5f98]
sub ecx, r14d
movsxd rdx, ecx
movsxd rcx, r14d
add rcx, rax
call fcn.1400010e4
add r14d, eax
lea rdi, [rdi + 8]
add r15d, r13d
cmp r15d, dword [rbp + 0x1458]
jl 0x1400061b7
lea rax, [rbp + 0x400]
mov r9, rsi
mov qword [rsp + 0x28], rax
lea rdi, [0x140203120]
mov rax, qword [rbx + 0x30]
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 r14d, 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], r14d
mov dword [rsp + 0x20], r13d
call qword [sym.imp.KERNEL32.dll_CreateProcessA]
test eax, eax
jne 0x1400062db
test rsi, rsi
je 0x140006314
mov rcx, qword [rbx + 0x30]
test rcx, rcx
je 0x140006314
jmp 0x14000628e
mov ecx, 0x1388
call qword [sym.imp.KERNEL32.dll_Sleep]
mov rcx, qword [rbx + 0x30]
xor r8d, r8d
mov rdx, rsi
call qword [sym.imp.KERNEL32.dll_CopyFileA]
test eax, eax
je 0x14000627f
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], r14d
mov dword [rsp + 0x20], r13d
call qword [sym.imp.KERNEL32.dll_CreateProcessA]
test eax, eax
je 0x140006314
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 0x140006314
mov rcx, qword [rbx]
lea r8, [rbp - 0x20]
xor r9d, r9d
lea rdx, [0x140005ec4]
call fcn.1400687cc
mov rcx, qword [rbx]
call fcn.140068f64
mov qword [rbx], r12
mov eax, dword [0x140202e0c]
sub eax, r13d
mov dword [0x140202e0c], eax
test eax, eax
jg 0x14000632c
call fcn.140099740
mov rcx, qword [0x140202e10]
test rcx, rcx
je 0x14000633d
call fcn.1401630c0
xor eax, eax
mov rcx, qword [rbp + 0x1400]
xor rcx, rsp
call fcn.14015bde0
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.14015bf0c
int3