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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4d6ad8
mov eax, dword fs:[0]
push eax
sub esp, 0x634
mov eax, dword [0x517b80]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, dword [ebp + 0xc]
mov esi, dword [ebp + 0x10]
mov ebx, dword [ebp + 0x14]
cmp word [edi], 0x2e
jne 0x4680ab
mov dword [ebp - 0x62c], 0
cmp byte [ebp + 0x18], 0
mov dword [ebp - 4], 0
push edi
je 0x4681fe
mov dword [ebp - 0x638], 0
call fcn.004a27e0
push eax
push edi
call fcn.004a29e0
mov dword [ebp - 0x630], eax
lea eax, [ebp - 0x630]
mov byte [ebp - 4], 1
push eax
lea eax, [ebp - 0x640]
push 0x4f3c34
push eax
call fcn.004a23a0
add esp, 0x18
mov edi, eax
mov ecx, dword [ebp - 0x62c]
mov byte [ebp - 4], 2
test ecx, ecx
je 0x467dfd
call fcn.004a2a20
mov ecx, dword [edi]
mov dword [ebp - 0x62c], ecx
test ecx, ecx
je 0x467e0e
call fcn.004a26e0
mov ecx, dword [ebp - 0x640]
mov byte [ebp - 4], 3
test ecx, ecx
je 0x467e21
call fcn.004a2a20
mov ecx, dword [ebp - 0x630]
mov byte [ebp - 4], 4
test ecx, ecx
je 0x467e34
call fcn.004a2a20
lea eax, [ebp - 0x634]
mov byte [ebp - 4], 0
push eax
lea eax, [ebp - 0x638]
push eax
push 0
push 0xf003f
push 0
push 0
push 0
lea ecx, [ebp - 0x62c]
call fcn.004a2380
push eax
push reloc.WS2_32.dll_accept
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
mov edi, dword [ebp - 0x638]
test edi, edi
jne 0x467e80
mov dword [ebp - 4], 5
jmp 0x46809c
cmp dword [ebp - 0x634], 2
jne 0x467f20
xor eax, eax
push 0x206
push eax
mov word [ebp - 0x218], ax
lea eax, [ebp - 0x216]
push eax
call fcn.004aa220
add esp, 0xc
mov dword [ebp - 0x630], 0x206
lea eax, [ebp - 0x630]
push eax
lea eax, [ebp - 0x218]
push eax
push 0
push 0
push 0x4e454c
push edi
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov eax, dword [ebp - 0x630]
and eax, 0xfffffffe
cmp eax, 0x208
jae 0x468337
xor ecx, ecx
mov word [ebp + eax - 0x218], cx
cmp word [ebp - 0x218], cx
je 0x467f1a
lea eax, [ebp - 0x218]
push esi
push eax
call fcn.004aed57
add esp, 8
test eax, eax
je 0x467f1a
mov dword [ebp - 4], 6
jmp 0x46809c
mov edi, dword [ebp - 0x638]
mov ecx, esi
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x467f25
sub ecx, edx
sar ecx, 1
lea eax, [ecx*2 + 2]
push eax
push esi
push 1
push 0x4e454c
push edi
call dword [sym.imp.ADVAPI32.dll_RegSetValueW]
push dword [ebp - 0x638]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push esi
mov dword [ebp - 0x63c], 0
call fcn.004a27e0
push eax
push esi
call fcn.004a29e0
mov dword [ebp - 0x630], eax
lea eax, [ebp - 0x630]
mov byte [ebp - 4], 7
push eax
lea eax, [ebp - 0x640]
push 0x4f3c34
push eax
call fcn.004a23a0
add esp, 0x18
mov esi, eax
mov ecx, dword [ebp - 0x62c]
mov byte [ebp - 4], 8
test ecx, ecx
je 0x467fa8
call fcn.004a2a20
mov ecx, dword [esi]
mov dword [ebp - 0x62c], ecx
test ecx, ecx
je 0x467fb9
call fcn.004a26e0
mov ecx, dword [ebp - 0x640]
mov byte [ebp - 4], 9
test ecx, ecx
je 0x467fcc
call fcn.004a2a20
mov ecx, dword [ebp - 0x630]
mov byte [ebp - 4], 0xa
test ecx, ecx
je 0x467fdf
call fcn.004a2a20
lea eax, [ebp - 0x634]
mov byte [ebp - 4], 0
push eax
lea eax, [ebp - 0x63c]
push eax
push 0
push 0xf003f
push 0
push 0
push 0
lea ecx, [ebp - 0x62c]
call fcn.004a2380
push eax
push reloc.WS2_32.dll_accept
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
mov edx, dword [ebp - 0x63c]
test edx, edx
jne 0x468028
mov dword [ebp - 4], 0xb
jmp 0x46809c
mov ecx, ebx
lea esi, [ecx + 2]
nop dword [eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x468030
sub ecx, esi
sar ecx, 1
lea eax, [ecx*2 + 2]
push eax
push ebx
push 1
push 0x4e454c
push edx
call dword [sym.imp.ADVAPI32.dll_RegSetValueW]
lea eax, [ebp - 0x634]
mov dword [ebp - 0x638], 0
push eax
lea eax, [ebp - 0x638]
push eax
push 0
push 0xf003f
push 0
push 0
push 0
push 0x4f3c58
push dword [ebp - 0x63c]
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
cmp dword [ebp - 0x638], 0
jne 0x4680c9
mov dword [ebp - 4], 0xc
mov ecx, dword [ebp - 0x62c]
test ecx, ecx
je 0x4680ab
call fcn.004a2a20
xor al, al
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004a71aa
mov esp, ebp
pop ebp
ret
cmp byte [ebp + 8], 0
mov ecx, 0x4f3c80
mov eax, 0x4f3cb8
cmovne eax, ecx
push 0x52e1a0
push eax
lea eax, [ebp - 0x628]
push eax
call fcn.00464670
lea ecx, [ebp - 0x628]
add esp, 0xc
lea edx, [ecx + 2]
nop dword [eax + eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x468100
sub ecx, edx
sar ecx, 1
lea eax, [ecx*2 + 2]
push eax
lea eax, [ebp - 0x628]
push eax
push 1
push 0x4e454c
push dword [ebp - 0x638]
call dword [sym.imp.ADVAPI32.dll_RegSetValueW]
push dword [ebp - 0x638]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea eax, [ebp - 0x634]
mov dword [ebp - 0x638], 0
push eax
lea eax, [ebp - 0x638]
push eax
push 0
push 0xf003f
push 0
push 0
push 0
push 0x4f3ce0
push dword [ebp - 0x63c]
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
cmp dword [ebp - 0x638], 0
jne 0x468188
mov dword [ebp - 4], 0xd
jmp 0x46809c
push 0x52e1a0
lea eax, [ebp - 0x628]
push 0x4f3cf8
push eax
call fcn.00464670
lea ecx, [ebp - 0x628]
add esp, 0xc
lea edx, [ecx + 2]
nop word [eax + eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4681b0
sub ecx, edx
sar ecx, 1
lea eax, [ecx*2 + 2]
push eax
lea eax, [ebp - 0x628]
push eax
push 1
push 0x4e454c
push dword [ebp - 0x638]
call dword [sym.imp.ADVAPI32.dll_RegSetValueW]
push dword [ebp - 0x638]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push dword [ebp - 0x63c]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x468309
call fcn.004a27e0
push eax
push edi
call fcn.004a29e0
mov dword [ebp - 0x630], eax
lea eax, [ebp - 0x630]
mov byte [ebp - 4], 0xe
push eax
lea eax, [ebp - 0x640]
push 0x4f3c34
push eax
call fcn.004a23a0
add esp, 0x18
mov edi, eax
mov ecx, dword [ebp - 0x62c]
mov byte [ebp - 4], 0xf
test ecx, ecx
je 0x468244
call fcn.004a2a20
mov ecx, dword [edi]
mov dword [ebp - 0x62c], ecx
test ecx, ecx
je 0x468255
call fcn.004a26e0
mov ecx, dword [ebp - 0x640]
mov byte [ebp - 4], 0x10
test ecx, ecx
je 0x468268
call fcn.004a2a20
mov ecx, dword [ebp - 0x630]
mov byte [ebp - 4], 0x11
test ecx, ecx
je 0x46827b
call fcn.004a2a20
lea ecx, [ebp - 0x62c]
mov byte [ebp - 4], 0
call fcn.004a2380
push eax
push reloc.WS2_32.dll_accept
call fcn.00467210
push esi
mov dword [ebp - 0x634], 0
call fcn.004a27e0
push eax
push esi
call fcn.004a29e0
mov dword [ebp - 0x630], eax
lea eax, [ebp - 0x630]
mov byte [ebp - 4], 0x12
push eax
lea eax, [ebp - 0x634]
push 0x4f3c34
push eax
call fcn.004a23a0
add esp, 0x20
mov ecx, dword [ebp - 0x630]
mov byte [ebp - 4], 0x15
test ecx, ecx
je 0x4682e4
call fcn.004a2a20
push esi
push reloc.WS2_32.dll_accept
mov byte [ebp - 4], 0x14
call fcn.00467210
add esp, 8
mov ecx, dword [ebp - 0x634]
mov byte [ebp - 4], 0x16
test ecx, ecx
je 0x468309
call fcn.004a2a20
push 0
push 0
push 0
push 0x8000000
call dword [sym.imp.SHELL32.dll_SHChangeNotify]
mov ecx, dword [ebp - 0x62c]
mov dword [ebp - 4], 0x17
test ecx, ecx
je 0x468330
call fcn.004a2a20
mov al, 1
jmp 0x4680ad
call fcn.004a7b5a
int3