joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140005950
Capabilities:
Hash data with crc32

Disassembly:
mov qword [rsp + 8], rbx
mov r11d, r8d
mov r10, rdx
not r11d
mov r9, rcx
mov eax, r11d
test rdx, rdx
je 0x1400059ad
lea rbx, [0x140032730]
movzx r8d, byte [r9]
lea r9, [r9 + 1]
dec r10
cmp r8b, 0x23
jne 0x140005994
cmp r10, 2
jb 0x140005994
cmp byte [r9], r8b
jne 0x140005994
cmp byte [r9 + 1], r8b
cmove eax, r11d
movzx edx, al
xor rdx, r8
shr eax, 8
xor eax, dword [rbx + rdx*4]
test r10, r10
jne 0x140005970
not eax
mov rbx, qword [rsp + 8]
ret
movzx r8d, byte [rcx]
inc r9
test r8b, r8b
je 0x1400059ef
lea rbx, [0x140032730]
cmp r8b, 0x23
jne 0x1400059d3
cmp byte [r9], r8b
jne 0x1400059d3
cmp byte [r9 + 1], r8b
cmove eax, r11d
movzx edx, al
movzx ecx, r8b
movzx r8d, byte [r9]
xor rdx, rcx
shr eax, 8
inc r9
xor eax, dword [rbx + rdx*4]
test r8b, r8b
jne 0x1400059c0
mov rbx, qword [rsp + 8]
not eax
ret

Function at 0x140005b30
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 0x18], rbx
push r14
sub rsp, 0x20
mov r14, r8
test r8, r8
je 0x140005b4a
mov qword [r8], 0
lea rdx, [0x1400322cc]
call fcn.140005a00
mov rbx, rax
test rax, rax
jne 0x140005b6a
mov rbx, qword [rsp + 0x40]
add rsp, 0x20
pop r14
ret
mov qword [rsp + 0x30], rsi
mov rcx, rbx
mov qword [rsp + 0x38], rdi
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_ftell]
mov esi, eax
cmp eax, 0xffffffff
je 0x140005c55
xor edx, edx
mov rcx, rbx
lea r8d, [rdx + 2]
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fseek]
test eax, eax
jne 0x140005c55
mov rcx, rbx
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_ftell]
movsxd rdi, eax
cmp edi, 0xffffffff
je 0x140005c55
xor r8d, r8d
mov edx, esi
mov rcx, rbx
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fseek]
test eax, eax
jne 0x140005c55
cmp rdi, 0xffffffffffffffff
je 0x140005c55
mov rax, qword [0x14003d750]
test rax, rax
je 0x140005be6
inc dword [rax + 0xf4]
mov rdx, qword [0x14003d740]
mov rcx, rdi
call sub.api_ms_win_crt_heap_l1_1_0.dll_malloc
mov rsi, rax
test rax, rax
je 0x140005c55
mov r9, rbx
mov r8, rdi
mov edx, 1
mov rcx, rax
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
mov rcx, rbx
cmp rax, rdi
je 0x140005c42
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
mov rax, qword [0x14003d750]
test rax, rax
je 0x140005c31
dec dword [rax + 0xf4]
mov rdx, qword [0x14003d740]
mov rcx, rsi
call sub.api_ms_win_crt_heap_l1_1_0.dll_free
jmp 0x140005c5e
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
test r14, r14
je 0x140005c50
mov qword [r14], rdi
mov rax, rsi
jmp 0x140005c60
mov rcx, rbx
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
xor eax, eax
mov rsi, qword [rsp + 0x30]
mov rdi, qword [rsp + 0x38]
mov rbx, qword [rsp + 0x40]
add rsp, 0x20
pop r14
ret
Function at 0x140008380
Capabilities:
Hash data with crc32

Disassembly:
push rbx
sub rsp, 0x20
movsxd r8, dword [rcx + 0xe8]
mov rax, qword [rcx + 0xf0]
movsxd r9, edx
mov ebx, dword [rax + r8*4 - 4]
lea r8, [0x140032730]
not ebx
movzx eax, r9b
movzx ecx, bl
xor rcx, rax
shr ebx, 8
mov eax, r9d
shr eax, 8
movzx edx, al
mov eax, r9d
xor ebx, dword [r8 + rcx*4]
movzx ecx, bl
xor rdx, rcx
shr ebx, 8
shr eax, 0x10
xor ebx, dword [r8 + rdx*4]
movzx ecx, bl
shr ebx, 8
movzx edx, al
xor rdx, rcx
xor ebx, dword [r8 + rdx*4]
movzx ecx, bl
shr ebx, 8
mov edx, r9d
shr rdx, 0x18
xor rdx, rcx
mov rcx, qword [0x14003d750]
xor ebx, dword [r8 + rdx*4]
not ebx
cmp dword [rcx + 0x3ee8], ebx
jne 0x140008416
mov r8, r9
mov edx, 4
mov ecx, ebx
call fcn.140019bb0
mov eax, ebx
add rsp, 0x20
pop rbx
ret
Function at 0x140013ba0
Capabilities:
Hash data with crc32

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x40
mov rax, qword [0x14003d010]
xor rax, rsp
mov qword [rsp + 0x30], rax
mov rbx, qword [0x14003d750]
mov edi, ecx
cmp byte [rbx + 0x4a2d], 0
jne 0x140013c01
cmp byte [rbx + 0x4a2e], 0
jne 0x140013c01
movsx r9d, word [rbx + 0x5b32]
lea r8, str.Tooltip__02d
mov edx, 0x10
lea rcx, [rsp + 0x20]
call fcn.140005840
test dil, 1
je 0x140013d28
jmp 0x140013c8a
movss xmm1, dword [rbx + 0x3898]
lea r8, str.Tooltip__02d
movsx r9d, word [rbx + 0x5b32]
lea rcx, [rsp + 0x20]
movaps xmm0, xmm1
xor eax, eax
mulss xmm0, dword [0x140037630]
mulss xmm1, dword [0x140037620]
lea edx, [rax + 0x10]
addss xmm0, dword [rbx + 0xdfc]
addss xmm1, dword [rbx + 0xe00]
mov qword [rbx + 0x4790], rax
mov dword [rbx + 0x477c], 1
movss dword [rbx + 0x4788], xmm0
movss dword [rbx + 0x478c], xmm1
movss xmm0, dword [rbx + 0x38f4]
mulss xmm0, dword [0x14003757c]
or dword [rbx + 0x4778], 0x41
movss dword [rbx + 0x47d8], xmm0
call fcn.140005840
movzx r9d, byte [rsp + 0x20]
lea r8, [rsp + 0x21]
mov r10d, 0xffffffff
mov ecx, r10d
test r9b, r9b
je 0x140013ce0
lea r11, [0x140032730]
nop word [rax + rax]
cmp r9b, 0x23
jne 0x140013cc3
cmp byte [r8], r9b
jne 0x140013cc3
cmp byte [r8 + 1], r9b
cmove ecx, r10d
movzx edx, cl
movzx eax, r9b
movzx r9d, byte [r8]
xor rdx, rax
shr ecx, 8
inc r8
xor ecx, dword [r11 + rdx*4]
test r9b, r9b
jne 0x140013cb0
not ecx
call fcn.14000bbd0
test rax, rax
je 0x140013d28
cmp byte [rax + 0xae], 0
je 0x140013d28
mov byte [rax + 0xb5], 1
lea r8, str.Tooltip__02d
mov byte [rax + 0xd0], 1
lea rcx, [rsp + 0x20]
inc word [rbx + 0x5b32]
mov edx, 0x10
movsx r9d, word [rbx + 0x5b32]
call fcn.140005840
xor edx, edx
lea rcx, [rsp + 0x20]
mov r8d, 0x20c0347
call fcn.14000e390
mov rcx, qword [rsp + 0x30]
xor rcx, rsp
call fcn.14002f1b0
mov rbx, qword [rsp + 0x50]
add rsp, 0x40
pop rdi
ret
Function at 0x140018520
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x20
cmp qword [rcx + 0x5c18], 0
lea rbx, [rcx + 0x5c20]
mov rsi, r8
mov rbp, rdx
mov rdi, rcx
je 0x1400185c7
mov r9d, dword [rbx + 4]
mov qword [rsp + 0x30], r14
xor r14d, r14d
test r9d, r9d
jns 0x14001857a
mov eax, r9d
mov rcx, rbx
cdq
sub eax, edx
mov edx, r14d
sar eax, 1
add eax, r9d
test eax, eax
cmovg edx, eax
call fcn.14001a780
mov r8, rsi
mov dword [rbx], r14d
mov rdx, rbp
mov rcx, rbx
call fcn.140005fb0
mov eax, dword [rbx]
mov edx, 1
mov r9, qword [rdi + 0x5c18]
test eax, eax
lea ecx, [rax - 1]
mov rax, qword [rdi + 0x5c28]
cmove ecx, r14d
test rax, rax
movsxd r8, ecx
lea rcx, [0x14003d748]
cmovne rcx, rax
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
mov r14, qword [rsp + 0x30]
jmp 0x1400185cf
mov rcx, rbx
call fcn.140005fb0
mov rbx, qword [rsp + 0x38]
mov rbp, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
add rsp, 0x20
pop rdi
ret

