joyce8/EMBER2024-capa huggingface dataset:
Function at 0x401630
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
mov ecx, 0x40ce6c
mov eax, esi
mov edi, edi
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x401660
test dl, dl
je 0x40165c
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x401660
add eax, 2
add ecx, 2
test dl, dl
jne 0x401640
xor eax, eax
jmp 0x401665
sbb eax, eax
or eax, 1
test eax, eax
jne 0x401676
mov dword [0x40f010], 1
pop esi
pop ebp
ret
mov ecx, 0x40ce70
mov eax, esi
lea ecx, [ecx]
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x4016a0
test dl, dl
je 0x40169c
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x4016a0
add eax, 2
add ecx, 2
test dl, dl
jne 0x401680
xor eax, eax
jmp 0x4016a5
sbb eax, eax
or eax, 1
test eax, eax
jne 0x4016b6
mov dword [0x40f010], 2
pop esi
pop ebp
ret
mov ecx, str.QUIT
mov eax, esi
lea ecx, [ecx]
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x4016e0
test dl, dl
je 0x4016dc
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x4016e0
add eax, 2
add ecx, 2
test dl, dl
jne 0x4016c0
xor eax, eax
jmp 0x4016e5
sbb eax, eax
or eax, 1
test eax, eax
jne 0x4016f6
mov dword [0x40f010], 3
pop esi
pop ebp
ret
mov ecx, str.ABRT
mov eax, esi
lea ecx, [ecx]
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x401720
test dl, dl
je 0x40171c
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x401720
add eax, 2
add ecx, 2
test dl, dl
jne 0x401700
xor eax, eax
jmp 0x401725
sbb eax, eax
or eax, 1
test eax, eax
jne 0x401736
mov dword [0x40f010], 0x16
pop esi
pop ebp
ret
mov ecx, str.TERM
mov eax, esi
lea ecx, [ecx]
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x401760
test dl, dl
je 0x40175c
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x401760
add eax, 2
add ecx, 2
test dl, dl
jne 0x401740
xor eax, eax
jmp 0x401765
sbb eax, eax
or eax, 1
test eax, eax
jne 0x401776
mov dword [0x40f010], 0xf
pop esi
pop ebp
ret
mov ecx, str.USR1
mov eax, esi
lea ecx, [ecx]
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x4017a0
test dl, dl
je 0x40179c
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x4017a0
add eax, 2
add ecx, 2
test dl, dl
jne 0x401780
xor eax, eax
jmp 0x4017a5
sbb eax, eax
or eax, 1
test eax, eax
jne 0x4017b6
mov dword [0x40f010], 0x1e
pop esi
pop ebp
ret
mov ecx, str.USR2
mov eax, esi
lea ecx, [ecx]
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x4017e0
test dl, dl
je 0x4017dc
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x4017e0
add eax, 2
add ecx, 2
test dl, dl
jne 0x4017c0
xor eax, eax
jmp 0x4017e5
sbb eax, eax
or eax, 1
test eax, eax
jne 0x4017f6
mov dword [0x40f010], 0x1f
pop esi
pop ebp
ret
push esi
push dword [0x40f200]
push str._s:_unrecognized_signal_name___s__n
call sub.libintl_8.dll_libintl_gettext
add esp, 4
push eax
call fcn.00401020
add esp, 0xc
call fcn.00401100
push 1
call dword [sym.imp.MSVCR120.dll_exit]
int3
Function at 0x401830
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x404
mov eax, dword [0x40f1a4]
xor eax, ebp
mov dword [ebp - 4], eax
mov edx, dword [0x40f1e4]
test edx, edx
jne 0x40186d
push str.initdb__PostgreSQL__9.5.8_n
push str.initdb
push dword [0x40f1f4]
call fcn.00404250
mov edx, eax
add esp, 0xc
mov dword [0x40f1e4], edx
mov ecx, dword [0x40f1d8]
test ecx, ecx
mov eax, dword [0x40f1dc]
push esi
mov esi, 0x40b57e
push edi
mov edi, esi
cmovne edi, ecx
test eax, eax
mov dword [0x40f1d8], edi
cmovne esi, eax
cmp byte [0x40f1cb], 0
mov dword [0x40f1dc], esi
lea eax, [ebp - 0x404]
jne 0x4018be
push esi
push edi
push edx
push str.__s___s_s
push 0x400
push eax
call fcn.00407450
add esp, 0x18
jmp 0x4018d9
push 0x40b420
push esi
push edi
push edx
push str.__s___s_s_____s_
push 0x400
push eax
call fcn.00407450
add esp, 0x1c
lea eax, [ebp - 0x404]
push eax
call fcn.00409320
add esp, 4
pop edi
pop esi
test eax, eax
je 0x401912
push dword [0x40f200]
push str._s:_database_system_initialization_failed_n
call sub.libintl_8.dll_libintl_gettext
add esp, 4
push eax
call fcn.00401020
add esp, 8
push 1
call dword [sym.imp.MSVCR120.dll_exit]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00409cf2
mov esp, ebp
pop ebp
ret
Function at 0x402100
Capabilities:
Terminate process

Disassembly:
push esi
push 0
call fcn.00403850
mov esi, eax
add esp, 4
test esi, esi
jne 0x40214a
push 0x40fa08
push dword [0x40f200]
push str._s:_PID_file___s__does_not_exist_n
call sub.libintl_8.dll_libintl_gettext
add esp, 4
push eax
call fcn.00401020
push str.Is_server_running__n
call sub.libintl_8.dll_libintl_gettext
push eax
call fcn.00401020
add esp, 0x14
push 1
call dword [sym.imp.MSVCR120.dll_exit]
jns 0x40216f
neg esi
push esi
push dword [0x40f200]
push str._s:_cannot_reload_server__single_user_server_is_running__PID:__ld__n
call sub.libintl_8.dll_libintl_gettext
add esp, 4
push eax
call fcn.00401020
push str.Please_terminate_the_single_user_server_and_try_again._n
jmp 0x402134
push dword [0x40f010]
push esi
call fcn.00408ad0
add esp, 8
test eax, eax
je 0x4021b3
call dword [sym.imp.MSVCR120.dll__errno]
push dword [eax]
call dword [sym.imp.MSVCR120.dll_strerror]
add esp, 4
push eax
push esi
push dword [0x40f200]
push str._s:_could_not_send_reload_signal__PID:__ld_:__s_n
call sub.libintl_8.dll_libintl_gettext
add esp, 4
push eax
call fcn.00401020
add esp, 0x10
jmp 0x402142
push str.server_signaled_n
call sub.libintl_8.dll_libintl_gettext
push eax
call fcn.00402530
add esp, 8
pop esi
ret

Function at 0x4021d0
Capabilities:
Terminate process

Disassembly:
push esi
push 1
call fcn.00403850
mov esi, eax
add esp, 4
test esi, esi
je 0x4022a6
jns 0x402229
neg esi
call dword [sym.imp.MSVCR120.dll__getpid]
cmp esi, eax
je 0x4022a6
push 0
push esi
call fcn.00408ad0
add esp, 8
test eax, eax
jne 0x4022a6
push esi
push dword [0x40f200]
push str._s:_single_user_server_is_running__PID:__ld__n
call sub.libintl_8.dll_libintl_gettext
add esp, 4
push eax
call fcn.00407620
add esp, 0xc
pop esi
ret
call dword [sym.imp.MSVCR120.dll__getpid]
cmp esi, eax
je 0x4022a6
push 0
push esi
call fcn.00408ad0
add esp, 8
test eax, eax
jne 0x4022a6
push edi
push esi
push dword [0x40f200]
push str._s:_server_is_running__PID:__ld__n
call sub.libintl_8.dll_libintl_gettext
add esp, 4
push eax
call fcn.00407620
push 0x40f208
call fcn.00403a30
mov edi, eax
add esp, 0x10
test edi, edi
je 0x4022a3
cmp dword [edi], 0
mov esi, edi
je 0x40229a
push ebx
mov ebx, dword [sym.imp.MSVCR120.dll_fputs]
mov edi, edi
call dword [sym.imp.MSVCR120.dll___iob_func]
add eax, 0x20
push eax
push dword [esi]
call ebx
lea esi, [esi + 4]
add esp, 8
cmp dword [esi], 0
jne 0x402280
pop ebx
push edi
call fcn.00403bc0
add esp, 4
pop edi
pop esi
ret
push dword [0x40f200]
push str._s:_no_server_running_n
call sub.libintl_8.dll_libintl_gettext
add esp, 4
push eax
call fcn.00407620
add esp, 8
push 3
call dword [sym.imp.MSVCR120.dll_exit]
int3
Function at 0x4022d0
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
mov eax, dword [0x40f1a4]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push 0
call fcn.00403850
mov esi, eax
add esp, 4
test esi, esi
jne 0x40232a
push 0x40fa08
push dword [0x40f200]
push str._s:_PID_file___s__does_not_exist_n
call sub.libintl_8.dll_libintl_gettext
add esp, 4
push eax
call fcn.00401020
push str.Is_server_running__n
call sub.libintl_8.dll_libintl_gettext
push eax
call fcn.00401020
add esp, 0x14
push 1
call dword [sym.imp.MSVCR120.dll_exit]
jns 0x402353
neg esi
push esi
push dword [0x40f200]
push str._s:_cannot_promote_server__single_user_server_is_running__PID:__ld__n
call sub.libintl_8.dll_libintl_gettext
add esp, 4
push eax
call fcn.00401020
add esp, 0xc
push 1
call dword [sym.imp.MSVCR120.dll_exit]
lea eax, [ebp - 0x28]
push eax
push 0x410208
call fcn.004092a0
add esp, 8
test eax, eax
je 0x40238c
push dword [0x40f200]
push str._s:_cannot_promote_server__server_is_not_in_standby_mode_n
call sub.libintl_8.dll_libintl_gettext
add esp, 4
push eax
call fcn.00401020
add esp, 8
push 1
call dword [sym.imp.MSVCR120.dll_exit]
push dword [0x40f1d0]
push str._s_promote
push 0x400
push 0x410608
call fcn.00407450
push 0x40bc88
push 0x410608
call dword [sym.imp.MSVCR120.dll_fopen]
add esp, 0x18
test eax, eax
jne 0x4023f8
call dword [sym.imp.MSVCR120.dll__errno]
push dword [eax]
call dword [sym.imp.MSVCR120.dll_strerror]
add esp, 4
push eax
push 0x410608
push dword [0x40f200]
push str._s:_could_not_create_promote_signal_file___s_:__s_n
call sub.libintl_8.dll_libintl_gettext
add esp, 4
push eax
call fcn.00401020
add esp, 0x10
push 1
call dword [sym.imp.MSVCR120.dll_exit]
push eax
call dword [sym.imp.MSVCR120.dll_fclose]
add esp, 4
test eax, eax
je 0x40242a
call dword [sym.imp.MSVCR120.dll__errno]
push dword [eax]
call dword [sym.imp.MSVCR120.dll_strerror]
add esp, 4
push eax
push 0x410608
push dword [0x40f200]
push str._s:_could_not_write_promote_signal_file___s_:__s_n
jmp 0x4023df
push 0x1e
push esi
mov dword [0x40f010], 0x1e
call fcn.00408ad0
add esp, 8
test eax, eax
je 0x4024ab
call dword [sym.imp.MSVCR120.dll__errno]
push dword [eax]
call dword [sym.imp.MSVCR120.dll_strerror]
add esp, 4
push eax
push esi
push dword [0x40f200]
push str._s:_could_not_send_promote_signal__PID:__ld_:__s_n
call sub.libintl_8.dll_libintl_gettext
add esp, 4
push eax
call fcn.00401020
push 0x410608
call fcn.00408df0
add esp, 0x14
test eax, eax
je 0x4023f0
call dword [sym.imp.MSVCR120.dll__errno]
push dword [eax]
call dword [sym.imp.MSVCR120.dll_strerror]
add esp, 4
push eax
push 0x410608
push dword [0x40f200]
push str._s:_could_not_remove_promote_signal_file___s_:__s_n
jmp 0x4023df
push str.server_promoting_n
call sub.libintl_8.dll_libintl_gettext
push eax
call fcn.00402530
mov ecx, dword [ebp - 4]
add esp, 8
xor ecx, ebp
pop esi
call fcn.00409cf2
mov esp, ebp
pop ebp
ret
Function at 0x4024d0
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
push dword [0x40f010]
push dword [ebp + 8]
call fcn.00408ad0
add esp, 8
test eax, eax
je 0x402527
call dword [sym.imp.MSVCR120.dll__errno]
push dword [eax]
call dword [sym.imp.MSVCR120.dll_strerror]
add esp, 4
push eax
push dword [ebp + 8]
push dword [0x40f010]
push dword [0x40f200]
push str._s:_could_not_send_signal__d__PID:__ld_:__s_n
call sub.libintl_8.dll_libintl_gettext
add esp, 4
push eax
call fcn.00401020
add esp, 0x14
push 1
call dword [sym.imp.MSVCR120.dll_exit]
pop ebp
ret

Function at 0x402570
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x804
mov eax, dword [0x40f1a4]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [0x40f1d4]
test eax, eax
je 0x402602
push edi
push eax
push str._s_postgresql.conf
lea eax, [ebp - 0x404]
push 0x400
push eax
call fcn.00407450
mov edi, dword [sym.imp.MSVCR120.dll_fopen]
lea eax, [ebp - 0x404]
push 0x40b3ac
push eax
call edi
add esp, 0x18
test eax, eax
je 0x402601
push esi
mov esi, dword [sym.imp.MSVCR120.dll_fclose]
push eax
call esi
push dword [0x40f1d4]
lea eax, [ebp - 0x404]
push str._s_PG_VERSION
push 0x400
push eax
call fcn.00407450
lea eax, [ebp - 0x404]
push 0x40b3ac
push eax
call edi
add esp, 0x1c
test eax, eax
je 0x402610
push eax
call esi
add esp, 4
pop esi
pop edi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00409cf2
mov esp, ebp
pop ebp
ret
mov eax, dword [0x40f1e4]
test eax, eax
jne 0x402633
push str.postgres__PostgreSQL__9.5.8_n
push str.postgres
push dword [0x40f1f4]
call fcn.00404250
add esp, 0xc
jmp 0x40263c
push eax
call fcn.00405dd0
add esp, 4
mov esi, eax
mov edx, 0x40b57e
mov eax, dword [0x40f1dc]
mov ecx, edx
test eax, eax
cmovne ecx, eax
mov eax, dword [0x40f1d8]
push ecx
test eax, eax
cmovne edx, eax
lea eax, [ebp - 0x804]
push edx
push esi
push str.__s___C_data_directory__s_s
push 0x400
push eax
call fcn.00407450
lea eax, [ebp - 0x804]
push 0x40b3ac
push eax
call fcn.004093b0
mov edi, eax
add esp, 0x20
test edi, edi
je 0x402715
push edi
lea eax, [ebp - 0x404]
push 0x400
push eax
call dword [sym.imp.MSVCR120.dll_fgets]
add esp, 0xc
test eax, eax
je 0x402715
push edi
call dword [sym.imp.MSVCR120.dll__pclose]
mov edi, dword [sym.imp.MSVCR120.dll_free]
push esi
call edi
mov esi, dword [sym.imp.MSVCR120.dll_strchr]
lea eax, [ebp - 0x404]
push 0xa
push eax
call esi
add esp, 0x10
test eax, eax
je 0x4026e3
lea eax, [ebp - 0x404]
push 0xa
push eax
call esi
add esp, 8
mov byte [eax], 0
push dword [0x40f1d0]
call edi
lea eax, [ebp - 0x404]
push eax
call fcn.00405dd0
push eax
mov dword [0x40f1d0], eax
call fcn.004065c0
mov ecx, dword [ebp - 4]
add esp, 0xc
xor ecx, ebp
pop esi
pop edi
call fcn.00409cf2
mov esp, ebp
pop ebp
ret
lea eax, [ebp - 0x804]
push eax
push dword [0x40f200]
push str._s:_could_not_determine_the_data_directory_using_command___s__n
call sub.libintl_8.dll_libintl_gettext
add esp, 4
push eax
call fcn.00401020
add esp, 0xc
push 1
call dword [sym.imp.MSVCR120.dll_exit]
int3
Function at 0x402780
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x404
mov eax, dword [0x40f1a4]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
call sub.LIBPQ.dll_Ordinal_77
mov bl, byte [ebp + 8]
mov esi, eax
lea eax, [ebp - 0x404]
push eax
test bl, bl
je 0x4027e0
push dword [0x40f1f4]
call fcn.00405280
add esp, 8
test eax, eax
je 0x402809
push dword [0x40f200]
push str._s:_could_not_find_own_program_executable_n
call sub.libintl_8.dll_libintl_gettext
add esp, 4
push eax
call fcn.00401020
add esp, 8
push 1
call dword [sym.imp.MSVCR120.dll_exit]
push str.postgres__PostgreSQL__9.5.8_n
push str.postgres
push dword [0x40f1f4]
call fcn.004055c0
add esp, 0x10
test eax, eax
je 0x402809
push dword [0x40f200]
push str._s:_could_not_find_postgres_program_executable_n
jmp 0x4027c7
lea ecx, [ebp - 0x404]
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x402812
sub ecx, edx
cmp ecx, 4
jb 0x402839
lea eax, [ebp + ecx - 0x408]
push str..exe
push eax
call fcn.004071a0
add esp, 8
test eax, eax
je 0x402869
lea ecx, [ebp - 0x404]
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x402842
sub ecx, edx
mov eax, 0x400
sub eax, ecx
push str..exe
push eax
lea eax, [ebp - 0x404]
add eax, ecx
push eax
call fcn.00407450
add esp, 0xc
lea eax, [ebp - 0x404]
push eax
call fcn.004068b0
lea eax, [ebp - 0x404]
push eax
push str.__s_
push esi
call sub.LIBPQ.dll_Ordinal_91
add esp, 0x10
test bl, bl
je 0x4028a2
push dword [0x40f014]
push str._runservice__N___s_
push esi
call sub.LIBPQ.dll_Ordinal_91
add esp, 0xc
mov eax, dword [0x40f1d4]
test eax, eax
je 0x4028dc
push edi
push eax
call fcn.00406a50
mov edi, eax
add esp, 4
test edi, edi
je 0x4027d8
push edi
call fcn.004068b0
push edi
push str.__D___s_
push esi
call sub.LIBPQ.dll_Ordinal_91
push edi
call dword [sym.imp.MSVCR120.dll_free]
add esp, 0x14
pop edi
test bl, bl
je 0x402948
mov eax, dword [0x40f1e8]
test eax, eax
je 0x4028f8
push eax
push str.__e___s_
push esi
call sub.LIBPQ.dll_Ordinal_91
add esp, 0xc
cmp byte [0x40f1c8], 0
je 0x40290f
push 0x40bea4
push esi
call sub.LIBPQ.dll_Ordinal_91
add esp, 8
cmp byte [0x40f1ca], 0
je 0x402931
mov eax, dword [0x40f008]
cmp eax, 0x3c
je 0x402931
push eax
push str.__t__d
push esi
call sub.LIBPQ.dll_Ordinal_91
add esp, 0xc
cmp byte [0x40f1cb], 0
je 0x402948
push 0x40beb0
push esi
call sub.LIBPQ.dll_Ordinal_91
add esp, 8
mov eax, dword [0x40f1dc]
test eax, eax
je 0x40296b
push eax
test bl, bl
je 0x40295d
push str.__o___s_
jmp 0x402962
push 0x40bec0
push esi
call sub.LIBPQ.dll_Ordinal_91
add esp, 0xc
mov eax, dword [esi]
mov ecx, dword [ebp - 4]
pop esi
xor ecx, ebp
pop ebx
call fcn.00409cf2
mov esp, ebp
pop ebp
ret
Function at 0x402980
Capabilities:
Create service
Terminate process

Disassembly:
push esi
push edi
push 0xf003f
push 0
push 0
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerA]
mov edi, eax
test edi, edi
jne 0x4029bb
push dword [0x40f200]
push str._s:_could_not_open_service_manager_n
call sub.libintl_8.dll_libintl_gettext
add esp, 4
push eax
call fcn.00401020
add esp, 8
push 1
call dword [sym.imp.MSVCR120.dll_exit]
push 1
push dword [0x40f014]
push edi
call dword [sym.imp.ADVAPI32.dll_OpenServiceA]
test eax, eax
setne cl
test cl, cl
je 0x402a09
mov esi, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
push eax
call esi
push edi
call esi
push dword [0x40f014]
push dword [0x40f200]
push str._s:_service___s__already_registered_n
call sub.libintl_8.dll_libintl_gettext
add esp, 4
push eax
call fcn.00401020
add esp, 0xc
push 1
call dword [sym.imp.MSVCR120.dll_exit]
push dword [0x40f1f0]
push dword [0x40f1ec]
push str.RPCSS
push 0
push 0
push 1
call fcn.00402780
add esp, 4
push eax
mov eax, dword [str.PostgreSQL]
push 1
push dword [0x40f018]
push 0x10
push 0xf01ff
push eax
push eax
push edi
call dword [sym.imp.ADVAPI32.dll_CreateServiceA]
test eax, eax
jne 0x402a82
push edi
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push dword [0x40f014]
push dword [0x40f200]
push str._s:_could_not_register_service___s_:_error_code__lu_n
call sub.libintl_8.dll_libintl_gettext
add esp, 4
push eax
call fcn.00401020
add esp, 0x10
push 1
call dword [sym.imp.MSVCR120.dll_exit]
mov esi, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
push eax
call esi
push edi
call esi
pop edi
pop esi
ret
Function at 0x402aa0
Capabilities:
Delete service
Terminate process

Disassembly:
push ebx
push esi
push edi
push 0xf003f
push 0
push 0
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerA]
mov esi, eax
test esi, esi
jne 0x402adc
push dword [0x40f200]
push str._s:_could_not_open_service_manager_n
call sub.libintl_8.dll_libintl_gettext
add esp, 4
push eax
call fcn.00401020
add esp, 8
push 1
call dword [sym.imp.MSVCR120.dll_exit]
mov ebx, dword [sym.imp.ADVAPI32.dll_OpenServiceA]
push 1
push dword [0x40f014]
push esi
call ebx
test eax, eax
setne cl
test cl, cl
je 0x402b7f
mov edi, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
push eax
call edi
push 0x10000
push dword [0x40f014]
push esi
call ebx
mov ebx, eax
test ebx, ebx
jne 0x402b4b
push esi
call edi
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push dword [0x40f014]
push dword [0x40f200]
push str._s:_could_not_open_service___s_:_error_code__lu_n
call sub.libintl_8.dll_libintl_gettext
add esp, 4
push eax
call fcn.00401020
add esp, 0x10
push 1
call dword [sym.imp.MSVCR120.dll_exit]
push ebx
call dword [sym.imp.ADVAPI32.dll_DeleteService]
push ebx
test eax, eax
jne 0x402b76
call edi
push esi
call edi
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push dword [0x40f014]
push dword [0x40f200]
push str._s:_could_not_unregister_service___s_:_error_code__lu_n
jmp 0x402b32
call edi
push esi
call edi
pop edi
pop esi
pop ebx
ret
push esi
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
push dword [0x40f014]
push dword [0x40f200]
push str._s:_service___s__not_registered_n
call sub.libintl_8.dll_libintl_gettext
add esp, 4
push eax
call fcn.00401020
add esp, 0xc
jmp 0x402b43

