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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x63ef60
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x160
mov eax, dword [0x6cdb00]
push ebx
push esi
xor esi, esi
push edi
cmp eax, esi
mov dword [ebp - 0x10], esp
mov dword [ebp - 0x34], ecx
jne 0x474ae6
lea ecx, [ebp - 0x5c]
mov dword [ebp - 4], esi
mov dword [ebp - 0x2c], esi
mov dword [ebp - 0x24], esi
call fcn.00524830
mov edx, dword [0x6fcacc]
mov ecx, dword [0x6fd75c]
mov ebx, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
lea eax, [ebp - 0x1c]
neg edx
push eax
push 1
sbb edx, edx
push esi
add edx, 0x80000002
push ecx
push edx
mov byte [ebp - 4], 1
call ebx
mov edi, eax
test edi, edi
je 0x47446a
cmp edi, 2
je 0x474462
mov eax, dword [0x6f7b78]
mov dword [ebp - 0x14], eax
mov eax, dword [0x6fcacc]
mov byte [ebp - 4], 2
test eax, eax
mov eax, str.CURRENT_USER
jne 0x4743d4
mov eax, str.MACHINE
mov ecx, dword [0x6fd75c]
lea edx, [ebp - 0x14]
push ecx
push eax
push 0x6c9ce8
push edx
call fcn.0061fae1
mov eax, dword [ebp - 0x14]
add esp, 0x10
lea ecx, [ebp - 0x5c]
push eax
call fcn.005248e0
test eax, eax
je 0x47441f
mov eax, dword [0x6fcacc]
mov edx, dword [0x6fd75c]
lea ecx, [ebp - 0x1c]
neg eax
push ecx
push 1
sbb eax, eax
push 0
add eax, 0x80000002
push edx
push eax
call ebx
mov edi, eax
test edi, edi
je 0x474456
mov ecx, dword [ebp - 0x14]
push ecx
lea ecx, [ebp - 0x5c]
call fcn.005249b0
test eax, eax
je 0x474456
mov ecx, dword [0x6fcacc]
mov eax, dword [0x6fd75c]
lea edx, [ebp - 0x1c]
neg ecx
push edx
push 1
sbb ecx, ecx
push 0
add ecx, 0x80000002
push eax
push ecx
call ebx
mov edi, eax
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], 1
call fcn.00622d8a
test edi, edi
jne 0x4744ef
mov ecx, dword [ebp - 0x1c]
mov ebx, dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
lea edx, [ebp - 0x20]
lea eax, [ebp - 0x16c]
push edx
push eax
push 0
push 0
push str.MData
push ecx
mov dword [ebp - 0x20], 0x100
call ebx
mov ecx, dword [ebp - 0x1c]
mov esi, eax
lea edx, [ebp - 0x20]
lea eax, [ebp - 0x2c]
push edx
push eax
neg esi
push 0
push 0
sbb esi, esi
mov edi, 4
push str.Version
push ecx
inc esi
mov dword [ebp - 0x20], edi
call ebx
test eax, eax
jne 0x4744d5
mov ecx, dword [ebp - 0x1c]
lea edx, [ebp - 0x20]
lea eax, [ebp - 0x24]
push edx
push eax
push 0
push 0
push str.Version32
push ecx
mov dword [ebp - 0x20], edi
call ebx
mov edx, dword [ebp - 0x1c]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test esi, esi
je 0x4744ef
mov dword [ebp - 0x28], 1
jmp 0x474621
lea ecx, [ebp - 0x4c]
call fcn.00524830
lea eax, [ebp - 0x1c]
push 0
mov ebx, dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
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
test edi, edi
je 0x474586
mov ecx, dword [0x6f7b78]
mov dword [ebp - 0x28], ecx
push str.SoftwareClassesCLSIDE6871B76_C3C8_44DD_B947_ABFFE144860D
lea edx, [ebp - 0x28]
push str.CURRENT_USER_s
push edx
mov byte [ebp - 4], 4
call fcn.0061fae1
mov eax, dword [ebp - 0x28]
add esp, 0xc
lea ecx, [ebp - 0x4c]
push eax
call fcn.005248e0
test eax, eax
je 0x474576
lea ecx, [ebp - 0x1c]
push 0
push ecx
push 0
push 0xf003f
push 0
push 0
push 0
push str.SoftwareClassesCLSIDE6871B76_C3C8_44DD_B947_ABFFE144860D
push 0x80000001
call ebx
mov edi, eax
lea ecx, [ebp - 0x28]
mov byte [ebp - 4], 3
call fcn.00622d8a
test edi, edi
jne 0x474600
mov ecx, dword [ebp - 0x1c]
mov edi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
lea edx, [ebp - 0x20]
lea eax, [ebp - 0x16c]
push edx
push eax
push 0
push 0
push str.MData
push ecx
mov dword [ebp - 0x20], 0x100
call edi
mov ecx, dword [ebp - 0x1c]
mov esi, eax
lea edx, [ebp - 0x20]
lea eax, [ebp - 0x2c]
push edx
push eax
neg esi
push 0
push 0
sbb esi, esi
mov ebx, 4
push str.Version
push ecx
inc esi
mov dword [ebp - 0x20], ebx
call edi
test eax, eax
jne 0x4745f1
mov ecx, dword [ebp - 0x1c]
lea edx, [ebp - 0x20]
lea eax, [ebp - 0x24]
push edx
push eax
push 0
push 0
push str.Version32
push ecx
mov dword [ebp - 0x20], ebx
call edi
mov edx, dword [ebp - 0x1c]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [ebp - 0x28], esi
jmp 0x474607
mov dword [ebp - 0x28], 1
lea ecx, [ebp - 0x4c]
mov byte [ebp - 4], 1
call fcn.00524870
test esi, esi
je 0x474ac0
mov ebx, dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov edx, dword [ebp - 0x24]
mov edi, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test edx, edx
je 0x474639
mov eax, dword [ebp - 0x2c]
test eax, eax
jne 0x474739
mov dword [ebp - 0x30], 0x65a24c
mov edx, dword [0x6fdfd4]
or ecx, 0xffffffff
mov edi, edx
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
lea eax, [ebp - 0x16c]
push ecx
push edx
push 0x100
push eax
lea ecx, [ebp - 0x30]
mov byte [ebp - 4], 5
call fcn.00451930
lea edi, [ebp - 0x16c]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov al, byte [ebp + ecx - 0x16a]
lea esi, [ebp + ecx - 0x16a]
test al, al
je 0x47472c
lea ecx, [ebp - 0x18]
xor edi, edi
push ecx
push 0x6d011c
push esi
mov dword [ebp - 0x18], edi
mov dword [ebp - 0x14], edi
call fcn.0060a0d0
mov ebx, dword [ebp - 0x18]
add esp, 0xc
cmp ebx, edi
jle 0x474721
mov edi, esi
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
inc ecx
cmp ecx, 0x20
jge 0x474721
mov al, byte [esi + ecx]
add esi, ecx
test al, al
je 0x4746e2
lea edx, [ebp - 0x14]
push edx
push 0x6d011c
push esi
call fcn.0060a0d0
mov ebx, dword [ebp - 0x18]
add esp, 0xc
mov ecx, dword [ebp - 0x14]
test ecx, ecx
jle 0x474721
mov eax, 0xc22e4507
imul ecx
add edx, ecx
sar edx, 0x10
mov eax, edx
shr eax, 0x1f
lea ecx, [edx + eax + 1]
mov eax, 0xc22e4507
imul ebx
add edx, ebx
mov ebx, dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
sar edx, 0x10
mov eax, edx
mov dword [ebp - 0x2c], ecx
shr eax, 0x1f
add edx, eax
sub edx, ecx
mov dword [ebp - 0x24], edx
jmp 0x47472f
mov edx, dword [ebp - 0x24]
mov ebx, dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
jmp 0x47472f
mov edx, dword [ebp - 0x24]
mov edi, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov byte [ebp - 4], 1
test edx, edx
jbe 0x474a8a
mov eax, dword [0x6fcafc]
lea ecx, [ebp - 0x3c]
lea edx, [ebp - 0x30]
push ecx
push edx
push 0
push 0
push str.nExpDt
push eax
mov dword [ebp - 0x3c], 4
call ebx
test eax, eax
je 0x474807
mov dword [ebp - 0x14], 0x65a24c
mov edx, dword [0x6fdfd4]
or ecx, 0xffffffff
mov edi, edx
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov byte [ebp - 4], 6
push ecx
push edx
lea ecx, [ebp - 0x16c]
push 0x100
push ecx
lea ecx, [ebp - 0x14]
call fcn.00451930
lea edi, [ebp - 0x16c]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
lea eax, [ebp + ecx - 0x16a]
mov cl, byte [ebp + ecx - 0x16a]
test cl, cl
je 0x4747fd
lea edx, [ebp - 0x18]
mov dword [ebp - 0x18], 0
push edx
push 0x6d011c
push eax
call fcn.0060a0d0
mov eax, dword [ebp - 0x18]
add esp, 0xc
test eax, eax
jle 0x4747fd
mov ecx, dword [0x6fcafc]
mov dword [ebp - 0x30], eax
lea eax, [ebp - 0x30]
push 4
push eax
push 4
push 0
push str.nExpDt
push ecx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov edi, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov byte [ebp - 4], 1
lea edx, [ebp - 0x38]
push edx
call fcn.0060b449
mov ecx, dword [ebp - 0x38]
mov eax, 0xc22e4507
imul ecx
add edx, ecx
mov ecx, dword [ebp - 0x24]
sar edx, 0x10
mov eax, edx
add esp, 4
shr eax, 0x1f
add edx, eax
mov esi, edx
mov edx, dword [ebp - 0x2c]
lea eax, [ecx + edx]
cmp esi, eax
jb 0x474a13
lea ecx, [ebp - 0x4c]
call fcn.00524830
mov bl, 7
lea ecx, [ebp - 0x6c]
mov byte [ebp - 4], bl
call fcn.00524830
mov edx, dword [0x6fcacc]
mov ecx, dword [0x6fd75c]
lea eax, [ebp - 0x14]
neg edx
push eax
push 0xf003f
sbb edx, edx
push 0
add edx, 0x80000002
push ecx
push edx
call edi
mov esi, eax
test esi, esi
je 0x474940
cmp esi, 2
je 0x47493c
mov eax, dword [0x6f7b78]
mov dword [ebp - 0x18], eax
mov eax, dword [0x6fcacc]
mov byte [ebp - 4], 9
test eax, eax
mov eax, str.CURRENT_USER
jne 0x4748a8
mov eax, str.MACHINE
mov ecx, dword [0x6fd75c]
lea edx, [ebp - 0x18]
push ecx
push eax
push 0x6c9ce8
push edx
call fcn.0061fae1
mov eax, dword [ebp - 0x18]
add esp, 0x10
lea ecx, [ebp - 0x4c]
push eax
call fcn.005248e0
test eax, eax
je 0x4748f6
mov eax, dword [0x6fcacc]
mov edx, dword [0x6fd75c]
lea ecx, [ebp - 0x14]
neg eax
push ecx
push 0xf003f
sbb eax, eax
push 0
add eax, 0x80000002
push edx
push eax
call edi
mov esi, eax
test esi, esi
je 0x474930
mov ecx, dword [ebp - 0x18]
push ecx
lea ecx, [ebp - 0x4c]
call fcn.005249b0
test eax, eax
je 0x474930
mov ecx, dword [0x6fcacc]
mov eax, dword [0x6fd75c]
lea edx, [ebp - 0x14]
neg ecx
push edx
push 0xf003f
sbb ecx, ecx
push 0
add ecx, 0x80000002
push eax
push ecx
call edi
mov esi, eax
lea ecx, [ebp - 0x18]
mov byte [ebp - 4], 8
call fcn.00622d8a
test esi, esi
jne 0x474960
mov edx, dword [ebp - 0x14]
push str.MData
push edx
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueA]
mov eax, dword [ebp - 0x14]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [ebp - 0x28], 0
lea ecx, [ebp - 0x14]
push ecx
push 0xf003f
push 0
push str.SoftwareClassesCLSIDE6871B76_C3C8_44DD_B947_ABFFE144860D
push 0x80000001
call edi
mov esi, eax
test esi, esi
je 0x4749de
cmp esi, 2
je 0x4749da
mov edx, dword [0x6f7b78]
mov dword [ebp - 0x18], edx
push str.SoftwareClassesCLSIDE6871B76_C3C8_44DD_B947_ABFFE144860D
lea eax, [ebp - 0x18]
push str.CURRENT_USER_s
push eax
mov byte [ebp - 4], 0xa
call fcn.0061fae1
mov ecx, dword [ebp - 0x18]
add esp, 0xc
push ecx
lea ecx, [ebp - 0x6c]
call fcn.005248e0
test eax, eax
je 0x4749ce
lea edx, [ebp - 0x14]
push edx
push 0xf003f
push 0
push str.SoftwareClassesCLSIDE6871B76_C3C8_44DD_B947_ABFFE144860D
push 0x80000001
call edi
mov esi, eax
lea ecx, [ebp - 0x18]
mov byte [ebp - 4], 8
call fcn.00622d8a
test esi, esi
jne 0x4749f7
mov eax, dword [ebp - 0x14]
push str.MData
push eax
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueA]
mov ecx, dword [ebp - 0x14]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea ecx, [ebp - 0x6c]
mov byte [ebp - 4], bl
call fcn.00524870
lea ecx, [ebp - 0x4c]
mov byte [ebp - 4], 1
call fcn.00524870
jmp 0x474ac0
lea edx, [esi + 5]
cmp edx, eax
jb 0x474ac0
mov edx, dword [0x6fcafc]
lea eax, [ebp - 0x14]
lea ecx, [ebp - 0x18]
push eax
push ecx
push 0
push 0
push str.bshexmsg
push edx
mov dword [ebp - 0x14], 4
call ebx
test eax, eax
je 0x474ac0
mov ecx, dword [0x6fcafc]
lea eax, [ebp - 0x18]
push 4
push eax
push 4
push 0
push str.bshexmsg
push ecx
mov dword [ebp - 0x18], 1
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov eax, dword [ebp - 0x24]
mov ebx, dword [ebp - 0x2c]
mov edx, dword [ebp - 0x34]
sub eax, esi
add eax, ebx
push eax
mov eax, dword [edx + 0x1c]
push 0x146c
push 0x111
push eax
call dword [sym.imp.USER32.dll_PostMessageA]
jmp 0x474ac0
mov eax, dword [0x6fcafc]
lea ecx, [ebp - 0x34]
lea edx, [ebp - 0x38]
push ecx
push edx
push 0
push 0
push str.nExpDt
push eax
mov dword [ebp - 0x34], 4
call ebx
test eax, eax
jne 0x474ac0
mov ecx, dword [0x6fcafc]
push str.nExpDt
push ecx
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueA]
lea ecx, [ebp - 0x5c]
mov byte [ebp - 4], 0
call fcn.00524870
mov eax, dword [ebp - 0x28]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov eax, 1
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret