Function at 0x40cc30
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x48ed9b
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x274
mov eax, dword [0x4afd08]
push ebx
push esi
push edi
mov ebx, ecx
mov dword [ebp - 0x10], esp
mov dword [ebp - 0x2c], ebx
mov dword [ebp - 0x24], eax
mov ecx, str.ADODB.Connection
mov dword [ebp - 4], 0
test ecx, ecx
mov byte [ebp - 4], 1
je 0x40cd32
push ecx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov esi, eax
inc esi
lea eax, [esi + esi]
add eax, 3
and al, 0xfc
call fcn.00424180
mov edi, esp
push esi
push edi
push 0xffffffffffffffff
push str.ADODB.Connection
push 0
push 0
mov word [edi], 0
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
test eax, eax
jne 0x40cccc
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
call esi
test eax, eax
jg 0x40ccbe
call esi
jmp 0x40ccdb
call esi
and eax, 0xffff
or eax, 0x80070000
jmp 0x40ccdb
push 7
push 0
push edi
mov ecx, 0x4b8f00
call fcn.004106e0
test eax, eax
jl 0x40cd32
push 0
push ecx
mov ecx, esp
mov dword [ebp - 0x14], esp
push 0x4b8c40
call fcn.004107d0
push ecx
mov byte [ebp - 4], 2
mov ecx, esp
mov dword [ebp - 0x18], esp
push 0x4b8c40
call fcn.004107d0
push ecx
mov byte [ebp - 4], 3
mov ecx, esp
mov dword [ebp - 0x50], esp
push str.ProviderMicrosoft.Jet.OLEDB.4.0_Data_SourceSafeSheildDB.mdb
call fcn.004107d0
mov ecx, 0x4b8f00
mov byte [ebp - 4], 4
call fcn.004106c0
mov ecx, eax
mov byte [ebp - 4], 1
call fcn.00410af0
mov ecx, 0x40
xor eax, eax
lea edi, [ebp - 0x16b]
mov byte [ebp - 0x16c], 0
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
lea ecx, [ebp - 0x16c]
push str.SYSTEMCurrentControlSetControlTerminal_ServerWinStationsRDP_Tcp
push ecx
mov dword [ebp - 4], 0
stosb byte es:[edi], al
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
lea edx, [ebp - 0x54]
lea eax, [ebp - 0x16c]
push edx
push 0xf003f
push 0
push eax
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x40cdba
lea ecx, [ebp - 0x14]
lea edx, [ebp - 0x58]
push ecx
mov ecx, dword [ebp - 0x54]
lea eax, [ebp - 0x18]
push edx
push eax
push 0
push str.PortNumber
push ecx
mov dword [ebp - 0x18], 4
mov dword [ebp - 0x14], 0xc8
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov edx, dword [ebp - 0x54]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [ebp - 0x58]
lea ecx, [ebp - 0x16c]
push eax
push 0x4ac1a4
push ecx
call dword [sym.imp.USER32.dll_wsprintfA]
lea edx, [ebp - 0x16c]
push edx
push str.Port
push str.OpenPort
call fcn.00418b30
add esp, 0x18
test eax, eax
jne 0x40ce90
lea eax, [ebp - 0x16c]
push 0x4aefe8
push eax
lea ecx, [ebp - 0x24]
push str._s__s
push ecx
call fcn.0047a92c
add esp, 0x10
lea ecx, [ebp - 0x24]
push 0
call fcn.004813de
push eax
push str.OpenPort
call fcn.00418ee0
mov edx, dword [ebx + 0x1e4]
add esp, 8
push 0
push 0
push 0x1004
push edx
call dword [sym.imp.USER32.dll_SendMessageA]
push 0
mov esi, eax
push 0
push 0
lea eax, [ebp - 0x16c]
push 0
lea edi, [ebx + 0x1c8]
push eax
push esi
push 1
mov ecx, edi
call fcn.0047b2ce
push 0x4aefd4
push 1
push esi
mov ecx, edi
call fcn.0047b39e
lea ecx, [ebp - 0x16c]
push ecx
call fcn.00423f70
add esp, 4
mov ecx, edi
push eax
push 0
push 0
push 0
push 0
push 4
push 0
push esi
call fcn.0047b350
mov edx, dword [ebx + 0x1e4]
push 0
push 0
push 0x1004
push edx
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x20], 0x2a24
call dword [sym.imp.USER32.dll_SendMessageA]
push 0
push 0
push 0
mov esi, eax
push 0
lea edi, [ebx + 0x1c8]
push str.10788
push esi
push 1
mov ecx, edi
call fcn.0047b2ce
push 0x4aefc4
push 1
push esi
mov ecx, edi
call fcn.0047b39e
call fcn.0048150a
test eax, eax
je 0x40cf8a
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0x74]
jmp 0x40cf8c
xor eax, eax
push 0
lea ecx, [ebp - 0x20]
push 4
push ecx
push 0x22200c
mov ecx, eax
call fcn.00406050
mov eax, dword [0x4afd08]
mov dword [ebp - 0x28], eax
mov dword [ebp - 0x1c], eax
lea edx, [ebp - 0x28]
push 0x4aef38
push edx
mov byte [ebp - 4], 8
call fcn.0047a92c
add esp, 8
mov ecx, 0x4b8efc
call fcn.004107c0
lea eax, [ebp - 0x14]
push eax
push 0x4aef28
push 7
push 0
push 0x4aef18
call dword [sym.imp.ole32.dll_CoCreateInstance]
test eax, eax
jl 0x40d00f
mov ecx, dword [ebp - 0x14]
push ecx
call dword [sym.imp.ole32.dll_OleRun]
test eax, eax
jl 0x40d006
mov eax, dword [ebp - 0x14]
push 0x4b8efc
push 0x4aef08
add byte [eax - 0x75], dl
adc bh, bh
invalid
mov eax, dword [ebp - 0x14]
push eax
mov ecx, dword [eax]
call dword [ecx + 8]
mov eax, dword [ebp - 0x28]
mov word [ebp - 0x4c], 8
push eax
mov esi, eax
call fcn.0042fe45
test eax, eax
mov dword [ebp - 0x44], eax
jne 0x40d035
test esi, esi
je 0x40d035
push 0x8007000e
call fcn.0042fd98
mov eax, dword [0x4b8f00]
mov word [ebp - 0x3c], 9
mov dword [ebp - 0x34], eax
push eax
mov edx, dword [eax]
mov byte [ebp - 4], 9
call dword [edx + 4]
mov eax, dword [0x4b8efc]
mov byte [ebp - 4], 0xa
test eax, eax
jne 0x40d069
push 0x80004003
call fcn.0042fd98
mov eax, dword [0x4b8efc]
mov edi, dword [ebp - 0x3c]
push 1
push 2
push 2
sub esp, 0x10
mov ecx, dword [eax]
mov edx, esp
sub esp, 0x10
mov esi, eax
mov dword [edx], edi
mov edi, dword [ebp - 0x38]
mov dword [edx + 4], edi
mov edi, dword [ebp - 0x34]
mov dword [edx + 8], edi
mov edi, dword [ebp - 0x30]
mov dword [edx + 0xc], edi
mov edi, dword [ebp - 0x4c]
mov edx, esp
push eax
mov dword [edx], edi
mov edi, dword [ebp - 0x48]
mov dword [edx + 4], edi
mov edi, dword [ebp - 0x44]
mov dword [edx + 8], edi
mov edi, dword [ebp - 0x40]
mov dword [edx + 0xc], edi
call dword [ecx + 0xa0]
test eax, eax
jge 0x40d0c2
push 0x4aeef8
push esi
push eax
call fcn.0042fda6
mov ebx, dword [sym.imp.OLEAUT32.dll_VariantCopy]
lea eax, [ebp - 0x3c]
push eax
mov byte [ebp - 4], 9
call ebx
test eax, eax
jge 0x40d0dc
push eax
call fcn.0042fd98
lea ecx, [ebp - 0x4c]
mov byte [ebp - 4], 8
push ecx
call ebx
test eax, eax
jge 0x40d0f0
push eax
call fcn.0042fd98
mov eax, dword [0x4b8efc]
test eax, eax
jne 0x40d108
push 0x80004003
call fcn.0042fd98
mov eax, dword [0x4b8efc]
mov edx, dword [eax]
lea ecx, [ebp - 0x4e]
push ecx
push eax
mov esi, eax
call dword [edx + 0x50]
test eax, eax
jge 0x40d124
push 0x4aeef8
push esi
push eax
call fcn.0042fda6
cmp word [ebp - 0x4e], 0
mov edx, dword [ebp - 0x18]
jne 0x40d301
inc edx
push 0
mov dword [ebp - 0x18], edx
mov edx, dword [ebp - 0x2c]
push 0
push 0x1004
mov eax, dword [edx + 0x1e4]
push eax
call dword [sym.imp.USER32.dll_SendMessageA]
push str.Port
mov edi, eax
mov word [ebp - 0x3c], 8
call fcn.0042fe45
test eax, eax
mov dword [ebp - 0x34], eax
jne 0x40d17b
mov ecx, str.Port
test ecx, ecx
je 0x40d17b
push 0x8007000e
call fcn.0042fd98
mov eax, dword [0x4b8efc]
mov byte [ebp - 4], 0xb
test eax, eax
jne 0x40d192
push 0x80004003
call fcn.0042fd98
mov ecx, dword [0x4b8efc]
lea edx, [ebp - 0x3c]
lea eax, [ebp - 0x68]
push edx
push eax
call fcn.00410c20
mov esi, eax
mov dword [ebp - 0x14], 0
cmp word [esi], 8
mov byte [ebp - 4], 0xc
jne 0x40d1c6
mov ecx, dword [esi + 8]
push ecx
lea ecx, [ebp - 0x14]
call fcn.004108c0
jmp 0x40d1ff
lea edx, [ebp - 0x4c]
push edx
call dword [sym.imp.OLEAUT32.dll_VariantClear]
push esi
push 8
lea ecx, [ebp - 0x4c]
mov byte [ebp - 4], 0xd
call fcn.00410a20
mov eax, dword [ebp - 0x44]
lea ecx, [ebp - 0x14]
push eax
call fcn.004108c0
lea ecx, [ebp - 0x4c]
mov byte [ebp - 4], 0xc
push ecx
call ebx
test eax, eax
jge 0x40d1ff
push eax
call fcn.0042fd98
mov ecx, dword [ebp - 0x14]
mov byte [ebp - 4], 0xe
test ecx, ecx
je 0x40d211
call fcn.004109f0
jmp 0x40d213
xor eax, eax
push eax
lea ecx, [ebp - 0x1c]
call fcn.004811e7
lea ecx, [ebp - 0x14]
call fcn.00410870
lea edx, [ebp - 0x68]
mov byte [ebp - 4], 0xb
push edx
call ebx
test eax, eax
jge 0x40d238
push eax
call fcn.0042fd98
lea eax, [ebp - 0x3c]
mov byte [ebp - 4], 8
push eax
call ebx
test eax, eax
jge 0x40d24c
push eax
call fcn.0042fd98
mov edx, dword [ebp - 0x2c]
mov ecx, dword [ebp - 0x1c]
push 0
push 0
push 0
push 0
push ecx
lea esi, [edx + 0x1c8]
push edi
push 1
mov ecx, esi
call fcn.0047b2ce
mov eax, dword [ebp - 0x1c]
push eax
call fcn.00423f70
add esp, 4
mov ecx, esi
mov dword [ebp - 0x20], eax
push 0x4aefd4
push 1
push edi
call fcn.0047b39e
mov ecx, dword [ebp - 0x20]
push ecx
push 0
push 0
push 0
push 0
push 4
push 0
push edi
mov ecx, esi
call fcn.0047b350
mov eax, dword [0x4b8efc]
test eax, eax
jne 0x40d2b9
push 0x80004003
call fcn.0042fd98
mov eax, dword [0x4b8efc]
mov edx, dword [eax]
push eax
mov esi, eax
call dword [edx + 0x90]
test eax, eax
jge 0x40d2d4
push 0x4aeef8
push esi
push eax
call fcn.0042fda6
call fcn.0048150a
test eax, eax
je 0x40d2e6
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0x74]
jmp 0x40d2e8
xor eax, eax
push 0
lea ecx, [ebp - 0x20]
push 4
push ecx
push 0x222010
mov ecx, eax
call fcn.00406050
jmp 0x40d0f0
push edx
lea eax, [ebp - 0x24]
push 0x4aeed8
push eax
call fcn.0047a92c
add esp, 0xc
call fcn.0048150a
test eax, eax
je 0x40d327
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0x74]
mov esi, eax
jmp 0x40d329
xor esi, esi
push 0
lea ecx, [ebp - 0x24]
call fcn.004813de
push eax
lea ecx, [esi + 0x1f4]
call fcn.00404040
lea eax, [ebp - 0x28]
push str.select__from_ProtectPort
push eax
mov dword [ebp - 0x18], 0
call fcn.0047a92c
mov eax, dword [0x4b8efc]
add esp, 8
test eax, eax
je 0x40d366
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
lea edx, [ebp - 0x14]
push edx
push 0x4aef28
push 7
push 0
push 0x4aef18
call dword [sym.imp.ole32.dll_CoCreateInstance]
test eax, eax
jl 0x40d3ab
mov eax, dword [ebp - 0x14]
push eax
call dword [sym.imp.ole32.dll_OleRun]
test eax, eax
jl 0x40d3a2
mov eax, dword [ebp - 0x14]
push 0x4b8efc
push 0x4aef08
push eax
mov ecx, dword [eax]
call dword [ecx]
mov eax, dword [ebp - 0x14]
push eax
mov edx, dword [eax]
call dword [edx + 8]
mov eax, dword [ebp - 0x28]
mov word [ebp - 0x3c], 8
push eax
mov esi, eax
call fcn.0042fe45
test eax, eax
mov dword [ebp - 0x34], eax
jne 0x40d3d1
test esi, esi
je 0x40d3d1
push 0x8007000e
call fcn.0042fd98
mov eax, dword [0x4b8f00]
mov word [ebp - 0x4c], 9
mov dword [ebp - 0x44], eax
mov bl, 0xf
mov ecx, dword [eax]
push eax
mov byte [ebp - 4], bl
call dword [ecx + 4]
mov eax, dword [0x4b8efc]
mov byte [ebp - 4], 0x10
test eax, eax
jne 0x40d406
push 0x80004003
call fcn.0042fd98
mov eax, dword [0x4b8efc]
mov edi, dword [ebp - 0x4c]
push 1
push 2
push 2
sub esp, 0x10
mov edx, dword [eax]
mov ecx, esp
sub esp, 0x10
mov esi, eax
mov dword [ecx], edi
mov edi, dword [ebp - 0x48]
mov dword [ecx + 4], edi
mov edi, dword [ebp - 0x44]
mov dword [ecx + 8], edi
mov edi, dword [ebp - 0x40]
mov dword [ecx + 0xc], edi
mov edi, dword [ebp - 0x3c]
mov ecx, esp
push eax
mov dword [ecx], edi
mov edi, dword [ebp - 0x38]
mov dword [ecx + 4], edi
mov edi, dword [ebp - 0x34]
mov dword [ecx + 8], edi
mov edi, dword [ebp - 0x30]
mov dword [ecx + 0xc], edi
call dword [edx + 0xa0]
test eax, eax
jge 0x40d45f
push 0x4aeef8
push esi
push eax
call fcn.0042fda6
mov esi, dword [sym.imp.OLEAUT32.dll_VariantCopy]
lea edx, [ebp - 0x4c]
push edx
mov byte [ebp - 4], bl
call esi
test eax, eax
jge 0x40d478
push eax
call fcn.0042fd98
lea eax, [ebp - 0x3c]
mov byte [ebp - 4], 8
push eax
call esi
test eax, eax
jge 0x40d48c
push eax
call fcn.0042fd98
mov eax, dword [0x4b8efc]
test eax, eax
jne 0x40d4a4
push 0x80004003
call fcn.0042fd98
mov eax, dword [0x4b8efc]
mov ecx, dword [eax]
lea edx, [ebp - 0x4e]
push edx
push eax
mov esi, eax
call dword [ecx + 0x50]
test eax, eax
jge 0x40d4c0
push 0x4aeef8
push esi
push eax
call fcn.0042fda6
cmp word [ebp - 0x4e], 0
mov edx, dword [ebp - 0x18]
jne 0x40d6a2
mov eax, dword [ebp - 0x2c]
xor ebx, ebx
push ebx
push ebx
mov ecx, dword [eax + 0x1e4]
inc edx
push 0x1004
push ecx
mov dword [ebp - 0x18], edx
call dword [sym.imp.USER32.dll_SendMessageA]
push str.Port
mov edi, eax
mov word [ebp - 0x3c], 8
call fcn.0042fe45
cmp eax, ebx
mov dword [ebp - 0x34], eax
jne 0x40d517
mov edx, str.Port
test edx, edx
je 0x40d517
push 0x8007000e
call fcn.0042fd98
mov eax, dword [0x4b8efc]
mov byte [ebp - 4], 0x11
cmp eax, ebx
jne 0x40d52e
push 0x80004003
call fcn.0042fd98
lea eax, [ebp - 0x3c]
lea ecx, [ebp - 0x68]
push eax
push ecx
mov ecx, dword [0x4b8efc]
call fcn.00410c20
mov esi, eax
mov dword [ebp - 0x14], ebx
cmp word [esi], 8
mov byte [ebp - 4], 0x12
jne 0x40d564
mov edx, dword [esi + 8]
lea ecx, [ebp - 0x14]
push edx
call fcn.004108c0
mov esi, dword [sym.imp.OLEAUT32.dll_VariantCopy]
jmp 0x40d5a3
lea eax, [ebp - 0x4c]
push eax
call dword [sym.imp.OLEAUT32.dll_VariantClear]
push esi
push 8
lea ecx, [ebp - 0x4c]
mov byte [ebp - 4], 0x13
call fcn.00410a20
mov ecx, dword [ebp - 0x44]
push ecx
lea ecx, [ebp - 0x14]
call fcn.004108c0
mov esi, dword [sym.imp.OLEAUT32.dll_VariantCopy]
lea edx, [ebp - 0x4c]
push edx
mov byte [ebp - 4], 0x12
call esi
cmp eax, ebx
jge 0x40d5a3
push eax
call fcn.0042fd98
mov ecx, dword [ebp - 0x14]
mov byte [ebp - 4], 0x14
cmp ecx, ebx
je 0x40d5b5
call fcn.004109f0
jmp 0x40d5b7
xor eax, eax
push eax
lea ecx, [ebp - 0x1c]
call fcn.004811e7
mov ecx, dword [ebp - 0x14]
cmp ecx, ebx
je 0x40d5cf
call fcn.004109a0
mov dword [ebp - 0x14], ebx
lea eax, [ebp - 0x68]
mov byte [ebp - 4], 0x11
push eax
call esi
cmp eax, ebx
jge 0x40d5e3
push eax
call fcn.0042fd98
lea ecx, [ebp - 0x3c]
mov byte [ebp - 4], 8
push ecx
call esi
cmp eax, ebx
jge 0x40d5f7
push eax
call fcn.0042fd98
mov eax, dword [ebp - 0x2c]
mov edx, dword [ebp - 0x1c]
push ebx
push ebx
push ebx
push ebx
push edx
lea esi, [eax + 0x1c8]
push edi
push 1
mov ecx, esi
call fcn.0047b2ce
mov ecx, dword [ebp - 0x1c]
push ecx
call fcn.00423f70
add esp, 4
mov ecx, esi
mov dword [ebp - 0x20], eax
push 0x4ae48c
push 1
push edi
call fcn.0047b39e
mov edx, dword [ebp - 0x20]
mov ecx, esi
push edx
push ebx
push ebx
push ebx
push ebx
push 4
push ebx
push edi
call fcn.0047b350
mov eax, dword [0x4b8efc]
cmp eax, ebx
jne 0x40d65b
push 0x80004003
call fcn.0042fd98
mov eax, dword [0x4b8efc]
mov ecx, dword [eax]
push eax
mov esi, eax
call dword [ecx + 0x90]
cmp eax, ebx
jge 0x40d676
push 0x4aeef8
push esi
push eax
call fcn.0042fda6
call fcn.0048150a
cmp eax, ebx
je 0x40d688
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0x74]
jmp 0x40d68a
xor eax, eax
push ebx
lea ecx, [ebp - 0x20]
push 4
push ecx
push 0x22200c
mov ecx, eax
call fcn.00406050
jmp 0x40d48c
push edx
lea eax, [ebp - 0x24]
push 0x4aee9c
push eax
call fcn.0047a92c
add esp, 0xc
call fcn.0048150a
test eax, eax
je 0x40d6c8
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0x74]
mov esi, eax
jmp 0x40d6ca
xor esi, esi
push 0
lea ecx, [ebp - 0x24]
call fcn.004813de
push eax
lea ecx, [esi + 0x1f4]
call fcn.00404040
lea ecx, [ebp - 0x1c]
mov byte [ebp - 4], 7
call fcn.0048105e
lea ecx, [ebp - 0x28]
mov byte [ebp - 4], 0
call fcn.0048105e
lea ecx, [ebp - 0x24]
mov dword [ebp - 4], 0xffffffff
call fcn.0048105e
mov ecx, dword [ebp - 0xc]
lea esp, [ebp - 0x28c]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret