Function at 0x496110
Capabilities:
Query or enumerate registry value
Set registry value

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x64
mov dword [ebp - 0x1c], esp
mov dword [ebp - 0x10], 0xffffffff
mov dword [ebp - 0x14], 0x58c340
lea eax, [ebp - 0x18]
mov ecx, dword fs:[0]
mov dword [ebp - 0x18], ecx
mov dword fs:[0], eax
mov edx, dword [0x6d2954]
test edx, edx
je 0x49629d
cmp edx, 7
ja 0x49644a
cmp dword [ebp + 8], 0
je 0x4964a8
mov ecx, dword [0x6d1ebc]
mov dword [ebp - 0x10], 0xffffffff
lea eax, [ebp - 0x50]
push 0x31
push eax
call fcn.004ae014
mov eax, dword [0x6d1ebc]
mov dword [ebp - 0x10], 4
mov dword [ebp - 0x28], eax
add eax, 8
mov dword [ebp - 0x20], eax
push eax
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov eax, dword [ebp - 0x28]
mov al, byte [eax + 0x51]
mov dword [ebp - 0x10], 1
mov byte [ebp - 0x28], al
push dword [ebp - 0x20]
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
cmp byte [ebp - 0x28], 0
mov ecx, dword [0x6d1ebc]
mov eax, 3
mov edx, 0x10
mov dword [ebp - 0x10], 4
cmove edx, eax
lea eax, [ebp - 0x68]
push edx
push eax
call fcn.004ae014
mov eax, dword [ebp - 0x68]
mov ecx, dword [0x6d1ebc]
mov dword [ebp - 0x10], 5
mov dword [ebp - 0x20], eax
mov eax, dword [ebp - 0x54]
mov dword [ebp - 0x28], eax
mov eax, dword [ebp - 0x50]
mov dword [ebp - 0x70], eax
mov eax, dword [ebp - 0x3c]
mov dword [ebp - 0x6c], eax
call fcn.004fed90
cmp dword [ebp - 0x6c], 7
lea ecx, [ebp - 0x50]
lea edx, [ebp - 0x68]
cmova ecx, dword [ebp - 0x70]
cmp dword [ebp - 0x28], 7
cmova edx, dword [ebp - 0x20]
push 0x30
push edx
push ecx
push eax
call dword [sym.imp.USER32.dll_MessageBoxW]
mov ecx, dword [ebp - 0x54]
cmp ecx, 8
jb 0x496259
mov eax, dword [ebp - 0x68]
lea edx, [ecx + ecx + 2]
cmp edx, 0x1000
jb 0x49624f
mov edx, eax
mov eax, dword [eax - 4]
add edx, 0xfffffffc
sub edx, eax
cmp edx, 0x20
jae 0x4965cf
add ecx, ecx
add ecx, 0x25
mov edx, ecx
push edx
push eax
call fcn.005d319e
add esp, 8
mov ecx, dword [ebp - 0x3c]
cmp ecx, 8
jb 0x4964a8
mov eax, dword [ebp - 0x50]
lea edx, [ecx + ecx + 2]
cmp edx, 0x1000
jb 0x49628e
mov edx, eax
mov eax, dword [eax - 4]
add edx, 0xfffffffc
sub edx, eax
cmp edx, 0x20
jae 0x4965db
add ecx, ecx
add ecx, 0x25
mov edx, ecx
push edx
push eax
call fcn.005d319e
add esp, 8
jmp 0x4964a8
mov dword [ebp - 0x50], 0
mov dword [ebp - 0x68], 0
mov dword [ebp - 0x2c], 0
mov dword [ebp - 0x34], 0x104
mov dword [ebp - 0x38], 0x104
mov dword [ebp - 0x30], 0
call fcn.005e3750
test eax, eax
je 0x4965b1
mov esi, eax
mov eax, dword [eax]
mov edi, dword [eax + 0xc]
mov ecx, edi
call dword [0x64689c]
mov ecx, esi
call edi
add eax, 0x10
mov dword [ebp - 0x10], 0
mov dword [ebp - 0x24], eax
lea eax, [ebp - 0x30]
push eax
push 0x20019
push 0
push 0x68ad98
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x49640b
mov eax, dword [ebp - 0x38]
test eax, eax
js 0x4965bb
mov ecx, dword [ebp - 0x24]
mov edx, 1
mov esi, dword [ecx - 8]
sub edx, dword [ecx - 4]
sub esi, eax
or esi, edx
jns 0x496342
lea ecx, [ebp - 0x24]
push eax
call fcn.005e39c0
mov ecx, dword [ebp - 0x24]
lea eax, [ebp - 0x38]
push eax
push ecx
push 0
push 0
push str.svcVersion
push dword [ebp - 0x30]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
je 0x4963cc
mov eax, dword [ebp - 0x34]
test eax, eax
js 0x4965c5
mov ecx, dword [ebp - 0x24]
mov edx, 1
mov esi, dword [ecx - 8]
sub edx, dword [ecx - 4]
sub esi, eax
or esi, edx
jns 0x496388
lea ecx, [ebp - 0x24]
push eax
call fcn.005e39c0
mov ecx, dword [ebp - 0x24]
lea eax, [ebp - 0x34]
push eax
push ecx
push 0
push 0
push str.Version
push dword [ebp - 0x30]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x496402
cmp dword [ebp - 0x34], 0
je 0x496402
lea eax, [ebp - 0x2c]
lea ecx, [ebp - 0x68]
lea edx, [ebp - 0x50]
push eax
push ecx
push edx
push 0x6d2954
push str._u._u._u._u
push dword [ebp - 0x24]
call fcn.005e4600
add esp, 0x18
jmp 0x4963f3
cmp dword [ebp - 0x38], 0
je 0x496402
lea eax, [ebp - 0x2c]
lea ecx, [ebp - 0x68]
lea edx, [ebp - 0x50]
push eax
push ecx
push edx
push 0x6d2954
push str._u._u._u._u
push dword [ebp - 0x24]
call fcn.005e4600
add esp, 0x18
cmp eax, 4
je 0x496402
mov dword [0x6d2954], 0
push dword [ebp - 0x30]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ebx, dword [ebp - 0x24]
mov eax, 0xffffffff
lock xadd dword [ebx - 4], eax
dec eax
test eax, eax
jg 0x49643b
add ebx, 0xfffffff0
mov esi, dword [ebx]
mov eax, dword [esi]
mov edi, dword [eax + 4]
mov dword [ebp - 0x10], 0xffffffff
mov ecx, edi
call dword [0x64689c]
mov ecx, esi
push ebx
call edi
mov edx, dword [0x6d2954]
cmp edx, 7
jbe 0x496154
cmp byte [0x6d2958], 0
mov al, 1
jne 0x4964aa
lea ecx, [edx - 8]
mov esi, 0x2711
cmp ecx, 3
ja 0x496470
mov esi, dword [edx*4 + 0x68b630]
mov dword [ebp - 0x10], 0xffffffff
mov dword [ebp - 0x68], esi
mov dword [ebp - 0x2c], 0
mov dword [ebp - 0x10], 0xffffffff
lea eax, [ebp - 0x2c]
push 0
push eax
push 0
push 0x2001f
push 0
push 0
push 0
push str.SOFTWAREMicrosoftInternet_ExplorerMainFeatureControlFEATURE_BROWSER_EMULATION
push 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
je 0x4964bc
xor eax, eax
mov ecx, dword [ebp - 0x18]
mov dword fs:[0], ecx
add esp, 0x64
pop esi
pop edi
pop ebx
pop ebp
ret
mov dword [ebp - 0x20], esi
mov dword [ebp - 0x34], 0
mov dword [ebp - 0x38], 4
mov dword [ebp - 0x30], 4
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
lea edi, [ebp - 0x50]
push eax
push edi
call fcn.00499110
add esp, 8
cmp dword [ebp - 0x3c], 7
jbe 0x4964f0
mov edi, dword [ebp - 0x50]
mov eax, dword [ebp - 0x2c]
lea ecx, [ebp - 0x38]
mov dword [ebp - 0x10], 7
lea edx, [ebp - 0x34]
lea esi, [ebp - 0x30]
push ecx
push edx
push esi
push 0
mov dword [ebp - 0x28], edi
push edi
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov ecx, dword [ebp - 0x20]
test eax, eax
je 0x496542
cmp eax, 2
jne 0x496539
lea eax, [ebp - 0x68]
push 4
push eax
push 4
push 0
push dword [ebp - 0x28]
push dword [ebp - 0x2c]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test eax, eax
je 0x49655d
mov dword [ebp - 0x20], 0
jmp 0x496569
cmp dword [ebp - 0x34], ecx
je 0x49655d
lea eax, [ebp - 0x68]
push 4
push eax
push 4
push 0
push dword [ebp - 0x28]
push dword [ebp - 0x2c]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov al, 1
mov byte [0x6d2958], 1
mov dword [ebp - 0x20], eax
push dword [ebp - 0x2c]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp - 0x3c]
cmp ecx, 8
jb 0x4965a9
mov eax, dword [ebp - 0x50]
lea edx, [ecx + ecx + 2]
cmp edx, 0x1000
jb 0x49659f
mov edx, eax
mov eax, dword [eax - 4]
add edx, 0xfffffffc
sub edx, eax
cmp edx, 0x20
jae 0x4965e7
add ecx, ecx
add ecx, 0x25
mov edx, ecx
push edx
push eax
call fcn.005d319e
add esp, 8
mov eax, dword [ebp - 0x20]
jmp 0x4964aa
push 0x80004005
call fcn.005ef7e0
push 0x80070057
call fcn.005ef7e0
push 0x80070057
call fcn.005ef7e0
mov dword [ebp - 0x10], 2
call fcn.006207e0
mov dword [ebp - 0x10], 3
call fcn.006207e0
mov dword [ebp - 0x10], 6
call fcn.006207e0
nop word cs:[eax + eax]
nop dword [eax]
push ebp
sub esp, 0x24
add ebp, 0xc
call fcn.0061de80
nop dword [eax]
push ebp
sub esp, 0x24
add ebp, 0xc
call fcn.0061de80
nop dword [eax]
push ebp
sub esp, 0x24
add ebp, 0xc
call fcn.0061de80
nop dword [eax]
push ebp
sub esp, 0x24
add ebp, 0xc
mov ecx, dword [ebp - 0x3c]
cmp ecx, 8
jb 0x49666e
mov eax, dword [ebp - 0x50]
lea edx, [ecx + ecx + 2]
cmp edx, 0x1000
jb 0x496664
mov edx, eax
mov eax, dword [eax - 4]
add edx, 0xfffffffc
sub edx, eax
cmp edx, 0x20
jae 0x496673
add ecx, ecx
add ecx, 0x25
mov edx, ecx
push edx
push eax
call fcn.005d319e
add esp, 8
add esp, 0x24
pop ebp
ret
call fcn.006207e0
nop dword [eax + eax]
push ebp
sub esp, 0x24
add ebp, 0xc
call fcn.0061de80
nop dword [eax]
push ebp
sub esp, 0x24
add ebp, 0xc
mov ecx, dword [ebp - 0x54]
cmp ecx, 8
jb 0x4966ce
mov eax, dword [ebp - 0x68]
lea edx, [ecx + ecx + 2]
cmp edx, 0x1000
jb 0x4966c4
mov edx, eax
mov eax, dword [eax - 4]
add edx, 0xfffffffc
sub edx, eax
cmp edx, 0x20
jae 0x4966e7
add ecx, ecx
add ecx, 0x25
mov edx, ecx
push edx
push eax
call fcn.005d319e
add esp, 8
mov dword [ebp - 0x58], 0
mov dword [ebp - 0x54], 7
mov word [ebp - 0x68], 0
add esp, 0x24
pop ebp
ret
call fcn.006207e0
nop dword [eax]
push ebp
sub esp, 0x24
add ebp, 0xc
mov ecx, 0xffffffff
mov eax, dword [ebp - 0x24]
lock xadd dword [eax - 4], ecx
dec ecx
test ecx, ecx
jle 0x49670e
add esp, 0x24
pop ebp
ret
nop
push ebp
sub esp, 0x24
add ebp, 0xc
mov ecx, dword [ebp - 0x3c]
cmp ecx, 8
jb 0x49674e
mov eax, dword [ebp - 0x50]
lea edx, [ecx + ecx + 2]
cmp edx, 0x1000
jb 0x496744
mov edx, eax
mov eax, dword [eax - 4]
add edx, 0xfffffffc
sub edx, eax
cmp edx, 0x20
jae 0x496753
add ecx, ecx
add ecx, 0x25
mov edx, ecx
push edx
push eax
call fcn.005d319e
add esp, 8
add esp, 0x24
pop ebp
ret
call fcn.006207e0
int3