joyce8/EMBER2024-capa huggingface dataset:
Function at 0x41ef00
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, ecx
cmp dword [esi + 4], 0
jne 0x41efcf
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov dword [esi + 4], eax
test eax, eax
je 0x41efc8
push edi
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.OpenA
push eax
call edi
mov ecx, dword [esi + 4]
push str.CloseA
push ecx
mov dword [esi + 8], eax
call edi
mov edx, dword [esi + 4]
push str.TraceWriteA
push edx
mov dword [esi + 0xc], eax
call edi
mov dword [esi + 0x10], eax
mov eax, dword [esi + 4]
push str.DumpWriteA
push eax
call edi
mov ecx, dword [esi + 4]
push str.OpenW
push ecx
mov dword [esi + 0x14], eax
call edi
mov edx, dword [esi + 4]
push str.CloseW
push edx
mov dword [esi + 0x18], eax
call edi
mov dword [esi + 0x1c], eax
mov eax, dword [esi + 4]
push str.TraceWriteW
push eax
call edi
mov ecx, dword [esi + 4]
push str.DumpWriteW
push ecx
mov dword [esi + 0x20], eax
call edi
cmp dword [esi + 8], 0
mov dword [esi + 0x24], eax
pop edi
je 0x41efc8
cmp dword [esi + 0xc], 0
je 0x41efc8
cmp dword [esi + 0x10], 0
je 0x41efc8
cmp dword [esi + 0x14], 0
je 0x41efc8
cmp dword [esi + 0x18], 0
je 0x41efc8
cmp dword [esi + 0x1c], 0
je 0x41efc8
cmp dword [esi + 0x20], 0
je 0x41efc8
test eax, eax
jne 0x41efcf
xor eax, eax
pop esi
pop ebp
ret 4
mov eax, 1
pop esi
pop ebp
ret 4

Function at 0x41fd00
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20c
mov eax, dword [0x447854]
xor eax, ebp
mov dword [ebp - 4], eax
push edi
mov edi, ecx
mov ecx, dword [edi + 4]
xor eax, eax
test ecx, ecx
je 0x41fdcc
cmp dword [ecx + 4], eax
setne al
test eax, eax
jne 0x41fdcc
mov ecx, 0x208
lea eax, [ebp - 0x20c]
lea esp, [esp]
mov byte [eax], 0
inc eax
dec ecx
jne 0x41fd40
push esi
push 0x104
lea eax, [ebp - 0x20c]
push eax
push str.BrLogAPI
push str.SoftwareBrotherBrUtilities
push reloc.OLEAUT32.dll_SysReAllocString
call fcn.0041ee90
push 0x104
lea ecx, [ebp - 0x20c]
push ecx
mov esi, eax
call dword [sym.imp.SHELL32.dll_DoEnvironmentSubstW]
test esi, esi
pop esi
jne 0x41fd93
lea edx, [ebp - 0x20c]
push edx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x41fdbd
mov ecx, 0x208
lea eax, [ebp - 0x20c]
mov edi, edi
mov byte [eax], 0
inc eax
dec ecx
jne 0x41fda0
push 0x43cd80
push 0x104
lea eax, [ebp - 0x20c]
push eax
call fcn.0041f290
lea ecx, [ebp - 0x20c]
push ecx
mov ecx, dword [edi + 4]
call fcn.0041ef00
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop edi
call fcn.00423a19
mov esp, ebp
pop ebp
ret

Function at 0x423a19
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x447854]
jne 0x423a23
repz ret
jmp fcn.004278fc
Function at 0x42d80c
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x447854]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov dword [ebp - 0x20], eax
mov eax, dword [ebp + 0xc]
push esi
push edi
mov dword [ebp - 0x1c], eax
call fcn.00426575
and dword [ebp - 0x14], 0
cmp dword [0x449c14], 0
mov dword [ebp - 0x18], eax
jne 0x42d8bf
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov ebx, eax
test ebx, ebx
je 0x42d967
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x43f210
push ebx
call edi
test eax, eax
je 0x42d967
mov esi, dword [sym.imp.KERNEL32.dll_EncodePointer]
push eax
call esi
push str.GetActiveWindow
push ebx
mov dword [0x449c14], eax
call edi
push eax
call esi
push str.GetLastActivePopup
push ebx
mov dword [0x449c18], eax
call edi
push eax
call esi
push str.GetUserObjectInformationW
push ebx
mov dword [0x449c1c], eax
call edi
push eax
call esi
mov dword [0x449c24], eax
test eax, eax
je 0x42d8bf
push str.GetProcessWindowStation
push ebx
call edi
push eax
call esi
mov dword [0x449c20], eax
mov eax, dword [0x449c20]
mov ecx, dword [ebp - 0x18]
mov esi, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, ecx
je 0x42d918
cmp dword [0x449c24], ecx
je 0x42d918
push eax
call esi
push dword [0x449c24]
mov edi, eax
call esi
mov ebx, eax
test edi, edi
je 0x42d918
test ebx, ebx
je 0x42d918
call edi
test eax, eax
je 0x42d90f
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call ebx
test eax, eax
je 0x42d90f
test byte [ebp - 8], 1
jne 0x42d918
or dword [ebp + 0x10], 0x200000
jmp 0x42d94b
mov eax, dword [0x449c18]
cmp eax, dword [ebp - 0x18]
je 0x42d94b
push eax
call esi
test eax, eax
je 0x42d94b
call eax
mov dword [ebp - 0x14], eax
test eax, eax
je 0x42d94b
mov eax, dword [0x449c1c]
cmp eax, dword [ebp - 0x18]
je 0x42d94b
push eax
call esi
test eax, eax
je 0x42d94b
push dword [ebp - 0x14]
call eax
mov dword [ebp - 0x14], eax
push dword [0x449c14]
call esi
test eax, eax
je 0x42d967
push dword [ebp + 0x10]
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
push dword [ebp - 0x14]
call eax
jmp 0x42d969
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00423a19
leave
ret
Function at 0x4074c0
Capabilities:
Get comspec environment variable
Query environment variable

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
push edi
test eax, eax
jne 0x407518
push esi
mov esi, dword [sym.imp.MSVCR120.dll_getenv]
push str.SHELL
call esi
mov ecx, eax
add esp, 4
test ecx, ecx
jne 0x4074f6
push str.COMSPEC
call esi
add esp, 4
mov ecx, str.cmd.exe
test eax, eax
cmovne ecx, eax
push ecx
push str.__s_
call fcn.00425060
mov esi, eax
push esi
call fcn.00429040
push esi
mov edi, eax
call dword [sym.imp.MSVCR120.dll_free]
add esp, 0x10
pop esi
jmp 0x407523
push eax
call fcn.00429040
add esp, 4
mov edi, eax
cmp edi, 0x7f
je 0x407532
cmp edi, 0xffffffff
je 0x407532
mov al, 1
pop edi
pop ebp
ret
push str._:_failed_n
call fcn.00408fb0
add esp, 4
xor al, al
pop edi
pop ebp
ret
Function at 0x408bb0
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov edi, dword [sym.imp.MSVCR120.dll_getenv]
push str.PSQL_EDITOR
call edi
mov esi, eax
add esp, 4
test esi, esi
jne 0x408bf0
push str.EDITOR
call edi
mov esi, eax
add esp, 4
test esi, esi
jne 0x408bf0
push str.VISUAL
call edi
add esp, 4
mov esi, str.notepad.exe
test eax, eax
cmovne esi, eax
mov ebx, dword [ebp + 0xc]
test ebx, ebx
jle 0x408c2e
push str.PSQL_EDITOR_LINENUMBER_ARG
call edi
add esp, 4
test eax, eax
jne 0x408c19
push str.environment_variable_PSQL_EDITOR_LINENUMBER_ARG_must_be_set_to_specify_a_line_number_n
call fcn.00408fb0
add esp, 4
xor al, al
pop edi
pop esi
pop ebx
pop ebp
ret
push dword [ebp + 8]
push ebx
push eax
push esi
push str.__s___s_d___s_
call fcn.00425060
add esp, 0x14
jmp 0x408c3f
push dword [ebp + 8]
push esi
push str.__s____s_
call fcn.00425060
add esp, 0xc
mov ebx, eax
push ebx
call fcn.00429040
mov edi, eax
add esp, 4
cmp edi, 0xffffffff
jne 0x408c61
push esi
push str.could_not_start_editor___s__n
call fcn.00408fb0
add esp, 8
jmp 0x408c73
cmp edi, 0x7f
jne 0x408c73
push str.could_not_start__bin_sh_n
call fcn.00408fb0
add esp, 4
push ebx
call dword [sym.imp.MSVCR120.dll_free]
add esp, 4
xor eax, eax
test edi, edi
sete al
pop edi
pop esi
pop ebx
pop ebp
ret
Function at 0x409200
Capabilities:
Check for time delay via queryperformancecounter

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
cmp dword [0x456300], 0
xorps xmm0, xmm0
movsd qword [ebp - 0x10], xmm0
jne 0x40922a
push str.You_are_currently_not_connected_to_a_database._n
call fcn.00408fb0
add esp, 4
xor eax, eax
mov esp, ebp
pop ebp
ret
push 0x455c50
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov eax, dword [0x455c4c]
mov dword [0x455c4c], 0
test eax, eax
je 0x409251
push eax
call sub.LIBPQ.dll_Ordinal_121
add esp, 4
push dword [0x456300]
call sub.LIBPQ.dll_Ordinal_120
add esp, 4
mov dword [0x455c4c], eax
push 0x455c50
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
cmp byte [0x4563b0], 0
je 0x409282
lea eax, [ebp - 0x18]
push eax
call dword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
push esi
push dword [ebp + 8]
push dword [0x456300]
call sub.LIBPQ.dll_Ordinal_21
add esp, 8
mov esi, eax
push 0x455c50
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov eax, dword [0x455c4c]
mov dword [0x455c4c], 0
test eax, eax
je 0x4092bd
push eax
call sub.LIBPQ.dll_Ordinal_121
add esp, 4
push 0x455c50
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
push esi
call fcn.0040a890
add esp, 4
test al, al
jne 0x4092e5
push esi
call sub.LIBPQ.dll_Ordinal_48
add esp, 4
xor eax, eax
pop esi
mov esp, ebp
pop ebp
ret
cmp byte [0x4563b0], 0
je 0x40933f
lea eax, [ebp - 8]
push eax
call dword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
mov eax, dword [ebp - 0x18]
sub dword [ebp - 8], eax
mov eax, dword [ebp - 0x14]
sbb dword [ebp - 4], eax
lea eax, [ebp - 0x20]
push eax
call dword [sym.imp.KERNEL32.dll_QueryPerformanceFrequency]
mov edx, dword [ebp - 4]
mov ecx, dword [ebp - 8]
call fcn.0042a2ef
mulsd xmm0, qword [0x42edc8]
mov edx, dword [ebp - 0x1c]
mov ecx, dword [ebp - 0x20]
movsd qword [ebp - 0x10], xmm0
call fcn.0042a2ef
movsd xmm1, qword [ebp - 0x10]
divsd xmm1, xmm0
movsd qword [ebp - 0x10], xmm1
cmp byte [0x455cb8], 0
push esi
jne 0x4092d6
call sub.LIBPQ.dll_Ordinal_33
add esp, 4
cmp eax, 8
ja case.0x40935a.5
jmp dword [eax*4 + 0x409414]
push dword [0x4563b4]
push 0
push dword [0x456308]
push dword [ebp + 0xc]
push esi
call fcn.004180b0
jmp 0x409397
push esi
call sub.LIBPQ.dll_Ordinal_42
push eax
mov eax, dword [ebp + 0xc]
push dword [eax + 0x54]
push str._s_n_s_n_n
push dword [0x456308]
call fcn.00426490
add esp, 0x14
push esi
call sub.LIBPQ.dll_Ordinal_48
push dword [0x456308]
call dword [sym.imp.MSVCR120.dll_fflush]
add esp, 8
cmp byte [0x4563b0], 0
je 0x4093db
movsd xmm0, qword [ebp - 0x10]
sub esp, 8
movsd qword [esp], xmm0
push str.Time:__.3f_ms_n
call sub.libintl_8.dll_libintl_gettext
add esp, 4
push eax
call fcn.004264b0
add esp, 0xc
mov eax, 1
pop esi
mov esp, ebp
pop ebp
ret
push str.watch_cannot_be_used_with_an_empty_query_n
jmp 0x4093f8
push str.watch_cannot_be_used_with_COPY_n
jmp 0x4093f8
push str.unexpected_result_status_for_watch_n
call sub.libintl_8.dll_libintl_gettext
push eax
call fcn.00408fb0
push esi
call sub.LIBPQ.dll_Ordinal_48
add esp, 0xc
or eax, 0xffffffff
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x40a7e0
Capabilities:
Terminate process

Disassembly:
push ebx
push dword [0x456300]
call sub.LIBPQ.dll_Ordinal_14
add esp, 4
cmp eax, 1
setne bl
test bl, bl
jne 0x40a884
cmp byte [0x456390], bl
jne 0x40a81a
push str.connection_to_server_was_lost_n
call fcn.00408fb0
add esp, 4
push 2
call dword [sym.imp.MSVCR120.dll_exit]
push str.The_connection_to_the_server_was_lost._Attempting_reset:
call fcn.00408fb0
push dword [0x456300]
call sub.LIBPQ.dll_Ordinal_5
push dword [0x456300]
call sub.LIBPQ.dll_Ordinal_14
add esp, 0xc
cmp eax, 1
setne bl
test bl, bl
jne 0x40a877
push str.Failed._n
call fcn.00408fb0
push dword [0x456300]
call sub.LIBPQ.dll_Ordinal_4
add esp, 8
mov dword [0x456300], 0
call fcn.004090c0
call fcn.00404000
mov al, bl
pop ebx
ret
push str.Succeeded._n
call fcn.00408fb0
add esp, 4
mov al, bl
pop ebx
ret

Function at 0x40b410
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
lea eax, [ebp - 4]
push 0
push eax
push edi
mov bl, 1
call sub.LIBPQ.dll_Ordinal_105
mov ecx, dword [ebp + 0xc]
mov esi, eax
add esp, 0xc
test esi, esi
js 0x40b497
mov eax, dword [ebp - 4]
test eax, eax
je 0x40b47b
test bl, bl
je 0x40b472
push ecx
push esi
push 1
push eax
call dword [sym.imp.MSVCR120.dll_fwrite]
add esp, 0x10
cmp eax, esi
je 0x40b46f
call dword [sym.imp.MSVCR120.dll__errno]
push dword [eax]
call dword [sym.imp.MSVCR120.dll_strerror]
push eax
push str.could_not_write_COPY_data:__s_n
call fcn.00408fb0
add esp, 0xc
xor bl, bl
mov eax, dword [ebp - 4]
push eax
call sub.LIBPQ.dll_Ordinal_95
add esp, 4
push 0
lea eax, [ebp - 4]
push eax
push edi
call sub.LIBPQ.dll_Ordinal_105
mov ecx, dword [ebp + 0xc]
mov esi, eax
add esp, 0xc
test esi, esi
jns 0x40b434
test bl, bl
je 0x40b4c3
push ecx
call dword [sym.imp.MSVCR120.dll_fflush]
add esp, 4
test eax, eax
je 0x40b4c3
call dword [sym.imp.MSVCR120.dll__errno]
push dword [eax]
call dword [sym.imp.MSVCR120.dll_strerror]
push eax
push str.could_not_write_COPY_data:__s_n
call fcn.00408fb0
add esp, 0xc
xor bl, bl
cmp esi, 0xfffffffe
jne 0x40b4de
push edi
call sub.LIBPQ.dll_Ordinal_15
push eax
push str.COPY_data_transfer_failed:__s
call fcn.00408fb0
add esp, 0xc
xor bl, bl
push edi
call sub.LIBPQ.dll_Ordinal_24
mov ecx, eax
mov eax, dword [ebp + 0x10]
push ecx
mov dword [eax], ecx
call sub.LIBPQ.dll_Ordinal_33
add esp, 8
cmp eax, 1
je 0x40b516
push edi
call sub.LIBPQ.dll_Ordinal_15
push eax
push 0x42b548
call fcn.00408fb0
add esp, 0xc
xor al, al
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
pop edi
pop esi
mov al, bl
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x40dda0
Capabilities:
Reference sql statements

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x98
mov eax, dword [0x455c20]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [0x456394]
mov ecx, 0x1a
push ebx
mov ebx, dword [ebp + 8]
push esi
mov esi, 0x456314
push edi
lea edi, [ebp - 0x98]
rep movsd dword es:[edi], dword [esi]
cmp eax, 0x139ac
jge 0x40de06
push 0x20
lea ecx, [ebp - 0x24]
push ecx
push 0
push eax
call fcn.00401250
push eax
push str.The_server__version__s__does_not_support_full_text_search._n
call fcn.00408fb0
add esp, 0x18
mov al, 1
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00429e54
mov esp, ebp
pop ebp
ret
lea eax, [ebp - 0x30]
push eax
call sub.LIBPQ.dll_Ordinal_69
push str.Name
push str.Schema
lea eax, [ebp - 0x30]
push str.SELECT__n__n.nspname_as___s___n__d.dictname_as___s___n
push eax
call sub.LIBPQ.dll_Ordinal_90
add esp, 0x14
cmp byte [ebp + 0xc], 0
je 0x40de4b
push str.Init_options
push str.Template
lea eax, [ebp - 0x30]
push str.____SELECT_COALESCE_nt.nspname___null__::pg_catalog.text__.__t.tmplname_FROM__n____pg_catalog.pg_ts_template_t__n_t_t_t_LEFT_JOIN_pg_catalog.pg_namespace_nt_ON_nt.oid__t.tmplnamespace__n_t_t_t_WHERE_d.dicttemplate__t.oid___AS____s____n__d.dictinitoption_as___s____n
push eax
call sub.LIBPQ.dll_Ordinal_91
add esp, 0x10
push str.Description
lea eax, [ebp - 0x30]
push str.__pg_catalog.obj_description_d.oid__pg_ts_dict__as___s__n
push eax
call sub.LIBPQ.dll_Ordinal_91
lea eax, [ebp - 0x30]
push str.FROM_pg_catalog.pg_ts_dict_d_nLEFT_JOIN_pg_catalog.pg_namespace_n_ON_n.oid__d.dictnamespace_n
push eax
call sub.LIBPQ.dll_Ordinal_75
push str.pg_catalog.pg_ts_dict_is_visible_d.oid_
push 0
push str.d.dictname
push str.n.nspname
push 0
push 0
push ebx
lea eax, [ebp - 0x30]
push eax
push dword [0x456300]
call fcn.00401fe0
lea eax, [ebp - 0x30]
push str.ORDER_BY_1__2_
push eax
call sub.LIBPQ.dll_Ordinal_75
add esp, 0x40
push dword [ebp - 0x30]
call fcn.00409100
mov esi, eax
lea eax, [ebp - 0x30]
push eax
call sub.LIBPQ.dll_Ordinal_67
add esp, 8
test esi, esi
jne 0x40decf
pop edi
pop esi
xor al, al
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00429e54
mov esp, ebp
pop ebp
ret
push str.List_of_text_search_dictionaries
mov dword [ebp - 0x4c], 0
call sub.libintl_8.dll_libintl_gettext
push dword [0x4563b4]
mov dword [ebp - 0x44], eax
lea eax, [ebp - 0x98]
push 0
push dword [0x456308]
mov byte [ebp - 0x3c], 1
push eax
push esi
call fcn.004180b0
push esi
call sub.LIBPQ.dll_Ordinal_48
mov ecx, dword [ebp - 4]
add esp, 0x1c
xor ecx, ebp
mov al, 1
pop edi
pop esi
pop ebx
call fcn.00429e54
mov esp, ebp
pop ebp
ret
Function at 0x411f80
Capabilities:
Reference sql statements

Disassembly:
push ebp
mov ebp, esp
mov al, byte [ebp + 0xc]
sub esp, 0xc
cmp al, 0x72
je 0x411f99
cmp al, 0x6d
je 0x411f99
cmp al, 0x69
jne 0x412073
push esi
mov esi, dword [ebp + 0x10]
test esi, esi
je 0x412072
lea eax, [ebp - 0xc]
push edi
push eax
call sub.LIBPQ.dll_Ordinal_69
push esi
lea eax, [ebp - 0xc]
push str.SELECT_spcname_FROM_pg_catalog.pg_tablespace_nWHERE_oid___u_
push eax
call sub.LIBPQ.dll_Ordinal_90
push dword [ebp - 0xc]
call fcn.00409100
mov edi, eax
add esp, 0x14
test edi, edi
je 0x412071
push edi
call sub.LIBPQ.dll_Ordinal_34
add esp, 4
test eax, eax
jle 0x41205f
cmp byte [ebp + 0x14], 0
je 0x412018
push 0
push 0
push edi
call sub.LIBPQ.dll_Ordinal_45
add esp, 0xc
push eax
push str.Tablespace:___s_
call sub.libintl_8.dll_libintl_gettext
add esp, 4
push eax
lea eax, [ebp - 0xc]
push eax
call sub.LIBPQ.dll_Ordinal_90
push dword [ebp - 0xc]
push dword [ebp + 8]
call fcn.00417d70
jmp 0x41205c
mov esi, dword [ebp + 8]
mov eax, dword [esi + 0x2c]
push dword [eax]
lea eax, [ebp - 0xc]
push 0x42b548
push eax
call sub.LIBPQ.dll_Ordinal_90
push 0
push 0
push edi
call sub.LIBPQ.dll_Ordinal_45
add esp, 0x18
push eax
push str.__tablespace___s_
call sub.libintl_8.dll_libintl_gettext
add esp, 4
push eax
lea eax, [ebp - 0xc]
push eax
call sub.LIBPQ.dll_Ordinal_91
push dword [ebp - 0xc]
push esi
call fcn.00417db0
add esp, 0x14
push edi
call sub.LIBPQ.dll_Ordinal_48
lea eax, [ebp - 0xc]
push eax
call sub.LIBPQ.dll_Ordinal_67
add esp, 8
pop edi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x412480
Capabilities:
Reference sql statements

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
push esi
lea eax, [ebp - 0x1c]
push edi
push eax
call sub.LIBPQ.dll_Ordinal_69
lea eax, [ebp - 0x1c]
push str.SELECT_c.oid__c.cfgname__n___n.nspname___n___p.prsname___n___np.nspname_as_pnspname__nFROM_pg_catalog.pg_ts_config_c__n___LEFT_JOIN_pg_catalog.pg_namespace_n_ON_n.oid__c.cfgnamespace___n_pg_catalog.pg_ts_parser_p__n___LEFT_JOIN_pg_catalog.pg_namespace_np_ON_np.oid__p.prsnamespace__nWHERE__p.oid__c.cfgparser_n
push eax
call sub.LIBPQ.dll_Ordinal_90
mov esi, dword [ebp + 8]
lea eax, [ebp - 0x1c]
push str.pg_catalog.pg_ts_config_is_visible_c.oid_
push 0
push str.c.cfgname
push str.n.nspname
push 0
push 1
push esi
push eax
push dword [0x456300]
call fcn.00401fe0
lea eax, [ebp - 0x1c]
push str.ORDER_BY_3__2_
push eax
call sub.LIBPQ.dll_Ordinal_75
push dword [ebp - 0x1c]
call fcn.00409100
mov edi, eax
lea eax, [ebp - 0x1c]
push eax
call sub.LIBPQ.dll_Ordinal_67
add esp, 0x40
test edi, edi
je 0x41251b
push edi
call sub.LIBPQ.dll_Ordinal_34
add esp, 4
test eax, eax
jne 0x412523
cmp byte [0x4563be], al
jne 0x412512
push esi
push str.Did_not_find_any_text_search_configuration_named___s_._n
call fcn.00408fb0
add esp, 8
push edi
call sub.LIBPQ.dll_Ordinal_48
add esp, 4
pop edi
xor al, al
pop esi
mov esp, ebp
pop ebp
ret
push ebx
push edi
xor esi, esi
call sub.LIBPQ.dll_Ordinal_34
add esp, 4
test eax, eax
jle 0x4125d0
xor ebx, ebx
push ebx
push esi
push edi
mov dword [ebp - 4], ebx
call sub.LIBPQ.dll_Ordinal_45
push 1
push esi
push edi
mov dword [ebp - 0x10], eax
call sub.LIBPQ.dll_Ordinal_45
push 2
push esi
push edi
mov dword [ebp - 0xc], eax
call sub.LIBPQ.dll_Ordinal_47
add esp, 0x24
test eax, eax
jne 0x412571
push 2
push esi
push edi
call sub.LIBPQ.dll_Ordinal_45
add esp, 0xc
mov ebx, eax
push 3
push esi
push edi
call sub.LIBPQ.dll_Ordinal_45
push 4
push esi
push edi
mov dword [ebp - 8], eax
call sub.LIBPQ.dll_Ordinal_47
add esp, 0x18
test eax, eax
jne 0x41259b
push 4
push esi
push edi
call sub.LIBPQ.dll_Ordinal_45
add esp, 0xc
jmp 0x41259e
mov eax, dword [ebp - 4]
push dword [ebp - 8]
push eax
push dword [ebp - 0xc]
push ebx
push dword [ebp - 0x10]
call fcn.00412600
add esp, 0x14
push edi
test al, al
je 0x4125e2
cmp byte [0x455cb8], 0
jne 0x4125e2
inc esi
call sub.LIBPQ.dll_Ordinal_34
add esp, 4
cmp esi, eax
jl 0x412537
push edi
call sub.LIBPQ.dll_Ordinal_48
add esp, 4
mov al, 1
pop ebx
pop edi
pop esi
mov esp, ebp
pop ebp
ret
call sub.LIBPQ.dll_Ordinal_48
add esp, 4
xor al, al
pop ebx
pop edi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x412600
Capabilities:
Reference sql statements

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x80
push esi
push edi
lea eax, [ebp - 0x18]
mov ecx, 0x1a
mov esi, 0x456314
lea edi, [ebp - 0x80]
rep movsd dword es:[edi], dword [esi]
push eax
call sub.LIBPQ.dll_Ordinal_69
push dword [ebp + 8]
lea eax, [ebp - 0x18]
push str.Dictionaries
push str.Token
push str.SELECT__n____SELECT_t.alias_FROM__n____pg_catalog.ts_token_type_c.cfgparser__AS_t__n____WHERE_t.tokid__m.maptokentype___AS___s____n__pg_catalog.btrim___n____ARRAY__SELECT_mm.mapdict::pg_catalog.regdictionary__n___________FROM_pg_catalog.pg_ts_config_map_AS_mm__n___________WHERE_mm.mapcfg__m.mapcfg_AND_mm.maptokentype__m.maptokentype__n___________ORDER_BY_mapcfg__maptokentype__mapseqno__n______::_pg_catalog.text____n____AS___s___nFROM_pg_catalog.pg_ts_config_AS_c__pg_catalog.pg_ts_config_map_AS_m__nWHERE_c.oid___s_AND_m.mapcfg__c.oid__nGROUP_BY_m.mapcfg__m.maptokentype__c.cfgparser__nORDER_BY_1_
push eax
call sub.LIBPQ.dll_Ordinal_90
push dword [ebp - 0x18]
call fcn.00409100
mov esi, eax
lea eax, [ebp - 0x18]
push eax
call sub.LIBPQ.dll_Ordinal_67
add esp, 0x20
test esi, esi
jne 0x412660
pop edi
xor al, al
pop esi
mov esp, ebp
pop ebp
ret
lea eax, [ebp - 0xc]
push eax
call sub.LIBPQ.dll_Ordinal_69
mov eax, dword [ebp + 0xc]
add esp, 4
push dword [ebp + 0x10]
test eax, eax
je 0x412693
push eax
push str.Text_search_configuration___s._s_
call sub.libintl_8.dll_libintl_gettext
add esp, 4
push eax
lea eax, [ebp - 0xc]
push eax
call sub.LIBPQ.dll_Ordinal_91
add esp, 0x10
jmp 0x4126ad
push str.Text_search_configuration___s_
call sub.libintl_8.dll_libintl_gettext
add esp, 4
push eax
lea eax, [ebp - 0xc]
push eax
call sub.LIBPQ.dll_Ordinal_91
add esp, 0xc
mov eax, dword [ebp + 0x14]
push dword [ebp + 0x18]
test eax, eax
je 0x4126d4
push eax
push str._nParser:___s._s_
call sub.libintl_8.dll_libintl_gettext
add esp, 4
push eax
lea eax, [ebp - 0xc]
push eax
call sub.LIBPQ.dll_Ordinal_91
add esp, 0x10
jmp 0x4126ee
push str._nParser:___s_
call sub.libintl_8.dll_libintl_gettext
add esp, 4
push eax
lea eax, [ebp - 0xc]
push eax
call sub.LIBPQ.dll_Ordinal_91
add esp, 0xc
push dword [0x4563b4]
mov eax, dword [ebp - 0xc]
push 0
push dword [0x456308]
mov dword [ebp - 0x2c], eax
lea eax, [ebp - 0x80]
push eax
push esi
mov dword [ebp - 0x34], 0
mov dword [ebp - 0x28], 0
mov byte [ebp - 0x6d], 0
mov byte [ebp - 0x24], 1
call fcn.004180b0
lea eax, [ebp - 0xc]
push eax
call sub.LIBPQ.dll_Ordinal_67
push esi
call sub.LIBPQ.dll_Ordinal_48
add esp, 0x1c
mov al, 1
pop edi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x412780
Capabilities:
Reference sql statements

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x47c
mov eax, dword [0x455c20]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
mov ecx, 0x1a
push ebx
mov ebx, dword [ebp + 0xc]
push esi
push edi
mov dword [ebp - 0x408], eax
lea edi, [ebp - 0x47c]
lea eax, [ebp - 0x414]
mov esi, 0x456314
rep movsd dword es:[edi], dword [esi]
push eax
call sub.LIBPQ.dll_Ordinal_69
push ebx
push str.Object_Description
lea eax, [ebp - 0x414]
push str.SELECT_pg_catalog.pg_describe_object_classid__objid__0__AS___s__nFROM_pg_catalog.pg_depend_nWHERE_refclassid__pg_catalog.pg_extension::pg_catalog.regclass_AND_refobjid___s_AND_deptype__e_nORDER_BY_1_
push eax
call sub.LIBPQ.dll_Ordinal_90
push dword [ebp - 0x414]
call fcn.00409100
mov esi, eax
lea eax, [ebp - 0x414]
push eax
call sub.LIBPQ.dll_Ordinal_67
add esp, 0x1c
test esi, esi
jne 0x41280a
pop edi
pop esi
xor al, al
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00429e54
mov esp, ebp
pop ebp
ret
push dword [ebp - 0x408]
mov dword [ebp - 0x430], 0
push str.Objects_in_extension___s_
call sub.libintl_8.dll_libintl_gettext
add esp, 4
push eax
lea eax, [ebp - 0x404]
push 0x400
push eax
call fcn.004262e0
push dword [0x4563b4]
lea eax, [ebp - 0x404]
mov byte [ebp - 0x420], 1
push 0
push dword [0x456308]
mov dword [ebp - 0x428], eax
lea eax, [ebp - 0x47c]
push eax
push esi
call fcn.004180b0
push esi
call sub.LIBPQ.dll_Ordinal_48
mov ecx, dword [ebp - 4]
add esp, 0x28
xor ecx, ebp
mov al, 1
pop edi
pop esi
pop ebx
call fcn.00429e54
mov esp, ebp
pop ebp
ret