joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140045760
Capabilities:
Get system firmware table

Disassembly:
mov qword ss:[rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x30
mov rdi, rcx
mov qword [rsp + 0x28], rcx
xor esi, esi
mov ecx, 0xe0
call fcn.140049768
mov rbx, rax
mov qword [rsp + 0x28], rax
xorps xmm0, xmm0
movups xmmword [rax], xmm0
mov qword [rax + 0x10], rsi
mov qword [rax + 0x18], 0xf
mov byte [rax], sil
movups xmmword [rax + 0x20], xmm0
mov qword [rax + 0x30], rsi
mov qword [rax + 0x38], 0xf
mov byte [rax + 0x20], sil
movups xmmword [rax + 0x40], xmm0
mov qword [rax + 0x50], rsi
mov qword [rax + 0x58], 0xf
mov byte [rax + 0x40], sil
movups xmmword [rax + 0x60], xmm0
mov qword [rax + 0x70], rsi
mov qword [rax + 0x78], 0xf
mov byte [rax + 0x60], sil
movups xmmword [rax + 0x80], xmm0
mov qword [rax + 0x90], rsi
mov qword [rax + 0x98], 0xf
mov byte [rax + 0x80], sil
movups xmmword [rax + 0xa0], xmm0
mov qword [rax + 0xb0], rsi
mov qword [rax + 0xb8], 0xf
mov byte [rax + 0xa0], sil
movups xmmword [rax + 0xc0], xmm0
mov qword [rax + 0xd0], rsi
mov qword [rax + 0xd8], 0xf
mov byte [rax + 0xc0], sil
xor r9d, r9d
xor r8d, r8d
xor edx, edx
mov ecx, 0x52534d42
call qword [sym.imp.KERNEL32.dll_GetSystemFirmwareTable]
nop
mov qword [rdi], rbx
mov rax, rdi
mov rbx, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
add rsp, 0x30
pop rdi
ret
Function at 0x1400471c0
Capabilities:
Get disk information

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x280
mov rax, qword [0x140072040]
xor rax, rsp
mov qword [rsp + 0x270], rax
mov rax, qword [rsp + 0x28]
mov qword [rsp + 0x28], rax
xor ebx, ebx
mov dword [rsp + 0x20], ebx
lea rdi, [0x140075bd8]
mov qword [rsp + 0x28], rdi
xor edx, edx
mov r8d, 0x208
lea rcx, [rsp + 0x60]
call sub.VCRUNTIME140.dll_memset
mov qword [0x140075bd8], rbx
mov qword [0x140075be0], rbx
lea ecx, ds:[rbx + 0x60]
call fcn.140049768
mov qword [rax], rax
mov qword [rax + 8], rax
mov qword [rax + 0x10], rax
mov word [rax + 0x18], 0x101
mov qword [0x140075bd8], rax
mov dword [rsp + 0x20], 1
xorps xmm0, xmm0
movups xmmword [rsp + 0x40], xmm0
mov qword [rsp + 0x50], rbx
mov qword [rsp + 0x58], rbx
lea r8d, [rbx + 2]
lea rdx, [0x140062120]
lea rcx, [rsp + 0x40]
call fcn.1400066a0
nop
mov ebx, 0x41
lea rax, [rsp + 0x40]
cmp qword [rsp + 0x58], 7
cmova rax, qword [rsp + 0x40]
mov word [rax], bx
lea rcx, [rsp + 0x40]
cmp qword [rsp + 0x58], 7
cmova rcx, qword [rsp + 0x40]
mov r8d, 0x104
lea rdx, [rsp + 0x60]
call qword [sym.imp.KERNEL32.dll_QueryDosDeviceW]
test eax, eax
je 0x1400472e5
lea r8, [rsp + 0x40]
lea rdx, [rsp + 0x30]
call fcn.140047680
mov rcx, qword [rax]
add rcx, 0x40
lea rax, [rsp + 0x60]
mov r8, 0xffffffffffffffff
nop
inc r8
cmp word [rax + r8*2], 0
jne 0x1400472d0
lea rdx, [rsp + 0x60]
call fcn.140007ce0
inc bx
cmp bx, 0x5a
jbe 0x140047272
mov rdx, qword [rsp + 0x58]
cmp rdx, 7
jbe 0x140047333
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x40]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14004732e
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x14004732e
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.140049760
mov rax, rdi
mov rcx, qword [rsp + 0x270]
xor rcx, rsp
call fcn.140049740
mov rbx, qword [rsp + 0x290]
add rsp, 0x280
pop rdi
ret
Function at 0x140047380
Capabilities:
Access peb ldr_data

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rbp
push rsi
push rdi
push r14
sub rsp, 0x70
mov rax, qword [0x140072040]
xor rax, rsp
mov qword [rsp + 0x60], rax
mov rdi, rdx
mov rbp, rcx
mov qword [rsp + 0x38], rcx
xor r14d, r14d
mov rax, qword gs:[0x58]
mov ecx, 4
mov rax, qword [rax]
mov ecx, dword [rcx + rax]
cmp dword [0x140075bd0], ecx
jle 0x140047405
lea rcx, [0x140075bd0]
call fcn.140049894
cmp dword [0x140075bd0], 0xffffffff
nop
jne 0x140047405
call fcn.1400471c0
lea rcx, [0x14004ee70]
call fcn.140049b34
nop
lea rcx, [0x140075bd0]
call fcn.140049828
mov rbx, qword [0x140075bd8]
mov rbx, qword [rbx]
cmp byte [rbx + 0x19], 0
jne 0x1400474b9
nop dword [rax]
lea rsi, [rbx + 0x20]
lea r9, [rsi + 0x20]
mov rax, qword [r9 + 0x10]
cmp qword [r9 + 0x18], 7
jbe 0x140047436
mov r9, qword [r9]
mov rcx, rdi
cmp qword [rdi + 0x18], 7
jbe 0x140047445
mov rcx, qword [rdi]
mov qword [rsp + 0x20], rax
xor r8d, r8d
mov rdx, qword [rdi + 0x10]
call fcn.1400087c0
test rax, rax
je 0x1400474ea
mov rax, qword [rbx + 0x10]
cmp byte [rax + 0x19], 0
je 0x14004748b
mov rax, qword [rbx + 8]
cmp byte [rax + 0x19], 0
jne 0x140047486
cmp rbx, qword [rax + 0x10]
jne 0x140047486
mov rbx, rax
mov rax, qword [rax + 8]
cmp byte [rax + 0x19], 0
je 0x140047473
mov rbx, rax
jmp 0x1400474af
mov rbx, rax
mov rcx, qword [rax]
cmp byte [rcx + 0x19], 0
jne 0x1400474af
nop word [rax + rax]
mov rbx, rcx
mov rax, qword [rcx]
mov rcx, rax
cmp byte [rax + 0x19], 0
je 0x1400474a0
cmp byte [rbx + 0x19], 0
je 0x140047420
mov rdx, rdi
mov rcx, rbp
call fcn.140005560
mov rax, rbp
mov rcx, qword [rsp + 0x60]
xor rcx, rsp
call fcn.140049740
lea r11, [rsp + 0x70]
mov rbx, qword [r11 + 0x30]
mov rbp, qword [r11 + 0x38]
mov rsp, r11
pop r14
pop rdi
pop rsi
ret
mov rcx, qword ds:[rsi + 0x30]
xorps xmm0, xmm0
movups xmmword [rsp + 0x40], xmm0
xorps xmm1, xmm1
movdqu xmmword [rsp + 0x50], xmm1
cmp qword [rdi + 0x10], rcx
jb 0x1400475d7
lfence
mov rax, qword [rdi + 0x10]
sub rax, rcx
mov r8, 0xffffffffffffffff
cmp rax, r8
cmovb r8, rax
cmp qword [rdi + 0x18], 7
jbe 0x14004752c
mov rdi, qword [rdi]
lea rdx, [rdi + rcx*2]
lea rcx, [rsp + 0x40]
call fcn.1400066a0
nop
mov r9, qword [rsi + 0x10]
cmp qword [rsi + 0x18], 7
jbe 0x140047549
mov rsi, qword [rsi]
mov r8, rsi
lea rcx, [rsp + 0x40]
call fcn.140016be0
xorps xmm0, xmm0
movups xmmword [rbp], xmm0
mov qword [rbp + 0x10], r14
mov qword [rbp + 0x18], r14
movups xmm0, xmmword [rax]
movups xmmword [rbp], xmm0
movups xmm1, xmmword [rax + 0x10]
movups xmmword [rbp + 0x10], xmm1
mov qword [rax + 0x10], r14
mov qword [rax + 0x18], 7
mov word [rax], r14w
mov rdx, qword [rsp + 0x58]
cmp rdx, 7
jbe 0x1400474c5
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x40]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400475cd
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x1400475cd
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.140049760
jmp 0x1400474c5
call fcn.140007f60
int3
Function at 0x140048040
Capabilities:
Connect to wmi namespace via wbemlocator

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
push rsi
push rdi
push r12
push r14
push r15
sub rsp, 0x50
mov r14, rdx
mov rdi, rcx
mov edx, 2
xor ecx, ecx
call qword [sym.imp.ole32.dll_CoInitializeEx]
test eax, eax
jns 0x140048075
lfence
jmp 0x14004823b
xor r12d, r12d
mov qword [rsp + 0x40], r12
mov dword [rsp + 0x38], r12d
mov qword [rsp + 0x30], r12
mov dword [rsp + 0x28], 3
mov dword [rsp + 0x20], r12d
xor r9d, r9d
xor r8d, r8d
mov esi, 0xffffffff
mov edx, esi
xor ecx, ecx
call qword [sym.imp.ole32.dll_CoInitializeSecurity]
mov ebx, eax
test eax, eax
jns 0x1400480bf
lfence
call qword [sym.imp.ole32.dll_CoUninitialize]
mov eax, ebx
jmp 0x14004823b
mov qword [rsp + 0x20], rdi
lea r9, [0x1400504b0]
xor edx, edx
lea r8d, [rdx + 1]
lea rcx, [0x1400504c0]
call qword [sym.imp.ole32.dll_CoCreateInstance]
mov ebx, eax
lfence
test eax, eax
js 0x1400480b2
mov r15, qword [rdi]
mov rax, qword [r15]
mov rbp, qword [rax + 0x18]
mov ecx, 0x18
call fcn.140049768
mov rbx, rax
mov qword [rsp + 0x90], rax
test rax, rax
je 0x140048134
mov qword ds:[rax + 8], r12
mov dword [rax + 0x10], 1
lea rcx, str.ROOTCIMV2
call qword [sym.imp.OLEAUT32.dll_SysReAllocString]
mov qword [rbx], rax
test rax, rax
je 0x14004825f
jmp 0x140048137
mov rbx, r12
mov qword ds:[rsp + 0x90], rbx
test rbx, rbx
je 0x140048254
mov qword [rsp + 0x40], r14
mov qword [rsp + 0x38], r12
mov qword [rsp + 0x30], r12
mov dword [rsp + 0x28], r12d
mov qword [rsp + 0x20], r12
xor r9d, r9d
xor r8d, r8d
mov rdx, qword [rbx]
mov rcx, r15
mov rax, rbp
call qword [0x14004fd98]
mov ebp, eax
lock xadd dword [rbx + 0x10], esi
cmp esi, 1
jne 0x1400481b6
mov rcx, qword [rbx]
test rcx, rcx
je 0x140048196
call qword [sym.imp.OLEAUT32.dll_SysStringLen]
mov qword [rbx], r12
mov rcx, qword [rbx + 8]
test rcx, rcx
je 0x1400481a9
nop
call fcn.140049760
mov qword [rbx + 8], r12
mov edx, 0x18
mov rcx, rbx
call fcn.140049760
lfence
test ebp, ebp
jns 0x1400481d7
mov rcx, qword [rdi]
mov rax, qword [rcx]
mov rax, qword [rax + 0x10]
call qword [0x14004fd98]
call qword [sym.imp.ole32.dll_CoUninitialize]
mov eax, ebp
jmp 0x14004823b
mov dword ss:[rsp + 0x38], r12d
mov qword [rsp + 0x30], r12
mov dword [rsp + 0x28], 3
mov dword [rsp + 0x20], 3
xor r9d, r9d
xor r8d, r8d
lea edx, [r9 + 0xa]
mov rcx, qword [r14]
call qword [sym.imp.ole32.dll_CoSetProxyBlanket]
mov ebx, eax
test eax, eax
jns 0x140048239
lfence
mov rcx, qword [r14]
mov rdx, qword [rcx]
mov rax, qword [rdx + 0x10]
call qword [0x14004fd98]
mov rcx, qword [rdi]
mov rdx, qword [rcx]
mov rax, qword [rdx + 0x10]
call qword [0x14004fd98]
call qword [sym.imp.ole32.dll_CoUninitialize]
mov eax, ebx
jmp 0x14004823b
xor eax, eax
lea r11, [rsp + 0x50]
mov rbx, qword [r11 + 0x30]
mov rbp, qword [r11 + 0x38]
mov rsp, r11
pop r15
pop r14
pop r12
pop rdi
pop rsi
ret
mov ecx, 0x8007000e
call fcn.1400494f0
nop
mov ecx, 0x8007000e
call fcn.1400494f0
int3
Function at 0x1400486c8
Capabilities:
Get geographical location

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x40
mov rbx, rdx
lea r8, [rsp + 0x60]
mov edi, ecx
mov edx, 0x20000001
lea rcx, str._x_sys_default_locale
mov r9d, 2
call qword [sym.imp.KERNEL32.dll_GetLocaleInfoEx]
test eax, eax
jne 0x140048702
xor r9d, r9d
mov dword [rsp + 0x60], r9d
jmp 0x140048707
mov r9d, dword [rsp + 0x60]
and qword [rsp + 0x30], 0
mov r8d, edi
and dword [rsp + 0x28], 0
xor edx, edx
mov ecx, 0x1300
mov qword [rsp + 0x20], rbx
call qword [sym.imp.KERNEL32.dll_FormatMessageA]
mov edx, eax
test eax, eax
je 0x140048750
mov r8, qword [rbx]
dec r8
add r8, rdx
movzx ecx, byte [r8]
lea rax, [0x140050340]
cmp byte [rcx + rax], 0
je 0x140048750
dec r8
sub rdx, 1
jne 0x140048736
mov rbx, qword [rsp + 0x50]
mov rax, rdx
add rsp, 0x40
pop rdi
ret

Function at 0x140048ea8
Capabilities:
Check if file exists
Get file attributes

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
mov rdi, rcx
mov rdx, rcx
mov ecx, 0x105
call fcn.1400487e0
mov ebx, eax
test eax, eax
jne 0x140048ed8
and dword [rsp + 0x38], eax
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rsp + 0x3c], eax
jmp 0x140048f3b
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x140048f32
test al, 0x10
je 0x140048f32
bt eax, 0xa
jae 0x140048f2b
mov r9d, 0x2000000
lea rcx, [rsp + 0x38]
mov r8d, 0x80
mov rdx, rdi
call fcn.140048f4c
mov rcx, qword [rsp + 0x38]
mov edi, eax
cmp rcx, 0xffffffffffffffff
je 0x140048f27
call qword [sym.imp.KERNEL32.dll_CloseHandle]
test eax, eax
jne 0x140048f27
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_abort]
int3
test edi, edi
jne 0x140048f32
and dword [rsp + 0x3c], 0
jmp 0x140048f37
or dword [rsp + 0x3c], 0xffffffff
mov dword [rsp + 0x38], ebx
mov rax, qword [rsp + 0x38]
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret

Function at 0x14004a634
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x14004a67e
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x14004a67e
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x14004a67e
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x14004a67e
cmp dword [rcx + 0x84], 0xe
jbe 0x14004a67e
cmp dword [rcx + 0xf8], 0
setne al
jmp 0x14004a680
xor al, al
add rsp, 0x28
ret
Function at 0x14002b660
Capabilities:
Hash data with crc32

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x40
mov rax, qword [0x140131080]
xor rax, rsp
mov qword [rsp + 0x30], rax
mov rbx, qword [0x14036daf0]
mov edi, ecx
cmp byte [rbx + 0x4a7d], 0
jne 0x14002b6c1
cmp byte [rbx + 0x4a7e], 0
jne 0x14002b6c1
movsx r9d, word [rbx + 0x5ba2]
lea r8, str.Tooltip__02d
mov edx, reloc.WS2_32.dll_recv
lea rcx, [rsp + 0x20]
call fcn.140019a80
test dil, 1
je 0x14002b7ef
jmp 0x14002b74a
movss xmm1, dword [rbx + 0x389c]
lea r8, str.Tooltip__02d
movsx r9d, word [rbx + 0x5ba2]
lea rcx, [rsp + 0x20]
movaps xmm0, xmm1
xor eax, eax
mulss xmm0, dword [0x14011bcb0]
mulss xmm1, dword [0x14011bc8c]
lea edx, [rax + 0x10]
addss xmm0, dword [rbx + 0xe08]
addss xmm1, dword [rbx + 0xe0c]
mov qword [rbx + 0x47e8], rax
mov dword [rbx + 0x47d4], 1
movss dword [rbx + 0x47e0], xmm0
movss dword [rbx + 0x47e4], xmm1
movss xmm0, dword [rbx + 0x3904]
mulss xmm0, dword [0x14011bb8c]
or dword [rbx + 0x47d0], 0x41
movss dword [rbx + 0x4830], xmm0
call fcn.140019a80
movzx r9d, byte [rsp + 0x20]
lea r8, [rsp + 0x21]
mov r10d, 0xffffffff
mov ecx, r10d
test r9b, r9b
je 0x14002b7a0
lea r11, [0x14010bd10]
nop word [rax + rax]
cmp r9b, 0x23
jne 0x14002b783
cmp byte [r8], r9b
jne 0x14002b783
cmp byte [r8 + 1], r9b
cmove ecx, r10d
movzx edx, cl
movzx eax, r9b
movzx r9d, byte [r8]
xor rdx, rax
shr ecx, 8
inc r8
xor ecx, dword [r11 + rdx*4]
test r9b, r9b
jne 0x14002b770
not ecx
call fcn.140022030
test rax, rax
je 0x14002b7ef
cmp byte [rax + 0xb6], 0
je 0x14002b7ef
mov byte [rax + 0xbb], 1
lea r8, str.Tooltip__02d
mov byte [rax + 0xbd], 1
lea rcx, [rsp + 0x20]
mov byte [rax + 0xd8], 1
mov edx, reloc.WS2_32.dll_recv
inc word [rbx + 0x5ba2]
movsx r9d, word [rbx + 0x5ba2]
call fcn.140019a80
xor edx, edx
lea rcx, [rsp + 0x20]
mov r8d, 0x20c0347
call fcn.140024830
mov al, 1
mov rcx, qword [rsp + 0x30]
xor rcx, rsp
call fcn.1400f70d0
mov rbx, qword [rsp + 0x50]
add rsp, 0x40
pop rdi
ret
Function at 0x140063090
Capabilities:
Parse pe header

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x70
mov rax, qword [0x140131080]
xor rax, rsp
mov qword [rsp + 0x60], rax
mov rsi, rdx
mov rdi, rcx
mov qword [rsp + 0x40], rcx
xor r8d, r8d
mov eax, 0x5a4d
cmp word [rdx], ax
jne 0x1400631b1
movsxd rax, dword [rdx + 0x3c]
cmp dword [rax + rdx], 0x4550
jne 0x1400631b1
xorps xmm1, xmm1
movdqu xmmword [rsp + 0x48], xmm1
mov qword [rsp + 0x58], r8
mov ecx, dword [rax + rdx + 0xb0]
test ecx, ecx
jne 0x140063109
mov qword [rdi], r8
mov qword [rdi + 8], r8
mov qword [rdi + 0x10], r8
jmp 0x1400631bc
lea rbx, [rdx + rcx]
mov ebp, dword [rax + rdx + 0xb4]
add rbp, rbx
mov eax, dword [rbx]
mov rcx, qword [rsp + 0x50]
test eax, eax
je 0x14006319f
mov edx, eax
cmp rdx, rbp
jae 0x14006319f
mov r9d, dword [rbx + 4]
test r9d, r9d
je 0x14006319f
lea rax, [rdx + rsi]
mov qword [rsp + 0x28], rax
lea rax, [rbx + 8]
mov qword [rsp + 0x30], rax
lea rax, [r9 - 8]
shr rax, 1
mov dword [rsp + 0x38], eax
cmp rcx, r8
je 0x140063177
movups xmm0, xmmword [rsp + 0x28]
movups xmmword [rcx], xmm0
movsd xmm1, qword [rsp + 0x38]
movsd qword [rcx + 0x10], xmm1
mov rcx, qword [rsp + 0x50]
add rcx, 0x18
mov qword [rsp + 0x50], rcx
jmp 0x14006318e
lea r8, [rsp + 0x28]
mov rdx, rcx
lea rcx, [rsp + 0x48]
call fcn.140063d50
mov rcx, qword [rsp + 0x50]
mov eax, dword [rbx + 4]
add rbx, rax
mov eax, dword [rbx]
mov r8, qword [rsp + 0x58]
test eax, eax
jne 0x140063122
mov rax, qword [rsp + 0x48]
mov qword [rdi], rax
mov qword [rdi + 8], rcx
mov qword [rdi + 0x10], r8
jmp 0x1400631bc
mov qword [rcx], r8
mov qword [rcx + 8], r8
mov qword [rcx + 0x10], r8
mov rax, rdi
mov rcx, qword [rsp + 0x60]
xor rcx, rsp
call fcn.1400f70d0
lea r11, [rsp + 0x70]
mov rbx, qword [r11 + 0x18]
mov rbp, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rsp, r11
pop rdi
ret
Function at 0x140066b00
Capabilities:
Enumerate pe sections

Disassembly:
push rbp
push r12
push r13
mov eax, 0x1070
call fcn.1400f7cc0
sub rsp, rax
mov rax, qword [0x140131080]
xor rax, rsp
mov qword [rsp + 0x1040], rax
mov rdx, qword [rsp + 0x10b0]
xor ebp, ebp
mov qword [rsp + 0x38], r9
mov r12, r8
mov qword [rsp + 0x30], rdx
mov r13, rcx
test r8, r8
jne 0x140066b4c
mov rdx, rbp
jmp 0x140066c60
mov r9d, 0x1000
lea rdx, [rsp + 0x40]
call fcn.140065660
test al, al
je 0x140066b44
mov qword [rsp + 0x1068], rsi
lea rdx, str.PAGE
mov qword [rsp + 0x1060], rdi
mov rdi, 0xffffffffffffffff
mov qword [rsp + 0x1058], r14
mov qword [rsp + 0x1050], r15
nop
inc rdi
cmp byte [rdx + rdi], bpl
jne 0x140066b90
movsxd rax, dword [rsp + 0x7c]
lea rcx, [rsp + 0x40]
add rcx, rax
mov qword [rsp + 0x1098], rbx
mov esi, ebp
movzx eax, word [rcx + 0x14]
lea r15, [rcx + 0x18]
movzx r14d, word [rcx + 6]
add r15, rax
test r14d, r14d
je 0x140066c35
nop word [rax + rax]
mov eax, esi
mov r8, rdi
lea rcx, [rax + rax*4]
lea rbx, [r15 + rcx*8]
mov rcx, rbx
call sub.VCRUNTIME140.dll_memcmp
test eax, eax
jne 0x140066bfe
mov rax, 0xffffffffffffffff
inc rax
cmp byte [rbx + rax], bpl
jne 0x140066bf0
cmp rdi, rax
je 0x140066c0e
inc esi
cmp esi, r14d
jae 0x140066c35
lea rdx, str.PAGE
jmp 0x140066bd0
mov eax, dword [rbx + 0xc]
test eax, eax
je 0x140066c35
mov ecx, dword [rbx + 8]
lea rdx, [rsp + 0x40]
add rdx, rax
je 0x140066c35
test ecx, ecx
je 0x140066c35
lea rax, [rsp + 0x40]
mov ebp, ecx
sub rdx, rax
add rdx, r12
jmp 0x140066c38
mov rdx, rbp
mov rbx, qword [rsp + 0x1098]
mov rdi, qword [rsp + 0x1060]
mov rsi, qword [rsp + 0x1068]
mov r14, qword [rsp + 0x1058]
mov r15, qword [rsp + 0x1050]
mov rax, qword [rsp + 0x30]
mov rcx, r13
mov r9, qword [rsp + 0x38]
mov r8d, ebp
mov qword [rsp + 0x20], rax
call fcn.1400669f0
mov rcx, qword [rsp + 0x1040]
xor rcx, rsp
call fcn.1400f70d0
add rsp, 0x1070
pop r13
pop r12
pop rbp
ret
Function at 0x140067660
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.0x140067681
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 0x1400676ae
mov rax, qword [rcx + 0x58]
mov ecx, dword [rax]
jmp 0x1400676b0
xor ecx, ecx
movsxd rbp, ecx
test rbx, rbx
jle 0x140067709
test ecx, ecx
jle 0x1400676e9
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 0x140067709
mov r9, qword [rdi + 0x80]
test r9, r9
je 0x140067709
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
jmp 0x169c6b56b
Function at 0x140067730
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 0x140067752
xor eax, eax
add rsp, 0x30
pop r14
pop rsi
pop rbp
ret
cmp qword [rcx + 0x68], 0
je case.default.0x140067761
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 0x140067784
mov rax, qword [rcx + 0x50]
mov ecx, dword [rax]
jmp 0x140067786
xor ecx, ecx
movsxd rax, ecx
test ecx, ecx
je 0x1400677c2
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 0x14006785e
mov r8, qword [rsi + 0x18]
lea rax, [rsi + 0x70]
cmp qword [r8], rax
jne 0x1400677fd
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 0x14006783e
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 0x14006785e
cmp rbx, rax
ja 0x140067810
test rbx, rbx
je 0x14006785e
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
Function at 0x140067cd0
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 0x20], rbx
push rdi
sub rsp, 0x80
mov rax, qword [0x140131080]
xor rax, rsp
mov qword [rsp + 0x78], rax
mov edi, edx
mov rbx, rcx
cmp edx, 0xffffffff
jne 0x140067cfd
xor eax, eax
jmp 0x140067e69
mov rax, qword [rcx + 0x40]
mov rdx, qword [rax]
test rdx, rdx
je 0x140067d37
mov rax, qword [rcx + 0x58]
movsxd r8, dword [rax]
lea rcx, [rdx + r8]
cmp rdx, rcx
jae 0x140067d37
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 0x140067e69
cmp qword [rbx + 0x80], 0
mov qword [rsp + 0xa0], rsi
je 0x140067e5c
mov r8, qword [rbx + 0x18]
lea rax, [rbx + 0x70]
cmp qword [r8], rax
jne 0x140067d7a
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 0x140067da5
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 0x140067e61
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 0x140067e14
sub eax, 1
je 0x140067e14
cmp eax, 2
jne 0x140067e5c
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 0x140067e61
mov rsi, qword [rsp + 0x40]
lea rax, [rsp + 0x58]
sub rsi, rax
je 0x140067e42
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 0x140067e5c
lea rax, [rsp + 0x50]
mov byte [rbx + 0x71], 1
cmp qword [rsp + 0x48], rax
mov ecx, 0xffffffff
cmovne ecx, edi
mov eax, ecx
jmp 0x140067e61
mov eax, 0xffffffff
mov rsi, qword [rsp + 0xa0]
mov rcx, qword [rsp + 0x78]
xor rcx, rsp
call fcn.1400f70d0
mov rbx, qword [rsp + 0xa8]
add rsp, 0x80
pop rdi
ret