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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4d14c8
mov eax, dword fs:[0]
push eax
sub esp, 0x638
mov eax, dword [0x513b94]
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 0x462f39
mov dword [ebp - 0x62c], 0
cmp byte [ebp + 0x18], 0
mov dword [ebp - 4], 0
push edi
je 0x463072
mov dword [ebp - 0x630], 0
call fcn.0049c580
push eax
push edi
call fcn.0049c710
mov dword [ebp - 0x634], eax
lea eax, [ebp - 0x634]
mov byte [ebp - 4], 1
push eax
lea eax, [ebp - 0x63c]
push 0x4ecc14
push eax
call fcn.0049c140
add esp, 0x18
mov edi, eax
mov ecx, dword [ebp - 0x62c]
mov byte [ebp - 4], 2
test ecx, ecx
je 0x462c93
call fcn.0049c750
mov ecx, dword [edi]
mov dword [ebp - 0x62c], ecx
test ecx, ecx
je 0x462ca4
call fcn.0049c480
mov ecx, dword [ebp - 0x63c]
mov byte [ebp - 4], 3
test ecx, ecx
je 0x462cb7
call fcn.0049c750
mov ecx, dword [ebp - 0x634]
mov byte [ebp - 4], 4
test ecx, ecx
je 0x462cca
call fcn.0049c750
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.0049c120
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 0x462d18
mov dword [ebp - 4], 5
jmp 0x462f2a
cmp dword [ebp - 0x640], 2
jne 0x462db0
push 0x208
lea eax, [ebp - 0x218]
push 0
push eax
call fcn.004a3e00
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 0x4dd79c
push edi
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov eax, dword [ebp - 0x634]
and eax, 0xfffffffe
cmp eax, 0x208
jae 0x4631a1
xor ecx, ecx
mov word [ebp + eax - 0x218], cx
cmp word [ebp - 0x218], cx
je 0x462daa
lea eax, [ebp - 0x218]
push esi
push eax
call fcn.004a8747
add esp, 8
test eax, eax
je 0x462daa
mov dword [ebp - 4], 6
jmp 0x462f2a
mov edi, dword [ebp - 0x630]
mov ecx, esi
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x462db5
sub ecx, edx
sar ecx, 1
lea eax, [ecx*2 + 2]
push eax
push esi
push 1
push 0x4dd79c
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.0049c580
push eax
push esi
call fcn.0049c710
mov dword [ebp - 0x634], eax
lea eax, [ebp - 0x634]
mov byte [ebp - 4], 7
push eax
lea eax, [ebp - 0x63c]
push 0x4ecc14
push eax
call fcn.0049c140
add esp, 0x18
mov esi, eax
mov ecx, dword [ebp - 0x62c]
mov byte [ebp - 4], 8
test ecx, ecx
je 0x462e38
call fcn.0049c750
mov ecx, dword [esi]
mov dword [ebp - 0x62c], ecx
test ecx, ecx
je 0x462e49
call fcn.0049c480
mov ecx, dword [ebp - 0x63c]
mov byte [ebp - 4], 9
test ecx, ecx
je 0x462e5c
call fcn.0049c750
mov ecx, dword [ebp - 0x634]
mov byte [ebp - 4], 0xa
test ecx, ecx
je 0x462e6f
call fcn.0049c750
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.0049c120
push eax
push reloc.WS2_32.dll_accept
call ebx
mov edx, dword [ebp - 0x638]
test edx, edx
jne 0x462eb4
mov dword [ebp - 4], 0xb
jmp 0x462f2a
mov edi, dword [ebp - 0x644]
mov ecx, edi
lea esi, [ecx + 2]
nop
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x462ec0
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 0x4dd79c
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 0x4ecc38
push dword [ebp - 0x638]
call ebx
cmp dword [ebp - 0x630], 0
jne 0x462f57
mov dword [ebp - 4], 0xc
mov ecx, dword [ebp - 0x62c]
test ecx, ecx
je 0x462f39
call fcn.0049c750
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.004a0e13
mov esp, ebp
pop ebp
ret
cmp byte [ebp + 8], 0
mov ecx, 0x4ecc60
mov eax, 0x4ecc98
cmovne eax, ecx
push 0x5188a8
push eax
lea eax, [ebp - 0x628]
push eax
call fcn.0045f870
lea ecx, [ebp - 0x628]
add esp, 0xc
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x462f86
sub ecx, edx
sar ecx, 1
lea eax, [ecx*2 + 2]
push eax
lea eax, [ebp - 0x628]
push eax
push 1
push 0x4dd79c
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 0x4eccc0
push dword [ebp - 0x638]
call ebx
cmp dword [ebp - 0x630], 0
jne 0x463008
mov dword [ebp - 4], 0xd
jmp 0x462f2a
push 0x5188a8
lea eax, [ebp - 0x628]
push 0x4eccd8
push eax
call fcn.0045f870
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 0x463030
sub ecx, edx
sar ecx, 1
lea eax, [ecx*2 + 2]
push eax
lea eax, [ebp - 0x628]
push eax
push 1
push 0x4dd79c
push dword [ebp - 0x630]
call esi
push dword [ebp - 0x630]
call edi
push dword [ebp - 0x638]
call edi
jmp 0x463173
call fcn.0049c580
push eax
push edi
call fcn.0049c710
mov dword [ebp - 0x634], eax
lea eax, [ebp - 0x634]
mov byte [ebp - 4], 0xe
push eax
lea eax, [ebp - 0x644]
push 0x4ecc14
push eax
call fcn.0049c140
add esp, 0x18
mov edi, eax
mov ecx, dword [ebp - 0x62c]
mov byte [ebp - 4], 0xf
test ecx, ecx
je 0x4630b8
call fcn.0049c750
mov ecx, dword [edi]
mov dword [ebp - 0x62c], ecx
test ecx, ecx
je 0x4630c9
call fcn.0049c480
mov ecx, dword [ebp - 0x644]
mov byte [ebp - 4], 0x10
test ecx, ecx
je 0x4630dc
call fcn.0049c750
mov ecx, dword [ebp - 0x634]
mov byte [ebp - 4], 0x11
test ecx, ecx
je 0x4630ef
call fcn.0049c750
lea ecx, [ebp - 0x62c]
mov byte [ebp - 4], 0
call fcn.0049c120
push eax
push reloc.WS2_32.dll_accept
call fcn.00462300
push esi
call fcn.0049c580
push eax
push esi
call fcn.0049c710
mov dword [ebp - 0x634], eax
lea eax, [ebp - 0x634]
mov byte [ebp - 4], 0x12
push eax
lea eax, [ebp - 0x63c]
push 0x4ecc14
push eax
call fcn.0049c140
add esp, 0x20
mov ecx, dword [ebp - 0x634]
mov byte [ebp - 4], 0x15
test ecx, ecx
je 0x46314e
call fcn.0049c750
push esi
push reloc.WS2_32.dll_accept
mov byte [ebp - 4], 0x14
call fcn.00462300
add esp, 8
mov ecx, dword [ebp - 0x63c]
mov byte [ebp - 4], 0x16
test ecx, ecx
je 0x463173
call fcn.0049c750
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 0x46319a
call fcn.0049c750
mov al, 1
jmp 0x462f3b
call fcn.004a193a
int3