joyce8/EMBER2024-capa huggingface dataset:
Function at 0x100646490
Capabilities:
Get socket status

Disassembly:
push rbp
push r14
push r13
push r12
push rdi
push rsi
push rbx
mov rbp, rsp
sub rsp, 0x50
mov esi, edx
mov ebx, r8d
test r8d, r8d
jle 0x1006464b7
lea rdx, str.Waiting_for_up_to__d_msec
call sym.vim.exe_ch_log
movsxd rax, ebx
mov edx, ebx
lea r12, [rbp - 0x18]
mov edi, 1
imul rax, rax, 0x10624dd3
sar edx, 0x1f
lea r14, [rbp - 0x20]
lea r13, [rbp - 0x10]
sar rax, 0x26
sub eax, edx
movsxd rdx, eax
imul eax, eax, 0x3e8
mov qword [rbp - 0x10], rdx
sub ebx, eax
mov eax, esi
imul ebx, ebx, 0x3e8
test esi, esi
movsxd rbx, ebx
mov qword [rbp - 8], rbx
lea ebx, [rsi + 0x3f]
cmovns ebx, esi
sar eax, 0x1f
shr eax, 0x1a
lea ecx, [rsi + rax]
sar ebx, 6
add esi, 1
and ecx, 0x3f
movsxd rbx, ebx
sub ecx, eax
shl rdi, cl
mov rdx, r12
mov ecx, esi
mov qword [rbp + rbx*8 - 0x20], rdi
mov qword [rbp - 0x18], 0
call fcn.100641650
mov qword [rsp + 0x20], r13
xor r9d, r9d
mov r8, r12
mov ecx, eax
mov rdx, r14
call sub.msys_2.0.dll_select
cmp eax, 0xffffffff
je 0x100646580
test eax, eax
jle 0x10064658a
mov rax, rdi
and rax, qword [rbp + rbx*8 - 0x20]
je 0x100646570
xor eax, eax
add rsp, 0x50
pop rbx
pop rsi
pop rdi
pop r12
pop r13
pop r14
pop rbp
ret
call sym.vim.exe_channel_write_any_lines
jmp 0x10064651d
call sub.msys_2.0.dll___errno
cmp dword [rax], 4
je 0x10064651d
mov eax, 1
add rsp, 0x50
pop rbx
pop rsi
pop rdi
pop r12
pop r13
pop r14
pop rbp
ret

Function at 0x100648970
Capabilities:
Terminate process

Disassembly:
push rbp
push rbx
sub rsp, 0x28
lea rbp, [rsp + 0x80]
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 word cs:[rax + rax]
nop
push rbp
push r12
push rdi
push rsi
push rbx
mov rbp, rsp
sub rsp, 0x40
mov qword [rbp - 8], rdx
mov rdi, r8
mov rsi, r9
test rdx, rdx
je 0x100648a28
lea r12, [rbp - 8]
jmp 0x100648a11
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 0x100648a38
mov rax, qword [rbx]
mov qword [rbp - 8], rax
test rax, rax
je 0x100648a28
mov rdx, rsi
mov rcx, r12
call sym.vim.exe_xdl_get_hunk
mov rbx, rax
mov rax, qword [rbp - 8]
test rax, rax
jne 0x1006489d8
xor eax, eax
add rsp, 0x40
pop rbx
pop rsi
pop rdi
pop r12
pop rbp
ret
mov eax, 0xffffffff
add rsp, 0x40
pop rbx
pop rsi
pop rdi
pop r12
pop rbp
ret
Function at 0x10064b7e0
Capabilities:
Hash data using djb2

Disassembly:
push rbp
push r15
push r14
push r13
push r12
push rdi
push rsi
push rbx
sub rsp, 0x48
lea rbp, [rsp + 0x80]
mov r15d, 0x1505
mov rbx, qword [rcx]
mov r12, r8
mov rdi, rcx
mov rsi, rdx
and r12d, 0x1e
jne 0x10064b868
cmp rbx, rdx
jb 0x10064b83a
jmp 0x10064b9ad
mov rcx, r15
add rbx, 1
shl rcx, 5
lea r9, [rcx + r15]
xor rax, r9
mov r15, rax
cmp rsi, rbx
je 0x10064b84c
movsx rax, byte [rbx]
cmp al, 0xa
jne 0x10064b820
cmp rbx, rsi
mov rsi, rbx
adc rsi, 0
mov qword [rdi], rsi
mov rax, r15
add rsp, 0x48
pop rbx
pop rsi
pop rdi
pop r12
pop r13
pop r14
pop r15
pop rbp
ret
mov rax, r8
and eax, 2
mov qword [rbp - 0x50], rax
mov rax, r8
and r8d, 8
and eax, 4
mov qword [rbp - 0x60], r8
mov qword [rbp - 0x58], rax
cmp rbx, rdx
jb 0x10064b8bd
mov r14, rbx
mov qword [rdi], r14
jmp 0x10064b84f
cmp cl, 0xd
je 0x10064b920
mov rax, r15
movsx r9, cl
mov rbx, r13
shl rax, 5
add rax, r15
xor r9, rax
mov r15, r9
cmp rsi, rbx
jbe 0x10064b889
movzx ecx, byte [rbx]
cmp cl, 0xa
je 0x10064b940
lea r13, [rbx + 1]
mov r14, r13
cmp r12, 0x10
je 0x10064b898
call sub.msys_2.0.dll___locale_ctype_ptr
movzx r10d, byte [rbx]
mov rcx, r10
test byte [r10 + rax + 1], 8
je 0x10064b8a1
mov r14, rbx
jmp 0x10064b909
call sub.msys_2.0.dll___locale_ctype_ptr
movzx ecx, byte [r14]
mov r11, rax
test byte [rcx + r11 + 1], 8
je 0x10064b958
cmp cl, 0xa
je 0x10064b958
mov qword [rbp - 0x48], r14
add r14, 1
cmp rsi, r14
ja 0x10064b8f0
jmp 0x10064b88c
cmp rsi, r13
jbe 0x10064b8a1
cmp byte [rbx + 1], 0xa
jne 0x10064b8a1
mov rbx, r14
jmp 0x10064b8bd
cmp rbx, rsi
adc rbx, 0
mov r14, rbx
mov qword [rdi], r14
jmp 0x10064b84f
mov rax, qword [rbp - 0x48]
cmp byte [rax + 1], 0xa
je 0x10064b933
cmp qword [rbp - 0x50], 0
jne 0x10064b933
cmp qword [rbp - 0x58], 0
jne 0x10064b9b5
cmp qword [rbp - 0x60], 0
je 0x10064b933
cmp r14, rbx
jne 0x10064b98c
jmp 0x10064b8b8
add r13, 1
mov rax, r15
movsx r9, byte [rbx]
mov rbx, r13
shl rax, 5
add rax, r15
xor r9, rax
mov r15, r9
cmp r14, r13
jne 0x10064b988
jmp 0x10064b8b8
mov rsi, rbx
jmp 0x10064b84c
mov rax, r15
shl rax, 5
add rax, r15
xor rax, 0x20
mov r15, rax
jmp 0x10064b933

Function at 0x100652bc0
Capabilities:
Terminate process

Disassembly:
push rbp
push r12
sub rsp, 0x28
lea rbp, [rsp + 0x80]
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, 0x28
pop r12
pop rbp
jmp sym.vim.exe_mch_exit
Function at 0x100652c20
Capabilities:
Terminate process
Write file on windows

Disassembly:
push rbp
push r13
push r12
push rbx
sub rsp, 0x28
lea rbp, [rsp + 0x80]
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 0x100652cdd
call sub.msys_2.0.dll___getreent
mov r8d, 3
mov edx, 1
lea rcx, [0x1006d284f]
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, 0x28
pop rbx
pop r12
pop r13
pop rbp
jmp sym.vim.exe_mch_exit

Function at 0x100652d20
Capabilities:
Get file attributes

Disassembly:
push rbp
push r13
push r12
push rbx
sub rsp, 0xa8
lea rbp, [rsp + 0x80]
mov r12, rcx
lea r13, [rbp - 0x60]
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 0x100652d57
cmp dword [rbp - 0x48], ebx
je 0x100652d67
xor eax, eax
add rsp, 0xa8
pop rbx
pop r12
pop r13
pop rbp
ret
mov rdx, r13
mov rcx, r12
call sub.msys_2.0.dll_lstat
test eax, eax
jne 0x100652d57
xor eax, eax
cmp dword [rbp - 0x48], ebx
sete al
jmp 0x100652d59
Function at 0x1006559a0
Capabilities:
Query environment variable

Disassembly:
push rbp
push r13
push r12
push rsi
push rbx
mov rbp, rsp
sub rsp, 0x20
mov r13, rcx
mov ebx, edx
call sub.msys_2.0.dll_getenv
mov r12, rax
xor eax, eax
test r12, r12
je 0x1006559c9
cmp byte [r12], 0
jne 0x1006559d8
add rsp, 0x20
pop rbx
pop rsi
pop r12
pop r13
pop rbp
ret
test ebx, ebx
jne 0x100655a58
mov rdx, r13
xor r8d, r8d
mov ecx, 7
call sym.vim.exe_estack_push
mov r13, qword [0x100714438]
mov rcx, r12
mov eax, 0xfffffffc
mov ebx, dword [0x100714440]
mov rsi, qword [sym.vim.exe_current_sctx]
mov qword [0x100714438], 0
mov qword [sym.vim.exe_current_sctx], rax
mov dword [0x100714440], 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 [0x100714438], r13
mov dword [0x100714440], ebx
add rsp, 0x20
pop rbx
pop rsi
pop r12
pop r13
pop rbp
ret
xor edx, edx
xor ecx, ecx
call sym.vim.exe_vimrc_found
jmp 0x1006559dc

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

Disassembly:
mov rdx, rcx
mov ecx, 2
jmp fcn.100652c20

Function at 0x100655c00
Capabilities:
Get file attributes

Disassembly:
push rbp
push rsi
push rbx
mov rbp, rsp
sub rsp, 0xa0
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 0x100655c3c
mov rcx, qword [rbx]
lea rdx, [rbp - 0x80]
call sub.msys_2.0.dll_lstat
test eax, eax
jns 0x100655c98
or esi, 0x100000
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 0x100655cba
mov rcx, qword [rbx]
test rcx, rcx
je 0x100655c72
call sym.vim.exe_vim_free
mov qword [rbx], 0
mov rcx, qword [rbx + 8]
test rcx, rcx
je 0x100655c88
call sym.vim.exe_vim_free
mov qword [rbx + 8], 0
add rsp, 0xa0
pop rbx
pop rsi
pop rbp
ret
mov dword [rbx + 0x10], 0xffffffff
lea rcx, str.E300:_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 0x100655c5e
mov edx, 1
call sub.msys_2.0.dll_fcntl
test eax, eax
js 0x100655ccc
test al, 1
je 0x100655ce0
mov rcx, qword [rbx]
call sym.vim.exe_mch_hide
nop
add rsp, 0xa0
pop rbx
pop rsi
pop rbp
ret
or eax, 1
mov ecx, dword [rbx + 0x10]
mov edx, 2
mov r8d, eax
call sub.msys_2.0.dll_fcntl
jmp 0x100655ccc
Function at 0x1006562e0
Capabilities:
Get file attributes

Disassembly:
push rbp
push r13
push r12
push rdi
push rbx
mov rbp, rsp
sub rsp, 0xa0
mov r13, rcx
mov ecx, 0x4d0
mov ebx, edx
call sym.vim.exe_alloc
mov r12, rax
test rax, rax
je 0x100656468
test r13, r13
je 0x100656480
mov rcx, rax
mov r8d, ebx
mov rdx, r13
call fcn.100655c00
mov eax, dword [r12 + 0x10]
test eax, eax
js 0x10065651c
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 0x1006564a0
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 0x100656446
shr r9d, 1
sub ecx, 1
jne 0x100656438
mov rax, qword [sym.vim.exe_p_mm]
mov rax, qword [rax]
shl rax, cl
cqo
idiv r9
mov edx, 0xa
cmp eax, 0xa
cmovb eax, edx
mov dword [r12 + 0x3c], eax
mov rax, r12
add rsp, 0xa0
pop rbx
pop rdi
pop r12
pop r13
pop rbp
ret
mov qword [rax], 0
mov qword [rax + 8], 0
mov dword [rax + 0x10], 0xffffffff
jmp 0x100656330
lea rdx, [rbp - 0x80]
call sub.msys_2.0.dll_fstat
test eax, eax
je 0x1006564d0
mov ecx, dword [r12 + 0x10]
test ecx, ecx
js 0x1006564bb
and bh, 0xc
je 0x1006564f0
mov r9d, dword [r12 + 0x4a0]
xor eax, eax
jmp 0x100656404
mov eax, dword [rbp - 0x20]
lea edx, [rax - 0x418]
cmp edx, 0xbf38
ja 0x1006564ad
mov dword [r12 + 0x4a0], eax
jmp 0x1006564ad
xor edx, edx
mov r8d, 2
call sub.msys_2.0.dll_lseek
test rax, rax
jle 0x1006564bb
mov ecx, dword [r12 + 0x4a0]
lea rax, [rcx + rax - 1]
mov r9, rcx
cqo
idiv rcx
jmp 0x100656404
mov rcx, r12
xor r12d, r12d
call sym.vim.exe_vim_free
jmp 0x100656468

Function at 0x10065f400
Capabilities:
Terminate process

Disassembly:
push rbp
push r12
sub rsp, 0x28
lea rbp, [rsp + 0x80]
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
lea rcx, str.E342:_Out_of_memory____allocating__lu_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 0x10065f460
mov ecx, 0x7b
add rsp, 0x28
pop r12
pop rbp
jmp sym.vim.exe_mch_exit
add rsp, 0x28
pop r12
pop rbp
ret

Function at 0x10065f4c1
Capabilities:
Terminate process

Disassembly:
mov rax, qword [sym.vim.exe_did_outofmem_msg]
mov eax, dword [rax]
test eax, eax
je 0x10065f4c1
ret
jmp fcn.10065f400
Function at 0x1006698b5
Capabilities:
Get file attributes

Disassembly:
push rbp
push r15
push r14
push r13
push r12
push rdi
push rsi
push rbx
sub rsp, 0xb8
lea rbp, [rsp + 0x80]
mov ebx, edx
call fcn.100605930
mov r12, rax
test rax, rax
je 0x100609698
lea rdx, [0x1006c96fc]
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 0x1006096ae
mov rcx, r12
call sym.vim.exe_vim_free
test r13, r13
je 0x100609698
mov rcx, r13
call sub.msys_2.0.dll_fileno
lea rdx, [rbp - 0x50]
mov ecx, eax
call sub.msys_2.0.dll_fstat
test eax, eax
js 0x100609690
mov eax, dword [rbp - 0x40]
and eax, 0xf000
cmp eax, 0x4000
je 0x100609690
mov r8d, ebx
xor edx, edx
mov rcx, r13
mov dword [0x100710908], 0
call fcn.100606280
mov rcx, r13
call fcn.10065e4f0
mov eax, 1
jmp 0x10060969a
mov rcx, r13
call fcn.10065e4f0
xor eax, eax
add rsp, 0xb8
pop rbx
pop rsi
pop rdi
pop r12
pop r13
pop r14
pop r15
pop rbp
ret
call sym.vim.exe_verbose_enter
test r13, r13
jne 0x1006698b5
jmp 0x10066992a
lea rdi, [0x1006c90c8]
test bl, 0x10
je 0x10066993b
lea rcx, str._oldfiles
call sub.msys_intl_8.dll_libintl_gettext
mov rsi, rax
test bl, 2
je 0x100669944
lea rcx, str._marks
call sub.msys_intl_8.dll_libintl_gettext
mov r14, rax
test bl, 1
je 0x10066994d
lea rcx, str._info
call sub.msys_intl_8.dll_libintl_gettext
mov r15, rax
lea rcx, str.Reading_viminfo_file___s__s_s_s_s
call sub.msys_intl_8.dll_libintl_gettext
mov qword [rsp + 0x28], rdi
mov r9, r14
mov r8, r15
mov qword [rsp + 0x20], rsi
mov rcx, rax
mov rdx, r12
call sym.vim.exe_smsg
call sym.vim.exe_verbose_leave
nop
jmp 0x100609631
lea rcx, str._FAILED
call sub.msys_intl_8.dll_libintl_gettext
mov rdi, rax
jmp 0x1006698bc
lea rsi, [0x1006c90c8]
jmp 0x1006698d0
lea r14, [0x1006c90c8]
jmp 0x1006698e4
lea r15, [0x1006c90c8]
jmp 0x1006698f8
Function at 0x140005a60
Capabilities:
Encrypt data using salsa20 or chacha

Disassembly:
push rbp
push rsi
push rdi
push rbx
sub rsp, 0xa8
lea rbp, [rsp + 0x80]
mov qword [rbp + 0x20], 0xfffffffffffffffe
mov rbx, r8
mov rsi, rdx
mov rdi, rcx
xorps xmm0, xmm0
movaps xmmword [rbp], xmm0
movaps xmmword [rbp - 0x10], xmm0
lea rdx, [rbp - 0x10]
mov r8d, 0x20
call fcn.14000c7e0
test rax, rax
je 0x140005acc
mov qword [rbp + 0x18], rax
mov rcx, rax
mov qword [rbp + 0x10], rdx
call qword [rdx]
mov rax, qword [rbp + 0x10]
mov rdx, qword [rax + 8]
test rdx, rdx
je 0x140005b1d
mov r8, qword [rax + 0x10]
mov rcx, qword [rbp + 0x18]
call fcn.140009c80
jmp 0x140005b1d
movaps xmm0, xmmword [rbp - 0x10]
movaps xmm1, xmmword [rbp]
movaps xmmword [rbp - 0x50], xmm1
movaps xmmword [rbp - 0x60], xmm0
lea r8, [0x14003b830]
lea rcx, [rbp - 0x40]
lea rdx, [rbp - 0x60]
mov r9d, 8
call fcn.14000c630
mov rax, qword [rbp - 0x40]
mov rcx, qword [rbp - 0x18]
mov qword [rdi + 0x28], rcx
movups xmm0, xmmword [rbp - 0x28]
movups xmmword [rdi + 0x18], xmm0
movups xmm0, xmmword [rbp - 0x38]
movups xmmword [rdi + 8], xmm0
mov rcx, qword [rdi + 0x30]
mov qword [rdi + 0x38], rcx
mov qword [rdi], rax
mov qword [rdi + 0x40], rbx
mov rax, 0xffffffffffffff00
add rax, qword [rdi + 0x30]
mov qword [rdi + 0x38], rax
mov rcx, rdi
mov edx, 6
mov r8, rsi
add rsp, 0xa8
pop rbx
pop rdi
pop rsi
pop rbp
jmp fcn.14000a090
Function at 0x14000c8e0
Capabilities:
Generate random numbers via rtlgenrandom
Generate random numbers via winapi

Disassembly:
push r15
push r14
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x20
test rdx, rdx
je 0x14000c952
mov rsi, rdx
mov rdi, rcx
mov r14d, 0xffffffff
mov r15, qword [sym.imp.bcrypt.dll_BCryptGenRandom]
mov r12, qword [sym.imp.ADVAPI32.dll_SystemFunction036]
jmp 0x14000c918
add rdi, rbx
sub rsi, rbx
je 0x14000c952
cmp rsi, r14
mov ebx, 0xffffffff
cmovb rbx, rsi
xor ecx, ecx
mov rdx, rdi
mov r8d, ebx
mov r9d, 2
call r15
cmp eax, 0xbfffffff
jbe 0x14000c910
mov ebp, eax
mov rcx, rdi
mov edx, ebx
call r12
test al, al
jne 0x14000c910
add ebp, 0x80000000
jmp 0x14000c954
xor ebp, ebp
mov eax, ebp
add rsp, 0x20
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r14
pop r15
ret

Function at 0x14000cd40
Capabilities:
Read file via mapping

Disassembly:
push rbp
push rsi
push rdi
push rbx
sub rsp, 0x98
lea rbp, [rsp + 0x80]
mov qword [rbp + 0x10], 0xfffffffffffffffe
mov rsi, rcx
add r8, rdx
mov qword [rbp - 0x40], r8
mov qword [rbp - 0x38], rdx
mov word [rbp - 0x30], 0
lea rcx, [rbp - 8]
lea rdx, [rbp - 0x40]
call fcn.14000d180
mov rdx, qword [rbp + 8]
cmp rdx, qword [rbp - 8]
jne 0x14000cd93
lea rcx, [rbp - 8]
call fcn.14000d0c0
mov rdx, qword [rbp + 8]
mov rax, qword [rbp]
mov word [rax + rdx*2], 0
inc qword [rbp + 8]
mov rcx, qword [rbp]
mov qword [rsp + 0x30], 0
mov dword [rsp + 0x28], 0x80
mov dword [rsp + 0x20], 3
mov edx, 0x80000000
mov r8d, 1
xor r9d, r9d
call sub.KERNEL32.dll_CreateFileW
mov rbx, rax
mov rdx, qword [rbp - 8]
test rdx, rdx
je 0x14000cdef
mov rcx, qword [rbp]
add rdx, rdx
mov r8d, 2
call fcn.140009c80
cmp rbx, 0xffffffffffffffff
je 0x14000ce8b
mov qword [rsp + 0x28], 0
mov dword [rsp + 0x20], 0
mov rcx, rbx
xor edx, edx
mov r8d, 2
xor r9d, r9d
call sub.KERNEL32.dll_CreateFileMappingW
mov rdi, rax
mov rcx, rbx
call fcn.140037c50
test rdi, rdi
je 0x14000ce8b
mov qword [rsp + 0x20], 0
mov rcx, rdi
mov edx, 4
xor r8d, r8d
xor r9d, r9d
call sub.KERNEL32.dll_MapViewOfFile
test rax, rax
je 0x14000ceb2
mov rbx, rax
xorps xmm0, xmm0
movaps xmmword [rbp - 0x20], xmm0
movaps xmmword [rbp - 0x30], xmm0
movaps xmmword [rbp - 0x40], xmm0
lea rdx, [rbp - 0x40]
mov r8d, 0x30
mov rcx, rax
call sub.KERNEL32.dll_VirtualQuery
mov rax, qword [rbp - 0x28]
mov qword [rsi + 8], rbx
mov qword [rsi + 0x10], rax
mov qword [rsi + 0x18], rdi
mov qword [rsi], 0
jmp 0x14000cea3
call sub.KERNEL32.dll_GetLastError
shl rax, 0x20
or rax, 2
mov qword [rsi + 8], rax
mov qword [rsi], 1
mov rax, rsi
add rsp, 0x98
pop rbx
pop rdi
pop rsi
pop rbp
ret
call sub.KERNEL32.dll_GetLastError
shl rax, 0x20
or rax, 2
mov qword [rbp - 0x10], rax
mov rcx, rdi
call fcn.140037c50
mov rax, qword [rbp - 0x10]
jmp 0x14000ce98
Function at 0x14000cf90
Capabilities:
Parse pe header

Disassembly:
push rsi
push rdi
mov r8d, 1
mov r9d, 0x100
cmp rdx, 0x40
jae 0x14000cfab
xor eax, eax
jmp 0x14000d0a1
test cl, 3
je 0x14000cfbd
xor eax, eax
mov r9d, 0x400
jmp 0x14000d0a1
movzx eax, word [rcx]
cmp eax, 0x5a4d
jne 0x14000d099
mov r10d, dword [rcx + 0x3c]
test r10b, 3
jne 0x14000cfb0
cmp r10d, 0x1000000
jbe 0x14000cfeb
xor eax, eax
mov r9d, 0x700
jmp 0x14000d0a1
lea r11, [r10 + 0x88]
cmp r11, rdx
ja 0x14000cfa4
cmp dword [rcx + r10], 0x4550
jne 0x14000d099
movzx esi, word [rcx + r10 + 0x18]
cmp esi, 0x20b
je 0x14000d01b
cmp esi, 0x10b
jne 0x14000d099
mov edi, dword [rcx + r10 + 0x54]
cmp rdi, rdx
ja 0x14000cfa4
mov eax, dword [rcx + r10 + 0x50]
cmp edi, eax
ja 0x14000cfde
movzx esi, si
cmp esi, 0x20b
jne 0x14000d0aa
mov esi, dword [rcx + r10 + 0x84]
cmp esi, 0x10
mov edi, 0x10
cmovb edi, esi
shl edi, 3
add r11, rdi
cmp r11, rdx
ja 0x14000cfa4
movzx edi, word [rcx + r10 + 6]
cmp rdi, 0x60
ja 0x14000cfde
lea rdi, [rdi + rdi*4]
lea rdi, [r10 + rdi*8]
movzx ecx, word [rcx + r10 + 0x14]
add rcx, rdi
add rcx, 0x18
cmp rcx, rdx
ja 0x14000cfa4
shl rax, 0x20
xor r9d, r9d
xor r8d, r8d
jmp 0x14000d0a1
xor eax, eax
mov r9d, 0x500
or rax, r8
or rax, r9
pop rdi
pop rsi
ret
mov r9d, 0x600
xor eax, eax
jmp 0x14000d0a1

Function at 0x140014a00
Capabilities:
Get system information on windows

Disassembly:
push rsi
sub rsp, 0x50
mov rsi, rcx
xorps xmm0, xmm0
movaps xmmword [rsp + 0x40], xmm0
movaps xmmword [rsp + 0x30], xmm0
movaps xmmword [rsp + 0x20], xmm0
lea rcx, [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov eax, dword [rsp + 0x40]
test rax, rax
je 0x140014a36
mov qword [rsi + 8], rax
xor eax, eax
jmp 0x140014a46
lea rax, str._f_v_
mov qword [rsi + 8], rax
mov eax, 1
mov qword [rsi], rax
mov rax, rsi
add rsp, 0x50
pop rsi
ret
Function at 0x140014a60
Capabilities:
Get common file path

Disassembly:
push rbp
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbx
sub rsp, 0x478
lea rbp, [rsp + 0x80]
mov qword [rbp + 0x3f0], 0xfffffffffffffffe
mov qword [rbp + 0x3e0], rcx
mov qword [rbp + 0x3c8], 0
mov qword [rbp + 0x3d0], 2
mov qword [rbp + 0x3d8], 0
mov r8d, 0x200
mov eax, 2
mov qword [rbp + 0x3e8], rax
xor r12d, r12d
xor r13d, r13d
xor edi, edi
cmp r8, 0x201
jae 0x140014b00
jmp 0x140014aef
jae 0x140014bbe
cmp r8, 0x201
jae 0x140014b00
lea rbx, [rbp - 0x58]
mov r14d, 0x200
mov rsi, r8
jmp 0x140014b57
sub r8, rdi
sub r13, rdi
cmp r13, r8
jae 0x140014b2f
lea rcx, [rbp + 0x3c8]
mov rdx, rdi
call fcn.140038c80
mov r12, qword [rbp + 0x3c8]
mov rax, qword [rbp + 0x3d0]
mov qword [rbp + 0x3e8], rax
mov eax, 0xffffffff
cmp r12, rax
mov edi, 0xffffffff
cmovb rdi, r12
mov qword [rbp + 0x3d8], rdi
mov r13, r12
mov rbx, qword [rbp + 0x3e8]
mov r14, rdi
mov rsi, rdi
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov ecx, esi
mov rdx, rbx
call qword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
mov r15d, eax
test eax, eax
jne 0x140014b7f
call qword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x140014c26
mov r8d, r15d
cmp rsi, r8
jne 0x140014ae0
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x7a
jne 0x140014c49
add rsi, rsi
mov eax, 0xffffffff
cmp rsi, rax
cmovae rsi, rax
mov r8, rsi
cmp r8, 0x201
jb 0x140014aef
jmp 0x140014b00
cmp r14, r8
jb 0x140014c63
lea rcx, [rbp + 0x3a8]
mov rdx, rbx
call fcn.140017700
movups xmm0, xmmword [rbp + 0x3a8]
movups xmm1, xmmword [rbp + 0x3b8]
mov rsi, qword [rbp + 0x3e0]
movups xmmword [rsi + 0x10], xmm1
movups xmmword [rsi], xmm0
test r12, r12
je 0x140014c0f
add r12, r12
mov r8d, 2
mov rcx, qword [rbp + 0x3e8]
mov rdx, r12
call fcn.140009c80
mov rax, rsi
add rsp, 0x478
pop rbx
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
pop rbp
ret
call qword [sym.imp.KERNEL32.dll_GetLastError]
shl rax, 0x20
or rax, 2
mov rsi, qword [rbp + 0x3e0]
mov qword [rsi], rax
mov byte [rsi + 0x18], 2
test r12, r12
jne 0x140014bf7
jmp 0x140014c0f
lea rcx, [0x1400b3fc8]
lea r8, str.library_std_src_syswindowsmod.rs
mov edx, 0x28
call fcn.140039bf0
jmp 0x140014c78
lea rax, str.ug_v_
mov rcx, r8
mov rdx, r14
mov r8, rax
call fcn.140039fe0
ud2