joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140017df0
Capabilities:
Delete file

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0x50
mov r8, rdx
mov rdx, rcx
lea rcx, [rsp + 0x20]
call fcn.1400210d0
mov rax, qword [rsp + 0x20]
mov rsi, qword [rsp + 0x28]
test rax, rax
je 0x140017ea5
mov rcx, qword [rsp + 0x30]
mov qword [rsp + 0x20], rax
mov qword [rsp + 0x28], rsi
mov qword [rsp + 0x30], rcx
lea rcx, [rsp + 0x38]
lea rdx, [rsp + 0x20]
mov r8b, 1
call fcn.1400192e0
mov rdi, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
test rdi, rdi
je 0x140017ea5
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
je 0x140017e79
test rsi, rsi
je 0x140017e75
add rsi, rsi
mov r8d, 2
mov rcx, rdi
mov rdx, rsi
call fcn.1400038c0
xor esi, esi
jmp 0x140017ea5
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
shl rbx, 0x20
or rbx, 2
test rsi, rsi
je 0x140017ea2
add rsi, rsi
mov r8d, 2
mov rcx, rdi
mov rdx, rsi
call fcn.1400038c0
mov rsi, rbx
mov rax, rsi
add rsp, 0x50
pop rbx
pop rdi
pop rsi
ret

Function at 0x140017eb0
Capabilities:
Write file on windows

Disassembly:
push rsi
push rdi
sub rsp, 0xa8
mov rdi, rdx
mov rsi, rcx
mov rcx, qword [rsp + 0xe0]
movups xmm0, xmmword [0x1407cee70]
movaps xmmword [rsp + 0x60], xmm0
mov eax, 0xffffffff
cmp r9, rax
cmovb rax, r9
test rcx, rcx
je 0x140017ef4
mov rdx, qword [rsp + 0xe8]
mov qword [rsp + 0x80], rdx
test rcx, rcx
mov qword [rsp + 0x78], rcx
lea rdx, [rsp + 0x80]
cmove rdx, rcx
mov qword [rsp + 0x38], rdx
mov dword [rsp + 0x30], eax
mov qword [rsp + 0x28], r8
lea rax, [rsp + 0x60]
mov qword [rsp + 0x20], rax
mov qword [rsp + 0x40], 0
mov rcx, rdi
xor edx, edx
xor r8d, r8d
xor r9d, r9d
call qword [sym.imp.ntdll.dll_NtWriteFile]
cmp eax, 0x103
jne 0x140017f5a
mov rcx, rdi
mov edx, 0xffffffff
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov eax, dword [rsp + 0x60]
cmp eax, 0x103
je 0x140017f91
test eax, eax
js 0x140017f6b
mov rax, qword [rsp + 0x68]
mov qword [rsi + 8], rax
xor eax, eax
jmp 0x140017f84
mov ecx, eax
call qword [sym.imp.ntdll.dll_RtlNtStatusToDosError]
shl rax, 0x20
or rax, 2
mov qword [rsi + 8], rax
mov eax, 1
mov qword [rsi], rax
add rsp, 0xa8
pop rdi
pop rsi
ret
mov dword [rsp + 0x58], 0
mov byte [rsp + 0x5c], 0
lea rax, str.fatal_runtime_error:_I_O_error:_operation_failed_to_complete_synchronously_n
mov qword [rsp + 0x78], rax
mov qword [rsp + 0x80], 1
lea rax, [rsp + 0x50]
mov qword [rsp + 0x88], rax
xorps xmm0, xmm0
movups xmmword [rsp + 0x90], xmm0
lea rcx, [rsp + 0x58]
lea rdx, [rsp + 0x78]
call fcn.140011190
mov qword [rsp + 0x70], rax
lea rcx, [rsp + 0x70]
call fcn.140009660
mov ecx, 7
int 0x29
ud2
Function at 0x1400200e0
Capabilities:
Generate random numbers via rtlgenrandom

Disassembly:
push rbp
sub rsp, 0x80
lea rbp, [rsp + 0x80]
mov qword [rbp - 8], 0xfffffffffffffffe
xorps xmm0, xmm0
movaps xmmword [rbp - 0x20], xmm0
lea rcx, [rbp - 0x20]
mov edx, 0x10
call qword [sym.imp.ADVAPI32.dll_SystemFunction036]
test al, al
je 0x140020123
mov rax, qword [rbp - 0x20]
mov rdx, qword [rbp - 0x18]
add rsp, 0x80
pop rbp
ret
call qword [sym.imp.KERNEL32.dll_GetLastError]
shl rax, 0x20
or rax, 2
mov qword [rbp - 0x10], rax
lea rax, [rbp - 0x10]
mov qword [rbp - 0x30], rax
lea rax, [0x14000fe80]
mov qword [rbp - 0x28], rax
lea rax, str.fallback_RNG_broken:
mov qword [rbp - 0x60], rax
mov qword [rbp - 0x58], 1
mov qword [rbp - 0x40], 0
lea rax, [rbp - 0x30]
mov qword [rbp - 0x50], rax
mov qword [rbp - 0x48], 1
lea rdx, str.library_std_src_syswindows_rand.rs
lea rcx, [rbp - 0x60]
call fcn.14003f930
ud2

Function at 0x140020780
Capabilities:
Create thread

Disassembly:
push rbp
push r14
push rsi
push rdi
push rbx
sub rsp, 0x50
lea rbp, [rsp + 0x50]
mov qword [rbp - 8], 0xfffffffffffffffe
mov rdi, r8
mov r14, rdx
mov rsi, rcx
movzx eax, byte [0x1407e2b81]
mov ecx, 0x10
mov edx, 8
Function at 0x14002e3d0
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push r14
push rsi
push rdi
push rbx
sub rsp, 0x28
test r8, r8
je 0x14002e44a
mov rax, rdx
mov rdx, qword [rsp + 0x70]
mov esi, ecx
shr esi, 8
lea r8, [rax + r8*2]
xor r11d, r11d
mov rbx, rax
movzx edi, byte [rax + 1]
add rax, 2
lea r10, [r11 + rdi]
cmp byte [rbx], sil
jne 0x14002e440
cmp r11, r10
ja 0x14002e4e3
cmp r10, rdx
ja 0x14002e4f7
add r11, r9
xor ebx, ebx
nop dword [rax]
cmp rdi, rbx
je 0x14002e442
lea r14, [rbx + 1]
cmp byte [r11 + rbx], cl
mov rbx, r14
jne 0x14002e420
jmp 0x14002e4b7
ja 0x14002e44a
mov r11, r10
cmp rax, r8
jne 0x14002e3f2
mov rdx, qword [rsp + 0x80]
test rdx, rdx
je 0x14002e4bb
mov r8, qword [rsp + 0x78]
add rdx, r8
movzx ecx, cx
mov al, 1
nop word cs:[rax + rax]
lea r10, [r8 + 1]
movzx r9d, byte [r8]
test r9b, r9b
js 0x14002e490
mov r8, r10
sub ecx, r9d
jns 0x14002e4ae
jmp 0x14002e4bd
cmp r10, rdx
je 0x14002e4c9
movzx r10d, byte [r8 + 1]
add r8, 2
and r9d, 0x7f
shl r9d, 8
or r9d, r10d
sub ecx, r9d
js 0x14002e4bd
xor al, 1
cmp r8, rdx
jne 0x14002e470
jmp 0x14002e4bd
xor eax, eax
jmp 0x14002e4bd
mov al, 1
and al, 1
add rsp, 0x28
pop rbx
pop rdi
pop rsi
pop r14
ret
lea rcx, str.called__Option::unwrap____on_a__None__valuefrom_str_radix_int:_must_lie_in_the_range___2__36_____found
lea r8, str.librarycore_srcunicodeprintable.rs
mov edx, 0x2b
call fcn.14003f9e0
ud2
lea r8, str.librarycore_srcunicodeprintable.rs
mov rcx, r11
mov rdx, r10
call fcn.14003feb0
ud2
lea r8, str.librarycore_srcunicodeprintable.rs
mov rcx, r10
call fcn.14003fe30
ud2

Function at 0x14002fb70
Capabilities:
Parse pe header

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

Function at 0x1400343b4
Capabilities:
Parse pe header

Disassembly:
xor r8d, r8d
xor edx, edx
jmp 0x1400341b0
Function at 0x14003747c
Capabilities:
Query environment variable

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rbp
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
push r14
sub rsp, 0x40
call qword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
xor esi, esi
mov rbx, rax
test rax, rax
jne 0x1400374ac
xor eax, eax
jmp 0x14003756f
mov rbp, rbx
cmp word [rax], si
je 0x1400374d1
or rax, 0xffffffffffffffff
inc rax
cmp word [rbp + rax*2], si
jne 0x1400374b8
lea rbp, [rbp + rax*2]
add rbp, 2
cmp word [rbp], si
jne 0x1400374b4
mov qword [rsp + 0x38], rsi
sub rbp, rbx
mov qword [rsp + 0x30], rsi
add rbp, 2
sar rbp, 1
mov r8, rbx
mov r9d, ebp
mov dword [rsp + 0x28], esi
xor edx, edx
mov qword [rsp + 0x20], rsi
xor ecx, ecx
call fcn.14003739c
movsxd r14, eax
test eax, eax
jne 0x14003750f
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
jmp 0x1400374a5
mov rcx, r14
call fcn.140038358
mov rdi, rax
test rax, rax
jne 0x140037528
xor ecx, ecx
call fcn.1400359fc
jmp 0x140037504
mov qword [rsp + 0x38], rsi
mov r9d, ebp
mov qword [rsp + 0x30], rsi
mov r8, rbx
mov dword [rsp + 0x28], r14d
xor edx, edx
xor ecx, ecx
mov qword [rsp + 0x20], rdi
call fcn.14003739c
test eax, eax
jne 0x140037559
mov rcx, rdi
call fcn.1400359fc
jmp 0x140037563
xor ecx, ecx
call fcn.1400359fc
mov rsi, rdi
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov rax, rsi
mov rbx, qword [rsp + 0x50]
mov rbp, qword [rsp + 0x58]
mov rsi, qword [rsp + 0x60]
mov rdi, qword [rsp + 0x68]
add rsp, 0x40
pop r14
ret
Function at 0x14003aa60
Capabilities:
Set environment variable

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
mov qword [rax + 0x20], rdi
push rbp
push r14
push r15
lea rbp, [rax - 0x5f]
sub rsp, 0xa0
xor r15d, r15d
mov r14, rdx
mov rsi, rcx
mov qword [rbp + 0x17], r15
xor edx, edx
mov qword [rbp + 0x1f], r15
lea rcx, [rbp - 0x39]
mov qword [rbp + 0x27], r15
mov qword [rbp + 0x2f], r15
mov edi, r15d
mov qword [rbp + 0x37], r15
mov byte [rbp + 0x3f], r15b
mov qword [rbp - 0x19], r15
mov qword [rbp - 0x11], r15
mov qword [rbp - 9], r15
mov qword [rbp - 1], r15
mov qword [rbp + 7], r15
mov byte [rbp + 0xf], r15b
call fcn.14003646c
mov rax, qword [rbp - 0x31]
mov ebx, 0xfde9
cmp dword [rax + 0xc], ebx
jne 0x14003aaea
cmp byte [rbp - 0x21], r15b
je 0x14003aae5
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, ebx
jmp 0x14003ab20
call fcn.140038b68
test eax, eax
jne 0x14003ab0c
cmp byte [rbp - 0x21], r15b
je 0x14003ab04
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, 1
jmp 0x14003ab20
cmp byte [rbp - 0x21], r15b
je 0x14003ab1d
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, r15d
lea r8, [rbp + 0x77]
mov rcx, rsi
lea rdx, [rbp + 0x17]
call fcn.140035a4c
test eax, eax
jne 0x14003abc0
xor edx, edx
lea rcx, [rbp - 0x39]
call fcn.14003646c
mov rax, qword [rbp - 0x31]
cmp dword [rax + 0xc], ebx
jne 0x14003ab5f
cmp byte [rbp - 0x21], r15b
je 0x14003ab94
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
jmp 0x14003ab94
call fcn.140038b68
test eax, eax
jne 0x14003ab80
cmp byte [rbp - 0x21], r15b
je 0x14003ab79
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov ebx, 1
jmp 0x14003ab94
cmp byte [rbp - 0x21], r15b
je 0x14003ab91
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov ebx, r15d
mov r9d, ebx
lea r8, [rbp + 0x77]
lea rdx, [rbp - 0x19]
mov rcx, r14
call fcn.140035a4c
mov rdi, qword [rbp - 9]
test eax, eax
jne 0x14003abc0
mov rcx, qword [rbp + 0x27]
mov rdx, rdi
call qword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
mov ebx, eax
jmp 0x14003abc3
mov ebx, r15d
cmp byte [rbp + 0xf], r15b
je 0x14003abd1
mov rcx, rdi
call fcn.1400359fc
cmp byte [rbp + 0x3f], r15b
je 0x14003abe0
mov rcx, qword [rbp + 0x27]
call fcn.1400359fc
lea r11, [rsp + 0xa0]
mov eax, ebx
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rdi, qword [r11 + 0x38]
mov rsp, r11
pop r15
pop r14
pop rbp
ret
Function at 0x14003dac0
Capabilities:
Parse pe header

Disassembly:
mov eax, 0x5a4d
cmp word [rcx], ax
jne 0x14003dae8
movsxd rdx, dword [rcx + 0x3c]
add rdx, rcx
cmp dword [rdx], 0x4550
jne 0x14003dae8
xor eax, eax
mov ecx, 0x20b
cmp word [rdx + 0x18], cx
sete al
ret
xor eax, eax
ret
Function at 0x140005c30
Capabilities:
Print debug messages

Disassembly:
push rbp
push rsi
push rdi
push rbx
sub rsp, 0x78
lea rbp, [rsp + 0x70]
mov qword [rbp], 0xfffffffffffffffe
mov rsi, rcx
mov rax, qword [rcx]
movsxd rcx, dword [rax + 4]
add rcx, rsi
lea rdx, [rbp - 0x18]
call fcn.14001e570
lea rdx, [0x140102740]
lea rcx, [rbp - 0x18]
call fcn.1400214b0
mov r8, qword [rax]
mov rcx, rax
mov dl, 0xa
call qword [r8 + 0x38]
mov bl, al
lea rcx, [rbp - 0x18]
call fcn.140021490
mov rcx, rsi
mov edx, ebx
call fcn.14001e210
mov rcx, rsi
call fcn.14001d250
lea rdi, [rsi + 8]
lea rbx, [rbp - 0x18]
mov rcx, rdi
mov rdx, rbx
call fcn.1400063c0
mov rax, qword [0x1401025a0]
test rax, rax
je 0x140005cdd
mov rdx, qword [rsi + 0x108]
mov r9, qword [rsi + 0x110]
mov r8d, dword [rsi + 0x118]
mov ecx, dword [rsi + 0x11c]
mov qword [rsp + 0x20], rbx
call rax
test al, al
jne 0x140005d79
mov eax, dword [0x1400fe21c]
test al, 4
je 0x140005d1e
cmp byte [rbp - 1], 0
jns 0x140005cf1
mov rbx, qword [rbp - 0x18]
mov ecx, 2
call fcn.140091538
mov rcx, rbx
mov rdx, rax
call fcn.1400a4e1c
mov ecx, 2
call fcn.140091538
mov rcx, rax
call fcn.1400a4a2c
mov eax, dword [0x1400fe21c]
test al, 2
je 0x140005d70
movzx eax, byte [rbp - 1]
test al, al
lea rcx, [rbp - 0x18]
cmovs rcx, qword [rbp - 0x18]
mov qword [rbp - 0x40], rcx
cmovs rax, qword [rbp - 0x10]
mov qword [rbp - 0x38], rax
lea rbx, [rbp - 0x30]
lea rdx, [rbp - 0x40]
mov rcx, rbx
call fcn.140016590
cmp byte [rbp - 0x19], 0
jns 0x140005d58
mov rbx, qword [rbp - 0x30]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_OutputDebugStringW]
cmp byte [rbp - 0x19], 0
jns 0x140005d70
mov rcx, qword [rbp - 0x30]
call fcn.14008de68
cmp dword [rsi + 0x11c], 4
je 0x140005dda
cmp byte [rbp - 1], 0
jns 0x140005d88
mov rcx, qword [rbp - 0x18]
call fcn.14008de68
mov rax, qword [rsi]
movsxd rax, dword [rax + 4]
lea rcx, vtable.std::__u::basic_ostringstream_char__struct_std::__u::char_traits_char___class_std::__u::allocator_char__.0
mov qword [rsi + rax], rcx
lea rax, vtable.std::__u::basic_stringbuf_char__struct_std::__u::char_traits_char___class_std::__u::allocator_char__.0
mov qword [rsi + 8], rax
cmp byte [rsi + 0x5f], 0
jns 0x140005db4
mov rcx, qword [rsi + 0x48]
call fcn.14008de68
add rsi, 0x70
mov rcx, rdi
call fcn.14001d1c0
mov rcx, rdi
call fcn.140004600
mov rcx, rsi
call fcn.14001d1e0
nop
add rsp, 0x78
pop rbx
pop rdi
pop rsi
pop rbp
ret
int3
Function at 0x14000a3f0
Capabilities:
Check if file exists
Create directory

Disassembly:
push rbp
push rsi
push rdi
sub rsp, 0x190
lea rbp, [rsp + 0x80]
mov qword [rbp + 0x108], 0xfffffffffffffffe
mov rsi, rcx
cmp byte [rcx + 0x17], 0
jns 0x14000a419
mov rcx, qword [rsi]
xor edx, edx
call qword [sym.imp.KERNEL32.dll_CreateDirectoryW]
mov ecx, eax
mov al, 1
test ecx, ecx
jne 0x14000a50e
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x14000a44c
mov rcx, rsi
add rsp, 0x190
pop rdi
pop rsi
pop rbp
jmp fcn.14000a590
call sub.KERNEL32.dll_GetLastError
mov dword [rsp + 0x28], eax
mov dword [rsp + 0x20], 2
lea rdx, str.bool___cdecl_crashpad::_anonymous_namespace_::CreateDirectoryIfNecessary_const_base::FilePath__
lea r8, str.third_party_crashpad_crashpad_client_crash_report_database_win.cc
lea rdi, [rbp - 0x48]
mov rcx, rdi
mov r9d, 0x265
call fcn.140005e40
lea rdx, str.CreateDirectory
mov r8d, 0x10
mov rcx, rdi
call fcn.140003fb0
mov rdi, rax
movzx eax, byte [rsi + 0x17]
test al, al
jns 0x14000a4a4
mov rax, qword [rsi + 8]
mov rsi, qword [rsi]
mov qword [rbp + 0xe0], rsi
mov qword [rbp + 0xe8], rax
lea rsi, [rbp + 0xf0]
lea rdx, [rbp + 0xe0]
mov rcx, rsi
call fcn.1400164b0
movzx r8d, byte [rbp + 0x107]
test r8b, r8b
cmovs r8, qword [rbp + 0xf8]
cmovs rsi, qword [rbp + 0xf0]
mov rcx, rdi
mov rdx, rsi
call fcn.140003fb0
cmp byte [rbp + 0x107], 0
jns 0x14000a503
mov rcx, qword [rbp + 0xf0]
call fcn.14008de68
lea rcx, [rbp - 0x48]
call fcn.140005e70
xor eax, eax
add rsp, 0x190
pop rdi
pop rsi
pop rbp
ret

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

Disassembly:
push rbp
push rsi
push rdi
sub rsp, 0x160
lea rbp, [rsp + 0x80]
mov qword [rbp + 0xd8], 0xfffffffffffffffe
mov rsi, rcx
cmp byte [rcx + 0x17], 0
jns 0x14000a5b9
mov rcx, qword [rsi]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x14000a639
mov ecx, eax
mov al, 1
test cl, 0x10
jne 0x14000a695
mov dword [rsp + 0x20], 2
lea rdx, str.bool___cdecl_crashpad::_anonymous_namespace_::EnsureDirectory_const_base::FilePath__
lea r8, str.third_party_crashpad_crashpad_client_crash_report_database_win.cc
lea rdi, [rbp - 0x50]
mov rcx, rdi
mov r9d, 0x255
call fcn.140005340
lea rdx, str.GetFileAttributes
mov r8d, 0x12
mov rcx, rdi
call fcn.140003fb0
mov rcx, rax
mov rdx, rsi
call fcn.140007410
lea rdx, str.:_not_a_directory
mov r8d, 0x11
mov rcx, rax
call fcn.140003fb0
lea rcx, [rbp - 0x50]
call fcn.140005c30
jmp 0x14000a693
call sub.KERNEL32.dll_GetLastError
mov dword [rsp + 0x28], eax
mov dword [rsp + 0x20], 2
lea rdx, str.bool___cdecl_crashpad::_anonymous_namespace_::EnsureDirectory_const_base::FilePath__
lea r8, str.third_party_crashpad_crashpad_client_crash_report_database_win.cc
lea rdi, [rbp - 0x50]
mov rcx, rdi
mov r9d, 0x251
call fcn.140005e40
lea rdx, str.GetFileAttributes
mov r8d, 0x12
mov rcx, rdi
call fcn.140003fb0
mov rcx, rax
mov rdx, rsi
call fcn.140007410
lea rcx, [rbp - 0x50]
call fcn.140005e70
xor eax, eax
add rsp, 0x160
pop rdi
pop rsi
pop rbp
ret
Function at 0x14000c810
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push rbp
push r15
push r14
push r12
push rsi
push rdi
push rbx
sub rsp, 0x40
lea rbp, [rsp + 0x40]
mov qword [rbp - 8], 0xfffffffffffffffe
mov rsi, r8
mov rdi, rdx
lea rdx, [rbp - 0x10]
call fcn.14000ad40
mov r15, qword [rbp - 0x10]
test r15, r15
je 0x14000c8fc
movups xmm0, xmmword [rdi]
movaps xmmword [rbp - 0x20], xmm0
mov rdi, qword [r15 + 0x40]
mov r12, qword [r15 + 0x48]
mov ebx, 1
cmp rdi, r12
je 0x14000c901
lea r14, [rbp - 0x20]
nop dword [rax + rax]
mov rcx, rdi
mov rdx, r14
call fcn.140045c60
test al, al
jne 0x14000c88b
add rdi, 0x70
cmp rdi, r12
jne 0x14000c870
mov rdi, r12
cmp rdi, qword [r15 + 0x48]
je 0x14000c901
lea r14, [rdi + 0x10]
cmp byte [rdi + 0x27], 0
mov rcx, r14
jns 0x14000c8a2
mov rcx, qword [rdi + 0x10]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov ecx, eax
shr ecx, 3
and ecx, 2
cmp eax, 0xffffffff
mov ebx, 1
cmovne ebx, ecx
test ebx, ebx
jne 0x14000c901
movups xmm0, xmmword [rdi]
movups xmmword [rsi], xmm0
lea rcx, [rsi + 0x10]
mov rdx, r14
call fcn.140006840
cmp rdi, rsi
je 0x14000c941
lea rcx, [rsi + 0x28]
lea rdx, [rdi + 0x28]
cmp byte [rsi + 0x3f], 0
movzx eax, byte [rdi + 0x3f]
js 0x14000c91b
test al, al
js 0x14000c929
mov rax, qword [rdx + 0x10]
mov qword [rcx + 0x10], rax
movups xmm0, xmmword [rdx]
movups xmmword [rcx], xmm0
jmp 0x14000c941
mov ebx, 3
lea rcx, [rbp - 0x10]
call fcn.14000bbd0
mov eax, ebx
add rsp, 0x40
pop rbx
pop rdi
pop rsi
pop r12
pop r14
pop r15
pop rbp
ret
test al, al
jns 0x14000c938
mov r8, qword [rdi + 0x30]
mov rdx, qword [rdi + 0x28]
jmp 0x14000c93c
mov rdx, qword [rdi + 0x28]
mov r8, qword [rdi + 0x30]
call fcn.140008c80
jmp 0x14000c941
movzx r8d, al
call fcn.140008b50
mov rax, qword [rdi + 0x60]
mov qword [rsi + 0x60], rax
movups xmm0, xmmword [rdi + 0x40]
movups xmm1, xmmword [rdi + 0x50]
movups xmmword [rsi + 0x50], xmm1
movups xmmword [rsi + 0x40], xmm0
xor ebx, ebx
jmp 0x14000c901
Function at 0x14000ca10
Capabilities:
Get file attributes

Disassembly:
push rbp
push r15
push r14
push r12
push rsi
push rdi
push rbx
sub rsp, 0x40
lea rbp, [rsp + 0x40]
mov qword [rbp - 8], 0xfffffffffffffffe
mov r12, r8
mov esi, edx
mov rdi, qword [rcx + 0x40]
mov r14, qword [rcx + 0x48]
mov r15, qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov qword [rbp - 0x18], r8
jmp 0x14000ca59
mov rcx, r12
mov rdx, rdi
call fcn.14000ea80
mov qword [r12 + 8], rax
add rdi, 0x70
cmp rdi, r14
je 0x14000cb08
cmp dword [rdi + 0x68], esi
jne 0x14000ca55
lea rbx, [rdi + 0x10]
cmp byte [rdi + 0x27], 0
mov rcx, rbx
jns 0x14000ca78
mov rcx, qword [rdi + 0x10]
call r15
test al, 0x10
jne 0x14000ca55
mov rax, qword [r12 + 8]
cmp rax, qword [r12 + 0x10]
jae 0x14000ca45
movups xmm0, xmmword [rdi]
movups xmmword [rax], xmm0
lea r12, [rax + 0x10]
mov rcx, r12
mov rdx, rbx
mov qword [rbp - 0x10], rax
call fcn.140006720
mov rax, qword [rbp - 0x10]
lea rcx, [rax + 0x28]
cmp byte [rdi + 0x3f], 0
js 0x14000cac6
lea rax, [rdi + 0x28]
mov rdx, qword [rax + 0x10]
mov qword [rcx + 0x10], rdx
movups xmm0, xmmword [rax]
movups xmmword [rcx], xmm0
jmp 0x14000cad7
mov qword [rbp - 0x20], r12
mov rdx, qword [rdi + 0x28]
mov r8, qword [rdi + 0x30]
call fcn.140008340
mov rax, qword [rdi + 0x60]
mov rcx, qword [rbp - 0x10]
mov qword [rcx + 0x60], rax
mov rax, rcx
movups xmm0, xmmword [rdi + 0x40]
movups xmm1, xmmword [rdi + 0x50]
movups xmmword [rcx + 0x50], xmm1
movups xmmword [rcx + 0x40], xmm0
add rax, 0x68
mov r12, qword [rbp - 0x18]
mov qword [r12 + 8], rax
jmp 0x14000ca50
add rsp, 0x40
pop rbx
pop rdi
pop rsi
pop r12
pop r14
pop r15
pop rbp
ret
Function at 0x14000cc20
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push rbp
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbx
sub rsp, 0x58
lea rbp, [rsp + 0x50]
mov qword [rbp], 0xfffffffffffffffe
mov r12d, r9d
mov rsi, r8
mov r14, rdx
mov rdi, rcx
lea rdx, [rbp - 0x18]
call fcn.14000ad40
mov r13, qword [rbp - 0x18]
test r13, r13
je 0x14000ccba
movups xmm0, xmmword [r14]
movaps xmmword [rbp - 0x30], xmm0
mov r14, qword [r13 + 0x40]
mov rbx, qword [r13 + 0x48]
mov r15d, 1
cmp r14, rbx
je 0x14000ccc0
mov byte [rbp - 1], r12b
lea r12, [rbp - 0x30]
nop
mov rcx, r14
mov rdx, r12
call fcn.140045c60
test al, al
jne 0x14000cc9b
add r14, 0x70
cmp r14, rbx
jne 0x14000cc80
mov r14, rbx
cmp r14, qword [r13 + 0x48]
je 0x14000ccc0
mov eax, dword [r14 + 0x68]
test eax, eax
je 0x14000ccdd
xor ecx, ecx
cmp eax, 1
sete cl
lea r15d, [rcx + rcx*2]
inc r15d
jmp 0x14000ccc0
mov r15d, 3
lea rcx, [rbp - 0x18]
call fcn.14000bbd0
mov eax, r15d
add rsp, 0x58
pop rbx
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
pop rbp
ret
lea r12, [r14 + 0x10]
cmp byte [r14 + 0x27], 0
mov rcx, r12
jns 0x14000ccef
mov rcx, qword [r14 + 0x10]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x14000ccc0
shr eax, 3
and eax, 2
mov r15d, eax
jne 0x14000ccc0
mov byte [r13 + 0x38], 1
mov dword [r14 + 0x68], 1
mov ecx, 0xb8
call fcn.14008de70
mov rcx, rax
mov qword [rbp - 0x10], rax
call fcn.140042510
movups xmm0, xmmword [r14]
mov rax, qword [rbp - 0x10]
movups xmmword [rax + 8], xmm0
lea r15, [rax + 0x18]
mov rcx, r15
mov rdx, r12
call fcn.140006840
mov bl, byte [rbp - 1]
mov r12, qword [rbp - 0x10]
lea rax, [r12 + 8]
cmp rax, r14
je 0x14000cda8
mov rax, qword [rbp - 0x10]
mov rcx, rax
add rcx, 0x30
lea rdx, [r14 + 0x28]
cmp byte [rax + 0x47], 0
movzx eax, byte [r14 + 0x3f]
js 0x14000cd82
test al, al
js 0x14000cd90
mov rax, qword [rdx + 0x10]
mov qword [rcx + 0x10], rax
movups xmm0, xmmword [rdx]
movups xmmword [rcx], xmm0
jmp 0x14000cda8
test al, al
jns 0x14000cd9f
mov r8, qword [r14 + 0x30]
mov rdx, qword [r14 + 0x28]
jmp 0x14000cda3
mov rdx, qword [r14 + 0x28]
mov r8, qword [r14 + 0x30]
call fcn.140008c80
jmp 0x14000cda8
movzx r8d, al
call fcn.140008b50
mov rax, qword [r14 + 0x60]
mov rcx, qword [rbp - 0x10]
mov qword [rcx + 0x68], rax
movups xmm0, xmmword [r14 + 0x40]
movups xmm1, xmmword [r14 + 0x50]
movups xmmword [rcx + 0x58], xmm1
movups xmmword [rcx + 0x48], xmm0
mov rdx, r15
mov r8, rdi
call fcn.140042750
test al, al
je 0x14000cdfe
mov byte [r12 + 0xb0], bl
mov rcx, qword [rsi]
mov qword [rsi], r12
xor r15d, r15d
test rcx, rcx
je 0x14000ccc0
mov rax, qword [rcx]
mov edx, 1
call qword [rax]
jmp 0x14000ccc0
mov rcx, r12
mov rax, qword [r12]
mov edx, 1
call qword [rax]
mov r15d, 2
jmp 0x14000ccc0