Function at 0x1800525a0
Capabilities:
Persist via windows service
Query or enumerate registry value
Set registry value

Disassembly:
mov byte [rsp + 0x18], r8b
mov dword [rsp + 0x10], edx
mov qword [rsp + 8], rcx
push rsi
push rdi
sub rsp, 0x2f8
mov rax, qword [0x1801060b8]
xor rax, rsp
mov qword [rsp + 0x2e8], rax
mov dword [rsp + 0x2a0], 0
mov dword [rsp + 0x2a4], 0
lea rax, [rsp + 0x2c0]
mov rdi, rax
xor eax, eax
mov ecx, 0x18
rep stosb byte [rdi], al
mov qword [rsp + 0x2c0], 0
mov dword [rsp + 0x2c8], 0
mov qword [rsp + 0x2d0], 0
mov r9d, 0x2001f
lea r8, [0x1800d6190]
mov rdx, 0xffffffff80000002
lea rcx, [rsp + 0x2c0]
call fcn.1800629e0
mov dword [rsp + 0x2a0], eax
cmp dword [rsp + 0x2a0], 0
je 0x180052766
mov rax, qword [rsp + 0x310]
add rax, 0x418
xor edx, edx
mov rcx, rax
call fcn.18000ea90
movzx eax, al
test eax, eax
je 0x180052745
mov rax, qword [rsp + 0x140]
mov qword [rsp + 0xb0], rax
mov rax, qword [rsp + 0x310]
mov rax, qword [rax + 0x418]
mov qword [rsp + 0xf0], rax
mov rax, qword [rsp + 0xf0]
mov qword [rsp + 0xb0], rax
mov eax, dword [rsp + 0x2a0]
mov dword [rsp + 0x5c], eax
lea rdx, [0x1800d6218]
lea rcx, [rsp + 0x1d0]
call fcn.180002a40
nop
mov r9d, dword [rsp + 0x5c]
lea r8, [0x1800d61e0]
lea rdx, [rsp + 0x1d0]
lea rcx, [rsp + 0x240]
call fcn.180056040
mov qword [rsp + 0xf8], rax
mov rax, qword [rsp + 0xf8]
mov qword [rsp + 0x100], rax
mov rax, qword [rsp + 0x100]
mov qword [rsp + 0x108], rax
mov r8, qword [rsp + 0x108]
mov edx, 4
mov rcx, qword [rsp + 0xb0]
call fcn.180059b40
nop
lea rcx, [rsp + 0x240]
call fcn.1800029a0
nop
lea rcx, [rsp + 0x1d0]
call fcn.1800029a0
mov eax, dword [rsp + 0x2a0]
mov dword [rsp + 0x60], eax
lea rcx, [rsp + 0x2c0]
call fcn.180062510
mov eax, dword [rsp + 0x60]
jmp 0x180052e40
mov dword [rsp + 0x64], 0
cmp qword [rsp + 0x2c0], 0
je 0x180052797
mov rcx, qword [rsp + 0x2c0]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [rsp + 0x64], eax
mov qword [rsp + 0x2c0], 0
mov dword [rsp + 0x2c8], 0
lea rax, [rsp + 0x2a8]
mov rdi, rax
xor eax, eax
mov ecx, 0x18
rep stosb byte [rdi], al
mov qword [rsp + 0x2a8], 0
mov dword [rsp + 0x2b0], 0
mov qword [rsp + 0x2b8], 0
mov qword [rsp + 0x38], 0
mov qword [rsp + 0x30], 0
mov dword [rsp + 0x28], 0x2001f
mov dword [rsp + 0x20], 0
xor r9d, r9d
lea r8, [0x1800d6260]
mov rdx, 0xffffffff80000002
lea rcx, [rsp + 0x2a8]
call fcn.180062560
mov dword [rsp + 0x2a0], eax
cmp dword [rsp + 0x2a0], 0
je 0x180052956
mov rax, qword [rsp + 0x310]
add rax, 0x418
xor edx, edx
mov rcx, rax
call fcn.18000ea90
movzx eax, al
test eax, eax
je 0x180052927
mov rax, qword [rsp + 0x148]
mov qword [rsp + 0xb8], rax
mov rax, qword [rsp + 0x310]
mov rax, qword [rax + 0x418]
mov qword [rsp + 0x110], rax
mov rax, qword [rsp + 0x110]
mov qword [rsp + 0xb8], rax
mov eax, dword [rsp + 0x2a0]
mov dword [rsp + 0x68], eax
lea rdx, [0x1800d6300]
lea rcx, [rsp + 0x1f0]
call fcn.180002a40
nop
mov r9d, dword [rsp + 0x68]
lea r8, [0x1800d62d0]
lea rdx, [rsp + 0x1f0]
lea rcx, [rsp + 0x260]
call fcn.180056040
mov qword [rsp + 0x118], rax
mov rax, qword [rsp + 0x118]
mov qword [rsp + 0x120], rax
mov rax, qword [rsp + 0x120]
mov qword [rsp + 0x128], rax
mov r8, qword [rsp + 0x128]
mov edx, 4
mov rcx, qword [rsp + 0xb8]
call fcn.180059b40
nop
lea rcx, [rsp + 0x260]
call fcn.1800029a0
nop
lea rcx, [rsp + 0x1f0]
call fcn.1800029a0
mov eax, dword [rsp + 0x2a0]
mov dword [rsp + 0x58], eax
lea rcx, [rsp + 0x2a8]
call fcn.180062510
nop
lea rcx, [rsp + 0x2c0]
call fcn.180062510
mov eax, dword [rsp + 0x58]
jmp 0x180052e40
xor eax, eax
test eax, eax
jne 0x180052956
mov dword [rsp + 0x2d8], 4
lea rax, [rsp + 0x2d8]
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x2a4]
mov qword [rsp + 0x20], rax
lea r9, [rsp + 0x2dc]
xor r8d, r8d
lea rdx, [0x1800d6168]
mov rcx, qword [rsp + 0x2a8]
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov dword [rsp + 0x44], eax
cmp dword [rsp + 0x44], 0
je 0x1800529b6
mov eax, dword [rsp + 0x44]
mov dword [rsp + 0x40], eax
jmp 0x1800529d2
cmp dword [rsp + 0x2dc], 4
je 0x1800529ca
mov dword [rsp + 0x40], 0xd
jmp 0x1800529d2
mov dword [rsp + 0x40], 0
mov eax, dword [rsp + 0x40]
mov dword [rsp + 0x2a0], eax
cmp dword [rsp + 0x2a0], 0
je 0x180052b13
mov rax, qword [rsp + 0x310]
add rax, 0x418
xor edx, edx
mov rcx, rax
call fcn.18000ea90
movzx eax, al
test eax, eax
je 0x180052ae4
mov rax, qword [rsp + 0x150]
mov qword [rsp + 0xc0], rax
mov rax, qword [rsp + 0x310]
mov rax, qword [rax + 0x418]
mov qword [rsp + 0x130], rax
mov rax, qword [rsp + 0x130]
mov qword [rsp + 0xc0], rax
mov eax, dword [rsp + 0x2a0]
mov dword [rsp + 0x70], eax
lea rdx, [0x1800d6370]
lea rcx, [rsp + 0x210]
call fcn.180002a40
nop
mov r9d, dword [rsp + 0x70]
lea r8, str.QueryDWORDValue_EPP_INSTALLED_FEATURES
lea rdx, [rsp + 0x210]
lea rcx, [rsp + 0x280]
call fcn.180056040
mov qword [rsp + 0x138], rax
mov rax, qword [rsp + 0x138]
mov qword [rsp + 0xc8], rax
mov rax, qword [rsp + 0xc8]
mov qword [rsp + 0xd0], rax
mov r8, qword [rsp + 0xd0]
mov edx, 4
mov rcx, qword [rsp + 0xc0]
call fcn.180059b40
nop
lea rcx, [rsp + 0x280]
call fcn.1800029a0
nop
lea rcx, [rsp + 0x210]
call fcn.1800029a0
mov eax, dword [rsp + 0x2a0]
mov dword [rsp + 0x74], eax
lea rcx, [rsp + 0x2a8]
call fcn.180062250
nop
lea rcx, [rsp + 0x2c0]
call fcn.180062250
mov eax, dword [rsp + 0x74]
jmp 0x180052e40
movzx eax, byte [rsp + 0x320]
test eax, eax
je 0x180052b3a
mov eax, dword [rsp + 0x318]
mov ecx, dword [rsp + 0x2a4]
or ecx, eax
mov eax, ecx
mov dword [rsp + 0x2a4], eax
jmp 0x180052b55
mov eax, dword [rsp + 0x318]
not eax
mov ecx, dword [rsp + 0x2a4]
and ecx, eax
mov eax, ecx
mov dword [rsp + 0x2a4], eax
mov eax, dword [rsp + 0x2a4]
mov dword [rsp + 0x2e0], eax
xor eax, eax
test eax, eax
jne 0x180052b63
mov dword [rsp + 0x28], 4
lea rax, [rsp + 0x2e0]
mov qword [rsp + 0x20], rax
mov r9d, 4
xor r8d, r8d
lea rdx, [0x1800d6238]
mov rcx, qword [rsp + 0x2a8]
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov dword [rsp + 0x78], eax
mov eax, dword [rsp + 0x78]
mov dword [rsp + 0x2a0], eax
mov dword [rsp + 0x7c], 0
cmp qword [rsp + 0x2a8], 0
je 0x180052bdc
mov rcx, qword [rsp + 0x2a8]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [rsp + 0x7c], eax
mov qword [rsp + 0x2a8], 0
mov dword [rsp + 0x2b0], 0
mov rax, qword [rsp + 0x310]
add rax, 0x418
xor edx, edx
mov rcx, rax
call fcn.18000ea90
movzx eax, al
test eax, eax
je 0x180052e16
mov rax, qword [rsp + 0x158]
mov qword [rsp + 0xa8], rax
mov rax, qword [rsp + 0x310]
mov rax, qword [rax + 0x418]
mov qword [rsp + 0xd8], rax
mov rax, qword [rsp + 0xd8]
mov qword [rsp + 0xa8], rax
lea rax, [rsp + 0x230]
mov qword [rsp + 0x90], rax
mov rax, qword [rsp + 0x90]
mov qword [rsp + 0x88], rax
mov rax, qword [rsp + 0x88]
lea rcx, [0x1800d63d8]
mov qword [rax], rcx
xor eax, eax
test eax, eax
je 0x180052cb8
lea rax, [0x1800d63d8]
mov qword [rsp + 0xe0], rax
mov qword [rsp + 0x48], 0xffffffffffffffff
inc qword [rsp + 0x48]
mov rax, qword [rsp + 0xe0]
mov rcx, qword [rsp + 0x48]
cmp byte [rax + rcx], 0
jne 0x180052c91
mov rax, qword [rsp + 0x48]
mov qword [rsp + 0x80], rax
jmp 0x180052d06
mov rax, qword [rsp + 0x160]
mov qword [rsp + 0x80], rax
lea rax, [0x1800d63d8]
mov qword [rsp + 0xe8], rax
mov qword [rsp + 0x50], 0xffffffffffffffff
inc qword [rsp + 0x50]
mov rax, qword [rsp + 0xe8]
mov rcx, qword [rsp + 0x50]
cmp word [rax + rcx*2], 0
jne 0x180052ce0
mov rax, qword [rsp + 0x50]
mov qword [rsp + 0x80], rax
mov rax, qword [rsp + 0x88]
mov rcx, qword [rsp + 0x80]
mov qword [rax + 8], rcx
lea rax, [rsp + 0x178]
mov rdi, rax
mov rsi, qword [rsp + 0x90]
mov ecx, 0x10
rep movsb byte [rdi], byte [rsi]
lea rax, [rsp + 0x190]
lea rcx, [rsp + 0x178]
mov rdi, rax
mov rsi, rcx
mov ecx, 0x10
rep movsb byte [rdi], byte [rsi]
mov rax, qword [rsp + 0x168]
mov qword [rsp + 0x98], rax
lea rax, [rsp + 0x2a0]
mov qword [rsp + 0x98], rax
mov rax, qword [rsp + 0x170]
mov qword [rsp + 0xa0], rax
lea rax, str.EppLibClass::EppAdjustFeatureFlag
mov qword [rsp + 0xa0], rax
lea rax, [rsp + 0x1a0]
lea rcx, [rsp + 0x190]
mov rdi, rax
mov rsi, rcx
mov ecx, 0x10
rep movsb byte [rdi], byte [rsi]
lea rax, [rsp + 0x1b0]
lea rcx, [rsp + 0x1a0]
mov rdi, rax
mov rsi, rcx
mov ecx, 0x10
rep movsb byte [rdi], byte [rsi]
lea rax, [rsp + 0x1c0]
lea rcx, [rsp + 0x1b0]
mov rdi, rax
mov rsi, rcx
mov ecx, 0x10
rep movsb byte [rdi], byte [rsi]
mov rax, qword [rsp + 0x98]
mov qword [rsp + 0x20], rax
mov r9, qword [rsp + 0xa0]
lea r8, [rsp + 0x1c0]
mov edx, 2
mov rcx, qword [rsp + 0xa8]
call fcn.180058bb0
mov eax, dword [rsp + 0x2a0]
mov dword [rsp + 0x6c], eax
lea rcx, [rsp + 0x2a8]
call fcn.180062250
nop
lea rcx, [rsp + 0x2c0]
call fcn.180062250
mov eax, dword [rsp + 0x6c]
mov rcx, qword [rsp + 0x2e8]
xor rcx, rsp
call fcn.180099a00
add rsp, 0x2f8
pop rdi
pop rsi
ret