joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1400258b4
Capabilities:
Set environment variable

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
mov qword [rax + 0x20], rdi
push rbp
push r14
push r15
lea rbp, [rax - 0x5f]
sub rsp, 0xa0
xor r15d, r15d
mov r14, rdx
mov rsi, rcx
mov qword [rbp + 0x17], r15
xor edx, edx
mov qword [rbp + 0x1f], r15
lea rcx, [rbp - 0x39]
mov qword [rbp + 0x27], r15
mov qword [rbp + 0x2f], r15
mov edi, r15d
mov qword [rbp + 0x37], r15
mov byte [rbp + 0x3f], r15b
mov qword [rbp - 0x19], r15
mov qword [rbp - 0x11], r15
mov qword [rbp - 9], r15
mov qword [rbp - 1], r15
mov qword [rbp + 7], r15
mov byte [rbp + 0xf], r15b
call fcn.140013e08
mov rax, qword [rbp - 0x31]
mov ebx, 0xfde9
cmp dword [rax + 0xc], ebx
jne 0x14002593e
cmp byte [rbp - 0x21], r15b
je 0x140025939
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, ebx
jmp 0x140025974
call fcn.14001a2e4
test eax, eax
jne 0x140025960
cmp byte [rbp - 0x21], r15b
je 0x140025958
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, 1
jmp 0x140025974
cmp byte [rbp - 0x21], r15b
je 0x140025971
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, r15d
lea r8, [rbp + 0x77]
mov rcx, rsi
lea rdx, [rbp + 0x17]
call fcn.140016430
test eax, eax
jne 0x140025a14
xor edx, edx
lea rcx, [rbp - 0x39]
call fcn.140013e08
mov rax, qword [rbp - 0x31]
cmp dword [rax + 0xc], ebx
jne 0x1400259b3
cmp byte [rbp - 0x21], r15b
je 0x1400259e8
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
jmp 0x1400259e8
call fcn.14001a2e4
test eax, eax
jne 0x1400259d4
cmp byte [rbp - 0x21], r15b
je 0x1400259cd
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov ebx, 1
jmp 0x1400259e8
cmp byte [rbp - 0x21], r15b
je 0x1400259e5
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov ebx, r15d
mov r9d, ebx
lea r8, [rbp + 0x77]
lea rdx, [rbp - 0x19]
mov rcx, r14
call fcn.140016430
mov rdi, qword [rbp - 9]
test eax, eax
jne 0x140025a14
mov rcx, qword [rbp + 0x27]
mov rdx, rdi
call qword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
mov ebx, eax
jmp 0x140025a17
mov ebx, r15d
cmp byte [rbp + 0xf], r15b
je 0x140025a25
mov rcx, rdi
call fcn.140019d94
cmp byte [rbp + 0x3f], r15b
je 0x140025a34
mov rcx, qword [rbp + 0x27]
call fcn.140019d94
lea r11, [rsp + 0xa0]
mov eax, ebx
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rdi, qword [r11 + 0x38]
mov rsp, r11
pop r15
pop r14
pop rbp
ret
Function at 0x1401c4e60
Capabilities:
Query environment variable

Disassembly:
mov eax, 0x10088
call fcn.1401f1d10
sub rsp, rax
mov rax, qword [0x140235280]
xor rax, rsp
mov qword [rsp + 0x10070], rax
xor eax, eax
mov rdx, rcx
lea rcx, [rsp + 0x20]
mov word [rsp + 0x70], ax
mov word [rsp + 0x20], ax
lea r8d, [rax + 0x28]
call fcn.1401ec650
mov r8d, 0x10000
lea rdx, [rsp + 0x70]
lea rcx, [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
dec eax
cmp eax, 0xffff
ja 0x1401c4edd
lea rcx, [rsp + 0x70]
call fcn.1402043d4
mov rcx, qword [rsp + 0x10070]
xor rcx, rsp
call fcn.1401f1d70
add rsp, 0x10088
ret
xor eax, eax
mov rcx, qword [rsp + 0x10070]
xor rcx, rsp
call fcn.1401f1d70
add rsp, 0x10088
ret

Function at 0x1401c4fc0
Capabilities:
Set environment variable

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x80
mov rax, qword [0x140235280]
xor rax, rsp
mov qword [rsp + 0x70], rax
lea rcx, [0x140213ce8]
call fcn.1401c4e60
xor edi, edi
mov qword [0x140242a58], rax
lea rdx, [0x140213ce8]
mov word [rsp + 0x20], di
lea rcx, [rsp + 0x20]
lea r8d, [rdi + 0x28]
call fcn.1401ec650
lea rdx, [0x140213cf0]
lea rcx, [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
lea rcx, str.PYTHONHOME
call fcn.1401c4e60
mov cl, 1
mov qword [0x140242a60], rax
call fcn.1401ed8f0
lea r8d, [rdi + 0x28]
mov word [rsp + 0x20], di
lea rdx, str.PYTHONHOME
mov rbx, rax
lea rcx, [rsp + 0x20]
call fcn.1401ec650
mov rdx, rbx
lea rcx, [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
mov cl, 1
call fcn.1401ed8f0
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetDllDirectoryW]
mov rax, qword [sym.imp.python310.dll__Py_path_config]
mov dword [rax + 0x30], 1
mov rcx, qword [rsp + 0x70]
xor rcx, rsp
call fcn.1401f1d70
mov rbx, qword [rsp + 0x90]
add rsp, 0x80
pop rdi
ret
Function at 0x1401c5560
Capabilities:
Set environment variable

Disassembly:
push rbx
push rbp
push rsi
push rdi
push r14
sub rsp, 0x80
mov rax, qword [0x140235280]
xor rax, rsp
mov qword [rsp + 0x70], rax
mov r14, r8
mov rsi, rdx
mov rbp, rcx
call fcn.1401d8920
lea rdx, str.environ
mov rcx, rax
call qword [sym.imp.python310.dll_PyObject_GetAttrString]
mov rcx, rsi
mov rbx, rax
call qword [sym.imp.python310.dll_PyUnicode_FromString]
mov rdx, rsi
lea rcx, [rsp + 0x20]
mov rdi, rax
xor eax, eax
mov word [rsp + 0x20], ax
lea r8d, [rax + 0x28]
call fcn.1401ec650
lea rcx, [rsp + 0x20]
test r14, r14
je 0x1401c5623
mov rdx, r14
call qword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
mov rdx, 0xffffffffffffffff
mov rcx, r14
call sub.python310.dll_PyUnicode_FromWideChar
mov r8, rax
mov rdx, rdi
mov rcx, rbx
mov rsi, rax
call qword [sym.imp.python310.dll_PyObject_SetItem]
test eax, eax
je 0x1401c5611
mov ecx, 1
call qword [sym.imp.python310.dll_PyErr_PrintEx]
mov ecx, 1
call qword [sym.imp.python310.dll_Py_Exit]
int3
sub qword [rsi], 1
jne 0x1401c5643
mov rax, qword [rsi + 8]
mov rcx, rsi
call qword [rax + 0x30]
jmp 0x1401c5643
xor edx, edx
call qword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
mov rdx, rdi
mov rcx, rbx
call qword [sym.imp.python310.dll_PyObject_DelItem]
test eax, eax
je 0x1401c5643
mov rcx, rbp
call fcn.14000c080
sub qword [rdi], 1
jne 0x1401c5653
mov rax, qword [rdi + 8]
mov rcx, rdi
call qword [rax + 0x30]
sub qword [rbx], 1
jne 0x1401c5663
mov rax, qword [rbx + 8]
mov rcx, rbx
call qword [rax + 0x30]
mov rcx, qword [rsp + 0x70]
xor rcx, rsp
call fcn.1401f1d70
add rsp, 0x80
pop r14
pop rdi
pop rsi
pop rbp
pop rbx
ret
Function at 0x1401ec700
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
mov r8, rcx
mov eax, 0xffffffff
test edx, edx
je 0x1401ec7c4
mov r9d, edx
nop dword [rax]
nop word [rax + rax]
movzx edx, byte [r8]
lea r8, [r8 + 1]
xor eax, edx
mov edx, eax
and dl, 1
neg dl
sbb ecx, ecx
shr eax, 1
and ecx, 0xedb88320
xor ecx, eax
mov eax, ecx
and al, 1
neg al
sbb edx, edx
shr ecx, 1
and edx, 0xedb88320
xor edx, ecx
mov eax, edx
and al, 1
neg al
sbb ecx, ecx
shr edx, 1
and ecx, 0xedb88320
xor ecx, edx
mov eax, ecx
and al, 1
neg al
sbb edx, edx
shr ecx, 1
and edx, 0xedb88320
xor edx, ecx
mov eax, edx
and al, 1
neg al
sbb ecx, ecx
shr edx, 1
and ecx, 0xedb88320
xor ecx, edx
mov eax, ecx
and al, 1
neg al
sbb edx, edx
shr ecx, 1
and edx, 0xedb88320
xor edx, ecx
mov eax, edx
and al, 1
neg al
sbb ecx, ecx
shr edx, 1
and ecx, 0xedb88320
xor ecx, edx
mov eax, ecx
and al, 1
neg al
sbb eax, eax
shr ecx, 1
and eax, 0xedb88320
xor eax, ecx
sub r9, 1
jne 0x1401ec720
not eax
ret
Function at 0x1401f2740
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x1401f278a
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x1401f278a
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x1401f278a
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x1401f278a
cmp dword [rcx + 0x84], 0xe
jbe 0x1401f278a
cmp dword [rcx + 0xf8], 0
setne al
jmp 0x1401f278c
xor al, al
add rsp, 0x28
ret

Function at 0x1401f7bd8
Capabilities:
Parse pe header

Disassembly:
mov dword [rsp + 0x18], r8d
mov dword [rsp + 0x10], edx
push rbp
mov rbp, rsp
sub rsp, 0x50
mov qword [rbp - 0x20], 0xfffffffffffffffe
mov qword [rsp + 0x60], rbx
mov ebx, ecx
test r8d, r8d
jne 0x1401f7a43
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x1401f7a43
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x1401f7a43
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x1401f7a43
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x1401f7a43
cmp dword [rcx + 0x84], 0xe
jbe 0x1401f7a43
cmp dword [rcx + 0xf8], 0
je 0x1401f7a43
mov ecx, ebx
call fcn.1401f7af4
mov byte [rbp + 0x28], 0
lea rax, [rbp + 0x18]
mov qword [rbp - 0x18], rax
lea rax, [rbp + 0x20]
mov qword [rbp - 0x10], rax
lea rax, [rbp + 0x28]
mov qword [rbp - 8], rax
mov eax, 2
mov dword [rbp - 0x2c], eax
mov dword [rbp - 0x28], eax
lea r9, [rbp - 0x2c]
lea r8, [rbp - 0x18]
lea rdx, [rbp - 0x28]
lea rcx, [rbp - 0x30]
call fcn.1401f78d0
nop
cmp dword [rbp + 0x20], 0
je 0x1401f7a91
mov rbx, qword [rsp + 0x60]
add rsp, 0x50
pop rbp
ret
mov ecx, ebx
call fcn.1401f7a9c
int3
xor r8d, r8d
xor edx, edx
jmp 0x1401f79d4
Function at 0x140209640
Capabilities:
Query environment variable

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
call qword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
xor ebp, ebp
mov rbx, rax
test rax, rax
je 0x1402096c7
mov rsi, rbx
cmp word [rax], bp
je 0x140209686
or rax, 0xffffffffffffffff
inc rax
cmp word [rsi + rax*2], bp
jne 0x140209670
lea rsi, [rsi + rax*2]
add rsi, 2
cmp word [rsi], bp
jne 0x14020966c
sub rsi, rbx
add rsi, 2
sar rsi, 1
add rsi, rsi
mov rcx, rsi
call fcn.140204bc0
mov rdi, rax
test rax, rax
je 0x1402096b4
mov r8, rsi
mov rdx, rbx
mov rcx, rax
call fcn.14020f9c0
mov rbp, rdi
xor ecx, ecx
call fcn.140205708
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov rax, rbp
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret
Function at 0x14020d23c
Capabilities:
Get file size

Disassembly:
push rbx
sub rsp, 0x20
mov edx, dword [rcx + 0x14]
nop
shr edx, 3
test dl, 1
je 0x14020d252
mov al, 1
jmp 0x14020d2b2
mov eax, dword [rcx + 0x14]
nop
test al, 0xc0
je 0x14020d263
mov rax, qword [rcx + 8]
cmp qword [rcx], rax
je 0x14020d2b0
mov ecx, dword [rcx + 0x18]
nop
call fcn.140209de4
mov rbx, rax
cmp rax, 0xffffffffffffffff
je 0x14020d2b0
mov r9d, 1
lea r8, [rsp + 0x38]
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetFilePointerEx]
test eax, eax
je 0x14020d2b0
lea rdx, [rsp + 0x30]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
je 0x14020d2b0
mov rax, qword [rsp + 0x30]
cmp qword [rsp + 0x38], rax
sete al
jmp 0x14020d2b2
xor al, al
add rsp, 0x20
pop rbx
ret

Function at 0x14020f7a0
Capabilities:
Parse pe header

Disassembly:
mov eax, 0x5a4d
cmp word [rcx], ax
jne 0x14020f7c8
movsxd rdx, dword [rcx + 0x3c]
add rdx, rcx
cmp dword [rdx], 0x4550
jne 0x14020f7c8
xor eax, eax
mov ecx, 0x20b
cmp word [rdx + 0x18], cx
sete al
ret
xor eax, eax
ret
Function at 0x140001ed0
Capabilities:
Terminate process

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rdi
push rbp
mov rbp, rsp
sub rsp, 0x80
lea rax, [rbp - 0x50]
xor ebx, ebx
test al, 3
jne 0x140001f11
lea rdx, [rbp - 0x50]
mov ecx, reloc.WS2_32.dll_select
lea rax, [rbp - 8]
cmp rdx, rax
cmova ecx, ebx
test rcx, rcx
je 0x140001f37
lea rdi, [rbp - 0x50]
xor eax, eax
rep stosd dword [rdi], eax
jmp 0x140001f37
xor eax, eax
mov qword [rbp - 0x50], rax
mov qword [rbp - 0x48], rax
mov qword [rbp - 0x40], rax
mov qword [rbp - 0x38], rax
mov qword [rbp - 0x30], rax
mov qword [rbp - 0x28], rax
mov qword [rbp - 0x20], rax
mov qword [rbp - 0x18], rax
mov qword [rbp - 0x10], rax
mov rax, qword [0x140017bc0]
test rax, rax
jne 0x140001f58
call fcn.140003cc0
mov qword [0x140017bc0], rax
test rax, rax
je 0x140002084
mov rcx, rax
call fcn.140002420
test al, al
je 0x1400020c3
mov rcx, qword [0x140017bc0]
lea r9, [rbp + 0x18]
lea r8, [rbp + 0x10]
mov qword [rsp + 0x20], rbx
xor edx, edx
call fcn.140004610
test al, al
je 0x1400020c3
lea rcx, [rbp - 0x48]
call fcn.1400019f0
mov rdx, rax
test rax, rax
jne 0x140001fa8
mov edi, dword [rbp + 0x10]
mov rdx, qword [rbp + 0x18]
mov dword [rbp - 0x48], edi
jmp 0x140001fab
mov edi, dword [rbp - 0x48]
mov ecx, dword [0x140019be0]
dec ecx
and rcx, rdx
sub rdx, rcx
cmp dword [0x140017338], ebx
mov qword [rbp - 0x50], rdx
je 0x140001fee
cmp dword [0x140019bf8], 2
jg 0x140001fee
mov r9d, dword [rbp - 0x50]
mov ecx, 2
shr rdx, 0x20
mov r8d, edx
mov dword [rsp + 0x20], edi
lea rdx, str.starting_log_streaming_at__X__X__timeline__u_
call fcn.140007aa0
movzx r8d, byte [0x140017004]
lea rax, section..text
mov edx, dword [0x14001733c]
mov rcx, qword [0x140017330]
mov qword [rbp - 0x30], rax
mov eax, dword [section..data]
mov dword [rbp - 0x38], eax
movzx eax, byte [0x140017348]
mov byte [rbp - 0x34], al
mov qword [rbp - 0x28], 0xffffffffffffffff
mov byte [rbp - 0x32], r8b
mov byte [rbp - 0x33], bl
call fcn.140004b80
mov rcx, qword [0x140017bc0]
lea rdx, [rbp - 0x50]
mov qword [rbp - 0x20], rax
lea rax, str..partial
mov qword [rbp - 0x18], rax
mov rax, qword [0x140017350]
mov qword [rbp - 0x10], rax
call fcn.1400024d0
mov rax, qword [rbp - 0x20]
call qword [rax + 0x38]
test al, al
jne 0x140002099
cmp dword [0x140019bf8], 2
jg 0x140002084
lea rdx, str.could_not_finish_writing_WAL_files:__m
mov ecx, 2
call fcn.140007aa0
lea r11, [rsp + 0x80]
mov rbx, qword [r11 + 0x20]
mov rdi, qword [r11 + 0x28]
mov rsp, r11
pop rbp
ret
mov rcx, qword [0x140017bc0]
call sub.LIBPQ.dll_Ordinal_4
mov qword [0x140017bc0], rbx
call fcn.140004dc0
mov rcx, qword [rbp - 0x20]
call fcn.140007560
mov qword [0x140017bc0], rbx
jmp 0x140002084
mov ecx, 1
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_exit]
int3

Function at 0x1400020e0
Capabilities:
Terminate process

Disassembly:
push rbx
sub rsp, 0x20
mov rbx, rdx
call fcn.14000bd30
test eax, eax
je 0x14000211b
cmp dword [0x140019bf8], 4
jg 0x14000210f
mov r8, rbx
lea rdx, str.could_not_close_directory___s_:__m
mov ecx, 4
call fcn.140007aa0
mov ecx, 1
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_exit]
int3
add rsp, 0x20
pop rbx
ret
Function at 0x140002130
Capabilities:
Terminate process

Disassembly:
sub rsp, 0x28
call fcn.14000bad0
test rax, rax
jne 0x140002169
cmp dword [0x140019bf8], 4
jg 0x14000215d
mov r8, qword [0x140017330]
lea rdx, str.could_not_open_directory___s_:__m
lea ecx, [rax + 4]
call fcn.140007aa0
mov ecx, 1
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_exit]
int3
add rsp, 0x28
ret
Function at 0x140002eb0
Capabilities:
Get socket status

Disassembly:
push rbx
push rsi
push rdi
push r14
push r15
sub rsp, 0x270
mov rax, qword [0x1400172f0]
xor rax, rsp
mov qword [rsp + 0x250], rax
xor ebx, ebx
mov rsi, rcx
mov rcx, qword [r9]
mov r14, r9
mov qword [rsp + 0x30], rbx
mov rdi, r8
mov r15d, edx
test rcx, rcx
je 0x140002ef1
call sub.LIBPQ.dll_Ordinal_95
mov r8d, 1
mov qword [rsp + 0x268], rbp
lea rdx, [rsp + 0x30]
mov qword [r14], rbx
mov rcx, rsi
call sub.LIBPQ.dll_Ordinal_105
mov edx, eax
test eax, eax
jne 0x14000308a
mov rcx, rsi
call sub.LIBPQ.dll_Ordinal_16
movsxd r8, eax
test eax, eax
jns 0x140002f59
cmp dword [0x140019bf8], 4
jg 0x140002f4d
mov rcx, rsi
call sub.LIBPQ.dll_Ordinal_15
mov r8, rax
lea rdx, str.invalid_socket:__s
mov ecx, 4
call fcn.140007aa0
mov ebx, 0xffffffff
mov eax, ebx
jmp 0x1400030cf
mov qword [rsp + 0x48], r8
mov rbp, r8
mov dword [rsp + 0x40], 1
cmp rdi, 0xffffffffffffffff
je 0x140002f9d
mov ecx, ebx
mov eax, ecx
cmp qword [rsp + rax*8 + 0x48], rdi
je 0x140002f81
inc ecx
cmp ecx, 1
jb 0x140002f71
cmp ecx, 1
jne 0x140002f93
mov qword [rsp + 0x50], rdi
mov dword [rsp + 0x40], 2
cmp rbp, rdi
cmova edi, r8d
mov r8d, edi
test r15d, r15d
jns 0x140002fa7
mov rax, rbx
jmp 0x140002fd6
mov eax, 0x10624dd3
imul r15d
sar edx, 6
mov eax, edx
shr eax, 0x1f
add edx, eax
imul eax, edx, 0x3e8
mov dword [rsp + 0x38], edx
sub r15d, eax
imul eax, r15d, 0x3e8
mov dword [rsp + 0x3c], eax
lea rax, [rsp + 0x38]
lea ecx, [r8 + 1]
mov qword [rsp + 0x20], rax
xor r8d, r8d
lea rdx, [rsp + 0x40]
xor r9d, r9d
call qword [sym.imp.WS2_32.dll_select]
test eax, eax
jns 0x140003030
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__errno]
cmp dword [rax], 0x2714
je 0x140002f52
cmp dword [0x140019bf8], 4
jg 0x140002f4d
lea rdx, str.select___failed:__m
mov ecx, 4
call fcn.140007aa0
mov ebx, 0xffffffff
mov eax, ebx
jmp 0x1400030cf
jle 0x140002f52
lea rdx, [rsp + 0x40]
mov rcx, rbp
call sub.WS2_32.dll___WSAFDIsSet
test eax, eax
je 0x140002f52
mov rcx, rsi
call sub.LIBPQ.dll_Ordinal_26
test eax, eax
jne 0x140003071
cmp dword [0x140019bf8], 4
jg 0x1400030be
mov rcx, rsi
call sub.LIBPQ.dll_Ordinal_15
lea rdx, str.could_not_receive_data_from_WAL_stream:__s
jmp 0x1400030b1
mov r8d, 1
lea rdx, [rsp + 0x30]
mov rcx, rsi
call sub.LIBPQ.dll_Ordinal_105
mov edx, eax
test eax, eax
je 0x1400030cf
cmp edx, 0xffffffff
jne 0x140003094
lea eax, [rdx - 1]
jmp 0x1400030cf
cmp edx, 0xfffffffe
jne 0x1400030c5
cmp dword [0x140019bf8], 4
jg 0x1400030be
mov rcx, rsi
call sub.LIBPQ.dll_Ordinal_15
lea rdx, str.could_not_read_COPY_data:__s
mov r8, rax
mov ecx, 4
call fcn.140007aa0
mov eax, 0xffffffff
jmp 0x1400030cf
mov rax, qword [rsp + 0x30]
mov qword [r14], rax
mov eax, edx
mov rbp, qword [rsp + 0x268]
mov rcx, qword [rsp + 0x250]
xor rcx, rsp
call fcn.14000e3e0
add rsp, 0x270
pop r15
pop r14
pop rdi
pop rsi
pop rbx
ret
Function at 0x1400069c0
Capabilities:
Query environment variable

Disassembly:
mov qword [rsp + 0x18], rbx
push rdi
sub rsp, 0xc40
mov rax, qword [0x1400172f0]
xor rax, rsp
mov qword [rsp + 0xc30], rax
mov rbx, rdx
mov rdi, rcx
mov rcx, rbx
lea rdx, str.postgres_12
call sub.api_ms_win_crt_string_l1_1_0.dll_strcmp
test eax, eax
je 0x140006a06
lea rdx, [0x140011516]
xor ecx, ecx
call fcn.14000d510
lea rdx, [rsp + 0x830]
mov rcx, rdi
call fcn.140006b30
test eax, eax
js 0x140006b04
lea rdx, [rsp + 0x430]
lea rcx, [rsp + 0x830]
call fcn.1400099f0
lea rdx, [rsp + 0x430]
mov rcx, rbx
call sub.libintl_8.dll_libintl_bindtextdomain
mov rcx, rbx
call sub.libintl_8.dll_libintl_textdomain
lea rcx, str.PGLOCALEDIR
call qword [sym.imp.api_ms_win_crt_environment_l1_1_0.dll_getenv]
test rax, rax
jne 0x140006a9d
lea r9, [rsp + 0x430]
mov edx, 0x40e
lea r8, str.PGLOCALEDIR_s
lea rcx, [rsp + 0x20]
call fcn.140009f60
lea rcx, [rsp + 0x2c]
call fcn.140009000
lea rcx, [rsp + 0x20]
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll__strdup]
test rax, rax
je 0x140006a9d
mov rcx, rax
call fcn.14000d6b0
lea rcx, str.PGSYSCONFDIR
call qword [sym.imp.api_ms_win_crt_environment_l1_1_0.dll_getenv]
test rax, rax
jne 0x140006b04
lea rdx, [rsp + 0x430]
lea rcx, [rsp + 0x830]
call fcn.1400098d0
lea r9, [rsp + 0x430]
mov edx, 0x40e
lea r8, str.PGSYSCONFDIR_s
lea rcx, [rsp + 0x20]
call fcn.140009f60
lea rcx, [rsp + 0x2d]
call fcn.140009000
lea rcx, [rsp + 0x20]
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll__strdup]
test rax, rax
je 0x140006b04
mov rcx, rax
call fcn.14000d6b0
mov rcx, qword [rsp + 0xc30]
xor rcx, rsp
call fcn.14000e3e0
mov rbx, qword [rsp + 0xc60]
add rsp, 0xc40
pop rdi
ret
Function at 0x140007430
Capabilities:
Terminate process

Disassembly:
push rbx
sub rsp, 0x20
test rcx, rcx
jne 0x14000746c
lea rcx, str.cannot_duplicate_null_pointer__internal_error__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 rcx, rax
mov rdx, rbx
call fcn.14000a1f0
mov ecx, 1
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_exit]
int3
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll__strdup]
test rax, rax
jne 0x1400074a8
lea rcx, str.out_of_memory_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 rcx, rax
mov rdx, rbx
call fcn.14000a1f0
mov ecx, 1
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_exit]
int3
add rsp, 0x20
pop rbx
ret

Function at 0x1400074d0
Capabilities:
Terminate process

Disassembly:
mov edx, 4
jmp 0x1400076c0
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
test rcx, rcx
mov edi, 1
mov esi, edx
cmovne rdi, rcx
mov rcx, rdi
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
mov rbx, rax
test rax, rax
jne 0x140007733
test sil, 2
jne 0x140007721
lea rcx, str.out_of_memory_n
call sub.libintl_8.dll_libintl_gettext
lea ecx, [rbx + 2]
mov rdi, rax
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
mov rcx, rax
mov rdx, rdi
call fcn.14000a1f0
lea ecx, [rbx + 1]
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_exit]
int3
xor eax, eax
mov rbx, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret
test sil, 4
je 0x14000778d
movzx eax, dil
or al, bl
test al, 3
jne 0x140007780
cmp rdi, 0x400
ja 0x140007780
xor edx, edx
lea rcx, [rdi + 3]
shr rcx, 2
lea rax, [rdi + rbx]
cmp rbx, rax
cmova rcx, rdx
test rcx, rcx
je 0x14000778d
xor eax, eax
mov rdi, rbx
rep stosd dword [rdi], eax
mov rax, rbx
mov rbx, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret
mov r8, rdi
xor edx, edx
mov rcx, rbx
call sub.VCRUNTIME140.dll_memset
mov rsi, qword [rsp + 0x40]
mov rax, rbx
mov rbx, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret

Function at 0x140007580
Capabilities:
Terminate process

Disassembly:
push rbx
sub rsp, 0x20
test rcx, rcx
jne 0x1400075bc
lea rcx, str.cannot_duplicate_null_pointer__internal_error__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 rcx, rax
mov rdx, rbx
call fcn.14000a1f0
mov ecx, 1
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_exit]
int3
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll__strdup]
test rax, rax
jne 0x1400075f8
lea rcx, str.out_of_memory_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 rcx, rax
mov rdx, rbx
call fcn.14000a1f0
mov ecx, 1
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_exit]
int3
add rsp, 0x20
pop rbx
ret
Function at 0x1400076c0
Capabilities:
Terminate process

Disassembly:
mov edx, 4
jmp 0x1400076c0
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
test rcx, rcx
mov edi, 1
mov esi, edx
cmovne rdi, rcx
mov rcx, rdi
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
mov rbx, rax
test rax, rax
jne 0x140007733
test sil, 2
jne 0x140007721
lea rcx, str.out_of_memory_n
call sub.libintl_8.dll_libintl_gettext
lea ecx, [rbx + 2]
mov rdi, rax
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
mov rcx, rax
mov rdx, rdi
call fcn.14000a1f0
lea ecx, [rbx + 1]
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_exit]
int3
xor eax, eax
mov rbx, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret
test sil, 4
je 0x14000778d
movzx eax, dil
or al, bl
test al, 3
jne 0x140007780
cmp rdi, 0x400
ja 0x140007780
xor edx, edx
lea rcx, [rdi + 3]
shr rcx, 2
lea rax, [rdi + rbx]
cmp rbx, rax
cmova rcx, rdx
test rcx, rcx
je 0x14000778d
xor eax, eax
mov rdi, rbx
rep stosd dword [rdi], eax
mov rax, rbx
mov rbx, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret
mov r8, rdi
xor edx, edx
mov rcx, rbx
call sub.VCRUNTIME140.dll_memset
mov rsi, qword [rsp + 0x40]
mov rax, rbx
mov rbx, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret