Function at 0x14002ae00
Capabilities:
Delete registry value
Extract resource via kernel32 functions
Query or enumerate registry value
Set registry value

Disassembly:
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x2d0
mov qword [rsp + 0x68], 0xfffffffffffffffe
mov qword [rsp + 0x320], rbx
mov rax, qword [0x1400e71f0]
xor rax, rsp
mov qword [rsp + 0x2c0], rax
mov rdi, rdx
mov rbp, rcx
mov qword [rsp + 0x60], rcx
xor r14d, r14d
mov ebx, r14d
nop
nop
nop
mov dword [rsp + 0x40], 0x104
mov dword [rsp + 0x50], 1
xor edx, edx
mov r8d, 0x208
lea rcx, [rsp + 0xb0]
call fcn.140080d50
mov r9d, ebx
lea r8, str.profile
lea rdx, str._s_02d
lea rcx, [rsp + 0x70]
call qword [sym.imp.USER32.dll_wsprintfW]
lea r11, [rsp + 0x40]
mov qword [rsp + 0x28], r11
lea rax, [rsp + 0xb0]
mov qword [rsp + 0x20], rax
lea r9, [rsp + 0x50]
xor r8d, r8d
lea rdx, [rsp + 0x70]
mov rcx, rbp
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x14002b5b4
mov rdx, rdi
lea rcx, [rsp + 0xb0]
call qword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
je 0x14002aeec
add ebx, 1
cmp ebx, 0x64
jb 0x14002ae50
jmp 0x14002b5b4
lea rdx, [rsp + 0x70]
mov rcx, rbp
call qword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
test eax, eax
jne 0x14002b5b4
lea esi, [rbx + 1]
or r15, 0xffffffffffffffff
cmp esi, 0x64
jae 0x14002b011
nop
nop
nop
nop
mov dword [rsp + 0x40], 0x104
mov dword [rsp + 0x50], 1
xor edx, edx
mov r8d, 0x208
lea rcx, [rsp + 0xb0]
call fcn.140080d50
mov r9d, esi
lea r8, str.profile
lea rdx, str._s_02d
lea rcx, [rsp + 0x90]
call qword [sym.imp.USER32.dll_wsprintfW]
lea rdx, [rsp + 0x40]
mov qword [rsp + 0x28], rdx
lea rax, [rsp + 0xb0]
mov qword [rsp + 0x20], rax
lea r9, [rsp + 0x50]
xor r8d, r8d
lea rdx, [rsp + 0x90]
mov rcx, rbp
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x14002b011
mov r9d, ebx
lea r8, str.profile
lea rdx, str._s_02d
lea rcx, [rsp + 0x70]
call qword [sym.imp.USER32.dll_wsprintfW]
xor eax, eax
mov rcx, r15
lea rdi, [rsp + 0xb0]
repne scasw ax, word [rdi]
not rcx
and ecx, ecx
mov dword [rsp + 0x28], ecx
lea rax, [rsp + 0xb0]
mov qword [rsp + 0x20], rax
mov r9d, 1
xor r8d, r8d
lea rdx, [rsp + 0x70]
mov rcx, rbp
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
lea rdx, [rsp + 0x90]
mov rcx, rbp
call qword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
add ebx, 1
add esi, 1
cmp esi, 0x64
jb 0x14002af20
mov dword [rsp + 0x40], 0x10
mov r13d, r14d
mov dword [rsp + 0x54], r14d
mov qword [rsp + 0x38], r14
mov qword [rsp + 0x30], r14
mov qword [rsp + 0x28], r14
mov qword [rsp + 0x20], r14
lea r9, [rsp + 0x40]
lea r8, [rsp + 0x70]
xor edx, edx
mov rcx, rbp
call qword [sym.imp.ADVAPI32.dll_RegEnumValueW]
test eax, eax
jne 0x14002b5ae
call fcn.1400696cc
mov ecx, r14d
test rax, rax
setne cl
test ecx, ecx
je 0x14002b5a3
mov rdx, qword [rax]
mov rcx, rax
call qword [rdx + 0x18]
lea rbx, [rax + 0x18]
mov qword [rsp + 0x48], rbx
lea rcx, [rsp + 0x70]
lea rax, [rsp + 0x70]
test rax, 0xffffffffffff0000
jne 0x14002b1d8
movzx esi, cx
mov ecx, esi
call fcn.1400696b8
mov rbp, rax
test rax, rax
je 0x14002b2d0
mov ecx, esi
shr ecx, 4
add cx, 1
movzx edx, cx
mov r8d, 6
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_FindResourceW]
mov r12, rax
test rax, rax
je 0x14002b2d0
mov rdx, rax
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_LoadResource]
test rax, rax
je 0x14002b2d0
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_LockResource]
mov rdi, rax
test rax, rax
je 0x14002b2d0
mov rdx, r12
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, eax
add rcx, rdi
and esi, 0xf
jbe 0x14002b126
nop
cmp rdi, rcx
jae 0x14002b2d0
movzx eax, word [rdi]
lea rdi, [rdi + rax*2 + 2]
add esi, 0xffffffff
jne 0x14002b110
cmp rdi, rcx
jae 0x14002b2d0
movzx eax, word [rdi]
test ax, ax
je 0x14002b2d0
movzx esi, ax
mov ecx, 1
sub ecx, dword [rbx - 8]
mov eax, dword [rbx - 0xc]
sub eax, esi
or eax, ecx
jge 0x14002b160
mov edx, esi
lea rcx, [rsp + 0x48]
call fcn.140003180
mov rbx, qword [rsp + 0x48]
movzx ecx, word [rdi]
lea r8, [rdi + 2]
cmp ecx, 0xffffffff
jne 0x14002b17c
xor eax, eax
mov rcx, r15
mov rdi, r8
repne scasw ax, word [rdi]
not rcx
and ecx, ecx
lea rdi, [rsi + rsi]
movsxd r9, ecx
add r9, r9
mov rdx, rdi
mov rcx, rbx
call fcn.140080540
test eax, eax
je 0x14002b1b9
cmp eax, 0xc
je 0x14002b531
cmp eax, 0x16
je 0x14002b52b
cmp eax, 0x22
je 0x14002b52b
cmp eax, 0x50
jne 0x14002b525
test esi, esi
js 0x14002b537
cmp esi, dword [rbx - 0xc]
jg 0x14002b537
mov dword [rbx - 0x10], esi
mov word [rdi + rbx], 0
jmp 0x14002b2d0
xor eax, eax
mov rcx, r15
lea rdi, [rsp + 0x70]
repne scasw ax, word [rdi]
not rcx
sub rcx, 1
mov rdi, rcx
test ecx, ecx
jne 0x14002b24c
lea rdx, [rbx - 0x18]
mov rdi, qword [rdx]
cmp dword [rdx + 8], eax
je 0x14002b2d0
cmp dword [rdx + 0x10], eax
jge 0x14002b21d
cmp dword [rbx - 0xc], eax
jl 0x14002b542
mov dword [rbx - 0x10], r14d
mov word [rbx], ax
jmp 0x14002b2d0
mov eax, r15d
lock xadd dword [rdx + 0x10], eax
add eax, 0xffffffff
test eax, eax
jg 0x14002b235
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
mov rax, qword [rdi]
mov rcx, rdi
call qword [rax + 0x18]
lea rbx, [rax + 0x18]
mov qword [rsp + 0x48], rbx
jmp 0x14002b2d0
mov esi, dword [rbx - 0x10]
lea rbp, [rsp + 0x70]
sub rbp, rbx
sar rbp, 1
mov ecx, 1
sub ecx, dword [rbx - 8]
mov eax, dword [rbx - 0xc]
sub eax, edi
or eax, ecx
jge 0x14002b27c
mov edx, edi
lea rcx, [rsp + 0x48]
call fcn.140003180
mov rbx, qword [rsp + 0x48]
cmp rbp, rsi
ja 0x14002b29c
movsxd rax, edi
lea rsi, [rax + rax]
lea r8, [rbx + rbp*2]
mov r9, rsi
mov rdx, rsi
mov rcx, rbx
call fcn.140081c40
jmp 0x14002b2b6
movsxd rax, edi
lea rsi, [rax + rax]
mov r9, rsi
lea r8, [rsp + 0x70]
mov rdx, rsi
mov rcx, rbx
call fcn.140080540
test edi, edi
js 0x14002b598
cmp edi, dword [rbx - 0xc]
jg 0x14002b598
mov dword [rbx - 0x10], edi
mov word [rsi + rbx], 0
mov r8d, 7
lea rdx, [rsp + 0x58]
lea rcx, [rsp + 0x48]
call fcn.1400038a0
nop
mov rbp, qword [rax]
lea rsi, [rbp - 0x18]
lea rdi, [rbx - 0x18]
cmp rsi, rdi
je 0x14002b482
cmp dword [rdi + 0x10], 0
jl 0x14002b394
mov rcx, qword [rsi]
cmp rcx, qword [rdi]
jne 0x14002b394
mov rax, qword [rcx]
call qword [rax + 0x20]
mov rcx, rax
cmp dword [rsi + 0x10], 0
jl 0x14002b32e
cmp rax, qword [rsi]
jne 0x14002b32e
mov rbx, rsi
lock add dword [rsi + 0x10], 1
jmp 0x14002b36b
mov rax, qword [rax]
mov r8d, 2
mov edx, dword [rsi + 8]
call qword [rax]
mov rbx, rax
test rax, rax
je 0x14002b54d
mov ecx, dword [rsi + 8]
mov dword [rax + 8], ecx
mov ecx, dword [rsi + 8]
add ecx, 1
movsxd rdx, ecx
lea r9, [rdx + rdx]
lea r8, [rsi + 0x18]
add rdx, rdx
lea rcx, [rax + 0x18]
call fcn.140080540
mov eax, r15d
lock xadd dword [rdi + 0x10], eax
add eax, 0xffffffff
test eax, eax
jg 0x14002b386
mov rcx, qword [rdi]
mov rax, qword [rcx]
mov rdx, rdi
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
lea rax, [rbx + 0x18]
mov qword [rsp + 0x48], rax
jmp 0x14002b482
movsxd rsi, dword [rbp - 0x10]
test esi, esi
jne 0x14002b3f9
mov rsi, qword [rdi]
cmp dword [rdi + 8], 0
je 0x14002b482
cmp dword [rdi + 0x10], 0
jge 0x14002b3c7
cmp dword [rbx - 0xc], 0
jl 0x14002b553
mov dword [rbx - 0x10], r14d
mov word [rbx], 0
jmp 0x14002b482
mov eax, r15d
lock xadd dword [rdi + 0x10], eax
add eax, 0xffffffff
test eax, eax
jg 0x14002b3e2
mov rcx, qword [rdi]
mov rax, qword [rcx]
mov rdx, rdi
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
mov rax, qword [rsi]
mov rcx, rsi
call qword [rax + 0x18]
add rax, 0x18
mov qword [rsp + 0x48], rax
jmp 0x14002b482
test rbp, rbp
je 0x14002b569
mov r13d, dword [rbx - 0x10]
mov r12, rbp
sub r12, rbx
sar r12, 1
mov ecx, 1
sub ecx, dword [rdi + 0x10]
mov eax, dword [rdi + 0xc]
sub eax, esi
or eax, ecx
jge 0x14002b431
mov edx, esi
lea rcx, [rsp + 0x48]
call fcn.140003180
mov rbx, qword [rsp + 0x48]
cmp r12, r13
ja 0x14002b44e
lea rdi, [rsi + rsi]
lea r8, [rbx + r12*2]
mov r9, rdi
mov rdx, rdi
mov rcx, rbx
call fcn.140081c40
jmp 0x14002b463
lea rdi, [rsi + rsi]
mov r9, rdi
mov r8, rbp
mov rdx, rdi
mov rcx, rbx
call fcn.140080540
test esi, esi
js 0x14002b55e
cmp esi, dword [rbx - 0xc]
jg 0x14002b55e
mov dword [rbx - 0x10], esi
mov word [rdi + rbx], 0
mov r13d, dword [rsp + 0x54]
mov rdx, qword [rsp + 0x58]
add rdx, 0xffffffffffffffe8
mov eax, r15d
lock xadd dword [rdx + 0x10], eax
add eax, 0xffffffff
test eax, eax
jg 0x14002b4a3
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
lea rdx, str.profile
mov rdi, qword [rsp + 0x48]
mov rcx, rdi
call fcn.1400807e0
test eax, eax
je 0x14002b574
mov dword [rsp + 0x40], 0x10
lea rdx, [rdi - 0x18]
mov eax, r15d
lock xadd dword [rdx + 0x10], eax
add eax, 0xffffffff
test eax, eax
jg 0x14002b4e3
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
add r13d, 1
mov dword [rsp + 0x54], r13d
mov qword [rsp + 0x38], r14
mov qword [rsp + 0x30], r14
mov qword [rsp + 0x28], r14
mov qword [rsp + 0x20], r14
lea r9, [rsp + 0x40]
lea r8, [rsp + 0x70]
mov edx, r13d
mov rcx, qword [rsp + 0x60]
call qword [sym.imp.ADVAPI32.dll_RegEnumValueW]
test eax, eax
jne 0x14002b5ae
jmp 0x14002b052
call fcn.14006766c
int3
call fcn.14006766c
int3
call fcn.140067624
int3
mov ecx, 0x80070057
call fcn.140001000
int3
mov ecx, 0x80070057
call fcn.140001000
nop
call fcn.1400019f0
int3
mov ecx, 0x80070057
call fcn.140001000
int3
mov ecx, 0x80070057
call fcn.140001000
int3
mov ecx, 0x80070057
call fcn.140001000
nop
lea rdx, [rdi - 0x18]
lock xadd dword [rdx + 0x10], r15d
add r15d, 0xffffffff
test r15d, r15d
jg 0x14002b590
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
mov r14d, 1
jmp 0x14002b5b4
mov ecx, 0x80070057
call fcn.140001000
nop
mov ecx, 0x80004005
call fcn.140001000
int3
mov r14d, 2
mov eax, r14d
mov rcx, qword [rsp + 0x2c0]
xor rcx, rsp
call fcn.140081050
mov rbx, qword [rsp + 0x320]
add rsp, 0x2d0
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret