joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4e1a90
Capabilities:
Check for software breakpoints

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 0xc]
cmp dword [esi], 0xe2
je 0x4e1ad4
nop
mov eax, dword [esi]
cmp eax, 0xcc
je 0x4e1b07
cmp eax, 0xc9
jne 0x4e1b2b
cmp dword [esi + 0x18], 0
je 0x4e1b2b
mov eax, dword [esi + 4]
mov ecx, dword [eax + 0x24]
push ecx
call sym.postgres.exe_expression_returns_set
add esp, 4
test al, al
jne 0x4e1b2b
mov esi, dword [esi + 0x18]
cmp dword [esi], 0xe2
jne 0x4e1aa0
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x50]
add ecx, dword [eax + 0x48]
mov edx, dword [eax + 0x54]
adc edx, dword [eax + 0x4c]
cmp byte [eax + 0x58], 0
jne 0x4e1b00
test edx, edx
jl 0x4e1b00
jg 0x4e1af3
test ecx, ecx
jb 0x4e1b00
mov byte [esi + 0x49], 1
mov dword [esi + 0x50], ecx
mov dword [esi + 0x54], edx
pop esi
pop ebp
ret
mov byte [esi + 0x49], 0
pop esi
pop ebp
ret
push edi
xor edi, edi
cmp dword [esi + 0x40], edi
jle 0x4e1b2a
push ebx
mov ebx, dword [ebp + 8]
mov edx, dword [esi + 0x3c]
mov eax, dword [edx + edi*4]
push eax
push ebx
call fcn.004e1a90
inc edi
add esp, 8
cmp edi, dword [esi + 0x40]
jl 0x4e1b13
pop ebx
pop edi
pop esi
pop ebp
ret
Function at 0x4f2840
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
cmp dword [0x833898], 0
je 0x4f28bf
push esi
xor esi, esi
cmp dword [0x833894], esi
jle 0x4f288c
mov ecx, dword [0x833890]
lea ecx, [ecx]
mov eax, dword [ecx + esi*4]
test eax, eax
je 0x4f2883
cmp byte [ebp + 8], 0
je 0x4f287c
push eax
call sym.postgres.exe_inv_close
mov ecx, dword [0x833890]
add esp, 4
mov dword [ecx + esi*4], 0
inc esi
cmp esi, dword [0x833894]
jl 0x4f2860
mov eax, dword [0x833898]
push eax
mov dword [0x833890], 0
mov dword [0x833894], 0
call sym.postgres.exe_MemoryContextDelete
add esp, 4
mov dword [0x833898], 0
pop esi
pop ebp
jmp sym.postgres.exe_close_lo_relation
pop ebp
ret
Function at 0x4f9260
Capabilities:
Hash data with md5

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x5c
mov eax, dword [0x82aea4]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
push edi
mov dword [ebp - 0x58], ecx
mov ebx, 0x10325476
push eax
lea ecx, [ebp - 0x58]
mov dword [ebp - 0x14], 0x67452301
mov dword [ebp - 0x10], 0xefcdab89
mov dword [ebp - 0xc], 0x98badcfe
mov dword [ebp - 8], ebx
call fcn.004f87c0
mov edi, eax
add esp, 4
xor eax, eax
test edi, edi
je 0x4f93f3
mov ecx, 0x40
mov dword [ebp - 0x5c], ecx
cmp dword [ebp - 0x58], ecx
jb 0x4f9386
mov edi, edi
xor ecx, ecx
lea eax, [eax + edi + 3]
movzx edx, byte [eax]
movzx ebx, byte [eax - 1]
shl edx, 8
or edx, ebx
movzx ebx, byte [eax - 2]
shl edx, 8
or edx, ebx
movzx ebx, byte [eax - 3]
shl edx, 8
or edx, ebx
movzx ebx, byte [eax + 3]
mov dword [ebp + ecx*4 - 0x54], edx
movzx edx, byte [eax + 4]
shl edx, 8
or edx, ebx
movzx ebx, byte [eax + 2]
shl edx, 8
or edx, ebx
movzx ebx, byte [eax + 1]
shl edx, 8
or edx, ebx
movzx ebx, byte [eax + 7]
mov dword [ebp + ecx*4 - 0x50], edx
movzx edx, byte [eax + 8]
shl edx, 8
or edx, ebx
movzx ebx, byte [eax + 6]
shl edx, 8
or edx, ebx
movzx ebx, byte [eax + 5]
shl edx, 8
or edx, ebx
movzx ebx, byte [eax + 0xb]
mov dword [ebp + ecx*4 - 0x4c], edx
movzx edx, byte [eax + 0xc]
shl edx, 8
or edx, ebx
movzx ebx, byte [eax + 0xa]
shl edx, 8
or edx, ebx
movzx ebx, byte [eax + 9]
shl edx, 8
or edx, ebx
mov dword [ebp + ecx*4 - 0x48], edx
add ecx, 4
add eax, 0x10
cmp ecx, 0x10
jb 0x4f92c6
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x54]
call fcn.004f8880
mov ecx, dword [ebp - 0x5c]
mov eax, ecx
add ecx, 0x40
add esp, 4
mov dword [ebp - 0x5c], ecx
cmp ecx, dword [ebp - 0x58]
jbe 0x4f92c0
mov ebx, dword [ebp - 8]
push edi
call dword [sym.imp.MSVCR100.dll_free]
mov eax, dword [ebp - 0x14]
mov byte [esi], al
shr eax, 8
mov byte [esi + 1], al
shr eax, 8
mov byte [esi + 2], al
shr eax, 8
mov byte [esi + 3], al
mov eax, dword [ebp - 0x10]
mov byte [esi + 4], al
shr eax, 8
mov byte [esi + 5], al
shr eax, 8
mov byte [esi + 6], al
shr eax, 8
mov byte [esi + 7], al
mov eax, dword [ebp - 0xc]
mov byte [esi + 8], al
shr eax, 8
mov byte [esi + 9], al
shr eax, 8
mov byte [esi + 0xa], al
shr eax, 8
mov byte [esi + 0xb], al
mov byte [esi + 0xc], bl
shr ebx, 8
mov eax, ebx
mov byte [esi + 0xd], al
shr eax, 8
mov byte [esi + 0xe], al
add esp, 4
shr eax, 8
mov byte [esi + 0xf], al
mov eax, 1
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop ebx
call fcn.006a8ca2
mov esp, ebp
pop ebp
ret
Function at 0x4fa240
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x54
mov eax, dword [0x82aea4]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push esi
push edi
push eax
mov dword [ebp - 0x54], eax
call sym.postgres.exe_resetStringInfo
lea eax, [ebp - 0x48]
push 4
push eax
call sym.postgres.exe_pq_getbytes
add esp, 0xc
cmp eax, 0xffffffff
jne 0x4fa29e
push 0
push 0x6d2d14
push 0x438
push str.src_backendlibpqpqcomm.c
push 0x10
call sym.postgres.exe_errstart
add esp, 0x14
test al, al
je 0x4fa42b
push str.unexpected_EOF_within_message_length_word
jmp 0x4fa40c
mov ecx, dword [ebp - 0x48]
push ecx
call dword [sym.imp.WSOCK32.dll_ntohl]
cmp eax, 4
jl 0x4fa3e8
mov ecx, dword [ebp + 0xc]
test ecx, ecx
jle 0x4fa2c0
cmp eax, ecx
jg 0x4fa3e8
sub eax, 4
mov dword [ebp - 0x48], eax
test eax, eax
jle 0x4fa363
mov edx, dword [sym.postgres.exe_PG_exception_stack]
mov eax, dword [sym.postgres.exe_error_context_stack]
lea ecx, [ebp - 0x44]
push 0
push ecx
mov dword [ebp - 0x50], edx
mov dword [ebp - 0x4c], eax
call sub.MSVCR100.dll__setjmp3
add esp, 8
test eax, eax
jne 0x4fa375
mov esi, dword [ebp - 0x48]
mov edi, dword [ebp - 0x54]
lea edx, [ebp - 0x44]
push esi
push edi
mov dword [sym.postgres.exe_PG_exception_stack], edx
call sym.postgres.exe_enlargeStringInfo
mov eax, dword [ebp - 0x50]
mov ecx, dword [ebp - 0x4c]
mov dword [sym.postgres.exe_PG_exception_stack], eax
mov dword [sym.postgres.exe_error_context_stack], ecx
mov edx, dword [edi]
push esi
push edx
call sym.postgres.exe_pq_getbytes
add esp, 0x10
cmp eax, 0xffffffff
jne 0x4fa35a
push 0
push 0x6d2d14
push 0x463
push str.src_backendlibpqpqcomm.c
push 0x10
call sym.postgres.exe_errstart
add esp, 0x14
test al, al
je 0x4fa42b
push str.incomplete_message_from_client
jmp 0x4fa40c
mov dword [edi + 4], esi
mov eax, dword [edi]
mov byte [esi + eax], 0
xor eax, eax
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.006a8ca2
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp - 0x48]
mov ecx, dword [ebp - 0x50]
mov edx, dword [ebp - 0x4c]
push eax
mov dword [sym.postgres.exe_PG_exception_stack], ecx
mov dword [sym.postgres.exe_error_context_stack], edx
call fcn.004f9f80
add esp, 4
cmp eax, 0xffffffff
jne 0x4fa3db
push 0
push 0x6d2d14
push 0x459
push str.src_backendlibpqpqcomm.c
push 0x10
call sym.postgres.exe_errstart
add esp, 0x14
test al, al
je 0x4fa3db
push str.incomplete_message_from_client
call sym.postgres.exe_errmsg
add esp, 4
push eax
push 0x1020200
call sym.postgres.exe_errcode
add esp, 4
push eax
call sym.postgres.exe_errfinish
add esp, 8
call sym.postgres.exe_pg_re_throw
push 1
call dword [sym.imp.MSVCR100.dll_exit]
push 0
push 0x6d2d14
push 0x443
push str.src_backendlibpqpqcomm.c
push 0x10
call sym.postgres.exe_errstart
add esp, 0x14
test al, al
je 0x4fa42b
push str.invalid_message_length
call sym.postgres.exe_errmsg
add esp, 4
push eax
push 0x1020200
call sym.postgres.exe_errcode
add esp, 4
push eax
call sym.postgres.exe_errfinish
add esp, 8
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
or eax, 0xffffffff
pop esi
call fcn.006a8ca2
mov esp, ebp
pop ebp
ret
Function at 0x4fa830
Capabilities:
Get local ipv4 addresses
Get socket information
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
mov ecx, dword [ebp + 8]
push esi
mov esi, dword [ebp + 0xc]
lea eax, [esi + 0x118]
push eax
mov dword [eax], 0x80
lea eax, [esi + 0x98]
push eax
push ecx
call sym.postgres.exe_pgwin32_accept
add esp, 0xc
lea ecx, [esi + 0x90]
push ecx
lea edx, [esi + 0x10]
push edx
push eax
mov dword [esi], eax
mov dword [ecx], 0x80
call dword [sym.imp.WSOCK32.dll_getsockname]
test eax, eax
jns 0x4fa89e
push 0x6d2e64
push 0x282
push str.src_backendlibpqpqcomm.c
call sym.postgres.exe_elog_start
push str.getsockname___failed:__m
push 0xf
call sym.postgres.exe_elog_finish
add esp, 0x14
or eax, 0xffffffff
pop esi
pop ebp
ret
mov ecx, dword [esi]
push edi
mov edi, dword [sym.imp.WSOCK32.dll_setsockopt]
push 4
lea eax, [ebp + 0xc]
push eax
push 1
push 6
push ecx
mov dword [ebp + 0xc], 1
call edi
test eax, eax
jns 0x4fa8e9
push 0x6d2e64
push 0x290
push str.src_backendlibpqpqcomm.c
call sym.postgres.exe_elog_start
push str.setsockopt_TCP_NODELAY__failed:__m
push 0xf
call sym.postgres.exe_elog_finish
add esp, 0x14
pop edi
or eax, 0xffffffff
pop esi
pop ebp
ret
mov eax, dword [esi]
push 4
lea edx, [ebp + 0xc]
push edx
push 8
push 0xffff
push eax
mov dword [ebp + 0xc], 1
call edi
test eax, eax
jns 0x4fa930
push 0x6d2e64
push 0x298
push str.src_backendlibpqpqcomm.c
call sym.postgres.exe_elog_start
push str.setsockopt_SO_KEEPALIVE__failed:__m
push 0xf
call sym.postgres.exe_elog_finish
add esp, 0x14
pop edi
or eax, 0xffffffff
pop esi
pop ebp
ret
mov edx, dword [esi]
push 4
lea ecx, [ebp + 0xc]
push ecx
push 0x1001
push 0xffff
push edx
mov dword [ebp + 0xc], 0x8000
call edi
test eax, eax
jns 0x4fa97a
push 0x6d2e64
push 0x2a6
push str.src_backendlibpqpqcomm.c
call sym.postgres.exe_elog_start
push str.setsockopt_SO_SNDBUF__failed:__m
push 0xf
call sym.postgres.exe_elog_finish
add esp, 0x14
pop edi
or eax, 0xffffffff
pop esi
pop ebp
ret
mov eax, dword [0x867fec]
push esi
push eax
call sym.postgres.exe_pq_setkeepalivesidle
mov ecx, dword [0x867fc4]
push esi
push ecx
call sym.postgres.exe_pq_setkeepalivesinterval
mov edx, dword [0x867fd4]
push esi
push edx
call sym.postgres.exe_pq_setkeepalivescount
add esp, 0x18
pop edi
xor eax, eax
pop esi
pop ebp
ret

Function at 0x4faaa7
Capabilities:
Enumerate pe sections

Disassembly:
mov ecx, dword [esp + 8]
push esi
push edi
xor edi, edi
movzx eax, word [ecx + 0x14]
movzx esi, word [ecx + 6]
test esi, esi
lea eax, [eax + ecx + 0x18]
jbe 0x4faae2
mov ecx, dword [eax + 8]
test ecx, ecx
jne 0x4faac9
mov ecx, dword [eax + 0x10]
mov edx, dword [eax + 0xc]
cmp dword [esp + 0xc], edx
jb 0x4faada
add edx, ecx
cmp dword [esp + 0xc], edx
jb 0x4faae4
inc edi
add eax, 0x28
cmp edi, esi
jb 0x4faabf
xor eax, eax
pop edi
pop esi
ret
Function at 0x4fad10
Capabilities:
Contain obfuscated stackstrings

Disassembly:
inc ebp
test al, 0x50
call fcn.004faa77
mov esi, dword [ebp + 0xc]
push eax
push esi
push dword [ebp + 8]
call fcn.004faa2c
add esp, 0x10
lea ecx, [ebp - 0xb0]
push ecx
call eax
mov eax, dword [ebp - 8]
mov ecx, dword [ebp - 0xac]
xor edx, edx
div ecx
xor edx, edx
mov dword [ebp - 0x8c], eax
mov eax, dword [ebp - 8]
div ecx
test edx, edx
je 0x4fad55
inc dword [ebp - 0x8c]
imul ecx, dword [ebp - 0x8c]
mov dword [ebp + 0xc], ecx
mov byte [ebp - 0x40], bl
mov byte [ebp - 0x3f], bl
mov byte [ebp - 0x3e], 0xec
mov byte [ebp - 0x3d], bl
mov byte [ebp - 0x3c], 0x45
mov byte [ebp - 0x3b], 0x7a
mov byte [ebp - 0x3a], 0x61
mov byte [ebp - 0x39], 0x67
mov byte [ebp - 0x38], 0x66

Function at 0x4fae90
Capabilities:
Contain obfuscated stackstrings

Disassembly:
aam 0x88
pop ebp
xlatb
mov byte [ebp - 0x28], 0x67
mov byte [ebp - 0x27], 0x44
mov byte [ebp - 0x26], 0x4a
mov byte [ebp - 0x25], 0x4f
mov byte [ebp - 0x24], 0x67
mov byte [ebp - 0x23], 0x42
mov byte [ebp - 0x22], 0x49
mov byte [ebp - 0x21], 0x59
mov byte [ebp - 0x20], 0x4a
mov byte [ebp - 0x1f], 0x59
mov byte [ebp - 0x1e], 0x52
mov byte [ebp - 0x1d], 0x6a
mov byte [ebp - 0x1c], 0x2b
call fcn.004faa77
push eax
push esi
push dword [ebp + 8]
call fcn.004faa2c
add esp, 0x30
mov dword [ebp - 0xb8], eax

Function at 0x4fb070
Capabilities:
Inspect section memory permissions

Disassembly:
cmp dword [eax + 4], ebx
jne 0x4fb00c
cmp dword [eax + 0xc], ebx
je 0x4fb0af
mov edi, dword [eax + 0xc]
add edi, esi
push edi
call dword [ebp - 0xc0]
mov dword [ebp + 0xc], eax
call fcn.004faa67
out 0xf4, al
int3
mov eax, dword [ebp + 0x10]
mov eax, dword [eax]
cmp eax, ebx
je 0x4fb09d
test eax, 0x80000000
lea ecx, [eax + esi]
je 0x4fb078
and eax, 0xffff
push eax
jmp 0x4fb07c
add ecx, 2
push ecx
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.004faa2c
add esp, 0xc
cmp edi, ebx
mov dword [edi], eax
invalid
invalid
Function at 0x4fb100
Capabilities:
Inspect section memory permissions

Disassembly:
cmp dword [eax], ebx
je 0x4fb11b
mov edx, dword [eax + 4]
lea ecx, [eax + 8]
add edx, eax
mov dword [ebp + 8], ecx
cmp ecx, edx
jae 0x4fb116
mov ecx, dword [ebp + 8]
movzx ecx, word [ecx]
mov edx, ecx
and edx, 0xf000
cmp edx, 0x3000
jne sym.postgres.exe_pq_putemptymessage
and ecx, 0xfff
mov edx, esi
sub edx, dword [edi + 0x34]
add ecx, esi
add ecx, dword [eax]
add dword [ecx], edx
jmp 0x4fb108
cmp edx, ebx
jne 0x4fb256
mov ecx, dword [eax + 4]
add dword [ebp + 8], 2
add ecx, eax
cmp dword [ebp + 8], ecx
jb 0x4fb0d7
add eax, dword [eax + 4]
jmp 0x4fb0c4
mov dword [ebp + 0xc], ebx
jmp 0x4fb126
mov eax, dword [ebp + 0xc]
cmp ax, word [edi + 6]
jne 0x4fb13e
mov edx, dword [ebp - 0xb4]
xor ecx, ecx
mov edi, 0x60000000
jmp 0x4fb15c
movzx eax, ax
lea eax, [eax + eax*4]
mov ecx, dword [edi + eax*8 + 0x104]
mov edx, dword [edi + eax*8 + 0x108]
lea eax, [edi + eax*8 + 0xf8]
mov edi, dword [eax + 0x24]
lea eax, [edx + ecx - 1]
xor edx, edx
div dword [ebp - 0xac]
xor edx, edx
mov dword [ebp - 0x44], eax
mov eax, ecx
div dword [ebp - 0xac]
cmp eax, dword [ebp - 0x44]
ja 0x4fb1ba
mov edx, edi
mov dword [ebp + 8], edi
and dword [ebp + 8], 0x40000000
mov dword [ebp + 0x10], edi
and edx, 0x20000000
and dword [ebp + 0x10], 0x80000000
adc byte gs:[eax], al
add byte [eax], al
invalid
mov ecx, dword [ebp + 0x18]
cmp edx, ebx
je 0x4fb1a1
or byte [eax + ecx], 1
cmp dword [ebp + 8], ebx
je 0x4fb1aa
or byte [eax + ecx], 2
cmp dword [ebp + 0x10], ebx
je 0x4fb1b4
add ecx, eax
or byte [ecx], 4
inc eax
cmp eax, dword [ebp - 0x44]
jbe 0x4fb196
inc dword [ebp + 0xc]
mov eax, dword [ebp - 0x88]
mov cx, word [ebp + 0xc]
cmp cx, word [eax + 6]
jbe sym.postgres.exe_pq_getmsgbyte
mov dword [ebp + 8], esi
xor edi, edi
mov eax, dword [ebp + 0x18]
push 2
pop ecx
movzx eax, byte [edi + eax]
sub eax, ecx
je 0x4fb207
dec eax
je 0x4fb1fe
sub eax, 3
je 0x4fb1f5
mov dword [ebp - 4], 0x40
jmp 0x4fb224
mov dword [ebp - 4], 4
jmp 0x4fb20a
mov dword [ebp - 4], 0x20
jmp 0x4fb20a
mov dword [ebp - 4], ecx
lea eax, [ebp - 4]
push eax
push dword [ebp - 4]
push dword [ebp - 0xac]
push dword [ebp + 8]
call dword [ebp - 0xbc]
test eax, eax
je 0x4fb256
mov eax, dword [ebp - 0xac]
add dword [ebp + 8], eax
inc edi
cmp edi, dword [ebp - 0x8c]
jbe 0x4fb1d6
mov eax, dword [ebp - 0x88]
mov edi, dword [eax + 0x28]
add edi, esi
call fcn.004faa67
std
scasd eax, dword es:[edi]
hlt
push 0x8000
push ebx
push esi
call dword [ebp - 8]
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x4fb190
Capabilities:
Inspect section memory permissions

Disassembly:
cmp dword [eax], ebx
je 0x4fb11b
mov edx, dword [eax + 4]
lea ecx, [eax + 8]
add edx, eax
mov dword [ebp + 8], ecx
cmp ecx, edx
jae 0x4fb116
mov ecx, dword [ebp + 8]
movzx ecx, word [ecx]
mov edx, ecx
and edx, 0xf000
cmp edx, 0x3000
jne sym.postgres.exe_pq_putemptymessage
and ecx, 0xfff
mov edx, esi
sub edx, dword [edi + 0x34]
add ecx, esi
add ecx, dword [eax]
add dword [ecx], edx
jmp 0x4fb108
cmp edx, ebx
jne 0x4fb256
mov ecx, dword [eax + 4]
add dword [ebp + 8], 2
add ecx, eax
cmp dword [ebp + 8], ecx
jb 0x4fb0d7
add eax, dword [eax + 4]
jmp 0x4fb0c4
mov dword [ebp + 0xc], ebx
jmp 0x4fb126
mov eax, dword [ebp + 0xc]
cmp ax, word [edi + 6]
jne 0x4fb13e
mov edx, dword [ebp - 0xb4]
xor ecx, ecx
mov edi, 0x60000000
jmp 0x4fb15c
movzx eax, ax
lea eax, [eax + eax*4]
mov ecx, dword [edi + eax*8 + 0x104]
mov edx, dword [edi + eax*8 + 0x108]
lea eax, [edi + eax*8 + 0xf8]
mov edi, dword [eax + 0x24]
lea eax, [edx + ecx - 1]
xor edx, edx
div dword [ebp - 0xac]
xor edx, edx
mov dword [ebp - 0x44], eax
mov eax, ecx
div dword [ebp - 0xac]
cmp eax, dword [ebp - 0x44]
ja 0x4fb1ba
mov edx, edi
mov dword [ebp + 8], edi
and dword [ebp + 8], 0x40000000
mov dword [ebp + 0x10], edi
and edx, 0x20000000
and dword [ebp + 0x10], 0x80000000
adc byte gs:[eax], al
add byte [eax], al
invalid
mov ecx, dword [ebp + 0x18]
cmp edx, ebx
je 0x4fb1a1
or byte [eax + ecx], 1
cmp dword [ebp + 8], ebx
je 0x4fb1aa
or byte [eax + ecx], 2
cmp dword [ebp + 0x10], ebx
je 0x4fb1b4
add ecx, eax
or byte [ecx], 4
inc eax
cmp eax, dword [ebp - 0x44]
jbe 0x4fb196
inc dword [ebp + 0xc]
mov eax, dword [ebp - 0x88]
mov cx, word [ebp + 0xc]
cmp cx, word [eax + 6]
jbe sym.postgres.exe_pq_getmsgbyte
mov dword [ebp + 8], esi
xor edi, edi
mov eax, dword [ebp + 0x18]
push 2
pop ecx
movzx eax, byte [edi + eax]
sub eax, ecx
je 0x4fb207
dec eax
je 0x4fb1fe
sub eax, 3
je 0x4fb1f5
mov dword [ebp - 4], 0x40
jmp 0x4fb224
mov dword [ebp - 4], 4
jmp 0x4fb20a
mov dword [ebp - 4], 0x20
jmp 0x4fb20a
mov dword [ebp - 4], ecx
lea eax, [ebp - 4]
push eax
push dword [ebp - 4]
push dword [ebp - 0xac]
push dword [ebp + 8]
call dword [ebp - 0xbc]
test eax, eax
je 0x4fb256
mov eax, dword [ebp - 0xac]
add dword [ebp + 8], eax
inc edi
cmp edi, dword [ebp - 0x8c]
jbe 0x4fb1d6
mov eax, dword [ebp - 0x88]
mov edi, dword [eax + 0x28]
add edi, esi
call fcn.004faa67
std
scasd eax, dword es:[edi]
hlt
push 0x8000
push ebx
push esi
call dword [ebp - 8]
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x4fb280
Capabilities:
Contain obfuscated stackstrings

Disassembly:
add byte [eax - 0x3525b], al
inc dword [eax]
mov byte [ebp - 0x352], 0xda
and byte [ebp - 0x351], 0
mov byte [ebp - 0x350], 0x62
mov byte [ebp - 0x34f], 0x40
mov byte [ebp - 0x34e], 0x51
mov byte [ebp - 0x34d], 0x75
mov byte [ebp - 0x34c], 0x57
mov byte [ebp - 0x34b], 0x4a
mov byte [ebp - 0x34a], 0x46
mov byte [ebp - 0x349], 0x40
mov byte [ebp - 0x348], 0x56
mov byte [ebp - 0x347], 0x56
mov byte [ebp - 0x346], 0x6d
mov byte [ebp - 0x345], 0x40
mov byte [ebp - 0x344], 0x44
mov byte [ebp - 0x343], 0x55
mov byte [ebp - 0x342], 0x25
lea eax, [ebp - 0x354]
push eax
call fcn.004faa77
pop ecx
push eax
push dword [ebp + 0x18]
push dword [ebp + 0x14]
call fcn.004faa2c
add esp, 0xc
mov dword [ebp - 0x68c], eax
call dword [ebp - 0x68c]
mov dword [ebp - 0x674], eax
mov dword [ebp - 0x384], 4
and byte [ebp - 0x334], 0
push 0x40

Function at 0x4fb340
Capabilities:
Contain obfuscated stackstrings

Disassembly:
pop ecx
xor eax, eax
lea edi, [ebp - 0x333]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov dword [ebp - 0x670], 4
and byte [ebp - 0x3c4], 0
and byte [ebp - 0x3c3], 0
mov byte [ebp - 0x3c2], 0x99
and byte [ebp - 0x3c1], 0
mov byte [ebp - 0x3c0], 0x21
mov byte [ebp - 0x3bf], 3
mov byte [ebp - 0x3be], 0x12
mov byte [ebp - 0x3bd], 0x2b
mov byte [ebp - 0x3bc], 9
mov byte [ebp - 0x3bb], 2
mov byte [ebp - 0x3ba], 0x13
mov byte [ebp - 0x3b9], 0xa
mov byte [ebp - 0x3b8], 3
mov byte [ebp - 0x3b7], 0x20
mov byte [ebp - 0x3b6], 0xf
shufps xmm0, xmmword [ebp - 0x3b5], 0xa
Function at 0x549420
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
push 0
push str.yy_fatal_error
push 0x4136
push str.src_backendparser_scan.c
push 0x14
call sym.postgres.exe_errstart
add esp, 0x14
test al, al
je 0x549459
mov eax, dword [ebp + 8]
push eax
push 0x6ab5fc
call sym.postgres.exe_errmsg_internal
push eax
call sym.postgres.exe_errfinish
add esp, 0xc
push 2
call dword [sym.imp.MSVCR100.dll_exit]
int3
Function at 0x575fd0
Capabilities:
Compare security identifiers
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x120
mov eax, dword [0x82aea4]
xor eax, ebp
mov dword [ebp - 4], eax
xor eax, eax
mov dword [ebp - 0x118], eax
mov dword [ebp - 0x10c], eax
lea eax, [ebp - 0x11c]
push eax
push 0x20008
mov word [ebp - 0x108], 0x500
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
jne 0x576033
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.could_not_open_process_token:_error_code__lu_n
call sym.postgres.exe_write_stderr
add esp, 8
push 1
call dword [sym.imp.MSVCR100.dll_exit]
push ebx
mov ebx, dword [ebp - 0x11c]
push esi
push edi
push pe_nt_image_headers32
lea ecx, [ebp - 0x104]
push ecx
lea edx, [ebp - 0x118]
push edx
mov edi, 2
call fcn.00575f20
add esp, 0xc
test eax, eax
jne 0x57607c
lea eax, [ebp - 0x104]
push eax
push 0x6ab5fc
call sym.postgres.exe_write_stderr
add esp, 8
push 1
call dword [sym.imp.MSVCR100.dll_exit]
mov ecx, dword [ebp - 0x11c]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov esi, dword [sym.imp.ADVAPI32.dll_AllocateAndInitializeSid]
xor edi, edi
lea edx, [ebp - 0x120]
push edx
push edi
push edi
push edi
push edi
push edi
push edi
push 0x220
push 0x20
push 2
lea eax, [ebp - 0x10c]
push eax
call esi
test eax, eax
jne 0x5760d0
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.could_not_get_SID_for_Administrators_group:_error_code__lu_n
call sym.postgres.exe_write_stderr
add esp, 8
push 1
call dword [sym.imp.MSVCR100.dll_exit]
lea ecx, [ebp - 0x110]
push ecx
push edi
push edi
push edi
push edi
push edi
push edi
push 0x223
push 0x20
push 2
lea edx, [ebp - 0x10c]
push edx
call esi
test eax, eax
jne 0x57610f
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.could_not_get_SID_for_PowerUsers_group:_error_code__lu_n
call sym.postgres.exe_write_stderr
add esp, 8
push 1
call dword [sym.imp.MSVCR100.dll_exit]
mov ebx, dword [ebp - 0x118]
mov dword [ebp - 0x114], edi
cmp dword [ebx], edi
jbe 0x57616a
lea esi, [ebx + 8]
mov eax, dword [esi - 4]
mov ecx, dword [ebp - 0x120]
push eax
push ecx
call dword [sym.imp.ADVAPI32.dll_EqualSid]
test eax, eax
je 0x57613c
test byte [esi], 4
jne 0x576160
mov edx, dword [esi - 4]
mov eax, dword [ebp - 0x110]
push edx
push eax
call dword [sym.imp.ADVAPI32.dll_EqualSid]
test eax, eax
je 0x576156
test byte [esi], 4
jne 0x576160
inc edi
add esi, 8
cmp edi, dword [ebx]
jb 0x576122
jmp 0x57616a
mov dword [ebp - 0x114], 1
push ebx
call dword [sym.imp.MSVCR100.dll_free]
mov ecx, dword [ebp - 0x120]
mov esi, dword [sym.imp.ADVAPI32.dll_FreeSid]
add esp, 4
push ecx
call esi
mov edx, dword [ebp - 0x110]
push edx
call esi
mov ecx, dword [ebp - 4]
mov eax, dword [ebp - 0x114]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.006a8ca2
mov esp, ebp
pop ebp
ret
Function at 0x5765d0
Capabilities:
Create pipe

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x84
mov eax, dword [0x82aea4]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
mov edi, dword [ebp + 8]
push edi
push str..pipepgsignal__u
lea eax, [ebp - 0x84]
push 0x80
push eax
call sym.postgres.exe_pg_snprintf
add esp, 0x10
push 0
push 0x3e8
push 0x10
push 0x10
push 0xff
push 6
push 3
lea ecx, [ebp - 0x84]
push ecx
call dword [sym.imp.KERNEL32.dll_CreateNamedPipeA]
mov esi, eax
cmp esi, 0xffffffff
jne 0x576666
push 0
push 0x732aec
push 0xbe
push str.src_backendportwin32_signal.c
push 0x14
call sym.postgres.exe_errstart
add esp, 0x14
test al, al
je 0x576664
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push edi
push str.could_not_create_signal_listener_pipe_for_PID__d:_error_code__lu
call sym.postgres.exe_errmsg
push eax
call sym.postgres.exe_errfinish
add esp, 0x10
mov eax, esi
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.006a8ca2
mov esp, ebp
pop ebp
ret