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

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x40
movzx r8d, byte [rdx]
xor bl, bl
mov rdi, rdx
mov rsi, rcx
movabs rbp, 0x21ffffff80ffd
test r8b, r8b
je 0x14001535f
nop
cmp r8b, 0xa
je 0x1400153ce
cmp r8b, 0xd
je 0x1400153ce
lea eax, [r8 - 0x61]
cmp al, 0x19
jbe 0x140015352
sub r8b, 0x2e
cmp r8b, 0x31
ja 0x140015350
movsx rax, r8b
bt rbp, rax
jb 0x140015352
mov bl, 1
movzx r8d, byte [rdx + 1]
inc rdx
test r8b, r8b
jne 0x140015320
lea rdx, str.connect
call sub.LIBPQ.dll_Ordinal_75
test bl, bl
je 0x140015480
lea rcx, [rsp + 0x20]
call sub.LIBPQ.dll_Ordinal_69
lea rdx, [0x140021cb0]
lea rcx, [rsp + 0x20]
call sub.LIBPQ.dll_Ordinal_91
movzx ecx, byte [rdi]
mov rdx, rdi
test cl, cl
je 0x140015402
lea eax, [rcx - 0x61]
cmp al, 0x19
jbe 0x1400153b1
sub cl, 0x2e
cmp cl, 0x31
ja 0x140015402
movsx rax, cl
bt rbp, rax
jae 0x140015402
movzx ecx, byte [rdx + 1]
inc rdx
test cl, cl
jne 0x140015398
mov rdx, rdi
lea rcx, [rsp + 0x20]
call sub.LIBPQ.dll_Ordinal_75
jmp 0x140015450
lea rcx, str.database_name_contains_a_newline_or_carriage_return:___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]
mov r8, rdi
mov rdx, rbx
mov rcx, rax
call fcn.140018720
mov ecx, 1
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_exit]
int3
mov dl, 0x27
lea rcx, [rsp + 0x20]
call sub.LIBPQ.dll_Ordinal_68
movzx eax, byte [rdi]
test al, al
je 0x140015444
cmp al, 0x27
je 0x14001541d
cmp al, 0x5c
jne 0x14001542c
mov dl, reloc.LIBPQ.dll_Ordinal_92
lea rcx, [rsp + 0x20]
call sub.LIBPQ.dll_Ordinal_68
movzx eax, byte [rdi]
movzx edx, al
lea rcx, [rsp + 0x20]
call sub.LIBPQ.dll_Ordinal_68
movzx eax, byte [rdi + 1]
inc rdi
test al, al
jne 0x140015415
mov dl, 0x27
lea rcx, [rsp + 0x20]
call sub.LIBPQ.dll_Ordinal_68
lea rdx, str._reuse_previouson
mov rcx, rsi
call sub.LIBPQ.dll_Ordinal_91
mov rcx, qword [rsp + 0x20]
call fcn.140014900
mov rdx, rax
mov rcx, rsi
call sub.LIBPQ.dll_Ordinal_75
lea rcx, [rsp + 0x20]
call sub.LIBPQ.dll_Ordinal_67
jmp 0x140015493
mov rcx, rdi
call fcn.140014900
mov rdx, rax
mov rcx, rsi
call sub.LIBPQ.dll_Ordinal_75
mov dl, 0xa
mov rcx, rsi
mov rbx, qword [rsp + 0x50]
mov rbp, qword [rsp + 0x58]
mov rsi, qword [rsp + 0x60]
add rsp, 0x40
pop rdi
jmp sub.LIBPQ.dll_Ordinal_68
Function at 0x140015e70
Capabilities:
Terminate process

Disassembly:
push rbx
sub rsp, 0x20
test rcx, rcx
jne 0x140015eac
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.140018720
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 0x140015ee8
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.140018720
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 0x140015f10
Capabilities:
Terminate process

Disassembly:
mov edx, 4
jmp 0x140016100
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 0x140016173
test sil, 2
jne 0x140016161
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.140018720
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 0x1400161cd
movzx eax, dil
or al, bl
test al, 3
jne 0x1400161c0
cmp rdi, 0x400
ja 0x1400161c0
xor edx, edx
lea rcx, [rdi + 3]
shr rcx, 2
lea rax, [rdi + rbx]
cmp rbx, rax
cmova rcx, rdx
test rcx, rcx
je 0x1400161cd
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 0x140015f30
Capabilities:
Terminate process

