Function at 0x14003ea97
Capabilities:
Resolve dns

Disassembly:
push rbp
sub rsp, 0xa90
lea rbp, [rsp + 0x50]
mov qword [rbp + 0x2a0], rdi
mov qword [rbp + 0x298], rsi
mov qword [rbp + 0x290], rbx
mov qword [rbp + 0x78], rcx
mov qword [rbp + 0x80], rdx
mov qword [rbp + 0xa50], rcx
mov qword [rbp + 0xa58], rdx
mov rax, qword [0x1400e0a40]
xor rax, rbp
mov qword [rbp + 0xa30], rax
mov dword [rbp], 0
mov dword [rbp + 4], 0
lea rax, [rbp + 0x2a8]
mov edx, 0
mov ecx, 0x10e
mov rdi, rax
mov eax, edx
and eax, 0xffff
mov ah, al
mov edx, eax
shl eax, 0x10
or eax, edx
mov esi, ecx
shr rcx, 2
rep stosd dword [rdi], eax
mov ecx, esi
and ecx, 3
rep stosb byte [rdi], al
lea rax, [0x1400b4714]
mov qword [rbp + 0x88], rax
call sub.api_ms_win_crt_runtime_l1_1_0.dll__getpid
mov dword [rbp + 8], eax
lea rax, [rbp + 0x7d2]
lea rdx, str.hostIP_d.out
mov ecx, dword [rbp + 8]
mov dword [rbp + 0x1e0], ecx
mov rcx, rax
mov eax, dword [rbp + 0x1e0]
mov r8d, eax
call fcn.1400012e0
mov dword [rbp + 0xc], eax
lea rax, [rbp + 0x3b6]
mov rdx, qword [rbp + 0xa50]
mov rdx, qword [rdx + 0x40]
mov rcx, rax
call sub.api_ms_win_crt_string_l1_1_0.dll_strcpy
mov qword [rbp + 0x90], rax
lea rax, [rbp + 0x3b6]
lea rdx, str.scratch
mov rcx, rax
call sub.api_ms_win_crt_string_l1_1_0.dll_strcat
mov qword [rbp + 0x98], rax
lea rax, [rbp + 0x3b6]
lea rdx, [0x1400b473c]
mov rcx, rax
call sub.api_ms_win_crt_string_l1_1_0.dll_strcat
mov qword [rbp + 0xa0], rax
lea rax, [rbp + 0x3b6]
lea rdx, [rbp + 0x7d2]
mov rcx, rax
call sub.api_ms_win_crt_string_l1_1_0.dll_strcat
mov qword [rbp + 0xa8], rax
mov rax, qword [rbp + 0xa50]
lea rdx, [rbp + 0x3b6]
lea rcx, [rbp + 0xb0]
lea rbx, [rbp + 0xb8]
mov qword [rbp + 0x1e8], rcx
mov rcx, rax
mov rax, qword [rbp + 0x1e8]
mov r8, rax
mov r9, rbx
call fcn.140025b04
mov dword [rbp + 0x10], eax
mov eax, dword [rbp + 0x10]
mov dword [rbp], eax
mov eax, dword [rbp]
test eax, eax
je 0x14003ec43
mov rax, qword [rbp + 0xa50]
lea rdx, str.resolveIP:_unable_to_open_scratch_file
mov rcx, rax
call fcn.14002d658
mov dword [rbp + 0x14], eax
jmp 0x14003f4f3
lea rax, str._CV_VAL_
mov rcx, rax
call sub.api_ms_win_crt_string_l1_1_0.dll_strlen
mov qword [rbp + 0xc0], rax
mov rax, qword [rbp + 0xc0]
mov qword [rbp + 0xc8], rax
mov rax, qword [rbp + 0xa50]
mov rax, qword [rax + 8]
mov rdx, qword [rbp + 0xb8]
lea rcx, str._CV_VAL_
mov rbx, qword [rbp + 0xc8]
mov qword [rbp + 0x1f0], rcx
mov rcx, rax
mov rax, qword [rbp + 0x1f0]
mov r8, rax
mov r9, rbx
call sub.oracore.dll_lfiwr
mov qword [rbp + 0xd0], rax
mov rax, qword [rbp + 0xa58]
mov rdx, qword [rbp + 0x88]
mov rcx, qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_strtok]
mov qword [rbp + 0x1f8], rcx
mov rcx, rax
mov rax, qword [rbp + 0x1f8]
call rax
mov qword [rbp + 0xd8], rax
mov rax, qword [rbp + 0xd8]
mov qword [rbp + 0xe0], rax
mov rax, qword [rbp + 0xe0]
test rax, rax
je 0x14003f2a4
lea rax, [rbp + 0x6c4]
mov edx, 0
mov ecx, 0x10e
mov qword [rbp + 0x200], rcx
mov rcx, rax
mov rax, qword [rbp + 0x200]
mov r8, rax
call sub.VCRUNTIME140.dll_memset
mov qword [rbp + 0xe8], rax
lea rax, [rbp + 0xf8]
mov edx, 0
mov ecx, gethostbyname
mov qword [rbp + 0x208], rcx
mov rcx, rax
mov rax, qword [rbp + 0x208]
mov r8, rax
call sub.VCRUNTIME140.dll_memset
mov qword [rbp + 0x128], rax
mov dword [rbp + 0xf8], 2
mov rax, qword [rbp + 0xe0]
mov edx, 0
lea rcx, [rbp + 0xf8]
lea rbx, [rbp + 0x138]
mov rsi, qword [sym.imp.WS2_32.dll_getaddrinfo]
mov qword [rbp + 0x210], rcx
mov rcx, rax
mov rax, qword [rbp + 0x210]
mov r8, rax
mov r9, rbx
call rsi
mov dword [rbp + 0x1c], eax
mov eax, dword [rbp + 0x1c]
mov dword [rbp + 0x24], eax
mov eax, dword [rbp + 0x24]
mov dword [rbp + 0x28], eax
mov eax, dword [rbp + 0x24]
test eax, eax
je 0x14003ee1f
mov rax, qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__errno]
call rax
mov qword [rbp + 0x140], rax
mov rax, qword [rbp + 0xa50]
lea rdx, [0x1400c103c]
mov rcx, qword [rbp + 0x140]
mov ecx, dword [rcx]
mov rbx, qword [rbp + 0xe0]
lea rsi, str.CVU00574
mov qword [rsp + 0x20], rsi
mov qword [rsp + 0x28], 0
mov dword [rbp + 0x218], ecx
mov rcx, rax
mov eax, dword [rbp + 0x218]
mov r8d, eax
mov r9, rbx
call fcn.14002cda8
mov dword [rbp + 0x34], eax
mov dword [rbp + 4], 1
jmp 0x14003f181
mov rax, qword [rbp + 0xe0]
mov rdx, qword [rbp + 0xe0]
mov rcx, rax
call sub.oracore.dll_lstlo
mov qword [rbp + 0x148], rax
mov rax, qword [rbp + 0xe0]
lea rdx, str.localhost
mov rcx, rax
call sub.api_ms_win_crt_string_l1_1_0.dll_strcmp
mov dword [rbp + 0x38], eax
mov eax, dword [rbp + 0x38]
test eax, eax
jne 0x14003ee7b
lea rax, [rbp + 0x5b6]
mov rdx, qword [rbp + 0xe0]
mov rcx, rax
call sub.api_ms_win_crt_string_l1_1_0.dll_strcpy
mov qword [rbp + 0x150], rax
jmp 0x14003ee9c
lea rax, [rbp + 0x5b6]
mov rdx, qword [rbp + 0x138]
mov rdx, qword [rdx + 0x18]
mov rcx, rax
call sub.api_ms_win_crt_string_l1_1_0.dll_strcpy
mov qword [rbp + 0x158], rax
mov rax, qword [rbp + 0x138]
mov rdx, qword [sym.imp.WS2_32.dll_freeaddrinfo]
mov rcx, rax
call rdx
lea rax, [rbp + 0xf8]
mov edx, 0
mov ecx, gethostbyname
mov qword [rbp + 0x220], rcx
mov rcx, rax
mov rax, qword [rbp + 0x220]
mov r8, rax
call sub.VCRUNTIME140.dll_memset
mov qword [rbp + 0x170], rax
mov dword [rbp + 0xfc], 0
mov dword [rbp + 0x100], 1
lea rax, [rbp + 0x5b6]
mov edx, 0
lea rcx, [rbp + 0xf8]
lea rbx, [rbp + 0x138]
mov rsi, qword [sym.imp.WS2_32.dll_getaddrinfo]
mov qword [rbp + 0x228], rcx
mov rcx, rax
mov rax, qword [rbp + 0x228]
mov r8, rax
mov r9, rbx
call rsi
mov dword [rbp + 0x50], eax
mov eax, dword [rbp + 0x50]
mov dword [rbp + 0x5c], eax
mov eax, dword [rbp + 0x5c]
mov dword [rbp + 0x28], eax
mov eax, dword [rbp + 0x5c]
test eax, eax
je 0x14003efb0
mov rax, qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__errno]
call rax
mov qword [rbp + 0x180], rax
mov rax, qword [rbp + 0xa50]
lea rdx, [0x1400c103c]
mov rcx, qword [rbp + 0x180]
mov ecx, dword [rcx]
lea rbx, [rbp + 0x5b6]
lea rsi, str.CVU00575
mov qword [rsp + 0x20], rsi
mov qword [rsp + 0x28], 0
mov dword [rbp + 0x230], ecx
mov rcx, rax
mov eax, dword [rbp + 0x230]
mov r8d, eax
mov r9, rbx
call fcn.14002cda8
mov dword [rbp + 0x68], eax
mov dword [rbp + 4], 1
jmp 0x14003f181
mov rax, qword [rbp + 0x138]
mov qword [rbp + 0x188], rax
mov rax, qword [rbp + 0x188]
test rax, rax
jne 0x14003efe3
jmp 0x14003f16e
mov rax, qword [rbp + 0x188]
mov rax, qword [rax + 0x28]
mov qword [rbp + 0x188], rax
jmp 0x14003efbe
mov rax, qword [rbp + 0x188]
mov eax, dword [rax + 4]
cmp eax, 2
jne 0x14003f0b2
mov rax, qword [rbp + 0x188]
mov rax, qword [rax + 0x20]
mov qword [rbp + 0x190], rax
mov eax, 2
mov rdx, qword [rbp + 0x190]
lea rdx, [rdx + 4]
lea rcx, [rbp + 0x9d2]
mov ebx, 0x16
mov qword [rbp + 0x238], rcx
mov ecx, eax
mov rax, qword [rbp + 0x238]
mov r8, rax
mov r9, rbx
call sub.WS2_32.dll_inet_ntop
mov qword [rbp + 0x198], rax
lea rax, [rbp + 0x6c4]
lea rdx, [rbp + 0x9d2]
mov rcx, rax
call sub.VCRUNTIME140.dll_strstr
mov qword [rbp + 0x1b0], rax
mov rax, qword [rbp + 0x1b0]
test rax, rax
jne 0x14003efcf
lea rax, [rbp + 0x6c4]
lea rdx, [0x1400b0470]
mov rcx, rax
call sub.api_ms_win_crt_string_l1_1_0.dll_strcat
mov qword [rbp + 0x1c0], rax
lea rax, [rbp + 0x6c4]
lea rdx, [rbp + 0x9d2]
mov rcx, rax
call sub.api_ms_win_crt_string_l1_1_0.dll_strcat
mov qword [rbp + 0x1d0], rax
jmp 0x14003efcf
mov rax, qword [rbp + 0x188]
mov rax, qword [rax + 0x20]
mov qword [rbp + 0x1a0], rax
mov eax, 0x17
mov rdx, qword [rbp + 0x1a0]
lea rdx, [rdx + 8]
lea rcx, [rbp + 0x9e8]
mov ebx, 0x41
mov qword [rbp + 0x240], rcx
mov ecx, eax
mov rax, qword [rbp + 0x240]
mov r8, rax
mov r9, rbx
call sub.WS2_32.dll_inet_ntop
mov qword [rbp + 0x1a8], rax
lea rax, [rbp + 0x6c4]
lea rdx, [rbp + 0x9e8]
mov rcx, rax
call sub.VCRUNTIME140.dll_strstr
mov qword [rbp + 0x1b8], rax
mov rax, qword [rbp + 0x1b8]
test rax, rax
jne 0x14003efcf
lea rax, [rbp + 0x6c4]
lea rdx, [0x1400b0470]
mov rcx, rax
call sub.api_ms_win_crt_string_l1_1_0.dll_strcat
mov qword [rbp + 0x1c8], rax
lea rax, [rbp + 0x6c4]
lea rdx, [rbp + 0x9e8]
mov rcx, rax
call sub.api_ms_win_crt_string_l1_1_0.dll_strcat
mov qword [rbp + 0x1d8], rax
jmp 0x14003efcf
mov rax, qword [rbp + 0x138]
mov rdx, qword [sym.imp.WS2_32.dll_freeaddrinfo]
mov rcx, rax
call rdx
lea rax, [rbp + 0x2a8]
mov edx, 0x10e
lea rcx, str._s_s_s_d_s_s_s
lea rbx, str._HOST_INFO_
mov rsi, qword [rbp + 0xe0]
mov qword [rsp + 0x20], rsi
lea rsi, str.__STATUS_
mov qword [rsp + 0x28], rsi
mov esi, dword [rbp + 4]
mov dword [rsp + 0x30], esi
lea rsi, str.__IP_
mov qword [rsp + 0x38], rsi
lea rsi, [rbp + 0x6c4]
mov qword [rsp + 0x40], rsi
lea rsi, str.___HOST_INFO_
mov qword [rsp + 0x48], rsi
mov qword [rbp + 0x248], rcx
mov rcx, rax
mov rax, qword [rbp + 0x248]
mov r8, rax
mov r9, rbx
call fcn.14001428c
mov dword [rbp + 0x44], eax
lea rax, [rbp + 0x2a8]
mov rcx, rax
call sub.api_ms_win_crt_string_l1_1_0.dll_strlen
mov qword [rbp + 0x160], rax
mov rax, qword [rbp + 0x160]
mov qword [rbp + 0xc8], rax
mov rax, qword [rbp + 0xa50]
mov rax, qword [rax + 8]
mov rdx, qword [rbp + 0xb8]
lea rcx, [rbp + 0x2a8]
mov rbx, qword [rbp + 0xc8]
mov qword [rbp + 0x250], rcx
mov rcx, rax
mov rax, qword [rbp + 0x250]
mov r8, rax
mov r9, rbx
call sub.oracore.dll_lfiwr
mov qword [rbp + 0x168], rax
mov eax, 0
mov rdx, qword [rbp + 0x88]
mov rcx, qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_strtok]
mov qword [rbp + 0x258], rcx
mov rcx, rax
mov rax, qword [rbp + 0x258]
call rax
mov qword [rbp + 0x178], rax
mov rax, qword [rbp + 0x178]
mov qword [rbp + 0xe0], rax
jmp 0x14003ece7
lea rax, str.__CV_VAL_
mov rcx, rax
call sub.api_ms_win_crt_string_l1_1_0.dll_strlen
mov qword [rbp + 0xf0], rax
mov rax, qword [rbp + 0xf0]
mov qword [rbp + 0xc8], rax
mov rax, qword [rbp + 0xa50]
mov rax, qword [rax + 8]
mov rdx, qword [rbp + 0xb8]
lea rcx, str.__CV_VAL_
mov rbx, qword [rbp + 0xc8]
mov qword [rbp + 0x260], rcx
mov rcx, rax
mov rax, qword [rbp + 0x260]
mov r8, rax
mov r9, rbx
call sub.oracore.dll_lfiwr
mov qword [rbp + 0x130], rax
mov rax, qword [rbp + 0xa50]
mov rax, qword [rax + 8]
mov rdx, qword [rbp + 0xb8]
mov rcx, rax
call sub.oracore.dll_lfiflu
mov dword [rbp + 0x20], eax
mov rax, qword [rbp + 0xa50]
mov rdx, qword [rbp + 0xb0]
mov rcx, qword [rbp + 0xb8]
mov qword [rbp + 0x268], rcx
mov rcx, rax
mov rax, qword [rbp + 0x268]
mov r8, rax
call fcn.140025a4f
mov dword [rbp + 0x2c], eax
mov qword [rbp + 0xb8], 0
mov rax, qword [rbp + 0xa50]
mov edx, dword [rbp + 4]
mov rcx, rax
call fcn.14002483b
mov dword [rbp + 0x30], eax
mov eax, dword [rbp + 0x30]
test eax, eax
je 0x14003f39e
mov rax, qword [rbp + 0xa50]
lea rdx, str.resolveIP:_unable_to_wrap_vres_n
mov rcx, rax
call fcn.14002d658
mov dword [rbp + 0x3c], eax
jmp 0x14003f4f3
mov rax, qword [rbp + 0xa50]
lea rdx, [rbp + 0x3b6]
lea rcx, [rbp + 0xb0]
lea rbx, [rbp + 0xb8]
mov qword [rbp + 0x270], rcx
mov rcx, rax
mov rax, qword [rbp + 0x270]
mov r8, rax
mov r9, rbx
call fcn.140025ccf
mov dword [rbp + 0x40], eax
mov eax, dword [rbp + 0x40]
mov dword [rbp], eax
mov eax, dword [rbp]
test eax, eax
je 0x14003f404
mov rax, qword [rbp + 0xa50]
lea rdx, str.resolveIP:_unable_to_open_output_file
mov rcx, rax
call fcn.14002d658
mov dword [rbp + 0x48], eax
jmp 0x14003f4f3
mov rax, qword [rbp + 0xa50]
mov rdx, qword [rbp + 0xb8]
mov rcx, qword [rbp + 0xa50]
mov rcx, qword [rcx + 0x28]
mov qword [rbp + 0x278], rcx
mov rcx, rax
mov rax, qword [rbp + 0x278]
mov r8, rax
call fcn.1400256e5
mov dword [rbp + 0x4c], eax
mov eax, dword [rbp + 0x4c]
mov dword [rbp], eax
mov eax, dword [rbp]
test eax, eax
je 0x14003f464
mov rax, qword [rbp + 0xa50]
lea rdx, str.resolveIP:_unable_to_copy_file
mov rcx, rax
call fcn.14002d658
mov dword [rbp + 0x54], eax
jmp 0x14003f4f3
mov rax, qword [rbp + 0xa50]
mov rdx, qword [rbp + 0xb0]
mov rcx, qword [rbp + 0xb8]
mov qword [rbp + 0x280], rcx
mov rcx, rax
mov rax, qword [rbp + 0x280]
mov r8, rax
call fcn.140025a4f
mov dword [rbp + 0x58], eax
mov eax, dword [rbp + 0x58]
mov dword [rbp], eax
mov eax, dword [rbp]
test eax, eax
je 0x14003f4bd
mov rax, qword [rbp + 0xa50]
lea rdx, str.resolveIP:_unable_to_close_output_file
mov rcx, rax
call fcn.14002d658
mov dword [rbp + 0x60], eax
jmp 0x14003f4f3
mov qword [rbp + 0xb8], 0
lea rax, [rbp + 0x3b6]
mov rcx, rax
call fcn.140001e93
mov dword [rbp + 0x64], eax
mov rax, qword [rbp + 0xa50]
lea rdx, str.resolveIP:_resolve_IP_was_successful
mov rcx, rax
call fcn.14002d658
mov dword [rbp + 0x6c], eax
mov rax, qword [rbp + 0xb8]
test rax, rax
je 0x14003f530
mov rax, qword [rbp + 0xa50]
mov rdx, qword [rbp + 0xb0]
mov rcx, qword [rbp + 0xb8]
mov qword [rbp + 0x288], rcx
mov rcx, rax
mov rax, qword [rbp + 0x288]
mov r8, rax
call fcn.140025a4f
mov dword [rbp + 0x18], eax
mov eax, dword [rbp]
mov dword [rbp + 0x70], eax
mov rax, qword [rbp + 0xa30]
mov qword [rbp + 0xa30], 0
xor rax, rbp
mov rcx, rax
call fcn.1400aab50
mov eax, dword [rbp + 0x70]
mov rbx, qword [rbp + 0x290]
mov rsi, qword [rbp + 0x298]
mov rdi, qword [rbp + 0x2a0]
lea rsp, [rbp + 0xa40]
pop rbp
ret