Function at 0x140002a90
Capabilities:
Initialize winsock library
Resolve dns
Terminate process

Disassembly:
push rbp
push rbx
push rsi
push rdi
push r14
lea rbp, [rsp - 0x550]
sub rsp, 0x650
mov rax, qword [0x1400163a0]
xor rax, rsp
mov qword [rbp + 0x540], rax
mov rsi, rdx
mov dword [rsp + 0x48], 0x400
mov r14, rcx
mov dword [rsp + 0x44], 0x400
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
lea r8, [rsp + 0x50]
mov edx, 0x20008
mov rcx, rax
call qword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
jne 0x140002b2d
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str._s:_could_not_open_process_token:_error_code__lu_n
mov edi, eax
call sub.libintl_8.dll_libintl_gettext
mov ecx, 2
mov rbx, rax
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
mov r8, qword [0x140016460]
mov r9d, edi
mov rcx, rax
mov rdx, rbx
call fcn.14000a880
mov ecx, 2
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_exit]
int3
mov rcx, qword [rsp + 0x50]
lea rax, [rsp + 0x40]
mov edi, 1
mov qword [rsp + 0x20], rax
mov edx, edi
xor r9d, r9d
xor r8d, r8d
call qword [sym.imp.ADVAPI32.dll_GetTokenInformation]
test eax, eax
jne 0x140002ba1
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x7a
je 0x140002ba1
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str._s:_could_not_get_token_information_buffer_size:_error_code__lu_n
mov edi, eax
call sub.libintl_8.dll_libintl_gettext
mov ecx, 2
mov rbx, rax
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
mov r8, qword [0x140016460]
mov r9d, edi
mov rcx, rax
mov rdx, rbx
call fcn.14000a880
mov ecx, 2
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_exit]
int3
mov ecx, dword [rsp + 0x40]
call fcn.140007a40
mov r9d, dword [rsp + 0x40]
mov rbx, rax
mov rcx, qword [rsp + 0x50]
lea rax, [rsp + 0x40]
mov r8, rbx
mov qword [rsp + 0x20], rax
mov edx, edi
call qword [sym.imp.ADVAPI32.dll_GetTokenInformation]
test eax, eax
jne 0x140002c13
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str._s:_could_not_get_token_information:_error_code__lu_n
mov edi, eax
call sub.libintl_8.dll_libintl_gettext
mov ecx, 2
mov rbx, rax
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
mov r8, qword [0x140016460]
mov r9d, edi
mov rcx, rax
mov rdx, rbx
call fcn.14000a880
mov ecx, 2
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_exit]
int3
mov rdx, qword [rbx]
lea rax, [rsp + 0x58]
mov qword [rsp + 0x30], rax
lea r9, [rsp + 0x48]
lea rax, [rsp + 0x44]
mov qword [rsp + 0x690], r15
mov qword [rsp + 0x28], rax
lea r15, [0x1400168a0]
lea r8, [0x1400164a0]
mov qword [rsp + 0x20], r15
xor ecx, ecx
call qword [sym.imp.ADVAPI32.dll_LookupAccountSidA]
test eax, eax
jne 0x140002c99
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str._s:_could_not_look_up_account_SID:_error_code__lu_n
mov edi, eax
call sub.libintl_8.dll_libintl_gettext
mov ecx, 2
mov rbx, rax
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
mov r8, qword [0x140016460]
mov r9d, edi
mov rcx, rax
mov rdx, rbx
call fcn.14000a880
mov ecx, 2
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_exit]
int3
mov rcx, rbx
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
test rsi, rsi
jne 0x140002ce7
lea rcx, [rsp + 0x60]
call fcn.1400089a0
mov rsi, rax
test rax, rax
jne 0x140002ce7
lea ecx, [rax + 2]
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
mov r9, qword [rsp + 0x60]
lea rdx, str._s:__s_n
mov r8, qword [0x140016460]
mov rcx, rax
call fcn.14000a880
lea ecx, [rsi + 2]
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_exit]
int3
movdqa xmm0, xmmword [0x1400116b0]
lea rdx, [rbp - 0x60]
movdqu xmmword [rsp + 0x68], xmm0
xor ebx, ebx
mov ecx, 0x202
xorps xmm0, xmm0
mov qword [rsp + 0x78], rbx
movdqu xmmword [rbp - 0x80], xmm0
mov qword [rbp - 0x70], rbx
call qword [sym.imp.WS2_32.dll_WSAStartup]
test eax, eax
jne 0x140002d38
lea r9, [rsp + 0x50]
xor edx, edx
lea r8, [rsp + 0x68]
lea rcx, [0x14000fd20]
call qword [sym.imp.WS2_32.dll_getaddrinfo]
test eax, eax
je 0x140002d3a
mov edi, ebx
mov r9, r14
lea r8, str._s_pg_hba.conf
mov edx, 0x400
lea rcx, [rbp + 0x140]
call fcn.14000a5f0
test eax, eax
js 0x1400031df
cdqe
cmp rax, 0x400
jae 0x1400031df
lea rdx, [0x14000f880]
lea rcx, [rbp + 0x140]
call fcn.14000c740
mov rbx, rax
test rax, rax
jne 0x140002dda
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__errno]
mov ecx, dword [rax]
call fcn.14000be10
lea rcx, str._s:_could_not_open_file___s__for_writing:__s_n
mov rdi, rax
call sub.libintl_8.dll_libintl_gettext
mov ecx, 2
mov rbx, rax
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
mov r8, qword [0x140016460]
lea r9, [rbp + 0x140]
mov rcx, rax
mov qword [rsp + 0x20], rdi
mov rdx, rbx
call fcn.14000a880
mov ecx, 2
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_exit]
int3
mov rdx, rbx
lea rcx, str._Configuration_written_by_config_sspi_auth___n
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fputs]
test eax, eax
jns 0x140002e42
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__errno]
mov ecx, dword [rax]
call fcn.14000be10
lea rcx, str._s:_could_not_write_to_file___s_:__s_n
mov rdi, rax
call sub.libintl_8.dll_libintl_gettext
mov ecx, 2
mov rbx, rax
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
mov r8, qword [0x140016460]
lea r9, [rbp + 0x140]
mov rcx, rax
mov qword [rsp + 0x20], rdi
mov rdx, rbx
call fcn.14000a880
mov ecx, 2
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_exit]
int3
mov rdx, rbx
lea rcx, str.host_all_all_127.0.0.1_32__sspi_include_realm1_mapregress_n
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fputs]
test eax, eax
jns 0x140002eaa
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__errno]
mov ecx, dword [rax]
call fcn.14000be10
lea rcx, str._s:_could_not_write_to_file___s_:__s_n
mov rdi, rax
call sub.libintl_8.dll_libintl_gettext
mov ecx, 2
mov rbx, rax
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
mov r8, qword [0x140016460]
lea r9, [rbp + 0x140]
mov rcx, rax
mov qword [rsp + 0x20], rdi
mov rdx, rbx
call fcn.14000a880
mov ecx, 2
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_exit]
int3
test edi, edi
je 0x140002f16
mov rdx, rbx
lea rcx, str.host_all_all_::1_128__sspi_include_realm1_mapregress_n
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fputs]
test eax, eax
jns 0x140002f16
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__errno]
mov ecx, dword [rax]
call fcn.14000be10
lea rcx, str._s:_could_not_write_to_file___s_:__s_n
mov rdi, rax
call sub.libintl_8.dll_libintl_gettext
mov ecx, 2
mov rbx, rax
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
mov r8, qword [0x140016460]
lea r9, [rbp + 0x140]
mov rcx, rax
mov qword [rsp + 0x20], rdi
mov rdx, rbx
call fcn.14000a880
mov ecx, 2
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_exit]
int3
mov rcx, rbx
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
test eax, eax
je 0x140002f77
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__errno]
mov ecx, dword [rax]
call fcn.14000be10
lea rcx, str._s:_could_not_write_to_file___s_:__s_n
mov rdi, rax
call sub.libintl_8.dll_libintl_gettext
mov ecx, 2
mov rbx, rax
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
mov r8, qword [0x140016460]
lea r9, [rbp + 0x140]
mov rcx, rax
mov qword [rsp + 0x20], rdi
mov rdx, rbx
call fcn.14000a880
mov ecx, 2
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_exit]
int3
mov r9, r14
lea r8, str._s_pg_ident.conf
mov edx, 0x400
lea rcx, [rbp + 0x140]
call fcn.14000a5f0
lea rdx, [0x14000f880]
lea rcx, [rbp + 0x140]
call fcn.14000c740
mov rdi, rax
test rax, rax
jne 0x140003001
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__errno]
mov ecx, dword [rax]
call fcn.14000be10
lea rcx, str._s:_could_not_open_file___s__for_writing:__s_n
mov rdi, rax
call sub.libintl_8.dll_libintl_gettext
mov ecx, 2
mov rbx, rax
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
mov r8, qword [0x140016460]
lea r9, [rbp + 0x140]
mov rcx, rax
mov qword [rsp + 0x20], rdi
mov rdx, rbx
call fcn.14000a880
mov ecx, 2
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_exit]
int3
mov rdx, rdi
lea rcx, str._Configuration_written_by_config_sspi_auth___n
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fputs]
test eax, eax
jns 0x140003069
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__errno]
mov ecx, dword [rax]
call fcn.14000be10
lea rcx, str._s:_could_not_write_to_file___s_:__s_n
mov rdi, rax
call sub.libintl_8.dll_libintl_gettext
mov ecx, 2
mov rbx, rax
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
mov r8, qword [0x140016460]
lea r9, [rbp + 0x140]
mov rcx, rax
mov qword [rsp + 0x20], rdi
mov rdx, rbx
call fcn.14000a880
mov ecx, 2
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_exit]
int3
mov rcx, rsi
call fcn.140003c40
mov r9, r15
mov qword [rsp + 0x20], rax
lea r8, [0x1400164a0]
mov rcx, rdi
lea rdx, str.regress____s__s____s_n
call fcn.14000a880
test eax, eax
jns 0x1400030e7
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__errno]
mov ecx, dword [rax]
call fcn.14000be10
lea rcx, str._s:_could_not_write_to_file___s_:__s_n
mov rdi, rax
call sub.libintl_8.dll_libintl_gettext
mov ecx, 2
mov rbx, rax
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
mov r8, qword [0x140016460]
lea r9, [rbp + 0x140]
mov rcx, rax
mov qword [rsp + 0x20], rdi
mov rdx, rbx
call fcn.14000a880
mov ecx, 2
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_exit]
int3
mov rbx, qword [0x140016450]
test rbx, rbx
je 0x140003126
mov rcx, qword [rbx]
call fcn.140003c40
mov r9, r15
mov qword [rsp + 0x20], rax
lea r8, [0x1400164a0]
mov rcx, rdi
lea rdx, str.regress____s__s____s_n
call fcn.14000a880
test eax, eax
js 0x14000318b
mov rbx, qword [rbx + 8]
test rbx, rbx
jne 0x1400030f3
mov rcx, rdi
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
test eax, eax
je 0x140003217
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__errno]
mov ecx, dword [rax]
call fcn.14000be10
lea rcx, str._s:_could_not_write_to_file___s_:__s_n
mov rdi, rax
call sub.libintl_8.dll_libintl_gettext
mov ecx, 2
mov rbx, rax
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
mov r8, qword [0x140016460]
lea r9, [rbp + 0x140]
mov rcx, rax
mov qword [rsp + 0x20], rdi
mov rdx, rbx
call fcn.14000a880
mov ecx, 2
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_exit]
int3
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__errno]
mov ecx, dword [rax]
call fcn.14000be10
lea rcx, str._s:_could_not_write_to_file___s_:__s_n
mov rdi, rax
call sub.libintl_8.dll_libintl_gettext
mov ecx, 2
mov rbx, rax
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
mov r8, qword [0x140016460]
lea r9, [rbp + 0x140]
mov rcx, rax
mov qword [rsp + 0x20], rdi
mov rdx, rbx
call fcn.14000a880
mov ecx, 2
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_exit]
int3
lea rcx, str._s:_directory_name_too_long_n
call sub.libintl_8.dll_libintl_gettext
mov ecx, 2
mov rbx, rax
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
mov r8, qword [0x140016460]
mov rdx, rbx
mov rcx, rax
call fcn.14000a880
mov ecx, 2
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_exit]
int3
mov r15, qword [rsp + 0x690]
mov rcx, qword [rbp + 0x540]
xor rcx, rsp
call fcn.14000e240
add rsp, 0x650
pop r14
pop rdi
pop rsi
pop rbx
pop rbp
ret