Disassembly:
push rdi
sub rsp, 0x20
mov edi, 1
test rcx, rcx
jne 0x140015f47
test rdx, rdx
cmove rdx, rdi
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_realloc]
test rax, rax
jne 0x140015f89
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.140018720
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
Function at 0x140015fc0
Capabilities:
Terminate process

Disassembly:
push rbx
sub rsp, 0x20
test rcx, rcx
jne 0x140015ffc
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.140018720
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 0x140016038
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.140018720
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 0x140016100
Capabilities:
Terminate process

Disassembly:
mov edx, 4
jmp 0x140016100
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 0x140016173
test sil, 2
jne 0x140016161
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.140018720
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 0x1400161cd
movzx eax, dil
or al, bl
test al, 3
jne 0x1400161c0
cmp rdi, 0x400
ja 0x1400161c0
xor edx, edx
lea rcx, [rdi + 3]
shr rcx, 2
lea rax, [rdi + rbx]
cmp rbx, rax
cmova rcx, rdx
test rcx, rcx
je 0x1400161cd
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 0x1400161e0
Capabilities:
Terminate process

Disassembly:
mov qword [rsp + 8], rcx
mov qword [rsp + 0x10], rdx
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x20], r9
push rbx
push rbp
push rsi
push rdi
push r14
push r15
sub rsp, 0x38
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__errno]
mov edi, Ordinal_130
mov ecx, edi
mov r14d, dword [rax]
call fcn.140016050
mov rsi, rax
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__errno]
lea r9, [rsp + 0x78]
mov edx, edi
mov rcx, rsi
mov dword [rax], r14d
mov rbp, qword [rsp + 0x70]
mov r8, rbp
call fcn.140018400
test eax, eax
js 0x140016298
nop dword [rax]
movsxd rcx, eax
cmp rcx, rdi
jb 0x140016255
cmp eax, 0x3ffffffe
ja 0x1400162e4
inc eax
movsxd rbx, eax
cmp rbx, rdi
jb 0x1400162d4
mov rcx, rsi
call fcn.1400160f0
mov rcx, rbx
call fcn.140016050
mov rsi, rax
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__errno]
lea r9, [rsp + 0x78]
mov rdx, rbx
mov rcx, rsi
mov dword [rax], r14d
mov rbp, qword [rsp + 0x70]
mov r8, rbp
call fcn.140018400
mov rdi, rbx
test eax, eax
jns 0x140016240
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__errno]
mov ecx, dword [rax]
call fcn.140019cb0
mov ecx, 2
mov rbx, rax
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
mov r9, rbp
lea rdx, str.vsnprintf_failed:__s_with_format_string___s__n
mov rcx, rax
mov r8, rbx
call fcn.140018720
mov ecx, 1
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_exit]
int3
mov rax, rsi
add rsp, 0x38
pop r15
pop r14
pop rdi
pop rsi
pop rbp
pop rbx
ret
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.140018720
mov ecx, 1
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_exit]
int3

Function at 0x140016320
Capabilities:
Terminate process

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
mov rdi, r8
mov rbx, rdx
call fcn.140018400
movsxd rcx, eax
test eax, eax
jns 0x140016378
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__errno]
mov ecx, dword [rax]
call fcn.140019cb0
mov ecx, 2
mov rbx, rax
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
mov r9, rdi
lea rdx, str.vsnprintf_failed:__s_with_format_string___s__n
mov rcx, rax
mov r8, rbx
call fcn.140018720
mov ecx, 1
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_exit]
int3
mov rax, rcx
cmp rcx, rbx
jb 0x1400163be
cmp rax, 0x3ffffffe
jbe 0x1400163b9
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.140018720
mov ecx, 1
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_exit]
int3
lea eax, [rcx + 1]
cdqe
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret
Function at 0x140017760
Capabilities:
Query environment variable

Disassembly:
mov qword [rsp + 0x18], rbx
push rdi
sub rsp, 0xc40
mov rax, qword [0x14002d030]
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 0x1400177a6
lea rdx, [0x140020c7f]
xor ecx, ecx
call fcn.14001dad0
lea rdx, [rsp + 0x830]
mov rcx, rdi
call fcn.1400178d0
test eax, eax
js 0x1400178a4
lea rdx, [rsp + 0x430]
lea rcx, [rsp + 0x830]
call fcn.14001d090
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 0x14001783d
lea r9, [rsp + 0x430]
mov edx, 0x40e
lea r8, str.PGLOCALEDIR_s
lea rcx, [rsp + 0x20]
call fcn.140018490
lea rcx, [rsp + 0x2c]
call fcn.14001c6a0
lea rcx, [rsp + 0x20]
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll__strdup]
test rax, rax
je 0x14001783d
mov rcx, rax
call fcn.14001dc70
lea rcx, str.PGSYSCONFDIR
call qword [sym.imp.api_ms_win_crt_environment_l1_1_0.dll_getenv]
test rax, rax
jne 0x1400178a4
lea rdx, [rsp + 0x430]
lea rcx, [rsp + 0x830]
call fcn.14001cf70
lea r9, [rsp + 0x430]
mov edx, 0x40e
lea r8, str.PGSYSCONFDIR_s
lea rcx, [rsp + 0x20]
call fcn.140018490
lea rcx, [rsp + 0x2d]
call fcn.14001c6a0
lea rcx, [rsp + 0x20]
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll__strdup]
test rax, rax
je 0x1400178a4
mov rcx, rax
call fcn.14001dc70
mov rcx, qword [rsp + 0xc30]
xor rcx, rsp
call fcn.14001e2e0
mov rbx, qword [rsp + 0xc60]
add rsp, 0xc40
pop rdi
ret
Function at 0x1400185f0
Capabilities:
Write file on windows

Disassembly:
sub rsp, 0x478
mov rax, qword [0x14002d030]
xor rax, rsp
mov qword [rsp + 0x450], rax
test rcx, rcx
jne 0x140018637
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__errno]
mov dword [rax], Ordinal_24
mov eax, 0xffffffff
mov rcx, qword [rsp + 0x450]
xor rcx, rsp
call fcn.14001e2e0
add rsp, 0x478
ret
lea rax, [rsp + 0x50]
mov qword [rsp + 0x38], rcx
mov qword [rsp + 0x20], rax
lea rcx, [rsp + 0x20]
lea rax, [rsp + 0x50]
mov qword [rsp + 0x470], rbx
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x450]
mov qword [rsp + 0x30], rax
mov qword [rsp + 0x460], rdi
mov dword [rsp + 0x40], 0
mov byte [rsp + 0x44], 0
call fcn.1400189d0
mov rcx, qword [rsp + 0x28]
mov rdi, qword [rsp + 0x20]
movzx ebx, byte [rsp + 0x44]
sub rdi, rcx
test bl, bl
jne 0x1400186d5
test rdi, rdi
je 0x1400186d5
mov r9, qword [rsp + 0x38]
mov r8, rdi
mov qword [rsp + 0x468], rsi
mov esi, 1
mov edx, esi
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
mov ecx, dword [rsp + 0x40]
add ecx, eax
movzx ebx, bl
cmp rax, rdi
cmovne ebx, esi
mov rsi, qword [rsp + 0x468]
jmp 0x1400186d9
mov ecx, dword [rsp + 0x40]
mov rdi, qword [rsp + 0x460]
test bl, bl
mov rbx, qword [rsp + 0x470]
mov eax, 0xffffffff
cmovne ecx, eax
mov eax, ecx
mov rcx, qword [rsp + 0x450]
xor rcx, rsp
call fcn.14001e2e0
add rsp, 0x478
ret

Function at 0x140019120
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rbp
push r14
sub rsp, 0x20
mov rbx, r8
mov ebp, edx
mov r14d, ecx
cmp edx, 1
jne 0x140019189
mov rax, qword [r8 + 0x10]
test rax, rax
je 0x14001916f
cmp qword [r8], rax
jb 0x14001916f
cmp qword [r8 + 0x18], 0
jne 0x140019167
inc dword [r8 + 0x20]
mov rbx, qword [rsp + 0x40]
mov rbp, qword [rsp + 0x48]
add rsp, 0x20
pop r14
ret
mov rcx, rbx
call fcn.140019670
mov rax, qword [rbx]
mov byte [rax], r14b
inc qword [rbx]
mov rbx, qword [rsp + 0x40]
mov rbp, qword [rsp + 0x48]
add rsp, 0x20
pop r14
ret
test edx, edx
jle 0x140019221
mov qword [rsp + 0x30], rsi
mov qword [rsp + 0x38], rdi
nop dword [rax + rax]
mov rax, qword [rbx + 0x10]
test rax, rax
je 0x1400191ad
sub eax, dword [rbx]
jmp 0x1400191af
mov eax, ebp
test eax, eax
jg 0x1400191f1
mov r9, qword [rbx + 0x18]
test r9, r9
je 0x140019214
cmp byte [rbx + 0x24], 0
mov rcx, qword [rbx + 8]
jne 0x1400191e8
mov rdi, qword [rbx]
sub rdi, rcx
je 0x1400191e8
mov r8, rdi
mov edx, 1
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
add dword [rbx + 0x20], eax
cmp rax, rdi
je 0x1400191e8
mov byte [rbx + 0x24], 1
mov rax, qword [rbx + 8]
mov qword [rbx], rax
jmp 0x14001920e
mov rcx, qword [rbx]
cmp eax, ebp
mov esi, ebp
mov edx, r14d
cmovl esi, eax
movsxd rdi, esi
mov r8, rdi
call sub.VCRUNTIME140.dll_memset
add qword [rbx], rdi
sub ebp, esi
test ebp, ebp
jg 0x1400191a0
jmp 0x140019217
add dword [rbx + 0x20], ebp
mov rsi, qword [rsp + 0x30]
mov rdi, qword [rsp + 0x38]
mov rbx, qword [rsp + 0x40]
mov rbp, qword [rsp + 0x48]
add rsp, 0x20
pop r14
ret
Function at 0x140019240
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rdi
push r14
sub rsp, 0x20
mov rbx, r8
mov ebp, edx
mov r14, rcx
cmp edx, 1
jne 0x140019299
mov rax, qword [r8 + 0x10]
movzx edi, byte [rcx]
test rax, rax
je 0x14001928b
cmp qword [r8], rax
jb 0x14001928b
cmp qword [r8 + 0x18], 0
jne 0x140019283
inc dword [r8 + 0x20]
jmp 0x140019325
mov rcx, rbx
call fcn.140019670
mov rax, qword [rbx]
mov byte [rax], dil
inc qword [rbx]
jmp 0x140019325
test edx, edx
jle 0x140019325
mov qword [rsp + 0x30], rsi
mov rax, qword [rbx + 0x10]
test rax, rax
je 0x1400192b3
sub eax, dword [rbx]
jmp 0x1400192b5
mov eax, ebp
test eax, eax
jg 0x1400192f7
mov r9, qword [rbx + 0x18]
test r9, r9
je 0x14001931d
cmp byte [rbx + 0x24], 0
mov rcx, qword [rbx + 8]
jne 0x1400192ee
mov rdi, qword [rbx]
sub rdi, rcx
je 0x1400192ee
mov r8, rdi
mov edx, 1
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
add dword [rbx + 0x20], eax
cmp rax, rdi
je 0x1400192ee
mov byte [rbx + 0x24], 1
mov rax, qword [rbx + 8]
mov qword [rbx], rax
jmp 0x140019317
mov rcx, qword [rbx]
cmp eax, ebp
mov esi, ebp
mov rdx, r14
cmovl esi, eax
movsxd rdi, esi
mov r8, rdi
call sub.VCRUNTIME140.dll_memmove
add qword [rbx], rdi
add r14, rdi
sub ebp, esi
test ebp, ebp
jg 0x1400192a6
jmp 0x140019320
add dword [rbx + 0x20], ebp
mov rsi, qword [rsp + 0x30]
mov rbx, qword [rsp + 0x38]
mov rbp, qword [rsp + 0x40]
mov rdi, qword [rsp + 0x48]
add rsp, 0x20
pop r14
ret

Function at 0x140019670
Capabilities:
Write file on windows

Disassembly:
push rbx
sub rsp, 0x20
mov rbx, rcx
mov rcx, qword [rcx + 8]
cmp byte [rbx + 0x24], 0
jne 0x1400196ce
mov qword [rsp + 0x30], rdi
mov rdi, qword [rbx]
sub rdi, rcx
je 0x1400196c0
mov r9, qword [rbx + 0x18]
mov r8, rdi
mov edx, 1
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
add dword [rbx + 0x20], eax
cmp rax, rdi
mov rax, qword [rbx + 8]
mov qword [rbx], rax
je 0x1400196b5
mov byte [rbx + 0x24], 1
mov rdi, qword [rsp + 0x30]
add rsp, 0x20
pop rbx
ret
mov rdi, qword [rsp + 0x30]
mov qword [rbx], rcx
add rsp, 0x20
pop rbx
ret
mov qword [rbx], rcx
add rsp, 0x20
pop rbx
ret

Function at 0x14001ae60
Capabilities:
Check if file exists
Get file attributes

Disassembly:
sub rsp, 0x28
call qword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x14001ae83
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
call fcn.14001def0
xor al, al
add rsp, 0x28
ret
shr eax, 0xa
and al, 1
add rsp, 0x28
ret
Function at 0x14001af50
Capabilities:
Move file

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
push r14
sub rsp, 0x20
xor edi, edi
mov rbp, rdx
mov r14, rcx
lea r8d, [rdi + 1]
call qword [sym.imp.KERNEL32.dll_MoveFileExA]
test eax, eax
jne 0x14001afc5
mov esi, edi
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
mov ebx, eax
call fcn.14001def0
cmp ebx, 5
je 0x14001af9e
lea eax, [rbx - 0x20]
cmp eax, 1
ja 0x14001afe2
inc edi
cmp esi, 0x64
jge 0x14001afe2
mov ecx, 0x186a0
call fcn.14001df70
mov r8d, 1
mov rdx, rbp
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_MoveFileExA]
test eax, eax
je 0x14001af80
xor eax, eax
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
mov rdi, qword [rsp + 0x48]
add rsp, 0x20
pop r14
ret
mov eax, 0xffffffff
jmp 0x14001afc7
Function at 0x14001ba50
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push rbx
sub rsp, 0x20
mov rbx, rcx
call qword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x14001ba78
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__errno]
mov dword [rax], 2
xor eax, eax
add rsp, 0x20
pop rbx
ret
test al, 0x10
jne 0x14001ba90
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__errno]
mov dword [rax], reloc.LIBPQ.dll_Ordinal_20
xor eax, eax
add rsp, 0x20
pop rbx
ret
mov ecx, 0x120
mov qword [rsp + 0x30], rdi
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
mov rdi, rax
test rax, rax
jne 0x14001bac1
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__errno]
mov rdi, qword [rsp + 0x30]
mov dword [rax], Ordinal_14
xor eax, eax
add rsp, 0x20
pop rbx
ret
mov rcx, 0xffffffffffffffff
nop dword [rax + rax]
inc rcx
cmp byte [rbx + rcx], 0
jne 0x14001bad0
add rcx, 4
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
mov qword [rdi], rax
mov rcx, rax
test rax, rax
jne 0x14001bb10
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__errno]
mov rcx, rdi
mov dword [rax], Ordinal_14
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov rdi, qword [rsp + 0x30]
xor eax, eax
add rsp, 0x20
pop rbx
ret
movzx eax, byte [rbx]
lea rbx, [rbx + 1]
mov byte [rcx], al
lea rcx, [rcx + 1]
test al, al
jne 0x14001bb10
mov rcx, qword [rdi]
mov rax, 0xffffffffffffffff
mov rdx, rcx
nop
cmp byte [rcx + rax + 1], 0
lea rax, [rax + 1]
jne 0x14001bb30
cmp byte [rax + rcx - 1], 0x2f
je 0x14001bb7c
mov rax, 0xffffffffffffffff
nop dword [rax]
cmp byte [rcx + rax + 1], 0
lea rax, [rax + 1]
jne 0x14001bb50
cmp byte [rax + rcx - 1], 0x5c
je 0x14001bb7c
dec rcx
cmp byte [rcx + 1], 0
lea rcx, [rcx + 1]
jne 0x14001bb65
movzx eax, word [reloc.LIBPQ.dll_Ordinal_92]
mov word [rcx], ax
mov rdx, qword [rdi]
dec rdx
nop
cmp byte [rdx + 1], 0
lea rdx, [rdx + 1]
jne 0x14001bb80
movzx eax, word [0x140027f24]
mov word [rdx], ax
xor eax, eax
mov dword [rdi + 8], eax
mov word [rdi + 0xc], ax
mov rax, rdi
mov qword [rdi + 0x118], 0xffffffffffffffff
mov rdi, qword [rsp + 0x30]
add rsp, 0x20
pop rbx
ret
Function at 0x14001bbc0
Capabilities:
Check if file exists
Enumerate files on windows

Disassembly:
push rbx
sub rsp, 0x170
mov rax, qword [0x14002d030]
xor rax, rsp
mov qword [rsp + 0x160], rax
mov rbx, rcx
lea rdx, [rsp + 0x20]
mov rcx, qword [rcx + 0x118]
cmp rcx, 0xffffffffffffffff
jne 0x14001bc11
mov rcx, qword [rbx]
call qword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov qword [rbx + 0x118], rax
cmp rax, 0xffffffffffffffff
jne 0x14001bc47
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
jmp 0x14001bc24
call qword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x14001bc47
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x12
jne 0x14001bc36
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__errno]
mov dword [rax], 0
xor eax, eax
jmp 0x14001bc87
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
call fcn.14001def0
xor eax, eax
jmp 0x14001bc87
lea rax, [rsp + 0x4c]
lea rdx, [rbx + 0x10]
sub rdx, rax
lea rcx, [rsp + 0x4c]
nop dword [rax + rax]
movzx eax, byte [rcx]
mov byte [rdx + rcx], al
lea rcx, [rcx + 1]
test al, al
jne 0x14001bc60
mov rax, 0xffffffffffffffff
inc rax
cmp byte [rbx + rax + 0x10], 0
jne 0x14001bc75
mov word [rbx + 0xe], ax
lea rax, [rbx + 8]
mov rcx, qword [rsp + 0x160]
xor rcx, rsp
call fcn.14001e2e0
add rsp, 0x170
pop rbx
ret

Function at 0x14001dc70
Capabilities:
Set environment variable

Disassembly:
mov qword [rsp + 0x20], rbx
push rdi
sub rsp, 0x20
mov rdi, rcx
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll__strdup]
mov rbx, rax
test rax, rax
je 0x14001dd79
mov edx, Ordinal_64
mov rcx, rax
call sub.VCRUNTIME140.dll_strchr
test rax, rax
je 0x14001dd70
mov byte [rax], 0
mov rcx, 0xffffffffffffffff
nop
inc rcx
cmp byte [rax + rcx + 1], 0
jne 0x14001dcb0
test rcx, rcx
je 0x14001dcd4
lea rdx, [rax + 1]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_SetEnvironmentVariableA]
test eax, eax
je 0x14001dd70
mov rcx, rbx
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov rax, qword [str.msvcrt]
test rax, rax
je 0x14001dd5c
mov qword [rsp + 0x30], rbp
xor ebp, ebp
mov qword [rsp + 0x40], rsi
mov ebx, ebp
lea rsi, str.msvcrt
nop
lea r8, [rsp + 0x38]
mov qword [rsp + 0x38], rbp
mov rdx, rax
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleExA]
test eax, eax
je 0x14001dd45
mov rcx, qword [rsp + 0x38]
test rcx, rcx
je 0x14001dd45
lea rdx, [0x140028488]
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
je 0x14001dd3a
mov rcx, rdi
call rax
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
mov rax, qword [rsi + rbx*8 + 8]
inc rbx
test rax, rax
jne 0x14001dd00
mov rsi, qword [rsp + 0x40]
mov rbp, qword [rsp + 0x30]
mov rcx, rdi
mov rbx, qword [rsp + 0x48]
add rsp, 0x20
pop rdi
jmp qword [sym.imp.api_ms_win_crt_environment_l1_1_0.dll__putenv]
mov rcx, rbx
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov rbx, qword [rsp + 0x48]
mov eax, 0xffffffff
add rsp, 0x20
pop rdi
ret