Function at 0x40e3b0
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 [0x42a038]
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 0x40e5c7
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 0x40e476
push 0x423e40
push 0
call dword [sym.imp.ADVAPI32.dll_RegisterEventSourceW]
mov esi, eax
test esi, esi
je 0x40e5c7
push 0
push 0
push 0
push 0
push 0
push 0xc000000b
jmp 0x40e5b5
mov esi, dword [esp + 0x10]
test esi, esi
je 0x40e44b
mov edi, edi
mov eax, dword [esi + 4]
cmp eax, 2
je 0x40e496
cmp eax, 0x17
je 0x40e496
mov esi, dword [esi + 0x1c]
test esi, esi
jne 0x40e480
jmp 0x40e44b
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 0x40e44b
push dword [esi + 0x10]
push dword [esi + 0x18]
push eax
call dword [sym.imp.WS2_32.dll_bind]
cmp eax, 0xffffffff
je 0x40e44b
cmp dword [esi + 4], 2
jne 0x40e4d4
lea eax, [esp + 0x40]
mov dword [esp + 0x18], 0x10
jmp 0x40e4e0
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 0x40e44b
cmp dword [esi + 4], 2
jne 0x40e506
push dword [esp + 0x42]
jmp 0x40e50a
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 0x40e593
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 0x40e58d
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [esi + 4]
call fcn.00402ec0
test eax, eax
jne 0x40e593
push SysReAllocString
push dword [edi + 0x1a0]
call dword [sym.imp.WS2_32.dll_listen]
cmp eax, 0xffffffff
je 0x40e44b
mov al, 1
mov byte [esp + 0xf], al
jmp 0x40e5e7
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push 0x423e40
push 0
call dword [sym.imp.ADVAPI32.dll_RegisterEventSourceW]
mov esi, eax
test esi, esi
je 0x40e5c7
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 0x40e5e3
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 0x40e5fa
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.0041d60e
mov esp, ebp
pop ebp
ret