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

Disassembly:
mov r11, rsp
push rbp
push rsi
lea rbp, [r11 - 0x5f]
sub rsp, 0xe8
mov rax, qword [0x7ff6d8eee010]
xor rax, rsp
mov qword [rbp + 0x37], rax
xor eax, eax
mov qword [r11 + 0x10], rbx
mov qword [r11 + 0x18], rdi
xorps xmm0, xmm0
xorps xmm1, xmm1
mov qword [rbp - 9], rax
mov dword [rbp - 1], eax
mov rdi, rcx
mov rcx, qword [rcx + 0x18]
xor sil, sil
mov qword [r11 - 0x18], r14
xor r14d, r14d
mov dword [rbp - 0x31], r14d
mov qword [rbp - 0x41], r14
mov qword [rbp + 7], r14
movdqu xmmword [rbp + 0x17], xmm0
mov dword [rbp + 0xf], 1
movdqu xmmword [rbp + 0x27], xmm1
mov dword [rbp + 0x13], 6
movups xmmword [rbp - 0x29], xmm0
movups xmmword [rbp - 0x19], xmm1
mov rax, qword [rcx]
mov rax, qword [rax]
call qword [0x7ff6d8ec9610]
test al, al
jne 0x7ff6d8e7c383
lea rcx, str.dispatcher_init_failed_n
call fcn.7ff6d8e63170
jmp 0x7ff6d8e7c6af
lea r9, [rbp - 0x41]
xor edx, edx
lea r8, [rbp + 7]
lea rcx, str.localhost
call qword [sym.imp.WS2_32.dll_getaddrinfo]
test eax, eax
je 0x7ff6d8e7c3d0
lea rcx, str.failed_to_get_adderss_info_n
call fcn.7ff6d8e63170
lea rdx, str.IntelDalJhi
xor ecx, ecx
call qword [sym.imp.ADVAPI32.DLL_RegisterEventSourceW]
mov rbx, rax
test rax, rax
je 0x7ff6d8e7c6af
mov r9d, 0xc000000b
jmp 0x7ff6d8e7c67c
mov rbx, qword [rbp - 0x41]
test rbx, rbx
jne 0x7ff6d8e7c3e2
lea rcx, str.no_adderss_info_recieved_n
jmp 0x7ff6d8e7c3a5
mov ecx, dword [rbx + 4]
cmp ecx, 2
je 0x7ff6d8e7c401
cmp ecx, 0x17
je 0x7ff6d8e7c401
mov rbx, qword [rbx + 0x28]
test rbx, rbx
jne 0x7ff6d8e7c3e2
lea rcx, str.failed_to_find_IPV4_or_IPV6_address_n
jmp 0x7ff6d8e7c3a5
mov r8d, dword [rbx + 0xc]
mov edx, dword [rbx + 8]
call qword [sym.imp.WS2_32.dll_socket]
mov qword [rdi + 0x1b8], rax
cmp rax, 0xffffffffffffffff
jne 0x7ff6d8e7c434
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov edx, eax
lea rcx, str.socket___failed_with_error:__d_n
call fcn.7ff6d8e63170
jmp 0x7ff6d8e7c3aa
mov r8d, dword [rbx + 0x10]
mov rcx, rax
mov rdx, qword [rbx + 0x20]
call qword [sym.imp.WS2_32.dll_bind]
cmp eax, 0xffffffff
jne 0x7ff6d8e7c463
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov edx, eax
lea rcx, str.bind___failed_with_error:__d_n
call fcn.7ff6d8e63170
jmp 0x7ff6d8e7c3aa
cmp dword [rbx + 4], 2
lea r8, [rbp - 0x31]
mov rcx, qword [rdi + 0x1b8]
mov eax, 0x10
mov edx, 0x1c
cmovne eax, edx
lea rdx, [rbp - 0x19]
mov dword [rbp - 0x31], eax
lea rax, [rbp - 0x29]
cmove rdx, rax
call qword [sym.imp.WS2_32.dll_getsockname]
test eax, eax
je 0x7ff6d8e7c4b1
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov edx, eax
lea rcx, str.getsockname___failed_with_error:__d_n
call fcn.7ff6d8e63170
jmp 0x7ff6d8e7c3aa
cmp dword [rbx + 4], 2
movzx ecx, word [rbp - 0x27]
je 0x7ff6d8e7c4bf
movzx ecx, word [rbp - 0x17]
call qword [sym.imp.WS2_32.dll_ntohs]
movzx eax, ax
mov r9d, 0x20106
mov dword [rbp - 0x39], eax
lea rdx, str.SYSTEMCurrentControlSetServicesjhi_service
lea rax, [rbp - 0x49]
xor r8d, r8d
mov rcx, 0xffffffff80000002
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.DLL_RegOpenKeyExW]
test eax, eax
je 0x7ff6d8e7c508
mov edx, eax
lea rcx, str.Unable_to_open_Registry__0x_x__n
call fcn.7ff6d8e631b0
jmp 0x7ff6d8e7c653
mov rcx, qword [rbp - 0x49]
lea rax, [rbp - 0x39]
mov dword [rsp + 0x28], 4
lea rdx, str.JHI_SERVICE_PORT
mov r9d, 4
mov qword [rsp + 0x20], rax
xor r8d, r8d
call qword [sym.imp.ADVAPI32.DLL_RegSetValueExW]
test eax, eax
jne 0x7ff6d8e7c63d
lea rcx, str.write_port_number_to_registry_success_n
call fcn.7ff6d8e631b0
mov rcx, qword [rbp - 0x49]
call qword [sym.imp.ADVAPI32.DLL_RegCloseKey]
mov eax, dword [rbx + 4]
lea rdx, str.SYSTEMCurrentControlSetServicesjhi_service
mov dword [rbp - 0x39], eax
mov r9d, 0x20106
lea rax, [rbp - 0x49]
xor r8d, r8d
mov rcx, 0xffffffff80000002
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.DLL_RegOpenKeyExW]
test eax, eax
je 0x7ff6d8e7c5a1
call qword [sym.imp.KERNEL32.DLL_GetLastError]
mov edx, eax
lea rcx, str.Unable_to_open_Registry__0x_x__n
call fcn.7ff6d8e631b0
lea rcx, str.failed_to_write_address_type_at_registry.
jmp 0x7ff6d8e7c65a
mov rcx, qword [rbp - 0x49]
lea rax, [rbp - 0x39]
mov dword [rsp + 0x28], 4
lea rdx, str.JHI_ADDRESS_TYPE
mov r9d, 4
mov qword [rsp + 0x20], rax
xor r8d, r8d
call qword [sym.imp.ADVAPI32.DLL_RegSetValueExW]
test eax, eax
jne 0x7ff6d8e7c61e
lea rcx, str.write_address_to_registry_success_n
call fcn.7ff6d8e631b0
mov rcx, qword [rbp - 0x49]
call qword [sym.imp.ADVAPI32.DLL_RegCloseKey]
mov rcx, qword [rdi + 0x1b8]
mov edx, 0x7fffffff
call qword [sym.imp.WS2_32.dll_listen]
cmp eax, 0xffffffff
jne 0x7ff6d8e7c616
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov edx, eax
lea rcx, str.listen_failed_with_error:__d_n
call fcn.7ff6d8e63170
jmp 0x7ff6d8e7c3aa
mov sil, 1
jmp 0x7ff6d8e7c6cd
lea rcx, str.write_address_to_registry_failed_n
call fcn.7ff6d8e631b0
mov rcx, qword [rbp - 0x49]
call qword [sym.imp.ADVAPI32.DLL_RegCloseKey]
lea rcx, str.failed_to_write_address_type_at_registry.
jmp 0x7ff6d8e7c65a
lea rcx, str.write_port_number_to_registry_failed_n
call fcn.7ff6d8e631b0
mov rcx, qword [rbp - 0x49]
call qword [sym.imp.ADVAPI32.DLL_RegCloseKey]
lea rcx, str.failed_to_write_service_port_at_registry.
call fcn.7ff6d8e63170
lea rdx, str.IntelDalJhi
xor ecx, ecx
call qword [sym.imp.ADVAPI32.DLL_RegisterEventSourceW]
mov rbx, rax
test rax, rax
je 0x7ff6d8e7c6af
mov r9d, 0xc0000007
mov qword [rsp + 0x40], r14
xor r8d, r8d
mov qword [rsp + 0x38], r14
mov rcx, rbx
mov dword [rsp + 0x30], r14d
mov word [rsp + 0x28], r14w
lea edx, [r8 + 1]
mov qword [rsp + 0x20], r14
call qword [sym.imp.ADVAPI32.DLL_ReportEventW]
mov rcx, rbx
call qword [sym.imp.ADVAPI32.DLL_DeregisterEventSource]
mov rcx, qword [rdi + 0x1b8]
cmp rcx, 0xffffffffffffffff
je 0x7ff6d8e7c6cd
call qword [sym.imp.WS2_32.dll_closesocket]
mov qword [rdi + 0x1b8], 0xffffffffffffffff
mov rcx, qword [rbp - 0x41]
mov r14, qword [rsp + 0xe0]
mov rdi, qword [rsp + 0x110]
mov rbx, qword [rsp + 0x108]
test rcx, rcx
je 0x7ff6d8e7c6f4
call qword [sym.imp.WS2_32.dll_freeaddrinfo]
movzx eax, sil
mov rcx, qword [rbp + 0x37]
xor rcx, rsp
call fcn.7ff6d8e98b50
add rsp, 0xe8
pop rsi
pop rbp
ret