joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140001680
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 0x18], rbx
push rdi
sub rsp, 0x20
movsxd rdi, edx
mov rbx, r8
mov rax, rcx
test edx, edx
jne 0x1400016a4
xor eax, eax
mov rbx, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret
mov rcx, qword [r8 + 8]
mov qword [rsp + 0x30], rsi
test rcx, rcx
je 0x14000171d
mov r8d, edi
mov rdx, rax
call sub.zlib1.dll_gzread
mov esi, eax
cmp eax, edi
je 0x140001788
mov rcx, qword [rbx + 8]
call sub.zlib1.dll_gzeof
test eax, eax
jne 0x140001788
mov rcx, qword [rbx + 8]
lea rdx, [rsp + 0x38]
call sub.zlib1.dll_gzerror
cmp dword [0x14002da14], 4
jg 0x14000177e
cmp dword [rsp + 0x38], 0xffffffff
jne 0x140001707
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__errno]
mov ecx, dword [rax]
call fcn.140019cb0
mov r8, rax
lea rdx, str.could_not_read_from_input_file:__s
mov ecx, 4
call fcn.1400166d0
jmp 0x14000177e
mov r9, qword [rbx]
mov r8, rdi
mov edx, 1
mov rcx, rax
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
mov rsi, rax
cmp eax, edi
je 0x140001788
mov rcx, qword [rbx]
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_feof]
test eax, eax
jne 0x140001788
mov rcx, qword [rbx]
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_feof]
test eax, eax
je 0x140001764
cmp dword [0x14002da14], 4
jg 0x14000177e
lea rdx, str.could_not_read_from_input_file:_end_of_file
jmp 0x140001774
cmp dword [0x14002da14], 4
jg 0x14000177e
lea rdx, str.could_not_read_from_input_file:__m
mov ecx, 4
call fcn.1400166d0
mov ecx, 1
call fcn.1400133f0
mov rbx, qword [rsp + 0x40]
mov eax, esi
mov rsi, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret

Function at 0x140003940
Capabilities:
Allocate thread local storage
Initialize winsock library

Disassembly:
sub rsp, 0x1d8
mov rax, qword [0x14002d030]
xor rax, rsp
mov qword [rsp + 0x1c0], rax
cmp byte [0x14002d070], 0
jne 0x1400039ca
call qword [sym.imp.KERNEL32.dll_TlsAlloc]
mov dword [0x14002d0c8], eax
call qword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov ecx, 0x202
lea rdx, [rsp + 0x20]
mov dword [0x14002da10], eax
call qword [sym.imp.WS2_32.dll_WSAStartup]
test eax, eax
je 0x1400039b5
cmp dword [0x14002da14], 4
jg 0x1400039ab
mov r8d, eax
lea rdx, str.WSAStartup_failed:__d
mov ecx, 4
call fcn.1400166d0
mov ecx, 1
call fcn.1400133f0
xor edx, edx
lea rcx, [0x140004460]
call fcn.140013380
mov byte [0x14002d070], 1
mov rcx, qword [rsp + 0x1c0]
xor rcx, rsp
call fcn.14001e2e0
add rsp, 0x1d8
ret
Function at 0x140003c10
Capabilities:
Create thread

Disassembly:
push rbx
push rsi
push r15
sub rsp, 0x40
mov rsi, rcx
mov ecx, reloc.LIBPQ.dll_Ordinal_24
call fcn.140015f00
mov rbx, rax
xor r15d, r15d
movsxd rax, dword [rsi + 0x30]
mov dword [rbx], eax
mov qword [rbx + 8], r15
mov qword [rbx + 0x10], r15
cmp dword [rsi + 0x30], 1
je 0x140003e0d
mov rcx, rax
mov qword [rsp + 0x70], rbp
shl rcx, 3
call fcn.140015f10
movsxd rcx, dword [rbx]
shl rcx, 6
mov qword [rbx + 8], rax
call fcn.140015f10
mov qword [rbx + 0x10], rax
lea rax, [0x140004490]
mov qword [section..data], rax
movzx eax, byte [0x14002d098]
mov qword [0x14002d078], rbx
test al, al
jne 0x140003cae
lea rcx, [0x14002d0a0]
mov byte [0x14002d098], 1
call qword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
lea edx, [r15 + 1]
lea rcx, [0x140004510]
call qword [sym.imp.KERNEL32.dll_SetConsoleCtrlHandler]
lea rcx, [0x14002d0a0]
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rcx, qword [rsi + 0x1c0]
mov qword [rsi + 0x1c0], r15
test rcx, rcx
je 0x140003cd3
call sub.LIBPQ.dll_Ordinal_121
call qword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
cmp dword [0x14002da10], eax
jne 0x140003ce8
mov qword [0x14002d088], rsi
lea rcx, [0x14002d0a0]
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
xor ecx, ecx
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fflush]
mov ebp, r15d
cmp dword [rbx], r15d
jle 0x140003dd8
mov qword [rsp + 0x38], rdi
mov qword [rsp + 0x30], r14
mov r14, r15
nop word [rax + rax]
mov rdi, qword [rbx + 0x10]
lea rcx, [rsp + 0x60]
add rdi, r14
call fcn.140004f40
test eax, eax
js 0x140003d43
lea rcx, [rsp + 0x68]
call fcn.140004f40
test eax, eax
jns 0x140003d67
cmp dword [0x14002da14], 4
jg 0x140003d5d
lea rdx, str.could_not_create_communication_channels:__m
mov ecx, 4
call fcn.1400166d0
mov ecx, 1
call fcn.1400133f0
mov eax, dword [rsp + 0x68]
mov ecx, reloc.WS2_32.dll_recv
mov dword [rdi + 0x20], eax
mov eax, dword [rsp + 0x64]
mov dword [rdi + 0x24], eax
mov eax, dword [rsp + 0x60]
mov dword [rdi + 0x28], eax
mov eax, dword [rsp + 0x6c]
mov dword [rdi + 0x2c], eax
call fcn.140015f00
lea rcx, [rdi + 0x38]
mov r9, rax
mov qword [rsp + 0x28], rcx
lea r8, [0x1400046c0]
xor ecx, ecx
mov dword [rsp + 0x20], r15d
xor edx, edx
mov qword [rax], rsi
mov qword [rax + 8], rdi
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__beginthreadex]
inc ebp
mov dword [rdi], 1
add r14, 0x40
mov qword [rdi + 0x30], rax
cmp ebp, dword [rbx]
jl 0x140003d20
mov r14, qword [rsp + 0x30]
mov rdi, qword [rsp + 0x38]
mov rdx, qword [rsi + 0x1b8]
mov rcx, rsi
call fcn.1400042d0
lea rcx, [0x14002d0a0]
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
lea rcx, [0x14002d0a0]
mov qword [0x14002d090], rbx
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov rbp, qword [rsp + 0x70]
mov rax, rbx
add rsp, 0x40
pop r15
pop rsi
pop rbx
ret
Function at 0x1400051a0
Capabilities:
Receive data
Receive data on socket

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
push r14
push r15
sub rsp, 0x20
movsxd r15, ecx
mov ebp, reloc.LIBPQ.dll_Ordinal_64
mov ecx, ebp
call fcn.140015f00
xor ebx, ebx
mov r14d, ebx
mov rsi, rax
nop
xor r9d, r9d
movsxd rdx, ebx
add rdx, rsi
mov rcx, r15
lea r8d, [r9 + 1]
call qword [sym.imp.WS2_32.dll_recv]
mov edi, eax
test eax, eax
jns 0x1400051f9
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, 0x2746
je 0x140005222
test edi, edi
jle 0x140005222
cmp byte [r14 + rsi], 0
je 0x14000521d
inc ebx
inc r14
cmp ebx, ebp
jne 0x1400051d0
add ebp, 0x10
mov rcx, rsi
movsxd rdx, ebp
call fcn.140015f30
jmp 0x1400051cc
mov rax, rsi
jmp 0x14000522c
mov rcx, rsi
call fcn.140015fa0
xor eax, eax
mov rbx, qword [rsp + 0x40]
mov rbp, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
add rsp, 0x20
pop r15
pop r14
pop rdi
ret

Function at 0x1400053c0
Capabilities:
Terminate process

Disassembly:
push rbx
sub rsp, 0x20
mov rbx, rcx
call qword [rcx + 0x110]
cmp dword [rbx + 0x1f8], 0
je 0x1400053e6
mov rcx, qword [rbx + 0x1f0]
call sub.zlib1.dll_gzclose
jmp 0x140005406
mov rbx, qword [rbx + 0x1f0]
mov ecx, 1
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
cmp rbx, rax
je 0x140005433
mov rcx, rbx
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
test eax, eax
je 0x140005433
cmp dword [0x14002da14], 4
jg 0x140005424
lea rdx, str.could_not_close_output_file:__m
mov ecx, 4
call fcn.1400166d0
mov ecx, 1
add rsp, 0x20
pop rbx
jmp fcn.1400133f0
add rsp, 0x20
pop rbx
ret

Function at 0x140008bc0
Capabilities:
Write file on windows

Disassembly:
push rbx
sub rsp, 0x20
cmp qword [rcx + 0x268], 0
mov rbx, rcx
jbe 0x140008bd8
call fcn.14000bcd0
mov rcx, qword [rbx + 0x1b8]
mov dword [rbx + 0x1d8], 0
test rcx, rcx
je 0x140008c09
mov edx, dword [rbx + 0x1d4]
call sub.LIBPQ.dll_Ordinal_54
mov dword [rbx + 0x1d4], 0xffffffff
add rsp, 0x20
pop rbx
ret
lea rdx, str.SELECT_pg_catalog.lo_close_0___n_n
mov rcx, rbx
add rsp, 0x20
pop rbx
jmp fcn.140008e60
Function at 0x140008cb0
Capabilities:
Terminate process
Write file on windows

Disassembly:
sub rsp, 0x38
cmp dword [r9 + 0x1d8], 0
mov qword [rsp + 0x40], rbx
mov rbx, r9
mov qword [rsp + 0x48], rbp
mov rbp, rcx
mov qword [rsp + 0x50], rsi
mov rsi, rdx
mov qword [rsp + 0x20], r15
mov r15, r8
je 0x140008d84
mov rcx, qword [r9 + 0x268]
mov qword [rsp + 0x28], r14
mov r14, rdx
imul r14, r15
lea rax, [rcx + r14]
cmp rax, qword [r9 + 0x270]
jbe 0x140008d61
mov qword [rsp + 0x30], rdi
nop word [rax + rax]
mov rcx, qword [rbx + 0x268]
mov rdx, rbp
mov rdi, qword [rbx + 0x270]
sub rdi, rcx
add rcx, qword [rbx + 0x260]
mov r8, rdi
call sub.VCRUNTIME140.dll_memcpy
add qword [rbx + 0x268], rdi
mov rcx, rbx
add rbp, rdi
sub r14, rdi
call fcn.14000bcd0
mov rcx, qword [rbx + 0x268]
lea rax, [rcx + r14]
cmp rax, qword [rbx + 0x270]
ja 0x140008d10
mov rdi, qword [rsp + 0x30]
add rcx, qword [rbx + 0x260]
mov r8, r14
mov rdx, rbp
call sub.VCRUNTIME140.dll_memcpy
add qword [rbx + 0x268], r14
mov eax, r15d
mov r14, qword [rsp + 0x28]
jmp 0x140008dfd
cmp dword [r9 + 0x1f8], 0
je 0x140008da3
mov rdx, rcx
imul r8d, esi
mov rcx, qword [r9 + 0x1f0]
call sub.zlib1.dll_gzwrite
jmp 0x140008e00
mov rax, qword [r9 + 0x190]
test rax, rax
je 0x140008dc0
mov rdx, rcx
mov r8, rsi
imul r8, r15
mov rcx, rbx
call rax
jmp 0x140008e00
mov rax, qword [r9 + 8]
test rax, rax
je 0x140008df0
cmp dword [rax + 0x110], 0
je 0x140008df0
cmp qword [r9 + 0x1b8], 0
je 0x140008df0
mov rdx, rcx
mov r8, rsi
imul r8, r15
mov rcx, rbx
call fcn.14000e9f0
jmp 0x140008e00
mov r9, qword [r9 + 0x1f0]
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
imul eax, esi
mov rbp, qword [rsp + 0x48]
mov rbx, qword [rsp + 0x40]
imul rsi, r15
mov r15, qword [rsp + 0x20]
cdqe
cmp rax, rsi
mov rsi, qword [rsp + 0x50]
je 0x140008e47
cmp dword [0x14002da14], 4
jg 0x140008e39
lea rdx, str.could_not_write_to_output_file:__m
mov ecx, 4
call fcn.1400166d0
mov ecx, 1
add rsp, 0x38
jmp fcn.1400133f0
add rsp, 0x38
ret
Function at 0x140008e60
Capabilities:
Write file on windows

Disassembly:
mov rax, rsp
mov qword [rax + 0x10], rdx
mov qword [rax + 0x18], r8
mov qword [rax + 0x20], r9
push rbp
push rsi
sub rsp, 0x58
mov qword [rax - 0x18], rbx
mov rbx, rcx
mov qword [rax - 0x20], rdi
mov qword [rax - 0x28], r14
mov qword [rax - 0x30], r15
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__errno]
mov ecx, Ordinal_130
mov r14d, dword [rax]
call fcn.140015f00
mov rbp, rax
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__errno]
lea r9, [rsp + 0x80]
mov edx, Ordinal_130
mov rcx, rbp
mov dword [rax], r14d
mov r8, qword [rsp + 0x78]
call fcn.140016320
mov rsi, rax
cmp rax, 0x80
jb 0x140008f10
nop dword [rax]
mov rcx, rbp
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov rcx, rsi
mov rdi, rsi
call fcn.140015f00
mov rbp, rax
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__errno]
lea r9, [rsp + 0x80]
mov rdx, rsi
mov rcx, rbp
mov dword [rax], r14d
mov r8, qword [rsp + 0x78]
call fcn.140016320
mov rsi, rax
cmp rax, rdi
jae 0x140008ed0
cmp dword [rbx + 0x1d8], 0
mov r15, rbp
je 0x140008fa9
mov rcx, qword [rbx + 0x268]
mov r14, rsi
lea rax, [rcx + rsi]
cmp rax, qword [rbx + 0x270]
jbe 0x140008f8c
nop word [rax + rax]
mov rcx, qword [rbx + 0x268]
mov rdx, r15
mov rdi, qword [rbx + 0x270]
sub rdi, rcx
add rcx, qword [rbx + 0x260]
mov r8, rdi
call sub.VCRUNTIME140.dll_memcpy
add qword [rbx + 0x268], rdi
mov rcx, rbx
add r15, rdi
sub r14, rdi
call fcn.14000bcd0
mov rcx, qword [rbx + 0x268]
lea rax, [rcx + r14]
cmp rax, qword [rbx + 0x270]
ja 0x140008f40
add rcx, qword [rbx + 0x260]
mov r8, r14
mov rdx, r15
call sub.VCRUNTIME140.dll_memcpy
add qword [rbx + 0x268], r14
mov eax, esi
jmp 0x140009023
cmp dword [rbx + 0x1f8], 0
je 0x140008fc6
mov rcx, qword [rbx + 0x1f0]
mov r8d, esi
mov rdx, rbp
call sub.zlib1.dll_gzwrite
jmp 0x140009023
mov rax, qword [rbx + 0x190]
test rax, rax
je 0x140008fdf
mov r8, rsi
mov rdx, rbp
mov rcx, rbx
call rax
jmp 0x140009023
mov rax, qword [rbx + 8]
test rax, rax
je 0x14000900b
cmp dword [rax + 0x110], 0
je 0x14000900b
cmp qword [rbx + 0x1b8], 0
je 0x14000900b
mov r8, rsi
mov rdx, rbp
mov rcx, rbx
call fcn.14000e9f0
jmp 0x140009023
mov r9, qword [rbx + 0x1f0]
mov r8, rsi
mov edx, 1
mov rcx, rbp
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
mov r15, qword [rsp + 0x38]
mov r14, qword [rsp + 0x40]
mov rdi, qword [rsp + 0x48]
mov rbx, qword [rsp + 0x50]
cdqe
cmp rax, rsi
je 0x140009062
cmp dword [0x14002da14], 4
jg 0x140009058
lea rdx, str.could_not_write_to_output_file:__m
mov ecx, 4
call fcn.1400166d0
mov ecx, 1
call fcn.1400133f0
mov rcx, rbp
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov eax, esi
add rsp, 0x58
pop rsi
pop rbp
ret
Function at 0x140009400
Capabilities:
Terminate process

Disassembly:
push rbx
sub rsp, 0x20
mov rbx, rcx
add rcx, 0xd0
cmp qword [rcx], 0
je 0x140009447
call fcn.140015de0
test rax, rax
je 0x140009447
cmp dword [0x14002da14], 4
jg 0x14000943d
mov r8, rax
lea rdx, str.schema___s__not_found
mov ecx, 4
call fcn.1400166d0
mov ecx, 1
call fcn.1400133f0
lea rcx, [rbx + 0x100]
cmp qword [rcx], 0
je 0x140009485
call fcn.140015de0
test rax, rax
je 0x140009485
cmp dword [0x14002da14], 4
jg 0x14000947b
mov r8, rax
lea rdx, str.table___s__not_found
mov ecx, 4
call fcn.1400166d0
mov ecx, 1
call fcn.1400133f0
lea rcx, [rbx + 0xb0]
cmp qword [rcx], 0
je 0x1400094c3
call fcn.140015de0
test rax, rax
je 0x1400094c3
cmp dword [0x14002da14], 4
jg 0x1400094b9
mov r8, rax
lea rdx, str.index___s__not_found
mov ecx, 4
call fcn.1400166d0
mov ecx, 1
call fcn.1400133f0
lea rcx, [rbx + 0xc0]
cmp qword [rcx], 0
je 0x140009501
call fcn.140015de0
test rax, rax
je 0x140009501
cmp dword [0x14002da14], 4
jg 0x1400094f7
mov r8, rax
lea rdx, str.function___s__not_found
mov ecx, 4
call fcn.1400166d0
mov ecx, 1
call fcn.1400133f0
lea rcx, [rbx + 0xf0]
cmp qword [rcx], 0
je 0x140009544
call fcn.140015de0
test rax, rax
je 0x140009544
cmp dword [0x14002da14], 4
jg 0x140009535
mov r8, rax
lea rdx, str.trigger___s__not_found
mov ecx, 4
call fcn.1400166d0
mov ecx, 1
add rsp, 0x20
pop rbx
jmp fcn.1400133f0
add rsp, 0x20
pop rbx
ret
Function at 0x14000a100
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
mov rdi, qword [rcx + 8]
lea rdx, str.SET_statement_timeout__0__n
mov rbx, rcx
call fcn.140008e60
lea rdx, str.SET_lock_timeout__0__n
mov rcx, rbx
call fcn.140008e60
lea rdx, str.SET_idle_in_transaction_session_timeout__0__n
mov rcx, rbx
call fcn.140008e60
mov ecx, dword [rbx + 0x40]
call sub.LIBPQ.dll_Ordinal_92
mov r8, rax
lea rdx, str.SET_client_encoding___s__n
mov rcx, rbx
call fcn.140008e60
cmp byte [rbx + 0x44], 0
lea rax, [0x140022b10]
lea r8, [0x140022b14]
mov rcx, rbx
cmovne r8, rax
lea rdx, str.SET_standard_conforming_strings___s__n
call fcn.140008e60
test rdi, rdi
je 0x14000a19f
mov rcx, qword [rdi + 0x20]
test rcx, rcx
je 0x14000a19f
call fcn.140014900
mov r8, rax
lea rdx, str.SET_ROLE__s__n
mov rcx, rbx
call fcn.140008e60
mov r8, qword [rbx + 0x48]
test r8, r8
je 0x14000a1b7
lea rdx, [0x140020b40]
mov rcx, rbx
call fcn.140008e60
lea rdx, str.SET_check_function_bodies__false__n
mov rcx, rbx
call fcn.140008e60
lea rdx, str.SET_xmloption__content__n
mov rcx, rbx
call fcn.140008e60
lea rdx, str.SET_client_min_messages__warning__n
mov rcx, rbx
call fcn.140008e60
cmp byte [rbx + 0x44], 0
jne 0x14000a1f9
lea rdx, str.SET_escape_string_warning__off__n
mov rcx, rbx
call fcn.140008e60
test rdi, rdi
je 0x14000a20e
cmp dword [rdi + 0x158], 0
lea rdx, str.SET_row_security__on__n
jne 0x14000a215
lea rdx, str.SET_row_security__off__n
mov rcx, rbx
call fcn.140008e60
lea rdx, [0x140021abc]
mov rcx, rbx
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
jmp fcn.140008e60

Function at 0x14000d7e0
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
mov r9, qword [rcx + 0x1e8]
mov rax, rdx
mov rdi, rcx
mov edx, 1
mov rcx, rax
mov rbx, r8
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
cmp rax, rbx
je 0x14000d854
mov rcx, qword [rdi + 0x1e8]
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_feof]
test eax, eax
je 0x14000d830
cmp dword [0x14002da14], 4
jg 0x14000d84a
lea rdx, str.could_not_read_from_input_file:_end_of_file
jmp 0x14000d840
cmp dword [0x14002da14], 4
jg 0x14000d84a
lea rdx, str.could_not_read_from_input_file:__m
mov ecx, 4
call fcn.1400166d0
mov ecx, 1
call fcn.1400133f0
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret
Function at 0x14000e410
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
push r14
sub rsp, 0x20
mov r14, qword [rcx + 0x238]
xor edi, edi
mov ebp, edi
mov rsi, rcx
call fcn.140008690
movsxd rbx, eax
test eax, eax
je 0x14000e52b
cmp dword [r14 + 8], 0
je 0x14000e483
mov rcx, qword [rsi + 0x1e8]
mov r8d, 1
mov rdx, rbx
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll__fseeki64]
test eax, eax
je 0x14000e50a
cmp dword [0x14002da14], 4
jg 0x14000e500
lea rdx, str.error_during_file_seek:__m
jmp 0x14000e4f6
movsxd rax, ebp
cmp rbx, rax
jbe 0x14000e4a6
test rdi, rdi
je 0x14000e499
mov rcx, rdi
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov rcx, rbx
call fcn.140015f00
mov rdi, rax
mov ebp, ebx
mov r9, qword [rsi + 0x1e8]
mov r8, rbx
mov edx, 1
mov rcx, rdi
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
cmp rax, rbx
je 0x14000e50a
mov rcx, qword [rsi + 0x1e8]
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_feof]
test eax, eax
je 0x14000e4e6
cmp dword [0x14002da14], 4
jg 0x14000e500
lea rdx, str.could_not_read_from_input_file:_end_of_file
jmp 0x14000e4f6
cmp dword [0x14002da14], 4
jg 0x14000e500
lea rdx, str.could_not_read_from_input_file:__m
mov ecx, 4
call fcn.1400166d0
mov ecx, 1
call fcn.1400133f0
mov rcx, rsi
call fcn.140008690
movsxd rbx, eax
test eax, eax
jne 0x14000e448
test rdi, rdi
je 0x14000e52b
mov rcx, rdi
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
mov rdi, qword [rsp + 0x48]
add rsp, 0x20
pop r14
ret

Function at 0x14000e980
Capabilities:
Reference sql statements
Write file on windows

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
mov rbx, rcx
mov edi, edx
mov rcx, qword [rcx + 0x1b8]
test rcx, rcx
je 0x14000e9c6
call sub.LIBPQ.dll_Ordinal_113
cmp eax, 0x15f90
jge 0x14000e9c6
mov r9d, edi
lea rdx, str.SELECT_CASE_WHEN_EXISTS_SELECT_1_FROM_pg_catalog.pg_largeobject_WHERE_loid___u__THEN_pg_catalog.lo_unlink__u__END__n
mov r8d, edi
mov rcx, rbx
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
jmp fcn.140008e60
mov r8d, edi
lea rdx, str.SELECT_pg_catalog.lo_unlink_oid__FROM_pg_catalog.pg_largeobject_metadata_WHERE_oid___u__n
mov rcx, rbx
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
jmp fcn.140008e60
Function at 0x140010c70
Capabilities:
Terminate process

Disassembly:
push rbx
sub rsp, 0x20
mov rbx, rcx
lea rax, [0x140010d80]
mov qword [rcx + 0xe0], rax
lea rax, [0x140010e20]
mov qword [rcx + 0xe8], rax
lea rax, [0x140010e40]
mov qword [rcx + 0xf0], rax
lea rax, [0x140010e50]
mov qword [rcx + 0x100], rax
lea rax, [0x140010e60]
mov qword [rcx + 0x110], rax
xor ecx, ecx
lea rax, [0x140010e70]
mov qword [rbx + 0x118], rcx
mov qword [rbx + 0x138], rax
lea rax, [0x140010f40]
mov qword [rbx + 0x140], rax
lea rax, [0x140010f60]
mov qword [rbx + 0x150], rax
lea rax, [0x140011010]
mov qword [rbx + 0x158], rax
lea rax, [0x140011030]
mov qword [rbx + 0x180], rcx
mov qword [rbx + 0x188], rcx
mov ecx, 0x4000
mov qword [rbx + 0x148], rax
mov qword [rbx + 0x270], 0x4000
call fcn.140015f00
cmp dword [rbx + 0x230], 2
mov qword [rbx + 0x260], rax
jne 0x140010d6a
cmp dword [0x14002da14], 4
jg 0x140010d5b
lea rdx, str.this_format_cannot_be_read
mov ecx, 4
call fcn.1400166d0
mov ecx, 1
add rsp, 0x20
pop rbx
jmp fcn.1400133f0
add rsp, 0x20
pop rbx
ret
Function at 0x140012cf0
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
push rsi
push rdi
push r12
push r14
push r15
sub rsp, 0x20
mov r12, qword [rcx + 0x238]
mov rbp, rcx
mov rcx, qword [rcx + 0xc8]
xor r14d, r14d
mov rbx, r9
mov rdi, r8
mov r15, rdx
mov esi, r14d
mov rax, qword [rbp + 0xc0]
sub rax, rcx
je 0x140012d5b
mov rdx, qword [rbp + 0xb0]
cmp rax, r8
mov r14, r8
cmovb r14, rax
add rdx, rcx
mov r8, r14
mov rcx, r15
call sub.VCRUNTIME140.dll_memcpy
add qword [rbp + 0xc8], r14
sub rdi, r14
test rdi, rdi
je 0x140012eb3
mov rbp, qword [rsp + 0x70]
test rbp, rbp
je 0x140012ddf
lea rcx, [r14 + r15]
mov r9, rbp
mov r8, rdi
mov edx, 1
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
mov rsi, rax
cmp rax, rdi
je 0x140012eb3
mov rcx, rbp
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_feof]
test eax, eax
jne 0x140012eb3
mov rcx, rbp
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_feof]
test eax, eax
je 0x140012dc6
cmp dword [0x14002da14], 4
jg 0x140012ea9
lea rdx, str.could_not_read_from_input_file:_end_of_file
jmp 0x140012e9f
cmp dword [0x14002da14], 4
jg 0x140012ea9
lea rdx, str.could_not_read_from_input_file:__m
jmp 0x140012e9f
test rbx, rbx
je 0x140012e8f
mov rcx, qword [rbx]
lea rax, [r14 + r15]
test rcx, rcx
je 0x140012e5b
mov r8d, edi
mov rdx, rax
call sub.zlib1.dll_gzread
movsxd rsi, eax
cmp rsi, rdi
je 0x140012eb3
mov rcx, qword [rbx]
call sub.zlib1.dll_gzeof
test eax, eax
jne 0x140012eb3
mov rcx, qword [rbx]
lea rdx, [rsp + 0x50]
call sub.zlib1.dll_gzerror
cmp dword [0x14002da14], 4
jg 0x140012ea9
cmp dword [rsp + 0x50], 0xffffffff
jne 0x140012e45
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__errno]
mov ecx, dword [rax]
call fcn.140019cb0
mov r8, rax
lea rdx, str.could_not_read_from_input_file:__s
mov ecx, 4
call fcn.1400166d0
jmp 0x140012ea9
mov r9, qword [rbx + 8]
mov r8, rdi
mov edx, 1
mov rcx, rax
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
mov rsi, rax
cmp rax, rdi
je 0x140012eb3
mov rcx, qword [rbx + 8]
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_feof]
test eax, eax
jne 0x140012eb3
mov rcx, qword [rbx + 8]
jmp 0x140012da3
cmp dword [0x14002da14], 4
jg 0x140012ea9
lea rdx, str.internal_error____neither_th_nor_fh_specified_in_tarReadRaw__
mov ecx, 4
call fcn.1400166d0
mov ecx, 1
call fcn.1400133f0
mov rbx, qword [rsp + 0x58]
lea rax, [rsi + r14]
add qword [r12 + 0x20], rax
lea rax, [rsi + r14]
mov rbp, qword [rsp + 0x60]
add rsp, 0x20
pop r15
pop r14
pop r12
pop rdi
pop rsi
ret
Function at 0x1400131a0
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x20], r9
push rbx
push rbp
push rsi
push rdi
push r14
push r15
sub rsp, 0x38
mov r14, rdx
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__errno]
mov ecx, Ordinal_130
mov ebp, dword [rax]
call fcn.140015f00
mov rsi, rax
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__errno]
lea r9, [rsp + 0x88]
mov edx, Ordinal_130
mov rcx, rsi
mov dword [rax], ebp
mov r8, qword [rsp + 0x80]
call fcn.140016320
mov rdi, rax
cmp rax, 0x80
jb 0x140013242
nop
mov rcx, rsi
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov rcx, rdi
mov rbx, rdi
call fcn.140015f00
mov rsi, rax
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__errno]
lea r9, [rsp + 0x88]
mov rdx, rdi
mov rcx, rsi
mov dword [rax], ebp
mov r8, qword [rsp + 0x80]
call fcn.140016320
mov rdi, rax
cmp rax, rbx
jae 0x140013200
mov rcx, qword [r14]
test rcx, rcx
je 0x14001325a
mov r8d, edi
mov rdx, rsi
call sub.zlib1.dll_gzwrite
movsxd rbx, eax
jmp 0x140013272
mov r9, qword [r14 + 8]
mov r8, rdi
mov edx, 1
mov rcx, rsi
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
mov rbx, rax
add qword [r14 + 0x30], rbx
mov rcx, rsi
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov eax, ebx
add rsp, 0x38
pop r15
pop r14
pop rdi
pop rsi
pop rbp
pop rbx
ret

Function at 0x1400133f0
Capabilities:
Terminate process

Disassembly:
push rsi
sub rsp, 0x20
mov eax, dword [0x14002d0e8]
mov esi, ecx
sub eax, 1
mov qword [rsp + 0x38], rdi
movsxd rdi, eax
js 0x140013438
mov qword [rsp + 0x30], rbx
lea rax, [0x14002d0f8]
mov rbx, rdi
shl rbx, 4
add rbx, rax
mov rdx, qword [rbx]
mov ecx, esi
call qword [rbx - 8]
sub rdi, 1
lea rbx, [rbx - 0x10]
jns 0x140013421
mov rbx, qword [rsp + 0x30]
cmp byte [0x14002d070], 0
mov rdi, qword [rsp + 0x38]
je 0x14001345c
call qword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
cmp eax, dword [0x14002da10]
je 0x14001345c
mov ecx, esi
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__endthreadex]
mov ecx, esi
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_exit]
int3