Function at 0x489830
Capabilities:
Query or enumerate registry key
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff0
sub esp, 0x830
mov eax, dword [0x6f4e3c]
xor eax, ebp
mov dword [esp + 0x828], eax
xor ebx, ebx
cmp dword [ebp + 8], 0
je 0x4898b9
mov edi, dword [ebp + 0xc]
test edi, edi
je 0x4898b9
xorps xmm0, xmm0
movaps xmmword [esp + 0x500], xmm0
movaps xmmword [esp + 0x4f0], xmm0
movaps xmmword [esp + 0x4e0], xmm0
movaps xmmword [esp + 0x4d0], xmm0
movaps xmmword [esp + 0x4c0], xmm0
movaps xmmword [esp + 0x4b0], xmm0
mov dword [esp + 0x510], 0
lea eax, [esp + 0x24]
push eax
push 8
push 0
push 0x652f00
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
je 0x4898d1
xor ebx, ebx
mov ecx, dword [esp + 0x828]
xor ecx, ebp
call fcn.00517c1a
mov eax, ebx
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret
mov dword [esp + 0x20], 0x104
mov eax, dword [esp + 0x24]
sub esp, 0x20
xorps xmm0, xmm0
movups xmmword [esp + 0x10], xmm0
lea ecx, [esp + 0x40]
mov dword [esp + 0xc], ecx
lea esi, [esp + 0x2c8]
mov dword [esp + 8], esi
mov dword [esp], eax
mov dword [esp + 4], 0
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
test eax, eax
je 0x4899a0
push dword [esp + 0x24]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dl, byte [esp + 0x4b0]
test dl, dl
je 0x4898b7
test edi, edi
jle 0x489c7c
mov ecx, 1
sub ecx, edi
add edi, 0xffffffff
mov esi, SysReAllocStringLen
mov ebx, dword [ebp + 8]
nop word cs:[eax + eax]
nop dword [eax]
mov eax, esi
mov byte [ebx + esi + SysReAllocString], dl
lea edx, [ecx + esi]
cmp edx, 0x80000003
je 0x48997f
test eax, eax
je 0x48997f
movzx edx, byte [esp + eax - 0x7ffffb52]
lea esi, [eax + 1]
add edi, 0xffffffff
test dl, dl
jne 0x489950
mov edi, 1
test edi, edi
setne bl
mov edx, dword [ebp + 8]
lea ecx, [edx + eax + 0x7ffffffd]
lea eax, [edx + eax + 0x7ffffffe]
cmove eax, ecx
mov byte [eax], 0
jmp 0x4898b9
xor ebx, ebx
jmp 0x4899fc
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
nop dword [eax + eax]
push dword [esp + 0x1c]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea esi, [esp + 0x2a8]
add ebx, 1
mov dword [esp + 0x20], 0x104
mov eax, dword [esp + 0x24]
sub esp, 0x20
xorps xmm0, xmm0
movups xmmword [esp + 0x10], xmm0
lea ecx, [esp + 0x40]
mov dword [esp + 0xc], ecx
mov dword [esp + 8], esi
mov dword [esp + 4], ebx
mov dword [esp], eax
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
test eax, eax
jne 0x489914
lea eax, [esp + 0x1c]
push eax
push 1
push 0
push esi
push dword [esp + 0x34]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x4899c1
mov dword [esp + 0x18], 1
mov dword [esp + 0x14], 0x208
lea eax, [esp + 0x14]
push eax
lea eax, [esp + 0xa4]
push eax
lea eax, [esp + 0x20]
push eax
push 0
push 0x652f74
push dword [esp + 0x30]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x4899b0
xorps xmm0, xmm0
movaps xmmword [esp + 0x80], xmm0
movaps xmmword [esp + 0x70], xmm0
movaps xmmword [esp + 0x60], xmm0
movaps xmmword [esp + 0x50], xmm0
movaps xmmword [esp + 0x40], xmm0
movaps xmmword [esp + 0x30], xmm0
mov dword [esp + 0x90], 0
lea eax, [esp + 0xa0]
push eax
push str.._s
push 0x208
lea esi, [esp + 0x62c]
push esi
call fcn.00488ef0
sub esp, 0xc
movaps xmm0, xmmword [0x652e80]
movups xmmword [esp + 4], xmm0
mov dword [esp], esi
mov dword [esp + 0x18], 0
mov dword [esp + 0x14], 0
call dword [sym.imp.KERNEL32.dll_CreateFileW]
cmp eax, 0xffffffff
je 0x4899b0
mov esi, eax
mov dword [esp + 0x2c], 0x1010101
mov dword [esp + 0x28], 0
push 0
lea eax, [esp + 0x2c]
push eax
push 0x104
lea eax, [esp + 0x528]
push eax
push 4
lea eax, [esp + 0x40]
push eax
push 0x170002
push esi
call dword [sym.imp.KERNEL32.dll_DeviceIoControl]
test eax, eax
je 0x4899a4
cmp dword [esp + 0x28], 0
je 0x4899a4
movzx eax, byte [esp + 0x521]
mov dword [esp + 0xc], eax
movzx ecx, byte [esp + 0x520]
movzx edx, byte [esp + 0x51f]
movzx eax, byte [esp + 0x51e]
mov dword [esp + 0x10], eax
movzx eax, byte [esp + 0x51d]
mov dword [esp + 4], eax
movzx eax, byte [esp + 0x51c]
mov dword [esp + 8], eax
push dword [esp + 0xc]
push ecx
push edx
push dword [esp + 0x1c]
push dword [esp + 0x14]
push dword [esp + 0x1c]
push str._02X_02X_02X_02X_02X_02X
push 0x64
lea eax, [esp + 0x50]
push eax
call fcn.00489e20
add esp, 0x24
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp byte [esp + 0x4b0], 0
je 0x489bac
lea eax, [esp + 0x4b0]
push eax
lea eax, [esp + 0x34]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpA]
test eax, eax
jns 0x4899b0
xor eax, eax
nop
movzx ecx, byte [esp + eax + 0x30]
test cl, cl
je 0x489c15
mov byte [esp + eax + 0x4b0], cl
movzx ecx, byte [esp + eax + 0x31]
test cl, cl
je 0x489c25
mov byte [esp + eax + 0x4b1], cl
movzx ecx, byte [esp + eax + 0x32]
test cl, cl
je 0x489c35
mov byte [esp + eax + 0x4b2], cl
movzx ecx, byte [esp + eax + 0x33]
test cl, cl
je 0x489c45
mov byte [esp + eax + 0x4b3], cl
movzx ecx, byte [esp + eax + 0x34]
test cl, cl
je 0x489c55
mov byte [esp + eax + 0x4b4], cl
add eax, 5
cmp eax, 0x64
jne 0x489bb0
lea ecx, [esp + 0x4af]
add eax, ecx
mov ecx, eax
jmp 0x489c69
lea ecx, [esp + eax]
add ecx, 0x4b0
mov edx, 0x64
jmp 0x489c63
lea ecx, [esp + eax]
add ecx, 0x4b1
mov edx, 0x63
jmp 0x489c63
lea ecx, [esp + eax]
add ecx, 0x4b2
mov edx, 0x62
jmp 0x489c63
lea ecx, [esp + eax]
add ecx, 0x4b3
mov edx, 0x61
jmp 0x489c63
lea ecx, [esp + eax]
add ecx, 0x4b4
mov edx, 0x60
sub edx, eax
test edx, edx
je 0x489c71
mov byte [ecx], 0
jmp 0x4899b0
add ecx, 0xffffffff
mov byte [ecx], 0
jmp 0x4899b0
mov eax, dword [ebp + 8]
mov byte [eax], 0
jmp 0x4898b7