joyce8/EMBER2024-capa huggingface dataset:
Function at 0x180043080
Capabilities:
Check for software breakpoints

Disassembly:
mov qword [rsp + 0x10], rbx
mov dword [rsp + 0x20], r9d
mov qword [rsp + 8], rcx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x30
mov ebx, dword [rsp + 0x88]
mov r12, rdx
mov rdx, rcx
mov r14, r8
imul ecx, r9d, 0x48a
mov edi, r9d
mov dword [rsp + 0x24], ecx
cmp r9d, ecx
ja 0x1800431ca
mov r13, qword [rsp + 0x90]
mov r15d, dword [rsp + 0x88]
mov ebp, dword [rsp + 0x88]
mov esi, dword [rsp + 0x88]
mov ecx, dword [rsp + 0x88]
nop word [rax + rax]
cmp edi, 0x2085
ja 0x1800431b2
je 0x180043145
cmp edi, 0x19
je 0x180043127
cmp edi, 0xcc
je 0x18004320e
cmp edi, 0x104f
jne 0x1800431f1
mov ebp, 1
xor esi, esi
jmp 0x1800431f1
mov eax, dword [r14]
mov rdx, r14
mov ecx, 0xf0
mov dword [rsp + 0x20], eax
mov r15d, eax
call fcn.180055b30
mov ecx, eax
jmp 0x1800431f1
cmp esi, ebp
jge 0x1800431ab
nop dword [rax]
mov edi, 0x11
cmp edi, 0x11
je 0x180043173
cmp edi, 0x919
jne 0x180043199
mov rdx, r14
mov ecx, 0xf0
call fcn.180055b30
mov ecx, eax
jmp 0x180043199
cmp ecx, 1
je 0x180043230
mov eax, dword [r13]
test eax, eax
je 0x18004318a
cmp ecx, eax
jne 0x18004318a
inc ebp
cmp ecx, dword [r12]
jne 0x180043196
test eax, eax
je 0x1800431ab
inc esi
mov r15d, dword [r14]
add edi, 0x908
cmp edi, 0x1210
jbe 0x180043155
cmp esi, ebp
jl 0x180043150
mov edi, 0x2085
jmp 0x1800431f1
cmp edi, 0x30bb
je 0x1800431e7
cmp edi, 0x40f1
je 0x1800431e1
cmp edi, 0x5127
jne 0x1800431f1
mov eax, ebx
mov rbx, qword [rsp + 0x78]
add rsp, 0x30
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
mov ebx, dword [r12]
jmp 0x1800431f1
mov eax, dword [rsp + 0x20]
mov dword [rdx], r15d
mov dword [r14], eax
imul eax, dword [rsp + 0x88], 0xa6
add edi, eax
cmp edi, dword [rsp + 0x24]
ja 0x1800431ca
mov rdx, qword [rsp + 0x70]
jmp 0x1800430f0
movzx eax, word [r14]
cmp ax, 0x7f
jbe 0x180043230
mov ecx, 0x7ff
cmp ax, cx
ja 0x180043229
mov eax, 2
jmp 0x1800431cc
mov eax, 3
jmp 0x1800431cc
mov eax, 1
jmp 0x1800431cc
Function at 0x180054920
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x20], rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x50
mov ebx, dword [rsp + 0x90]
lea esi, [r8 - 9]
mov rbp, r9
mov r12, rdx
mov r15, rcx
cmp r8d, esi
jbe case.0x180054983.0
mov r13, qword [rsp + 0x40]
lea edi, [r8 - 0x5b]
mov r14, qword [rsp + 0x40]
lea rdx, [0x180000000]
nop
cmp edi, 0xd
ja case.0x180054983.5
mov ecx, dword [rdx + rdi*4 + 0x54b10]
add rcx, rdx
jmp rcx
mov r8d, 0x120
mov dword [rsp + 0x90], 0
mov rdx, rbp
lea rcx, [rsp + 0x90]
call fcn.180052660
mov qword [rsp + 0x40], rax
jmp 0x180054ac4
mov rcx, qword [rsp + 0x38]
xor r8d, r8d
mov rax, qword [r13 + 0x10]
mov r9, rbp
mov rdx, r13
mov qword [rax + 0x30], rcx
lea ecx, [r8 + 0x64]
call fcn.180005740
jmp 0x180054ac4
mov rcx, r14
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_ftell]
mov rcx, r14
mov dword [r15], eax
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_rewind]
mov eax, dword [r15]
inc eax
movsxd rcx, eax
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
mov qword [r12], rax
jmp 0x180054ac4
lea rdx, [0x180062930]
mov rcx, rbp
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fopen]
mov r14, rax
test rax, rax
je case.0x180054983.10
xor edx, edx
mov rcx, rax
lea r8d, [rdx + 2]
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fseek]
jmp 0x180054ac4
movsxd r8, dword [r15]
xor edx, edx
mov rcx, qword [r12]
call sub.VCRUNTIME140.dll_memset
movsxd r8, dword [r15]
mov r9, r14
mov rcx, qword [r12]
mov edx, 1
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
mov rcx, r14
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
xor ebx, ebx
jmp 0x180054ac4
mov r8d, 0x120
mov dword [rsp + 0x30], 1
mov rdx, rbp
lea rcx, [rsp + 0x30]
call fcn.180052660
mov rcx, qword [rsp + 0x40]
mov rdx, rax
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fopen]
mov qword [rsp + 0x38], rax
cmp rax, 0
je 0x180054af8
lea rax, [rsp + 0x30]
mov qword [rsp + 0x28], rbp
mov r9d, 0x2d
mov qword [rsp + 0x20], rax
lea r8, [0x1800401a0]
mov dword [rsp + 0x30], 1
xor edx, edx
xor ecx, ecx
call fcn.180051780
mov r13, rax
lea rdx, [0x180000000]
dec edi
lea eax, [rdi + 0x5b]
cmp eax, esi
ja 0x180054970
mov eax, ebx
lea r11, [rsp + 0x50]
mov rbx, qword [r11 + 0x30]
mov rbp, qword [r11 + 0x38]
mov rsi, qword [r11 + 0x48]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rdi
ret
xor r8d, r8d
mov edx, 0x95
mov rcx, rbp
call fcn.18003ff60
mov eax, 1
jmp 0x180054ada
Function at 0x1800561a0
Capabilities:
Delete file

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x60
lea esi, [rcx - 0xe]
mov rbx, r9
mov rbp, r8
mov r14, rdx
cmp ecx, esi
jbe case.0x180056222.11
mov r15, qword [rsp + 0x50]
lea edi, [rcx - 0x1d]
mov r12d, dword [rsp + 0x90]
lea r13, [0x180000000]
xor edx, edx
lea r11, [0x180014770]
lea r10, [0x180014bb0]
lea r9, [0x180014780]
lea r8, [0x180014700]
cmp edi, 0x30
ja case.0x180056222.14
movzx eax, byte [rdi + r13 + 0x5642c]
mov ecx, dword [r13 + rax*4 + 0x563f0]
add rcx, r13
jmp rcx
mov qword [rbx + 0x48], r15
mov qword [rbx + 0x30], r8
mov qword [rbx + 0x38], r14
jmp case.0x180056222.14
xor edx, edx
mov r8d, 0x288
mov rcx, rbx
call sub.VCRUNTIME140.dll_memset
mov qword [rbx + 0x260], 0xffffffffffffffff
mov byte [rbx + 0x284], 1
jmp case.0x180056222.14
mov qword [r15], rbp
mov qword [rbx + 0x40], r9
jmp case.0x180056222.14
mov qword [rbx + 0x28], rbp
mov qword [rbx + 0x50], r10
jmp case.0x180056222.14
mov qword [rsp + 0x48], rdx
xor r9d, r9d
mov qword [rsp + 0x40], rdx
xor r8d, r8d
mov dword [rsp + 0x38], 0x104
mov rcx, rbx
mov qword [rsp + 0x30], rdx
mov qword [rsp + 0x28], rdx
xor edx, edx
mov qword [rsp + 0x20], r14
call fcn.180043240
mov edx, reloc.SHLWAPI.dll_SHStripMneumonicW
mov dword [rsp + 0x90], eax
lea rcx, [rsp + 0x90]
call fcn.180033a20
mov dword [rsp + 0x90], eax
jmp case.0x180056222.14
mov qword [rbx + 0x20], r11
jmp case.0x180056222.14
mov qword [0x18006e2f0], rbx
lea rax, [0x18000eea0]
mov qword [rbx + 0x10], rax
mov qword [rbx + 0x18], r14
jmp case.0x180056222.14
mov dword [rsp + 0x50], edx
lea rcx, [rsp + 0x50]
mov rdx, rbx
mov r8d, 0x120
call fcn.180052660
mov rcx, rax
call qword [sym.imp.api_ms_win_crt_filesystem_l1_1_0.dll_remove]
mov r12d, eax
jmp case.0x180056222.14
mov dword [rbx + 0x28], 0x238
jmp case.0x180056222.14
test rbx, rbx
jne 0x180056345
mov dword [rsp + 0x50], edx
lea r9, [0x180062423]
mov edx, 0xa8
lea r8, [rsp + 0x50]
lea rcx, str.a___NULL
call fcn.1800175c0
xor edx, edx
test r14, r14
jne case.0x180056222.14
mov dword [rsp + 0x50], edx
lea r9, [0x180062423]
mov edx, 0xa8
lea r8, [rsp + 0x50]
lea rcx, str.b___NULL
call fcn.1800175c0
jmp case.0x180056222.14
mov ecx, 8
call fcn.18005b14c
mov r15, rax
dec edi
lea ecx, [rdi + 0x1d]
cmp ecx, esi
ja 0x1800561e7
mov eax, dword [rsp + 0x90]
lea r11, [rsp + 0x60]
mov rbx, qword [r11 + 0x38]
mov rbp, qword [r11 + 0x40]
mov rsi, qword [r11 + 0x48]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rdi
ret
mov rcx, qword [rbp + 0xb8]
mov r8d, 0x33
mov rdx, rbx
call fcn.18001cc70
mov byte [rsp + 0x90], al
jmp case.0x180056222.11
mov r8, rbx
mov dword [rsp + 0x90], r12d
lea rdx, [rsp + 0x90]
mov ecx, 0xc1
call fcn.18004e250
mov eax, 1
jmp 0x18005638e

Function at 0x18005a910
Capabilities:
Create thread

Disassembly:
mov rax, r8
mov r9, rdx
mov r8, rcx
mov edx, 0xee
mov rcx, rax
jmp fcn.18003d0e0
Function at 0x140001d1c
Capabilities:
Parse pe header

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

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rdi
push r14
sub rsp, 0x20
cmp qword [rcx + 0x68], 0
mov rbx, r8
mov r14, rdx
mov rdi, rcx
je case.default.0x140004360
mov rbx, qword [rsp + 0x40]
mov rdi, 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__::xsputn_char_const____ptr64__long_long___int64_____ptr64]
mov rax, qword [rcx + 0x40]
mov qword [rsp + 0x30], rbp
mov qword [rsp + 0x38], rsi
mov rsi, rbx
mov r9, qword [rax]
test r9, r9
je 0x140004388
mov rax, qword [rcx + 0x58]
mov ecx, dword [rax]
jmp 0x14000438a
xor ecx, ecx
movsxd rbp, ecx
test rbx, rbx
jle 0x1400043e3
test ecx, ecx
jle 0x1400043c3
cmp rbx, rbp
mov rcx, r9
cmovl rbp, rbx
mov r8, rbp
call sub.VCRUNTIME140.dll_memcpy
mov rax, qword [rdi + 0x58]
sub rbx, rbp
add r14, rbp
sub dword [rax], ebp
mov rcx, qword [rdi + 0x40]
movsxd rax, ebp
add qword [rcx], rax
test rbx, rbx
jle 0x1400043e3
mov r9, qword [rdi + 0x80]
test r9, r9
je 0x1400043e3
mov r8, rbx
mov edx, 1
mov rcx, r14
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
sub rbx, rax
mov rbp, qword [rsp + 0x30]
sub rsi, rbx
mov rbx, qword [rsp + 0x40]
mov rax, rsi
mov rsi, qword [rsp + 0x38]
mov rdi, qword [rsp + 0x48]
add rsp, 0x20
pop r14
ret
xor eax, 0x4522b366
invalid
Function at 0x140004410
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 0x140004441
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 case.default.0x140004458
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 + 0x38], rdi
mov rdi, rbp
mov rdx, qword [rax]
test rdx, rdx
je 0x14000447b
mov rax, qword [rcx + 0x50]
mov ecx, dword [rax]
jmp 0x14000447d
xor ecx, ecx
mov qword [rsp + 0x30], rbx
movsxd rax, ecx
test ecx, ecx
je 0x1400044b7
cmp rax, rbp
mov rbx, rbp
mov rcx, r14
cmovb rbx, rax
mov r8, rbx
call sub.VCRUNTIME140.dll_memcpy
mov rax, qword [rsi + 0x50]
sub rdi, rbx
add r14, rbx
mov r8, rdi
sub dword [rax], ebx
mov rcx, qword [rsi + 0x38]
movsxd rax, ebx
add qword [rcx], rax
cmp qword [rsi + 0x80], 0
je 0x140004557
mov r9, qword [rsi + 0x18]
lea rax, [rsi + 0x70]
cmp qword [r9], rax
jne 0x1400044f2
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 rbx, r8
cmp r8, 0xfff
jbe 0x140004531
nop
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 rdi, rax
add r14, rax
mov rbx, rdi
cmp rax, 0xfff
jne 0x140004578
cmp rdi, rax
ja 0x140004500
mov r8, rbx
test rbx, rbx
je 0x140004557
mov r9, qword [rsi + 0x80]
mov r8, rdi
mov edx, 1
mov rcx, r14
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
mov r8, rbx
sub r8, rax
sub rbp, r8
mov rbx, qword [rsp + 0x30]
mov rax, rbp
mov rbp, qword [rsp + 0x40]
mov rdi, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x48]
add rsp, 0x20
pop r14
ret
sub rbp, rdi
jmp 0x14000455a
invalid
Function at 0x1400049c0
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 0x20], rbx
push rdi
sub rsp, 0x80
mov rax, qword [0x140010010]
xor rax, rsp
mov qword [rsp + 0x78], rax
mov edi, edx
mov rbx, rcx
cmp edx, 0xffffffff
jne 0x1400049ed
xor eax, eax
jmp 0x140004b42
mov rdx, qword [rcx + 0x40]
mov rax, qword [rdx]
test rax, rax
je 0x140004a18
mov rdx, qword [rcx + 0x58]
movsxd r8, dword [rdx]
add r8, rax
cmp rax, r8
jae 0x140004a18
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 0x140004b42
cmp qword [rcx + 0x80], 0
mov qword [rsp + 0xa0], rsi
je 0x140004b35
mov r8, qword [rcx + 0x18]
lea rax, [rcx + 0x70]
cmp qword [r8], rax
jne 0x140004a5b
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 0x140004a86
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 0x140004b3a
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
js 0x140004b35
cmp eax, 1
jle 0x140004af5
cmp eax, 3
jne 0x140004b35
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 0x140004b3a
mov rsi, qword [rsp + 0x48]
lea rax, [rsp + 0x58]
sub rsi, rax
je 0x140004b23
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 0x140004b35
lea rax, [rsp + 0x40]
mov byte [rbx + 0x71], 1
cmp qword [rsp + 0x50], rax
mov eax, edi
jne 0x140004b3a
mov eax, 0xffffffff
mov rsi, qword [rsp + 0xa0]
mov rcx, qword [rsp + 0x78]
xor rcx, rsp
call fcn.140008b50
mov rbx, qword [rsp + 0xa8]
add rsp, 0x80
pop rdi
ret
Function at 0x140004e90
Capabilities:
Write file on windows

Disassembly:
push rbx
sub rsp, 0x60
mov rax, qword [0x140010010]
xor rax, rsp
mov qword [rsp + 0x58], rax
cmp qword [rcx + 0x68], 0
mov rbx, rcx
je 0x140004f6a
cmp byte [rcx + 0x71], 0
je 0x140004f6a
mov rax, qword [rcx]
mov edx, 0xffffffff
mov qword [rsp + 0x78], rdi
mov rax, qword [rax + 0x18]
call qword [0x14000b568]
cmp eax, 0xffffffff
je 0x140004f66
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 0x140004f2b
sub eax, 1
je 0x140004f2f
cmp eax, 2
jne 0x140004f66
mov byte [rbx + 0x71], 0
mov al, 1
mov rdi, qword [rsp + 0x78]
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.140008b50
add rsp, 0x60
pop rbx
ret
mov byte [rbx + 0x71], 0
mov rdi, qword [rsp + 0x30]
lea rax, [rsp + 0x38]
sub rdi, rax
je 0x140004f5d
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 0x140004f66
cmp byte [rbx + 0x71], 0
sete al
jmp 0x140004f13
xor al, al
jmp 0x140004f13
mov al, 1
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.140008b50
add rsp, 0x60
pop rbx
ret
Function at 0x1400022c0
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.0x1400022e1
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 0x14000230e
mov rax, qword [rcx + 0x58]
mov ecx, dword [rax]
jmp 0x140002310
xor ecx, ecx
movsxd rbp, ecx
test rbx, rbx
jle 0x140002369
test ecx, ecx
jle 0x140002349
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 0x140002369
mov r9, qword [rdi + 0x80]
test r9, r9
je 0x140002369
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
push rsp
dec dword [rsi]
or dword [rdi + rdi*8 + 0xe], edx
or dword [rdi + rdi*8 + 0xe], edx
or dword [rdi + rdi*8 + 0xe], edx
or dword [rdi + rdi*8 + 0xe], edx
or dword [rdi + rdi*8 + 0xe], edx
or dword [rdi + rdi*8 + 0xe], edx
or dword [rdi + rdi*8 + 0xe], edx
or dword [rdi + rdi*8 + 0xe], edx
or dword [rdi + rdi*8 + 0xe], edx
or dword [rdi + rdi*8 + 0xe], edx
or dword [rdi + rdi*8 + 0xe], edx
or dword [rdi + rdi*8 + 0xe], edx
or dword [rdi + rdi*8 + 0xe], edx
or dword [rdi + rdi*8 + 0xe], edx
or dword [rdi + rdi*8 + 0xe], edx
or dword [rdi + rdi*8 + 0xe], edx
or dword [rdi + rdi*8 + 0xe], edx
or dword [rdi + rdi*8 + 0xe], edx
or dword [rdi + rdi*8 + 0xe], edx
or dword [rdi + rdi*8 + 0xe], edx
push rsp
dec dword [rsi]
Function at 0x140002390
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 0x1400023b2
xor eax, eax
add rsp, 0x30
pop r14
pop rsi
pop rbp
ret
cmp qword [rcx + 0x68], 0
je case.default.0x1400023c1
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 0x1400023e4
mov rax, qword [rcx + 0x50]
mov ecx, dword [rax]
jmp 0x1400023e6
xor ecx, ecx
movsxd rax, ecx
test ecx, ecx
je 0x140002422
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 0x1400024be
mov r8, qword [rsi + 0x18]
lea rax, [rsi + 0x70]
cmp qword [r8], rax
jne 0x14000245d
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 0x14000249e
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 0x1400024be
cmp rbx, rax
ja 0x140002470
test rbx, rbx
je 0x1400024be
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
inc dword [rax]
invalid
Function at 0x1400028f0
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 0x20], rbx
push rdi
sub rsp, 0x80
mov rax, qword [0x140009010]
xor rax, rsp
mov qword [rsp + 0x78], rax
mov edi, edx
mov rbx, rcx
cmp edx, 0xffffffff
jne 0x14000291d
xor eax, eax
jmp 0x140002a89
mov rax, qword [rcx + 0x40]
mov rdx, qword [rax]
test rdx, rdx
je 0x140002957
mov rax, qword [rcx + 0x58]
movsxd r8, dword [rax]
lea rcx, [rdx + r8]
cmp rdx, rcx
jae 0x140002957
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 0x140002a89
cmp qword [rbx + 0x80], 0
mov qword [rsp + 0xa0], rsi
je 0x140002a7c
mov r8, qword [rbx + 0x18]
lea rax, [rbx + 0x70]
cmp qword [r8], rax
jne 0x14000299a
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 0x1400029c5
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 0x140002a81
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 0x140002a34
sub eax, 1
je 0x140002a34
cmp eax, 2
jne 0x140002a7c
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 0x140002a81
mov rsi, qword [rsp + 0x40]
lea rax, [rsp + 0x58]
sub rsi, rax
je 0x140002a62
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 0x140002a7c
lea rax, [rsp + 0x50]
mov byte [rbx + 0x71], 1
cmp qword [rsp + 0x48], rax
mov ecx, 0xffffffff
cmovne ecx, edi
mov eax, ecx
jmp 0x140002a81
mov eax, 0xffffffff
mov rsi, qword [rsp + 0xa0]
mov rcx, qword [rsp + 0x78]
xor rcx, rsp
call fcn.140003750
mov rbx, qword [rsp + 0xa8]
add rsp, 0x80
pop rdi
ret
Function at 0x140002ee0
Capabilities:
Write file on windows

Disassembly:
push rbx
sub rsp, 0x60
mov rax, qword [0x140009010]
xor rax, rsp
mov qword [rsp + 0x58], rax
cmp qword [rcx + 0x68], 0
mov rbx, rcx
je 0x140002fb3
cmp byte [rcx + 0x71], 0
je 0x140002fb3
mov rax, qword [rcx]
mov edx, 0xffffffff
mov qword [rsp + 0x78], rdi
call qword [rax + 0x18]
cmp eax, 0xffffffff
je 0x140002faf
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 0x140002f74
sub eax, 1
je 0x140002f78
cmp eax, 2
jne 0x140002faf
mov byte [rbx + 0x71], 0
mov al, 1
mov rdi, qword [rsp + 0x78]
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.140003750
add rsp, 0x60
pop rbx
ret
mov byte [rbx + 0x71], 0
mov rdi, qword [rsp + 0x30]
lea rax, [rsp + 0x38]
sub rdi, rax
je 0x140002fa6
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 0x140002faf
cmp byte [rbx + 0x71], 0
sete al
jmp 0x140002f5c
xor al, al
jmp 0x140002f5c
mov al, 1
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.140003750
add rsp, 0x60
pop rbx
ret

Function at 0x1400040e4
Capabilities:
Parse pe header

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