joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1800065bc
Capabilities:
Encrypt or decrypt via wincrypt

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rsi
push rdi
push r14
push r15
mov rbp, rsp
sub rsp, 0x50
and qword [rbp - 8], 0
mov rdi, rcx
lea rcx, [rbp - 0x10]
mov dword [rbp - 0x10], 0x18
mov r15, r9
mov dword [rbp - 0xc], 0xf0000000
mov r14, rdx
call fcn.180005e7c
test rax, rax
jne 0x180006606
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
jmp 0x1800066db
and qword [rbp - 0x20], 0
mov rax, qword [rbp - 8]
mov ebx, dword [rdi + 8]
mov rsi, qword [rdi]
test rax, rax
jne 0x18000662c
lea rcx, [rbp - 0x10]
call fcn.180005e7c
test rax, rax
je 0x1800066bf
mov r9d, ebx
lea rdx, [rbp - 0x10]
mov r8, rsi
lea rcx, [rbp - 0x20]
call fcn.180005fcc
test eax, eax
jne 0x1800066bf
mov rcx, qword [rbp - 0x20]
lea esi, [rax + 1]
xor ebx, ebx
mov dword [rbp - 0x18], esi
test rcx, rcx
je 0x180006666
xor r9d, r9d
lea r8, [rbp - 0x18]
lea edx, [rax + 4]
call qword [sym.imp.ADVAPI32.dll_CryptSetKeyParam]
mov ebx, eax
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp ebx, esi
jne 0x1800066bf
mov rcx, qword [rbp - 0x20]
xor ebx, ebx
test rcx, rcx
je 0x18000668c
mov r8, qword [rdi + 0x10]
xor r9d, r9d
mov edx, esi
call qword [sym.imp.ADVAPI32.dll_CryptSetKeyParam]
mov ebx, eax
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp ebx, esi
jne 0x1800066bf
mov rcx, qword [rbp - 0x20]
test rcx, rcx
je 0x1800066bf
lea rax, [rbp - 0x14]
mov dword [rbp - 0x14], r15d
mov qword [rsp + 0x28], rax
xor r9d, r9d
xor r8d, r8d
mov qword [rsp + 0x20], r14
xor edx, edx
call qword [sym.imp.ADVAPI32.dll_CryptDecrypt]
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov rcx, qword [rbp - 0x20]
mov ebx, eax
test rcx, rcx
je 0x1800066db
call qword [sym.imp.ADVAPI32.dll_CryptDestroyKey]
and qword [rbp - 0x20], 0
mov rcx, qword [rbp - 8]
test rcx, rcx
je 0x1800066ec
xor edx, edx
call qword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
mov eax, ebx
mov rbx, qword [rsp + 0x90]
add rsp, 0x50
pop r15
pop r14
pop rdi
pop rsi
pop rbp
ret

Function at 0x18000673c
Capabilities:
Generate random numbers via winapi

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
push rdi
sub rsp, 0x30
and dword [rax - 0x14], 0
mov rdi, rcx
and qword [rax - 0x10], 0
lea rcx, [rax - 0x18]
mov ebx, edx
mov dword [rax - 0x18], 1
call fcn.180005e7c
test rax, rax
je 0x180006781
mov r8, rdi
mov edx, ebx
mov rcx, rax
call qword [sym.imp.ADVAPI32.dll_CryptGenRandom]
test eax, eax
je 0x180006781
xor ebx, ebx
jmp 0x180006784
or ebx, 0xffffffff
mov rcx, qword [rsp + 0x28]
test rcx, rcx
je 0x180006796
xor edx, edx
call qword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
mov eax, ebx
mov rbx, qword [rsp + 0x40]
add rsp, 0x30
pop rdi
ret
Function at 0x1800095f0
Capabilities:
Parse pe header

Disassembly:
push rbx
sub rsp, 0x40
xor eax, eax
mov ebx, ecx
xor ecx, ecx
mov dword [rsp + 0x60], eax
mov dword [rsp + 0x68], eax
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x18000964c
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x18000964c
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x18000964c
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x18000964c
cmp dword [rcx + 0x84], 0xe
jbe 0x18000964c
cmp dword [rcx + 0xf8], 0
je 0x18000964c
mov ecx, ebx
call fcn.180009580
lea rax, [rsp + 0x68]
mov byte [rsp + 0x58], 0
mov qword [rsp + 0x20], rax
lea rdx, [rsp + 0x20]
lea rax, [rsp + 0x60]
mov qword [rsp + 0x28], rax
lea rcx, [0x1800141a0]
lea rax, [rsp + 0x58]
mov qword [rsp + 0x30], rax
call fcn.180009400
cmp dword [rsp + 0x60], 0
jne 0x18000968f
mov ecx, ebx
call fcn.180009530
int3
add rsp, 0x40
pop rbx
ret

Function at 0x180009780
Capabilities:
Terminate process

Disassembly:
mov qword [rsp + 8], rbx
push rbp
lea rbp, [rsp - 0x4f0]
sub rsp, 0x5f0
mov rax, qword [0x180012008]
xor rax, rsp
mov qword [rbp + 0x4e0], rax
mov ecx, 0x17
call qword [sym.imp.KERNEL32.dll_IsProcessorFeaturePresent]
test eax, eax
je 0x1800097bc
mov ecx, 5
int 0x29
mov ecx, 2
call fcn.18000d7fc
xorps xmm0, xmm0
lea rcx, [rbp + 0x10]
xor eax, eax
xor edx, edx
mov r8d, 0x4d0
mov qword [rbp], rax
movups xmmword [rsp + 0x70], xmm0
movups xmmword [rbp - 0x80], xmm0
movups xmmword [rbp - 0x70], xmm0
movups xmmword [rbp - 0x60], xmm0
movups xmmword [rbp - 0x50], xmm0
movups xmmword [rbp - 0x40], xmm0
movups xmmword [rbp - 0x30], xmm0
movups xmmword [rbp - 0x20], xmm0
movups xmmword [rbp - 0x10], xmm0
call sub.msvcrt.dll_memset
lea rax, [rsp + 0x70]
mov qword [rsp + 0x48], rax
lea rcx, [rbp + 0x10]
lea rax, [rbp + 0x10]
mov qword [rsp + 0x50], rax
call qword [sym.imp.KERNEL32.dll_RtlCaptureContext]
mov rbx, qword [rbp + 0x108]
lea rdx, [rsp + 0x40]
mov rcx, rbx
xor r8d, r8d
call qword [sym.imp.KERNEL32.dll_RtlLookupFunctionEntry]
test rax, rax
je 0x180009878
mov rdx, qword [rsp + 0x40]
lea rcx, [rsp + 0x58]
mov qword [rsp + 0x38], 0
mov r9, rax
mov qword [rsp + 0x30], rcx
mov r8, rbx
lea rcx, [rsp + 0x60]
mov qword [rsp + 0x28], rcx
lea rcx, [rbp + 0x10]
mov qword [rsp + 0x20], rcx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_RtlVirtualUnwind]
mov rax, qword [rbp + 0x4f8]
mov qword [rbp + 0x108], rax
lea rax, [rbp + 0x4f8]
add rax, 8
mov dword [rsp + 0x70], 0xc0000417
mov qword [rbp + 0xa8], rax
mov rax, qword [rbp + 0x4f8]
mov qword [rbp - 0x80], rax
mov dword [rsp + 0x74], 1
call qword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
xor ecx, ecx
mov ebx, eax
call qword [sym.imp.KERNEL32.dll_SetUnhandledExceptionFilter]
lea rcx, [rsp + 0x48]
call qword [sym.imp.KERNEL32.dll_UnhandledExceptionFilter]
test eax, eax
jne 0x1800098de
test ebx, ebx
jne 0x1800098de
lea ecx, [rax + 2]
call fcn.18000d7fc
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov rcx, rax
mov edx, 0xc0000417
call qword [sym.imp.KERNEL32.dll_TerminateProcess]
mov rcx, qword [rbp + 0x4e0]
xor rcx, rsp
call fcn.18000d570
mov rbx, qword [rsp + 0x600]
add rsp, 0x5f0
pop rbp
ret
Function at 0x18000d400
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
mov qword [rsp + 0x18], rbp
push rsi
push rdi
push r14
sub rsp, 0x20
cmp dword [rcx], 0xe06d7363
mov rdi, r9
mov rbp, r8
mov r14, rdx
mov rsi, rcx
jne 0x18000d4bc
mov rax, qword [r9 + 0x38]
mov qword [rsp + 0x48], rbx
mov ebx, dword [rax]
add rbx, qword [r9 + 8]
mov eax, dword [rbx]
and eax, 0x1fffffff
sub eax, 0x19930521
cmp eax, 1
ja 0x18000d4b7
mov eax, 1
xchg dword [0x181774210], eax
cmp eax, 1
jne 0x18000d470
mov ecx, 0xa
call qword [sym.imp.KERNEL32.dll_Sleep]
mov eax, 1
xchg dword [0x181774210], eax
cmp eax, 1
je 0x18000d455
mov edx, 4
lea r9, [rsp + 0x40]
mov rcx, rbx
lea r8d, [rdx + 0x3c]
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
je 0x18000d4af
and dword [rbx], 0xf9930520
lea r9, [rsp + 0x40]
or dword [rbx], 0x19930520
mov edx, 4
mov r8d, dword [rsp + 0x40]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
xor eax, eax
xchg dword [0x181774210], eax
mov rbx, qword [rsp + 0x48]
mov r9, rdi
mov r8, rbp
mov rdx, r14
mov rcx, rsi
mov rbp, qword [rsp + 0x50]
add rsp, 0x20
pop r14
pop rdi
pop rsi
jmp qword [sym.imp.msvcrt.dll___CxxFrameHandler]
Function at 0x1400023e0
Capabilities:
Terminate process

Disassembly:
sub rsp, 0x48
xor eax, eax
mov rdx, rcx
lea rcx, str.cmd__c___s_
mov qword [rsp + 0x20], rax
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x30], rax
call fcn.140007a10
mov r8, qword [0x140013508]
lea rdx, [rsp + 0x20]
mov rcx, rax
call fcn.140007dc0
test rax, rax
jne 0x140002427
lea ecx, [rax + 2]
call qword [sym.imp.MSVCR120.dll_exit]
int3
mov rcx, qword [rsp + 0x28]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rax, qword [rsp + 0x20]
add rsp, 0x48
ret

Function at 0x140002610
Capabilities:
Create directory
Terminate process

Disassembly:
push rsi
sub rsp, 0x30
mov rsi, rcx
call qword [sym.imp.MSVCR120.dll__mkdir]
test eax, eax
jns 0x140002683
mov qword [rsp + 0x40], rbx
mov qword [rsp + 0x48], rdi
call qword [sym.imp.MSVCR120.dll__errno]
mov ecx, dword [rax]
call qword [sym.imp.MSVCR120.dll_strerror]
lea rcx, str._s:_could_not_create_directory___s_:__s_n
mov rbx, rax
call sub.libintl_8.dll_libintl_gettext
mov rdi, rax
call qword [sym.imp.MSVCR120.dll___iob_func]
mov r8, qword [0x140013508]
lea rcx, [rax + 0x60]
mov r9, rsi
mov rdx, rdi
mov qword [rsp + 0x20], rbx
call fcn.140009670
mov ecx, 2
call qword [sym.imp.MSVCR120.dll_exit]
mov rdi, qword [rsp + 0x48]
mov rbx, qword [rsp + 0x40]
add rsp, 0x30
pop rsi
ret

Function at 0x140002790
Capabilities:
Terminate process

