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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4d5108
mov eax, dword fs:[0]
push eax
sub esp, 0x638
mov eax, dword [0x517ba0]
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 eax, dword [ebp + 0x14]
mov esi, dword [ebp + 0x10]
mov dword [ebp - 0x644], eax
cmp word [edi], 0x2e
jne 0x465969
mov dword [ebp - 0x62c], 0
cmp byte [ebp + 0x18], 0
mov dword [ebp - 4], 0
push edi
je 0x465aa2
mov dword [ebp - 0x630], 0
call fcn.0049fbd0
push eax
push edi
call fcn.0049fd60
mov dword [ebp - 0x634], eax
lea eax, [ebp - 0x634]
mov byte [ebp - 4], 1
push eax
lea eax, [ebp - 0x63c]
push 0x4f0bfc
push eax
call fcn.0049f790
add esp, 0x18
mov edi, eax
mov ecx, dword [ebp - 0x62c]
mov byte [ebp - 4], 2
test ecx, ecx
je 0x4656b3
call fcn.0049fda0
mov ecx, dword [edi]
mov dword [ebp - 0x62c], ecx
test ecx, ecx
je 0x4656c4
call fcn.0049fad0
mov ecx, dword [ebp - 0x63c]
mov byte [ebp - 4], 3
test ecx, ecx
je 0x4656d7
call fcn.0049fda0
mov ecx, dword [ebp - 0x634]
mov byte [ebp - 4], 4
test ecx, ecx
je 0x4656ea
call fcn.0049fda0
lea eax, [ebp - 0x640]
mov byte [ebp - 4], 0
push eax
lea eax, [ebp - 0x630]
push eax
push 0
push 0xf003f
push 0
push 0
push 0
lea ecx, [ebp - 0x62c]
call fcn.0049f770
mov ebx, dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
push eax
push reloc.WS2_32.dll_accept
call ebx
mov edi, dword [ebp - 0x630]
test edi, edi
jne 0x465738
mov dword [ebp - 4], 5
jmp 0x46595a
cmp dword [ebp - 0x640], 2
jne 0x4657d8
xor eax, eax
push 0x206
push eax
mov word [ebp - 0x218], ax
lea eax, [ebp - 0x216]
push eax
call fcn.004a7410
add esp, 0xc
mov dword [ebp - 0x634], 0x206
lea eax, [ebp - 0x634]
push eax
lea eax, [ebp - 0x218]
push eax
push 0
push 0
push 0x4e1a9c
push edi
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov eax, dword [ebp - 0x634]
and eax, 0xfffffffe
cmp eax, 0x208
jae 0x465bd1
xor ecx, ecx
mov word [ebp + eax - 0x218], cx
cmp word [ebp - 0x218], cx
je 0x4657d2
lea eax, [ebp - 0x218]
push esi
push eax
call fcn.004abd57
add esp, 8
test eax, eax
je 0x4657d2
mov dword [ebp - 4], 6
jmp 0x46595a
mov edi, dword [ebp - 0x630]
mov ecx, esi
lea edx, [ecx + 2]
nop dword [eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4657e0
sub ecx, edx
sar ecx, 1
lea eax, [ecx*2 + 2]
push eax
push esi
push 1
push 0x4e1a9c
push edi
call dword [sym.imp.ADVAPI32.dll_RegSetValueW]
push dword [ebp - 0x630]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push esi
mov dword [ebp - 0x638], 0
call fcn.0049fbd0
push eax
push esi
call fcn.0049fd60
mov dword [ebp - 0x634], eax
lea eax, [ebp - 0x634]
mov byte [ebp - 4], 7
push eax
lea eax, [ebp - 0x63c]
push 0x4f0bfc
push eax
call fcn.0049f790
add esp, 0x18
mov esi, eax
mov ecx, dword [ebp - 0x62c]
mov byte [ebp - 4], 8
test ecx, ecx
je 0x465863
call fcn.0049fda0
mov ecx, dword [esi]
mov dword [ebp - 0x62c], ecx
test ecx, ecx
je 0x465874
call fcn.0049fad0
mov ecx, dword [ebp - 0x63c]
mov byte [ebp - 4], 9
test ecx, ecx
je 0x465887
call fcn.0049fda0
mov ecx, dword [ebp - 0x634]
mov byte [ebp - 4], 0xa
test ecx, ecx
je 0x46589a
call fcn.0049fda0
lea eax, [ebp - 0x640]
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.0049f770
push eax
push reloc.WS2_32.dll_accept
call ebx
mov edx, dword [ebp - 0x638]
test edx, edx
jne 0x4658df
mov dword [ebp - 4], 0xb
jmp 0x46595a
mov edi, dword [ebp - 0x644]
mov ecx, edi
lea esi, [ecx + 2]
nop word [eax + eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4658f0
sub ecx, esi
mov esi, dword [sym.imp.ADVAPI32.dll_RegSetValueW]
sar ecx, 1
lea eax, [ecx*2 + 2]
push eax
push edi
push 1
push 0x4e1a9c
push edx
call esi
lea eax, [ebp - 0x640]
mov dword [ebp - 0x630], 0
push eax
lea eax, [ebp - 0x630]
push eax
push 0
push 0xf003f
push 0
push 0
push 0
push 0x4f0c20
push dword [ebp - 0x638]
call ebx
cmp dword [ebp - 0x630], 0
jne 0x465987
mov dword [ebp - 4], 0xc
mov ecx, dword [ebp - 0x62c]
test ecx, ecx
je 0x465969
call fcn.0049fda0
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.004a4433
mov esp, ebp
pop ebp
ret
cmp byte [ebp + 8], 0
mov ecx, 0x4f0c48
mov eax, 0x4f0c80
cmovne eax, ecx
push 0x51c900
push eax
lea eax, [ebp - 0x628]
push eax
call fcn.00462220
lea ecx, [ebp - 0x628]
add esp, 0xc
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4659b6
sub ecx, edx
sar ecx, 1
lea eax, [ecx*2 + 2]
push eax
lea eax, [ebp - 0x628]
push eax
push 1
push 0x4e1a9c
push dword [ebp - 0x630]
call esi
push dword [ebp - 0x630]
mov edi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
call edi
lea eax, [ebp - 0x640]
mov dword [ebp - 0x630], 0
push eax
lea eax, [ebp - 0x630]
push eax
push 0
push 0xf003f
push 0
push 0
push 0
push 0x4f0ca8
push dword [ebp - 0x638]
call ebx
cmp dword [ebp - 0x630], 0
jne 0x465a38
mov dword [ebp - 4], 0xd
jmp 0x46595a
push 0x51c900
lea eax, [ebp - 0x628]
push 0x4f0cc0
push eax
call fcn.00462220
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 0x465a60
sub ecx, edx
sar ecx, 1
lea eax, [ecx*2 + 2]
push eax
lea eax, [ebp - 0x628]
push eax
push 1
push 0x4e1a9c
push dword [ebp - 0x630]
call esi
push dword [ebp - 0x630]
call edi
push dword [ebp - 0x638]
call edi
jmp 0x465ba3
call fcn.0049fbd0
push eax
push edi
call fcn.0049fd60
mov dword [ebp - 0x634], eax
lea eax, [ebp - 0x634]
mov byte [ebp - 4], 0xe
push eax
lea eax, [ebp - 0x644]
push 0x4f0bfc
push eax
call fcn.0049f790
add esp, 0x18
mov edi, eax
mov ecx, dword [ebp - 0x62c]
mov byte [ebp - 4], 0xf
test ecx, ecx
je 0x465ae8
call fcn.0049fda0
mov ecx, dword [edi]
mov dword [ebp - 0x62c], ecx
test ecx, ecx
je 0x465af9
call fcn.0049fad0
mov ecx, dword [ebp - 0x644]
mov byte [ebp - 4], 0x10
test ecx, ecx
je 0x465b0c
call fcn.0049fda0
mov ecx, dword [ebp - 0x634]
mov byte [ebp - 4], 0x11
test ecx, ecx
je 0x465b1f
call fcn.0049fda0
lea ecx, [ebp - 0x62c]
mov byte [ebp - 4], 0
call fcn.0049f770
push eax
push reloc.WS2_32.dll_accept
call fcn.00464d20
push esi
call fcn.0049fbd0
push eax
push esi
call fcn.0049fd60
mov dword [ebp - 0x634], eax
lea eax, [ebp - 0x634]
mov byte [ebp - 4], 0x12
push eax
lea eax, [ebp - 0x63c]
push 0x4f0bfc
push eax
call fcn.0049f790
add esp, 0x20
mov ecx, dword [ebp - 0x634]
mov byte [ebp - 4], 0x15
test ecx, ecx
je 0x465b7e
call fcn.0049fda0
push esi
push reloc.WS2_32.dll_accept
mov byte [ebp - 4], 0x14
call fcn.00464d20
add esp, 8
mov ecx, dword [ebp - 0x63c]
mov byte [ebp - 4], 0x16
test ecx, ecx
je 0x465ba3
call fcn.0049fda0
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 0x465bca
call fcn.0049fda0
mov al, 1
jmp 0x46596b
call fcn.004a4f4a
int3