Function at 0x406040
Capabilities:
Contain obfuscated stackstrings
Query or enumerate registry value
Rebuild import table

Disassembly:
sub esp, 0x9c
push ebx
mov cl, 0x5c
mov al, 0x72
mov bl, 0x6e
mov dl, 0x74
push esi
push edi
mov dword [esp + 0xa4], 4
mov byte [esp + 0x58], 0x53
mov byte [esp + 0x59], 0x59
mov byte [esp + 0x5a], 0x53
mov byte [esp + 0x5b], 0x54
mov byte [esp + 0x5c], 0x45
mov byte [esp + 0x5d], 0x4d
mov byte [esp + 0x5e], cl
mov byte [esp + 0x5f], 0x43
mov byte [esp + 0x60], 0x75
mov byte [esp + 0x61], al
mov byte [esp + 0x62], al
mov byte [esp + 0x63], 0x65
mov byte [esp + 0x64], bl
mov byte [esp + 0x65], dl
mov byte [esp + 0x66], 0x43
mov byte [esp + 0x67], 0x6f
mov byte [esp + 0x68], bl
mov byte [esp + 0x69], dl
mov byte [esp + 0x6a], al
mov byte [esp + 0x6b], 0x6f
mov byte [esp + 0x6c], 0x6c
mov byte [esp + 0x6d], 0x53
mov byte [esp + 0x6e], 0x65
mov byte [esp + 0x6f], dl
mov byte [esp + 0x70], cl
mov byte [esp + 0x71], 0x43
mov byte [esp + 0x72], 0x6f
mov byte [esp + 0x73], bl
mov byte [esp + 0x74], dl
mov byte [esp + 0x75], al
mov byte [esp + 0x76], 0x6f
mov byte [esp + 0x77], 0x6c
mov byte [esp + 0x78], cl
mov byte [esp + 0x79], 0x54
mov byte [esp + 0x7a], 0x65
mov byte [esp + 0x7b], al
mov byte [esp + 0x7c], 0x6d
mov byte [esp + 0x7d], 0x69
mov byte [esp + 0x7e], bl
mov byte [esp + 0x7f], 0x61
mov byte [esp + 0x80], 0x6c
mov byte [esp + 0x81], 0x20
mov byte [esp + 0x82], 0x53
mov byte [esp + 0x83], 0x65
mov byte [esp + 0x84], al
mov byte [esp + 0x85], 0x76
mov byte [esp + 0x86], 0x65
mov byte [esp + 0x87], al
mov byte [esp + 0x88], cl
mov byte [esp + 0x89], 0x57
mov byte [esp + 0x8a], 0x64
mov byte [esp + 0x8b], 0x73
mov byte [esp + 0x8c], cl
mov byte [esp + 0x8d], al
mov byte [esp + 0x8e], 0x64
mov byte [esp + 0x8f], 0x70
mov byte [esp + 0x90], 0x77
mov byte [esp + 0x91], 0x64
mov byte [esp + 0x92], cl
mov byte [esp + 0x93], 0x54
mov byte [esp + 0x94], 0x64
mov byte [esp + 0x95], 0x73
mov byte [esp + 0x96], cl
mov byte [esp + 0x97], dl
mov byte [esp + 0x98], 0x63
mov byte [esp + 0x99], 0x70
mov byte [esp + 0x9a], cl
mov byte [esp + 0x9b], 0
mov byte [esp + 0x10], 0x53
mov byte [esp + 0x11], 0x59
mov byte [esp + 0x12], 0x53
mov byte [esp + 0x13], 0x54
mov byte [esp + 0x14], 0x45
push str.RegCreateKeyA
push str.ADVAPI32.dll
mov byte [esp + 0x1d], 0x4d
mov byte [esp + 0x1e], cl
mov byte [esp + 0x1f], 0x43
mov byte [esp + 0x20], 0x75
mov byte [esp + 0x21], al
mov byte [esp + 0x22], al
mov byte [esp + 0x23], 0x65
mov byte [esp + 0x24], bl
mov byte [esp + 0x25], dl
mov byte [esp + 0x26], 0x43
mov byte [esp + 0x27], 0x6f
mov byte [esp + 0x28], bl
mov byte [esp + 0x29], dl
mov byte [esp + 0x2a], al
mov byte [esp + 0x2b], 0x6f
mov byte [esp + 0x2c], 0x6c
mov byte [esp + 0x2d], 0x53
mov byte [esp + 0x2e], 0x65
mov byte [esp + 0x2f], dl
mov byte [esp + 0x30], cl
mov byte [esp + 0x31], 0x43
mov byte [esp + 0x32], 0x6f
mov byte [esp + 0x33], bl
mov byte [esp + 0x34], dl
mov byte [esp + 0x35], al
mov byte [esp + 0x36], 0x6f
mov byte [esp + 0x37], 0x6c
mov byte [esp + 0x38], cl
mov byte [esp + 0x39], 0x54
mov byte [esp + 0x3a], 0x65
mov byte [esp + 0x3b], al
mov byte [esp + 0x3c], 0x6d
mov byte [esp + 0x3d], 0x69
mov byte [esp + 0x3e], bl
mov byte [esp + 0x3f], 0x61
mov byte [esp + 0x40], 0x6c
mov byte [esp + 0x41], 0x20
mov byte [esp + 0x42], 0x53
mov byte [esp + 0x43], 0x65
mov byte [esp + 0x44], al
mov byte [esp + 0x45], 0x76
mov byte [esp + 0x46], 0x65
mov byte [esp + 0x47], al
mov byte [esp + 0x48], cl
mov byte [esp + 0x49], 0x57
mov byte [esp + 0x4a], 0x69
mov byte [esp + 0x4b], bl
mov byte [esp + 0x4c], 0x53
mov byte [esp + 0x4d], dl
mov byte [esp + 0x4e], 0x61
mov byte [esp + 0x4f], dl
mov byte [esp + 0x50], 0x69
mov byte [esp + 0x51], 0x6f
mov byte [esp + 0x52], bl
mov byte [esp + 0x53], 0x73
mov byte [esp + 0x54], cl
mov byte [esp + 0x55], 0x52
mov byte [esp + 0x56], 0x44
mov byte [esp + 0x57], 0x50
mov byte [esp + 0x58], 0x2d
mov byte [esp + 0x59], 0x54
mov byte [esp + 0x5a], 0x63
mov byte [esp + 0x5b], 0x70
mov byte [esp + 0x5c], cl
mov byte [esp + 0x5d], 0
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov esi, eax
lea eax, [esp + 0xc]
lea ecx, [esp + 0x58]
push eax
push ecx
push getsockname
call esi
lea edx, [esp + 0xa4]
lea eax, [esp + 0xa0]
push edx
push eax
mov edx, dword [esp + 0x14]
mov edi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
lea ecx, [esp + 0xa4]
push ecx
push 0
push str.PortNumber
push edx
call edi
mov ebx, dword [esp + 0xa0]
test eax, eax
je 0x406398
mov ebx, dword [esp + 0x9c]
lea eax, [esp + 0xc]
lea ecx, [esp + 0x10]
push eax
push ecx
push getsockname
call esi
lea edx, [esp + 0xa4]
lea eax, [esp + 0xa0]
push edx
mov edx, dword [esp + 0x10]
lea ecx, [esp + 0xa0]
push eax
push ecx
push 0
push str.PortNumber
push edx
call edi
mov esi, dword [esp + 0xa0]
test eax, eax
je 0x4063e1
mov esi, dword [esp + 0x9c]
mov eax, dword [esp + 0xc]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp ebx, esi
jne 0x406413
mov ecx, dword [esp + 0xac]
push ebx
push 0x413138
push ecx
call dword [sym.imp.MSVCRT.dll_sprintf]
add esp, 0xc
pop edi
pop esi
pop ebx
add esp, 0x9c
ret 4
mov edx, dword [esp + 0xac]
push esi
push ebx
push str._d__d
push edx
call dword [sym.imp.MSVCRT.dll_sprintf]
add esp, 0x10
pop edi
pop esi
pop ebx
add esp, 0x9c
ret 4