joyce8/EMBER2024-capa huggingface dataset:
Function at 0x100659270
Capabilities:
Resolve dns

Disassembly:
push r15
push r14
push r13
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0xc8
mov dword [rsp + 0x120], r8d
mov r13, rcx
mov ebx, edx
mov qword [rsp + 0x128], r9
mov qword [rsp + 0x38], 0
call sym.vim.exe_add_channel
mov r12, rax
test rax, rax
je 0x10065949a
xor edx, edx
lea r9, [rsp + 0x38]
lea r8, [rsp + 0x40]
mov rcx, r13
mov qword [rsp + 0x40], 0
mov qword [rsp + 0x48], 0
mov qword [rsp + 0x50], 0
mov qword [rsp + 0x58], 0
mov qword [rsp + 0x60], 0
mov qword [rsp + 0x68], 0
mov dword [rsp + 0x48], 1
mov dword [rsp + 0x40], 0xc00
call sub.msys_2.0.dll_getaddrinfo
test eax, eax
jne 0x1006594aa
mov r14, qword [rsp + 0x38]
test r14, r14
je 0x100659485
mov eax, ebx
lea rdi, str.Trying_to_connect_to__s_port__d
lea rsi, [rsp + 0x120]
xchg ah, al
mov ebp, eax
jmp 0x10065939b
cmp ecx, 2
je 0x1006593f8
mov r15, r13
mov r9d, ebx
mov r8, r15
mov rdx, rdi
mov rcx, r12
call sym.vim.exe_ch_log
mov eax, dword [rsp + 0x120]
test eax, eax
jne 0x100659373
mov dword [rsp + 0x120], 1
mov rdx, qword [r14 + 0x20]
mov r8d, dword [r14 + 0x10]
mov r9, rsi
mov rcx, r12
call fcn.1006552d0
test eax, eax
jns 0x100659410
mov r14, qword [r14 + 0x28]
test r14, r14
je 0x100659480
mov ecx, dword [r14 + 4]
cmp ecx, 0x17
jne 0x100659340
mov rdx, qword [r14 + 0x20]
mov word [rdx + 2], bp
add rdx, 8
mov r9d, 0x41
lea r8, [rsp + 0x70]
call sub.msys_2.0.dll_inet_ntop
mov r15, rax
test rax, rax
je 0x100659349
mov rdx, rax
mov rcx, r13
call sub.msys_2.0.dll_strcmp
test eax, eax
je 0x10065934c
mov r9, r15
mov r8, r13
lea rdx, str.Resolved__s_to__s
mov rcx, r12
call sym.vim.exe_ch_log
jmp 0x10065934c
mov rdx, qword [r14 + 0x20]
mov word [rdx + 2], bp
add rdx, 4
jmp 0x1006593b0
mov rcx, qword [rsp + 0x38]
mov dword [rsp + 0x2c], eax
call sub.msys_2.0.dll_freeaddrinfo
lea rdx, str.Connection_made
mov rcx, r12
call sym.vim.exe_ch_log
mov eax, dword [rsp + 0x2c]
mov rcx, r13
mov dword [r12 + 0x18], eax
mov rax, qword [rsp + 0x128]
mov qword [r12 + 0x4d8], rax
call sym.vim.exe_vim_strsave
mov dword [r12 + 0x4c8], ebx
or dword [r12 + 0x4cc], 1
mov qword [r12 + 0x4c0], rax
mov rax, r12
add rsp, 0xc8
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
pop r15
ret
mov r14, qword [rsp + 0x38]
mov rcx, r14
call sub.msys_2.0.dll_freeaddrinfo
mov rcx, r12
xor r12d, r12d
call fcn.100659190
jmp 0x100659467
lea rdx, str.Cannot_allocate_channel.
xor ecx, ecx
call fcn.1006549a0
jmp 0x100659467
lea rdx, str.in_getaddrinfo___in_channel_open__
mov rcx, r12
mov dword [rsp + 0x2c], eax
call fcn.1006549a0
mov ecx, dword [rsp + 0x2c]
call sub.msys_2.0.dll_gai_strerror
mov rcx, qword [sym.vim.exe_e_getaddrinfo_in_channel_open_str]
mov r13, rax
call sub.msys_intl_8.dll_libintl_gettext
mov rdx, r13
mov rcx, rax
call sym.vim.exe_semsg
mov rcx, r12
xor r12d, r12d
call fcn.100659190
jmp 0x100659467
Function at 0x100659b10
Capabilities:
Get socket status

Disassembly:
push r13
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x58
mov esi, edx
mov ebx, r8d
test r8d, r8d
jle 0x100659b32
lea rdx, str.Waiting_for_up_to__d_msec
call sym.vim.exe_ch_log
movsxd rax, ebx
mov edx, ebx
mov ecx, esi
mov edi, 1
imul rax, rax, 0x10624dd3
sar edx, 0x1f
lea rbp, [rsp + 0x38]
lea r13, [rsp + 0x30]
lea r12, [rsp + 0x40]
sar rax, 0x26
sub eax, edx
movsxd rdx, eax
imul eax, eax, 0x3e8
mov qword [rsp + 0x40], rdx
sub ebx, eax
imul ebx, ebx, 0x3e8
test esi, esi
movsxd rbx, ebx
mov qword [rsp + 0x48], rbx
lea ebx, [rsi + 0x3f]
cmovns ebx, esi
shl rdi, cl
add esi, 1
sar ebx, 6
movsxd rbx, ebx
mov rdx, rbp
mov ecx, esi
mov qword [rsp + rbx*8 + 0x30], rdi
mov qword [rsp + 0x38], 0
call fcn.1006546e0
mov qword [rsp + 0x20], r12
xor r9d, r9d
mov r8, rbp
mov ecx, eax
mov rdx, r13
call sub.msys_2.0.dll_select
cmp eax, 0xffffffff
je 0x100659bf0
test eax, eax
jle 0x100659bfa
mov rax, rdi
and rax, qword [rsp + rbx*8 + 0x30]
je 0x100659be0
xor eax, eax
add rsp, 0x58
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
ret
call sym.vim.exe_channel_write_any_lines
jmp 0x100659b8f
call sub.msys_2.0.dll___errno
cmp dword [rax], 4
je 0x100659b8f
mov eax, 1
add rsp, 0x58
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
ret
Function at 0x10065bf50
Capabilities:
Terminate process

Disassembly:
push rbx
sub rsp, 0x20
mov rbx, rcx
call sub.msys_2.0.dll___getreent
mov r8, rbx
lea rdx, str.BUG:__s_n
mov rcx, qword [rax + 0x18]
call sub.msys_2.0.dll_fprintf
mov ecx, 1
call sub.msys_2.0.dll_exit
nop
nop dword [rax + rax]
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x48
mov qword [rsp + 0x38], rdx
mov rdi, r8
mov rsi, r9
test rdx, rdx
je 0x10065bff2
lea rbp, [rsp + 0x38]
jmp 0x10065bfda
mov r8, qword [rax + 0x10]
mov rcx, qword [rax + 8]
mov rax, qword [rdi]
mov r9, qword [rbx + 0x20]
mov rdx, qword [rbx + 0x18]
add r9, qword [rbx + 0x10]
add rdx, qword [rbx + 8]
sub r9, r8
mov qword [rsp + 0x20], rax
sub rdx, rcx
call qword [rsi + 0x28]
test eax, eax
js 0x10065c000
mov rax, qword [rbx]
mov qword [rsp + 0x38], rax
test rax, rax
je 0x10065bff2
mov rdx, rsi
mov rcx, rbp
call sym.vim.exe_xdl_get_hunk
mov rbx, rax
mov rax, qword [rsp + 0x38]
test rax, rax
jne 0x10065bfa0
xor eax, eax
add rsp, 0x48
pop rbx
pop rsi
pop rdi
pop rbp
ret
mov eax, 0xffffffff
add rsp, 0x48
pop rbx
pop rsi
pop rdi
pop rbp
ret

Function at 0x10065ef50
Capabilities:
Hash data using djb2

Disassembly:
push r15
push r14
push r13
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x48
mov r12d, 0x1505
mov rbx, qword [rcx]
mov rbp, r8
mov rdi, rcx
mov rsi, rdx
and ebp, 0x1e
jne 0x10065efc8
cmp rbx, rdx
jb 0x10065ef99
jmp 0x10065eff0
mov rdx, r12
add rbx, 1
shl rdx, 5
add rdx, r12
xor rax, rdx
mov r12, rax
cmp rsi, rbx
je 0x10065efab
movsx rax, byte [rbx]
cmp al, 0xa
jne 0x10065ef80
cmp rbx, rsi
mov rsi, rbx
adc rsi, 0
mov rax, r12
mov qword [rdi], rsi
add rsp, 0x48
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
pop r15
ret
mov rax, r8
and eax, 2
mov qword [rsp + 0x28], rax
mov rax, r8
and r8d, 8
and eax, 4
mov qword [rsp + 0x38], r8
mov qword [rsp + 0x30], rax
cmp rbx, rdx
jb 0x10065f01c
nop dword [rax]
mov rsi, rbx
jmp 0x10065efab
cmp al, 0xd
je 0x10065f080
mov rdx, r12
movsx rax, al
mov rbx, r14
shl rdx, 5
add rdx, r12
xor rax, rdx
mov r12, rax
cmp rsi, rbx
jbe 0x10065eff0
movzx eax, byte [rbx]
cmp al, 0xa
je 0x10065efa1
lea r14, [rbx + 1]
mov r15, r14
cmp rbp, 0x10
je 0x10065eff8
call sub.msys_2.0.dll___locale_ctype_ptr
movzx edx, byte [rbx]
mov r9, rax
mov rax, rdx
test byte [rdx + r9 + 1], 8
je 0x10065f000
mov r15, rbx
jmp 0x10065f06a
call sub.msys_2.0.dll___locale_ctype_ptr
movzx r10d, byte [r15]
mov r9, rax
test byte [r10 + r9 + 1], 8
je 0x10065f0a0
cmp r10b, 0xa
je 0x10065f0a0
mov r13, r15
add r15, 1
cmp rsi, r15
ja 0x10065f050
mov rsi, r15
jmp 0x10065efab
cmp rsi, r14
jbe 0x10065f000
cmp byte [rbx + 1], 0xa
jne 0x10065f000
mov rbx, r15
jmp 0x10065f01c
cmp byte [r13 + 1], 0xa
je 0x10065f093
cmp qword [rsp + 0x28], 0
jne 0x10065f093
cmp qword [rsp + 0x30], 0
jne 0x10065f0f2
cmp qword [rsp + 0x38], 0
je 0x10065f093
cmp r15, rbx
jne 0x10065f0d4
jmp 0x10065f017
add r14, 1
mov rax, r12
shl rax, 5
add rax, r12
movsx r12, byte [rbx]
mov rbx, r14
xor r12, rax
cmp r15, r14
jne 0x10065f0d0
jmp 0x10065f017
mov rax, r12
shl rax, 5
add rax, r12
xor rax, 0x20
mov r12, rax
jmp 0x10065f093
Function at 0x100666780
Capabilities:
Terminate process

Disassembly:
push r12
sub rsp, 0x20
lea rcx, sym.vim.exe_e_gui_cannot_be_used_not_enabled_at_compile_time
call sub.msys_intl_8.dll_libintl_gettext
mov r12, rax
call sub.msys_2.0.dll___getreent
mov rcx, r12
mov rdx, qword [rax + 0x18]
call sub.msys_2.0.dll_fputs
call sub.msys_2.0.dll___getreent
mov ecx, 0xa
mov rdx, qword [rax + 0x18]
call sub.msys_2.0.dll_fputc
mov ecx, 2
add rsp, 0x20
pop r12
jmp sym.vim.exe_mch_exit

Function at 0x1006667d0
Capabilities:
Terminate process
Write file on windows

Disassembly:
push r13
push r12
push rbx
sub rsp, 0x20
movsxd rbx, ecx
mov r13, rdx
call sym.vim.exe_reset_signals
call sym.vim.exe_init_longVersion
mov rax, qword [sym.vim.exe_longVersion]
mov r12, qword [rax]
call sub.msys_2.0.dll___getreent
mov rdx, qword [rax + 0x18]
mov rcx, r12
call sub.msys_2.0.dll_fputs
call sub.msys_2.0.dll___getreent
mov ecx, 0xa
mov rdx, qword [rax + 0x18]
call sub.msys_2.0.dll_fputc
lea rax, str.Unknown_option_argument
mov rcx, qword [rax + rbx*8]
call sub.msys_intl_8.dll_libintl_gettext
mov r12, rax
call sub.msys_2.0.dll___getreent
mov rcx, r12
mov rdx, qword [rax + 0x18]
call sub.msys_2.0.dll_fputs
test r13, r13
je 0x100666884
call sub.msys_2.0.dll___getreent
mov r8d, 3
mov edx, 1
lea rcx, [0x1006ead6f]
mov r9, qword [rax + 0x18]
call sub.msys_2.0.dll_fwrite
call sub.msys_2.0.dll___getreent
mov rcx, r13
mov rdx, qword [rax + 0x18]
call sub.msys_2.0.dll_fputs
call sub.msys_2.0.dll___getreent
mov ecx, 0x22
mov rdx, qword [rax + 0x18]
call sub.msys_2.0.dll_fputc
lea rcx, str._nMore_info_with:__vim__h__n
call sub.msys_intl_8.dll_libintl_gettext
mov r12, rax
call sub.msys_2.0.dll___getreent
mov rcx, r12
mov rdx, qword [rax + 0x18]
call sub.msys_2.0.dll_fputs
mov ecx, 1
add rsp, 0x20
pop rbx
pop r12
pop r13
jmp sym.vim.exe_mch_exit

Function at 0x1006668c0
Capabilities:
Get file attributes

Disassembly:
push r13
push r12
push rbx
sub rsp, 0xa0
mov r12, rcx
lea r13, [rsp + 0x20]
call sub.msys_2.0.dll_getuid
mov rdx, r13
mov rcx, r12
mov ebx, eax
call sub.msys_2.0.dll_stat
test eax, eax
jne 0x1006668f0
cmp dword [rsp + 0x38], ebx
je 0x1006668ff
xor eax, eax
add rsp, 0xa0
pop rbx
pop r12
pop r13
ret
mov rdx, r13
mov rcx, r12
call sub.msys_2.0.dll_lstat
test eax, eax
jne 0x1006668f0
xor eax, eax
cmp dword [rsp + 0x38], ebx
sete al
jmp 0x1006668f2
Function at 0x10066a320
Capabilities:
Query environment variable

Disassembly:
push r13
push r12
push rsi
push rbx
sub rsp, 0x28
mov r13, rcx
mov ebx, edx
call sub.msys_2.0.dll_getenv
mov r12, rax
xor eax, eax
test r12, r12
je 0x10066a345
cmp byte [r12], 0
jne 0x10066a350
add rsp, 0x28
pop rbx
pop rsi
pop r12
pop r13
ret
test ebx, ebx
jne 0x10066a3d0
mov rdx, r13
xor r8d, r8d
mov ecx, 7
call sym.vim.exe_estack_push
mov r13, qword [0x10072d968]
mov rcx, r12
mov eax, 0xfffffffc
mov ebx, dword [0x10072d970]
mov rsi, qword [sym.vim.exe_current_sctx]
mov qword [0x10072d968], 0
mov qword [sym.vim.exe_current_sctx], rax
mov dword [0x10072d970], 1
call sym.vim.exe_do_cmdline_cmd
call sym.vim.exe_estack_pop
mov eax, 1
mov qword [sym.vim.exe_current_sctx], rsi
mov qword [0x10072d968], r13
mov dword [0x10072d970], ebx
add rsp, 0x28
pop rbx
pop rsi
pop r12
pop r13
ret
xor edx, edx
xor ecx, ecx
call sym.vim.exe_vimrc_found
jmp 0x10066a354

Function at 0x10066a3e0
Capabilities:
Terminate process
Write file on windows

Disassembly:
mov rdx, rcx
mov ecx, 2
jmp fcn.1006667d0

Function at 0x10066a570
Capabilities:
Get file attributes

Disassembly:
push rsi
push rbx
sub rsp, 0xa8
mov rbx, rcx
mov rcx, rdx
mov esi, r8d
mov qword [rbx], rdx
xor edx, edx
call sym.vim.exe_FullName_save
mov qword [rbx + 8], rax
test esi, 0x200
je 0x10066a5a9
mov rcx, qword [rbx]
lea rdx, [rsp + 0x20]
call sub.msys_2.0.dll_lstat
test eax, eax
jns 0x10066a600
or esi, 0x110000
mov rcx, qword [rbx]
mov r8d, 0x180
mov dword [rbx + 0x14], esi
mov edx, esi
call sub.msys_2.0.dll_open
mov ecx, eax
mov dword [rbx + 0x10], eax
test ecx, ecx
jns 0x10066a622
mov rcx, qword [rbx]
test rcx, rcx
je 0x10066a5df
call sym.vim.exe_vim_free
mov qword [rbx], 0
mov rcx, qword [rbx + 8]
test rcx, rcx
je 0x10066a5f5
call sym.vim.exe_vim_free
mov qword [rbx + 8], 0
add rsp, 0xa8
pop rbx
pop rsi
ret
mov dword [rbx + 0x10], 0xffffffff
mov rcx, qword [sym.vim.exe_e_swap_file_already_exists_symlink_attack]
call sub.msys_intl_8.dll_libintl_gettext
mov rcx, rax
call sym.vim.exe_emsg
mov ecx, dword [rbx + 0x10]
test ecx, ecx
js 0x10066a5cb
mov edx, 1
call sub.msys_2.0.dll_fcntl
test eax, eax
js 0x10066a634
test al, 1
je 0x10066a650
mov rcx, qword [rbx]
call sym.vim.exe_mch_hide
nop
add rsp, 0xa8
pop rbx
pop rsi
ret
or eax, 1
mov ecx, dword [rbx + 0x10]
mov edx, 2
mov r8d, eax
call sub.msys_2.0.dll_fcntl
jmp 0x10066a634
Function at 0x10066ac40
Capabilities:
Get file attributes

Disassembly:
push r13
push r12
push rdi
push rbx
sub rsp, 0xa8
mov r13, rcx
mov ecx, 0x4d0
mov ebx, edx
call sym.vim.exe_alloc
mov r12, rax
test rax, rax
je 0x10066adbf
test r13, r13
je 0x10066add0
mov rcx, rax
mov r8d, ebx
mov rdx, r13
call fcn.10066a570
mov eax, dword [r12 + 0x10]
test eax, eax
js 0x10066ae6c
lea rdi, [r12 + 0x48]
mov ecx, r12d
xor eax, eax
mov r9d, 0x1000
and rdi, 0xfffffffffffffff8
lea rdx, [r12 + 0x268]
mov qword [r12 + 0x20], 0
mov qword [r12 + 0x28], 0
sub ecx, edi
mov qword [r12 + 0x30], 0
add ecx, 0x260
mov dword [r12 + 0x38], 0
shr ecx, 3
mov qword [r12 + 0x258], 0
rep stosq qword [rdi], rax
mov rdi, rdx
mov edx, r12d
lea rcx, [r12 + 0x58]
and rdi, 0xfffffffffffffff8
mov qword [r12 + 0x50], rcx
mov qword [r12 + 0x40], 0x3f
sub edx, edi
lea ecx, [rdx + 0x480]
mov qword [r12 + 0x478], 0
shr ecx, 3
rep stosq qword [rdi], rax
lea rax, [r12 + 0x278]
mov qword [r12 + 0x260], 0x3f
mov qword [r12 + 0x270], rax
xor eax, eax
mov ecx, dword [r12 + 0x10]
mov qword [r12 + 0x4a0], 0x1000
mov qword [r12 + 0x4b8], 0
test ecx, ecx
jns 0x10066adf0
mov qword [r12 + 0x480], rax
mov ecx, 0xa
mov qword [r12 + 0x488], 0xffffffffffffffff
mov qword [r12 + 0x490], 0
mov qword [r12 + 0x498], rax
nop dword [rax]
test r9b, 1
jne 0x10066ad9e
shr r9d, 1
sub ecx, 1
jne 0x10066ad90
mov rax, qword [sym.vim.exe_p_mm]
mov rax, qword [rax]
shl rax, cl
cqo
idiv r9
mov edx, 0xa
cmp eax, edx
cmovb eax, edx
mov dword [r12 + 0x3c], eax
mov rax, r12
add rsp, 0xa8
pop rbx
pop rdi
pop r12
pop r13
ret
mov qword [rax], 0
mov qword [rax + 8], 0
mov dword [rax + 0x10], 0xffffffff
jmp 0x10066ac8c
lea rdx, [rsp + 0x20]
call sub.msys_2.0.dll_fstat
test eax, eax
je 0x10066ae20
mov ecx, dword [r12 + 0x10]
test ecx, ecx
js 0x10066ae0c
and bh, 0xc
je 0x10066ae40
mov r9d, dword [r12 + 0x4a0]
xor eax, eax
jmp 0x10066ad60
mov eax, dword [rsp + 0x80]
lea edx, [rax - 0x418]
cmp edx, 0xbf38
ja 0x10066adfe
mov dword [r12 + 0x4a0], eax
jmp 0x10066adfe
xor edx, edx
mov r8d, 2
call sub.msys_2.0.dll_lseek
test rax, rax
jle 0x10066ae0c
mov ecx, dword [r12 + 0x4a0]
lea rax, [rcx + rax - 1]
mov r9, rcx
cqo
idiv rcx
jmp 0x10066ad60
mov rcx, r12
xor r12d, r12d
call sym.vim.exe_vim_free
jmp 0x10066adbf

Function at 0x100673b30
Capabilities:
Terminate process

Disassembly:
push r12
sub rsp, 0x20
mov rax, qword [sym.vim.exe_emsg_silent]
mov dword [rax], 0
mov rax, qword [sym.vim.exe_did_outofmem_msg]
mov dword [rax], 1
mov r12, rcx
mov rcx, qword [sym.vim.exe_e_out_of_memory_allocating_nr_bytes]
call sub.msys_intl_8.dll_libintl_gettext
mov rdx, r12
mov rcx, rax
call sym.vim.exe_semsg
mov rax, qword [sym.vim.exe_starting]
cmp dword [rax], 2
jne 0x100673b86
mov ecx, 0x7b
add rsp, 0x20
pop r12
jmp sym.vim.exe_mch_exit
add rsp, 0x20
pop r12
ret

