joyce8/EMBER2024-capa huggingface dataset:
Function at 0x18003c000
Capabilities:
Resume thread

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
push r15
sub rsp, 0x30
xor r15d, r15d
mov esi, edx
mov ebx, r15d
xor eax, eax
mov rdi, rcx
mov ebp, 1
lock cmpxchg dword [0x180052e8c], ebp
je 0x18003c057
cmp rbx, 0x20
jae 0x18003c040
xor ecx, ecx
jmp 0x18003c042
mov ecx, ebp
call qword [sym.imp.KERNEL32.dll_Sleep]
inc rbx
xor eax, eax
lock cmpxchg dword [0x180052e8c], ebp
jne 0x18003c036
cmp qword [0x180052ea0], r15
je 0x18003c151
test rdi, rdi
jne 0x18003c077
mov ecx, esi
call fcn.18003bbc0
mov ebp, eax
jmp 0x18003c156
mov ecx, dword [0x18005361c]
mov ebx, r15d
test ecx, ecx
je 0x18003c09f
mov r8, qword [0x180053610]
mov rax, r8
nop
cmp rdi, qword [rax]
je 0x18003c0a9
inc ebx
add rax, 0x38
cmp ebx, ecx
jb 0x18003c090
mov ebp, 4
jmp 0x18003c156
cmp ebx, 0xffffffff
je 0x18003c09f
mov eax, ebx
imul rdx, rax, 0x38
movzx eax, byte [rdx + r8 + 0x20]
shr eax, 1
and eax, ebp
cmp eax, esi
je 0x18003c148
mov r8d, ebp
lea rcx, [rsp + 0x20]
mov edx, ebx
call fcn.18003b900
mov edx, esi
mov ecx, ebx
call fcn.18003bab0
mov ebp, eax
cmp qword [rsp + 0x20], r15
je 0x18003c156
mov eax, dword [rsp + 0x2c]
test eax, eax
je 0x18003c132
mov rbx, qword [rsp + 0x20]
mov esi, eax
nop word [rax + rax]
mov r8d, dword [rbx]
xor edx, edx
lea ecx, [rdx + 0x5a]
call qword [sym.imp.KERNEL32.dll_OpenThread]
mov rdi, rax
test rax, rax
je 0x18003c128
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_ResumeThread]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
add rbx, 4
sub rsi, 1
jne 0x18003c100
mov r8, qword [rsp + 0x20]
xor edx, edx
mov rcx, qword [0x180052ea0]
call qword [sym.imp.KERNEL32.dll_HeapFree]
jmp 0x18003c156
neg esi
sbb ebp, ebp
add ebp, 6
jmp 0x18003c156
mov ebp, 2
xchg dword [0x180052e8c], r15d
mov rbx, qword [rsp + 0x40]
mov eax, ebp
mov rbp, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
mov rdi, qword [rsp + 0x58]
add rsp, 0x30
pop r15
ret
Function at 0x18003f7f0
Capabilities:
Create thread

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x30
mov rbx, rcx
mov esi, 1
test edx, edx
je 0x18003f8a1
cmp edx, esi
jne 0x18003fa2b
call qword [sym.imp.KERNEL32.dll_DisableThreadLibraryCalls]
lea rdi, [0x180053040]
mov r8d, 0x200
mov rdx, rdi
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
mov rax, 0xffffffffffffffff
nop dword [rax]
inc rax
cmp byte [rdi + rax], 0
jne 0x18003f840
test rax, rax
je 0x18003f85b
nop
cmp byte [rax + rdi], 0x5c
je 0x18003f88c
sub rax, rsi
jne 0x18003f850
xor edi, edi
lea r8, [0x18003f3b0]
mov qword [rsp + 0x28], rdi
xor r9d, r9d
xor edx, edx
mov dword [rsp + 0x20], edi
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateThread]
mov eax, esi
mov rbx, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x50]
add rsp, 0x30
pop rdi
ret
inc rax
cmp rax, 0x140
jae 0x18003fa3d
mov byte [rax + rdi], 0
jmp 0x18003f85b
xor edi, edi
mov ebx, edi
xor eax, eax
lock cmpxchg dword [0x180052e8c], esi
je 0x18003f8d2
cmp rbx, 0x20
jae 0x18003f8bb
xor ecx, ecx
jmp 0x18003f8bd
mov ecx, esi
call qword [sym.imp.KERNEL32.dll_Sleep]
inc rbx
xor eax, eax
lock cmpxchg dword [0x180052e8c], esi
jne 0x18003f8b1
cmp qword [0x180052ea0], rdi
je 0x18003fa25
xor ecx, ecx
call fcn.18003bbc0
test eax, eax
jne 0x18003fa25
mov rcx, qword [0x180053620]
mov qword [0x180053620], rdi
test rcx, rcx
je 0x18003f91a
mov rbx, qword [rcx]
xor edx, edx
mov r8d, 0x8000
call qword [sym.imp.KERNEL32.dll_VirtualFree]
mov rcx, rbx
test rbx, rbx
jne 0x18003f901
mov r8, qword [0x180053610]
xor edx, edx
mov rcx, qword [0x180052ea0]
call qword [sym.imp.KERNEL32.dll_HeapFree]
mov rcx, qword [0x180052ea0]
call qword [sym.imp.KERNEL32.dll_HeapDestroy]
mov qword [0x180052ea0], rdi
xor edx, edx
mov qword [0x180053610], rdi
mov qword [0x180053618], rdi
xchg dword [0x180052e8c], edi
mov rax, qword [0x180052fa8]
mov rcx, qword [rax + 0x40]
call fcn.18003c000
test eax, eax
jne 0x18003fa2b
mov rax, qword [0x180052fa8]
xor edx, edx
mov rcx, qword [rax + 0x68]
call fcn.18003c000
test eax, eax
jne 0x18003fa2b
mov rax, qword [0x180053028]
xor edx, edx
mov rcx, qword [rax + 0x60]
call fcn.18003c000
test eax, eax
jne 0x18003fa2b
mov rax, qword [0x180053028]
xor edx, edx
mov rcx, qword [rax + 0xa0]
call fcn.18003c000
test eax, eax
jne 0x18003fa2b
mov rax, qword [0x180053028]
xor edx, edx
mov rcx, qword [rax + 0x68]
call fcn.18003c000
test eax, eax
jne 0x18003fa2b
mov rax, qword [0x180053028]
xor edx, edx
mov rcx, qword [rax + 0x38]
call fcn.18003c000
test eax, eax
jne 0x18003fa2b
mov rax, qword [0x180052fc0]
xor edx, edx
mov rcx, qword [rax + 0x78]
call fcn.18003c000
test eax, eax
jne 0x18003fa2b
mov rax, qword [0x180052fc0]
xor edx, edx
mov rcx, qword [rax + 0x60]
call fcn.18003c000
mov eax, esi
mov rbx, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x50]
add rsp, 0x30
pop rdi
ret
xchg dword [0x180052e8c], edi
mov rbx, qword [rsp + 0x40]
mov eax, esi
mov rsi, qword [rsp + 0x50]
add rsp, 0x30
pop rdi
ret
call fcn.1800417bc
int3
Function at 0x18003fd80
Capabilities:
Write file on windows

Disassembly:
push rbx
push rdi
push r15
sub rsp, 0x20
cmp qword [rcx + 0x68], 0
mov rbx, r8
mov r15, rdx
mov rdi, rcx
je 0x18003fda8
add rsp, 0x20
pop r15
pop rdi
pop rbx
jmp qword [sym.imp.MSVCP140.dll_protected_virtual:_long_long___int64____cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::xsputn_char_const____ptr64__long_long___int64_____ptr64]
mov rax, qword [rcx + 0x40]
mov qword [rsp + 0x40], rbp
mov qword [rsp + 0x48], rsi
mov rsi, rbx
mov qword [rsp + 0x58], r14
mov r9, qword [rax]
test r9, r9
je 0x18003fdce
mov rax, qword [rcx + 0x58]
mov ecx, dword [rax]
jmp 0x18003fdd0
xor ecx, ecx
movsxd rbp, ecx
test rbx, rbx
jle 0x18003fe29
test ecx, ecx
jle 0x18003fe09
cmp rbx, rbp
mov rcx, r9
cmovl rbp, rbx
mov r8, rbp
call sub.VCRUNTIME140.dll_memcpy
mov rax, qword [rdi + 0x58]
add r15, rbp
sub rbx, rbp
sub dword [rax], ebp
mov rcx, qword [rdi + 0x40]
movsxd rax, ebp
add qword [rcx], rax
test rbx, rbx
jle 0x18003fe29
mov r9, qword [rdi + 0x80]
test r9, r9
je 0x18003fe29
mov r8, rbx
mov edx, 1
mov rcx, r15
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
sub rbx, rax
mov r14, qword [rsp + 0x58]
sub rsi, rbx
mov rbp, qword [rsp + 0x40]
mov rax, rsi
mov rsi, qword [rsp + 0x48]
add rsp, 0x20
pop r15
pop rdi
pop rbx
ret
Function at 0x18003fe50
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
push r14
sub rsp, 0x20
mov rbp, r8
mov r14, rdx
mov rsi, rcx
test r8, r8
jg 0x18003fe81
xor eax, eax
mov rbp, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
add rsp, 0x20
pop r14
ret
cmp qword [rcx + 0x68], 0
je 0x18003fe9f
mov rbp, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
add rsp, 0x20
pop r14
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 + 0x30], rbx
mov rbx, rbp
mov rdx, qword [rax]
test rdx, rdx
je 0x18003febb
mov rax, qword [rcx + 0x50]
mov ecx, dword [rax]
jmp 0x18003febd
xor ecx, ecx
movsxd rax, ecx
test ecx, ecx
je 0x18003fef9
mov qword [rsp + 0x38], rdi
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]
add r14, rdi
sub rbx, rdi
sub dword [rax], edi
mov rcx, qword [rsi + 0x38]
movsxd rax, edi
mov rdi, qword [rsp + 0x38]
add qword [rcx], rax
cmp qword [rsi + 0x80], 0
je 0x18003ff8e
mov r8, qword [rsi + 0x18]
lea rax, [rsi + 0x70]
cmp qword [r8], rax
jne 0x18003ff34
mov rcx, qword [rsi + 0x88]
mov rdx, qword [rsi + 0x90]
mov qword [r8], rcx
sub edx, ecx
mov rax, qword [rsi + 0x38]
mov qword [rax], rcx
mov rax, qword [rsi + 0x50]
mov dword [rax], edx
cmp rbx, 0xfff
jbe 0x18003ff6e
nop dword [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]
add r14, rax
sub rbx, rax
cmp rax, 0xfff
jne 0x18003ff8e
cmp rbx, rax
ja 0x18003ff40
test rbx, rbx
je 0x18003ff8e
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]
sub rbx, rax
mov rsi, qword [rsp + 0x48]
sub rbp, rbx
mov rbx, qword [rsp + 0x30]
mov rax, rbp
mov rbp, qword [rsp + 0x40]
add rsp, 0x20
pop r14
ret
Function at 0x1800403c0
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 0x20], rbx
push rdi
sub rsp, 0x80
mov rax, qword [0x180052010]
xor rax, rsp
mov qword [rsp + 0x78], rax
mov edi, edx
mov rbx, rcx
cmp edx, 0xffffffff
jne 0x1800403ed
xor eax, eax
jmp 0x18004054a
mov rdx, qword [rcx + 0x40]
mov rax, qword [rdx]
test rax, rax
je 0x180040418
mov rdx, qword [rcx + 0x58]
movsxd r8, dword [rdx]
add r8, rax
cmp rax, r8
jae 0x180040418
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 0x18004054a
cmp qword [rcx + 0x80], 0
mov qword [rsp + 0xa0], rsi
je 0x18004053d
mov r8, qword [rcx + 0x18]
lea rax, [rcx + 0x70]
cmp qword [r8], rax
jne 0x18004045b
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 0x180040486
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 0x180040542
lea rax, [rsp + 0x48]
mov byte [rsp + 0x40], dil
mov qword [rsp + 0x38], rax
lea rdx, [rbx + 0x74]
lea rax, [rsp + 0x78]
mov qword [rsp + 0x30], rax
lea r9, [rsp + 0x41]
lea rax, [rsp + 0x58]
mov qword [rsp + 0x28], rax
lea r8, [rsp + 0x40]
lea rax, [rsp + 0x50]
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 0x1800404f5
sub eax, 1
je 0x1800404f5
cmp eax, 2
jne 0x18004053d
movsx ecx, byte [rsp + 0x40]
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 0x180040542
mov rsi, qword [rsp + 0x48]
lea rax, [rsp + 0x58]
sub rsi, rax
je 0x180040523
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 0x18004053d
lea rax, [rsp + 0x40]
mov byte [rbx + 0x71], 1
cmp qword [rsp + 0x50], rax
mov ecx, 0xffffffff
cmovne ecx, edi
mov eax, ecx
jmp 0x180040542
mov eax, 0xffffffff
mov rsi, qword [rsp + 0xa0]
mov rcx, qword [rsp + 0x78]
xor rcx, rsp
call fcn.180041350
mov rbx, qword [rsp + 0xa8]
add rsp, 0x80
pop rdi
ret
Function at 0x180040840
Capabilities:
Write file on windows

Disassembly:
push rbx
sub rsp, 0x60
mov rax, qword [0x180052010]
xor rax, rsp
mov qword [rsp + 0x58], rax
cmp qword [rcx + 0x68], 0
mov rbx, rcx
je 0x180040913
cmp byte [rcx + 0x71], 0
je 0x180040913
mov rax, qword [rcx]
mov edx, 0xffffffff
mov qword [rsp + 0x78], rdi
call qword [rax + 0x18]
cmp eax, 0xffffffff
je 0x18004090f
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 0x1800408d4
sub eax, 1
je 0x1800408d8
cmp eax, 2
jne 0x18004090f
mov byte [rbx + 0x71], 0
mov al, 1
mov rdi, qword [rsp + 0x78]
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.180041350
add rsp, 0x60
pop rbx
ret
mov byte [rbx + 0x71], 0
mov rdi, qword [rsp + 0x30]
lea rax, [rsp + 0x38]
sub rdi, rax
je 0x180040906
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 0x18004090f
cmp byte [rbx + 0x71], 0
sete al
jmp 0x1800408bc
xor al, al
jmp 0x1800408bc
mov al, 1
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.180041350
add rsp, 0x60
pop rbx
ret
Function at 0x100401150
Capabilities:
Terminate process
Write file on windows

Disassembly:
push r13
push r12
push rbx
sub rsp, 0x30
mov rbx, qword [str.tput]
lea rax, [rsp + 0x60]
mov qword [rsp + 0x68], r9
mov r12d, ecx
mov r13, rdx
mov qword [rsp + 0x60], r8
mov qword [rsp + 0x28], rax
call sub.msys_2.0.dll___getreent
mov r8, rbx
lea rdx, str._s:
mov rcx, qword [rax + 0x18]
call sub.msys_2.0.dll_fprintf
mov rbx, qword [rsp + 0x28]
call sub.msys_2.0.dll___getreent
mov rdx, r13
mov rcx, qword [rax + 0x18]
mov r8, rbx
call sub.msys_2.0.dll_vfprintf
call sub.msys_2.0.dll___getreent
mov ecx, 0xa
mov rdx, qword [rax + 0x18]
call sub.msys_2.0.dll_fputc
mov ecx, r12d
call sub.msys_2.0.dll_exit
nop
nop word [rax + rax]
Function at 0x1004017d0
Capabilities:
Terminate process
Write file on windows

Disassembly:
push rsi
push rbx
sub rsp, 0x28
mov rbx, qword [str.tput]
mov rsi, rcx
call sub.msys_2.0.dll___getreent
mov r8, rbx
lea rdx, str.Usage:__s__options___command__n
mov rcx, qword [rax + 0x18]
call sub.msys_2.0.dll_fprintf
test rsi, rsi
je 0x100401888
lea rbx, str._nOptions:_n___S__________read_commands_from_standard_input_n___T_TERM_____use_this_instead_of__TERM_n___V__________print_curses_version_n___x__________do_not_try_to_clear_scrollback_n_nCommands:_n__clear_______clear_the_screen_n__init________initialize_the_terminal_n__reset_______reinitialize_the_terminal_n__capname_____unlike_clear_init_reset__print_value_for_capability__capname__n
jmp 0x10040183a
cmp byte [rbx + 1], 0x20
jne 0x100401853
cmp byte [rbx + 2], 0x2d
jne 0x100401853
movsx edx, byte [rbx + 3]
mov rcx, rsi
call sub.msys_2.0.dll_strchr
mov rcx, rbx
test rax, rax
je 0x100401878
cmp byte [rcx + 1], 0
lea rbx, [rcx + 1]
je 0x100401864
call sub.msys_2.0.dll___getreent
movzx ecx, byte [rbx]
mov rdx, qword [rax + 0x18]
call sub.msys_2.0.dll_fputc
movzx eax, byte [rbx]
cmp eax, 0x20
je 0x100401810
cmp eax, 0xa
jne 0x100401870
cmp byte [rbx + 1], 0xa
jne 0x100401870
cmp byte [rbx + 2], 0x43
jne 0x100401870
mov ecx, 2
call sub.msys_2.0.dll_exit
nop
mov rcx, rbx
jmp 0x100401830
mov edx, 0xa
call sub.msys_2.0.dll_strchr
lea rcx, [rax + 1]
jmp 0x100401830
call sub.msys_2.0.dll___getreent
mov r8d, 0x176
mov edx, 1
lea rcx, str._nOptions:_n___S__________read_commands_from_standard_input_n___T_TERM_____use_this_instead_of__TERM_n___V__________print_curses_version_n___x__________do_not_try_to_clear_scrollback_n_nCommands:_n__clear_______clear_the_screen_n__init________initialize_the_terminal_n__reset_______reinitialize_the_terminal_n__capname_____unlike_clear_init_reset__print_value_for_capability__capname__n
mov r9, qword [rax + 0x18]
call sub.msys_2.0.dll_fwrite
jmp 0x100401864

Function at 0x100401970
Capabilities:
Read file on windows
Terminate process
Write file on windows

Disassembly:
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x38
mov rsi, rcx
call sub.msys_2.0.dll___errno
mov ebx, dword [rax]
mov ecx, ebx
call sub.msys_2.0.dll_strerror
mov rdi, rax
mov rax, qword [0x100405410]
mov rbp, qword [rax]
call sub.msys_2.0.dll___getreent
mov r9, rsi
lea rdx, [0x100405270]
mov rcx, qword [rax + 0x18]
mov qword [rsp + 0x20], rdi
mov r8, rbp
call sub.msys_2.0.dll_fprintf
call fcn.100402960
mov rdx, qword [0x100409018]
mov ecx, 0xa
call sub.msys_2.0.dll_fputc
mov rcx, qword [0x100409018]
call fcn.100402af0
lea ecx, [rbx + 4]
call sub.msys_2.0.dll_exit
nop
nop word cs:[rax + rax]
nop dword [rax]
Function at 0x1004019f0
Capabilities:
Read file on windows
Write file on windows

Disassembly:
push r14
push r13
push r12
push rsi
push rbx
sub rsp, 0x420
mov r14, rcx
test rcx, rcx
je 0x100401a90
lea rdx, [0x10040527c]
call sub.msys_2.0.dll_fopen
mov r12, rax
test rax, rax
je 0x100401a95
xor r13d, r13d
lea rsi, [rsp + 0x20]
jmp 0x100401a52
mov r9, qword [0x100409018]
mov r8, rbx
mov edx, 1
mov rcx, rsi
mov r13d, 1
call sub.msys_2.0.dll_fwrite
cmp rax, rbx
jne 0x100401a95
mov r9, r12
mov r8d, 0x400
mov edx, 1
mov rcx, rsi
call sub.msys_2.0.dll_fread
mov rbx, rax
test rax, rax
jne 0x100401a30
mov rcx, r12
call sub.msys_2.0.dll_fclose
mov eax, r13d
add rsp, 0x420
pop rbx
pop rsi
pop r12
pop r13
pop r14
ret
xor r13d, r13d
jmp 0x100401a78
mov rcx, r14
call fcn.100401970
nop
nop

Function at 0x100401aa0
Capabilities:
Write file on windows

Disassembly:
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x28
movsxd r9, r9d
mov rdi, r8
mov r8d, dword [rsp + 0x70]
movzx ebx, byte [r9 + rdx + 0x11]
movzx eax, byte [r9 + rcx + 0x11]
mov ebp, ebx
cmp ebx, eax
jne 0x100401ad8
cmp eax, r8d
jne 0x100401ad8
add rsp, 0x28
pop rbx
pop rsi
pop rdi
pop rbp
ret
cmp ebx, eax
lea rsi, [0x10040527e]
lea rax, str.set_to
cmovne rsi, rax
call sub.msys_2.0.dll___getreent
mov r8, rdi
lea rdx, str._s__s
mov rcx, qword [rax + 0x18]
mov r9, rsi
call sub.msys_2.0.dll_fprintf
test ebx, ebx
je 0x100401b68
cmp ebx, 0x7f
je 0x100401be0
mov rax, qword [sym.imp.msys_ncursesw6.dll_cur_term]
mov rax, qword [rax]
mov rax, qword [rax + 0x20]
mov rax, qword [rax + 0x1b8]
test rax, rax
je 0x100401b33
cmp bpl, byte [rax]
je 0x100401bb0
cmp ebx, 0x1f
ja 0x100401b90
call sub.msys_2.0.dll___getreent
mov ebx, ebp
lea rdx, str.control__c___c_._n
xor ebx, 0x40
mov rcx, qword [rax + 0x18]
movzx ebx, bl
mov r9d, ebx
mov r8d, ebx
add rsp, 0x28
pop rbx
pop rsi
pop rdi
pop rbp
jmp sub.msys_2.0.dll_fprintf
call sub.msys_2.0.dll___getreent
mov r8d, 7
mov edx, 1
lea rcx, str.undef._n
mov r9, qword [rax + 0x18]
add rsp, 0x28
pop rbx
pop rsi
pop rdi
pop rbp
jmp sub.msys_2.0.dll_fwrite
call sub.msys_2.0.dll___getreent
mov r8d, ebx
lea rdx, str._c._n
mov rcx, qword [rax + 0x18]
add rsp, 0x28
pop rbx
pop rsi
pop rdi
pop rbp
jmp sub.msys_2.0.dll_fprintf
cmp byte [rax + 1], 0
jne 0x100401b33
call sub.msys_2.0.dll___getreent
mov r8d, 0xb
mov edx, 1
lea rcx, str.backspace._n
mov r9, qword [rax + 0x18]
jmp 0x100401b83
call sub.msys_2.0.dll___getreent
mov r8d, 8
mov edx, 1
lea rcx, str.delete._n
mov r9, qword [rax + 0x18]
jmp 0x100401b83
Function at 0x1004027e0
Capabilities:
Terminate process

Disassembly:
push r12
push rsi
push rbx
sub rsp, 0x30
mov dword [0x10040906c], 2
mov r12, rcx
mov ebx, edx
mov rdx, rcx
mov ecx, 2
call sub.msys_2.0.dll_tcgetattr
test eax, eax
js 0x100402850
movdqu xmm0, xmmword [r12]
mov byte [0x100409020], 1
movaps xmmword [0x100409040], xmm0
movdqu xmm1, xmmword [r12 + 0x10]
movaps xmmword [0x100409050], xmm1
mov rax, qword [r12 + 0x20]
mov qword [0x100409060], rax
mov eax, dword [r12 + 0x28]
mov dword [0x100409068], eax
mov eax, dword [0x10040906c]
add rsp, 0x30
pop rbx
pop rsi
pop r12
ret
mov rdx, r12
mov ecx, 1
mov dword [0x10040906c], 1
call sub.msys_2.0.dll_tcgetattr
test eax, eax
jns 0x100402808
mov dword [0x10040906c], 0
xor ecx, ecx
mov rdx, r12
call sub.msys_2.0.dll_tcgetattr
test eax, eax
jns 0x100402808
test bl, bl
je 0x100402910
lea rcx, str._dev_tty
mov edx, 2
call sub.msys_2.0.dll_open
mov dword [0x10040906c], eax
mov ecx, eax
test eax, eax
jns 0x100402930
call sub.msys_2.0.dll___errno
mov ebx, dword [rax]
mov ecx, ebx
call sub.msys_2.0.dll_strerror
mov r12, rax
mov rax, qword [0x100405410]
mov rsi, qword [rax]
call sub.msys_2.0.dll___getreent
lea r9, str.terminal_attributes
lea rdx, str._s:__s:__s_n
mov rcx, qword [rax + 0x18]
mov qword [rsp + 0x20], r12
mov r8, rsi
call sub.msys_2.0.dll_fprintf
cmp byte [0x100409020], 0
jne 0x100402945
call sub.msys_2.0.dll___getreent
mov ecx, 0xa
mov rdx, qword [rax + 0x18]
call sub.msys_2.0.dll_fputc
lea ecx, [rbx + 4]
call sub.msys_2.0.dll_exit
nop
call sub.msys_2.0.dll___getreent
mov rcx, qword [rax + 0x10]
call sub.msys_2.0.dll_fileno
mov dword [0x10040906c], eax
jmp 0x100402847
mov rdx, r12
call sub.msys_2.0.dll_tcgetattr
test eax, eax
jns 0x100402841
jmp 0x1004028ac
mov ecx, dword [0x10040906c]
lea r8, [0x100409040]
mov edx, 3
call fcn.100402ca0
jmp 0x1004028f4
Function at 0x7753a0
Capabilities:
Terminate process

Disassembly:
cld
pop r11
jmp 0x7753ad
inc rsi
mov byte [rdi], dl
inc rdi
mov dl, byte [rsi]
add ebx, ebx
jne 0x7753bd
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
mov dl, byte [rsi]
jb 0x7753a5
lea eax, [rcx + 1]
jmp 0x7753cb
dec eax
call r11
adc eax, eax
call r11
adc eax, eax
add ebx, ebx
jne 0x7753de
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
mov dl, byte [rsi]
jae 0x7753c4
sub eax, 3
jb 0x7753fe
shl eax, 8
movzx edx, dl
or eax, edx
inc rsi
xor eax, 0xffffffff
je 0x77544d
sar eax, 1
movsxd rbp, eax
jb 0x775434
jmp 0x77540c
add ebx, ebx
jne 0x77540a
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
jb 0x775434
inc ecx
add ebx, ebx
jne 0x77541a
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
jb 0x775434
call r11
adc ecx, ecx
add ebx, ebx
jne 0x77542d
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
jae 0x77541c
add ecx, 2
jmp 0x775439
call r11
adc ecx, ecx
cmp rbp, 0xfffffffffffffb00
adc ecx, 2
call fcn.00775362
jmp 0x7753ad
pop rsi
mov rdi, rsi
push rsi
mov rdi, rsi
mov rsi, 0x198000
mov dl, 0x35
push rbx
push rdi
lea rcx, [rdi + rsi - 3]
pop rsi
push rsi
pop rbx
jmp 0x775499
cmp rsi, rcx
jae 0x7754a1
push rsi
pop rsi
lodsb al, byte [rsi]
cmp al, 0x80
jb 0x775480
cmp al, 0x8f
ja 0x775480
cmp byte [rsi - 2], 0xf
je 0x775486
sub al, 0xe8
cmp al, 1
ja 0x77546a
cmp rsi, rcx
jae 0x7754a1
push rsi
lodsd eax, dword [rsi]
sub al, dl
jne 0x775470
pop rdi
bswap eax
sub eax, edi
add eax, ebx
stosd dword [rdi], eax
cmp rsi, rcx
jae 0x7754a1
lodsb al, byte [rsi]
jmp 0x775480
pop rbx
pop rsi
sub rsp, 0x28
lea rdi, [rsi + 0x36f000]
mov eax, dword [rdi]
or eax, eax
je 0x7754fe
mov ebx, dword [rdi + 4]
lea rcx, [rax + rsi + 0x375000]
add rbx, rsi
add rdi, 8
call qword [sym.imp.KERNEL32.DLL_LoadLibraryA]
xchg rbp, rax
mov al, byte [rdi]
inc rdi
or al, al
je 0x7754ae
mov rcx, rdi
mov rdx, rdi
dec eax
repne scasb al, byte [rdi]
mov rcx, rbp
call qword [sym.imp.KERNEL32.DLL_GetProcAddress]
or rax, rax
je 0x7754f8
mov qword [rbx], rax
add rbx, 8
jmp 0x7754ce
jmp qword [sym.imp.KERNEL32.DLL_ExitProcess]
add rsp, 0x28
add rdi, 4
lea rbx, [rsi - 4]
xor eax, eax
mov al, byte [rdi]
inc rdi
or eax, eax
je 0x775542
cmp al, 0xef
ja 0x77552a
add rbx, rax
mov rax, qword [rbx]
bswap rax
add rax, rsi
mov qword [rbx], rax
jmp 0x77550a
and al, 0xf
shl eax, 0x10
mov ax, word [rdi]
add rdi, 2
or eax, eax
jne 0x775519
mov eax, dword [rdi]
add rdi, 4
jmp 0x775519
mov rbp, qword [sym.imp.KERNEL32.DLL_VirtualProtect]
lea rdi, [rsi - 0x1000]
mov ebx, 0x1000
push rax
mov r9, rsp
mov r8d, 4
mov rdx, rbx
mov rcx, rdi
sub rsp, 0x20
call rbp
lea rax, [rdi + 0x1af]
and byte [rax], 0x7f
and byte [rax + 0x28], 0x7f
lea r9, [rsp + 0x20]
mov r8, qword [r9]
mov rdx, rbx
mov rcx, rdi
call rbp
add rsp, 0x28
pop rbp
pop rdi
pop rsi
pop rbx
lea rax, [rsp - 0x80]
push 0
cmp rsp, rax
jne 0x775596
sub rsp, 0xffffffffffffff80
jmp 0x467960