Function at 0x140018b60
Capabilities:
Hash data with crc32

Disassembly:
sub rsp, 8
movzx r9d, byte [rcx]
lea r8, [rcx + 1]
mov r10, qword [0x14003d750]
mov r11d, 0xffffffff
mov eax, r11d
test r9b, r9b
je 0x140018bc3
mov qword [rsp], rbx
lea rbx, [0x140032730]
nop dword [rax]
cmp r9b, 0x23
jne 0x140018ba3
cmp byte [r8], r9b
jne 0x140018ba3
cmp byte [r8 + 1], r9b
cmove eax, r11d
movzx edx, al
movzx ecx, r9b
movzx r9d, byte [r8]
xor rdx, rcx
shr eax, 8
inc r8
xor eax, dword [rbx + rdx*4]
test r9b, r9b
jne 0x140018b90
mov rbx, qword [rsp]
movsxd rcx, dword [r10 + 0x5b90]
xor r8d, r8d
not eax
test ecx, ecx
jle 0x140018bf7
mov r10, qword [r10 + 0x5b98]
mov r9, rcx
mov edx, r8d
lea rcx, [r10 + 8]
cmp dword [rcx], eax
je 0x140018bfe
inc r8d
inc rdx
add rcx, 0x48
cmp rdx, r9
jl 0x140018be4
xor eax, eax
add rsp, 8
ret
movsxd rax, r8d
lea rcx, [rax + rax*8]
lea rax, [r10 + rcx*8]
add rsp, 8
ret
Function at 0x14002b2e0
Capabilities:
Log keystrokes via polling

Disassembly:
push rbx
sub rsp, 0x20
mov ecx, 0x210
call fcn.140010ee0
cmp byte [rax], 0
je 0x14002b34f
xor edx, edx
mov ecx, 0x210
call fcn.140012fd0
test al, al
je 0x14002b34f
mov ecx, 0xa0
call qword [sym.imp.USER32.dll_GetKeyState]
shr eax, 0xf
test al, 1
jne 0x14002b34f
mov rbx, qword [0x14003d750]
cmp byte [rbx + 0x37a9], 0
je 0x14002b33b
xorps xmm3, xmm3
lea rcx, [rbx + 8]
xor r8d, r8d
mov edx, 0x210
call fcn.140005550
mov dword [rbx + 0x380], 0x210
mov dword [rbx + 0x940], 0xa0
mov ecx, 0x214
call fcn.140010ee0
cmp byte [rax], 0
je 0x14002b3b8
xor edx, edx
mov ecx, 0x214
call fcn.140012fd0
test al, al
je 0x14002b3b8
mov ecx, 0xa1
call qword [sym.imp.USER32.dll_GetKeyState]
shr eax, 0xf
test al, 1
jne 0x14002b3b8
mov rbx, qword [0x14003d750]
cmp byte [rbx + 0x37a9], 0
je 0x14002b3a4
xorps xmm3, xmm3
lea rcx, [rbx + 8]
xor r8d, r8d
mov edx, 0x214
call fcn.140005550
mov dword [rbx + 0x384], 0x214
mov dword [rbx + 0x950], 0xa1
mov ecx, 0x212
call fcn.140010ee0
cmp byte [rax], 0
je 0x14002b421
xor edx, edx
mov ecx, 0x212
call fcn.140012fd0
test al, al
je 0x14002b421
mov ecx, 0x5b
call qword [sym.imp.USER32.dll_GetKeyState]
shr eax, 0xf
test al, 1
jne 0x14002b421
mov rbx, qword [0x14003d750]
cmp byte [rbx + 0x37a9], 0
je 0x14002b40d
xorps xmm3, xmm3
lea rcx, [rbx + 8]
xor r8d, r8d
mov edx, 0x212
call fcn.140005550
mov dword [rbx + 0x26c], 0x212
mov dword [rbx + 0x948], 0x5b
mov ecx, 0x216
call fcn.140010ee0
cmp byte [rax], 0
je 0x14002b48a
xor edx, edx
mov ecx, 0x216
call fcn.140012fd0
test al, al
je 0x14002b48a
mov ecx, 0x5c
call qword [sym.imp.USER32.dll_GetKeyState]
shr eax, 0xf
test al, 1
jne 0x14002b48a
mov rbx, qword [0x14003d750]
cmp byte [rbx + 0x37a9], 0
je 0x14002b476
xorps xmm3, xmm3
lea rcx, [rbx + 8]
xor r8d, r8d
mov edx, 0x216
call fcn.140005550
mov dword [rbx + 0x270], 0x216
mov dword [rbx + 0x958], 0x5c
add rsp, 0x20
pop rbx
ret
Function at 0x14002f000
Capabilities:
Create thread
Hide graphical window
Terminate process

Disassembly:
sub rsp, 0x98
mov rax, qword [0x14003d010]
xor rax, rsp
mov qword [rsp + 0x80], rax
call qword [sym.imp.KERNEL32.dll_GetConsoleWindow]
mov rcx, rax
xor edx, edx
call qword [sym.imp.USER32.dll_ShowWindow]
lea rax, [0x14003d7f0]
xor edx, edx
mov qword [rsp + 0x28], rax
lea r9, [0x14003d770]
lea r8, [0x140003d40]
mov dword [rsp + 0x20], 0
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateThread]
cmp rax, 0xffffffffffffffff
je 0x14002f183
cmp qword [0x14003d770], 0
je 0x14002f183
xorps xmm0, xmm0
lea rcx, [rsp + 0x40]
xorps xmm3, xmm3
xorps xmm2, xmm2
xorps xmm1, xmm1
movss dword [rsp + 0x20], xmm3
movups xmmword [rsp + 0x50], xmm0
movups xmmword [rsp + 0x60], xmm0
movups xmmword [rsp + 0x70], xmm0
call fcn.140001230
xor r9d, r9d
mov dword [rsp + 0x20], 1
xor r8d, r8d
lea rcx, [rsp + 0x50]
xor edx, edx
call qword [sym.imp.USER32.dll_PeekMessageA]
test eax, eax
je 0x14002f0ce
lea rcx, [rsp + 0x50]
call qword [sym.imp.USER32.dll_TranslateMessage]
lea rcx, [rsp + 0x50]
call qword [sym.imp.USER32.dll_DispatchMessageA]
mov eax, dword [0x14003d764]
xor r9d, r9d
mov rcx, qword [0x14003d770]
xor r8d, r8d
mov dword [rsp + 0x30], 6
xor edx, edx
mov dword [rsp + 0x28], eax
mov eax, dword [0x14003d760]
mov dword [rsp + 0x20], eax
call qword [sym.imp.USER32.dll_SetWindowPos]
call fcn.14002b140
call fcn.14002bb00
call fcn.140009370
lea rcx, [0x14003d770]
call fcn.140001cc0
call fcn.14000b400
mov rcx, qword [0x14003d7d0]
lea r8, [0x14003d7e0]
xor r9d, r9d
mov rax, qword [rcx]
lea edx, [r9 + 1]
call qword [rax + 0x108]
mov rcx, qword [0x14003d7d0]
lea r8, [rsp + 0x40]
mov rdx, qword [0x14003d7e0]
mov rax, qword [rcx]
call qword [rax + 0x190]
call fcn.140008990
mov rcx, rax
call fcn.140029fa0
mov rcx, qword [0x14003d7d8]
xor r8d, r8d
mov rax, qword [rcx]
lea edx, [r8 + 1]
call qword [rax + 0x40]
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_ExitProcess]
mov eax, 1
mov rcx, qword [rsp + 0x80]
xor rcx, rsp
call fcn.14002f1b0
add rsp, 0x98
ret
Function at 0x1400027d0
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.140007d20
lea rdx, [rsp + 0x20]
mov rcx, rax
call fcn.1400086a0
test rax, rax
jne 0x140002810
lea ecx, [rax + 2]
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.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 0x1400047b0
Capabilities:
Create directory
Terminate process

