Function at 0x40f720
Capabilities:
Access the windows event log
Get local ipv4 addresses
Get socket information
Resolve dns
Set registry value

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff0
sub esp, 0x78
mov eax, dword [section..data]
xor eax, esp
mov dword [esp + 0x74], eax
push esi
push edi
mov edi, ecx
mov dword [esp + 0x18], 0
xorps xmm0, xmm0
mov dword [esp + 0x10], 0
xor al, al
movdqa xmmword [esp + 0x20], xmm0
mov byte [esp + 0xf], al
mov ecx, dword [edi + 0xc]
movdqa xmmword [esp + 0x30], xmm0
mov dword [esp + 0x24], 0
mov dword [esp + 0x28], 1
mov dword [esp + 0x2c], 6
movdqa xmmword [esp + 0x40], xmm0
movdqa xmmword [esp + 0x50], xmm0
movq qword [esp + 0x60], xmm0
mov dword [esp + 0x68], 0
mov eax, dword [ecx]
mov eax, dword [eax]
call eax
test al, al
je 0x40f937
lea eax, [esp + 0x10]
push eax
lea eax, [esp + 0x24]
push eax
push 0
push str.localhost
call dword [sym.imp.WS2_32.dll_getaddrinfo]
test eax, eax
je 0x40f7e6
push 0x421188
push 0
call dword [sym.imp.ADVAPI32.dll_RegisterEventSourceW]
mov esi, eax
test esi, esi
je 0x40f937
push 0
push 0
push 0
push 0
push 0
push 0xc000000b
jmp 0x40f925
mov esi, dword [esp + 0x10]
test esi, esi
je 0x40f7bb
mov edi, edi
mov eax, dword [esi + 4]
cmp eax, 2
je 0x40f806
cmp eax, 0x17
je 0x40f806
mov esi, dword [esi + 0x1c]
test esi, esi
jne 0x40f7f0
jmp 0x40f7bb
push dword [esi + 0xc]
push dword [esi + 8]
push eax
call dword [sym.imp.WS2_32.dll_socket]
mov dword [edi + 0x1a0], eax
cmp eax, 0xffffffff
je 0x40f7bb
push dword [esi + 0x10]
push dword [esi + 0x18]
push eax
call dword [sym.imp.WS2_32.dll_bind]
cmp eax, 0xffffffff
je 0x40f7bb
cmp dword [esi + 4], 2
jne 0x40f844
lea eax, [esp + 0x40]
mov dword [esp + 0x18], 0x10
jmp 0x40f850
lea eax, [esp + 0x50]
mov dword [esp + 0x18], 0x1c
lea ecx, [esp + 0x18]
push ecx
push eax
push dword [edi + 0x1a0]
call dword [sym.imp.WS2_32.dll_getsockname]
test eax, eax
jne 0x40f7bb
cmp dword [esi + 4], 2
jne 0x40f876
push dword [esp + 0x42]
jmp 0x40f87a
push dword [esp + 0x52]
call dword [sym.imp.WS2_32.dll_ntohs]
movzx eax, ax
mov dword [esp + 0x1c], eax
lea eax, [esp + 0x14]
push eax
push 0x20106
push 0
push str.SoftwareIntelServicesDAL
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x40f903
push 4
lea eax, [esp + 0x20]
push eax
push 4
push 0
push str.JHI_SERVICE_PORT
push dword [esp + 0x28]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
push dword [esp + 0x14]
test eax, eax
jne 0x40f8fd
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [esi + 4]
call fcn.00403080
test eax, eax
jne 0x40f903
push SysReAllocString
push dword [edi + 0x1a0]
call dword [sym.imp.WS2_32.dll_listen]
cmp eax, 0xffffffff
je 0x40f7bb
mov al, 1
mov byte [esp + 0xf], al
jmp 0x40f957
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push 0x421188
push 0
call dword [sym.imp.ADVAPI32.dll_RegisterEventSourceW]
mov esi, eax
test esi, esi
je 0x40f937
push 0
push 0
push 0
push 0
push 0
push 0xc0000007
push 0
push 1
push esi
call dword [sym.imp.ADVAPI32.dll_ReportEventW]
push esi
call dword [sym.imp.ADVAPI32.dll_DeregisterEventSource]
mov eax, dword [edi + 0x1a0]
cmp eax, 0xffffffff
je 0x40f953
push eax
call dword [sym.imp.WS2_32.dll_closesocket]
mov dword [edi + 0x1a0], 0xffffffff
mov al, byte [esp + 0xf]
mov ecx, dword [esp + 0x10]
test ecx, ecx
je 0x40f96a
push ecx
call dword [sym.imp.WS2_32.dll_freeaddrinfo]
mov al, byte [esp + 0xf]
mov ecx, dword [esp + 0x7c]
pop edi
pop esi
xor ecx, esp
call fcn.0041b5b1
mov esp, ebp
pop ebp
ret