joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1400bbf50
Capabilities:
Resolve function by parsing pe exports

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rsi
push r14
sub rsp, 0x250
mov rax, qword [0x140106040]
xor rax, rsp
mov qword [rsp + 0x240], rax
mov eax, dword [rcx + 0x58]
lea rbx, [rsp + 0x30]
mov dword [rsp + 0x40], eax
mov ebp, r9d
mov eax, dword [rcx + 0x5c]
mov rsi, rcx
mov dword [rsp + 0x44], eax
mov eax, dword [rsp + 0x290]
mov dword [rsp + 0x34], eax
mov dword [rsp + 0x38], edx
mov dword [rsp + 0x3c], r8d
mov dword [rsp + 0x30], r9d
mov qword [rsp + 0x278], rdi
nop dword [rax]
mov r10d, dword [rbx + 0x14]
mov eax, r10d
mov r14d, dword [rbx + 4]
cmp r10d, r14d
mov r9d, dword [rbx + 0xc]
cmovg eax, r14d
cmp r9d, eax
jl 0x1400bc0ec
cmp r10d, r14d
mov eax, r14d
cmovg eax, r10d
cmp r9d, eax
jg 0x1400bc0ec
cmp r10d, r14d
jne 0x1400bbff0
sub rbx, 0x10
jmp 0x1400bc134
mov edx, dword [rsi + 0x88]
xor r9d, r9d
cmp r10d, r14d
setge r9b
inc r9d
cmp edx, r9d
je 0x1400bc062
mov eax, dword [rsi + 4]
mov ecx, eax
mov r8d, dword [rsi + 8]
neg ecx
cmp r10d, r14d
jge 0x1400bc024
dec eax
add eax, r10d
and eax, ecx
sub eax, r10d
jmp 0x1400bc02c
and ecx, r10d
mov eax, r10d
sub eax, ecx
cmp eax, r8d
setge r11b
test edx, edx
je 0x1400bc04b
movzx edx, r11b
mov rcx, rsi
call fcn.1400bd100
test al, al
jne 0x1400bc145
movzx r8d, r11b
mov edx, r9d
mov rcx, rsi
call fcn.1400bd770
test al, al
jne 0x1400bc145
mov edx, dword [rsi + 0x64]
lea r9, [0x1400bdad0]
mov ecx, dword [rsi + 0x60]
mov r8, rbx
cmp r10d, r14d
jge 0x1400bc08e
mov dword [rsp + 0x28], edx
mov edx, 2
mov dword [rsp + 0x20], ecx
mov rcx, rsi
call fcn.1400bbdd0
jmp 0x1400bc0e2
mov eax, dword [rbx + 4]
neg ecx
movzx edi, byte [rsi + 0x6a]
neg eax
mov dword [rbx + 4], eax
neg edx
mov eax, dword [rbx + 0xc]
neg eax
mov dword [rsp + 0x28], ecx
mov dword [rbx + 0xc], eax
mov rcx, rsi
mov eax, dword [rbx + 0x14]
neg eax
mov dword [rsp + 0x20], edx
mov edx, 2
mov dword [rbx + 0x14], eax
call fcn.1400bbdd0
test dil, dil
je 0x1400bc0da
cmp byte [rsi + 0x6a], 0
jne 0x1400bc0da
mov rdx, qword [rsi + 0x70]
mov ecx, dword [rdx + 0x20]
neg ecx
mov dword [rdx + 0x20], ecx
mov ecx, dword [rbx + 4]
neg ecx
mov dword [rbx + 4], ecx
test al, al
jne 0x1400bc145
sub rbx, 0x10
jmp 0x1400bc134
mov eax, dword [rbx + 8]
mov ecx, dword [rbx + 0x10]
mov dword [rbx + 0x20], ecx
add ecx, eax
mov dword [rbx + 0x24], r10d
lea edx, [rax + rbp]
mov eax, ecx
sar eax, 1
mov dword [rbx + 0x18], eax
lea eax, [rcx + rdx]
sar eax, 2
lea ecx, [r10 + r9]
mov dword [rbx + 0x10], eax
mov eax, ecx
sar edx, 1
sar eax, 1
mov dword [rbx + 8], edx
lea edx, [r14 + r9]
mov dword [rbx + 0x1c], eax
lea eax, [rcx + rdx]
sar eax, 2
sar edx, 1
mov dword [rbx + 0x14], eax
mov dword [rbx + 0xc], edx
add rbx, 0x10
lea rax, [rsp + 0x30]
cmp rbx, rax
jb 0x1400bc149
mov ebp, dword [rbx]
jmp 0x1400bbfb0
mov al, 1
jmp 0x1400bc152
mov dword [rsi + 0x58], ebp
xor al, al
mov dword [rsi + 0x5c], r14d
mov rdi, qword [rsp + 0x278]
mov rcx, qword [rsp + 0x240]
xor rcx, rsp
call fcn.1400c8270
mov rbx, qword [rsp + 0x280]
add rsp, 0x250
pop r14
pop rsi
pop rbp
ret
Function at 0x1400c24a0
Capabilities:
Get file size
Read file on windows
Read file via mapping

Disassembly:
push rbx
push rbp
sub rsp, 0x48
mov rbp, rdx
mov rbx, rcx
test rcx, rcx
jne 0x1400c24bc
lea eax, [rcx + 0x28]
add rsp, 0x48
pop rbp
pop rbx
ret
mov qword [rsp + 0x68], rsi
xor r9d, r9d
mov qword [rsp + 0x40], r14
mov edx, 0x80000000
xor r14d, r14d
mov rcx, rbp
mov qword [rsp + 0x30], r14
mov dword [rsp + 0x28], 0x80
mov dword [rsp + 0x20], 3
lea r8d, [r14 + 1]
call qword [sym.imp.KERNEL32.dll_CreateFileA]
mov rsi, rax
cmp rax, 0xffffffffffffffff
jne 0x1400c2510
mov r14, qword [rsp + 0x40]
lea eax, [rsi + 2]
mov rsi, qword [rsp + 0x68]
add rsp, 0x48
pop rbp
pop rbx
ret
lea rdx, [rsp + 0x70]
mov qword [rsp + 0x78], rdi
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
je 0x1400c2635
mov rax, qword [rsp + 0x70]
cmp rax, 0x7fffffff
jg 0x1400c2635
test rax, rax
je 0x1400c2635
xor r9d, r9d
mov qword [rsp + 0x28], r14
xor edx, edx
mov dword [rsp + 0x20], r14d
mov rcx, rsi
lea r8d, [r9 + 2]
call qword [sym.imp.KERNEL32.dll_CreateFileMappingA]
mov rdi, rax
test rax, rax
je 0x1400c2635
mov ecx, dword [rsp + 0x70]
xor r9d, r9d
mov dword [rbx + 8], ecx
xor r8d, r8d
mov rcx, rax
mov dword [rbx + 0xc], r14d
mov qword [rsp + 0x20], r14
lea edx, [r9 + 4]
call qword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov rcx, rdi
mov qword [rbx], rax
call qword [sym.imp.KERNEL32.dll_CloseHandle]
cmp qword [rbx], r14
je 0x1400c25aa
lea rax, [0x1400c2690]
jmp 0x1400c2603
mov rcx, qword [rbx + 0x30]
xor edx, edx
movsxd r8, dword [rbx + 8]
mov rcx, qword [rcx]
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
mov qword [rbx], rax
test rax, rax
je 0x1400c2635
mov edi, r14d
nop dword [rax + rax]
mov r8d, dword [rbx + 8]
lea r9, [rsp + 0x60]
mov edx, edi
sub r8d, edi
add rdx, qword [rbx]
mov rcx, rsi
mov qword [rsp + 0x20], r14
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x1400c2623
add edi, dword [rsp + 0x60]
cmp edi, dword [rbx + 8]
jne 0x1400c25d0
lea rax, [0x1400c2660]
mov rcx, rsi
mov qword [rbx + 0x28], rax
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rax, qword [rbx]
mov qword [rbx + 0x10], rax
xor eax, eax
mov qword [rbx + 0x18], rbp
mov qword [rbx + 0x20], r14
jmp 0x1400c264a
mov rcx, qword [rbx + 0x30]
xor edx, edx
mov r8, qword [rbx]
mov rcx, qword [rcx]
call qword [sym.imp.KERNEL32.dll_HeapFree]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, 0x51
mov qword [rbx], r14
mov qword [rbx + 8], r14
mov rdi, qword [rsp + 0x78]
mov rsi, qword [rsp + 0x68]
mov r14, qword [rsp + 0x40]
add rsp, 0x48
pop rbp
pop rbx
ret
Function at 0x1400c3c20
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
mov r9, rdx
test rdx, rdx
jne 0x1400c3c2b
xor eax, eax
ret
lea r11, [0x1400e5f00]
not ecx
cmp r8d, 8
jb 0x1400c3d01
mov r10d, r8d
shr r10, 3
nop word [rax + rax]
movzx edx, byte [r9]
mov eax, ecx
xor rdx, rax
shr ecx, 8
movzx eax, dl
add r8d, 0xfffffff8
movzx edx, byte [r9 + 1]
xor ecx, dword [r11 + rax*4]
mov eax, ecx
shr ecx, 8
xor rdx, rax
movzx eax, dl
movzx edx, byte [r9 + 2]
xor ecx, dword [r11 + rax*4]
mov eax, ecx
shr ecx, 8
xor rdx, rax
movzx eax, dl
movzx edx, byte [r9 + 3]
xor ecx, dword [r11 + rax*4]
mov eax, ecx
shr ecx, 8
xor rdx, rax
movzx eax, dl
movzx edx, byte [r9 + 4]
xor ecx, dword [r11 + rax*4]
mov eax, ecx
shr ecx, 8
xor rdx, rax
movzx eax, dl
movzx edx, byte [r9 + 5]
xor ecx, dword [r11 + rax*4]
mov eax, ecx
shr ecx, 8
xor rdx, rax
movzx eax, dl
movzx edx, byte [r9 + 6]
xor ecx, dword [r11 + rax*4]
mov eax, ecx
shr ecx, 8
xor rdx, rax
movzx eax, dl
movzx edx, byte [r9 + 7]
add r9, 8
xor ecx, dword [r11 + rax*4]
mov eax, ecx
shr ecx, 8
xor rdx, rax
movzx eax, dl
xor ecx, dword [r11 + rax*4]
sub r10, 1
jne 0x1400c3c50
test r8d, r8d
je 0x1400c3d2d
nop word [rax + rax]
movzx edx, byte [r9]
lea r9, [r9 + 1]
mov eax, ecx
shr ecx, 8
xor rdx, rax
movzx eax, dl
xor ecx, dword [r11 + rax*4]
add r8d, 0xffffffff
jne 0x1400c3d10
not ecx
mov eax, ecx
ret
Function at 0x1400c8760
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x1400c87aa
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x1400c87aa
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x1400c87aa
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x1400c87aa
cmp dword [rcx + 0x84], 0xe
jbe 0x1400c87aa
cmp dword [rcx + 0xf8], 0
setne al
jmp 0x1400c87ac
xor al, al
add rsp, 0x28
ret
Function at 0x14000adb0
Capabilities:
Write file on windows

Disassembly:
push r12
push rbx
sub rsp, 0x38
mov r12, rcx
lea rax, [rsp + 0x58]
mov ecx, 2
mov qword [rsp + 0x58], rdx
mov qword [rsp + 0x60], r8
mov qword [rsp + 0x68], r9
mov qword [rsp + 0x28], rax
call fcn.140014f00
mov r8d, 0x1b
mov edx, 1
lea rcx, str.Mingw_w64_runtime_failure:_n
mov r9, rax
call sub.msvcrt.dll_fwrite
mov rbx, qword [rsp + 0x28]
mov ecx, 2
call fcn.140014f00
mov rdx, r12
mov rcx, rax
mov r8, rbx
call sub.msvcrt.dll_vfprintf
call sub.msvcrt.dll_abort
nop
nop word [rax + rax]

Function at 0x14000ae20
Capabilities:
Allocate or change rwx memory

Disassembly:
push r12
push rsi
push rbx
sub rsp, 0x50
movsxd rbx, dword [0x14017e0b4]
mov r12, rcx
test ebx, ebx
jle 0x14000af50
mov rax, qword [0x14017e0b8]
xor ecx, ecx
add rax, 0x18
nop word [rax + rax]
mov rdx, qword [rax]
cmp rdx, r12
ja 0x14000ae6c
mov r8, qword [rax + 8]
mov r8d, dword [r8 + 8]
add rdx, r8
cmp r12, rdx
jb 0x14000aef3
add ecx, 1
add rax, 0x28
cmp ecx, ebx
jne 0x14000ae50
mov rcx, r12
call fcn.14000b880
mov rsi, rax
test rax, rax
je 0x14000af72
mov rax, qword [0x14017e0b8]
lea rbx, [rbx + rbx*4]
shl rbx, 3
add rax, rbx
mov qword [rax + 0x20], rsi
mov dword [rax], 0
call fcn.14000b9b0
mov ecx, dword [rsi + 0xc]
lea rdx, [rsp + 0x20]
mov r8d, 0x30
add rcx, rax
mov rax, qword [0x14017e0b8]
mov qword [rax + rbx + 0x18], rcx
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x14000af57
mov eax, dword [rsp + 0x44]
lea edx, [rax - 0x40]
and edx, 0xffffffbf
je 0x14000aeec
lea edx, [rax - 4]
and edx, 0xfffffffb
jne 0x14000af00
add dword [0x14017e0b4], 1
add rsp, 0x50
pop rbx
pop rsi
pop r12
ret
cmp eax, 2
mov rcx, qword [rsp + 0x20]
mov rdx, qword [rsp + 0x38]
mov r8d, 4
mov eax, 0x40
cmovne r8d, eax
add rbx, qword [0x14017e0b8]
mov qword [rbx + 8], rcx
mov r9, rbx
mov qword [rbx + 0x10], rdx
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x14000aeec
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.__VirtualProtect_failed_with_code_0x_x
mov edx, eax
call fcn.14000adb0
nop dword [rax]
xor ebx, ebx
jmp 0x14000ae77
mov rax, qword [0x14017e0b8]
mov edx, dword [rsi + 8]
lea rcx, str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov r8, qword [rax + rbx + 0x18]
call fcn.14000adb0
mov rdx, r12
lea rcx, str.Address__p_has_no_image_section
call fcn.14000adb0
nop
nop word cs:[rax + rax]
nop dword [rax]

Function at 0x14000b4f0
Capabilities:
Get thread local storage value

Disassembly:
push r12
push rdi
push rsi
push rbx
sub rsp, 0x28
lea rcx, [0x14017e120]
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rbx, qword [0x14017e100]
test rbx, rbx
je 0x14000b544
mov rdi, qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rsi, qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [rbx]
call rdi
mov r12, rax
call rsi
test eax, eax
jne 0x14000b53b
test r12, r12
je 0x14000b53b
mov rax, qword [rbx + 8]
mov rcx, r12
call rax
mov rbx, qword [rbx + 0x10]
test rbx, rbx
jne 0x14000b520
lea rcx, [0x14017e120]
add rsp, 0x28
pop rbx
pop rsi
pop rdi
pop r12
jmp qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
Function at 0x14000b880
Capabilities:
Enumerate pe sections
Parse pe header

Disassembly:
mov rdx, qword [0x1401598c0]
xor eax, eax
cmp word [rdx], 0x5a4d
jne 0x14000b8a0
movsxd r8, dword [rdx + 0x3c]
add r8, rdx
cmp dword [r8], 0x4550
je 0x14000b8a8
ret
cmp word [r8 + 0x18], 0x20b
jne 0x14000b8a0
movzx eax, word [r8 + 0x14]
sub rcx, rdx
movzx edx, word [r8 + 6]
lea rax, [r8 + rax + 0x18]
test edx, edx
je 0x14000b8f5
sub edx, 1
lea rdx, [rdx + rdx*4]
lea r9, [rax + rdx*8 + 0x28]
nop dword [rax + rax]
mov r8d, dword [rax + 0xc]
mov rdx, r8
cmp rcx, r8
jb 0x14000b8ec
add edx, dword [rax + 8]
cmp rcx, rdx
jb 0x14000b8a0
add rax, 0x28
cmp rax, r9
jne 0x14000b8d8
xor eax, eax
ret

Function at 0x14000b900
Capabilities:
Parse pe header

Disassembly:
mov rax, qword [0x1401598c0]
xor r8d, r8d
cmp word [rax], 0x5a4d
jne 0x14000b920
movsxd rdx, dword [rax + 0x3c]
add rax, rdx
cmp dword [rax], 0x4550
je 0x14000b928
mov eax, r8d
ret
cmp word [rax + 0x18], 0x20b
jne 0x14000b920
movzx r8d, word [rax + 6]
mov eax, r8d
ret

Function at 0x14000b9b0
Capabilities:
Parse pe header

Disassembly:
mov rax, qword [0x1401598c0]
xor r8d, r8d
cmp word [rax], 0x5a4d
jne 0x14000b9d0
movsxd rdx, dword [rax + 0x3c]
add rdx, rax
cmp dword [rdx], 0x4550
je 0x14000b9d8
mov rax, r8
ret
cmp word [rdx + 0x18], 0x20b
cmove r8, rax
mov rax, r8
ret

Function at 0x14000bc00
Capabilities:
Allocate thread local storage

Disassembly:
push rdi
push rsi
push rbx
sub rsp, 0x20
mov eax, dword [0x14017e108]
mov edi, ecx
mov rsi, rdx
test eax, eax
jne 0x14000b580
add rsp, 0x20
pop rbx
pop rsi
pop rdi
ret
mov edx, 0x18
mov ecx, 1
call sub.msvcrt.dll_calloc
mov rbx, rax
test rax, rax
je 0x14000b5d3
mov dword [rax], edi
lea rcx, [0x14017e120]
mov qword [rax + 8], rsi
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rax, qword [0x14017e100]
lea rcx, [0x14017e120]
mov qword [0x14017e100], rbx
mov qword [rbx + 0x10], rax
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
xor eax, eax
add rsp, 0x20
pop rbx
pop rsi
pop rdi
ret
or eax, 0xffffffff
jmp 0x14000b576
push r12
push rbx
sub rsp, 0x28
mov rbx, rcx
mov r12, rdx
call qword [sym.imp.KERNEL32.dll_TlsAlloc]
mov ecx, eax
cmp eax, 0xffffffff
je 0x14000bc30
mov rdx, r12
mov dword [rbx], eax
add rsp, 0x28
pop rbx
pop r12
jmp 0x140015800
add rsp, 0x28
pop rbx
pop r12
jmp qword [sym.imp.KERNEL32.dll_GetLastError]
test rdx, rdx
jne 0x140015810
xor eax, eax
ret
jmp 0x14000b560

Function at 0x14000bc70
Capabilities:
Get thread local storage value

Disassembly:
push r13
push r12
sub rsp, 0x28
mov r12d, ecx
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, r12d
mov r13d, eax
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov ecx, r13d
mov r12, rax
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov rax, r12
add rsp, 0x28
pop r12
pop r13
ret

Function at 0x14000bcb0
Capabilities:
Set thread local storage value

Disassembly:
sub rsp, 0x28
call qword [sym.imp.KERNEL32.dll_TlsSetValue]
test eax, eax
je 0x14000bcc8
xor eax, eax
add rsp, 0x28
ret
add rsp, 0x28
jmp qword [sym.imp.KERNEL32.dll_GetLastError]
Function at 0x1400720c0
Capabilities:
Read file on windows

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x20
mov rbp, qword [sym.imp.msvcrt.dll__errno]
mov rdi, rcx
mov rsi, rdx
mov ebx, r8d
jmp 0x1400720e7
call rbp
cmp dword [rax], 4
jne 0x140072104
mov rcx, rdi
call fcn.140071ee0
mov r8d, ebx
mov rdx, rsi
mov ecx, eax
call sub.msvcrt.dll__read
movsxd r12, eax
cmp eax, 0xffffffff
je 0x1400720e0
mov rax, r12
add rsp, 0x20
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret
Function at 0xc9e240
Capabilities:
Terminate process

Disassembly:
cld
pop r11
jmp 0xc9e24d
inc rsi
mov byte [rdi], dl
inc rdi
mov dl, byte [rsi]
add ebx, ebx
jne 0xc9e25d
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
mov dl, byte [rsi]
jb 0xc9e245
lea eax, [rcx + 1]
jmp 0xc9e26b
dec eax
call r11
adc eax, eax
call r11
adc eax, eax
add ebx, ebx
jne 0xc9e27e
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
mov dl, byte [rsi]
jae 0xc9e264
sub eax, 3
jb 0xc9e29e
shl eax, 8
movzx edx, dl
or eax, edx
inc rsi
xor eax, 0xffffffff
je 0xc9e2ed
sar eax, 1
movsxd rbp, eax
jb 0xc9e2d4
jmp 0xc9e2ac
add ebx, ebx
jne 0xc9e2aa
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
jb 0xc9e2d4
inc ecx
add ebx, ebx
jne 0xc9e2ba
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
jb 0xc9e2d4
call r11
adc ecx, ecx
add ebx, ebx
jne 0xc9e2cd
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
jae 0xc9e2bc
add ecx, 2
jmp 0xc9e2d9
call r11
adc ecx, ecx
cmp rbp, 0xfffffffffffffb00
adc ecx, 2
call fcn.00c9e202
jmp 0xc9e24d
pop rsi
sub rsp, 0x28
lea rdi, [rsi + 0x892000]
mov eax, dword [rdi]
or eax, eax
je 0xc9e349
mov ebx, dword [rdi + 4]
lea rcx, [rax + rsi + 0x89e000]
add rbx, rsi
add rdi, 8
call qword [sym.imp.KERNEL32.DLL_LoadLibraryA]
xchg rbp, rax
mov al, byte [rdi]
inc rdi
or al, al
je 0xc9e2f9
mov rcx, rdi
mov rdx, rdi
dec eax
repne scasb al, byte [rdi]
mov rcx, rbp
call qword [sym.imp.KERNEL32.DLL_GetProcAddress]
or rax, rax
je 0xc9e343
mov qword [rbx], rax
add rbx, 8
jmp 0xc9e319
jmp qword [sym.imp.KERNEL32.DLL_ExitProcess]
add rsp, 0x28
add rdi, 4
lea rbx, [rsi - 4]
xor eax, eax
mov al, byte [rdi]
inc rdi
or eax, eax
je 0xc9e38d
cmp al, 0xef
ja 0xc9e375
add rbx, rax
mov rax, qword [rbx]
bswap rax
add rax, rsi
mov qword [rbx], rax
jmp 0xc9e355
and al, 0xf
shl eax, 0x10
mov ax, word [rdi]
add rdi, 2
or eax, eax
jne 0xc9e364
mov eax, dword [rdi]
add rdi, 4
jmp 0xc9e364
mov rbp, qword [sym.imp.KERNEL32.DLL_VirtualProtect]
lea rdi, [rsi - 0x1000]
mov ebx, 0x1000
push rax
mov r9, rsp
mov r8d, 4
mov rdx, rbx
mov rcx, rdi
sub rsp, 0x20
call rbp
lea rax, [rdi + 0x1af]
and byte [rax], 0x7f
and byte [rax + 0x28], 0x7f
lea r9, [rsp + 0x20]
mov r8, qword [r9]
mov rdx, rbx
mov rcx, rdi
call rbp
add rsp, 0x28
pop rbp
pop rdi
pop rsi
pop rbx
lea rax, [rsp - 0x80]
push 0
cmp rsp, rax
jne 0xc9e3e1
sub rsp, 0xffffffffffffff80
jmp 0x45c5a0
Function at 0x140001000
Capabilities:
Terminate process

Disassembly:
cmp ecx, 1
jle 0x1400010dc
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x20
mov rdi, r8
mov qword [rsp + 0x30], rbx
mov rbx, qword [rdx + 8]
lea r8, str.__help
mov rsi, r9
xor ecx, ecx
nop dword [rax + rax]
movzx eax, byte [rbx + rcx]
inc rcx
cmp al, byte [r8 + rcx - 1]
jne 0x140001046
cmp rcx, 7
jne 0x140001030
jmp 0x140001069
movzx eax, byte [rbx]
cmp al, byte [reloc.LIBPQ.dll_Ordinal_45]
jne 0x14000107f
movzx eax, byte [rbx + 1]
cmp al, byte [0x1400115c1]
jne 0x14000107f
movzx eax, byte [rbx + 2]
cmp al, byte [0x1400115c2]
jne 0x14000107f
mov rcx, qword [rdx]
call fcn.14000bdd0
mov rcx, rax
call rsi
xor ecx, ecx
call qword [sym.imp.MSVCR120.dll_exit]
int3
lea rdx, str.__version
mov rcx, rbx
call sub.MSVCR120.dll_strcmp
test eax, eax
je 0x1400010b5
movzx eax, byte [rbx]
cmp al, byte [reloc.LIBPQ.dll_Ordinal_45]
jne 0x1400010cd
movzx eax, byte [rbx + 1]
cmp al, byte [0x1400115d5]
jne 0x1400010cd
movzx eax, byte [rbx + 2]
cmp al, byte [0x1400115d6]
jne 0x1400010cd
lea rcx, str._s__PostgreSQL__9.6.23_n
mov rdx, rdi
call fcn.14000c7c0
xor ecx, ecx
call qword [sym.imp.MSVCR120.dll_exit]
int3
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret
Function at 0x140001400
Capabilities:
Terminate process

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
push r14
sub rsp, 0x20
mov r14, r8
mov rsi, rdx
mov rbp, rcx
test r9b, r9b
je 0x14000142f
lea rcx, [0x14001170c]
call fcn.14000c7c0
mov rdx, rsi
mov rcx, rbp
call sub.LIBPQ.dll_Ordinal_21
mov rbx, rax
test rax, rax
je 0x140001468
mov rcx, rax
call sub.LIBPQ.dll_Ordinal_33
cmp eax, 2
jne 0x140001468
mov rbp, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
mov rax, rbx
mov rbx, qword [rsp + 0x38]
add rsp, 0x20
pop r14
ret
mov rcx, rbp
mov qword [rsp + 0x30], rdi
call sub.LIBPQ.dll_Ordinal_15
lea rcx, str._s:_query_failed:__s
mov rdi, rax
call qword [sym.imp.libintl.dll_libintl_gettext]
mov rbx, rax
call qword [sym.imp.MSVCR120.dll___iob_func]
mov r9, rdi
lea rcx, [rax + 0x60]
mov r8, r14
mov rdx, rbx
call fcn.14000c790
lea rcx, str._s:_query_was:__s_n
call qword [sym.imp.libintl.dll_libintl_gettext]
mov rbx, rax
call qword [sym.imp.MSVCR120.dll___iob_func]
mov r9, rsi
lea rcx, [rax + 0x60]
mov r8, r14
mov rdx, rbx
call fcn.14000c790
mov rcx, rbp
call sub.LIBPQ.dll_Ordinal_4
mov ecx, 1
call qword [sym.imp.MSVCR120.dll_exit]
mov rdi, qword [rsp + 0x30]
int3

Function at 0x1400014f0
Capabilities:
Terminate process

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
push r14
sub rsp, 0x20
mov r14, r8
mov rsi, rdx
mov rbp, rcx
test r9b, r9b
je 0x14000151f
lea rcx, [0x14001170c]
call fcn.14000c7c0
mov rdx, rsi
mov rcx, rbp
call sub.LIBPQ.dll_Ordinal_21
mov rbx, rax
test rax, rax
je 0x14000155c
mov rcx, rax
call sub.LIBPQ.dll_Ordinal_33
cmp eax, 1
jne 0x14000155c
mov rcx, rbx
mov rbx, qword [rsp + 0x38]
mov rbp, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
add rsp, 0x20
pop r14
jmp sub.LIBPQ.dll_Ordinal_48
mov rcx, rbp
mov qword [rsp + 0x30], rdi
call sub.LIBPQ.dll_Ordinal_15
lea rcx, str._s:_query_failed:__s
mov rdi, rax
call qword [sym.imp.libintl.dll_libintl_gettext]
mov rbx, rax
call qword [sym.imp.MSVCR120.dll___iob_func]
mov r9, rdi
lea rcx, [rax + 0x60]
mov r8, r14
mov rdx, rbx
call fcn.14000c790
lea rcx, str._s:_query_was:__s_n
call qword [sym.imp.libintl.dll_libintl_gettext]
mov rbx, rax
call qword [sym.imp.MSVCR120.dll___iob_func]
mov r9, rsi
lea rcx, [rax + 0x60]
mov r8, r14
mov rdx, rbx
call fcn.14000c790
mov rcx, rbp
call sub.LIBPQ.dll_Ordinal_4
mov ecx, 1
call qword [sym.imp.MSVCR120.dll_exit]
mov rdi, qword [rsp + 0x30]
int3
Function at 0x1400036f0
Capabilities:
Query environment variable

Disassembly:
push rbx
sub rsp, 0x20
test rdx, rdx
je 0x140003795
cmp word [rdx + 8], 0
je 0x140003795
call qword [sym.imp.MSVCR120.dll___iob_func]
mov rcx, rax
call qword [sym.imp.MSVCR120.dll__fileno]
mov ecx, eax
call qword [sym.imp.MSVCR120.dll__isatty]
test eax, eax
je 0x140003795
call qword [sym.imp.MSVCR120.dll___iob_func]
lea rcx, [rax + 0x30]
call qword [sym.imp.MSVCR120.dll__fileno]
mov ecx, eax
call qword [sym.imp.MSVCR120.dll__isatty]
test eax, eax
je 0x140003795
lea rcx, str.PAGER
call qword [sym.imp.MSVCR120.dll_getenv]
mov rbx, rax
test rax, rax
jne 0x14000375f
lea rbx, str.more
jmp 0x140003781
lea rdx, str.__t_r_n
mov rcx, rax
call qword [sym.imp.MSVCR120.dll_strspn]
or rcx, 0xffffffffffffffff
inc rcx
cmp byte [rbx + rcx], 0
jne 0x140003773
cmp rax, rcx
je 0x140003795
lea rdx, [0x140012b60]
mov rcx, rbx
call fcn.14000e960
test rax, rax
jne 0x14000379f
call qword [sym.imp.MSVCR120.dll___iob_func]
add rax, 0x30
add rsp, 0x20
pop rbx
ret
Function at 0x140003de0
Capabilities:
Terminate process

Disassembly:
mov byte [rsp + 0x18], r8b
mov qword [rsp + 0x10], rdx
push rbp
push rsi
push rdi
sub rsp, 0x30
movzx eax, byte [0x1400193b0]
xor bpl, bpl
mov rsi, r9
mov rdi, rcx
test al, al
jne 0x140003faf
mov rcx, qword [rcx]
mov eax, dword [rcx]
test eax, eax
je 0x140003faf
mov qword [rsp + 0x50], rbx
movzx ebx, byte [rsp + 0x60]
test bl, bl
jne 0x140003e56
add eax, 0xfffffffe
cmp eax, 1
jbe 0x140003e56
cmp word [rcx + 4], 1
lea rax, [rsp + 0x60]
lea r9, [rsp + 0x58]
sete r8b
mov rcx, rdi
xor edx, edx
mov qword [rsp + 0x20], rax
call fcn.140004720
movzx ebx, byte [rsp + 0x60]
movzx ebp, bl
test rsi, rsi
je 0x140003e69
xor r8d, r8d
mov rdx, rsi
mov rcx, rdi
call fcn.140005ea0
mov rdx, qword [rdi]
mov esi, dword [rdx]
lea eax, [rsi - 1]
cmp eax, 7
ja case.default.0x140003e8e
lea r8, [0x140000000]
cdqe
mov ecx, dword [r8 + rax*4 + 0x3fe8]
add rcx, r8
jmp rcx
mov rbx, qword [rsp + 0x58]
cmp word [rdx + 4], 1
mov rcx, rdi
mov rdx, rbx
jne 0x140003eac
call fcn.140005a60
jmp 0x140003f9d
call fcn.140005770
jmp 0x140003f9d
movzx eax, word [rdx + 4]
cmp ax, 1
je 0x140003ee3
cmp ax, 2
jne 0x140003eca
test bl, bl
jne 0x140003ee3
movzx r8d, bl
mov rbx, qword [rsp + 0x58]
mov rcx, rdi
mov rdx, rbx
call fcn.140005ea0
jmp 0x140003f9d
movzx r8d, bl
mov rbx, qword [rsp + 0x58]
mov rcx, rdi
mov rdx, rbx
call fcn.140004830
jmp 0x140003f9d
mov rbx, qword [rsp + 0x58]
cmp word [rdx + 4], 1
mov rcx, rdi
mov rdx, rbx
jne 0x140003f18
call fcn.140007770
jmp 0x140003f9d
call fcn.140007460
jmp 0x140003f9d
mov rbx, qword [rsp + 0x58]
cmp word [rdx + 4], 1
mov rcx, rdi
mov rdx, rbx
jne 0x140003f38
call fcn.140007e30
jmp 0x140003f9d
call fcn.140007a60
jmp 0x140003f9d
mov rbx, qword [rsp + 0x58]
cmp word [rdx + 4], 1
mov rcx, rdi
mov rdx, rbx
jne 0x140003f58
call fcn.140008b70
jmp 0x140003f9d
call fcn.140008370
jmp 0x140003f9d
mov rbx, qword [rsp + 0x58]
cmp word [rdx + 4], 1
mov rcx, rdi
mov rdx, rbx
jne 0x140003f78
call fcn.140008b70
jmp 0x140003f9d
call fcn.140008690
jmp 0x140003f9d
mov rbx, qword [rsp + 0x58]
cmp word [rdx + 4], 1
mov rcx, rdi
mov rdx, rbx
jne 0x140003f98
call fcn.140009160
jmp 0x140003f9d
call fcn.140008e30
test bpl, bpl
je 0x140003faa
mov rcx, rbx
call fcn.1400037b0
mov rbx, qword [rsp + 0x50]
add rsp, 0x30
pop rdi
pop rsi
pop rbp
ret
lea rcx, str.invalid_output_format__internal_error_:__d
call qword [sym.imp.libintl.dll_libintl_gettext]
mov rbx, rax
call qword [sym.imp.MSVCR120.dll___iob_func]
mov r8d, esi
lea rcx, [rax + 0x60]
mov rdx, rbx
call fcn.14000c790
mov ecx, 1
call qword [sym.imp.MSVCR120.dll_exit]
int3