Disassembly:
push rsi
sub rsp, 0x30
mov rsi, rcx
call qword [sym.imp.api_ms_win_crt_filesystem_l1_1_0.dll__mkdir]
test eax, eax
jns 0x140004826
mov qword [rsp + 0x40], rbx
mov qword [rsp + 0x48], rdi
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__errno]
mov ecx, dword [rax]
call fcn.14000be10
lea rcx, str._s:_could_not_create_directory___s_:__s_n
mov rbx, rax
call sub.libintl_8.dll_libintl_gettext
mov ecx, 2
mov rdi, rax
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
mov r8, qword [0x140016460]
mov r9, rsi
mov rcx, rax
mov qword [rsp + 0x20], rbx
mov rdx, rdi
call fcn.14000a880
mov ecx, 2
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_exit]
mov rdi, qword [rsp + 0x48]
mov rbx, qword [rsp + 0x40]
add rsp, 0x30
pop rsi
ret

Function at 0x140004830
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.14000e1d0
sub rsp, rax
mov rax, qword [0x1400163a0]
xor rax, rsp
mov qword [rsp + 0x1840], rax
mov rsi, rcx
lea r9, [rsp + 0x1880]
mov r8, rdx
lea rcx, [rsp + 0x40]
mov edx, 0x400
call fcn.14000a560
movzx eax, byte [rsp + 0x40]
lea rbx, [rsp + 0x440]
lea rdi, [rsp + 0x40]
test al, al
je 0x1400048cc
nop dword [rax]
nop dword [rax + rax]
movsx edx, al
lea rcx, [0x14000fe58]
call sub.VCRUNTIME140.dll_strchr
test rax, rax
je 0x1400048ba
mov byte [rbx], 0x5c
inc rbx
movzx eax, byte [rdi]
inc rdi
mov byte [rbx], al
inc rbx
movzx eax, byte [rdi]
test al, al
jne 0x1400048a0
mov rax, qword [section..data]
lea r9, [0x14000f77e]
test rax, rax
mov qword [rsp + 0x30], rsi
mov rcx, r9
mov byte [rbx], 0
cmovne r9, rax
lea rdx, [0x14000f77c]
cmovne rcx, rdx
lea rax, [rsp + 0x440]
mov qword [rsp + 0x28], rax
lea r8, str.__s_spsql___X__c___s____s_
mov qword [rsp + 0x20], rcx
mov edx, 0xc00
lea rcx, [rsp + 0xc40]
call fcn.14000a5f0
lea rcx, [rsp + 0xc40]
call fcn.14000c840
test eax, eax
je 0x14000496c
lea rcx, str.command_failed:__s_n
call sub.libintl_8.dll_libintl_gettext
mov ecx, 2
mov rbx, rax
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
lea r8, [rsp + 0xc40]
mov rdx, rbx
mov rcx, rax
call fcn.14000a880
mov ecx, 2
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_exit]
int3
mov rcx, qword [rsp + 0x1840]
xor rcx, rsp
call fcn.14000e240
add rsp, 0x1850
pop rdi
pop rsi
pop rbx
ret
Function at 0x140006250
Capabilities:
Terminate process

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x20
movsxd rsi, dword [rsp + 0x80]
mov r14, rcx
mov r13, r9
mov rbp, rsi
lea rbx, [rsi*8]
mov rcx, rbx
call fcn.140007a40
mov r8, rbx
mov rdx, r14
mov rcx, rax
mov r12, rax
call sub.VCRUNTIME140.dll_memcpy
test esi, esi
jle 0x14000635f
lea r15, [rbx - 8]
add r15, r12
nop
mov r9d, 0xffffffff
xor r8d, r8d
mov rdx, r12
mov ecx, esi
call qword [sym.imp.KERNEL32.dll_WaitForMultipleObjects]
cmp eax, esi
jae 0x14000637d
mov eax, eax
xor edi, edi
mov rdx, qword [r12 + rax*8]
lea rcx, [r12 + rax*8]
mov rax, qword [r15]
xor ebx, ebx
mov qword [rcx], rax
test rbp, rbp
jle 0x140006357
mov rcx, qword [r14 + rbx*8]
cmp rdx, rcx
je 0x1400062fa
inc edi
inc rbx
cmp rbx, rbp
jl 0x1400062e5
jmp 0x140006357
lea rdx, [rsp + 0x80]
call qword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
mov rcx, qword [r14 + rbx*8]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [rsp + 0x80]
mov rcx, qword [rsp + 0x68]
mov qword [r14 + rbx*8], 0xffffffffffffffff
mov dword [rcx + rbx*4], eax
mov rcx, qword [rsp + 0x70]
movsxd rax, edi
lea rcx, [rcx + rax*8]
call qword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
test r13, r13
je 0x140006351
mov rdx, qword [r13 + rbx*8]
lea rcx, [0x14000fff4]
call fcn.1400060b0
dec esi
sub r15, 8
test esi, esi
jg 0x1400062b0
mov rcx, r12
mov rbx, qword [rsp + 0x60]
add rsp, 0x20
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
jmp qword [sym.imp.api_ms_win_crt_heap_l1_1_0.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 ecx, 2
mov rbx, rax
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
mov r8d, edi
mov rdx, rbx
mov rcx, rax
call fcn.14000a880
mov ecx, 2
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_exit]
int3
Function at 0x140006da0
Capabilities:
Query environment variable

Disassembly:
mov qword [rsp + 0x18], rbx
push rdi
sub rsp, 0xc40
mov rax, qword [0x1400163a0]
xor rax, rsp
mov qword [rsp + 0xc30], rax
mov rbx, rdx
mov rdi, rcx
mov rcx, rbx
lea rdx, str.postgres_12
call sub.api_ms_win_crt_string_l1_1_0.dll_strcmp
test eax, eax
je 0x140006de6
lea rdx, [0x14000f77e]
xor ecx, ecx
call fcn.14000d250
lea rdx, [rsp + 0x830]
mov rcx, rdi
call fcn.140006f10
test eax, eax
js 0x140006ee4
lea rdx, [rsp + 0x430]
lea rcx, [rsp + 0x830]
call fcn.14000a080
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.api_ms_win_crt_environment_l1_1_0.dll_getenv]
test rax, rax
jne 0x140006e7d
lea r9, [rsp + 0x430]
mov edx, 0x40e
lea r8, str.PGLOCALEDIR_s
lea rcx, [rsp + 0x20]
call fcn.14000a5f0
lea rcx, [rsp + 0x2c]
call fcn.140009690
lea rcx, [rsp + 0x20]
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll__strdup]
test rax, rax
je 0x140006e7d
mov rcx, rax
call fcn.140009280
lea rcx, str.PGSYSCONFDIR
call qword [sym.imp.api_ms_win_crt_environment_l1_1_0.dll_getenv]
test rax, rax
jne 0x140006ee4
lea rdx, [rsp + 0x430]
lea rcx, [rsp + 0x830]
call fcn.140009f60
lea r9, [rsp + 0x430]
mov edx, 0x40e
lea r8, str.PGSYSCONFDIR_s
lea rcx, [rsp + 0x20]
call fcn.14000a5f0
lea rcx, [rsp + 0x2d]
call fcn.140009690
lea rcx, [rsp + 0x20]
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll__strdup]
test rax, rax
je 0x140006ee4
mov rcx, rax
call fcn.140009280
mov rcx, qword [rsp + 0xc30]
xor rcx, rsp
call fcn.14000e240
mov rbx, qword [rsp + 0xc60]
add rsp, 0xc40
pop rdi
ret
Function at 0x140007810
Capabilities:
Delete directory

Disassembly:
push rbx
push rbp
push rsi
push r14
sub rsp, 0x478
mov rax, qword [0x1400163a0]
xor rax, rsp
mov qword [rsp + 0x460], rax
movzx ebp, dl
mov rsi, rcx
mov bl, 1
call fcn.1400066f0
mov r14, rax
test rax, rax
je 0x140007989
mov rax, qword [rax]
mov qword [rsp + 0x4a8], rdi
mov rdi, r14
test rax, rax
je 0x140007945
mov qword [rsp + 0x4b0], r12
mov r12d, 0x4000
mov qword [rsp + 0x470], r15
mov r15d, 0xf000
nop dword [rax + rax]
mov r9, rsi
mov qword [rsp + 0x20], rax
lea r8, str._s__s
mov edx, 0x400
lea rcx, [rsp + 0x60]
call fcn.14000a5f0
lea rdx, [rsp + 0x30]
lea rcx, [rsp + 0x60]
call fcn.1400090b0
test eax, eax
je 0x1400078ce
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__errno]
cmp dword [rax], 2
je 0x140007924
cmp dword [0x140017548], 3
jg 0x140007922
lea rdx, str.could_not_stat_file_or_directory___s_:__m
jmp 0x140007913
movzx eax, word [rsp + 0x36]
lea rcx, [rsp + 0x60]
and ax, r15w
cmp ax, r12w
jne 0x1400078ef
mov dl, 1
call fcn.140007810
test al, al
jne 0x140007924
jmp 0x140007922
call fcn.140009200
test eax, eax
je 0x140007924
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__errno]
cmp dword [rax], 2
je 0x140007924
cmp dword [0x140017548], 3
jg 0x140007922
lea rdx, str.could_not_remove_file_or_directory___s_:__m
lea r8, [rsp + 0x60]
mov ecx, 3
call fcn.140008210
xor bl, bl
mov rax, qword [rdi + 8]
add rdi, 8
test rax, rax
jne 0x140007880
mov r15, qword [rsp + 0x470]
mov r12, qword [rsp + 0x4b0]
mov rdi, qword [rsp + 0x4a8]
test bpl, bpl
je 0x14000797e
mov rcx, rsi
call qword [sym.imp.api_ms_win_crt_filesystem_l1_1_0.dll__rmdir]
test eax, eax
je 0x14000797e
cmp dword [0x140017548], 3
jg 0x14000797c
mov r8, rsi
lea rdx, str.could_not_remove_file_or_directory___s_:__m
mov ecx, 3
call fcn.140008210
xor bl, bl
mov rcx, r14
call fcn.140006890
movzx eax, bl
mov rcx, qword [rsp + 0x460]
xor rcx, rsp
call fcn.14000e240
add rsp, 0x478
pop r14
pop rsi
pop rbp
pop rbx
ret

Function at 0x1400079b0
Capabilities:
Terminate process

Disassembly:
push rbx
sub rsp, 0x20
test rcx, rcx
jne 0x1400079ec
lea rcx, str.cannot_duplicate_null_pointer__internal_error__n
call sub.libintl_8.dll_libintl_gettext
mov ecx, 2
mov rbx, rax
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
mov rcx, rax
mov rdx, rbx
call fcn.14000a880
mov ecx, 1
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_exit]
int3
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll__strdup]
test rax, rax
jne 0x140007a28
lea rcx, str.out_of_memory_n
call sub.libintl_8.dll_libintl_gettext
mov ecx, 2
mov rbx, rax
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
mov rcx, rax
mov rdx, rbx
call fcn.14000a880
mov ecx, 1
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_exit]
int3
add rsp, 0x20
pop rbx
ret
Function at 0x140007a40
Capabilities:
Terminate process

Disassembly:
xor edx, edx
jmp 0x140007c40
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
test rcx, rcx
mov edi, 1
mov esi, edx
cmovne rdi, rcx
mov rcx, rdi
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
mov rbx, rax
test rax, rax
jne 0x140007cb3
test sil, 2
jne 0x140007ca1
lea rcx, str.out_of_memory_n
call sub.libintl_8.dll_libintl_gettext
lea ecx, [rbx + 2]
mov rdi, rax
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
mov rcx, rax
mov rdx, rdi
call fcn.14000a880
lea ecx, [rbx + 1]
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_exit]
int3
xor eax, eax
mov rbx, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret
test sil, 4
je 0x140007d0d
movzx eax, dil
or al, bl
test al, 3
jne 0x140007d00
cmp rdi, 0x400
ja 0x140007d00
xor edx, edx
lea rcx, [rdi + 3]
shr rcx, 2
lea rax, [rdi + rbx]
cmp rbx, rax
cmova rcx, rdx
test rcx, rcx
je 0x140007d0d
xor eax, eax
mov rdi, rbx
rep stosd dword [rdi], eax
mov rax, rbx
mov rbx, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret
mov r8, rdi
xor edx, edx
mov rcx, rbx
call sub.VCRUNTIME140.dll_memset
mov rsi, qword [rsp + 0x40]
mov rax, rbx
mov rbx, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret

Function at 0x140007b00
Capabilities:
Terminate process

Disassembly:
push rbx
sub rsp, 0x20
test rcx, rcx
jne 0x140007b3c
lea rcx, str.cannot_duplicate_null_pointer__internal_error__n
call sub.libintl_8.dll_libintl_gettext
mov ecx, 2
mov rbx, rax
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
mov rcx, rax
mov rdx, rbx
call fcn.14000a880
mov ecx, 1
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_exit]
int3
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll__strdup]
test rax, rax
jne 0x140007b78
lea rcx, str.out_of_memory_n
call sub.libintl_8.dll_libintl_gettext
mov ecx, 2
mov rbx, rax
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
mov rcx, rax
mov rdx, rbx
call fcn.14000a880
mov ecx, 1
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_exit]
int3
add rsp, 0x20
pop rbx
ret

Function at 0x140007bc0
Capabilities:
Terminate process

Disassembly:
push rdi
sub rsp, 0x20
mov edi, 1
test rcx, rcx
jne 0x140007bd7
test rdx, rdx
cmove rdx, rdi
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_realloc]
test rax, rax
jne 0x140007c19
lea rcx, str.out_of_memory_n
mov qword [rsp + 0x30], rbx
call sub.libintl_8.dll_libintl_gettext
mov ecx, 2
mov rbx, rax
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
mov rcx, rax
mov rdx, rbx
call fcn.14000a880
mov ecx, edi
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_exit]
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret