Function at 0x140085980
Capabilities:
Enumerate process modules
Get process image filename
Query or enumerate registry value
Set registry value
Terminate process

Disassembly:
mov rax, rsp
push rbp
push r12
push r13
push r14
push r15
lea rbp, [rax - 0x658]
sub rsp, 0x730
mov qword [rbp - 0x20], 0xfffffffffffffffe
mov qword [rax + 8], rbx
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
mov rax, qword [0x14017c430]
xor rax, rsp
mov qword [rbp + 0x620], rax
mov rdi, rdx
mov qword [rbp - 0x50], rdx
mov esi, ecx
mov dword [rsp + 0x60], ecx
mov byte [0x140183050], 1
mov qword [rsp + 0x68], 0xffffffff80000001
xor r12d, r12d
mov qword [rsp + 0x70], r12
mov qword [rsp + 0x40], r12
lea rax, [rsp + 0x70]
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x30], r12
mov dword [rsp + 0x28], 3
mov dword [rsp + 0x20], r12d
xor r9d, r9d
xor r8d, r8d
lea rdx, [0x14012a5c0]
mov rcx, qword [rsp + 0x68]
call qword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
je 0x140085a29
mov ecx, eax
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov dword [rsp + 0x78], r12d
mov dword [rbp - 0x5c], 4
mov dword [rbp - 0x60], 4
lea rax, [rbp - 0x60]
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x78]
mov qword [rsp + 0x20], rax
lea r9, [rbp - 0x5c]
xor r8d, r8d
lea rdx, [0x14012a858]
mov rcx, qword [rsp + 0x70]
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
je 0x140085a74
mov ecx, eax
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov r8d, dword [rsp + 0x78]
xor edx, edx
mov ecx, 0x411
call qword [sym.imp.KERNEL32.dll_OpenProcess]
mov r13, rax
lea r15, [0x14012a870]
or r14, 0xffffffffffffffff
lea ebx, [r14 + 2]
test rax, rax
je 0x140085dcb
cmp byte [0x140183050], 0
jne 0x140085b00
lea r9, [rbp - 0x28]
lea r8d, [r14 + 9]
lea rdx, [rbp - 0x30]
mov rcx, rax
call qword [sym.imp.PSAPI.DLL_EnumProcessModules]
mov r9d, 0x104
lea r8, [rbp + 0x410]
mov rdx, qword [rbp - 0x30]
mov rcx, r13
call qword [sym.imp.PSAPI.DLL_GetModuleBaseNameW]
mov rdx, r15
lea rcx, [rbp + 0x410]
call fcn.1400d519c
test eax, eax
jne 0x140085db5
xor edx, edx
mov rcx, r13
call qword [sym.imp.KERNEL32.dll_TerminateProcess]
jmp 0x140085db5
mov word [rbp + 0x200], r12w
xor edx, edx
mov r8d, 0x206
lea rcx, [rbp + 0x202]
call fcn.1400dd9f0
mov r8d, 0x104
lea rdx, [rbp + 0x200]
mov rcx, r13
call qword [sym.imp.PSAPI.DLL_GetProcessImageFileNameW]
lea rcx, [0x14017bd30]
mov rax, qword [0x14017bd30]
call qword [rax + 0x18]
lea rbx, [rax + 0x18]
mov qword [rsp + 0x58], rbx
lea rcx, [rbp + 0x200]
lea rax, [rbp + 0x200]
test rax, 0xffffffffffff0000
jne 0x140085b8f
movzx edi, cx
mov ecx, edi
call fcn.140002830
test rax, rax
je 0x140085c97
mov r8d, edi
mov rdx, rax
lea rcx, [rsp + 0x58]
call fcn.1400029f0
mov rbx, qword [rsp + 0x58]
jmp 0x140085c97
xor eax, eax
mov rcx, r14
lea rdi, [rbp + 0x200]
repne scasw ax, word [rdi]
not rcx
dec rcx
mov rdi, rcx
test ecx, ecx
jne 0x140085c0b
lea rdx, [rbx - 0x18]
mov rdi, qword [rdx]
cmp dword [rdx + 8], eax
je 0x140085c97
cmp dword [rdx + 0x10], eax
jge 0x140085bdd
cmp dword [rbx - 0xc], eax
jge 0x140085bd0
mov ecx, 0x80070057
call fcn.1400022b0
int3
mov dword [rbx - 0x10], r12d
mov word [rbx], r12w
jmp 0x140085c97
mov eax, r14d
lock xadd dword [rdx + 0x10], eax
dec eax
test eax, eax
jg 0x140085bf4
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + VariantCopy]
mov rax, qword [rdi]
mov rcx, rdi
call qword [rax + 0x18]
lea rbx, [rax + 0x18]
mov qword [rsp + 0x58], rbx
jmp 0x140085c97
mov r12d, dword [rbx - 0x10]
lea rsi, [rbp + 0x200]
sub rsi, rbx
sar rsi, 1
test ecx, ecx
jns 0x140085c2b
mov ecx, 0x80070057
call fcn.1400022b0
int3
mov ecx, 1
sub ecx, dword [rbx - 8]
mov eax, dword [rbx - 0xc]
sub eax, edi
or eax, ecx
jge 0x140085c4d
mov edx, edi
lea rcx, [rsp + 0x58]
call fcn.1400020c0
mov rbx, qword [rsp + 0x58]
movsxd rax, edi
movsxd rdx, dword [rbx - 0xc]
mov rcx, rbx
add rdx, rdx
cmp rsi, r12
lea r12, [rax + rax]
mov r9, r12
ja 0x140085c71
lea r8, [rbx + rsi*2]
call fcn.1400d4ebc
jmp 0x140085c7d
lea r8, [rbp + 0x200]
call fcn.1400d4e34
cmp edi, dword [rbx - 0xc]
jg 0x140085dc0
mov dword [rbx - 0x10], edi
xor esi, esi
mov word [r12 + rbx], si
mov esi, dword [rsp + 0x60]
xor r12d, r12d
mov edx, 0x5c
mov rcx, rbx
call fcn.1400d99e0
test rax, rax
je 0x140085d53
sub rax, rbx
sar rax, 1
cmp eax, 0xffffffff
je 0x140085d53
mov r8d, dword [rbx - 0x10]
sub r8d, eax
dec r8d
lea rdx, [rbp - 0x38]
lea rcx, [rsp + 0x58]
call fcn.140016140
nop
mov rdx, qword [rax]
lea rcx, [rdx - 0x18]
add rbx, 0xffffffffffffffe8
cmp rcx, rbx
je 0x140085d2f
cmp dword [rbx + 0x10], 0
jl 0x140085d20
mov rax, qword [rbx]
cmp qword [rcx], rax
jne 0x140085d20
call fcn.140001d80
mov rdi, rax
mov eax, r14d
lock xadd dword [rbx + 0x10], eax
dec eax
test eax, eax
jg 0x140085d15
mov rcx, qword [rbx]
mov rax, qword [rcx]
mov rdx, rbx
call qword [rax + VariantCopy]
lea rax, [rdi + 0x18]
mov qword [rsp + 0x58], rax
jmp 0x140085d2f
mov r8d, dword [rdx - 0x10]
lea rcx, [rsp + 0x58]
call fcn.140002120
nop
mov rdx, qword [rbp - 0x38]
add rdx, 0xffffffffffffffe8
mov eax, r14d
lock xadd dword [rdx + 0x10], eax
dec eax
test eax, eax
jg 0x140085d4e
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + VariantCopy]
mov rbx, qword [rsp + 0x58]
mov rax, rbx
mov rdx, r15
sub rdx, rbx
nop dword [rax]
movzx ecx, word [rax]
cmp cx, word [rax + rdx]
jne 0x140085d77
add rax, 2
test cx, cx
jne 0x140085d60
mov eax, r12d
jmp 0x140085d7c
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
sete al
test al, al
je 0x140085d91
xor edx, edx
mov rcx, r13
call qword [sym.imp.KERNEL32.dll_TerminateProcess]
nop
lea rdx, [rbx - 0x18]
mov eax, r14d
lock xadd dword [rdx + 0x10], eax
dec eax
test eax, eax
jg 0x140085dac
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + VariantCopy]
mov ebx, 1
mov rdi, qword [rbp - 0x50]
mov rcx, r13
call qword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x140085dcb
mov ecx, 0x80070057
call fcn.1400022b0
nop
cmp esi, 1
jle 0x1400862ba
lea rdx, str._repair
mov rcx, qword [rdi + 8]
call fcn.1400d519c
test eax, eax
jne 0x14008625a
mov qword [rbp - 0x80], 0xffffffff80000002
mov qword [rbp - 0x78], r12
mov qword [rsp + 0x40], r12
lea rax, [rbp - 0x78]
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x30], r12
mov dword [rsp + 0x28], 3
mov dword [rsp + 0x20], r12d
xor r9d, r9d
xor r8d, r8d
lea rdx, [0x14012a5c0]
mov rcx, qword [rbp - 0x80]
call qword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
je 0x140085e3b
mov ecx, eax
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov dword [rbp - 0x68], ebx
mov dword [rsp + 0x28], 4
lea rax, [rbp - 0x68]
mov qword [rsp + 0x20], rax
mov r9d, 3
xor r8d, r8d
lea rdx, [0x14012a868]
mov rcx, qword [rbp - 0x78]
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test eax, eax
je 0x140085e75
mov ecx, eax
call qword [sym.imp.KERNEL32.dll_SetLastError]
call fcn.140085820
test al, al
jne 0x14008622b
mov ecx, 0x1f4
call qword [sym.imp.KERNEL32.dll_Sleep]
mov qword [rsp + 0x40], r12
lea rax, [rbp - 0x78]
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x30], r12
mov dword [rsp + 0x28], 3
mov dword [rsp + 0x20], r12d
xor r9d, r9d
xor r8d, r8d
lea rdx, [0x14012a5c0]
mov rcx, qword [rbp - 0x80]
call qword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
je 0x140085ed0
mov ecx, eax
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov dword [rsp + 0x60], r12d
mov dword [rbp - 0x58], 4
mov dword [rbp - 0x70], 4
lea rax, [rbp - 0x70]
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x60]
mov qword [rsp + 0x20], rax
lea r9, [rbp - 0x58]
xor r8d, r8d
lea rdx, [0x14012a848]
mov rcx, qword [rbp - 0x78]
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
je 0x140085f1a
mov ecx, eax
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov r8d, dword [rsp + 0x60]
xor edx, edx
mov ecx, 0x411
call qword [sym.imp.KERNEL32.dll_OpenProcess]
mov r12, rax
test rax, rax
je 0x140086218
mov rcx, rax
cmp byte [0x140183050], 0
je 0x1400861c9
mov r8d, 0x104
lea rdx, [rbp - 0x10]
call qword [sym.imp.PSAPI.DLL_GetProcessImageFileNameW]
lea rcx, [0x14017bd30]
mov rax, qword [0x14017bd30]
call qword [rax + 0x18]
lea rbx, [rax + 0x18]
mov qword [rsp + 0x50], rbx
lea rcx, [rbp - 0x10]
lea rax, [rbp - 0x10]
test rax, 0xffffffffffff0000
jne 0x140085faf
movzx edi, cx
mov ecx, edi
call fcn.140002830
test rax, rax
je 0x1400860aa
mov r8d, edi
mov rdx, rax
lea rcx, [rsp + 0x50]
call fcn.1400029f0
mov rbx, qword [rsp + 0x50]
jmp 0x1400860aa
xor eax, eax
mov rcx, r14
lea rdi, [rbp - 0x10]
repne scasw ax, word [rdi]
not rcx
dec rcx
mov rdi, rcx
test ecx, ecx
jne 0x140086028
lea rdx, [rbx - 0x18]
mov rdi, qword [rdx]
cmp dword [rdx + 8], eax
je 0x1400860aa
cmp dword [rdx + 0x10], eax
jge 0x140085ffa
cmp dword [rbx - 0xc], eax
jge 0x140085fed
mov ecx, 0x80070057
call fcn.1400022b0
int3
xor esi, esi
mov dword [rbx - 0x10], esi
mov word [rbx], si
jmp 0x1400860ac
mov eax, r14d
lock xadd dword [rdx + 0x10], eax
dec eax
test eax, eax
jg 0x140086011
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + VariantCopy]
mov rax, qword [rdi]
mov rcx, rdi
call qword [rax + 0x18]
lea rbx, [rax + 0x18]
mov qword [rsp + 0x50], rbx
jmp 0x1400860aa
mov r13d, dword [rbx - 0x10]
lea rsi, [rbp - 0x10]
sub rsi, rbx
sar rsi, 1
test ecx, ecx
jns 0x140086045
mov ecx, 0x80070057
call fcn.1400022b0
int3
mov ecx, 1
sub ecx, dword [rbx - 8]
mov eax, dword [rbx - 0xc]
sub eax, edi
or eax, ecx
jge 0x140086067
mov edx, edi
lea rcx, [rsp + 0x50]
call fcn.1400020c0
mov rbx, qword [rsp + 0x50]
movsxd rax, edi
movsxd rdx, dword [rbx - 0xc]
mov rcx, rbx
add rdx, rdx
cmp rsi, r13
lea r13, [rax + rax]
mov r9, r13
ja 0x14008608b
lea r8, [rbx + rsi*2]
call fcn.1400d4ebc
jmp 0x140086094
lea r8, [rbp - 0x10]
call fcn.1400d4e34
cmp edi, dword [rbx - 0xc]
jg 0x1400861be
mov dword [rbx - 0x10], edi
xor esi, esi
mov word [r13 + rbx], si
jmp 0x1400860ac
xor esi, esi
mov edx, 0x5c
mov rcx, rbx
call fcn.1400d99e0
test rax, rax
je 0x140086168
sub rax, rbx
sar rax, 1
cmp eax, 0xffffffff
je 0x140086168
mov r8d, dword [rbx - 0x10]
sub r8d, eax
dec r8d
lea rdx, [rbp - 0x48]
lea rcx, [rsp + 0x50]
call fcn.140016140
nop
mov rdx, qword [rax]
lea rcx, [rdx - 0x18]
add rbx, 0xffffffffffffffe8
cmp rcx, rbx
je 0x140086144
cmp dword [rbx + 0x10], 0
jl 0x140086135
mov rax, qword [rbx]
cmp qword [rcx], rax
jne 0x140086135
call fcn.140001d80
mov rdi, rax
mov eax, r14d
lock xadd dword [rbx + 0x10], eax
dec eax
test eax, eax
jg 0x14008612a
mov rcx, qword [rbx]
mov rax, qword [rcx]
mov rdx, rbx
call qword [rax + VariantCopy]
lea rax, [rdi + 0x18]
mov qword [rsp + 0x50], rax
jmp 0x140086144
mov r8d, dword [rdx - 0x10]
lea rcx, [rsp + 0x50]
call fcn.140002120
nop
mov rdx, qword [rbp - 0x48]
add rdx, 0xffffffffffffffe8
mov eax, r14d
lock xadd dword [rdx + 0x10], eax
dec eax
test eax, eax
jg 0x140086163
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + VariantCopy]
mov rbx, qword [rsp + 0x50]
mov rax, rbx
sub r15, rbx
nop
movzx ecx, word [rax]
cmp cx, word [rax + r15]
jne 0x140086187
add rax, 2
test cx, cx
jne 0x140086170
mov eax, esi
jmp 0x14008618c
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
sete al
test al, al
je 0x1400861a1
xor edx, edx
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_TerminateProcess]
nop
lea rdx, [rbx - 0x18]
lock xadd dword [rdx + 0x10], r14d
dec r14d
test r14d, r14d
jg 0x14008620f
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + VariantCopy]
jmp 0x14008620f
mov ecx, 0x80070057
call fcn.1400022b0
nop
lea r9, [rbp - 0x24]
mov r8d, 8
lea rdx, [rbp - 0x40]
call qword [sym.imp.PSAPI.DLL_EnumProcessModules]
mov r9d, 0x104
lea r8, [rbp - 0x10]
mov rdx, qword [rbp - 0x40]
mov rcx, r12
call qword [sym.imp.PSAPI.DLL_GetModuleBaseNameW]
mov rdx, r15
lea rcx, [rbp - 0x10]
call fcn.1400d519c
test eax, eax
jne 0x14008620f
xor edx, edx
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_TerminateProcess]
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, 0x1f4
call qword [sym.imp.KERNEL32.dll_Sleep]
call fcn.140085690
xor r12d, r12d
mov rcx, qword [rbp - 0x78]
test rcx, rcx
je 0x14008623e
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov qword [rbp - 0x78], r12
mov rcx, qword [rsp + 0x70]
test rcx, rcx
je 0x140086253
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov qword [rsp + 0x70], r12
mov eax, 2
jmp 0x1400862d1
lea rdx, str._asuser
mov rcx, qword [rdi + 8]
call fcn.1400d519c
test eax, eax
jne 0x14008628a
mov rcx, qword [rsp + 0x70]
test rcx, rcx
je 0x140086283
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov qword [rsp + 0x70], r12
mov eax, 3
jmp 0x1400862d1
lea rdx, str._version
mov rcx, qword [rdi + 8]
call fcn.1400d519c
test eax, eax
jne 0x1400862ba
mov rcx, qword [rsp + 0x70]
test rcx, rcx
je 0x1400862b3
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov qword [rsp + 0x70], r12
mov eax, 4
jmp 0x1400862d1
mov rcx, qword [rsp + 0x70]
test rcx, rcx
je 0x1400862cf
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov qword [rsp + 0x70], r12
xor eax, eax
mov rcx, qword [rbp + 0x620]
xor rcx, rsp
call fcn.1400d4d90
lea r11, [rsp + 0x730]
mov rbx, qword [r11 + 0x30]
mov rsi, qword [r11 + 0x40]
mov rdi, qword [r11 + 0x48]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rbp
ret