joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1400105e0
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 0x20], r9
mov dword [rsp + 0x18], r8d
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x98
mov qword [rsp + 0x40], 0
mov qword [rsp + 0x30], 0
mov qword [rsp + 0x38], 0
lea rax, str.e__1h
mov qword [rsp + 0x60], rax
mov rax, qword [rsp + 0x60]
mov qword [rsp + 0x70], rax
mov qword [rsp + 0x48], 0xffffffffffffffff
inc qword [rsp + 0x48]
mov rax, qword [rsp + 0x70]
mov rcx, qword [rsp + 0x48]
cmp byte [rax + rcx], 0
jne 0x140010635
mov rax, qword [rsp + 0x48]
mov dword [rsp + 0x58], eax
lea rax, str.e__1l
mov qword [rsp + 0x68], rax
mov rax, qword [rsp + 0x68]
mov qword [rsp + 0x78], rax
mov qword [rsp + 0x50], 0xffffffffffffffff
inc qword [rsp + 0x50]
mov rax, qword [rsp + 0x78]
mov rcx, qword [rsp + 0x50]
cmp byte [rax + rcx], 0
jne 0x140010672
mov rax, qword [rsp + 0x50]
mov dword [rsp + 0x5c], eax
lea rax, str.e_2J
mov qword [rsp + 0x80], rax
cmp dword [rsp + 0xb0], 0
jne 0x1400106ae
jmp 0x140010887
cmp dword [0x14005d054], 0
jne 0x1400107a9
cmp dword [0x14005ab98], 0
je 0x140010700
mov dword [0x14005ab98], 0
call fcn.140013f90
test eax, eax
je 0x1400106e1
mov dword [0x14005ab9c], 0
mov rdx, qword [rsp + 0x80]
mov rcx, qword [rsp + 0xa8]
call fcn.140015014
test rax, rax
je 0x140010700
call fcn.140011140
mov eax, dword [rsp + 0x58]
cmp dword [rsp + 0xb0], eax
jb 0x140010730
mov rdx, qword [rsp + 0x60]
mov rcx, qword [rsp + 0xa8]
call fcn.140015014
test rax, rax
je 0x140010730
mov dword [0x14005d090], 1
jmp 0x14001075e
mov eax, dword [rsp + 0x5c]
cmp dword [rsp + 0xb0], eax
jb 0x14001075e
mov rdx, qword [rsp + 0x68]
mov rcx, qword [rsp + 0xa8]
call fcn.140015014
test rax, rax
je 0x14001075e
mov dword [0x14005d090], 0
cmp dword [0x14005ab9c], 0
je 0x14001076c
call fcn.140011500
mov qword [rsp + 0x20], 0
xor r9d, r9d
mov r8d, dword [rsp + 0xb0]
mov rdx, qword [rsp + 0xa8]
mov rcx, qword [rsp + 0xa0]
call qword [sym.imp.api_ms_win_core_file_l1_1_0.dll_WriteFile]
cmp dword [0x14005ab9c], 0
je 0x1400107a4
call fcn.1400117f0
jmp 0x140010887
cmp dword [rsp + 0xb0], 1
jne 0x1400107e2
mov eax, 1
imul rax, rax, 0
mov rcx, qword [rsp + 0xa8]
movsx eax, byte [rcx + rax]
cmp eax, 0xd
jne 0x1400107e2
mov eax, 1
imul rax, rax, 0
mov rcx, qword [rsp + 0xa8]
mov byte [rcx + rax], 0xa
mov rax, qword [rsp + 0xa8]
mov qword [rsp + 0x38], rax
mov rax, qword [rsp + 0xa8]
mov qword [rsp + 0x30], rax
mov eax, dword [rsp + 0xb0]
mov rcx, qword [rsp + 0x38]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x38], rax
mov rax, qword [rsp + 0x30]
mov qword [rsp + 0x40], rax
mov rax, qword [rsp + 0x40]
mov qword [rsp + 0x30], rax
mov r9, qword [rsp + 0xc0]
mov r8, qword [rsp + 0xb8]
mov rdx, qword [rsp + 0x38]
mov rcx, qword [rsp + 0x30]
call fcn.140013900
mov qword [rsp + 0x40], rax
mov rax, qword [rsp + 0x30]
cmp qword [rsp + 0x40], rax
je 0x140010887
mov rax, qword [rsp + 0x38]
cmp qword [rsp + 0x40], rax
jae 0x140010887
cmp qword [rsp + 0xc0], 0
je 0x14001081d
cmp qword [rsp + 0xc0], 0
je 0x140010887
mov rax, qword [rsp + 0xc0]
cmp qword [rax], 0
je 0x14001081d
add rsp, 0x98
ret
Function at 0x140010de0
Capabilities:
Manipulate console buffer

Disassembly:
mov dword [rsp + 8], ecx
sub rsp, 0x478
mov rax, qword [0x14005b1f0]
xor rax, rsp
mov qword [rsp + 0x460], rax
lea rdx, [rsp + 0x48]
mov rcx, qword [0x14005d038]
call qword [sym.imp.api_ms_win_core_console_l2_1_0.dll_GetConsoleScreenBufferInfo]
test eax, eax
jne 0x140010e18
jmp 0x140010efb
movzx eax, word [rsp + 0x4c]
mov word [rsp + 0x30], ax
movzx eax, word [rsp + 0x4e]
mov word [rsp + 0x32], ax
movsx eax, word [rsp + 0x30]
add eax, dword [rsp + 0x480]
mov word [rsp + 0x38], ax
movzx eax, word [rsp + 0x32]
mov word [rsp + 0x3a], ax
movzx eax, word [rsp + 0x32]
mov word [rsp + 0x3e], ax
movzx eax, word [rsp + 0x56]
mov word [rsp + 0x3c], ax
mov eax, 0x100
mov word [rsp + 0x34], ax
mov eax, 1
mov word [rsp + 0x36], ax
lea rax, [rsp + 0x38]
mov qword [rsp + 0x20], rax
mov r9d, dword [0x14005d060]
mov r8d, dword [rsp + 0x34]
lea rdx, [rsp + 0x60]
mov rcx, qword [0x14005d038]
call qword [sym.imp.api_ms_win_core_console_l2_1_0.dll_ReadConsoleOutputA]
mov dword [rsp + 0x40], eax
call fcn.140010a20
movzx eax, word [rsp + 0x30]
mov word [rsp + 0x38], ax
mov eax, 0x100
mov word [rsp + 0x34], ax
mov eax, 1
mov word [rsp + 0x36], ax
movsx eax, word [rsp + 0x3c]
sub eax, dword [rsp + 0x480]
mov word [rsp + 0x3c], ax
lea rax, [rsp + 0x38]
mov qword [rsp + 0x20], rax
mov r9d, dword [0x14005d060]
mov r8d, dword [rsp + 0x34]
lea rdx, [rsp + 0x60]
mov rcx, qword [0x14005d038]
call qword [sym.imp.api_ms_win_core_console_l2_1_0.dll_WriteConsoleOutputA]
mov dword [rsp + 0x40], eax
mov rcx, qword [rsp + 0x460]
xor rcx, rsp
call fcn.140014060
add rsp, 0x478
ret

Function at 0x1400110c0
Capabilities:
Manipulate console buffer

Disassembly:
mov dword [rsp + 0x10], edx
mov dword [rsp + 8], ecx
sub rsp, 0x58
mov rax, qword [0x14005b1f0]
xor rax, rsp
mov qword [rsp + 0x40], rax
lea rdx, [rsp + 0x28]
mov rcx, qword [0x14005d038]
call qword [sym.imp.api_ms_win_core_console_l2_1_0.dll_GetConsoleScreenBufferInfo]
test eax, eax
jne 0x1400110f3
jmp 0x140011120
movsx eax, word [rsp + 0x2c]
add eax, dword [rsp + 0x60]
mov word [rsp + 0x20], ax
movsx eax, word [rsp + 0x2e]
add eax, dword [rsp + 0x68]
mov word [rsp + 0x22], ax
mov edx, dword [rsp + 0x20]
mov rcx, qword [0x14005d038]
call qword [sym.imp.api_ms_win_core_console_l2_1_0.dll_SetConsoleCursorPosition]
mov rcx, qword [rsp + 0x40]
xor rcx, rsp
call fcn.140014060
add rsp, 0x58
ret
Function at 0x140011350
Capabilities:
Manipulate console buffer

Disassembly:
mov qword [rsp + 8], rcx
sub rsp, 0x88
mov rax, qword [0x14005b1f0]
xor rax, rsp
mov qword [rsp + 0x70], rax
mov dword [rsp + 0x48], 0
xor eax, eax
mov word [rsp + 0x30], ax
xor eax, eax
mov word [rsp + 0x32], ax
mov rax, qword [rsp + 0x90]
mov qword [rsp + 0x38], rax
cmp qword [0x14005d038], 0
jne 0x14001139f
xor eax, eax
jmp 0x1400114e0
lea rdx, [rsp + 0x58]
mov rcx, qword [0x14005d038]
call qword [sym.imp.api_ms_win_core_console_l2_1_0.dll_GetConsoleScreenBufferInfo]
test eax, eax
jne 0x1400113bc
xor eax, eax
jmp 0x1400114e0
movsx eax, word [rsp + 0x66]
movsx ecx, word [rsp + 0x62]
sub eax, ecx
inc eax
mov dword [rsp + 0x40], eax
movsx eax, word [rsp + 0x68]
movsx ecx, word [rsp + 0x64]
sub eax, ecx
inc eax
mov dword [rsp + 0x44], eax
movzx eax, word [rsp + 0x62]
mov word [rsp + 0x30], ax
movzx eax, word [rsp + 0x64]
mov word [rsp + 0x32], ax
mov eax, dword [rsp + 0x40]
imul eax, dword [rsp + 0x44]
lea rcx, [rsp + 0x4c]
mov qword [rsp + 0x20], rcx
mov r9d, dword [rsp + 0x30]
mov r8d, eax
mov dl, 0x20
mov rcx, qword [0x14005d038]
call qword [sym.imp.api_ms_win_core_console_l2_1_0.dll_FillConsoleOutputCharacterA]
mov rax, qword [rsp + 0x38]
mov rax, qword [rax]
mov qword [rsp + 0x50], rax
mov rax, qword [rsp + 0x50]
movzx edx, word [rax + 2]
mov rcx, qword [0x14005d038]
call qword [sym.imp.api_ms_win_core_console_l2_1_0.dll_SetConsoleTextAttribute]
mov eax, dword [rsp + 0x40]
imul eax, dword [rsp + 0x44]
lea rcx, [rsp + 0x4c]
mov qword [rsp + 0x20], rcx
mov r9d, dword [rsp + 0x30]
mov r8d, eax
mov rax, qword [rsp + 0x50]
movzx edx, word [rax + 2]
mov rcx, qword [0x14005d038]
call qword [sym.imp.api_ms_win_core_console_l2_1_0.dll_FillConsoleOutputAttribute]
lea rax, [rsp + 0x62]
mov qword [rsp + 0x20], rax
mov r9d, dword [0x14005d060]
mov rax, qword [rsp + 0x38]
mov r8d, dword [rax + 8]
mov rax, qword [rsp + 0x38]
mov rdx, qword [rax]
mov rcx, qword [0x14005d038]
call qword [sym.imp.api_ms_win_core_console_l2_1_0.dll_WriteConsoleOutputA]
mov dword [rsp + 0x48], eax
mov rax, qword [rsp + 0x38]
add rax, 0x10
mov r8, rax
mov edx, 1
mov rcx, qword [0x14005d038]
call qword [sym.imp.api_ms_win_core_console_l2_1_0.dll_SetConsoleWindowInfo]
mov rax, qword [rsp + 0x38]
movsx eax, word [rax + 0xe]
mov rcx, qword [rsp + 0x38]
movsx ecx, word [rcx + 0xc]
mov edx, eax
call fcn.1400120f0
mov eax, dword [rsp + 0x48]
mov rcx, qword [rsp + 0x70]
xor rcx, rsp
call fcn.140014060
add rsp, 0x88
ret
Function at 0x1400120f0
Capabilities:
Manipulate console buffer

Disassembly:
mov dword [rsp + 0x10], edx
mov dword [rsp + 8], ecx
sub rsp, 0x58
mov rax, qword [0x14005b1f0]
xor rax, rsp
mov qword [rsp + 0x48], rax
lea rdx, [rsp + 0x30]
mov rcx, qword [0x14005d038]
call qword [sym.imp.api_ms_win_core_console_l2_1_0.dll_GetConsoleScreenBufferInfo]
test eax, eax
jne 0x140012126
jmp 0x1400121c4
movzx eax, word [rsp + 0x60]
mov word [rsp + 0x24], ax
movzx eax, word [rsp + 0x68]
mov word [rsp + 0x26], ax
movsx eax, word [rsp + 0x32]
dec eax
cmp dword [rsp + 0x68], eax
jle 0x14001217a
mov eax, dword [0x14005e740]
cmp dword [rsp + 0x68], eax
jle 0x14001217a
mov eax, dword [0x14005e740]
mov dword [rsp + 0x20], eax
jmp 0x140012169
mov eax, dword [rsp + 0x20]
inc eax
mov dword [rsp + 0x20], eax
mov eax, dword [rsp + 0x68]
cmp dword [rsp + 0x20], eax
jge 0x14001217a
call fcn.140012930
jmp 0x14001215f
movsx eax, word [rsp + 0x32]
cmp dword [rsp + 0x68], eax
jl 0x140012191
movsx eax, word [rsp + 0x32]
dec eax
mov word [rsp + 0x26], ax
mov edx, dword [rsp + 0x24]
mov rcx, qword [0x14005d038]
call qword [sym.imp.api_ms_win_core_console_l2_1_0.dll_SetConsoleCursorPosition]
test eax, eax
jne 0x1400121b0
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
mov dword [rsp + 0x28], eax
mov eax, dword [rsp + 0x60]
mov dword [0x14005e744], eax
mov eax, dword [rsp + 0x68]
mov dword [0x14005e740], eax
mov rcx, qword [rsp + 0x48]
xor rcx, rsp
call fcn.140014060
add rsp, 0x58
ret

Function at 0x14001d48c
Capabilities:
Parse pe header

Disassembly:
mov qword [rsp + 8], rbx
mov dword [rsp + 0x18], r8d
mov dword [rsp + 0x10], edx
push rbp
mov rbp, rsp
sub rsp, 0x50
mov ebx, ecx
test r8d, r8d
jne 0x14001d317
xor ecx, ecx
call qword [sym.imp.api_ms_win_core_libraryloader_l1_2_0.dll_GetModuleHandleW]
test rax, rax
je 0x14001d317
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x14001d317
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x14001d317
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x14001d317
cmp dword [rcx + 0x84], 0xe
jbe 0x14001d317
cmp dword [rcx + 0xf8], 0
je 0x14001d317
mov ecx, ebx
call fcn.14001d3b8
lea rax, [rbp + 0x18]
mov byte [rbp + 0x28], 0
mov qword [rbp - 0x20], rax
lea r9, [rbp - 0x2c]
lea rax, [rbp + 0x20]
mov qword [rbp - 0x18], rax
lea r8, [rbp - 0x20]
lea rax, [rbp + 0x28]
mov qword [rbp - 0x10], rax
lea rdx, [rbp - 0x28]
mov eax, 2
lea rcx, [rbp - 0x30]
mov dword [rbp - 0x2c], eax
mov dword [rbp - 0x28], eax
call fcn.14001d194
cmp dword [rbp + 0x20], 0
je 0x14001d364
mov rbx, qword [rsp + 0x60]
add rsp, 0x50
pop rbp
ret
mov ecx, ebx
call fcn.14001d36c
int3
xor r8d, r8d
xor edx, edx
jmp 0x14001d2b0
Function at 0x140001290
Capabilities:
Execute command

Disassembly:
sub rsp, 0x178
mov rax, qword [0x140007010]
xor rax, rsp
mov qword [rsp + 0x160], rax
xor edx, edx
mov r8d, 0x110
lea rcx, [rsp + 0x50]
call sub.VCRUNTIME140.dll_memset
lea rcx, [rsp + 0x50]
call fcn.1400020a0
nop
cmp qword [rsp + 0xe0], 0
je 0x140001386
xorps xmm0, xmm0
movups xmmword [rsp + 0x30], xmm0
movdqa xmm1, xmmword [0x1400045e0]
movdqu xmmword [rsp + 0x40], xmm1
mov byte [rsp + 0x30], 0
lea rdx, [rsp + 0x30]
lea rcx, [rsp + 0x50]
call fcn.140002690
lea rcx, [rsp + 0x30]
cmp qword [rsp + 0x48], 0x10
cmovae rcx, qword [rsp + 0x30]
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_system]
lea rcx, [rsp + 0x60]
call fcn.1400024c0
test rax, rax
jne 0x140001344
mov rax, qword [rsp + 0x50]
movsxd rcx, dword [rax + 4]
lea rax, [rsp + 0x50]
add rcx, rax
xor r8d, r8d
lea edx, [r8 + 2]
call qword [sym.imp.MSVCP140.dll_public:_void___cdecl_std::basic_ios_char__struct_std::char_traits_char__::setstate_int__bool____ptr64]
nop
mov rdx, qword [rsp + 0x48]
cmp rdx, 0x10
jb 0x140001393
inc rdx
mov rcx, qword [rsp + 0x30]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14000137f
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x14000137f
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.140002e0c
jmp 0x140001393
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cerr]
call fcn.140002870
nop
lea rcx, [rsp + 0x50]
call fcn.1400013c0
xor eax, eax
mov rcx, qword [rsp + 0x160]
xor rcx, rsp
call fcn.140002db0
add rsp, 0x178
ret
Function at 0x140001810
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 case.default.0x140001831
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 0x14000185e
mov rax, qword [rcx + 0x58]
mov ecx, dword [rax]
jmp 0x140001860
xor ecx, ecx
movsxd rbp, ecx
test rbx, rbx
jle 0x1400018b9
test ecx, ecx
jle 0x140001899
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 0x1400018b9
mov r9, qword [rdi + 0x80]
test r9, r9
je 0x1400018b9
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
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
Function at 0x1400018e0
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 0x140001902
xor eax, eax
add rsp, 0x30
pop r14
pop rsi
pop rbp
ret
cmp qword [rcx + 0x68], 0
je case.default.0x140001911
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 0x140001934
mov rax, qword [rcx + 0x50]
mov ecx, dword [rax]
jmp 0x140001936
xor ecx, ecx
movsxd rax, ecx
test ecx, ecx
je 0x140001972
mov qword [rsp + 0x20], 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 + 0x20]
add qword [rcx], rax
cmp qword [rsi + 0x80], 0
je 0x140001a0e
mov r8, qword [rsi + 0x18]
lea rax, [rsi + 0x70]
cmp qword [r8], rax
jne 0x1400019ad
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 0x1400019ee
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]
add r14, rax
sub rbx, rax
cmp rax, 0xfff
jne 0x140001a0e
cmp rbx, rax
ja 0x1400019c0
test rbx, rbx
je 0x140001a0e
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
sub rbp, rbx
mov rbx, qword [rsp + 0x28]
mov rax, rbp
add rsp, 0x30
pop r14
pop rsi
pop rbp
ret
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
Function at 0x140001e30
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 0x20], rbx
push rdi
sub rsp, 0x80
mov rax, qword [0x140007010]
xor rax, rsp
mov qword [rsp + 0x78], rax
mov edi, edx
mov rbx, rcx
cmp edx, 0xffffffff
jne 0x140001e5d
xor eax, eax
jmp 0x140001fc9
mov rax, qword [rcx + 0x40]
mov rdx, qword [rax]
test rdx, rdx
je 0x140001e97
mov rax, qword [rcx + 0x58]
movsxd r8, dword [rax]
lea rcx, [rdx + r8]
cmp rdx, rcx
jae 0x140001e97
lea ecx, [r8 - 1]
mov dword [rax], ecx
mov eax, edi
mov rdx, qword [rbx + 0x40]
mov r8, qword [rdx]
lea rcx, [r8 + 1]
mov qword [rdx], rcx
mov byte [r8], dil
jmp 0x140001fc9
cmp qword [rbx + 0x80], 0
mov qword [rsp + 0xa0], rsi
je 0x140001fbc
mov r8, qword [rbx + 0x18]
lea rax, [rbx + 0x70]
cmp qword [r8], rax
jne 0x140001eda
mov rcx, qword [rbx + 0x88]
mov rdx, qword [rbx + 0x90]
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 0x140001f05
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 0x140001fc1
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 0x140001f74
sub eax, 1
je 0x140001f74
cmp eax, 2
jne 0x140001fbc
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 0x140001fc1
mov rsi, qword [rsp + 0x40]
lea rax, [rsp + 0x58]
sub rsi, rax
je 0x140001fa2
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 0x140001fbc
lea rax, [rsp + 0x50]
mov byte [rbx + 0x71], 1
cmp qword [rsp + 0x48], rax
mov ecx, 0xffffffff
cmovne ecx, edi
mov eax, ecx
jmp 0x140001fc1
mov eax, 0xffffffff
mov rsi, qword [rsp + 0xa0]
mov rcx, qword [rsp + 0x78]
xor rcx, rsp
call fcn.140002db0
mov rbx, qword [rsp + 0xa8]
add rsp, 0x80
pop rdi
ret
Function at 0x1400023d0
Capabilities:
Write file on windows

Disassembly:
push rbx
sub rsp, 0x60
mov rax, qword [0x140007010]
xor rax, rsp
mov qword [rsp + 0x58], rax
cmp qword [rcx + 0x68], 0
mov rbx, rcx
je 0x1400024a3
cmp byte [rcx + 0x71], 0
je 0x1400024a3
mov rax, qword [rcx]
mov edx, 0xffffffff
mov qword [rsp + 0x78], rdi
call qword [rax + 0x18]
cmp eax, 0xffffffff
je 0x14000249f
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 0x140002464
sub eax, 1
je 0x140002468
cmp eax, 2
jne 0x14000249f
mov byte [rbx + 0x71], 0
mov al, 1
mov rdi, qword [rsp + 0x78]
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.140002db0
add rsp, 0x60
pop rbx
ret
mov byte [rbx + 0x71], 0
mov rdi, qword [rsp + 0x30]
lea rax, [rsp + 0x38]
sub rdi, rax
je 0x140002496
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 0x14000249f
cmp byte [rbx + 0x71], 0
sete al
jmp 0x14000244c
xor al, al
jmp 0x14000244c
mov al, 1
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.140002db0
add rsp, 0x60
pop rbx
ret

Function at 0x140003744
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x14000378e
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x14000378e
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x14000378e
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x14000378e
cmp dword [rcx + 0x84], 0xe
jbe 0x14000378e
cmp dword [rcx + 0xf8], 0
setne al
jmp 0x140003790
xor al, al
add rsp, 0x28
ret
Function at 0x140001010
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
mov rax, qword [0x140027d70]
xor ecx, ecx
mov dword [rax], 1
mov rax, qword [0x140027d80]
mov dword [rax], 1
mov rax, qword [0x140027d90]
mov dword [rax], 1
mov rax, qword [0x140027d20]
cmp word [rax], 0x5a4d
jne 0x14000105a
movsxd rdx, dword [rax + 0x3c]
add rax, rdx
cmp dword [rax], 0x4550
je 0x1400010c0
mov rax, qword [0x140027d60]
mov dword [0x14002d00c], ecx
mov eax, dword [rax]
test eax, eax
je 0x1400010b0
mov ecx, 2
call sym.__set_app_type
call dbg.__p__fmode
mov rdx, qword [0x140027e40]
mov edx, dword [rdx]
mov dword [rax], edx
call dbg.__p__commode
mov rdx, qword [0x140027e20]
mov edx, dword [rdx]
mov dword [rax], edx
call dbg._setargv
mov rax, qword [0x140027cd0]
cmp dword [rax], 1
je 0x1400010f8
xor eax, eax
add rsp, 0x28
ret
mov ecx, 1
call sym.__set_app_type
jmp 0x140001077
movzx edx, word [rax + 0x18]
cmp dx, 0x10b
je 0x140001110
cmp dx, 0x20b
jne 0x14000105a
cmp dword [rax + 0x84], 0xe
jbe 0x14000105a
mov edx, dword [rax + 0xf8]
xor ecx, ecx
test edx, edx
setne cl
jmp 0x14000105a
mov rcx, qword [dbg._matherr]
call dbg.__mingw_setusermatherr
xor eax, eax
add rsp, 0x28
ret
cmp dword [rax + 0x74], 0xe
jbe 0x14000105a
mov r8d, dword [rax + 0xe8]
xor ecx, ecx
test r8d, r8d
setne cl
jmp 0x14000105a