Function at 0x100673be6
Capabilities:
Terminate process

Disassembly:
mov rax, qword [sym.vim.exe_did_outofmem_msg]
mov eax, dword [rax]
test eax, eax
je 0x100673be6
ret
jmp fcn.100673b30
Function at 0x10067ea15
Capabilities:
Get file attributes

Disassembly:
push r14
push r13
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0xb0
mov rax, qword [sym.vim.exe_p_viminfofile]
mov r12, rcx
mov rcx, qword [rax]
mov ebx, edx
lea rdx, [0x1006e2d10]
call sub.msys_2.0.dll_strcmp
test eax, eax
jne 0x10061b8d8
add rsp, 0xb0
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
ret
mov rcx, r12
call fcn.100617970
mov r12, rax
test rax, rax
je 0x10061b978
lea rdx, [0x1006e2d15]
mov rcx, rax
call sub.msys_2.0.dll_fopen
mov r13, rax
mov rax, qword [sym.vim.exe_p_verbose]
cmp qword [rax], 0
jg 0x10061b97f
mov rcx, r12
call sym.vim.exe_vim_free
test r13, r13
je 0x10061b978
mov rcx, r13
call sub.msys_2.0.dll_fileno
lea rdx, [rsp + 0x30]
mov ecx, eax
call sub.msys_2.0.dll_fstat
test eax, eax
js 0x10061b970
mov eax, dword [rsp + 0x40]
and eax, 0xf000
cmp eax, 0x4000
je 0x10061b970
mov r8d, ebx
xor edx, edx
mov rcx, r13
mov dword [0x100729e28], 0
call fcn.100618290
mov rcx, r13
call fcn.100672bf0
mov eax, 1
jmp 0x10061b8c0
mov rcx, r13
call fcn.100672bf0
xor eax, eax
jmp 0x10061b8c0
call sym.vim.exe_verbose_enter
test r13, r13
jne 0x10067ea15
jmp 0x10067ea8a
lea rbp, [0x1006e2808]
test bl, 0x10
je 0x10067ea9b
lea rcx, str._oldfiles
call sub.msys_intl_8.dll_libintl_gettext
mov rdi, rax
test bl, 2
je 0x10067eaa4
lea rcx, str._marks
call sub.msys_intl_8.dll_libintl_gettext
mov rsi, rax
test bl, 1
je 0x10067eaad
lea rcx, str._info
call sub.msys_intl_8.dll_libintl_gettext
mov r14, rax
lea rcx, str.Reading_viminfo_file___s__s_s_s_s
call sub.msys_intl_8.dll_libintl_gettext
mov qword [rsp + 0x28], rbp
mov r9, rsi
mov r8, r14
mov qword [rsp + 0x20], rdi
mov rcx, rax
mov rdx, r12
call sym.vim.exe_smsg
call sym.vim.exe_verbose_leave
nop
jmp 0x10061b90b
lea rcx, str._FAILED
call sub.msys_intl_8.dll_libintl_gettext
mov rbp, rax
jmp 0x10067ea1c
lea rdi, [0x1006e2808]
jmp 0x10067ea30
lea rsi, [0x1006e2808]
jmp 0x10067ea44
lea r14, [0x1006e2808]
jmp 0x10067ea58
Function at 0x2fc4d2130
Capabilities:
Write file on windows

Disassembly:
push rbp
push rbx
sub rsp, 0x38
lea rbp, [rsp + 0x30]
mov qword [rbp + 0x20], rcx
mov qword [rbp + 0x28], rdx
mov qword [rbp + 0x30], r8
mov qword [rbp + 0x38], r9
lea rax, [rbp + 0x28]
mov qword [rbp - 8], rax
mov ecx, 2
call sub.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func
mov r9, rax
mov r8d, 0x1b
mov edx, 1
lea rax, str.Mingw_w64_runtime_failure:_n
mov rcx, rax
call sub.api_ms_win_crt_stdio_l1_1_0.dll_fwrite
mov rbx, qword [rbp - 8]
mov ecx, 2
call sub.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func
mov rcx, rax
mov rax, qword [rbp + 0x20]
mov r8, rbx
mov rdx, rax
call fcn.2fc4d3210
call sub.api_ms_win_crt_runtime_l1_1_0.dll_abort
nop

Function at 0x2fc4d2b32
Capabilities:
Get thread local storage value

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x30
mov eax, dword [0x2fc4f5108]
test eax, eax
je 0x2fc4d2bca
lea rax, [0x2fc4f50e0]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
call rax
mov rax, qword [0x2fc4f5110]
mov qword [rbp - 8], rax
jmp 0x2fc4d2bae
mov rax, qword [rbp - 8]
mov eax, dword [rax]
mov ecx, eax
mov rax, qword [sym.imp.KERNEL32.dll_TlsGetValue]
call rax
mov qword [rbp - 0x10], rax
mov rax, qword [sym.imp.KERNEL32.dll_GetLastError]
call rax
test eax, eax
jne 0x2fc4d2ba2
cmp qword [rbp - 0x10], 0
je 0x2fc4d2ba2
mov rax, qword [rbp - 8]
mov rdx, qword [rax + 8]
mov rax, qword [rbp - 0x10]
mov rcx, rax
call rdx
mov rax, qword [rbp - 8]
mov rax, qword [rax + 0x10]
mov qword [rbp - 8], rax
cmp qword [rbp - 8], 0
jne 0x2fc4d2b68
lea rax, [0x2fc4f50e0]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
call rax
jmp 0x2fc4d2bcb
nop
add rsp, 0x30
pop rbp
ret

Function at 0x2fc4d2cd0
Capabilities:
Parse pe header

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x20
mov qword [rbp + 0x10], rcx
mov rax, qword [rbp + 0x10]
mov qword [rbp - 8], rax
mov rax, qword [rbp - 8]
movzx eax, word [rax]
cmp ax, 0x5a4d
je 0x2fc4d2cf8
mov eax, 0
jmp 0x2fc4d2d46
mov rax, qword [rbp - 8]
mov eax, dword [rax + 0x3c]
movsxd rdx, eax
mov rax, qword [rbp - 8]
add rax, rdx
mov qword [rbp - 0x10], rax
mov rax, qword [rbp - 0x10]
mov eax, dword [rax]
cmp eax, 0x4550
je 0x2fc4d2d21
mov eax, 0
jmp 0x2fc4d2d46
mov rax, qword [rbp - 0x10]
add rax, 0x18
mov qword [rbp - 0x18], rax
mov rax, qword [rbp - 0x18]
movzx eax, word [rax]
cmp ax, 0x20b
je 0x2fc4d2d41
mov eax, 0
jmp 0x2fc4d2d46
mov eax, 1
add rsp, 0x20
pop rbp
ret
Function at 0x2fc4d2d4c
Capabilities:
Enumerate pe sections

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x20
mov qword [rbp + 0x10], rcx
mov qword [rbp + 0x18], rdx
mov rax, qword [rbp + 0x10]
mov eax, dword [rax + 0x3c]
movsxd rdx, eax
mov rax, qword [rbp + 0x10]
add rax, rdx
mov qword [rbp - 0x18], rax
mov dword [rbp - 0xc], 0
mov rax, qword [rbp - 0x18]
movzx eax, word [rax + 0x14]
movzx edx, ax
mov rax, qword [rbp - 0x18]
add rax, rdx
add rax, 0x18
mov qword [rbp - 8], rax
jmp 0x2fc4d2dca
mov rax, qword [rbp - 8]
mov eax, dword [rax + 0xc]
mov eax, eax
cmp qword [rbp + 0x18], rax
jb 0x2fc4d2dc1
mov rax, qword [rbp - 8]
mov edx, dword [rax + 0xc]
mov rax, qword [rbp - 8]
mov eax, dword [rax + 8]
add eax, edx
mov eax, eax
cmp qword [rbp + 0x18], rax
jae 0x2fc4d2dc1
mov rax, qword [rbp - 8]
jmp 0x2fc4d2ddf
add dword [rbp - 0xc], 1
add qword [rbp - 8], 0x28
mov rax, qword [rbp - 0x18]
movzx eax, word [rax + 6]
movzx eax, ax
cmp dword [rbp - 0xc], eax
jb 0x2fc4d2d94
mov eax, 0
add rsp, 0x20
pop rbp
ret
Function at 0x2fc4d5a30
Capabilities:
Write file on windows

Disassembly:
push rbp
push rbx
sub rsp, 0x38
lea rbp, [rsp + 0x30]
mov qword [rbp + 0x20], rcx
mov qword [rbp + 0x28], rdx
mov qword [rbp + 0x30], r8
mov qword [rbp + 0x38], r9
lea rax, [rbp + 0x28]
mov qword [rbp - 8], rax
mov ecx, 2
call sub.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func
mov r9, rax
mov r8d, 0x1b
mov edx, 1
lea rax, str.Mingw_w64_runtime_failure:_n
mov rcx, rax
call sub.api_ms_win_crt_stdio_l1_1_0.dll_fwrite
mov rbx, qword [rbp - 8]
mov ecx, 2
call sub.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func
mov rcx, rax
mov rax, qword [rbp + 0x20]
mov r8, rbx
mov rdx, rax
call fcn.2fc4d6b10
call sub.api_ms_win_crt_runtime_l1_1_0.dll_abort
nop

Function at 0x2fc4d6432
Capabilities:
Get thread local storage value

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x30
mov eax, dword [0x2fc4f8108]
test eax, eax
je 0x2fc4d64ca
lea rax, [0x2fc4f80e0]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
call rax
mov rax, qword [0x2fc4f8110]
mov qword [rbp - 8], rax
jmp 0x2fc4d64ae
mov rax, qword [rbp - 8]
mov eax, dword [rax]
mov ecx, eax
mov rax, qword [sym.imp.KERNEL32.dll_TlsGetValue]
call rax
mov qword [rbp - 0x10], rax
mov rax, qword [sym.imp.KERNEL32.dll_GetLastError]
call rax
test eax, eax
jne 0x2fc4d64a2
cmp qword [rbp - 0x10], 0
je 0x2fc4d64a2
mov rax, qword [rbp - 8]
mov rdx, qword [rax + 8]
mov rax, qword [rbp - 0x10]
mov rcx, rax
call rdx
mov rax, qword [rbp - 8]
mov rax, qword [rax + 0x10]
mov qword [rbp - 8], rax
cmp qword [rbp - 8], 0
jne 0x2fc4d6468
lea rax, [0x2fc4f80e0]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
call rax
jmp 0x2fc4d64cb
nop
add rsp, 0x30
pop rbp
ret

Function at 0x2fc4d65d0
Capabilities:
Parse pe header

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x20
mov qword [rbp + 0x10], rcx
mov rax, qword [rbp + 0x10]
mov qword [rbp - 8], rax
mov rax, qword [rbp - 8]
movzx eax, word [rax]
cmp ax, 0x5a4d
je 0x2fc4d65f8
mov eax, 0
jmp 0x2fc4d6646
mov rax, qword [rbp - 8]
mov eax, dword [rax + 0x3c]
movsxd rdx, eax
mov rax, qword [rbp - 8]
add rax, rdx
mov qword [rbp - 0x10], rax
mov rax, qword [rbp - 0x10]
mov eax, dword [rax]
cmp eax, 0x4550
je 0x2fc4d6621
mov eax, 0
jmp 0x2fc4d6646
mov rax, qword [rbp - 0x10]
add rax, 0x18
mov qword [rbp - 0x18], rax
mov rax, qword [rbp - 0x18]
movzx eax, word [rax]
cmp ax, 0x20b
je 0x2fc4d6641
mov eax, 0
jmp 0x2fc4d6646
mov eax, 1
add rsp, 0x20
pop rbp
ret
Function at 0x2fc4d664c
Capabilities:
Enumerate pe sections

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x20
mov qword [rbp + 0x10], rcx
mov qword [rbp + 0x18], rdx
mov rax, qword [rbp + 0x10]
mov eax, dword [rax + 0x3c]
movsxd rdx, eax
mov rax, qword [rbp + 0x10]
add rax, rdx
mov qword [rbp - 0x18], rax
mov dword [rbp - 0xc], 0
mov rax, qword [rbp - 0x18]
movzx eax, word [rax + 0x14]
movzx edx, ax
mov rax, qword [rbp - 0x18]
add rax, rdx
add rax, 0x18
mov qword [rbp - 8], rax
jmp 0x2fc4d66ca
mov rax, qword [rbp - 8]
mov eax, dword [rax + 0xc]
mov eax, eax
cmp qword [rbp + 0x18], rax
jb 0x2fc4d66c1
mov rax, qword [rbp - 8]
mov edx, dword [rax + 0xc]
mov rax, qword [rbp - 8]
mov eax, dword [rax + 8]
add eax, edx
mov eax, eax
cmp qword [rbp + 0x18], rax
jae 0x2fc4d66c1
mov rax, qword [rbp - 8]
jmp 0x2fc4d66df
add dword [rbp - 0xc], 1
add qword [rbp - 8], 0x28
mov rax, qword [rbp - 0x18]
movzx eax, word [rax + 6]
movzx eax, ax
cmp dword [rbp - 0xc], eax
jb 0x2fc4d6694
mov eax, 0
add rsp, 0x20
pop rbp
ret