Function at 0x457320
Capabilities:
Persist via windows service
Query or enumerate registry value
Set registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4d4af8
mov eax, dword fs:[0]
push eax
sub esp, 0x13c
mov eax, dword [0x5254e0]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
xor ebx, ebx
mov dword [ebp - 0x58], ebx
mov dword [ebp - 0x110], 0x4fca94
mov dword [ebp - 0x100], 0x4e4be8
mov dword [ebp - 4], ebx
lea ecx, [ebp - 0xb0]
mov dword [ebp - 0x58], 1
mov dword [ebp - 0xb0], vtable.std::basic_istream_char__struct_std::char_traits_char__.0
mov dword [ebp - 0x108], ebx
mov dword [ebp - 0x104], ebx
call fcn.00401780
lea eax, [ebp - 0xf8]
push 0x20
lea ecx, [ebp - 0xb0]
mov dword [ebp - 0x78], eax
mov dword [ebp - 0x74], ebx
call fcn.0040b460
mov byte [ebp - 0x70], al
cmp dword [ebp - 0x78], ebx
jne 0x4573cc
mov eax, dword [ebp - 0xa4]
or eax, 4
push ebx
push eax
lea ecx, [ebp - 0xb0]
call fcn.00401640
mov ecx, dword [ebp - 0x100]
mov edx, dword [ecx + 4]
mov dword [ebp + edx - 0x100], vtable.std::basic_ostream_char__struct_std::char_traits_char__.0
mov eax, dword [ebp - 0x110]
mov ecx, dword [eax + 4]
mov dword [ebp + ecx - method.std::basic_iostream_char__struct_std::char_traits_char__.virtual_0], vtable.std::basic_iostream_char__struct_std::char_traits_char__.0
mov dword [ebp - 4], 5
mov edx, dword [ebp - 0x110]
mov eax, dword [edx + 4]
lea ecx, [ebp - 0xf8]
mov dword [ebp + eax - method.std::basic_stringstream_char__struct_std::char_traits_char___class_std::allocator_char__.virtual_0], vtable.std::basic_stringstream_char__struct_std::char_traits_char___class_std::allocator_char__.0
call fcn.0040a560
mov dword [ebp - 0xf8], vtable.std::basic_stringbuf_char__struct_std::char_traits_char___class_std::allocator_char__.0
mov dword [ebp - 0xbc], ebx
mov dword [ebp - 0xb8], ebx
lea ecx, [ebp - 0x54]
push ecx
push 0x20019
push ebx
mov dword [ebp - 4], 7
push str.SYSTEMCurrentControlSetServicesRasManParameters
mov byte [ebp - 4], 8
mov edi, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
push reloc.OLEAUT32.dll_SysReAllocString
mov dword [ebp - 0x54], ebx
call edi
mov esi, eax
cmp esi, ebx
je 0x4574cc
lea edx, [ebp - 0x100]
push str.Open_Registry_Key_failed__
push edx
call fcn.0040b990
add esp, 8
push esi
push eax
call fcn.004589c0
push 0x4faa0c
push eax
call fcn.0040b990
add esp, 8
lea eax, [ebp - 0x30]
push eax
lea ecx, [ebp - 0x110]
call fcn.0041cca0
mov byte [ebp - 4], 9
cmp dword [eax + 0x14], 0x10
jb 0x4574a9
mov ecx, dword [eax]
mov dword [ebp - 0x50], ecx
jmp 0x4574ac
mov dword [ebp - 0x50], eax
lea edx, [ebp - 0x50]
push edx
lea ecx, [ebp - 0x11c]
call fcn.004a936f
push 0x515244
lea eax, [ebp - 0x11c]
push eax
call fcn.004aba66
lea ecx, [ebp - 0x58]
push ecx
mov ecx, dword [ebp - 0x54]
lea edx, [ebp - 0x5c]
push edx
lea eax, [ebp - 0x60]
push eax
push ebx
push str.ProhibitIpSec
push ecx
mov dword [ebp - 0x58], 4
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov esi, eax
cmp esi, ebx
jne 0x45754f
cmp dword [ebp - 0x60], 4
je 0x4575a5
lea eax, [ebp - 0x100]
push str.Query_Registry_Value_failed__
push eax
call fcn.0040b990
add esp, 8
push esi
push eax
call fcn.004589c0
push 0x4faa0c
push eax
call fcn.0040b990
add esp, 8
lea ecx, [ebp - 0x30]
push ecx
lea ecx, [ebp - 0x110]
call fcn.0041cca0
mov byte [ebp - 4], 0xa
cmp dword [eax + 0x14], 0x10
jb 0x4576dd
mov edx, dword [eax]
mov dword [ebp - 0x50], edx
jmp 0x4576e0
cmp esi, 2
jne 0x4574ff
mov edx, dword [ebp - 0x54]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea ecx, [ebp - 0xb0]
mov dword [ebp - 4], 0xffffffff
call fcn.0041cc10
lea eax, [ebp - 0xb0]
push eax
mov dword [ebp - 0xb0], vtable.std::ios_base.0
call fcn.00497fcd
add esp, 4
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.004a91d2
mov esp, ebp
pop ebp
ret
cmp dword [ebp - 0x5c], ebx
je 0x457554
mov edx, dword [ebp - 0x54]
push edx
mov dword [ebp - 0x5c], ebx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea eax, [ebp - 0x54]
push eax
push 0x20006
push ebx
push str.SYSTEMCurrentControlSetServicesRasManParameters
push reloc.OLEAUT32.dll_SysReAllocString
call edi
mov esi, eax
cmp esi, ebx
je 0x457652
cmp esi, 5
jne 0x4575e6
push str.insufficient_privileges_to_set_HKLMSYSTEMCurrentControlSetServicesRasManParametersProhibitIpSec_to_0
lea ecx, [ebp - 0x100]
push ecx
jmp 0x457607
lea edx, [ebp - 0x100]
push str.Open_Registry_Key_failed__
push edx
call fcn.0040b990
add esp, 8
push esi
push eax
call fcn.004589c0
push 0x4faa0c
push eax
call fcn.0040b990
add esp, 8
lea eax, [ebp - 0x30]
push eax
lea ecx, [ebp - 0x110]
call fcn.0041cca0
mov byte [ebp - 4], 0xb
cmp dword [eax + 0x14], 0x10
jb 0x45762f
mov ecx, dword [eax]
mov dword [ebp - 0x50], ecx
jmp 0x457632
mov dword [ebp - 0x50], eax
lea edx, [ebp - 0x50]
push edx
lea ecx, [ebp - 0x134]
call fcn.004a936f
push 0x515244
lea eax, [ebp - 0x134]
push eax
call fcn.004aba66
mov ecx, dword [ebp - 0x58]
mov eax, dword [ebp - 0x54]
push ecx
lea edx, [ebp - 0x5c]
push edx
push 4
push ebx
push str.ProhibitIpSec
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov esi, eax
cmp esi, ebx
je 0x457554
lea ecx, [ebp - 0x100]
push str.Set_Registry_Value_failed__
push ecx
call fcn.0040b990
add esp, 8
push esi
push eax
call fcn.004589c0
push 0x4faa0c
push eax
call fcn.0040b990
add esp, 8
lea edx, [ebp - 0x30]
push edx
lea ecx, [ebp - 0x110]
call fcn.0041cca0
mov byte [ebp - 4], 0xc
cmp dword [eax + 0x14], 0x10
jb 0x4576ba
mov eax, dword [eax]
lea ecx, [ebp - 0x50]
push ecx
lea ecx, [ebp - 0x128]
mov dword [ebp - 0x50], eax
call fcn.004a936f
push 0x515244
lea edx, [ebp - 0x128]
push edx
call fcn.004aba66
mov dword [ebp - 0x50], eax
lea eax, [ebp - 0x50]
push eax
lea ecx, [ebp - 0x140]
call fcn.004a936f
push 0x515244
lea ecx, [ebp - 0x140]
push ecx
call fcn.004aba66
push str.Fix_ProhibitIpSec_failed:
lea ecx, [ebp - 0x30]
call fcn.00406870
mov esi, eax
mov byte [ebp - 4], 0xe
mov ecx, dword [ebp - 0x64]
mov edx, dword [ecx]
mov eax, dword [edx + 4]
call eax
push eax
lea ecx, [ebp - 0x4c]
push esi
push ecx
call fcn.0040b870
add esp, 0xc
push eax
push 0
mov byte [ebp - 4], 0xf
call fcn.00432700
add esp, 8
lea ecx, [ebp - 0x4c]
call fcn.00406910
lea ecx, [ebp - 0x30]
call fcn.00406910
mov eax, 0x457554
ret