Function at 0x4646c0
Capabilities:
Delete registry value
Query or enumerate registry value
Set registry value

Disassembly:
push ebp
lea ebp, [esp - 0x104]
sub esp, 0x104
push 0xffffffffffffffff
push 0x647aa3
mov eax, dword fs:[0]
push eax
sub esp, 0x7c
mov eax, dword [0x755898]
xor eax, ebp
mov dword [ebp + 0x100], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov dword [ebp - 0x3c], ecx
xor esi, esi
cmp dword [0x74fd2c], esi
jne 0x464eb0
mov dword [ebp - 4], esi
mov dword [ebp - 0x28], esi
mov dword [ebp - 0x24], esi
mov dword [ebp - 0x2c], esi
mov dword [ebp - 0x44], esi
lea ecx, [ebp - 0x78]
call fcn.0051b590
mov byte [ebp - 4], 1
lea eax, [ebp - 0x1c]
push eax
push 1
push esi
mov ecx, dword [0x75c19c]
push ecx
mov edx, dword [0x75aba4]
neg edx
sbb edx, edx
add edx, 0x80000002
push edx
mov ebx, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
call ebx
mov edi, eax
mov dword [ebp - 0x34], edi
test edi, edi
je 0x46481f
cmp edi, 2
je 0x464817
lea ecx, [ebp - 0x14]
call fcn.00402500
mov byte [ebp - 4], 2
cmp dword [0x75aba4], esi
mov eax, str.CURRENT_USER
jne 0x464783
mov eax, str.MACHINE
mov ecx, dword [0x75c19c]
push ecx
push eax
push 0x678c08
lea edx, [ebp - 0x14]
push edx
call fcn.00402f70
add esp, 0x10
mov eax, dword [ebp - 0x14]
push eax
lea ecx, [ebp - 0x78]
call fcn.0051b680
test eax, eax
je 0x4647d1
lea ecx, [ebp - 0x1c]
push ecx
push 1
push 0
mov edx, dword [0x75c19c]
push edx
mov eax, dword [0x75aba4]
neg eax
sbb eax, eax
add eax, 0x80000002
push eax
call ebx
mov edi, eax
mov dword [ebp - 0x34], edi
test edi, edi
je 0x46480b
mov ecx, dword [ebp - 0x14]
push ecx
lea ecx, [ebp - 0x78]
call fcn.0051b750
test eax, eax
je 0x46480b
lea edx, [ebp - 0x1c]
push edx
push 1
push 0
mov eax, dword [0x75c19c]
push eax
mov ecx, dword [0x75aba4]
neg ecx
sbb ecx, ecx
add ecx, 0x80000002
push ecx
call ebx
mov edi, eax
mov dword [ebp - 0x34], edi
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x14]
call fcn.00402570
test edi, edi
jne 0x4648a4
mov dword [ebp - 0x20], 0x100
lea edx, [ebp - 0x20]
push edx
lea eax, [ebp]
push eax
push 0
push 0
push str.MData
mov ecx, dword [ebp - 0x1c]
push ecx
mov ebx, dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
call ebx
mov esi, eax
neg esi
sbb esi, esi
inc esi
mov dword [ebp - 0x44], esi
mov edi, 4
mov dword [ebp - 0x20], edi
lea edx, [ebp - 0x20]
push edx
lea eax, [ebp - 0x28]
push eax
push 0
push 0
push str.Version
mov ecx, dword [ebp - 0x1c]
push ecx
call ebx
test eax, eax
jne 0x46488a
mov dword [ebp - 0x20], edi
lea edx, [ebp - 0x20]
push edx
lea eax, [ebp - 0x24]
push eax
push 0
push 0
push str.Version32
mov ecx, dword [ebp - 0x1c]
push ecx
call ebx
mov edx, dword [ebp - 0x1c]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test esi, esi
je 0x4648a4
mov dword [ebp - 0x2c], 1
jmp 0x4649e2
lea ecx, [ebp - 0x68]
call fcn.0051b590
mov byte [ebp - 4], 3
push 0
lea eax, [ebp - 0x1c]
push eax
push 0
push 0xf003f
push 0
push 0
push 0
push str.SoftwareClassesCLSIDE6871B76_C3C8_44DD_B947_ABFFE144860D
push 0x80000001
mov ebx, dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
call ebx
mov edi, eax
mov dword [ebp - 0x34], edi
test edi, edi
je 0x464944
lea ecx, [ebp - 0x18]
call fcn.00402500
mov byte [ebp - 4], 4
push str.SoftwareClassesCLSIDE6871B76_C3C8_44DD_B947_ABFFE144860D
push str.CURRENT_USER_s
lea ecx, [ebp - 0x18]
push ecx
call fcn.00402f70
add esp, 0xc
mov edx, dword [ebp - 0x18]
push edx
lea ecx, [ebp - 0x68]
call fcn.0051b680
test eax, eax
je 0x464934
push 0
lea eax, [ebp - 0x1c]
push eax
push 0
push 0xf003f
push 0
push 0
push 0
push str.SoftwareClassesCLSIDE6871B76_C3C8_44DD_B947_ABFFE144860D
push 0x80000001
call ebx
mov edi, eax
mov dword [ebp - 0x34], edi
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x18]
call fcn.00402570
test edi, edi
jne 0x4649bc
mov dword [ebp - 0x20], 0x100
lea ecx, [ebp - 0x20]
push ecx
lea edx, [ebp]
push edx
push 0
push 0
push str.MData
mov eax, dword [ebp - 0x1c]
push eax
mov edi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
call edi
mov esi, eax
neg esi
sbb esi, esi
inc esi
mov dword [ebp - 0x44], esi
mov ebx, 4
mov dword [ebp - 0x20], ebx
lea ecx, [ebp - 0x20]
push ecx
lea edx, [ebp - 0x28]
push edx
push 0
push 0
push str.Version
mov eax, dword [ebp - 0x1c]
push eax
call edi
test eax, eax
jne 0x4649ad
mov dword [ebp - 0x20], ebx
lea ecx, [ebp - 0x20]
push ecx
lea edx, [ebp - 0x24]
push edx
push eax
push eax
push str.Version32
mov eax, dword [ebp - 0x1c]
push eax
call edi
mov ecx, dword [ebp - 0x1c]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [ebp - 0x2c], esi
jmp 0x4649c3
mov dword [ebp - 0x2c], 1
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x68]
call fcn.0051b5f0
test esi, esi
je 0x464e92
mov ebx, dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov edi, 4
cmp dword [ebp - 0x24], 0
je 0x4649f2
cmp dword [ebp - 0x28], 0
jne 0x464ae3
mov dword [ebp - 0x30], vtable.CProtection.0
mov byte [ebp - 4], 5
mov edx, dword [0x75b924]
mov eax, edx
lea esi, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x464a08
sub eax, esi
push eax
push edx
push 0x100
lea edx, [ebp]
push edx
lea ecx, [ebp - 0x30]
call fcn.00448740
lea eax, [ebp]
lea edx, [eax + 1]
lea ebx, [ebx]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x464a30
sub eax, edx
lea esi, [ebp + eax + 2]
cmp byte [esi], cl
je 0x464ad8
xor eax, eax
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x14], eax
lea eax, [ebp - 0x18]
push eax
push 0x681ba8
push esi
call fcn.0061ecee
add esp, 0xc
mov edi, dword [ebp - 0x18]
test edi, edi
jle 0x464ad3
mov eax, esi
lea edx, [eax + 1]
jmp 0x464a70
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x464a70
sub eax, edx
add eax, 2
cmp eax, 0x20
jge 0x464ad3
add esi, eax
cmp byte [esi], cl
je 0x464a9c
lea ecx, [ebp - 0x14]
push ecx
push 0x681ba8
push esi
call fcn.0061ecee
add esp, 0xc
mov edi, dword [ebp - 0x18]
mov ecx, dword [ebp - 0x14]
test ecx, ecx
jle 0x464ad3
mov eax, 0xc22e4507
imul ecx
add edx, ecx
sar edx, 0x10
mov eax, edx
shr eax, 0x1f
lea ecx, [edx + eax + 1]
mov dword [ebp - 0x28], ecx
mov eax, 0xc22e4507
imul edi
add edx, edi
sar edx, 0x10
mov eax, edx
shr eax, 0x1f
add eax, edx
sub eax, ecx
mov dword [ebp - 0x24], eax
mov edi, 4
mov byte [ebp - 4], 1
mov dword [ebp - 0x30], vtable.CProtection.0
cmp dword [ebp - 0x24], 0
jbe 0x464e5f
mov dword [ebp - 0x58], edi
lea ecx, [ebp - 0x58]
push ecx
lea edx, [ebp - 0x54]
push edx
push 0
push 0
push str.nExpDt
mov eax, dword [0x75abd8]
push eax
call ebx
test eax, eax
je 0x464ba9
mov dword [ebp - 0x40], vtable.CProtection.0
mov byte [ebp - 4], 6
mov edx, dword [0x75b924]
mov eax, edx
lea esi, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x464b27
sub eax, esi
push eax
push edx
push 0x100
lea ecx, [ebp]
push ecx
lea ecx, [ebp - 0x40]
call fcn.00448740
lea eax, [ebp]
lea edx, [eax + 1]
lea esp, [esp]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x464b50
sub eax, edx
lea eax, [ebp + eax + 2]
cmp byte [eax], cl
je 0x464b9e
mov dword [ebp - 0x48], 0
lea edx, [ebp - 0x48]
push edx
push 0x681ba8
push eax
call fcn.0061ecee
add esp, 0xc
mov eax, dword [ebp - 0x48]
test eax, eax
jle 0x464b9e
mov dword [ebp - 0x54], eax
push edi
lea eax, [ebp - 0x54]
push eax
push edi
push 0
push str.nExpDt
mov ecx, dword [0x75abd8]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov byte [ebp - 4], 1
mov dword [ebp - 0x40], vtable.CProtection.0
lea edx, [ebp - 0x30]
push edx
call fcn.00620aa1
add esp, 4
mov ecx, dword [ebp - 0x30]
mov eax, 0xc22e4507
imul ecx
add edx, ecx
sar edx, 0x10
mov esi, edx
shr esi, 0x1f
add esi, edx
mov eax, dword [ebp - 0x28]
mov ecx, dword [ebp - 0x24]
add eax, ecx
cmp esi, eax
jb 0x464de2
lea ecx, [ebp - 0x68]
call fcn.0051b590
mov byte [ebp - 4], 7
lea ecx, [ebp - 0x88]
call fcn.0051b590
mov bl, 8
mov byte [ebp - 4], bl
lea edx, [ebp - 0x14]
push edx
push 0xf003f
push 0
mov eax, dword [0x75c19c]
push eax
mov ecx, dword [0x75aba4]
neg ecx
sbb ecx, ecx
add ecx, 0x80000002
push ecx
mov edi, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
call edi
mov esi, eax
mov dword [ebp - 0x38], esi
test esi, esi
je 0x464cf5
cmp esi, 2
je 0x464cf1
lea ecx, [ebp - 0x18]
call fcn.00402500
mov byte [ebp - 4], 9
cmp dword [0x75aba4], 0
mov eax, str.CURRENT_USER
jne 0x464c56
mov eax, str.MACHINE
mov edx, dword [0x75c19c]
push edx
push eax
push 0x678c08
lea eax, [ebp - 0x18]
push eax
call fcn.00402f70
add esp, 0x10
mov ecx, dword [ebp - 0x18]
push ecx
lea ecx, [ebp - 0x68]
call fcn.0051b680
test eax, eax
je 0x464ca8
lea edx, [ebp - 0x14]
push edx
push 0xf003f
push 0
mov eax, dword [0x75c19c]
push eax
mov ecx, dword [0x75aba4]
neg ecx
sbb ecx, ecx
add ecx, 0x80000002
push ecx
call edi
mov esi, eax
mov dword [ebp - 0x38], esi
test esi, esi
je 0x464ce6
mov edx, dword [ebp - 0x18]
push edx
lea ecx, [ebp - 0x68]
call fcn.0051b750
test eax, eax
je 0x464ce6
lea eax, [ebp - 0x14]
push eax
push 0xf003f
push 0
mov ecx, dword [0x75c19c]
push ecx
mov edx, dword [0x75aba4]
neg edx
sbb edx, edx
add edx, 0x80000002
push edx
call edi
mov esi, eax
mov dword [ebp - 0x38], esi
mov byte [ebp - 4], bl
lea ecx, [ebp - 0x18]
call fcn.00402570
test esi, esi
jne 0x464d15
push str.MData
mov eax, dword [ebp - 0x14]
push eax
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueA]
mov ecx, dword [ebp - 0x14]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [ebp - 0x2c], 0
lea edx, [ebp - 0x14]
push edx
push 0xf003f
push 0
push str.SoftwareClassesCLSIDE6871B76_C3C8_44DD_B947_ABFFE144860D
push 0x80000001
call edi
mov esi, eax
mov dword [ebp - 0x38], esi
test esi, esi
je 0x464d9a
cmp esi, 2
je 0x464d96
lea ecx, [ebp - 0x18]
call fcn.00402500
mov byte [ebp - 4], 0xa
push str.SoftwareClassesCLSIDE6871B76_C3C8_44DD_B947_ABFFE144860D
push str.CURRENT_USER_s
lea eax, [ebp - 0x18]
push eax
call fcn.00402f70
add esp, 0xc
mov ecx, dword [ebp - 0x18]
push ecx
lea ecx, [ebp - 0x88]
call fcn.0051b680
test eax, eax
je 0x464d8b
lea edx, [ebp - 0x14]
push edx
push 0xf003f
push 0
push str.SoftwareClassesCLSIDE6871B76_C3C8_44DD_B947_ABFFE144860D
push 0x80000001
call edi
mov esi, eax
mov dword [ebp - 0x38], esi
mov byte [ebp - 4], bl
lea ecx, [ebp - 0x18]
call fcn.00402570
test esi, esi
jne 0x464db3
push str.MData
mov eax, dword [ebp - 0x14]
push eax
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueA]
mov ecx, dword [ebp - 0x14]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov byte [ebp - 4], 7
lea ecx, [ebp - 0x88]
call fcn.0051b5f0
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x68]
call fcn.0051b5f0
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x78]
call fcn.0051b5f0
mov eax, dword [ebp - 0x2c]
jmp 0x464eb5
lea edx, [esi + 5]
cmp edx, eax
jb 0x464e92
mov dword [ebp - 0x4c], edi
lea eax, [ebp - 0x4c]
push eax
lea ecx, [ebp - 0x50]
push ecx
push 0
push 0
push str.bshexmsg
mov edx, dword [0x75abd8]
push edx
call ebx
test eax, eax
je 0x464e92
mov dword [ebp - 0x50], 1
push edi
lea eax, [ebp - 0x50]
push eax
push edi
push 0
push str.bshexmsg
mov ecx, dword [0x75abd8]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov eax, dword [ebp - 0x24]
sub eax, esi
add eax, dword [ebp - 0x28]
push eax
push 0x146c
push 0x111
mov ecx, dword [ebp - 0x3c]
call fcn.0042e5b0
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x78]
call fcn.0051b5f0
mov eax, dword [ebp - 0x2c]
jmp 0x464eb5
mov dword [ebp - 0x3c], edi
lea edx, [ebp - 0x3c]
push edx
lea eax, [ebp - 0x4c]
push eax
push 0
push 0
push str.nExpDt
mov ecx, dword [0x75abd8]
push ecx
call ebx
test eax, eax
jne 0x464e92
push str.nExpDt
mov edx, dword [0x75abd8]
push edx
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueA]
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x78]
call fcn.0051b5f0
mov eax, dword [ebp - 0x2c]
jmp 0x464eb5
mov eax, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x100]
xor ecx, ebp
call fcn.0061d2ff
add ebp, 0x104
mov esp, ebp
pop ebp
ret