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

Disassembly:
push rbx
sub rsp, 0x20
movsxd rbx, ecx
mov ecx, 2
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
mov rcx, rax
lea rdx, str.____error____
call fcn.14000148d
mov rax, rbx
mov ecx, 2
lea rbx, str.improper_command_line_ntex4ht___f_path_separator_ch__in_file_.dvi__n_____._ext______________replacement_to_default_file_extension_name_.dvi_n_____c_tag_name_________choose_named_segment_in_env_file_n_____e_env_file___n_____f_path_separator_ch__________remove_path_from_the_file_name_n_____F_ch_code__________replacement_for_missing_font_characters__0__255__default_0_n_____g_bitmap_file_ext___n_____h_efFgsvVA_________trace:_e_errors_warnings__f_htf__F_htf_search_n___________________________g_groups__s_specials__v_env__V_env_search__A_all_n_____i_htf_font_dir___n_____l_bookkeeping_file___n_____P__filter________permission_for_system_calls:__always__filter_n_____S_image_script___n_____s_css_file_ext_____default:__s4cs__multiple_entries_allowed_n_____t_tfm_font_dir___n_____u10________________base_10_for_unicode_characters_n_____utf8_______________utf_8_encoding_for_unicode_characters_n_____v_idv_version______replacement_for_the_given_dvi_version_n_____xs____________ms_dos_file_names_for_automatically_generated_gifs_n
mov rbx, qword [rbx + rax*8]
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
mov r8, rbx
lea rdx, [0x140024b20]
mov rcx, rax
call fcn.14000148d
call fcn.14001b5a0
mov ecx, 1
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_exit]
int3

Function at 0x140014d40
Capabilities:
Terminate process

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
movsxd rbx, ecx
mov edi, edx
mov ecx, 2
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
mov rcx, rax
lea rdx, str.____error____
call fcn.14000148d
mov rax, rbx
mov ecx, 2
lea rbx, str.improper_command_line_ntex4ht___f_path_separator_ch__in_file_.dvi__n_____._ext______________replacement_to_default_file_extension_name_.dvi_n_____c_tag_name_________choose_named_segment_in_env_file_n_____e_env_file___n_____f_path_separator_ch__________remove_path_from_the_file_name_n_____F_ch_code__________replacement_for_missing_font_characters__0__255__default_0_n_____g_bitmap_file_ext___n_____h_efFgsvVA_________trace:_e_errors_warnings__f_htf__F_htf_search_n___________________________g_groups__s_specials__v_env__V_env_search__A_all_n_____i_htf_font_dir___n_____l_bookkeeping_file___n_____P__filter________permission_for_system_calls:__always__filter_n_____S_image_script___n_____s_css_file_ext_____default:__s4cs__multiple_entries_allowed_n_____t_tfm_font_dir___n_____u10________________base_10_for_unicode_characters_n_____utf8_______________utf_8_encoding_for_unicode_characters_n_____v_idv_version______replacement_for_the_given_dvi_version_n_____xs____________ms_dos_file_names_for_automatically_generated_gifs_n
mov rbx, qword [rbx + rax*8]
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.14000148d
call fcn.14001b5a0
mov ecx, 1
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_exit]
int3
Function at 0x140014dc0
Capabilities:
Terminate process

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
movsxd rbx, ecx
mov rdi, rdx
mov ecx, 2
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
mov rcx, rax
lea rdx, str.____error____
call fcn.14000148d
mov rax, rbx
mov ecx, 2
lea rbx, str.improper_command_line_ntex4ht___f_path_separator_ch__in_file_.dvi__n_____._ext______________replacement_to_default_file_extension_name_.dvi_n_____c_tag_name_________choose_named_segment_in_env_file_n_____e_env_file___n_____f_path_separator_ch__________remove_path_from_the_file_name_n_____F_ch_code__________replacement_for_missing_font_characters__0__255__default_0_n_____g_bitmap_file_ext___n_____h_efFgsvVA_________trace:_e_errors_warnings__f_htf__F_htf_search_n___________________________g_groups__s_specials__v_env__V_env_search__A_all_n_____i_htf_font_dir___n_____l_bookkeeping_file___n_____P__filter________permission_for_system_calls:__always__filter_n_____S_image_script___n_____s_css_file_ext_____default:__s4cs__multiple_entries_allowed_n_____t_tfm_font_dir___n_____u10________________base_10_for_unicode_characters_n_____utf8_______________utf_8_encoding_for_unicode_characters_n_____v_idv_version______replacement_for_the_given_dvi_version_n_____xs____________ms_dos_file_names_for_automatically_generated_gifs_n
mov rbx, qword [rbx + rax*8]
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.14000148d
call fcn.14001b5a0
mov ecx, 1
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_exit]
int3

Function at 0x14001d8cc
Capabilities:
Parse pe header

Disassembly:
jmp 0x14001d8cc
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x14001d916
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x14001d916
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x14001d916
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x14001d916
cmp dword [rcx + 0x84], 0xe
jbe 0x14001d916
cmp dword [rcx + 0xf8], 0
setne al
jmp 0x14001d918
xor al, al
add rsp, 0x28
ret
Function at 0x140002e80
Capabilities:
Write file on windows

Disassembly:
push rsi
push rbx
sub rsp, 0x38
mov rbx, rcx
lea rax, [rsp + 0x58]
mov ecx, 2
mov qword [rsp + 0x58], rdx
mov qword [rsp + 0x60], r8
mov qword [rsp + 0x68], r9
mov qword [rsp + 0x28], rax
call fcn.140004920
mov r8d, 0x1b
mov edx, 1
lea rcx, str.Mingw_w64_runtime_failure:_n
mov r9, rax
call sub.msvcrt.dll_fwrite
mov rsi, qword [rsp + 0x28]
mov ecx, 2
call fcn.140004920
mov rdx, rbx
mov rcx, rax
mov r8, rsi
call sub.msvcrt.dll_vfprintf
call sub.msvcrt.dll_abort
nop
nop dword [rax]

Function at 0x140002ef0
Capabilities:
Allocate or change rwx memory

Disassembly:
push rdi
push rsi
push rbx
sub rsp, 0x50
movsxd rsi, dword [0x14000a0a4]
mov rbx, rcx
test esi, esi
jle 0x140003020
mov rax, qword [0x14000a0a8]
xor r9d, r9d
add rax, 0x18
nop word [rax + rax]
mov r8, qword [rax]
cmp rbx, r8
jb 0x140002f3b
mov rdx, qword [rax + 8]
mov edx, dword [rdx + 8]
add r8, rdx
cmp rbx, r8
jb 0x140002fc5
add r9d, 1
add rax, 0x28
cmp r9d, esi
jne 0x140002f20
mov rcx, rbx
call fcn.140003940
mov rdi, rax
test rax, rax
je 0x140003042
mov rax, qword [0x14000a0a8]
lea rbx, [rsi + rsi*4]
shl rbx, 3
add rax, rbx
mov qword [rax + 0x20], rdi
mov dword [rax], 0
call fcn.140003a80
mov edx, dword [rdi + 0xc]
mov r8d, 0x30
lea rcx, [rax + rdx]
mov rax, qword [0x14000a0a8]
lea rdx, [rsp + 0x20]
mov qword [rax + rbx + 0x18], rcx
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x140003027
mov eax, dword [rsp + 0x44]
lea edx, [rax - 0x40]
and edx, 0xffffffbf
je 0x140002fbe
lea edx, [rax - 4]
and edx, 0xfffffffb
jne 0x140002fd0
add dword [0x14000a0a4], 1
add rsp, 0x50
pop rbx
pop rsi
pop rdi
ret
cmp eax, 2
mov rcx, qword [rsp + 0x20]
mov rdx, qword [rsp + 0x38]
mov r8d, 0x40
mov eax, 4
cmove r8d, eax
add rbx, qword [0x14000a0a8]
mov qword [rbx + 8], rcx
mov r9, rbx
mov qword [rbx + 0x10], rdx
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x140002fbe
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.__VirtualProtect_failed_with_code_0x_x
mov edx, eax
call fcn.140002e80
nop dword [rax]
xor esi, esi
jmp 0x140002f48
mov rax, qword [0x14000a0a8]
mov edx, dword [rdi + 8]
lea rcx, str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov r8, qword [rax + rbx + 0x18]
call fcn.140002e80
mov rdx, rbx
lea rcx, str.Address__p_has_no_image_section
call fcn.140002e80
nop
nop word cs:[rax + rax]
nop dword [rax]

Function at 0x1400035b0
Capabilities:
Get thread local storage value

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x20
lea r12, [0x14000a100]
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rbx, qword [0x14000a0e0]
test rbx, rbx
je 0x14000360c
mov rbp, qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rdi, qword [sym.imp.KERNEL32.dll_GetLastError]
nop dword [rax]
mov ecx, dword [rbx]
call rbp
mov rsi, rax
call rdi
test eax, eax
jne 0x140003603
test rsi, rsi
je 0x140003603
mov rax, qword [rbx + 8]
mov rcx, rsi
call rax
mov rbx, qword [rbx + 0x10]
test rbx, rbx
jne 0x1400035e8
mov rcx, r12
add rsp, 0x20
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
jmp qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
Function at 0x140003940
Capabilities:
Enumerate pe sections
Parse pe header

Disassembly:
mov rdx, qword [0x140006ae0]
xor eax, eax
cmp word [rdx], 0x5a4d
jne 0x140003960
movsxd r8, dword [rdx + 0x3c]
add r8, rdx
cmp dword [r8], 0x4550
je 0x140003968
ret
cmp word [r8 + 0x18], 0x20b
jne 0x140003960
movzx eax, word [r8 + 0x14]
sub rcx, rdx
lea rax, [r8 + rax + 0x18]
movzx r8d, word [r8 + 6]
test r8w, r8w
je 0x1400039bd
lea edx, [r8 - 1]
lea rdx, [rdx + rdx*4]
lea r9, [rax + rdx*8 + 0x28]
nop word cs:[rax + rax]
mov r8d, dword [rax + 0xc]
mov rdx, r8
cmp rcx, r8
jb 0x1400039b4
add edx, dword [rax + 8]
cmp rcx, rdx
jb 0x140003960
add rax, 0x28
cmp rax, r9
jne 0x1400039a0
xor eax, eax
ret

Function at 0x1400039c0
Capabilities:
Parse pe header

Disassembly:
mov rax, qword [0x140006ae0]
xor ecx, ecx
cmp word [rax], 0x5a4d
jne 0x1400039df
movsxd rdx, dword [rax + 0x3c]
add rax, rdx
cmp dword [rax], 0x4550
je 0x1400039e8
mov eax, ecx
ret
cmp word [rax + 0x18], 0x20b
jne 0x1400039df
movzx ecx, word [rax + 6]
mov eax, ecx
ret

Function at 0x140003a80
Capabilities:
Parse pe header

Disassembly:
mov rax, qword [0x140006ae0]
xor edx, edx
cmp word [rax], 0x5a4d
jne 0x140003a9f
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
je 0x140003aa8
mov rax, rdx
ret
cmp word [rcx + 0x18], 0x20b
cmove rdx, rax
mov rax, rdx
ret
Function at 0x140059740
Capabilities:
Hash data with crc32

Disassembly:
mov rax, qword [rcx + 0x208]
mov r10, r8
movsxd r9, dword [rcx + 0x200]
mov r11, rdx
mov rcx, r11
mov r8d, dword [rax + r9*4 - 4]
mov eax, r10d
sub eax, edx
xor edx, edx
test r10, r10
cmovne edx, eax
jmp fcn.14005a0a0

Function at 0x14005a0a0
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
push rdi
cmp dword [0x14059d8e4], 0
lea rdi, [0x14059d8e0]
mov r11d, r8d
mov r9d, edx
mov r10, rcx
jne 0x14005a178
mov qword [rsp + 0x10], rbx
xor edx, edx
mov rbx, rdi
nop dword [rax]
mov r8d, edx
lea rbx, [rbx + 4]
and r8d, 1
mov eax, edx
shr eax, 1
neg r8d
and r8d, 0xedb88320
inc edx
xor r8d, eax
mov eax, r8d
shr r8d, 1
and eax, 1
neg eax
and eax, 0xedb88320
xor eax, r8d
mov ecx, eax
shr eax, 1
and ecx, 1
neg ecx
and ecx, 0xedb88320
xor ecx, eax
mov eax, ecx
shr ecx, 1
and eax, 1
neg eax
and eax, 0xedb88320
xor eax, ecx
mov ecx, eax
shr eax, 1
and ecx, 1
neg ecx
and ecx, 0xedb88320
xor ecx, eax
mov eax, ecx
shr ecx, 1
and eax, 1
neg eax
and eax, 0xedb88320
xor eax, ecx
mov ecx, eax
shr eax, 1
and ecx, 1
neg ecx
and ecx, 0xedb88320
xor ecx, eax
mov eax, ecx
shr ecx, 1
and eax, 1
neg eax
and eax, 0xedb88320
xor eax, ecx
mov dword [rbx - 4], eax
cmp edx, 0x100
jb 0x14005a0d0
mov rbx, qword [rsp + 0x10]
not r11d
mov eax, r11d
test r9d, r9d
jle 0x14005a1ae
nop dword [rax]
nop word [rax + rax]
movzx ecx, byte [r10]
lea r10, [r10 + 1]
movzx edx, al
xor rdx, rcx
shr eax, 8
xor eax, dword [rdi + rdx*4]
sub r9d, 1
jne 0x14005a190
not eax
pop rdi
ret
movzx r9d, byte [r10]
lea r8, [r10 + 1]
test r9b, r9b
je 0x14005a1ef
nop dword [rax + rax]
cmp r9b, 0x23
jne 0x14005a1d3
cmp byte [r8], r9b
jne 0x14005a1d3
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 [rdi + rdx*4]
test r9b, r9b
jne 0x14005a1c0
not eax
pop rdi
ret
Function at 0x1400617d0
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 0x20], rbx
push rbp
sub rsp, 0x20
mov rax, qword [0x14059d8b0]
xor ebx, ebx
mov rbp, rcx
mov dword [rax + 0x2d3c], ebx
test rcx, rcx
je 0x1400618e6
mov qword [rsp + 0x30], rsi
mov rsi, qword [0x14059d8b0]
mov qword [rsp + 0x38], rdi
lea rdi, [rsi + 0x2d40]
mov dword [rsi + 0x2d3c], ebx
mov r8d, dword [rdi + 4]
test r8d, r8d
jns 0x140061836
mov eax, r8d
mov rcx, rdi
cdq
sub eax, edx
mov edx, ebx
sar eax, 1
add eax, r8d
test eax, eax
cmovg edx, eax
call fcn.140064440
mov dword [rdi], ebx
mov eax, ebx
cmp dword [rdi + 4], ebx
jne 0x14006184e
mov edx, 8
mov rcx, rdi
call fcn.140064440
mov eax, dword [rdi]
movsxd rcx, eax
mov rax, qword [rdi + 8]
mov byte [rcx + rax], bl
inc dword [rdi]
mov eax, dword [rdi]
cmp dword [rsi + 0x2d50], ebx
jle 0x14006189c
mov qword [rsp + 0x40], r14
mov r14, rbx
nop dword [rax]
mov r9, qword [rsi + 0x2d58]
mov r8, rdi
add r9, r14
mov rcx, rsi
mov rdx, r9
call qword [r9 + 0x20]
inc ebx
add r14, 0x30
cmp ebx, dword [rsi + 0x2d50]
jl 0x140061870
mov eax, dword [rdi]
mov r14, qword [rsp + 0x40]
mov rsi, qword [rsi + 0x2d48]
lea rdx, [0x14014add4]
dec eax
mov rcx, rbp
movsxd rdi, eax
call fcn.140059e30
mov rbx, rax
test rax, rax
je 0x1400618dc
mov r9, rax
mov r8, rdi
mov edx, 1
mov rcx, rsi
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
mov rcx, rbx
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
mov rsi, qword [rsp + 0x30]
mov rdi, qword [rsp + 0x38]
mov rbx, qword [rsp + 0x48]
add rsp, 0x20
pop rbp
ret
Function at 0x140067190
Capabilities:
Resolve function by parsing pe exports

Disassembly:
test r9d, 0xff000000
je 0x140067347
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x40
movss xmm3, dword [rsp + 0x70]
xorps xmm0, xmm0
comiss xmm3, xmm0
mov esi, r9d
mov rdi, r8
mov rbp, rdx
mov rbx, rcx
jbe 0x140067226
mov eax, dword [rsp + 0x78]
mov dword [rsp + 0x20], eax
call fcn.140069ee0
mov r8d, dword [rbx + 0x80]
mov r9d, esi
mov rdx, qword [rbx + 0x88]
mov rcx, rbx
call fcn.140064ca0
mov ecx, dword [rbx + 0x84]
test ecx, ecx
jns 0x140067217
mov eax, ecx
cdq
sub eax, edx
xor edx, edx
sar eax, 1
add eax, ecx
lea rcx, [rbx + 0x80]
test eax, eax
cmovg edx, eax
call fcn.140064580
mov dword [rbx + 0x80], 0
jmp 0x140067333
mov edx, 6
movaps xmmword [rsp + 0x30], xmm6
lea r8d, [rdx - 2]
call fcn.14006a3c0
movzx edx, word [rbx + 0x48]
mov rax, qword [rbx + 0x38]
movss xmm1, dword [rdi]
movss xmm2, dword [rbp + 4]
movss xmm3, dword [rbp]
lea ecx, [rdx + 1]
movss xmm6, dword [rax + 4]
movss xmm5, dword [rax]
movss xmm4, dword [rdi + 4]
mov rax, qword [rbx + 0x58]
mov word [rax], dx
mov rax, qword [rbx + 0x58]
mov word [rax + 2], cx
lea ecx, [rdx + 2]
mov rax, qword [rbx + 0x58]
mov word [rax + 4], cx
mov rax, qword [rbx + 0x58]
mov word [rax + 6], dx
add dx, 3
mov rax, qword [rbx + 0x58]
mov word [rax + 8], cx
mov rax, qword [rbx + 0x58]
mov word [rax + 0xa], dx
movsd xmm0, qword [rbp]
mov rax, qword [rbx + 0x50]
movsd qword [rax], xmm0
mov rax, qword [rbx + 0x50]
movss dword [rax + 8], xmm5
movss dword [rax + 0xc], xmm6
mov rax, qword [rbx + 0x50]
mov dword [rax + 0x10], esi
mov rax, qword [rbx + 0x50]
movss dword [rax + 0x14], xmm1
movss dword [rax + 0x18], xmm2
mov rax, qword [rbx + 0x50]
movss dword [rax + 0x1c], xmm5
movss dword [rax + 0x20], xmm6
mov rax, qword [rbx + 0x50]
mov dword [rax + 0x24], esi
movsd xmm0, qword [rdi]
mov rax, qword [rbx + 0x50]
movsd qword [rax + 0x28], xmm0
mov rax, qword [rbx + 0x50]
movss dword [rax + 0x30], xmm5
movss dword [rax + 0x34], xmm6
mov rax, qword [rbx + 0x50]
mov dword [rax + 0x38], esi
mov rax, qword [rbx + 0x50]
movss dword [rax + 0x3c], xmm3
movss dword [rax + 0x40], xmm4
mov rax, qword [rbx + 0x50]
movss dword [rax + 0x44], xmm5
movss dword [rax + 0x48], xmm6
mov rax, qword [rbx + 0x50]
movaps xmm6, xmmword [rsp + 0x30]
mov dword [rax + 0x4c], esi
add qword [rbx + 0x50], 0x50
add dword [rbx + 0x48], 4
add qword [rbx + 0x58], 0xc
mov rbx, qword [rsp + 0x50]
mov rbp, qword [rsp + 0x58]
mov rsi, qword [rsp + 0x60]
add rsp, 0x40
pop rdi
ret
Function at 0x140073730
Capabilities:
Log keystrokes via polling

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x50
mov rax, qword [0x14059d5d8]
xor rax, rsp
mov qword [rsp + 0x48], rax
call fcn.140059770
mov rcx, qword [0x14059dd38]
lea rdx, [rsp + 0x28]
mov rdi, rax
call qword [sym.imp.USER32.dll_GetClientRect]
mov ecx, dword [rsp + 0x30]
sub ecx, dword [rsp + 0x28]
movd xmm1, ecx
mov ecx, dword [rsp + 0x34]
sub ecx, dword [rsp + 0x2c]
cvtdq2ps xmm1, xmm1
movd xmm0, ecx
lea rcx, [rsp + 0x40]
cvtdq2ps xmm0, xmm0
movss dword [rdi + 8], xmm1
movss dword [rdi + 0xc], xmm0
call qword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
mov rax, qword [rsp + 0x40]
xorps xmm1, xmm1
sub rax, qword [0x14059dd40]
xorps xmm0, xmm0
cvtsi2ss xmm0, qword [0x14059dd48]
mov ecx, 0x11
cvtsi2ss xmm1, rax
divss xmm1, xmm0
movss dword [rdi + 0x10], xmm1
mov rax, qword [rsp + 0x40]
mov qword [0x14059dd40], rax
call qword [sym.imp.USER32.dll_GetKeyState]
shr eax, 0xf
mov ecx, 0x10
and al, 1
mov byte [rdi + 0x118], al
call qword [sym.imp.USER32.dll_GetKeyState]
shr eax, 0xf
mov ecx, 0x12
and al, 1
mov byte [rdi + 0x119], al
call qword [sym.imp.USER32.dll_GetKeyState]
shr eax, 0xf
and al, 1
mov byte [rdi + 0x11b], 0
mov byte [rdi + 0x11a], al
call fcn.140059770
mov rbx, rax
cmp byte [rax + 0x397], 0
je 0x14007385d
cvttss2si ecx, dword [rax + 0x100]
lea rdx, [rsp + 0x38]
mov dword [rsp + 0x38], ecx
cvttss2si ecx, dword [rax + 0x104]
mov dword [rsp + 0x3c], ecx
mov rcx, qword [0x14059dd38]
call qword [sym.imp.USER32.dll_ClientToScreen]
mov edx, dword [rsp + 0x3c]
mov ecx, dword [rsp + 0x38]
call qword [sym.imp.USER32.dll_SetCursorPos]
mov dword [rbx + 0x100], 0xff7fffff
mov dword [rbx + 0x104], 0xff7fffff
call qword [sym.imp.USER32.dll_GetActiveWindow]
cmp rax, qword [0x14059dd38]
jne 0x1400738c7
lea rcx, [rsp + 0x20]
call qword [sym.imp.USER32.dll_GetCursorPos]
test eax, eax
je 0x1400738c7
mov rcx, qword [0x14059dd38]
lea rdx, [rsp + 0x20]
call qword [sym.imp.USER32.dll_ScreenToClient]
test eax, eax
je 0x1400738c7
movd xmm0, dword [rsp + 0x20]
movd xmm1, dword [rsp + 0x24]
cvtdq2ps xmm0, xmm0
cvtdq2ps xmm1, xmm1
movss dword [rbx + 0x100], xmm0
movss dword [rbx + 0x104], xmm1
cmp byte [rdi + 0xc8], 0
je 0x1400738d7
mov eax, 0xffffffff
jmp 0x1400738dc
call fcn.140059780
cmp dword [0x1401a5148], eax
je 0x1400738ef
mov dword [0x1401a5148], eax
call fcn.140073920
mov rcx, qword [rsp + 0x48]
xor rcx, rsp
call fcn.140146150
mov rbx, qword [rsp + 0x60]
add rsp, 0x50
pop rdi
ret
Function at 0x1400848d0
Capabilities:
Write file on windows

Disassembly:
push rbx
sub rsp, 0x60
mov rax, qword [0x14059d5d8]
xor rax, rsp
mov qword [rsp + 0x58], rax
cmp qword [rcx + 0x68], 0
mov rbx, rcx
je 0x1400849a3
cmp byte [rcx + 0x71], 0
je 0x1400849a3
mov rax, qword [rcx]
mov edx, 0xffffffff
mov qword [rsp + 0x78], rdi
call qword [rax + 0x18]
cmp eax, 0xffffffff
je 0x14008499f
mov rcx, qword [rbx + 0x68]
lea rax, [rsp + 0x30]
lea rdx, [rbx + 0x74]
mov qword [rsp + 0x20], rax
lea r9, [rsp + 0x58]
lea r8, [rsp + 0x38]
call qword [sym.imp.MSVCP140.dll_public:_int___cdecl_std::codecvt_char__char__struct__Mbstatet_::unshift_struct__Mbstatet____ptr64__char____ptr64__char____ptr64__char____ptr64____ptr64_const___ptr64]
test eax, eax
je 0x140084964
sub eax, 1
je 0x140084968
cmp eax, 2
jne 0x14008499f
mov byte [rbx + 0x71], 0
mov al, 1
mov rdi, qword [rsp + 0x78]
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.140146150
add rsp, 0x60
pop rbx
ret
mov byte [rbx + 0x71], 0
mov rdi, qword [rsp + 0x30]
lea rax, [rsp + 0x38]
sub rdi, rax
je 0x140084996
mov r9, qword [rbx + 0x80]
lea rcx, [rsp + 0x38]
mov r8, rdi
mov edx, 1
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
cmp rdi, rax
jne 0x14008499f
cmp byte [rbx + 0x71], 0
sete al
jmp 0x14008494c
xor al, al
jmp 0x14008494c
mov al, 1
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.140146150
add rsp, 0x60
pop rbx
ret
Function at 0x140084f00
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 0x20], rbx
push rdi
sub rsp, 0x80
mov rax, qword [0x14059d5d8]
xor rax, rsp
mov qword [rsp + 0x78], rax
mov edi, edx
mov rbx, rcx
cmp edx, 0xffffffff
jne 0x140084f2d
xor eax, eax
jmp 0x140085082
mov rdx, qword [rcx + 0x40]
mov rax, qword [rdx]
test rax, rax
je 0x140084f58
mov rdx, qword [rcx + 0x58]
movsxd r8, dword [rdx]
add r8, rax
cmp rax, r8
jae 0x140084f58
call qword [sym.imp.MSVCP140.dll_protected:_char____ptr64___cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::_Pninc_void____ptr64]
mov byte [rax], dil
mov eax, edi
jmp 0x140085082
cmp qword [rcx + 0x80], 0
mov qword [rsp + 0xa0], rsi
je 0x140085075
mov r8, qword [rcx + 0x18]
lea rax, [rcx + 0x70]
cmp qword [r8], rax
jne 0x140084f9b
mov rdx, qword [rcx + 0x90]
mov rcx, qword [rcx + 0x88]
mov qword [r8], rcx
sub edx, ecx
mov rax, qword [rbx + 0x38]
mov qword [rax], rcx
mov rax, qword [rbx + 0x50]
mov dword [rax], edx
mov rcx, qword [rbx + 0x68]
test rcx, rcx
jne 0x140084fc6
mov rdx, qword [rbx + 0x80]
movsx ecx, dil
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fputc]
mov ecx, 0xffffffff
cmp eax, ecx
cmovne ecx, edi
mov eax, ecx
jmp 0x14008507a
lea rax, [rsp + 0x40]
mov byte [rsp + 0x50], dil
mov qword [rsp + 0x38], rax
lea rdx, [rbx + 0x74]
lea rax, [rsp + 0x78]
mov qword [rsp + 0x30], rax
lea r9, [rsp + 0x51]
lea rax, [rsp + 0x58]
mov qword [rsp + 0x28], rax
lea r8, [rsp + 0x50]
lea rax, [rsp + 0x48]
mov qword [rsp + 0x20], rax
call qword [sym.imp.MSVCP140.dll_public:_int___cdecl_std::codecvt_char__char__struct__Mbstatet_::out_struct__Mbstatet____ptr64__char_const____ptr64__char_const____ptr64__char_const____ptr64____ptr64__char____ptr64__char____ptr64__char____ptr64____ptr64_const___ptr64]
test eax, eax
je 0x140085035
sub eax, 1
je 0x140085035
cmp eax, 2
jne 0x140085075
movsx ecx, byte [rsp + 0x50]
mov rdx, qword [rbx + 0x80]
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fputc]
mov ecx, 0xffffffff
cmp eax, ecx
cmovne ecx, edi
mov eax, ecx
jmp 0x14008507a
mov rsi, qword [rsp + 0x40]
lea rax, [rsp + 0x58]
sub rsi, rax
je 0x140085063
mov r9, qword [rbx + 0x80]
lea rcx, [rsp + 0x58]
mov r8, rsi
mov edx, 1
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
cmp rsi, rax
jne 0x140085075
lea rax, [rsp + 0x50]
mov byte [rbx + 0x71], 1
cmp qword [rsp + 0x48], rax
mov eax, edi
jne 0x14008507a
mov eax, 0xffffffff
mov rsi, qword [rsp + 0xa0]
mov rcx, qword [rsp + 0x78]
xor rcx, rsp
call fcn.140146150
mov rbx, qword [rsp + 0xa8]
add rsp, 0x80
pop rdi
ret
Function at 0x140085920
Capabilities:
Read file on windows

Disassembly:
push rbp
push rsi
push r14
sub rsp, 0x30
mov rbp, r8
mov r14, rdx
mov rsi, rcx
test r8, r8
jg 0x140085942
xor eax, eax
add rsp, 0x30
pop r14
pop rsi
pop rbp
ret
cmp qword [rcx + 0x68], 0
je case.default.0x140085951
add rsp, 0x30
pop r14
pop rsi
pop rbp
jmp qword [sym.imp.MSVCP140.dll_protected_virtual:_long_long___int64____cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::xsgetn_char____ptr64__long_long___int64_____ptr64]
mov rax, qword [rcx + 0x38]
mov qword [rsp + 0x28], rbx
mov rbx, rbp
mov rdx, qword [rax]
test rdx, rdx
je 0x140085974
mov rax, qword [rcx + 0x50]
mov ecx, dword [rax]
jmp 0x140085976
xor ecx, ecx
mov qword [rsp + 0x20], rdi
movsxd rax, ecx
test ecx, ecx
je 0x1400859b0
cmp rax, rbp
mov rdi, rbp
mov rcx, r14
cmovb rdi, rax
mov r8, rdi
call sub.VCRUNTIME140.dll_memcpy
mov rax, qword [rsi + 0x50]
sub rbx, rdi
add r14, rdi
mov r8, rbx
sub dword [rax], edi
mov rcx, qword [rsi + 0x38]
movsxd rax, edi
add qword [rcx], rax
cmp qword [rsi + 0x80], 0
je 0x140085a57
mov r9, qword [rsi + 0x18]
lea rax, [rsi + 0x70]
cmp qword [r9], rax
jne 0x1400859eb
mov rcx, qword [rsi + 0x88]
mov rdx, qword [rsi + 0x90]
mov qword [r9], rcx
sub edx, ecx
mov rax, qword [rsi + 0x38]
mov qword [rax], rcx
mov rax, qword [rsi + 0x50]
mov dword [rax], edx
mov rdi, r8
cmp r8, 0xfff
jbe 0x140085a31
nop word [rax + rax]
mov r9, qword [rsi + 0x80]
mov edx, 1
mov r8d, 0xfff
mov rcx, r14
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
sub rbx, rax
add r14, rax
mov rdi, rbx
cmp rax, 0xfff
jne 0x140085a70
cmp rbx, rax
ja 0x140085a00
mov r8, rdi
test rdi, rdi
je 0x140085a57
mov r9, qword [rsi + 0x80]
mov r8, rbx
mov edx, 1
mov rcx, r14
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
mov r8, rdi
sub r8, rax
sub rbp, r8
mov rdi, qword [rsp + 0x20]
mov rax, rbp
mov rbx, qword [rsp + 0x28]
add rsp, 0x30
pop r14
pop rsi
pop rbp
ret
sub rbp, rbx
jmp 0x140085a5a
out 0x6f, eax
pop r15
nop
push rcx
xor esp, dword [rbx + 0x78e7e7f1]
invalid