Function at 0x402e90
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov eax, dword [str.PostgreSQL]
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0x10]
push eax
mov dword [ebp - 0xc], 0x402c40
mov dword [ebp - 8], 0
mov dword [ebp - 4], 0
call dword [sym.imp.ADVAPI32.dll_StartServiceCtrlDispatcherA]
test eax, eax
jne 0x402ef2
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push dword [0x40f014]
push dword [0x40f200]
push str._s:_could_not_start_service___s_:_error_code__lu_n
call sub.libintl_8.dll_libintl_gettext
add esp, 4
push eax
call fcn.00401020
add esp, 0x10
push 1
call dword [sym.imp.MSVCR120.dll_exit]
mov esp, ebp
pop ebp
ret
Function at 0x403850
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2c
mov eax, dword [0x40f1a4]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
lea eax, [ebp - 0x28]
push eax
push dword [0x40f1d0]
call fcn.004092a0
add esp, 8
test eax, eax
je 0x4038f1
mov esi, dword [sym.imp.MSVCR120.dll__errno]
call esi
cmp dword [eax], 2
jne 0x4038a9
push dword [0x40f1d0]
push dword [0x40f200]
push str._s:_directory___s__does_not_exist_n
call sub.libintl_8.dll_libintl_gettext
add esp, 4
push eax
call fcn.00401020
add esp, 0xc
jmp 0x4038d9
call esi
push dword [eax]
call dword [sym.imp.MSVCR120.dll_strerror]
add esp, 4
push eax
push dword [0x40f1d0]
push dword [0x40f200]
push str._s:_could_not_access_directory___s_:__s_n
call sub.libintl_8.dll_libintl_gettext
add esp, 4
push eax
call fcn.00401020
add esp, 0x10
cmp byte [ebp + 8], 0
mov eax, 1
mov ecx, 4
cmovne eax, ecx
push eax
call dword [sym.imp.MSVCR120.dll_exit]
lea eax, [ebp - 0x28]
push eax
push 0x40f608
call fcn.004092a0
mov edi, dword [sym.imp.MSVCR120.dll__errno]
add esp, 8
test eax, eax
je 0x403937
call edi
cmp dword [eax], 2
jne 0x403937
push dword [0x40f1d0]
push dword [0x40f200]
push str._s:_directory___s__is_not_a_database_cluster_directory_n
call sub.libintl_8.dll_libintl_gettext
add esp, 4
push eax
call fcn.00401020
add esp, 0xc
jmp 0x4038d9
push 0x40b3ac
push 0x40fa08
call dword [sym.imp.MSVCR120.dll_fopen]
mov esi, eax
add esp, 8
test esi, esi
jne 0x40399f
call edi
cmp dword [eax], 2
jne 0x403969
pop edi
xor eax, eax
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00409cf2
mov esp, ebp
pop ebp
ret
call edi
push dword [eax]
call dword [sym.imp.MSVCR120.dll_strerror]
add esp, 4
push eax
push 0x40fa08
push dword [0x40f200]
push str._s:_could_not_open_PID_file___s_:__s_n
call sub.libintl_8.dll_libintl_gettext
add esp, 4
push eax
call fcn.00401020
add esp, 0x10
push 1
jmp 0x4038eb
lea eax, [ebp - 0x2c]
push eax
push 0x40b3d8
push esi
call dword [sym.imp.MSVCR120.dll_fscanf]
add esp, 0xc
push esi
cmp eax, 1
je 0x403a0d
call dword [sym.imp.MSVCR120.dll_ftell]
add esp, 4
test eax, eax
jne 0x4039e5
push esi
call dword [sym.imp.MSVCR120.dll_feof]
add esp, 4
test eax, eax
je 0x4039e5
push 0x40fa08
push dword [0x40f200]
push str._s:_the_PID_file___s__is_empty_n
jmp 0x4039f5
push 0x40fa08
push dword [0x40f200]
push str._s:_invalid_data_in_PID_file___s__n
call sub.libintl_8.dll_libintl_gettext
add esp, 4
push eax
call fcn.00401020
add esp, 0xc
push 1
jmp 0x4038eb
call dword [sym.imp.MSVCR120.dll_fclose]
mov ecx, dword [ebp - 4]
add esp, 4
mov eax, dword [ebp - 0x2c]
xor ecx, ebp
pop edi
pop esi
call fcn.00409cf2
mov esp, ebp
pop ebp
ret