Function at 0x45edd0
Capabilities:
Get common file path
Query or enumerate registry key
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x483ef0
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x654
mov eax, dword [ebp + 0x10]
push ebx
push esi
push edi
mov dword [ebp - 0x10], esp
xor esi, esi
push 0x100
mov dword [ebp - 4], esi
mov ebx, str.SYSTEMCurrentControlSetServices
mov dword [eax], esi
mov dword [ebp - 0x18], esi
call fcn.0047afc7
add esp, 4
mov dword [ebp - 0x1c], eax
push 0x100
call fcn.0047afc7
add esp, 4
mov dword [ebp - 0x20], eax
push 0x100
call fcn.0047afc7
add esp, 4
lea ecx, [ebp - 0x360]
mov dword [ebp - 0x24], eax
push 0x100
push ecx
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
lea edi, [ebp - 0x360]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov edx, ecx
mov dword [ebp - 0x40], edx
cmp eax, edx
jge 0x45ee77
mov cl, byte [ebp + eax - 0x360]
cmp cl, 0x5c
mov byte [ebp + eax - 0x160], cl
je 0x45ee77
inc eax
jmp 0x45ee5d
mov byte [ebp + eax - 0x15f], 0
lea edi, [ebp - 0x160]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
lea edx, [ebp - 0x460]
mov eax, ecx
mov esi, edi
mov edi, edx
lea edx, [ebp - 0x460]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
xor eax, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, str.Program_Files
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov edi, edx
mov edx, ecx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, edx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
lea eax, [ebp - 0x28]
and ecx, 3
push eax
rep movsb byte es:[edi], byte [esi]
xor edi, edi
push closesocket
push edi
push ebx
push closesocket
mov dword [ebp - 0x3c], edi
mov dword [ebp - 0x14], edi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
cmp eax, edi
jne 0x45f322
push str.begin....
mov ecx, 0x65cd80
call fcn.00479641
push 0xa
mov ecx, eax
call fcn.00479456
push 0x401430
mov ecx, eax
call fcn.00401410
mov dword [ebp - 0x30], edi
mov ebx, dword [ebp - 0x1c]
mov edx, dword [ebp - 0x18]
mov eax, dword [ebp - 0x28]
push 0
push 0
push 0
lea ecx, [ebp - 0x44]
push 0
push ecx
push ebx
mov esi, 0x100
push edx
push eax
mov dword [ebp - 0x44], esi
mov dword [ebp - 0x38], esi
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExA]
cmp eax, 0x103
mov dword [ebp - 0x48], eax
je 0x45f2fc
push ebx
call fcn.00483565
mov ecx, dword [ebp - 0x20]
push eax
push str.SYSTEMCurrentControlSetServices_sParameters
push ecx
call fcn.0047a8f8
push ebx
call fcn.00483565
mov edx, dword [ebp - 0x24]
push eax
push str.SYSTEMCurrentControlSetServices_s
push edx
call fcn.0047a8f8
mov ecx, dword [ebp - 0x20]
add esp, 0x20
lea eax, [ebp - 0x2c]
push eax
push closesocket
push 0
push ecx
push closesocket
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
mov dword [ebp - 0x34], 1
jne 0x45f2ef
lea edx, [ebp - 0x38]
lea eax, [ebp - 0x148]
push edx
mov edx, dword [ebp - 0x2c]
lea ecx, [ebp - 0x34]
push eax
push ecx
push 0
push str.ServiceDll
push edx
mov dword [ebp - 0x34], 2
mov dword [ebp - 0x38], esi
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x45f2ec
mov edi, dword [ebp - 0x30]
or ecx, 0xffffffff
inc edi
mov dword [ebp - 0x30], edi
lea edi, [ebp - 0x148]
repne scasb al, byte es:[edi]
mov al, byte [ebp - 0x148]
not ecx
dec ecx
cmp al, 0x22
mov ebx, ecx
jne 0x45f024
xor eax, eax
cmp eax, ebx
jge 0x45f01c
mov cl, byte [ebp + eax - 0x147]
mov byte [ebp + eax - 0x148], cl
inc eax
jmp 0x45f007
mov byte [ebp + ebx - 0x14a], 0
cmp byte [ebp - 0x148], 0x25
jne 0x45f2a5
cmp byte [ebp - 0x147], 0x50
jne 0x45f06a
lea eax, [ebx + 1]
test eax, eax
jle 0x45f052
mov dl, byte [ebp + eax - 0x148]
mov byte [ebp + eax - 0x146], dl
dec eax
jmp 0x45f03d
xor eax, eax
cmp eax, 0x10
jge 0x45f06a
mov cl, byte [ebp + eax - 0x460]
mov byte [ebp + eax - 0x148], cl
inc eax
jmp 0x45f054
cmp byte [ebp - 0x147], 0x70
jne 0x45f0a3
lea eax, [ebx + 1]
test eax, eax
jle 0x45f08b
mov dl, byte [ebp + eax - 0x148]
mov byte [ebp + eax - 0x146], dl
dec eax
jmp 0x45f076
xor eax, eax
cmp eax, 0x10
jge 0x45f0a3
mov cl, byte [ebp + eax - 0x460]
mov byte [ebp + eax - 0x148], cl
inc eax
jmp 0x45f08d
cmp byte [ebp - 0x147], 0x53
jne 0x45f10c
xor ecx, ecx
mov eax, 0xc
lea edx, [ebx + 1]
cmp eax, edx
jg 0x45f0cc
mov dl, byte [ebp + eax - 0x148]
inc ecx
mov byte [ebp + eax - 0x26c], dl
inc eax
jmp 0x45f0b3
xor eax, eax
mov esi, dword [ebp - 0x40]
cmp eax, esi
jge 0x45f0e6
mov dl, byte [ebp + eax - 0x360]
mov byte [ebp + eax - 0x148], dl
inc eax
jmp 0x45f0ce
xor eax, eax
cmp eax, ecx
jge 0x45f100
mov dl, byte [ebp + eax - 0x260]
lea edi, [esi + eax]
inc eax
mov byte [ebp + edi - 0x148], dl
jmp 0x45f0e8
add ecx, esi
mov byte [ebp + ecx - 0x148], 0
jmp 0x45f10f
mov esi, dword [ebp - 0x40]
cmp byte [ebp - 0x147], 0x73
jne 0x45f173
xor ecx, ecx
mov eax, 0xc
lea edx, [ebx + 1]
cmp eax, edx
jg 0x45f138
mov dl, byte [ebp + eax - 0x148]
inc ecx
mov byte [ebp + eax - 0x22c], dl
inc eax
jmp 0x45f11f
xor eax, eax
cmp eax, esi
jge 0x45f14f
mov dl, byte [ebp + eax - 0x360]
mov byte [ebp + eax - 0x148], dl
inc eax
jmp 0x45f13a
xor eax, eax
cmp eax, ecx
jge 0x45f169
mov dl, byte [ebp + eax - 0x220]
lea edi, [esi + eax]
inc eax
mov byte [ebp + edi - 0x148], dl
jmp 0x45f151
add ecx, esi
mov byte [ebp + ecx - 0x148], 0
cmp byte [ebp - 0x147], 0x77
jne 0x45f1f9
xor eax, eax
lea ecx, [ebx - 8]
cmp eax, ecx
jge 0x45f196
mov dl, byte [ebp + eax - 0x140]
mov byte [ebp + eax - 0x1a0], dl
inc eax
jmp 0x45f17e
lea eax, [ebp - 0x1a0]
lea ecx, [ebp - 0x360]
push eax
push ecx
mov byte [ebp + ebx - 0x1a8], 0
mov byte [ebp - 0x148], 0
call fcn.00483565
add esp, 4
lea edx, [ebp - 0x560]
push eax
push str._s_s
push edx
call fcn.0047a8f8
lea edi, [ebp - 0x560]
or ecx, 0xffffffff
xor eax, eax
add esp, 0x10
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
lea edx, [ebp - 0x148]
mov eax, ecx
mov esi, edi
mov edi, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
cmp byte [ebp - 0x147], 0x57
jne 0x45f27f
xor eax, eax
lea ecx, [ebx - 8]
cmp eax, ecx
jge 0x45f21c
mov dl, byte [ebp + eax - 0x140]
mov byte [ebp + eax - 0x1e0], dl
inc eax
jmp 0x45f204
lea eax, [ebp - 0x1e0]
lea ecx, [ebp - 0x360]
push eax
push ecx
mov byte [ebp + ebx - 0x1e8], 0
mov byte [ebp - 0x148], 0
call fcn.00483565
add esp, 4
lea edx, [ebp - 0x660]
push eax
push str._s_s
push edx
call fcn.0047a8f8
lea edi, [ebp - 0x660]
or ecx, 0xffffffff
xor eax, eax
add esp, 0x10
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
lea edx, [ebp - 0x148]
mov eax, ecx
mov esi, edi
mov edi, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea edi, [ebp - 0x148]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
lea eax, [ebp + ecx - 0x149]
mov cl, byte [ebp + ecx - 0x149]
cmp cl, 0x5c
jne 0x45f2a5
mov byte [eax], 0
mov esi, dword [ebp - 0x14]
lea ecx, [ebp - 0x148]
push ecx
shl esi, 8
call fcn.00483565
mov edx, dword [ebp + 8]
push eax
push 0x48b2f4
lea eax, [esi + edx]
push eax
call fcn.0047a8f8
mov ecx, dword [ebp - 0x24]
mov edx, dword [ebp + 0xc]
push ecx
add esi, edx
push str.HKLM_s
push esi
call fcn.0047a8f8
mov eax, dword [ebp - 0x14]
mov ebx, dword [ebp - 0x1c]
add esp, 0x1c
inc eax
mov dword [ebp - 0x14], eax
mov edi, eax
inc dword [ebp - 0x3c]
mov eax, dword [ebp - 0x2c]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [ebp - 0x48]
mov edx, dword [ebp - 0x18]
inc edx
cmp edi, 0xff
mov dword [ebp - 0x18], edx
jg 0x45f325
mov ecx, edx
cmp ecx, 0x1020
ja 0x45f325
cmp eax, 0x103
jne 0x45ef25
jmp 0x45f325
mov ebx, dword [ebp - 0x1c]
mov ecx, dword [ebp + 0x10]
mov edx, dword [ebp - 0x28]
push edx
mov dword [ecx], edi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push ebx
call fcn.0047afbc
mov eax, dword [ebp - 0x20]
add esp, 4
push eax
call fcn.0047afbc
mov ecx, dword [ebp - 0x24]
add esp, 4
push ecx
call fcn.0047afbc
add esp, 4
mov ax, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret