joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140003ad0
Capabilities:
Parse pe header

Disassembly:
push rbx
sub rsp, 0x40
mov qword [rsp + 0x58], rdx
mov rbx, r8
xor edx, edx
test rcx, rcx
je 0x140003b04
cmp word [rcx], 0x5a4d
jne 0x140003b04
movsxd rax, dword [rcx + 0x3c]
cmp eax, 0x400
jg 0x140003b04
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x140003b04
mov edx, dword [rcx + 0x28]
add rdx, qword [rsp + 0x58]
mov rcx, rbx
call fcn.140003a10
test eax, eax
jne 0x140003b20
xor eax, eax
add rsp, 0x40
pop rbx
ret
mov rcx, rbx
call fcn.140003a80
test rax, rax
je 0x140003b15
lea rdx, [rax + 0x10]
lea rax, [rsp + 0x38]
mov rcx, qword [rbx]
mov r9d, 8
mov qword [rsp + 0x20], rax
lea r8, [rsp + 0x58]
mov qword [rsp + 0x38], 0
call fcn.1400042cc
not eax
shr eax, 0x1f
add rsp, 0x40
pop rbx
ret

Function at 0x1400041d0
Capabilities:
Execute syscall

Disassembly:
pop rax
mov qword [rsp + 8], rcx
mov qword [rsp + 0x10], rdx
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x20], r9
sub rsp, 0x28
mov rcx, r10
call fcn.140004170
add rsp, 0x28
mov rcx, qword [rsp + 8]
mov rdx, qword [rsp + 0x10]
mov r8, qword [rsp + 0x18]
mov r9, qword [rsp + 0x20]
mov r10, rcx
syscall
ret

Function at 0x140004634
Capabilities:
Allocate or change rwx memory

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x50
mov rax, qword [0x140469378]
xor ebx, ebx
add rax, 0x18
mov r12, rcx
mov ecx, dword [0x140469374]
mov rsi, rdx
mov rdi, r8
cmp ebx, ecx
jge 0x140004682
mov rdx, qword [rax]
cmp r12, rdx
jb 0x14000467a
mov r8, qword [rax + 8]
mov r8d, dword [r8 + 8]
add rdx, r8
cmp r12, rdx
jb 0x140004769
inc ebx
add rax, 0x28
jmp 0x14000465a
mov rcx, r12
call fcn.140004e61
mov rbp, rax
test rax, rax
jne 0x1400046a1
mov rdx, r12
lea rcx, str.Address__p_has_no_image_section
call fcn.1400045d0
movsxd rbx, ebx
mov rax, qword [0x140469378]
xor edx, edx
imul rbx, rbx, 0x28
add rax, rbx
mov dword [rax], edx
mov qword [rax + 0x20], rbp
call fcn.140004f0f
mov edx, dword [rbp + 0xc]
mov r8d, 0x30
lea rcx, [rax + rdx]
mov rax, qword [0x140469378]
lea rdx, [rsp + 0x20]
mov qword [rax + rbx + 0x18], rcx
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
jne 0x140004703
mov rax, qword [0x140469378]
mov edx, dword [rbp + 8]
lea rcx, str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov r8, qword [rax + rbx + 0x18]
call fcn.1400045d0
mov eax, dword [rsp + 0x44]
lea edx, [rax - 4]
and edx, 0xfffffffb
je 0x140004763
lea edx, [rax - 0x40]
and edx, 0xffffffbf
je 0x140004763
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 [0x140469378]
mov qword [rbx + 8], rcx
mov r9, rbx
mov qword [rbx + 0x10], rdx
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x140004763
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.__VirtualProtect_failed_with_code_0x_x
mov edx, eax
call fcn.1400045d0
inc dword [0x140469374]
mov ecx, edi
mov rdi, r12
rep movsb byte [rdi], byte [rsi]
add rsp, 0x50
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret
Function at 0x140004b90
Capabilities:
Get thread local storage value

Disassembly:
push rdi
push rsi
push rbx
sub rsp, 0x20
lea rdi, [0x1404693e0]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rbx, qword [0x1404693c0]
test rbx, rbx
je 0x140004bdc
mov ecx, dword [rbx]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rsi, rax
call qword [sym.imp.KERNEL32.dll_GetLastError]
test rsi, rsi
je 0x140004bd6
test eax, eax
jne 0x140004bd6
mov rax, qword [rbx + 8]
mov rcx, rsi
call rax
mov rbx, qword [rbx + 0x10]
jmp 0x140004bae
mov rcx, rdi
add rsp, 0x20
pop rbx
pop rsi
pop rdi
jmp qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]

Function at 0x140004d90
Capabilities:
Parse pe header

Disassembly:
xor eax, eax
cmp word [rcx], 0x5a4d
jne 0x140004db3
movsxd rdx, dword [rcx + 0x3c]
add rcx, rdx
cmp dword [rcx], 0x4550
jne 0x140004db3
xor eax, eax
cmp word [rcx + 0x18], 0x20b
sete al
ret

Function at 0x140004db4
Capabilities:
Enumerate pe sections

Disassembly:
xor r8d, r8d
movsxd rax, dword [rcx + 0x3c]
add rcx, rax
movzx eax, word [rcx + 0x14]
movzx r9d, word [rcx + 6]
lea rax, [rcx + rax + 0x18]
cmp r8d, r9d
jae 0x140004dee
mov r10d, dword [rax + 0xc]
mov rcx, r10
cmp rdx, r10
jb 0x140004de5
add ecx, dword [rax + 8]
cmp rdx, rcx
jb 0x140004df0
inc r8d
add rax, 0x28
jmp 0x140004dcc
xor eax, eax
ret

Function at 0x140004e61
Capabilities:
Enumerate pe sections

Disassembly:
sub rsp, 0x28
mov r9, qword [0x140465490]
mov r8, rcx
mov rcx, r9
call fcn.140004d90
test eax, eax
je 0x140004e8d
mov rdx, r8
mov rcx, r9
sub rdx, r9
add rsp, 0x28
jmp fcn.140004db4
xor eax, eax
add rsp, 0x28
ret
Function at 0x140013ec0
Capabilities:
Parse pe header

Disassembly:
xor r8d, r8d
xor edx, edx
jmp 0x140013cec

Function at 0x14000207c
Capabilities:
Parse pe header

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

Function at 0x140001276
Capabilities:
Allocate or change rwx memory

Disassembly:
sub rsp, 0x28
mov r8d, 0x3000
mov r9d, 0x40
call sub.KERNEL32.dll_VirtualAlloc
add rsp, 0x28
ret
Function at 0x140003a50
Capabilities:
Get file version info

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x160
mov rax, qword [0x1400de438]
xor rax, rsp
mov qword [rsp + 0x150], rax
mov rbx, rdx
mov qword [rsp + 0x38], rdx
mov dword [rsp + 0x20], 0
mov rcx, rdx
call qword [sym.imp.mfc140.dll_Ordinal_316]
mov dword [rsp + 0x20], 1
mov byte [rsp + 0x40], 0
mov r8d, Ordinal_265
lea rdx, [rsp + 0x40]
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
lea rdx, [rsp + 0x24]
lea rcx, [rsp + 0x40]
call sub.VERSION.dll_GetFileVersionInfoSizeA
mov esi, eax
test eax, eax
je 0x140003b29
mov ecx, esi
call sub.mfc140.dll_Ordinal_265
mov rdi, rax
mov r9, rax
mov r8d, esi
mov edx, dword [rsp + 0x24]
lea rcx, [rsp + 0x40]
call sub.VERSION.dll_GetFileVersionInfoA
test eax, eax
je 0x140003b20
lea r9, [rsp + 0x28]
lea r8, [rsp + 0x30]
lea rdx, [0x1400a2f18]
mov rcx, rdi
call sub.VERSION.dll_VerQueryValueA
test eax, eax
je 0x140003b20
mov rax, qword [rsp + 0x30]
movzx r8d, word [rax + 0xa]
movzx r9d, word [rax + 8]
lea rdx, str._d._d
mov rcx, rbx
call qword [sym.imp.mfc140.dll_Ordinal_4648]
mov rcx, rdi
call sub.mfc140.dll_Ordinal_266
nop
mov rax, rbx
jmp 0x140003b33
mov rcx, qword [rsp + 0x150]
xor rcx, rsp
call fcn.14008bb30
lea r11, [rsp + 0x160]
mov rbx, qword [r11 + 0x10]
mov rsi, qword [r11 + 0x20]
mov rsp, r11
pop rdi
ret
Function at 0x1400071d0
Capabilities:
Load windows common language runtime

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x18], rsi
push rbp
push rdi
push r14
lea rbp, [rsp - 0x80]
sub rsp, 0x180
mov rax, qword [0x1400de438]
xor rax, rsp
mov qword [rbp + 0x70], rax
mov rsi, rdx
mov rdi, rcx
mov qword [rsp + 0x50], rdx
xor r14d, r14d
lea rdx, [rsp + 0x28]
call fcn.140003b60
nop
lea r8, str..dll
mov rdx, rsi
lea rcx, [rsp + 0x38]
call fcn.140001f30
nop
mov rbx, qword [rsp + 0x38]
mov edx, 0x104
lea rcx, [rsp + 0x28]
call qword [sym.imp.mfc140.dll_Ordinal_4937]
mov rcx, rax
mov rdx, rbx
call qword [sym.imp.SHLWAPI.dll_PathAppendA]
lea edx, [r14 - 1]
lea rcx, [rsp + 0x28]
call qword [sym.imp.mfc140.dll_Ordinal_12189]
lea rdx, [rsp + 0x28]
mov rcx, rdi
call fcn.1400037f0
test al, al
je 0x140007389
mov byte [rsp + 0x20], r14b
mov qword [rsp + 0x40], r14
lea r8, [rsp + 0x40]
lea rdx, [0x1400a2a30]
lea rcx, [0x1400a2a40]
call sub.mscoree.dll_CLRCreateInstance
test eax, eax
js 0x140007389
mov qword [rsp + 0x30], r14
mov qword [rsp + 0x48], r14
mov rcx, qword [rsp + 0x40]
mov rax, qword [rcx]
lea r9, [rsp + 0x48]
lea r8, [0x1400a2a90]
lea rdx, str.v4.0.30319
call qword [rax + 0x18]
test eax, eax
js 0x140007378
mov rcx, qword [rsp + 0x48]
mov rax, qword [rcx]
lea r9, [rsp + 0x30]
lea r8, [0x1400a2aa0]
lea rdx, [0x1400a2a20]
call qword [rax + 0x48]
test eax, eax
js 0x140007378
mov rbx, qword [rsp + 0x30]
lea rax, [rsp + 0x68]
mov qword [rsp + 0x60], rax
lea r8d, [r14 + 3]
mov rdx, qword [rsp + 0x28]
lea rcx, [rsp + 0x60]
call fcn.140003d80
nop
mov rax, qword [rbx]
lea r9, [rsp + 0x20]
mov r8b, 1
mov rdx, qword [rsp + 0x60]
mov rcx, rbx
call qword [rax + 0xb8]
mov ebx, eax
lea rax, [rsp + 0x68]
mov rcx, qword [rsp + 0x60]
cmp rcx, rax
je 0x14000733e
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
test ebx, ebx
js 0x140007378
mov rcx, qword [rsp + 0x30]
test rcx, rcx
je 0x140007353
mov rax, qword [rcx]
call qword [rax + 0x10]
nop
lea rcx, [rsp + 0x38]
call qword [sym.imp.mfc140.dll_Ordinal_1032]
nop
lea rcx, [rsp + 0x28]
call qword [sym.imp.mfc140.dll_Ordinal_1032]
nop
mov rcx, rsi
call qword [sym.imp.mfc140.dll_Ordinal_1032]
mov al, 1
jmp 0x1400073ac
mov rcx, qword [rsp + 0x30]
test rcx, rcx
je 0x140007389
mov rax, qword [rcx]
call qword [rax + 0x10]
nop
lea rcx, [rsp + 0x38]
call qword [sym.imp.mfc140.dll_Ordinal_1032]
nop
lea rcx, [rsp + 0x28]
call qword [sym.imp.mfc140.dll_Ordinal_1032]
nop
mov rcx, rsi
call qword [sym.imp.mfc140.dll_Ordinal_1032]
xor al, al
mov rcx, qword [rbp + 0x70]
xor rcx, rsp
call fcn.14008bb30
lea r11, [rsp + 0x180]
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x30]
mov rsp, r11
pop r14
pop rdi
pop rbp
ret
Function at 0x14000ccc0
Capabilities:
Query or enumerate registry value

Disassembly:
mov qword [rsp + 0x20], rbx
push rdi
sub rsp, 0x160
mov rax, qword [0x1400de438]
xor rax, rsp
mov qword [rsp + 0x150], rax
mov rdi, r8
lea rax, [rsp + 0x38]
xor r8d, r8d
mov qword [rsp + 0x20], rax
mov r9d, 1
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov ebx, eax
test eax, eax
jne 0x14000cd3b
mov rcx, qword [rsp + 0x38]
lea r9, [rsp + 0x30]
lea r8, [rsp + 0x40]
mov dword [rsp + 0x30], Ordinal_266
xor edx, edx
call qword [sym.imp.ADVAPI32.dll_RegQueryValueA]
lea rdx, [rsp + 0x40]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_lstrcpyA]
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, ebx
mov rcx, qword [rsp + 0x150]
xor rcx, rsp
call fcn.14008bb30
mov rbx, qword [rsp + 0x188]
add rsp, 0x160
pop rdi
ret

Function at 0x14000fa50
Capabilities:
Write file on windows

Disassembly:
push rbx
sub rsp, 0x60
mov rax, qword [0x1400de438]
xor rax, rsp
mov qword [rsp + 0x58], rax
cmp qword [rcx + 0x68], 0
mov rbx, rcx
je 0x14000fb23
cmp byte [rcx + 0x71], 0
je 0x14000fb23
mov rax, qword [rcx]
mov edx, 0xffffffff
mov qword [rsp + 0x78], rdi
call qword [rax + 0x18]
cmp eax, 0xffffffff
je 0x14000fb1f
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 0x14000fae4
sub eax, 1
je 0x14000fae8
cmp eax, 2
jne 0x14000fb1f
mov byte [rbx + 0x71], 0
mov al, 1
mov rdi, qword [rsp + 0x78]
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.14008bb30
add rsp, 0x60
pop rbx
ret
mov byte [rbx + 0x71], 0
mov rdi, qword [rsp + 0x30]
lea rax, [rsp + 0x38]
sub rdi, rax
je 0x14000fb16
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 0x14000fb1f
cmp byte [rbx + 0x71], 0
sete al
jmp 0x14000facc
xor al, al
jmp 0x14000facc
mov al, 1
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.14008bb30
add rsp, 0x60
pop rbx
ret
Function at 0x140010be0
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 0x20], rbx
push rdi
sub rsp, 0x80
mov rax, qword [0x1400de438]
xor rax, rsp
mov qword [rsp + 0x78], rax
mov edi, edx
mov rbx, rcx
cmp edx, 0xffffffff
jne 0x140010c0d
xor eax, eax
jmp 0x140010d6a
mov rdx, qword [rcx + 0x40]
mov rax, qword [rdx]
test rax, rax
je 0x140010c38
mov rdx, qword [rcx + 0x58]
movsxd r8, dword [rdx]
add r8, rax
cmp rax, r8
jae 0x140010c38
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 0x140010d6a
cmp qword [rcx + 0x80], 0
mov qword [rsp + 0xa0], rsi
je 0x140010d5d
mov r8, qword [rcx + 0x18]
lea rax, [rcx + 0x70]
cmp qword [r8], rax
jne 0x140010c7b
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 0x140010ca6
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 0x140010d62
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 0x140010d15
sub eax, 1
je 0x140010d15
cmp eax, 2
jne 0x140010d5d
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 0x140010d62
mov rsi, qword [rsp + 0x48]
lea rax, [rsp + 0x58]
sub rsi, rax
je 0x140010d43
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 0x140010d5d
lea rax, [rsp + 0x40]
mov byte [rbx + 0x71], 1
cmp qword [rsp + 0x50], rax
mov ecx, 0xffffffff
cmovne ecx, edi
mov eax, ecx
jmp 0x140010d62
mov eax, 0xffffffff
mov rsi, qword [rsp + 0xa0]
mov rcx, qword [rsp + 0x78]
xor rcx, rsp
call fcn.14008bb30
mov rbx, qword [rsp + 0xa8]
add rsp, 0x80
pop rdi
ret
Function at 0x140011e40
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 0x140011e71
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.0x140011e88
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 0x140011eab
mov rax, qword [rcx + 0x50]
mov ecx, dword [rax]
jmp 0x140011ead
xor ecx, ecx
movsxd rax, ecx
test ecx, ecx
je 0x140011ee9
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 0x140011f7e
mov r8, qword [rsi + 0x18]
lea rax, [rsi + 0x70]
cmp qword [r8], rax
jne 0x140011f24
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 0x140011f5e
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 0x140011f7e
cmp rbx, rax
ja 0x140011f30
test rbx, rbx
je 0x140011f7e
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 0x140011fa0
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.0x140011fc1
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 0x140011fee
mov rax, qword [rcx + 0x58]
mov ecx, dword [rax]
jmp 0x140011ff0
xor ecx, ecx
movsxd rbp, ecx
test rbx, rbx
jle 0x140012049
test ecx, ecx
jle 0x140012029
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 0x140012049
mov r9, qword [rdi + 0x80]
test r9, r9
je 0x140012049
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 0x140013810
Capabilities:
Read file on windows

Disassembly:
sub rsp, 0x68
mov rax, qword [0x1400de438]
xor rax, rsp
mov qword [rsp + 0x58], rax
mov rcx, qword [0x1400e1008]
cmp dword [rcx - 0x10], 0
je 0x14001392b
lea rdx, [0x1400a55f8]
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fopen]
mov qword [0x1400e0f68], rax
test rax, rax
je 0x14001392b
mov edx, 0xe
lea rcx, [rsp + 0x20]
mov r9, rax
lea r8d, [rdx - 0xd]
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
mov eax, 0x4d42
cmp word [rsp + 0x20], ax
je 0x1400138a0
mov rcx, qword [0x1400e0f68]
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
xor eax, eax
mov qword [0x1400e0f68], 0
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.14008bb30
add rsp, 0x68
ret
mov r9, qword [0x1400e0f68]
lea rcx, [rsp + 0x30]
mov edx, 0x28
lea r8d, [rdx - 0x27]
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
cmp word [rsp + 0x3c], 1
jne 0x140013901
cmp word [rsp + 0x3e], 8
jne 0x140013901
cmp dword [rsp + 0x40], 1
ja 0x140013901
mov rcx, qword [0x1400e0f68]
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
mov eax, 1
mov qword [0x1400e0f68], 0
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.14008bb30
add rsp, 0x68
ret
mov rcx, qword [0x1400e0f68]
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
xor edx, edx
mov qword [0x1400e0f68], 0
mov r8d, 0xffffffff
mov ecx, 0x102
call sub.mfc140.dll_Ordinal_2263
xor eax, eax
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.14008bb30
add rsp, 0x68
ret
Function at 0x1400160d0
Capabilities:
Read file on windows

Disassembly:
sub rsp, 0x78
mov rax, qword [0x1400de438]
xor rax, rsp
mov qword [rsp + 0x60], rax
mov rcx, qword [0x1400e1008]
lea rdx, [0x1400a55f8]
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fopen]
mov qword [0x1400e0f68], rax
test rax, rax
je 0x1400162b2
mov edx, 0xe
lea rcx, [rsp + 0x28]
mov r9, rax
lea r8d, [rdx - 0xd]
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
mov eax, 0x4d42
cmp word [rsp + 0x28], ax
je 0x140016156
mov rcx, qword [0x1400e0f68]
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
xor eax, eax
mov qword [0x1400e0f68], 0
mov rcx, qword [rsp + 0x60]
xor rcx, rsp
call fcn.14008bb30
add rsp, 0x78
ret
mov r9, qword [0x1400e0f68]
lea rcx, [rsp + 0x38]
mov edx, 0x28
lea r8d, [rdx - 0x27]
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
cmp word [rsp + 0x44], 1
jne 0x140016288
cmp word [rsp + 0x46], 8
jne 0x140016288
mov qword [rsp + 0x80], rbx
mov qword [rsp + 0x88], rsi
mov esi, dword [rsp + 0x58]
mov qword [rsp + 0x70], rdi
mov rdi, qword [0x1400e0fb8]
test esi, esi
jne 0x1400161b2
mov esi, 0x100
add rdi, 3
nop word [rax + rax]
xor ebx, ebx
mov r9, qword [0x1400e0f68]
lea rcx, [rsp + 0x20]
mov edx, 1
mov r8d, edx
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
lea ecx, [rbx + 1]
test ebx, ebx
je 0x14001627a
sub ebx, 1
je 0x14001626b
cmp ebx, 1
mov ebx, ecx
je 0x14001625e
cmp ecx, 4
jl 0x1400161c2
movzx edx, byte [rdi - 1]
movzx eax, byte [rdi - 2]
movzx ecx, byte [rdi]
shl edx, 8
or edx, eax
shl ecx, 0x10
or edx, ecx
mov dword [rdi + 1], edx
add rdi, 0xe8
sub esi, 1
jne 0x1400161c0
mov rcx, qword [0x1400e0f68]
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
mov rdi, qword [rsp + 0x70]
lea eax, [rsi + 1]
mov rsi, qword [rsp + 0x88]
mov rbx, qword [rsp + 0x80]
mov qword [0x1400e0f68], 0
mov rcx, qword [rsp + 0x60]
xor rcx, rsp
call fcn.14008bb30
add rsp, 0x78
ret
movzx eax, byte [rsp + 0x20]
mov byte [rdi - 2], al
jmp 0x1400161c2
movzx eax, byte [rsp + 0x20]
mov ebx, ecx
mov byte [rdi - 1], al
jmp 0x1400161c2
movzx eax, byte [rsp + 0x20]
mov ebx, ecx
mov byte [rdi], al
jmp 0x1400161c2
mov rcx, qword [0x1400e0f68]
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
xor edx, edx
mov qword [0x1400e0f68], 0
mov ecx, 0x102
mov r8d, 0xffffffff
call sub.mfc140.dll_Ordinal_2263
xor eax, eax
mov rcx, qword [rsp + 0x60]
xor rcx, rsp
call fcn.14008bb30
add rsp, 0x78
ret
Function at 0x140017f40
Capabilities:
Read file on windows

Disassembly:
push r12
push r14
push r15
sub rsp, 0x30
mov eax, dword [0x1400dfe58]
mov r12d, ecx
imul eax, dword [0x1400dfe5c]
movsxd rcx, eax
call sub.mfc140.dll_Ordinal_265
mov qword [0x1400dfe98], rax
call fcn.1400162d0
mov r14d, dword [0x1400dfe58]
test r14b, 3
je 0x140017f89
nop dword [rax + rax]
inc r14d
test r14b, 3
jne 0x140017f80
mov r15d, dword [0x1400dfe5c]
sub r15d, 1
js 0x14001815e
mov qword [rsp + 0x50], rbx
mov qword [rsp + 0x60], rbp
mov qword [rsp + 0x28], rsi
mov qword [rsp + 0x20], rdi
nop
mov edx, dword [0x1400dfe58]
mov eax, r15d
imul eax, edx
movsxd rdi, eax
add rdi, qword [0x1400dfe98]
test r12d, r12d
je 0x1400180d2
cmp r12d, 1
jne 0x140018140
xor ebx, ebx
test edx, edx
jle 0x140018140
mov r9, qword [0x1400e0f68]
lea rcx, [rsp + 0x58]
mov edx, 1
mov r8d, edx
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
mov r9, qword [0x1400e0f68]
lea rcx, [rsp + 0x58]
movzx esi, byte [rsp + 0x58]
mov edx, 1
mov r8d, edx
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
test esi, esi
je 0x14001803f
cmp ebx, dword [0x1400dfe58]
jge 0x140018140
movzx eax, byte [rsp + 0x58]
inc ebx
mov byte [rdi], al
inc rdi
sub esi, 1
jne 0x140018020
jmp 0x1400180b2
movzx ebp, byte [rsp + 0x58]
cmp ebp, 2
jbe 0x1400180a5
mov esi, ebp
nop dword [rax + rax]
cmp ebx, dword [0x1400dfe58]
jge 0x140018083
mov r9, qword [0x1400e0f68]
lea rcx, [rsp + 0x58]
mov edx, 1
mov r8d, edx
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
movzx eax, byte [rsp + 0x58]
inc ebx
mov byte [rdi], al
inc rdi
sub esi, 1
jne 0x140018050
test bpl, 1
je 0x1400180b2
mov r9, qword [0x1400e0f68]
lea rcx, [rsp + 0x58]
mov edx, 1
mov r8d, edx
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
jmp 0x1400180b2
test ebp, ebp
je 0x1400180c3
cmp ebp, 1
je 0x14001814a
cmp ebx, dword [0x1400dfe58]
jl 0x140017fe3
jmp 0x140018140
lea eax, [r15 + 1]
test ebx, ebx
cmovne eax, r15d
mov r15d, eax
jmp 0x140018140
xor ebx, ebx
cmp dword [0x1400dfe58], ebx
jle 0x14001810f
nop dword [rax]
mov r9, qword [0x1400e0f68]
lea rcx, [rsp + 0x58]
mov edx, 1
mov r8d, edx
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
movzx eax, byte [rsp + 0x58]
inc ebx
mov byte [rdi], al
lea rdi, [rdi + 1]
cmp ebx, dword [0x1400dfe58]
jl 0x1400180e0
cmp ebx, r14d
jge 0x140018140
mov eax, r14d
sub eax, ebx
mov ebx, eax
nop dword [rax + rax]
mov r9, qword [0x1400e0f68]
lea rcx, [rsp + 0x58]
mov edx, 1
mov r8d, edx
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
sub rbx, 1
jne 0x140018120
sub r15d, 1
jns 0x140017fb0
mov rsi, qword [rsp + 0x28]
mov rbp, qword [rsp + 0x60]
mov rbx, qword [rsp + 0x50]
mov rdi, qword [rsp + 0x20]
add rsp, 0x30
pop r15
pop r14
pop r12
ret