Function at 0x7ff794c48990
Capabilities:
Delete registry key
Delete registry value
Persist via windows service
Query or enumerate registry key
Query or enumerate registry value
Set registry value

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
mov qword [rsp + 0x18], rdi
push rbp
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x610]
sub rsp, 0x710
mov rax, qword [0x7ff794c70008]
xor rax, rsp
mov qword [rbp + 0x600], rax
xor r14d, r14d
mov dword [rbp - 0x70], r14d
lea rdx, [0x7ff794c66138]
mov rcx, 0xffffffff80000000
call qword [sym.imp.shlwapi.dll_SHDeleteKeyW]
lea rdx, [0x7ff794c66170]
mov rcx, 0xffffffff80000002
call qword [sym.imp.shlwapi.dll_SHDeleteKeyW]
lea rdx, [0x7ff794c661c0]
mov rcx, 0xffffffff80000002
call qword [sym.imp.shlwapi.dll_SHDeleteKeyW]
lea rdx, [0x7ff794c66200]
mov rcx, 0xffffffff80000002
call qword [sym.imp.shlwapi.dll_SHDeleteKeyW]
lea rdx, [0x7ff794c66240]
mov rcx, 0xffffffff80000002
call qword [sym.imp.shlwapi.dll_SHDeleteKeyW]
lea rdx, [0x7ff794c66268]
mov rcx, 0xffffffff80000002
call qword [sym.imp.shlwapi.dll_SHDeleteKeyW]
lea rdx, [0x7ff794c66290]
mov rcx, 0xffffffff80000002
call qword [sym.imp.shlwapi.dll_SHDeleteKeyW]
lea rcx, [rsp + 0x60]
call fcn.7ff794c469c0
mov rsi, rax
cmp qword [rax + 0x18], 8
jb 0x7ff794c48a72
mov rsi, qword [rax]
mov r9, rsi
lea r8, [0x7ff794c662e8]
xor edx, edx
xor ecx, ecx
call fcn.7ff794c44a70
mov qword [rsp + 0x40], r14
mov qword [rsp + 0x50], r14
mov ecx, 7
mov qword [rsp + 0x58], rcx
mov word [rsp + 0x40], r14w
mov dword [rbp - 0x70], 1
test eax, eax
jle 0x7ff794c48b07
movsxd rbx, eax
cmp rbx, rcx
ja 0x7ff794c48ace
mov qword [rsp + 0x50], rbx
movzx eax, r14w
lea rdi, [rsp + 0x40]
mov rcx, rbx
rep stosw word [rdi], ax
mov word [rsp + rbx*2 + 0x40], r14w
jmp 0x7ff794c48ade
mov r9, rbx
mov rdx, rbx
lea rcx, [rsp + 0x40]
call fcn.7ff794c5de50
lea rcx, [rsp + 0x40]
cmp qword [rsp + 0x58], 8
cmovae rcx, qword [rsp + 0x40]
lea rdx, [rbx + 1]
mov r9, rsi
lea r8, [0x7ff794c662e8]
call fcn.7ff794c44a10
mov rcx, qword [rsp + 0x58]
lea rdx, [rsp + 0x40]
cmp rcx, 8
cmovae rdx, qword [rsp + 0x40]
mov rcx, 0xffffffff80000003
call qword [sym.imp.shlwapi.dll_SHDeleteKeyW]
nop
mov rdx, qword [rsp + 0x58]
cmp rdx, 8
jb 0x7ff794c48b69
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x40]
mov rax, rcx
cmp rdx, 0x1000
jb 0x7ff794c48b64
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x7ff794c48b64
call qword [sym.imp.ucrtbase.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.7ff794c61b74
mov qword [rsp + 0x50], r14
mov qword [rsp + 0x58], 7
mov word [rsp + 0x40], r14w
mov rdx, qword [rsp + 0x78]
cmp rdx, 8
jb 0x7ff794c48bc2
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x60]
mov rax, rcx
cmp rdx, 0x1000
jb 0x7ff794c48bbd
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x7ff794c48bbd
call qword [sym.imp.ucrtbase.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.7ff794c61b74
lea r8, [0x7ff794c66318]
lea rdx, [0x7ff794c66340]
mov rcx, 0xffffffff80000001
call qword [sym.imp.shlwapi.dll_SHDeleteValueW]
lea rdx, [0x7ff794c663a8]
mov rcx, 0xffffffff80000003
call qword [sym.imp.shlwapi.dll_SHDeleteKeyW]
lea rdx, [0x7ff794c663e8]
mov rcx, 0xffffffff80000001
call qword [sym.imp.shlwapi.dll_SHDeleteKeyW]
lea rdx, [0x7ff794c66410]
mov rcx, 0xffffffff80000001
call qword [sym.imp.shlwapi.dll_SHDeleteKeyW]
lea rdx, [0x7ff794c66448]
mov rcx, 0xffffffff80000001
call qword [sym.imp.shlwapi.dll_SHDeleteKeyW]
lea rcx, [rsp + 0x60]
call fcn.7ff794c469c0
mov rsi, rax
cmp qword [rax + 0x18], 8
jb 0x7ff794c48c44
mov rsi, qword [rax]
mov r9, rsi
lea r8, [0x7ff794c664a0]
xor edx, edx
xor ecx, ecx
call fcn.7ff794c44a70
mov qword [rsp + 0x40], r14
mov qword [rsp + 0x50], r14
mov ecx, 7
mov qword [rsp + 0x58], rcx
mov word [rsp + 0x40], r14w
mov dword [rbp - 0x70], 2
test eax, eax
jle 0x7ff794c48cd9
movsxd rbx, eax
cmp rbx, rcx
ja 0x7ff794c48ca0
mov qword [rsp + 0x50], rbx
movzx eax, r14w
lea rdi, [rsp + 0x40]
mov rcx, rbx
rep stosw word [rdi], ax
mov word [rsp + rbx*2 + 0x40], r14w
jmp 0x7ff794c48cb0
mov r9, rbx
mov rdx, rbx
lea rcx, [rsp + 0x40]
call fcn.7ff794c5de50
lea rcx, [rsp + 0x40]
cmp qword [rsp + 0x58], 8
cmovae rcx, qword [rsp + 0x40]
lea rdx, [rbx + 1]
mov r9, rsi
lea r8, [0x7ff794c664a0]
call fcn.7ff794c44a10
mov rcx, qword [rsp + 0x58]
lea rdx, [rsp + 0x40]
cmp rcx, 8
cmovae rdx, qword [rsp + 0x40]
mov qword [rbp - 0x68], r14
lea rax, [rbp - 0x68]
mov qword [rsp + 0x20], rax
mov r9d, 0xf003f
xor r8d, r8d
mov rcx, 0xffffffff80000002
call qword [sym.imp.advapi32.dll_RegOpenKeyExW]
test eax, eax
jne 0x7ff794c48d47
mov rdi, qword [rbp - 0x68]
xor edx, edx
mov r8d, 0x208
lea rcx, [rbp + 0x1e0]
call sub.VCRUNTIME140.dll_memset
lea r8, [rbp + 0x1e0]
lea rdx, [0x7ff794c66480]
mov rcx, rdi
call fcn.7ff794c46c00
mov rcx, rdi
call qword [sym.imp.advapi32.dll_RegCloseKey]
nop
mov rdx, qword [rsp + 0x58]
cmp rdx, 8
jb 0x7ff794c48d8c
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x40]
mov rax, rcx
cmp rdx, 0x1000
jb 0x7ff794c48d87
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x7ff794c48d87
call qword [sym.imp.ucrtbase.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.7ff794c61b74
mov qword [rsp + 0x50], r14
mov qword [rsp + 0x58], 7
mov word [rsp + 0x40], r14w
mov rdx, qword [rsp + 0x78]
cmp rdx, 8
jb 0x7ff794c48de5
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x60]
mov rax, rcx
cmp rdx, 0x1000
jb 0x7ff794c48de0
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x7ff794c48de0
call qword [sym.imp.ucrtbase.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.7ff794c61b74
mov qword [rbp - 0x68], r14
lea rax, [rbp - 0x68]
mov qword [rsp + 0x20], rax
mov r9d, 0xf003f
xor r8d, r8d
lea rdx, [0x7ff794c664f0]
mov rcx, 0xffffffff80000002
call qword [sym.imp.advapi32.dll_RegOpenKeyExW]
test eax, eax
jne 0x7ff794c48e4a
mov rdi, qword [rbp - 0x68]
xor edx, edx
mov r8d, 0x208
lea rcx, [rbp + 0x1e0]
call sub.VCRUNTIME140.dll_memset
lea r8, [rbp + 0x1e0]
lea rdx, [0x7ff794c66480]
mov rcx, rdi
call fcn.7ff794c46c00
mov rcx, rdi
call qword [sym.imp.advapi32.dll_RegCloseKey]
mov qword [rbp - 0x60], r14
lea rax, [rbp - 0x60]
mov qword [rsp + 0x20], rax
mov r9d, 0xf003f
xor r8d, r8d
lea rdx, [0x7ff794c66550]
mov rcx, 0xffffffff80000002
call qword [sym.imp.advapi32.dll_RegOpenKeyExW]
test eax, eax
jne 0x7ff794c48ec6
mov rdi, qword [rbp - 0x60]
xor eax, eax
mov dword [rbp - 0x64], eax
call qword [sym.imp.ucrtbase.dll_rand]
mov dword [rbp - 0x68], eax
call qword [sym.imp.ucrtbase.dll_rand]
mov dword [rbp - 0x64], eax
mov dword [rsp + 0x28], 8
lea rax, [rbp - 0x68]
mov qword [rsp + 0x20], rax
mov r9d, 0xb
xor r8d, r8d
lea rdx, [0x7ff794c66530]
mov rcx, rdi
call qword [sym.imp.advapi32.dll_RegSetValueExW]
mov rcx, rdi
call qword [sym.imp.advapi32.dll_RegCloseKey]
mov qword [rbp - 0x60], r14
lea rax, [rbp - 0x60]
mov qword [rsp + 0x20], rax
mov r9d, 0xf003f
xor r8d, r8d
lea rdx, [0x7ff794c66550]
mov rcx, 0xffffffff80000002
call qword [sym.imp.advapi32.dll_RegOpenKeyExW]
test eax, eax
jne 0x7ff794c48f42
mov rdi, qword [rbp - 0x60]
xor eax, eax
mov dword [rbp - 0x64], eax
call qword [sym.imp.ucrtbase.dll_rand]
mov dword [rbp - 0x68], eax
call qword [sym.imp.ucrtbase.dll_rand]
mov dword [rbp - 0x64], eax
mov dword [rsp + 0x28], 8
lea rax, [rbp - 0x68]
mov qword [rsp + 0x20], rax
mov r9d, 0xb
xor r8d, r8d
lea rdx, [0x7ff794c665b0]
mov rcx, rdi
call qword [sym.imp.advapi32.dll_RegSetValueExW]
mov rcx, rdi
call qword [sym.imp.advapi32.dll_RegCloseKey]
mov qword [rbp - 0x68], r14
lea rax, [rbp - 0x68]
mov qword [rsp + 0x20], rax
mov r9d, 0xf003f
xor r8d, r8d
lea rdx, [0x7ff794c66550]
mov rcx, 0xffffffff80000002
call qword [sym.imp.advapi32.dll_RegOpenKeyExW]
test eax, eax
jne 0x7ff794c48fa7
mov rdi, qword [rbp - 0x68]
xor edx, edx
mov r8d, 0x208
lea rcx, [rbp + 0x1e0]
call sub.VCRUNTIME140.dll_memset
lea r8, [rbp + 0x1e0]
lea rdx, [0x7ff794c665c8]
mov rcx, rdi
call fcn.7ff794c46c00
mov rcx, rdi
call qword [sym.imp.advapi32.dll_RegCloseKey]
mov qword [rbp - 0x68], r14
lea rax, [rbp - 0x68]
mov qword [rsp + 0x20], rax
mov r9d, 0xf003f
xor r8d, r8d
lea rdx, [0x7ff794c66600]
mov rcx, 0xffffffff80000002
call qword [sym.imp.advapi32.dll_RegOpenKeyExW]
test eax, eax
jne 0x7ff794c4900c
mov rdi, qword [rbp - 0x68]
xor edx, edx
mov r8d, 0x208
lea rcx, [rbp + 0x1e0]
call sub.VCRUNTIME140.dll_memset
lea r8, [rbp + 0x1e0]
lea rdx, [0x7ff794c665e0]
mov rcx, rdi
call fcn.7ff794c46c00
mov rcx, rdi
call qword [sym.imp.advapi32.dll_RegCloseKey]
mov qword [rbp - 0x68], r14
lea rax, [rbp - 0x68]
mov qword [rsp + 0x20], rax
mov r9d, 0xf003f
xor r8d, r8d
lea rdx, [0x7ff794c66600]
mov rcx, 0xffffffff80000002
call qword [sym.imp.advapi32.dll_RegOpenKeyExW]
test eax, eax
jne 0x7ff794c49071
mov rdi, qword [rbp - 0x68]
xor edx, edx
mov r8d, 0x208
lea rcx, [rbp + 0x1e0]
call sub.VCRUNTIME140.dll_memset
lea r8, [rbp + 0x1e0]
lea rdx, [0x7ff794c66688]
mov rcx, rdi
call fcn.7ff794c46c00
mov rcx, rdi
call qword [sym.imp.advapi32.dll_RegCloseKey]
mov qword [rbp - 0x68], r14
lea rax, [rbp - 0x68]
mov qword [rsp + 0x20], rax
mov r9d, 0xf003f
xor r8d, r8d
lea rdx, [0x7ff794c666c0]
mov rcx, 0xffffffff80000002
call qword [sym.imp.advapi32.dll_RegOpenKeyExW]
lea r15, [0x7ff794c70068]
lea r12, [0x7ff794c70088]
test eax, eax
jne 0x7ff794c491c1
mov rsi, qword [rbp - 0x68]
xor edx, edx
mov r8d, 0x208
lea rcx, [rbp - 0x30]
call sub.VCRUNTIME140.dll_memset
mov dword [rbp - 0x60], 0x208
lea rax, [rbp - 0x60]
mov qword [rsp + 0x28], rax
lea rax, [rbp - 0x30]
mov qword [rsp + 0x20], rax
xor r9d, r9d
xor r8d, r8d
lea rdx, [0x7ff794c66698]
mov rcx, rsi
call qword [sym.imp.advapi32.dll_RegQueryValueExW]
test eax, eax
jne 0x7ff794c491b8
lea ebx, [rax + 7]
lea rcx, [rbp - 0x30]
mov rax, 0xffffffffffffffff
nop dword [rax + rax]
inc rax
cmp word [rcx + rax*2], 0
jne 0x7ff794c49110
cmp rax, rbx
jbe 0x7ff794c4918f
mov rcx, rbx
lea rdi, [rbp - 0x30]
lea rdi, [rdi + rcx*2]
movzx ecx, word [rdi]
call qword [sym.imp.user32.dll_IsCharAlphaNumericW]
test eax, eax
je 0x7ff794c49168
call qword [sym.imp.ucrtbase.dll_rand]
cdqe
mov rcx, 0xffffffffffffffff
nop word [rax + rax]
inc rcx
cmp word [r15 + rcx*2], 0
jne 0x7ff794c49150
xor edx, edx
div rcx
movzx eax, word [r12 + rdx*2]
mov word [rdi], ax
inc ebx
mov ecx, ebx
lea rdx, [rbp - 0x30]
mov rax, 0xffffffffffffffff
nop word [rax + rax]
inc rax
cmp word [rdx + rax*2], 0
jne 0x7ff794c49180
cmp rcx, rax
jb 0x7ff794c49122
mov eax, dword [rbp - 0x60]
mov dword [rsp + 0x28], eax
lea rax, [rbp - 0x30]
mov qword [rsp + 0x20], rax
mov r9d, 1
xor r8d, r8d
lea rdx, [0x7ff794c66698]
mov rcx, rsi
call qword [sym.imp.advapi32.dll_RegSetValueExW]
mov rcx, rsi
call qword [sym.imp.advapi32.dll_RegCloseKey]
mov qword [rbp - 0x68], r14
lea rax, [rbp - 0x68]
mov qword [rsp + 0x20], rax
mov r9d, 0xf003f
xor r8d, r8d
lea rdx, [0x7ff794c66750]
mov rcx, 0xffffffff80000002
call qword [sym.imp.advapi32.dll_RegOpenKeyExW]
test eax, eax
jne 0x7ff794c49301
mov rsi, qword [rbp - 0x68]
xor edx, edx
mov r8d, 0x208
lea rcx, [rbp - 0x30]
call sub.VCRUNTIME140.dll_memset
mov dword [rbp - 0x60], 0x208
lea rax, [rbp - 0x60]
mov qword [rsp + 0x28], rax
lea rax, [rbp - 0x30]
mov qword [rsp + 0x20], rax
xor r9d, r9d
xor r8d, r8d
lea rdx, [0x7ff794c66698]
mov rcx, rsi
call qword [sym.imp.advapi32.dll_RegQueryValueExW]
test eax, eax
jne 0x7ff794c492f8
lea ebx, [rax + 7]
lea rcx, [rbp - 0x30]
mov rax, 0xffffffffffffffff
nop dword [rax]
inc rax
cmp word [rcx + rax*2], 0
jne 0x7ff794c49250
cmp rax, rbx
jbe 0x7ff794c492cf
mov rcx, rbx
lea rdi, [rbp - 0x30]
lea rdi, [rdi + rcx*2]
movzx ecx, word [rdi]
call qword [sym.imp.user32.dll_IsCharAlphaNumericW]
test eax, eax
je 0x7ff794c492a8
call qword [sym.imp.ucrtbase.dll_rand]
cdqe
mov rcx, 0xffffffffffffffff
nop word [rax + rax]
inc rcx
cmp word [r15 + rcx*2], 0
jne 0x7ff794c49290
xor edx, edx
div rcx
movzx eax, word [r12 + rdx*2]
mov word [rdi], ax
inc ebx
mov ecx, ebx
lea rdx, [rbp - 0x30]
mov rax, 0xffffffffffffffff
nop word [rax + rax]
inc rax
cmp word [rdx + rax*2], 0
jne 0x7ff794c492c0
cmp rcx, rax
jb 0x7ff794c49262
mov eax, dword [rbp - 0x60]
mov dword [rsp + 0x28], eax
lea rax, [rbp - 0x30]
mov qword [rsp + 0x20], rax
mov r9d, 1
xor r8d, r8d
lea rdx, [0x7ff794c66698]
mov rcx, rsi
call qword [sym.imp.advapi32.dll_RegSetValueExW]
mov rcx, rsi
call qword [sym.imp.advapi32.dll_RegCloseKey]
mov qword [rbp - 0x68], r14
lea rax, [rbp - 0x68]
mov qword [rsp + 0x20], rax
mov r9d, 0xf003f
xor r8d, r8d
lea rdx, [0x7ff794c667e0]
mov rcx, 0xffffffff80000002
call qword [sym.imp.advapi32.dll_RegOpenKeyExW]
test eax, eax
jne 0x7ff794c49441
mov rsi, qword [rbp - 0x68]
xor edx, edx
mov r8d, 0x208
lea rcx, [rbp - 0x30]
call sub.VCRUNTIME140.dll_memset
mov dword [rbp - 0x60], 0x208
lea rax, [rbp - 0x60]
mov qword [rsp + 0x28], rax
lea rax, [rbp - 0x30]
mov qword [rsp + 0x20], rax
xor r9d, r9d
xor r8d, r8d
lea rdx, [0x7ff794c667c8]
mov rcx, rsi
call qword [sym.imp.advapi32.dll_RegQueryValueExW]
test eax, eax
jne 0x7ff794c49438
lea ebx, [rax + 7]
lea rcx, [rbp - 0x30]
mov rax, 0xffffffffffffffff
nop dword [rax]
inc rax
cmp word [rcx + rax*2], 0
jne 0x7ff794c49390
cmp rax, rbx
jbe 0x7ff794c4940f
mov rcx, rbx
lea rdi, [rbp - 0x30]
lea rdi, [rdi + rcx*2]
movzx ecx, word [rdi]
call qword [sym.imp.user32.dll_IsCharAlphaNumericW]
test eax, eax
je 0x7ff794c493e8
call qword [sym.imp.ucrtbase.dll_rand]
cdqe
mov rcx, 0xffffffffffffffff
nop word [rax + rax]
inc rcx
cmp word [r15 + rcx*2], 0
jne 0x7ff794c493d0
xor edx, edx
div rcx
movzx eax, word [r12 + rdx*2]
mov word [rdi], ax
inc ebx
mov ecx, ebx
lea rdx, [rbp - 0x30]
mov rax, 0xffffffffffffffff
nop word [rax + rax]
inc rax
cmp word [rdx + rax*2], 0
jne 0x7ff794c49400
cmp rcx, rax
jb 0x7ff794c493a2
mov eax, dword [rbp - 0x60]
mov dword [rsp + 0x28], eax
lea rax, [rbp - 0x30]
mov qword [rsp + 0x20], rax
mov r9d, 1
xor r8d, r8d
lea rdx, [0x7ff794c667c8]
mov rcx, rsi
call qword [sym.imp.advapi32.dll_RegSetValueExW]
mov rcx, rsi
call qword [sym.imp.advapi32.dll_RegCloseKey]
lea rcx, [rsp + 0x60]
call fcn.7ff794c469c0
mov rsi, rax
cmp qword [rax + 0x18], 8
jb 0x7ff794c49458
mov rsi, qword [rax]
mov r9, rsi
lea r8, [0x7ff794c66860]
xor edx, edx
xor ecx, ecx
call fcn.7ff794c44a70
mov qword [rsp + 0x40], r14
mov qword [rsp + 0x50], r14
mov ecx, 7
mov qword [rsp + 0x58], rcx
mov word [rsp + 0x40], r14w
mov dword [rbp - 0x70], 4
test eax, eax
jle 0x7ff794c494ed
movsxd rbx, eax
cmp rbx, rcx
ja 0x7ff794c494b4
mov qword [rsp + 0x50], rbx
movzx eax, r14w
lea rdi, [rsp + 0x40]
mov rcx, rbx
rep stosw word [rdi], ax
mov word [rsp + rbx*2 + 0x40], r14w
jmp 0x7ff794c494c4
mov r9, rbx
mov rdx, rbx
lea rcx, [rsp + 0x40]
call fcn.7ff794c5de50
lea rcx, [rsp + 0x40]
cmp qword [rsp + 0x58], 8
cmovae rcx, qword [rsp + 0x40]
lea rdx, [rbx + 1]
mov r9, rsi
lea r8, [0x7ff794c66860]
call fcn.7ff794c44a10
mov rcx, qword [rsp + 0x58]
lea rdx, [rsp + 0x40]
cmp rcx, 8
cmovae rdx, qword [rsp + 0x40]
mov qword [rbp - 0x68], r14
lea rax, [rbp - 0x68]
mov qword [rsp + 0x20], rax
mov r9d, 0xf003f
xor r8d, r8d
mov rcx, 0xffffffff80000001
call qword [sym.imp.advapi32.dll_RegOpenKeyExW]
test eax, eax
jne 0x7ff794c495cb
mov rsi, qword [rbp - 0x68]
mov dword [rbp - 0x70], r14d
lea rax, [rbp - 0x70]
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], r14
xor r9d, r9d
xor r8d, r8d
lea rdx, [0x7ff794c66848]
mov rcx, rsi
call qword [sym.imp.advapi32.dll_RegQueryValueExW]
test eax, eax
jne 0x7ff794c495c1
mov ecx, dword [rbp - 0x70]
call qword [sym.imp.ucrtbase.dll_malloc]
mov rbx, rax
test rax, rax
je 0x7ff794c495c1
mov edi, r14d
mov ecx, dword [rbp - 0x70]
test ecx, ecx
je 0x7ff794c49596
call qword [sym.imp.ucrtbase.dll_rand]
and eax, 0x800000ff
jge 0x7ff794c49588
dec eax
or eax, 0xffffff00
inc eax
mov ecx, edi
mov byte [rcx + rbx], al
inc edi
mov ecx, dword [rbp - 0x70]
cmp edi, ecx
jb 0x7ff794c49572
mov dword [rsp + 0x28], ecx
mov qword [rsp + 0x20], rbx
mov r9d, 3
xor r8d, r8d
lea rdx, [0x7ff794c66848]
mov rcx, rsi
call qword [sym.imp.advapi32.dll_RegSetValueExW]
mov rcx, rbx
call qword [sym.imp.ucrtbase.dll_free]
mov rcx, rsi
call qword [sym.imp.advapi32.dll_RegCloseKey]
nop
mov rdx, qword [rsp + 0x58]
cmp rdx, 8
jb 0x7ff794c49610
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x40]
mov rax, rcx
cmp rdx, 0x1000
jb 0x7ff794c4960b
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x7ff794c4960b
call qword [sym.imp.ucrtbase.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.7ff794c61b74
mov qword [rsp + 0x50], r14
mov qword [rsp + 0x58], 7
mov word [rsp + 0x40], r14w
mov rdx, qword [rsp + 0x78]
cmp rdx, 8
jb 0x7ff794c49669
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x60]
mov rax, rcx
cmp rdx, 0x1000
jb 0x7ff794c49664
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x7ff794c49664
call qword [sym.imp.ucrtbase.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.7ff794c61b74
mov qword [rbp - 0x68], r14
lea rax, [rbp - 0x68]
mov qword [rsp + 0x20], rax
mov r9d, 0xf003f
xor r8d, r8d
lea rdx, [0x7ff794c668a0]
mov rcx, 0xffffffff80000001
call qword [sym.imp.advapi32.dll_RegOpenKeyExW]
test eax, eax
jne 0x7ff794c4973e
mov rsi, qword [rbp - 0x68]
mov dword [rbp - 0x70], r14d
lea rax, [rbp - 0x70]
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], r14
xor r9d, r9d
xor r8d, r8d
lea rdx, [0x7ff794c66848]
mov rcx, rsi
call qword [sym.imp.advapi32.dll_RegQueryValueExW]
test eax, eax
jne 0x7ff794c49735
mov ecx, dword [rbp - 0x70]
call qword [sym.imp.ucrtbase.dll_malloc]
mov rbx, rax
test rax, rax
je 0x7ff794c49735
mov edi, r14d
mov ecx, dword [rbp - 0x70]
test ecx, ecx
je 0x7ff794c4970a
call qword [sym.imp.ucrtbase.dll_rand]
and eax, 0x800000ff
jge 0x7ff794c496fc
dec eax
or eax, 0xffffff00
inc eax
mov ecx, edi
mov byte [rcx + rbx], al
inc edi
mov ecx, dword [rbp - 0x70]
cmp edi, ecx
jb 0x7ff794c496e6
mov dword [rsp + 0x28], ecx
mov qword [rsp + 0x20], rbx
mov r9d, 3
xor r8d, r8d
lea rdx, [0x7ff794c66848]
mov rcx, rsi
call qword [sym.imp.advapi32.dll_RegSetValueExW]
mov rcx, rbx
call qword [sym.imp.ucrtbase.dll_free]
mov rcx, rsi
call qword [sym.imp.advapi32.dll_RegCloseKey]
lea rcx, [rsp + 0x60]
call fcn.7ff794c469c0
mov rsi, rax
cmp qword [rax + 0x18], 8
jb 0x7ff794c49755
mov rsi, qword [rax]
mov r9, rsi
lea r8, [0x7ff794c668f0]
xor edx, edx
xor ecx, ecx
call fcn.7ff794c44a70
mov qword [rsp + 0x40], r14
mov qword [rsp + 0x50], r14
mov ecx, 7
mov qword [rsp + 0x58], rcx
mov word [rsp + 0x40], r14w
mov dword [rbp - 0x70], 8
test eax, eax
jle 0x7ff794c497ea
movsxd rbx, eax
cmp rbx, rcx
ja 0x7ff794c497b1
mov qword [rsp + 0x50], rbx
movzx eax, r14w
lea rdi, [rsp + 0x40]
mov rcx, rbx
rep stosw word [rdi], ax
mov word [rsp + rbx*2 + 0x40], r14w
jmp 0x7ff794c497c1
mov r9, rbx
mov rdx, rbx
lea rcx, [rsp + 0x40]
call fcn.7ff794c5de50
lea rcx, [rsp + 0x40]
cmp qword [rsp + 0x58], 8
cmovae rcx, qword [rsp + 0x40]
lea rdx, [rbx + 1]
mov r9, rsi
lea r8, [0x7ff794c668f0]
call fcn.7ff794c44a10
mov rcx, qword [rsp + 0x58]
lea rdx, [rsp + 0x40]
cmp rcx, 8
cmovae rdx, qword [rsp + 0x40]
mov qword [rbp - 0x68], r14
lea rax, [rbp - 0x68]
mov qword [rsp + 0x20], rax
mov r9d, 0xf003f
xor r8d, r8d
mov rcx, 0xffffffff80000001
call qword [sym.imp.advapi32.dll_RegOpenKeyExW]
test eax, eax
jne 0x7ff794c498c9
mov rsi, qword [rbp - 0x68]
mov dword [rbp - 0x70], r14d
lea rax, [rbp - 0x70]
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], r14
xor r9d, r9d
xor r8d, r8d
lea rdx, [0x7ff794c668d8]
mov rcx, rsi
call qword [sym.imp.advapi32.dll_RegQueryValueExW]
test eax, eax
jne 0x7ff794c498bf
mov ecx, dword [rbp - 0x70]
call qword [sym.imp.ucrtbase.dll_malloc]
mov rbx, rax
test rax, rax
je 0x7ff794c498bf
mov edi, r14d
mov ecx, dword [rbp - 0x70]
test ecx, ecx
je 0x7ff794c49894
nop
call qword [sym.imp.ucrtbase.dll_rand]
and eax, 0x800000ff
jge 0x7ff794c49886
dec eax
or eax, 0xffffff00
inc eax
mov ecx, edi
mov byte [rcx + rbx], al
inc edi
mov ecx, dword [rbp - 0x70]
cmp edi, ecx
jb 0x7ff794c49870
mov dword [rsp + 0x28], ecx
mov qword [rsp + 0x20], rbx
mov r9d, 3
xor r8d, r8d
lea rdx, [0x7ff794c668d8]
mov rcx, rsi
call qword [sym.imp.advapi32.dll_RegSetValueExW]
mov rcx, rbx
call qword [sym.imp.ucrtbase.dll_free]
mov rcx, rsi
call qword [sym.imp.advapi32.dll_RegCloseKey]
nop
mov rdx, qword [rsp + 0x58]
cmp rdx, 8
jb 0x7ff794c4990e
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x40]
mov rax, rcx
cmp rdx, 0x1000
jb 0x7ff794c49909
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x7ff794c49909
call qword [sym.imp.ucrtbase.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.7ff794c61b74
mov qword [rsp + 0x50], r14
mov qword [rsp + 0x58], 7
mov word [rsp + 0x40], r14w
mov rdx, qword [rsp + 0x78]
cmp rdx, 8
jb 0x7ff794c49967
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x60]
mov rax, rcx
cmp rdx, 0x1000
jb 0x7ff794c49962
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x7ff794c49962
call qword [sym.imp.ucrtbase.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.7ff794c61b74
mov qword [rbp - 0x68], r14
lea rax, [rbp - 0x68]
mov qword [rsp + 0x20], rax
mov r9d, 0xf003f
xor r8d, r8d
lea rdx, [0x7ff794c66930]
mov rcx, 0xffffffff80000001
call qword [sym.imp.advapi32.dll_RegOpenKeyExW]
test eax, eax
jne 0x7ff794c49a3c
mov rsi, qword [rbp - 0x68]
mov dword [rbp - 0x70], r14d
lea rax, [rbp - 0x70]
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], r14
xor r9d, r9d
xor r8d, r8d
lea rdx, [0x7ff794c668d8]
mov rcx, rsi
call qword [sym.imp.advapi32.dll_RegQueryValueExW]
test eax, eax
jne 0x7ff794c49a33
mov ecx, dword [rbp - 0x70]
call qword [sym.imp.ucrtbase.dll_malloc]
mov rbx, rax
test rax, rax
je 0x7ff794c49a33
mov edi, r14d
mov ecx, dword [rbp - 0x70]
test ecx, ecx
je 0x7ff794c49a08
call qword [sym.imp.ucrtbase.dll_rand]
and eax, 0x800000ff
jge 0x7ff794c499fa
dec eax
or eax, 0xffffff00
inc eax
mov ecx, edi
mov byte [rcx + rbx], al
inc edi
mov ecx, dword [rbp - 0x70]
cmp edi, ecx
jb 0x7ff794c499e4
mov dword [rsp + 0x28], ecx
mov qword [rsp + 0x20], rbx
mov r9d, 3
xor r8d, r8d
lea rdx, [0x7ff794c668d8]
mov rcx, rsi
call qword [sym.imp.advapi32.dll_RegSetValueExW]
mov rcx, rbx
call qword [sym.imp.ucrtbase.dll_free]
mov rcx, rsi
call qword [sym.imp.advapi32.dll_RegCloseKey]
lea rdx, [0x7ff794c66448]
mov rcx, 0xffffffff80000001
call qword [sym.imp.shlwapi.dll_SHDeleteKeyW]
mov qword [rbp - 0x68], r14
lea rax, [rbp - 0x68]
mov qword [rsp + 0x20], rax
mov r9d, 0xf003f
xor r8d, r8d
lea rdx, [0x7ff794c66990]
mov rcx, 0xffffffff80000002
call qword [sym.imp.advapi32.dll_RegOpenKeyExW]
test eax, eax
jne 0x7ff794c49b91
mov rsi, qword [rbp - 0x68]
xor edx, edx
mov r8d, 0x208
lea rcx, [rbp - 0x30]
call sub.VCRUNTIME140.dll_memset
mov dword [rbp - 0x60], 0x208
lea rax, [rbp - 0x60]
mov qword [rsp + 0x28], rax
lea rax, [rbp - 0x30]
mov qword [rsp + 0x20], rax
xor r9d, r9d
xor r8d, r8d
lea rdx, [0x7ff794c66968]
mov rcx, rsi
call qword [sym.imp.advapi32.dll_RegQueryValueExW]
test eax, eax
jne 0x7ff794c49b88
lea ebx, [rax + 7]
lea rcx, [rbp - 0x30]
mov rax, 0xffffffffffffffff
nop dword [rax]
inc rax
cmp word [rcx + rax*2], 0
jne 0x7ff794c49ae0
cmp rax, rbx
jbe 0x7ff794c49b5f
mov rcx, rbx
lea rdi, [rbp - 0x30]
lea rdi, [rdi + rcx*2]
movzx ecx, word [rdi]
call qword [sym.imp.user32.dll_IsCharAlphaNumericW]
test eax, eax
je 0x7ff794c49b38
call qword [sym.imp.ucrtbase.dll_rand]
cdqe
mov rcx, 0xffffffffffffffff
nop word [rax + rax]
inc rcx
cmp word [r15 + rcx*2], 0
jne 0x7ff794c49b20
xor edx, edx
div rcx
movzx eax, word [r12 + rdx*2]
mov word [rdi], ax
inc ebx
mov ecx, ebx
lea rdx, [rbp - 0x30]
mov rax, 0xffffffffffffffff
nop word [rax + rax]
inc rax
cmp word [rdx + rax*2], 0
jne 0x7ff794c49b50
cmp rcx, rax
jb 0x7ff794c49af2
mov eax, dword [rbp - 0x60]
mov dword [rsp + 0x28], eax
lea rax, [rbp - 0x30]
mov qword [rsp + 0x20], rax
mov r9d, 1
xor r8d, r8d
lea rdx, [0x7ff794c66968]
mov rcx, rsi
call qword [sym.imp.advapi32.dll_RegSetValueExW]
mov rcx, rsi
call qword [sym.imp.advapi32.dll_RegCloseKey]
mov qword [rbp - 0x60], r14
lea rax, [rbp - 0x60]
mov qword [rsp + 0x20], rax
mov r9d, 0xf003f
xor r8d, r8d
lea rdx, [0x7ff794c66550]
mov rcx, 0xffffffff80000002
call qword [sym.imp.advapi32.dll_RegOpenKeyExW]
test eax, eax
jne 0x7ff794c49c0d
mov rdi, qword [rbp - 0x60]
xor eax, eax
mov dword [rbp - 0x64], eax
call qword [sym.imp.ucrtbase.dll_rand]
mov dword [rbp - 0x68], eax
call qword [sym.imp.ucrtbase.dll_rand]
mov dword [rbp - 0x64], eax
mov dword [rsp + 0x28], 8
lea rax, [rbp - 0x68]
mov qword [rsp + 0x20], rax
mov r9d, 0xb
xor r8d, r8d
lea rdx, [0x7ff794c665b0]
mov rcx, rdi
call qword [sym.imp.advapi32.dll_RegSetValueExW]
mov rcx, rdi
call qword [sym.imp.advapi32.dll_RegCloseKey]
mov qword [rbp - 0x60], r14
lea rax, [rbp - 0x60]
mov qword [rsp + 0x20], rax
mov r9d, 0xf003f
xor r8d, r8d
lea rdx, [0x7ff794c66550]
mov rcx, 0xffffffff80000002
call qword [sym.imp.advapi32.dll_RegOpenKeyExW]
test eax, eax
jne 0x7ff794c49c89
mov rdi, qword [rbp - 0x60]
xor eax, eax
mov dword [rbp - 0x64], eax
call qword [sym.imp.ucrtbase.dll_rand]
mov dword [rbp - 0x68], eax
call qword [sym.imp.ucrtbase.dll_rand]
mov dword [rbp - 0x64], eax
mov dword [rsp + 0x28], 8
lea rax, [rbp - 0x68]
mov qword [rsp + 0x20], rax
mov r9d, 0xb
xor r8d, r8d
lea rdx, [0x7ff794c66530]
mov rcx, rdi
call qword [sym.imp.advapi32.dll_RegSetValueExW]
mov rcx, rdi
call qword [sym.imp.advapi32.dll_RegCloseKey]
mov qword [rbp - 0x68], r14
lea rax, [rbp - 0x68]
mov qword [rsp + 0x20], rax
mov r9d, 0xf003f
xor r8d, r8d
lea rdx, [0x7ff794c66550]
mov rcx, 0xffffffff80000002
call qword [sym.imp.advapi32.dll_RegOpenKeyExW]
test eax, eax
jne 0x7ff794c49cee
mov rdi, qword [rbp - 0x68]
xor edx, edx
mov r8d, 0x208
lea rcx, [rbp + 0x1e0]
call sub.VCRUNTIME140.dll_memset
lea r8, [rbp + 0x1e0]
lea rdx, [0x7ff794c66a38]
mov rcx, rdi
call fcn.7ff794c46c00
mov rcx, rdi
call qword [sym.imp.advapi32.dll_RegCloseKey]
mov qword [rbp - 0x68], r14
lea rax, [rbp - 0x68]
mov qword [rsp + 0x20], rax
mov r9d, 0xf003f
xor r8d, r8d
lea rdx, [0x7ff794c66550]
mov rcx, 0xffffffff80000002
call qword [sym.imp.advapi32.dll_RegOpenKeyExW]
test eax, eax
jne 0x7ff794c49d53
mov rdi, qword [rbp - 0x68]
xor edx, edx
mov r8d, 0x208
lea rcx, [rbp + 0x1e0]
call sub.VCRUNTIME140.dll_memset
lea r8, [rbp + 0x1e0]
lea rdx, [0x7ff794c66a50]
mov rcx, rdi
call fcn.7ff794c46c00
mov rcx, rdi
call qword [sym.imp.advapi32.dll_RegCloseKey]
mov qword [rbp - 0x68], r14
lea rax, [rbp - 0x68]
mov qword [rsp + 0x20], rax
mov r9d, 0xf003f
xor r8d, r8d
lea rdx, [0x7ff794c66550]
mov rcx, 0xffffffff80000002
call qword [sym.imp.advapi32.dll_RegOpenKeyExW]
test eax, eax
jne 0x7ff794c49db8
mov rdi, qword [rbp - 0x68]
xor edx, edx
mov r8d, 0x208
lea rcx, [rbp + 0x1e0]
call sub.VCRUNTIME140.dll_memset
lea r8, [rbp + 0x1e0]
lea rdx, [0x7ff794c665c8]
mov rcx, rdi
call fcn.7ff794c46c00
mov rcx, rdi
call qword [sym.imp.advapi32.dll_RegCloseKey]
mov qword [rbp - 0x68], r14
lea rax, [rbp - 0x68]
mov qword [rsp + 0x20], rax
mov r9d, 0xf003f
xor r8d, r8d
lea rdx, [0x7ff794c66550]
mov rcx, 0xffffffff80000002
call qword [sym.imp.advapi32.dll_RegOpenKeyExW]
test eax, eax
jne 0x7ff794c49e8d
mov rsi, qword [rbp - 0x68]
mov dword [rbp - 0x70], r14d
lea rax, [rbp - 0x70]
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], r14
xor r9d, r9d
xor r8d, r8d
lea rdx, [0x7ff794c66a68]
mov rcx, rsi
call qword [sym.imp.advapi32.dll_RegQueryValueExW]
test eax, eax
jne 0x7ff794c49e84
mov ecx, dword [rbp - 0x70]
call qword [sym.imp.ucrtbase.dll_malloc]
mov rbx, rax
test rax, rax
je 0x7ff794c49e84
mov edi, r14d
mov ecx, dword [rbp - 0x70]
test ecx, ecx
je 0x7ff794c49e59
call qword [sym.imp.ucrtbase.dll_rand]
and eax, 0x800000ff
jge 0x7ff794c49e4b
dec eax
or eax, 0xffffff00
inc eax
mov ecx, edi
mov byte [rcx + rbx], al
inc edi
mov ecx, dword [rbp - 0x70]
cmp edi, ecx
jb 0x7ff794c49e35
mov dword [rsp + 0x28], ecx
mov qword [rsp + 0x20], rbx
mov r9d, 3
xor r8d, r8d
lea rdx, [0x7ff794c66a68]
mov rcx, rsi
call qword [sym.imp.advapi32.dll_RegSetValueExW]
mov rcx, rbx
call qword [sym.imp.ucrtbase.dll_free]
mov rcx, rsi
call qword [sym.imp.advapi32.dll_RegCloseKey]
mov qword [rbp - 0x68], r14
lea rax, [rbp - 0x68]
mov qword [rsp + 0x20], rax
mov r9d, 0xf003f
xor r8d, r8d
lea rdx, [0x7ff794c66550]
mov rcx, 0xffffffff80000002
call qword [sym.imp.advapi32.dll_RegOpenKeyExW]
test eax, eax
jne 0x7ff794c49f68
mov rsi, qword [rbp - 0x68]
mov dword [rbp - 0x70], r14d
lea rax, [rbp - 0x70]
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], r14
xor r9d, r9d
xor r8d, r8d
lea rdx, [0x7ff794c66a90]
mov rcx, rsi
call qword [sym.imp.advapi32.dll_RegQueryValueExW]
test eax, eax
jne 0x7ff794c49f5f
mov ecx, dword [rbp - 0x70]
call qword [sym.imp.ucrtbase.dll_malloc]
mov rbx, rax
test rax, rax
je 0x7ff794c49f5f
mov edi, r14d
mov ecx, dword [rbp - 0x70]
test ecx, ecx
je 0x7ff794c49f34
nop word [rax + rax]
call qword [sym.imp.ucrtbase.dll_rand]
and eax, 0x800000ff
jge 0x7ff794c49f26
dec eax
or eax, 0xffffff00
inc eax
mov ecx, edi
mov byte [rcx + rbx], al
inc edi
mov ecx, dword [rbp - 0x70]
cmp edi, ecx
jb 0x7ff794c49f10
mov dword [rsp + 0x28], ecx
mov qword [rsp + 0x20], rbx
mov r9d, 3
xor r8d, r8d
lea rdx, [0x7ff794c66a90]
mov rcx, rsi
call qword [sym.imp.advapi32.dll_RegSetValueExW]
mov rcx, rbx
call qword [sym.imp.ucrtbase.dll_free]
mov rcx, rsi
call qword [sym.imp.advapi32.dll_RegCloseKey]
lea rcx, [rsp + 0x60]
call fcn.7ff794c469c0
mov rsi, rax
cmp qword [rax + 0x18], 8
jb 0x7ff794c49f7f
mov rsi, qword [rax]
mov r9, rsi
lea r8, [0x7ff794c664a0]
xor edx, edx
xor ecx, ecx
call fcn.7ff794c44a70
mov qword [rsp + 0x40], r14
mov qword [rsp + 0x50], r14
mov ecx, 7
mov qword [rsp + 0x58], rcx
mov word [rsp + 0x40], r14w
mov dword [rbp - 0x70], 0x10
test eax, eax
jle 0x7ff794c4a014
movsxd rbx, eax
cmp rbx, rcx
ja 0x7ff794c49fdb
mov qword [rsp + 0x50], rbx
movzx eax, r14w
lea rdi, [rsp + 0x40]
mov rcx, rbx
rep stosw word [rdi], ax
mov word [rsp + rbx*2 + 0x40], r14w
jmp 0x7ff794c49feb
mov r9, rbx
mov rdx, rbx
lea rcx, [rsp + 0x40]
call fcn.7ff794c5de50
lea rcx, [rsp + 0x40]
cmp qword [rsp + 0x58], 8
cmovae rcx, qword [rsp + 0x40]
lea rdx, [rbx + 1]
mov r9, rsi
lea r8, [0x7ff794c664a0]
call fcn.7ff794c44a10
mov rcx, qword [rsp + 0x58]
lea rdx, [rsp + 0x40]
cmp rcx, 8
cmovae rdx, qword [rsp + 0x40]
xor esi, esi
mov qword [rbp - 0x68], rsi
lea rax, [rbp - 0x68]
mov qword [rsp + 0x20], rax
mov r9d, 0xf003f
xor r8d, r8d
mov rcx, 0xffffffff80000002
call qword [sym.imp.advapi32.dll_RegOpenKeyExW]
test eax, eax
jne 0x7ff794c4a084
mov rdi, qword [rbp - 0x68]
xor edx, edx
mov r8d, 0x208
lea rcx, [rbp + 0x1e0]
call sub.VCRUNTIME140.dll_memset
lea r8, [rbp + 0x1e0]
lea rdx, [0x7ff794c66480]
mov rcx, rdi
call fcn.7ff794c46c00
mov rcx, rdi
call qword [sym.imp.advapi32.dll_RegCloseKey]
nop
mov rdx, qword [rsp + 0x58]
cmp rdx, 8
jb 0x7ff794c4a0c9
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x40]
mov rax, rcx
cmp rdx, 0x1000
jb 0x7ff794c4a0c4
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x7ff794c4a0c4
call qword [sym.imp.ucrtbase.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.7ff794c61b74
mov qword [rsp + 0x50], rsi
mov qword [rsp + 0x58], 7
mov word [rsp + 0x40], si
mov rdx, qword [rsp + 0x78]
cmp rdx, 8
jb 0x7ff794c4a121
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x60]
mov rax, rcx
cmp rdx, 0x1000
jb 0x7ff794c4a11c
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x7ff794c4a11c
call qword [sym.imp.ucrtbase.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.7ff794c61b74
mov qword [rbp - 0x58], rsi
lea rax, [rbp - 0x58]
mov qword [rsp + 0x20], rax
mov r9d, 0xf003f
xor r8d, r8d
lea rdx, [0x7ff794c66ac0]
mov rcx, 0xffffffff80000002
call qword [sym.imp.advapi32.dll_RegOpenKeyExW]
test eax, eax
jne 0x7ff794c4a46b
mov rbx, qword [rbp - 0x58]
mov qword [rbp - 0x78], rbx
xor edx, edx
mov r8d, 0x208
lea rcx, [rbp + 0x1e0]
call sub.VCRUNTIME140.dll_memset
mov edi, esi
mov dword [rbp - 0x68], esi
mov dword [rbp - 0x60], 0x208
mov qword [rsp + 0x38], rsi
mov qword [rsp + 0x30], rsi
mov qword [rsp + 0x28], rsi
mov qword [rsp + 0x20], rsi
lea r9, [rbp - 0x60]
lea r8, [rbp + 0x1e0]
xor edx, edx
mov rcx, rbx
call qword [sym.imp.advapi32.dll_RegEnumKeyExW]
test eax, eax
jne 0x7ff794c4a462
nop dword [rax]
mov qword [rbp - 0x50], rsi
lea rax, [rbp - 0x50]
mov qword [rsp + 0x20], rax
mov r9d, 0xf003f
xor r8d, r8d
lea rdx, [rbp + 0x1e0]
mov rcx, rbx
call qword [sym.imp.advapi32.dll_RegOpenKeyExW]
test eax, eax
jne 0x7ff794c4a424
mov r13, qword [rbp - 0x50]
mov qword [rbp - 0x80], r13
xor edx, edx
mov r8d, 0x208
lea rcx, [rbp + 0x3f0]
call sub.VCRUNTIME140.dll_memset
mov r12d, esi
mov dword [rbp - 0x34], 0x208
mov qword [rsp + 0x38], rsi
mov qword [rsp + 0x30], rsi
mov qword [rsp + 0x28], rsi
mov qword [rsp + 0x20], rsi
lea r9, [rbp - 0x34]
lea r8, [rbp + 0x3f0]
xor edx, edx
mov rcx, r13
call qword [sym.imp.advapi32.dll_RegEnumKeyExW]
test eax, eax
jne 0x7ff794c4a41b
nop word [rax + rax]
mov qword [rbp - 0x48], rsi
lea rax, [rbp - 0x48]
mov qword [rsp + 0x20], rax
mov r9d, 0xf003f
xor r8d, r8d
lea rdx, [rbp + 0x3f0]
mov rcx, r13
call qword [sym.imp.advapi32.dll_RegOpenKeyExW]
test eax, eax
jne 0x7ff794c4a3d7
mov r15, qword [rbp - 0x48]
xor edx, edx
mov r8d, 0x208
lea rcx, [rbp - 0x30]
call sub.VCRUNTIME140.dll_memset
mov r14d, esi
mov dword [rbp - 0x38], 0x208
mov qword [rsp + 0x38], rsi
mov qword [rsp + 0x30], rsi
mov qword [rsp + 0x28], rsi
mov qword [rsp + 0x20], rsi
lea r9, [rbp - 0x38]
lea r8, [rbp - 0x30]
xor edx, edx
mov rcx, r15
call qword [sym.imp.advapi32.dll_RegEnumKeyExW]
test eax, eax
jne 0x7ff794c4a3ce
xor r13d, r13d
nop
mov qword [rbp - 0x40], r13
lea rax, [rbp - 0x40]
mov qword [rsp + 0x20], rax
mov r9d, 0xf003f
xor r8d, r8d
lea rdx, [rbp - 0x30]
mov rcx, r15
call qword [sym.imp.advapi32.dll_RegOpenKeyExW]
test eax, eax
jne 0x7ff794c4a38e
mov rsi, qword [rbp - 0x40]
mov dword [rbp - 0x70], r13d
lea rax, [rbp - 0x70]
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], r13
xor r9d, r9d
xor r8d, r8d
lea rdx, [0x7ff794c66b10]
mov rcx, rsi
call qword [sym.imp.advapi32.dll_RegQueryValueExW]
test eax, eax
jne 0x7ff794c4a385
mov ecx, dword [rbp - 0x70]
call qword [sym.imp.ucrtbase.dll_malloc]
mov rbx, rax
test rax, rax
je 0x7ff794c4a385
mov edi, r13d
mov ecx, dword [rbp - 0x70]
test ecx, ecx
je 0x7ff794c4a35a
call qword [sym.imp.ucrtbase.dll_rand]
and eax, 0x800000ff
jge 0x7ff794c4a34c
dec eax
or eax, 0xffffff00
inc eax
mov ecx, edi
mov byte [rcx + rbx], al
inc edi
mov ecx, dword [rbp - 0x70]
cmp edi, ecx
jb 0x7ff794c4a336
mov dword [rsp + 0x28], ecx
mov qword [rsp + 0x20], rbx
mov r9d, 3
xor r8d, r8d
lea rdx, [0x7ff794c66b10]
mov rcx, rsi
call qword [sym.imp.advapi32.dll_RegSetValueExW]
mov rcx, rbx
call qword [sym.imp.ucrtbase.dll_free]
mov rcx, rsi
call qword [sym.imp.advapi32.dll_RegCloseKey]
inc r14d
mov dword [rbp - 0x38], 0x208
mov qword [rsp + 0x38], r13
mov qword [rsp + 0x30], r13
mov qword [rsp + 0x28], r13
mov qword [rsp + 0x20], r13
lea r9, [rbp - 0x38]
lea r8, [rbp - 0x30]
mov edx, r14d
mov rcx, r15
call qword [sym.imp.advapi32.dll_RegEnumKeyExW]
test eax, eax
je 0x7ff794c4a2c0
mov r13, qword [rbp - 0x80]
xor esi, esi
mov rcx, r15
call qword [sym.imp.advapi32.dll_RegCloseKey]
inc r12d
mov dword [rbp - 0x34], 0x208
mov qword [rsp + 0x38], rsi
mov qword [rsp + 0x30], rsi
mov qword [rsp + 0x28], rsi
mov qword [rsp + 0x20], rsi
lea r9, [rbp - 0x34]
lea r8, [rbp + 0x3f0]
mov edx, r12d
mov rcx, r13
call qword [sym.imp.advapi32.dll_RegEnumKeyExW]
test eax, eax
je 0x7ff794c4a240
mov edi, dword [rbp - 0x68]
mov rbx, qword [rbp - 0x78]
mov rcx, r13
call qword [sym.imp.advapi32.dll_RegCloseKey]
inc edi
mov dword [rbp - 0x68], edi
mov dword [rbp - 0x60], 0x208
mov qword [rsp + 0x38], rsi
mov qword [rsp + 0x30], rsi
mov qword [rsp + 0x28], rsi
mov qword [rsp + 0x20], rsi
lea r9, [rbp - 0x60]
lea r8, [rbp + 0x1e0]
mov edx, edi
mov rcx, rbx
call qword [sym.imp.advapi32.dll_RegEnumKeyExW]
test eax, eax
je 0x7ff794c4a1b0
mov rcx, rbx
call qword [sym.imp.advapi32.dll_RegCloseKey]
mov rcx, qword [rbp + 0x600]
xor rcx, rsp
call fcn.7ff794c61b10
lea r11, [rsp + 0x710]
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