Disassembly:
mov qword [rsp + 0x10], rdx
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x20], r9
push rbx
push rsi
push rdi
mov eax, 0x1850
call fcn.14000c860
sub rsp, rax
mov rax, qword [0x140013460]
xor rax, rsp
mov qword [rsp + 0x1840], rax
mov rsi, rcx
mov r8, rdx
lea r9, [rsp + 0x1880]
lea rcx, [rsp + 0x40]
mov edx, 0x400
call fcn.1400093e0
cmp byte [rsp + 0x40], 0
lea rbx, [rsp + 0x440]
lea rdi, [rsp + 0x40]
je 0x14000282c
nop dword [rax]
nop word [rax + rax]
movsx edx, byte [rdi]
lea rcx, [0x14000ed58]
call qword [sym.imp.MSVCR120.dll_strchr]
test rax, rax
je 0x14000281b
mov byte [rbx], 0x5c
inc rbx
movzx eax, byte [rdi]
inc rdi
inc rbx
cmp byte [rdi], 0
mov byte [rbx - 1], al
jne 0x140002800
mov rax, qword [section..data]
lea r9, [0x14000e68e]
lea rdx, [0x14000e68c]
test rax, rax
mov rcx, r9
mov qword [rsp + 0x30], rsi
cmovne rcx, rdx
cmovne r9, rax
lea rax, [rsp + 0x440]
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], rcx
lea r8, str.__s_spsql___X__c___s____s_
lea rcx, [rsp + 0xc40]
mov edx, 0xc00
mov byte [rbx], 0
call fcn.140009460
lea rcx, [rsp + 0xc40]
call fcn.14000b2d0
test eax, eax
je 0x1400028c8
lea rcx, str.command_failed:__s_n
call sub.libintl_8.dll_libintl_gettext
mov rbx, rax
call qword [sym.imp.MSVCR120.dll___iob_func]
lea r8, [rsp + 0xc40]
lea rcx, [rax + 0x60]
mov rdx, rbx
call fcn.140009670
mov ecx, 2
call qword [sym.imp.MSVCR120.dll_exit]
int3
mov rcx, qword [rsp + 0x1840]
xor rcx, rsp
call fcn.14000c8c0
add rsp, 0x1850
pop rdi
pop rsi
pop rbx
ret
Function at 0x1400038d0
Capabilities:
Terminate process

Disassembly:
mov qword [rsp + 0x10], rbx
push rsi
push rdi
push r14
sub rsp, 0x50
mov rsi, rdx
mov r14, rcx
mov dword [rsp + 0x40], 0x400
mov dword [rsp + 0x88], 0x400
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
lea r8, [rsp + 0x48]
mov rcx, rax
mov edx, 0x20008
call qword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
jne 0x140003952
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str._s:_could_not_open_process_token:_error_code__lu_n
mov edi, eax
call sub.libintl_8.dll_libintl_gettext
mov rbx, rax
call qword [sym.imp.MSVCR120.dll___iob_func]
mov r8, qword [0x140013508]
lea rcx, [rax + 0x60]
mov r9d, edi
mov rdx, rbx
call fcn.140009670
mov ecx, 2
call qword [sym.imp.MSVCR120.dll_exit]
int3
mov rcx, qword [rsp + 0x48]
xor r9d, r9d
lea rax, [rsp + 0x80]
lea edx, [r9 + 1]
xor r8d, r8d
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_GetTokenInformation]
test eax, eax
jne 0x1400039c2
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x7a
je 0x1400039c2
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str._s:_could_not_get_token_user_size:_error_code__lu_n
mov edi, eax
call sub.libintl_8.dll_libintl_gettext
mov rbx, rax
call qword [sym.imp.MSVCR120.dll___iob_func]
mov r8, qword [0x140013508]
lea rcx, [rax + 0x60]
mov r9d, edi
mov rdx, rbx
call fcn.140009670
mov ecx, 2
call qword [sym.imp.MSVCR120.dll_exit]
int3
mov ebx, dword [rsp + 0x80]
mov ecx, ebx
call qword [sym.imp.MSVCR120.dll_malloc]
mov rcx, qword [rsp + 0x48]
mov r9d, ebx
mov rdi, rax
lea rax, [rsp + 0x80]
mov edx, 1
mov r8, rdi
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_GetTokenInformation]
test eax, eax
jne 0x140003a3a
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str._s:_could_not_get_token_user:_error_code__lu_n
mov edi, eax
call sub.libintl_8.dll_libintl_gettext
mov rbx, rax
call qword [sym.imp.MSVCR120.dll___iob_func]
mov r8, qword [0x140013508]
lea rcx, [rax + 0x60]
mov r9d, edi
mov rdx, rbx
call fcn.140009670
mov ecx, 2
call qword [sym.imp.MSVCR120.dll_exit]
int3
mov rdx, qword [rdi]
lea rax, [rsp + 0x44]
lea rbx, [0x140013530]
mov qword [rsp + 0x30], rax
lea rax, [rsp + 0x88]
mov qword [rsp + 0x70], rbp
mov qword [rsp + 0x28], rax
lea rbp, [0x140013930]
lea r9, [rsp + 0x40]
mov r8, rbx
xor ecx, ecx
mov qword [rsp + 0x20], rbp
call qword [sym.imp.ADVAPI32.dll_LookupAccountSidA]
test eax, eax
jne 0x140003abf
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str._s:_could_not_look_up_account_SID:_error_code__lu_n
mov edi, eax
call sub.libintl_8.dll_libintl_gettext
mov rbx, rax
call qword [sym.imp.MSVCR120.dll___iob_func]
mov r8, qword [0x140013508]
lea rcx, [rax + 0x60]
mov r9d, edi
mov rdx, rbx
call fcn.140009670
mov ecx, 2
call qword [sym.imp.MSVCR120.dll_exit]
int3
mov rcx, rdi
call qword [sym.imp.MSVCR120.dll_free]
mov qword [r14], rbx
mov rbx, qword [rsp + 0x78]
mov qword [rsi], rbp
mov rbp, qword [rsp + 0x70]
add rsp, 0x50
pop r14
pop rdi
pop rsi
ret
Function at 0x140004a20
Capabilities:
Terminate process

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x20
movsxd rsi, r9d
mov r14, rcx
mov rbp, r8
lea rbx, [rsi*8]
mov r13, rdx
mov rdi, rsi
mov rcx, rbx
call qword [sym.imp.MSVCR120.dll_malloc]
mov r8, rbx
mov rdx, r14
mov rcx, rax
mov r12, rax
call sub.MSVCR120.dll_memcpy
test esi, esi
jle 0x140004b0d
lea r15, [rbx - 8]
add r15, r12
nop dword [rax]
or r9d, 0xffffffff
xor r8d, r8d
mov rdx, r12
mov ecx, esi
call qword [sym.imp.KERNEL32.dll_WaitForMultipleObjects]
cmp eax, esi
jae 0x140004b33
mov eax, eax
xor ebx, ebx
lea rcx, [r12 + rax*8]
mov rax, qword [r15]
mov rdx, qword [rcx]
mov qword [rcx], rax
test rdi, rdi
jle 0x140004b05
mov rcx, qword [r14 + rbx*8]
cmp rdx, rcx
je 0x140004ac3
inc rbx
cmp rbx, rdi
jl 0x140004ab0
jmp 0x140004b05
lea rdx, [rsp + 0x68]
call qword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
mov rcx, qword [r14 + rbx*8]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [rsp + 0x68]
mov qword [r14 + rbx*8], 0xffffffffffffffff
mov dword [r13 + rbx*4], eax
test rbp, rbp
je 0x140004aff
mov rdx, qword [rbp + rbx*8]
lea rcx, [0x14000ef34]
call fcn.140002710
dec esi
sub r15, 8
test esi, esi
jg 0x140004a80
mov rcx, r12
mov rbx, qword [rsp + 0x50]
mov rbp, qword [rsp + 0x58]
mov rsi, qword [rsp + 0x60]
add rsp, 0x20
pop r15
pop r14
pop r13
pop r12
pop rdi
jmp qword [sym.imp.MSVCR120.dll_free]
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.failed_to_wait_for_subprocesses:_error_code__lu_n
mov edi, eax
call sub.libintl_8.dll_libintl_gettext
mov rbx, rax
call qword [sym.imp.MSVCR120.dll___iob_func]
mov r8d, edi
lea rcx, [rax + 0x60]
mov rdx, rbx
call fcn.140009670
mov ecx, 2
call qword [sym.imp.MSVCR120.dll_exit]
int3
Function at 0x140005880
Capabilities:
Create directory
Terminate process

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x470
mov rax, qword [0x140013460]
xor rax, rsp
mov qword [rsp + 0x460], rax
mov r9, qword [0x140013018]
lea r8, str._s_regression.out
lea rcx, [rsp + 0x60]
mov edx, 0x400
call fcn.140009460
lea rcx, [rsp + 0x60]
call qword [sym.imp.MSVCR120.dll__strdup]
lea rdx, [0x14000e798]
mov rcx, rax
mov qword [0x140013510], rax
call qword [sym.imp.MSVCR120.dll_fopen]
mov qword [0x140013518], rax
test rax, rax
jne 0x14000593b
call qword [sym.imp.MSVCR120.dll__errno]
mov ecx, dword [rax]
call qword [sym.imp.MSVCR120.dll_strerror]
lea rcx, str._s:_could_not_open_file___s__for_writing:__s_n
mov rdi, rax
call sub.libintl_8.dll_libintl_gettext
mov rbx, rax
call qword [sym.imp.MSVCR120.dll___iob_func]
mov r9, qword [0x140013510]
mov r8, qword [0x140013508]
lea rcx, [rax + 0x60]
mov rdx, rbx
mov qword [rsp + 0x20], rdi
call fcn.140009670
mov ecx, 2
call qword [sym.imp.MSVCR120.dll_exit]
int3
mov r9, qword [0x140013018]
lea r8, str._s_regression.diffs
lea rcx, [rsp + 0x60]
mov edx, 0x400
call fcn.140009460
lea rcx, [rsp + 0x60]
call qword [sym.imp.MSVCR120.dll__strdup]
lea rdx, [0x14000e798]
mov rcx, rax
mov qword [0x140013520], rax
call qword [sym.imp.MSVCR120.dll_fopen]
test rax, rax
jne 0x1400059d0
call qword [sym.imp.MSVCR120.dll__errno]
mov ecx, dword [rax]
call qword [sym.imp.MSVCR120.dll_strerror]
lea rcx, str._s:_could_not_open_file___s__for_writing:__s_n
mov rdi, rax
call sub.libintl_8.dll_libintl_gettext
mov rbx, rax
call qword [sym.imp.MSVCR120.dll___iob_func]
mov r9, qword [0x140013520]
mov r8, qword [0x140013508]
lea rcx, [rax + 0x60]
mov rdx, rbx
mov qword [rsp + 0x20], rdi
call fcn.140009670
mov ecx, 2
call qword [sym.imp.MSVCR120.dll_exit]
int3
mov rcx, rax
call qword [sym.imp.MSVCR120.dll_fclose]
mov r9, qword [0x140013018]
lea r8, str._s_results
lea rcx, [rsp + 0x60]
mov edx, 0x400
call fcn.140009460
lea rdx, [rsp + 0x30]
lea rcx, [rsp + 0x60]
call fcn.14000b260
test eax, eax
jne 0x140005a20
movzx eax, word [rsp + 0x36]
mov ecx, 0xf000
and ax, cx
mov ecx, 0x4000
cmp ax, cx
je 0x140005a7e
lea rcx, [rsp + 0x60]
call qword [sym.imp.MSVCR120.dll__mkdir]
test eax, eax
jns 0x140005a7e
call qword [sym.imp.MSVCR120.dll__errno]
mov ecx, dword [rax]
call qword [sym.imp.MSVCR120.dll_strerror]
lea rcx, str._s:_could_not_create_directory___s_:__s_n
mov rbx, rax
call sub.libintl_8.dll_libintl_gettext
mov rdi, rax
call qword [sym.imp.MSVCR120.dll___iob_func]
mov r8, qword [0x140013508]
lea r9, [rsp + 0x60]
lea rcx, [rax + 0x60]
mov rdx, rdi
mov qword [rsp + 0x20], rbx
call fcn.140009670
mov ecx, 2
call qword [sym.imp.MSVCR120.dll_exit]
int3
mov rcx, qword [rsp + 0x460]
xor rcx, rsp
call fcn.14000c8c0
mov rbx, qword [rsp + 0x480]
add rsp, 0x470
pop rdi
ret
Function at 0x1400064f0
Capabilities:
Query environment variable

Disassembly:
mov qword [rsp + 0x18], rbx
push rdi
sub rsp, 0xc40
mov rax, qword [0x140013460]
xor rax, rsp
mov qword [rsp + 0xc30], rax
mov rbx, rdx
mov rdi, rcx
lea rdx, str.postgres_9.5
mov rcx, rbx
call sub.MSVCR120.dll_strcmp
test eax, eax
je 0x140006536
lea rdx, [0x14000e68e]
xor ecx, ecx
call fcn.14000bfe0
lea rdx, [rsp + 0x830]
mov rcx, rdi
call fcn.140006660
test eax, eax
js 0x14000662a
lea rdx, [rsp + 0x430]
lea rcx, [rsp + 0x830]
call fcn.140008ec0
lea rdx, [rsp + 0x430]
mov rcx, rbx
call sub.libintl_8.dll_libintl_bindtextdomain
mov rcx, rbx
call sub.libintl_8.dll_libintl_textdomain
lea rcx, str.PGLOCALEDIR
call qword [sym.imp.MSVCR120.dll_getenv]
test rax, rax
jne 0x1400065c8
lea r9, [rsp + 0x430]
lea r8, str.PGLOCALEDIR_s
lea rcx, [rsp + 0x20]
mov edx, 0x40e
call fcn.140009460
lea rcx, [rsp + 0x2c]
call fcn.1400085e0
lea rcx, [rsp + 0x20]
call qword [sym.imp.MSVCR120.dll__strdup]
mov rcx, rax
call fcn.1400082a0
lea rcx, str.PGSYSCONFDIR
call qword [sym.imp.MSVCR120.dll_getenv]
test rax, rax
jne 0x14000662a
lea rdx, [rsp + 0x430]
lea rcx, [rsp + 0x830]
call fcn.140008da0
lea r9, [rsp + 0x430]
lea r8, str.PGSYSCONFDIR_s
lea rcx, [rsp + 0x20]
mov edx, 0x40e
call fcn.140009460
lea rcx, [rsp + 0x2d]
call fcn.1400085e0
lea rcx, [rsp + 0x20]
call qword [sym.imp.MSVCR120.dll__strdup]
mov rcx, rax
call fcn.1400082a0
mov rcx, qword [rsp + 0xc30]
xor rcx, rsp
call fcn.14000c8c0
mov rbx, qword [rsp + 0xc60]
add rsp, 0xc40
pop rdi
ret
Function at 0x140007530
Capabilities:
Delete directory

Disassembly:
mov qword [rsp + 0x20], rbx
push rbp
sub rsp, 0x480
mov rax, qword [0x140013460]
xor rax, rsp
mov qword [rsp + 0x470], rax
mov byte [rsp + 0x30], dl
mov rbp, rcx
mov bl, 1
call fcn.1400062c0
mov qword [rsp + 0x38], rax
test rax, rax
je 0x1400076e2
cmp qword [rax], 0
mov qword [rsp + 0x498], rsi
mov qword [rsp + 0x4a0], rdi
mov rsi, rax
je 0x140007674
mov edi, 0xf000
nop dword [rax]
mov rax, qword [rsi]
lea r8, str._s__s
lea rcx, [rsp + 0x70]
mov r9, rbp
mov edx, 0x400
mov qword [rsp + 0x20], rax
call fcn.140009460
lea rdx, [rsp + 0x40]
lea rcx, [rsp + 0x70]
call fcn.14000b260
test eax, eax
je 0x1400075ea
call qword [sym.imp.MSVCR120.dll__errno]
cmp dword [rax], 2
je 0x140007666
call qword [sym.imp.MSVCR120.dll__errno]
mov ecx, dword [rax]
call qword [sym.imp.MSVCR120.dll_strerror]
lea rcx, str.could_not_stat_file_or_directory___s_:__s_n
jmp 0x140007637
movzx eax, word [rsp + 0x46]
mov ecx, 0x4000
and ax, di
cmp ax, cx
lea rcx, [rsp + 0x70]
jne 0x14000760e
mov dl, 1
call fcn.140007530
test al, al
jne 0x140007666
jmp 0x140007664
call fcn.14000ad10
test eax, eax
je 0x140007666
call qword [sym.imp.MSVCR120.dll__errno]
cmp dword [rax], 2
je 0x140007666
call qword [sym.imp.MSVCR120.dll__errno]
mov ecx, dword [rax]
call qword [sym.imp.MSVCR120.dll_strerror]
lea rcx, str.could_not_remove_file_or_directory___s_:__s_n
mov rdi, rax
call sub.libintl_8.dll_libintl_gettext
mov rbx, rax
call qword [sym.imp.MSVCR120.dll___iob_func]
lea r8, [rsp + 0x70]
add rax, 0x60
mov r9, rdi
mov rdx, rbx
mov rcx, rax
call fcn.140009670
mov edi, 0xf000
xor bl, bl
add rsi, 8
cmp qword [rsi], 0
jne 0x140007590
cmp byte [rsp + 0x30], 0
mov rsi, qword [rsp + 0x498]
je 0x1400076cd
mov rcx, rbp
call qword [sym.imp.MSVCR120.dll__rmdir]
test eax, eax
je 0x1400076cd
call qword [sym.imp.MSVCR120.dll__errno]
mov ecx, dword [rax]
call qword [sym.imp.MSVCR120.dll_strerror]
lea rcx, str.could_not_remove_file_or_directory___s_:__s_n
mov rdi, rax
call sub.libintl_8.dll_libintl_gettext
mov rbx, rax
call qword [sym.imp.MSVCR120.dll___iob_func]
mov r9, rdi
add rax, 0x60
mov r8, rbp
mov rdx, rbx
mov rcx, rax
call fcn.140009670
xor bl, bl
mov rcx, qword [rsp + 0x38]
call fcn.1400064b0
mov rdi, qword [rsp + 0x4a0]
movzx eax, bl
mov rcx, qword [rsp + 0x470]
xor rcx, rsp
call fcn.14000c8c0
mov rbx, qword [rsp + 0x4a8]
add rsp, 0x480
pop rbp
ret

Function at 0x140007710
Capabilities:
Terminate process

Disassembly:
push rbx
sub rsp, 0x20
test rcx, rcx
jne 0x140007748
lea rcx, str.cannot_duplicate_null_pointer__internal_error__n
call sub.libintl_8.dll_libintl_gettext
mov rbx, rax
call qword [sym.imp.MSVCR120.dll___iob_func]
mov rdx, rbx
lea rcx, [rax + 0x60]
call fcn.140009670
mov ecx, 1
call qword [sym.imp.MSVCR120.dll_exit]
int3
call qword [sym.imp.MSVCR120.dll__strdup]
test rax, rax
jne 0x140007780
lea rcx, str.out_of_memory_n
call sub.libintl_8.dll_libintl_gettext
mov rbx, rax
call qword [sym.imp.MSVCR120.dll___iob_func]
mov rdx, rbx
lea rcx, [rax + 0x60]
call fcn.140009670
mov ecx, 1
call qword [sym.imp.MSVCR120.dll_exit]
int3
add rsp, 0x20
pop rbx
ret