Function at 0x14000226c
Capabilities:
Allocate or change rwx memory
Query service status

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
mov qword [rax + 0x18], rdi
push rbp
push r12
push r13
push r14
push r15
lea rbp, [rax - 0x5f]
sub rsp, 0xc0
mov rdi, r8
mov dword [rbp - 0x29], 4
mov r13, rdx
lea r8, [rbp - 0x41]
mov edx, 6
lea r9, [rbp - 0x29]
mov r14, rcx
call qword [sym.imp.CRYPT32.dll_CertGetCertificateContextProperty]
xor r12d, r12d
test eax, eax
je 0x140002464
lea rax, [rbp - 0x19]
xor r8d, r8d
mov qword [rsp + 0x28], rax
lea r9, [rbp - 0x11]
lea rax, [rbp - 0x41]
mov edx, 0x10000
mov rcx, r14
mov qword [rsp + 0x20], rax
call qword [sym.imp.CRYPT32.dll_CryptAcquireCertificatePrivateKey]
test eax, eax
je 0x140002464
mov edx, dword [rbp - 0x41]
mov r15, qword [rbp - 0x11]
mov qword [rbp - 0x31], r12
mov dword [rbp - 0x49], r12d
cmp edx, 0xffffffff
je 0x140002487
lea r8, [rbp - 0x39]
mov rcx, r15
call qword [sym.imp.ADVAPI32.dll_CryptGetUserKey]
test eax, eax
je 0x140002464
mov r8, qword [rbp - 0x39]
lea rax, [rbp - 0x49]
mov edx, dword [rbp - 0x41]
lea r9, [rbp - 0x31]
mov rcx, r15
mov qword [rsp + 0x20], rax
call fcn.140002688
test al, al
je 0x140002464
lea rcx, str.user32.dll
call qword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov rcx, rax
lea rdx, str.DialogBoxParamW
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
lea esi, [r12 + 3]
mov word [rbp + 0x7f], 0xc031
mov edx, esi
mov byte [rbp + 0x81], 0xc3
mov rcx, rax
mov dword [rbp - 0x45], r12d
lea r9, [rbp - 0x45]
mov rbx, rax
lea r8d, [r12 + 0x40]
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
mov r8d, esi
lea rcx, [rbp - 0x3d]
mov rdx, rbx
call fcn.140001c74
mov r8d, esi
lea rdx, [rbp + 0x7f]
mov rcx, rbx
call fcn.140001c74
mov r8d, dword [rbp - 0x45]
xor r9d, r9d
mov edx, esi
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
mov r12, qword [rbp - 0x31]
lea rax, [rbp - 0x49]
mov rcx, qword [rbp - 0x39]
lea r8d, [rsi + 4]
mov qword [rsp + 0x28], rax
xor r9d, r9d
xor edx, edx
mov qword [rsp + 0x20], r12
call qword [sym.imp.ADVAPI32.dll_CryptExportKey]
test eax, eax
je 0x140002464
lea r9, [rbp - 0x45]
mov edx, esi
lea r8d, [rsi + 0x3d]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
mov r8d, esi
lea rdx, [rbp - 0x3d]
mov rcx, rbx
call fcn.140001c74
mov r8d, dword [rbp - 0x45]
xor r9d, r9d
mov edx, esi
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
mov esi, 1
mov dword [rsp + 0x20], 0xf0000008
mov r9d, esi
lea rcx, [rbp - 0x21]
xor r8d, r8d
xor edx, edx
call qword [sym.imp.ADVAPI32.dll_CryptAcquireContextA]
test eax, eax
je 0x140002464
mov r8d, dword [rbp - 0x49]
lea rax, [rbp - 1]
mov rcx, qword [rbp - 0x21]
xor r9d, r9d
mov qword [rsp + 0x28], rax
mov rdx, r12
mov dword [rsp + 0x20], esi
call qword [sym.imp.ADVAPI32.dll_CryptImportKey]
test eax, eax
jne 0x1400025e4
xor al, al
lea r11, [rsp + 0xc0]
mov rbx, qword [r11 + 0x30]
mov rsi, qword [r11 + 0x38]
mov rdi, qword [r11 + 0x40]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rbp
ret
mov esi, 1
xor edx, edx
mov r8d, esi
xor ecx, ecx
call qword [sym.imp.ADVAPI32.dll_OpenSCManagerA]
mov rcx, rax
lea r8d, [rsi + 3]
lea rdx, str.KeyIso
call qword [sym.imp.ADVAPI32.dll_OpenServiceA]
lea rcx, [rbp - 0x3d]
xor edx, edx
mov qword [rsp + 0x20], rcx
lea r9d, [rsi + 0x23]
mov rcx, rax
lea r8, [rbp + 7]
call qword [sym.imp.ADVAPI32.dll_QueryServiceStatusEx]
mov r8d, dword [rbp + 0x23]
lea ecx, [rsi + 0x37]
xor edx, edx
call qword [sym.imp.KERNEL32.dll_OpenProcess]
mov ecx, dword [r15 + 0x10]
lea r9d, [rsi + 3]
mov rbx, rax
lea r8, [rbp - 0x45]
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 - 0x45]
lea rax, [rbp - 0x39]
add edx, 0x28
mov qword [rsp + 0x20], rax
mov r9d, esi
lea r8, [rbp + 0x7f]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_ReadProcessMemory]
mov edx, dword [rbp - 0x45]
lea rax, [rbp - 0x39]
or byte [rbp + 0x7f], 2
lea r8, [rbp + 0x7f]
add edx, 0x28
mov qword [rsp + 0x20], rax
mov r9d, esi
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_WriteProcessMemory]
mov dword [rsp + 0x38], r12d
lea rax, [rbp - 0x49]
mov qword [rsp + 0x30], rax
xor r9d, r9d
mov dword [rsp + 0x28], r12d
xor edx, edx
mov qword [rsp + 0x20], r12
mov rcx, r15
lea r12, str.CAPIPRIVATEBLOB
mov r8, r12
call sub.ncrypt.dll_NCryptExportKey
mov ecx, dword [rbp - 0x49]
call fcn.140001c24
and dword [rsp + 0x38], 0
mov rbx, rax
mov ecx, dword [rbp - 0x49]
lea rax, [rbp - 0x49]
mov qword [rsp + 0x30], rax
xor r9d, r9d
mov dword [rsp + 0x28], ecx
mov r8, r12
mov rcx, r15
mov qword [rsp + 0x20], rbx
xor edx, edx
call sub.ncrypt.dll_NCryptExportKey
xor r8d, r8d
lea rdx, str.Microsoft_Software_Key_Storage_Provider
lea rcx, [rbp - 0x31]
call sub.ncrypt.dll_NCryptOpenStorageProvider
and dword [rsp + 0x38], 0
mov eax, dword [rbp - 0x49]
mov dword [rsp + 0x30], eax
lea rax, [rbp - 1]
mov qword [rsp + 0x28], rbx
mov rcx, qword [rbp - 0x31]
xor r9d, r9d
mov r8, r12
mov qword [rsp + 0x20], rax
xor edx, edx
call sub.ncrypt.dll_NCryptImportKey
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, esi
mov rdx, r14
mov rbx, rax
call qword [sym.imp.CRYPT32.dll_CertAddCertificateLinkToStore]
cmp dword [rbp - 0x41], 0xffffffff
mov rcx, r14
mov r9, qword [rbp - 0x21]
cmove r9, r15
xor r8d, r8d
lea edx, [r8 + 0x4f]
call qword [sym.imp.CRYPT32.dll_CertSetCertificateContextProperty]
and qword [rdi + 8], 0
mov r14d, 7
and dword [rdi], 0
xor r9d, r9d
mov r8, r13
mov dword [rsp + 0x20], r14d
mov rdx, rdi
mov rcx, rbx
call qword [sym.imp.CRYPT32.dll_PFXExportCertStoreEx]
mov ecx, dword [rdi]
call fcn.140001c24
xor r9d, r9d
mov qword [rdi + 8], rax
mov r8, r13
mov dword [rsp + 0x20], r14d
mov rdx, rdi
mov rcx, rbx
call qword [sym.imp.CRYPT32.dll_PFXExportCertStoreEx]
mov al, sil
jmp 0x140002466