joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1400d2420
Capabilities:
Check for time delay via gettickcount

Disassembly:
push rbx
sub rsp, reloc.MFC80U.DLL_Ordinal_512
mov rax, qword [0x14042d950]
xor rax, rsp
mov qword [rsp + 0x1e0], rax
mov rbx, rcx
mov rcx, qword [rcx + 0x38]
xor edx, edx
mov rax, qword [rbx + 0x48]
mov r8, qword [rcx]
imul rax, rax, 0x64
div qword [rbx + 0x10]
add eax, dword [rbx + 0x50]
mov edx, eax
call qword [r8 + 0x10]
mov r11d, dword [0x140434754]
test r11b, 1
jne 0x1400d2480
or r11d, 1
mov dword [0x140434754], r11d
call qword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [0x140434750], eax
call qword [sym.imp.KERNEL32.dll_GetTickCount]
sub eax, dword [0x140434750]
cmp eax, 0x3e8
jb 0x1400d263e
lea rcx, [rsp + 0xe2]
xor edx, edx
mov r8d, 0xfe
movaps xmmword [rsp + 0x1f0], xmm6
mov word [rsp + 0xe0], 0
call sub.ntdll.dll_memset
cvtsi2sd xmm6, qword [rbx + 0x48]
call qword [sym.imp.KERNEL32.dll_GetTickCount]
lea rcx, [rsp + 0xa0]
sub eax, dword [rbx + 0x54]
mov word [rsp + 0xa0], 0
cvtsi2sd xmm0, rax
xor eax, eax
mov qword [rsp + 0xa2], rax
mov qword [rsp + 0xaa], rax
mov qword [rsp + 0xb2], rax
mov qword [rsp + 0xba], rax
mov qword [rsp + 0xc2], rax
mov qword [rsp + 0xca], rax
divsd xmm0, qword [0x1402ed6c0]
mov qword [rsp + 0xd2], rax
mov dword [rsp + 0xda], eax
mov word [rsp + 0xde], ax
divsd xmm6, xmm0
mov eax, dword [rbx + 0x58]
cvtsi2sd xmm0, rax
mulsd xmm0, xmm6
cvttsd2si rdx, xmm0
call fcn.140055850
mov edx, dword [rbx + 0x58]
xor eax, eax
lea rcx, [rsp + 0x20]
mov word [rsp + 0x20], 0
mov qword [rsp + 0x22], rax
imul rdx, qword [rbx + 0x48]
mov qword [rsp + 0x2a], rax
mov qword [rsp + 0x32], rax
mov qword [rsp + 0x3a], rax
mov qword [rsp + 0x42], rax
mov qword [rsp + 0x4a], rax
mov qword [rsp + 0x52], rax
mov dword [rsp + 0x5a], eax
mov word [rsp + 0x5e], ax
mov word [rsp + 0x60], ax
mov qword [rsp + 0x62], rax
mov qword [rsp + 0x6a], rax
mov qword [rsp + 0x72], rax
mov qword [rsp + 0x7a], rax
mov qword [rsp + 0x82], rax
mov qword [rsp + 0x8a], rax
mov qword [rsp + 0x92], rax
mov dword [rsp + 0x9a], eax
mov word [rsp + 0x9e], ax
call fcn.140055850
mov edx, dword [rbx + 0x58]
lea rcx, [rsp + 0x60]
imul rdx, qword [rbx + 0x10]
call fcn.140055850
call fcn.140049500
mov r8, qword [rax]
lea rdx, str.0034
mov rcx, rax
call qword [r8]
lea r9, [rsp + 0x60]
lea r8, [rsp + 0x20]
lea rcx, [rsp + 0xe0]
mov rdx, rax
call qword [sym.imp.MSVCR80.dll__swprintf]
mov rcx, qword [rbx + 0x38]
lea rdx, [rsp + 0xe0]
mov rax, qword [rcx]
call qword [rax + 0x70]
call qword [sym.imp.KERNEL32.dll_GetTickCount]
movaps xmm6, xmmword [rsp + 0x1f0]
mov dword [0x140434750], eax
mov rcx, qword [rsp + 0x1e0]
xor rcx, rsp
call fcn.140161080
add rsp, reloc.MFC80U.DLL_Ordinal_512
pop rbx
ret

Function at 0x1400d3590
Capabilities:
Create directory

Disassembly:
sub rsp, 0x48
xor eax, eax
lea rdx, [rsp + 0x20]
mov qword [rsp + 0x20], rax
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x30], rax
mov dword [rsp + 0x20], 0x18
mov dword [rsp + 0x30], eax
mov qword [rsp + 0x28], rax
call qword [sym.imp.KERNEL32.dll_CreateDirectoryW]
add rsp, 0x48
ret
Function at 0x1400d3b70
Capabilities:
Check if file exists
Enumerate files on windows

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
push rdi
push r12
push r13
sub rsp, 0x740
mov rax, qword [0x14042d950]
xor rax, rsp
mov qword [rsp + 0x730], rax
mov rdi, rcx
lea rcx, [rsp + 0x472]
xor edx, edx
mov r8d, 0x2ba
mov word [rsp + Ordinal_1137], 0
call sub.ntdll.dll_memset
xor r13d, r13d
lea rcx, [rsp + 0x272]
mov r12d, r13d
xor edx, edx
mov r8d, Ordinal_512
mov word [rsp + 0x270], r12w
call sub.ntdll.dll_memset
lea rcx, [rsp + 0x20]
xor edx, edx
mov r8d, 0x250
lea ebx, [r13 + 1]
call sub.ntdll.dll_memset
lea rdx, str._s.
lea rcx, [rsp + 0x470]
mov r8, rdi
call qword [sym.imp.MSVCR80.dll__swprintf]
lea rdx, [rsp + 0x20]
lea rcx, [rsp + 0x470]
call qword [sym.imp.KERNEL32.dll_FindFirstFileW]
cmp rax, 0xffffffffffffffff
mov rbp, rax
jne 0x1400d3c40
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
cmove ebx, ebx
nop
nop
lea rcx, [rsp + 0x270]
xor edx, edx
mov r8d, Ordinal_512
call sub.ntdll.dll_memset
mov rdx, r13
nop
nop
movzx eax, word [rsp + rdx + 0x4c]
add rdx, 2
test ax, ax
mov word [rsp + rdx + 0x26e], ax
jne 0x1400d3c60
lea rcx, [rsp + 0x270]
call qword [sym.imp.ntdll.dll__wcslwr]
lea rsi, [0x1403b6c40]
lea rdi, [rsp + 0x270]
mov ecx, 2
repe cmpsw word [rsi], word [rdi]
je 0x1400d3d63
lea rsi, [0x1403b6c44]
lea rdi, [rsp + 0x270]
mov ecx, 3
repe cmpsw word [rsi], word [rdi]
je 0x1400d3d63
lea rsi, str.recycler
lea rdi, [rsp + 0x270]
mov ecx, 9
repe cmpsw word [rsi], word [rdi]
je 0x1400d3d63
lea rsi, str._recycle.bin
lea rdi, [rsp + 0x270]
mov ecx, 0xd
repe cmpsw word [rsi], word [rdi]
je 0x1400d3d63
lea rsi, str.recycle_bin
lea rdi, [rsp + 0x270]
mov ecx, 0xc
repe cmpsw word [rsi], word [rdi]
je 0x1400d3d63
lea rsi, str.system_volume_information
lea rdi, [rsp + 0x270]
mov ecx, 0x1a
repe cmpsw word [rsi], word [rdi]
je 0x1400d3d63
lea rsi, str.pagefile.sys
lea rdi, [rsp + 0x270]
mov ecx, 0xd
repe cmpsw word [rsi], word [rdi]
je 0x1400d3d63
lea rsi, [0x1402ed858]
lea rdi, [rsp + 0x270]
mov ecx, 0xd
repe cmpsw word [rsi], word [rdi]
je 0x1400d3d63
add r12d, 1
test r12d, r12d
cmovg ebx, r13d
lea rdx, [rsp + 0x20]
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x1400d3c40
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_FindClose]
mov eax, ebx
mov rcx, qword [rsp + 0x730]
xor rcx, rsp
call fcn.140161080
lea r11, [rsp + 0x740]
mov rbx, qword [r11 + 0x28]
mov rbp, qword [r11 + 0x30]
mov rsi, qword [r11 + 0x38]
mov rsp, r11
pop r13
pop r12
pop rdi
ret
Function at 0x1400d6880
Capabilities:
Read file on windows

Disassembly:
push rbx
push rbp
push rsi
push rdi
push r12
sub rsp, 0x70
mov rax, qword [0x14042d950]
xor rax, rsp
mov qword [rsp + 0x60], rax
mov r12, rdx
mov rdx, r8
mov rbp, r9
mov rsi, rcx
call fcn.1400d66f0
test eax, eax
jne 0x1400d698a
call fcn.140049470
lea rbx, [0x140434820]
xor edx, edx
mov rcx, rbx
mov r8d, 0x80
mov rsi, rax
call sub.ntdll.dll_memset
lea rcx, str.....IncludeDiskIO.h
mov edx, 0x5c
call qword [sym.imp.ntdll.dll_strrchr]
test rax, rax
mov rdi, rax
jne 0x1400d68f3
xor ebx, ebx
jmp 0x1400d6970
xor eax, eax
lea rdx, [0x1402dfd08]
lea rcx, [rsp + 0x48]
lea r8d, [rax + 0x5d]
mov byte [rsp + 0x48], 0
mov qword [rsp + 0x49], rax
mov word [rsp + 0x51], ax
mov byte [rsp + 0x53], al
call qword [sym.imp.ntdll.dll_sprintf]
lea rdx, [rdi + 1]
mov rcx, rbx
sub rcx, rdx
nop
nop
movzx eax, byte [rdx]
add rdx, 1
test al, al
mov byte [rcx + rdx - 1], al
jne 0x1400d6930
xor eax, eax
or rcx, 0xffffffffffffffff
mov rdi, rbx
repne scasb al, byte [rdi]
xor ecx, ecx
lea rdx, [rsp + 0x48]
nop
nop
nop
nop
movzx eax, byte [rdx + rcx]
add rcx, 1
test al, al
mov byte [rdi + rcx - 2], al
jne 0x1400d6960
mov rax, qword [rsi]
lea rdx, [0x1402e1048]
mov r8, rbx
mov rcx, rsi
call qword [rax + 0x10]
xor eax, eax
jmp 0x1400d6a0a
lea rax, [rsp + 0x44]
xor ebx, ebx
xor r9d, r9d
mov qword [rsp + 0x38], rbx
mov qword [rsp + 0x30], rax
lea rax, [rsp + 0x48]
xor r8d, r8d
mov edx, 0x70000
mov rcx, rsi
mov dword [rsp + 0x28], 0x18
mov dword [rsp + 0x44], ebx
mov qword [rsp + 0x20], rax
call qword [sym.imp.KERNEL32.dll_DeviceIoControl]
mov edi, dword [rsp + 0x5c]
mov ecx, reloc.MFC80U.DLL_Ordinal_512
test eax, eax
lea r9, [rsp + 0x40]
mov rdx, r12
cmove edi, ecx
mov rcx, rsi
mov dword [rsp + 0x40], ebx
mov qword [rsp + 0x20], rbx
imul ebp, edi
mov r8d, ebp
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x1400d6a08
mov eax, dword [rsp + 0x40]
xor edx, edx
div edi
test edx, edx
jne 0x1400d6a08
mov ebx, 1
mov eax, ebx
mov rcx, qword [rsp + 0x60]
xor rcx, rsp
call fcn.140161080
add rsp, 0x70
pop r12
pop rdi
pop rsi
pop rbp
pop rbx
ret
Function at 0x1400d7000
Capabilities:
Read file on windows

Disassembly:
push rbx
push rbp
push rsi
push rdi
push r12
sub rsp, 0x70
mov rax, qword [0x14042d950]
xor rax, rsp
mov qword [rsp + 0x60], rax
mov r12, rdx
mov rdx, r8
mov rbp, r9
mov rsi, rcx
call fcn.1400d6e70
test eax, eax
jne 0x1400d710a
call fcn.140049470
lea rbx, [0x1404348c0]
xor edx, edx
mov rcx, rbx
mov r8d, 0x80
mov rsi, rax
call sub.ntdll.dll_memset
lea rcx, str.....IncludeDiskIO.h
mov edx, 0x5c
call qword [sym.imp.ntdll.dll_strrchr]
test rax, rax
mov rdi, rax
jne 0x1400d7073
xor ebx, ebx
jmp 0x1400d70f0
xor eax, eax
lea rdx, [0x1402dfd08]
lea rcx, [rsp + 0x48]
lea r8d, [rax + 0x5d]
mov byte [rsp + 0x48], 0
mov qword [rsp + 0x49], rax
mov word [rsp + 0x51], ax
mov byte [rsp + 0x53], al
call qword [sym.imp.ntdll.dll_sprintf]
lea rdx, [rdi + 1]
mov rcx, rbx
sub rcx, rdx
nop
nop
movzx eax, byte [rdx]
add rdx, 1
test al, al
mov byte [rcx + rdx - 1], al
jne 0x1400d70b0
xor eax, eax
or rcx, 0xffffffffffffffff
mov rdi, rbx
repne scasb al, byte [rdi]
xor ecx, ecx
lea rdx, [rsp + 0x48]
nop
nop
nop
nop
movzx eax, byte [rdx + rcx]
add rcx, 1
test al, al
mov byte [rdi + rcx - 2], al
jne 0x1400d70e0
mov rax, qword [rsi]
lea rdx, [0x1402e1048]
mov r8, rbx
mov rcx, rsi
call qword [rax + 0x10]
xor eax, eax
jmp 0x1400d718a
lea rax, [rsp + 0x44]
xor ebx, ebx
xor r9d, r9d
mov qword [rsp + 0x38], rbx
mov qword [rsp + 0x30], rax
lea rax, [rsp + 0x48]
xor r8d, r8d
mov edx, 0x70000
mov rcx, rsi
mov dword [rsp + 0x28], 0x18
mov dword [rsp + 0x44], ebx
mov qword [rsp + 0x20], rax
call qword [sym.imp.KERNEL32.dll_DeviceIoControl]
mov edi, dword [rsp + 0x5c]
mov ecx, reloc.MFC80U.DLL_Ordinal_512
test eax, eax
lea r9, [rsp + 0x40]
mov rdx, r12
cmove edi, ecx
mov rcx, rsi
mov dword [rsp + 0x40], ebx
mov qword [rsp + 0x20], rbx
imul ebp, edi
mov r8d, ebp
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x1400d7188
mov eax, dword [rsp + 0x40]
xor edx, edx
div edi
test edx, edx
jne 0x1400d7188
mov ebx, 1
mov eax, ebx
mov rcx, qword [rsp + 0x60]
xor rcx, rsp
call fcn.140161080
add rsp, 0x70
pop r12
pop rdi
pop rsi
pop rbp
pop rbx
ret
Function at 0x1400d71b0
Capabilities:
Get volume information via ioctl

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rsi
push rdi
push r12
push r13
sub rsp, 0xd0
mov rax, qword [0x14042d950]
xor rax, rsp
mov qword [rsp + 0xc0], rax
mov rbp, qword [rsp + 0x120]
movzx r12d, r9w
mov r13, r8
mov rsi, rdx
mov ebx, ecx
call fcn.140049400
mov rdi, qword [rax]
mov r9d, 0x80000000
mov r8, rsi
mov edx, ebx
mov rcx, rax
call qword [rdi + 0xc0]
test rax, rax
mov rsi, rax
jne 0x1400d72fa
call fcn.140049470
lea rbx, [0x1404348c0]
xor edx, edx
mov rcx, rbx
mov r8d, 0x80
mov rsi, rax
call sub.ntdll.dll_memset
lea rcx, str..._ntfsstd.cpp
mov edx, 0x5c
call qword [sym.imp.ntdll.dll_strrchr]
test rax, rax
mov rdi, rax
jne 0x1400d7251
xor ebx, ebx
jmp 0x1400d72e0
xor eax, eax
lea rdx, [0x1402dfd08]
lea rcx, [rsp + 0xb0]
lea r8d, [rax + 0x4c]
mov byte [rsp + 0xb0], 0
mov qword [rsp + 0xb1], rax
mov word [rsp + 0xb9], ax
mov byte [rsp + 0xbb], al
call qword [sym.imp.ntdll.dll_sprintf]
lea rdx, [rdi + 1]
mov rcx, rbx
sub rcx, rdx
nop
nop
nop
movzx eax, byte [rdx]
add rdx, 1
test al, al
mov byte [rcx + rdx - 1], al
jne 0x1400d72a0
xor eax, eax
or rcx, 0xffffffffffffffff
mov rdi, rbx
repne scasb al, byte [rdi]
xor ecx, ecx
lea rdx, [rsp + 0xb0]
nop
nop
nop
movzx eax, byte [rdx + rcx]
add rcx, 1
test al, al
mov byte [rdi + rcx - 2], al
jne 0x1400d72d0
mov rax, qword [rsi]
lea rdx, str._s:_Failed_to_open_volume_by_ZwCreateFile.
mov r8, rbx
mov rcx, rsi
call qword [rax + 0x10]
xor eax, eax
jmp 0x1400d73af
lea rax, [rsp + 0x40]
xor ebx, ebx
xor r9d, r9d
mov qword [rsp + 0x38], rbx
mov qword [rsp + 0x30], rax
lea rax, [rsp + 0x50]
xor r8d, r8d
mov edx, 0x90064
mov rcx, rsi
mov dword [rsp + 0x28], 0x60
mov dword [rsp + 0x40], ebx
mov qword [rsp + 0x20], rax
call qword [sym.imp.KERNEL32.dll_DeviceIoControl]
mov rcx, rsi
mov edi, eax
call qword [sym.imp.KERNEL32.dll_CloseHandle]
test edi, edi
jne 0x1400d7374
call fcn.140049470
lea rcx, str..._ntfsstd.cpp
mov edx, 0x60
mov rbx, qword [rax]
mov rdi, rax
call fcn.1400d6d80
lea rdx, str._s:_Send_FSCTL_GET_NTFS_VOLUME_DATA_Control_Code_failed.
mov rcx, rdi
mov r8, rax
call qword [rbx + 0x10]
xor eax, eax
jmp 0x1400d73af
mov rax, qword [rsp + 0x60]
movzx ecx, r12w
movzx edi, r12w
mov r8, rax
mov dword [rbp], 1
imul ecx, ecx, 0x3f
sub r8, qword [rsp + 0x68]
movsxd rdx, ecx
mov rcx, rdi
add rdx, r13
imul rcx, rax
cmp rcx, rdx
jbe 0x1400d73a8
mov dword [rbp], ebx
imul rdi, r8
mov rax, rdi
mov rcx, qword [rsp + 0xc0]
xor rcx, rsp
call fcn.140161080
mov rbx, qword [rsp + 0x110]
add rsp, 0xd0
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
Function at 0x1400db330
Capabilities:
Read file on windows

Disassembly:
push rbx
push rbp
push rsi
push rdi
push r12
sub rsp, 0x70
mov rax, qword [0x14042d950]
xor rax, rsp
mov qword [rsp + 0x60], rax
mov r12, rdx
mov rdx, r8
mov rbp, r9
mov rsi, rcx
call fcn.1400db1a0
test eax, eax
jne 0x1400db43a
call fcn.140049470
lea rbx, [0x14043d090]
xor edx, edx
mov rcx, rbx
mov r8d, 0x80
mov rsi, rax
call sub.ntdll.dll_memset
lea rcx, str.....IncludeDiskIO.h
mov edx, 0x5c
call qword [sym.imp.ntdll.dll_strrchr]
test rax, rax
mov rdi, rax
jne 0x1400db3a3
xor ebx, ebx
jmp 0x1400db420
xor eax, eax
lea rdx, [0x1402dfd08]
lea rcx, [rsp + 0x48]
lea r8d, [rax + 0x5d]
mov byte [rsp + 0x48], 0
mov qword [rsp + 0x49], rax
mov word [rsp + 0x51], ax
mov byte [rsp + 0x53], al
call qword [sym.imp.ntdll.dll_sprintf]
lea rdx, [rdi + 1]
mov rcx, rbx
sub rcx, rdx
nop
nop
movzx eax, byte [rdx]
add rdx, 1
test al, al
mov byte [rcx + rdx - 1], al
jne 0x1400db3e0
xor eax, eax
or rcx, 0xffffffffffffffff
mov rdi, rbx
repne scasb al, byte [rdi]
xor ecx, ecx
lea rdx, [rsp + 0x48]
nop
nop
nop
nop
movzx eax, byte [rdx + rcx]
add rcx, 1
test al, al
mov byte [rdi + rcx - 2], al
jne 0x1400db410
mov rax, qword [rsi]
lea rdx, [0x1402e1048]
mov r8, rbx
mov rcx, rsi
call qword [rax + 0x10]
xor eax, eax
jmp 0x1400db4ba
lea rax, [rsp + 0x44]
xor ebx, ebx
xor r9d, r9d
mov qword [rsp + 0x38], rbx
mov qword [rsp + 0x30], rax
lea rax, [rsp + 0x48]
xor r8d, r8d
mov edx, 0x70000
mov rcx, rsi
mov dword [rsp + 0x28], 0x18
mov dword [rsp + 0x44], ebx
mov qword [rsp + 0x20], rax
call qword [sym.imp.KERNEL32.dll_DeviceIoControl]
mov edi, dword [rsp + 0x5c]
mov ecx, reloc.MFC80U.DLL_Ordinal_512
test eax, eax
lea r9, [rsp + 0x40]
mov rdx, r12
cmove edi, ecx
mov rcx, rsi
mov dword [rsp + 0x40], ebx
mov qword [rsp + 0x20], rbx
imul ebp, edi
mov r8d, ebp
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x1400db4b8
mov eax, dword [rsp + 0x40]
xor edx, edx
div edi
test edx, edx
jne 0x1400db4b8
mov ebx, 1
mov eax, ebx
mov rcx, qword [rsp + 0x60]
xor rcx, rsp
call fcn.140161080
add rsp, 0x70
pop r12
pop rdi
pop rsi
pop rbp
pop rbx
ret
Function at 0x1400dc2d0
Capabilities:
Read file on windows

Disassembly:
push rbx
push rbp
push rsi
push rdi
push r12
sub rsp, 0x70
mov rax, qword [0x14042d950]
xor rax, rsp
mov qword [rsp + 0x60], rax
mov r12, rdx
mov rdx, r8
mov rbp, r9
mov rsi, rcx
call fcn.1400dc140
test eax, eax
jne 0x1400dc3da
call fcn.140049470
lea rbx, [0x14043d190]
xor edx, edx
mov rcx, rbx
mov r8d, 0x80
mov rsi, rax
call sub.ntdll.dll_memset
lea rcx, str.....IncludeDiskIO.h
mov edx, 0x5c
call qword [sym.imp.ntdll.dll_strrchr]
test rax, rax
mov rdi, rax
jne 0x1400dc343
xor ebx, ebx
jmp 0x1400dc3c0
xor eax, eax
lea rdx, [0x1402dfd08]
lea rcx, [rsp + 0x48]
lea r8d, [rax + 0x5d]
mov byte [rsp + 0x48], 0
mov qword [rsp + 0x49], rax
mov word [rsp + 0x51], ax
mov byte [rsp + 0x53], al
call qword [sym.imp.ntdll.dll_sprintf]
lea rdx, [rdi + 1]
mov rcx, rbx
sub rcx, rdx
nop
nop
movzx eax, byte [rdx]
add rdx, 1
test al, al
mov byte [rcx + rdx - 1], al
jne 0x1400dc380
xor eax, eax
or rcx, 0xffffffffffffffff
mov rdi, rbx
repne scasb al, byte [rdi]
xor ecx, ecx
lea rdx, [rsp + 0x48]
nop
nop
nop
nop
movzx eax, byte [rdx + rcx]
add rcx, 1
test al, al
mov byte [rdi + rcx - 2], al
jne 0x1400dc3b0
mov rax, qword [rsi]
lea rdx, [0x1402e1048]
mov r8, rbx
mov rcx, rsi
call qword [rax + 0x10]
xor eax, eax
jmp 0x1400dc45a
lea rax, [rsp + 0x44]
xor ebx, ebx
xor r9d, r9d
mov qword [rsp + 0x38], rbx
mov qword [rsp + 0x30], rax
lea rax, [rsp + 0x48]
xor r8d, r8d
mov edx, 0x70000
mov rcx, rsi
mov dword [rsp + 0x28], 0x18
mov dword [rsp + 0x44], ebx
mov qword [rsp + 0x20], rax
call qword [sym.imp.KERNEL32.dll_DeviceIoControl]
mov edi, dword [rsp + 0x5c]
mov ecx, reloc.MFC80U.DLL_Ordinal_512
test eax, eax
lea r9, [rsp + 0x40]
mov rdx, r12
cmove edi, ecx
mov rcx, rsi
mov dword [rsp + 0x40], ebx
mov qword [rsp + 0x20], rbx
imul ebp, edi
mov r8d, ebp
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x1400dc458
mov eax, dword [rsp + 0x40]
xor edx, edx
div edi
test edx, edx
jne 0x1400dc458
mov ebx, 1
mov eax, ebx
mov rcx, qword [rsp + 0x60]
xor rcx, rsp
call fcn.140161080
add rsp, 0x70
pop r12
pop rdi
pop rsi
pop rbp
pop rbx
ret
Function at 0x1400dc480
Capabilities:
Write file on windows

Disassembly:
push rbx
push rbp
push rsi
push rdi
push r12
sub rsp, 0x70
mov rax, qword [0x14042d950]
xor rax, rsp
mov qword [rsp + 0x60], rax
mov r12, rdx
mov rdx, r8
mov rbp, r9
mov rsi, rcx
call fcn.1400dc140
test eax, eax
jne 0x1400dc58a
call fcn.140049470
lea rbx, [0x14043d190]
xor edx, edx
mov rcx, rbx
mov r8d, 0x80
mov rsi, rax
call sub.ntdll.dll_memset
lea rcx, str.....IncludeDiskIO.h
mov edx, 0x5c
call qword [sym.imp.ntdll.dll_strrchr]
test rax, rax
mov rdi, rax
jne 0x1400dc4f3
xor ebx, ebx
jmp 0x1400dc570
xor eax, eax
lea rdx, [0x1402dfd08]
lea rcx, [rsp + 0x48]
lea r8d, [rax + 0x72]
mov byte [rsp + 0x48], 0
mov qword [rsp + 0x49], rax
mov word [rsp + 0x51], ax
mov byte [rsp + 0x53], al
call qword [sym.imp.ntdll.dll_sprintf]
lea rdx, [rdi + 1]
mov rcx, rbx
sub rcx, rdx
nop
nop
movzx eax, byte [rdx]
add rdx, 1
test al, al
mov byte [rcx + rdx - 1], al
jne 0x1400dc530
xor eax, eax
or rcx, 0xffffffffffffffff
mov rdi, rbx
repne scasb al, byte [rdi]
xor ecx, ecx
lea rdx, [rsp + 0x48]
nop
nop
nop
nop
movzx eax, byte [rdx + rcx]
add rcx, 1
test al, al
mov byte [rdi + rcx - 2], al
jne 0x1400dc560
mov rax, qword [rsi]
lea rdx, [0x1402e4750]
mov r8, rbx
mov rcx, rsi
call qword [rax + 0x10]
xor eax, eax
jmp 0x1400dc60a
lea rax, [rsp + 0x44]
xor ebx, ebx
xor r9d, r9d
mov qword [rsp + 0x38], rbx
mov qword [rsp + 0x30], rax
lea rax, [rsp + 0x48]
xor r8d, r8d
mov edx, 0x70000
mov rcx, rsi
mov dword [rsp + 0x28], 0x18
mov dword [rsp + 0x44], ebx
mov qword [rsp + 0x20], rax
call qword [sym.imp.KERNEL32.dll_DeviceIoControl]
mov edi, dword [rsp + 0x5c]
mov ecx, reloc.MFC80U.DLL_Ordinal_512
test eax, eax
lea r9, [rsp + 0x40]
mov rdx, r12
cmove edi, ecx
mov rcx, rsi
mov dword [rsp + 0x40], ebx
mov qword [rsp + 0x20], rbx
imul ebp, edi
mov r8d, ebp
call qword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x1400dc608
mov eax, dword [rsp + 0x40]
xor edx, edx
div edi
test edx, edx
jne 0x1400dc608
mov ebx, 1
mov eax, ebx
mov rcx, qword [rsp + 0x60]
xor rcx, rsp
call fcn.140161080
add rsp, 0x70
pop r12
pop rdi
pop rsi
pop rbp
pop rbx
ret
Function at 0x1400e0a50
Capabilities:
Read file on windows

Disassembly:
push rbx
push rbp
push rsi
push rdi
push r12
sub rsp, 0x70
mov rax, qword [0x14042d950]
xor rax, rsp
mov qword [rsp + 0x60], rax
mov r12, rdx
mov rdx, r8
mov rbp, r9
mov rsi, rcx
call fcn.1400e08c0
test eax, eax
jne 0x1400e0b5a
call fcn.140049470
lea rbx, [0x14043d210]
xor edx, edx
mov rcx, rbx
mov r8d, 0x80
mov rsi, rax
call sub.ntdll.dll_memset
lea rcx, str.....IncludeDiskIO.h
mov edx, 0x5c
call qword [sym.imp.ntdll.dll_strrchr]
test rax, rax
mov rdi, rax
jne 0x1400e0ac3
xor ebx, ebx
jmp 0x1400e0b40
xor eax, eax
lea rdx, [0x1402dfd08]
lea rcx, [rsp + 0x48]
lea r8d, [rax + 0x5d]
mov byte [rsp + 0x48], 0
mov qword [rsp + 0x49], rax
mov word [rsp + 0x51], ax
mov byte [rsp + 0x53], al
call qword [sym.imp.ntdll.dll_sprintf]
lea rdx, [rdi + 1]
mov rcx, rbx
sub rcx, rdx
nop
nop
movzx eax, byte [rdx]
add rdx, 1
test al, al
mov byte [rcx + rdx - 1], al
jne 0x1400e0b00
xor eax, eax
or rcx, 0xffffffffffffffff
mov rdi, rbx
repne scasb al, byte [rdi]
xor ecx, ecx
lea rdx, [rsp + 0x48]
nop
nop
nop
nop
movzx eax, byte [rdx + rcx]
add rcx, 1
test al, al
mov byte [rdi + rcx - 2], al
jne 0x1400e0b30
mov rax, qword [rsi]
lea rdx, [0x1402e1048]
mov r8, rbx
mov rcx, rsi
call qword [rax + 0x10]
xor eax, eax
jmp 0x1400e0bda
lea rax, [rsp + 0x44]
xor ebx, ebx
xor r9d, r9d
mov qword [rsp + 0x38], rbx
mov qword [rsp + 0x30], rax
lea rax, [rsp + 0x48]
xor r8d, r8d
mov edx, 0x70000
mov rcx, rsi
mov dword [rsp + 0x28], 0x18
mov dword [rsp + 0x44], ebx
mov qword [rsp + 0x20], rax
call qword [sym.imp.KERNEL32.dll_DeviceIoControl]
mov edi, dword [rsp + 0x5c]
mov ecx, reloc.MFC80U.DLL_Ordinal_512
test eax, eax
lea r9, [rsp + 0x40]
mov rdx, r12
cmove edi, ecx
mov rcx, rsi
mov dword [rsp + 0x40], ebx
mov qword [rsp + 0x20], rbx
imul ebp, edi
mov r8d, ebp
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x1400e0bd8
mov eax, dword [rsp + 0x40]
xor edx, edx
div edi
test edx, edx
jne 0x1400e0bd8
mov ebx, 1
mov eax, ebx
mov rcx, qword [rsp + 0x60]
xor rcx, rsp
call fcn.140161080
add rsp, 0x70
pop r12
pop rdi
pop rsi
pop rbp
pop rbx
ret
Function at 0x1400e0c00
Capabilities:
Write file on windows

Disassembly:
push rbx
push rbp
push rsi
push rdi
push r12
sub rsp, 0x70
mov rax, qword [0x14042d950]
xor rax, rsp
mov qword [rsp + 0x60], rax
mov r12, rdx
mov rdx, r8
mov rbp, r9
mov rsi, rcx
call fcn.1400e08c0
test eax, eax
jne 0x1400e0d0a
call fcn.140049470
lea rbx, [0x14043d210]
xor edx, edx
mov rcx, rbx
mov r8d, 0x80
mov rsi, rax
call sub.ntdll.dll_memset
lea rcx, str.....IncludeDiskIO.h
mov edx, 0x5c
call qword [sym.imp.ntdll.dll_strrchr]
test rax, rax
mov rdi, rax
jne 0x1400e0c73
xor ebx, ebx
jmp 0x1400e0cf0
xor eax, eax
lea rdx, [0x1402dfd08]
lea rcx, [rsp + 0x48]
lea r8d, [rax + 0x72]
mov byte [rsp + 0x48], 0
mov qword [rsp + 0x49], rax
mov word [rsp + 0x51], ax
mov byte [rsp + 0x53], al
call qword [sym.imp.ntdll.dll_sprintf]
lea rdx, [rdi + 1]
mov rcx, rbx
sub rcx, rdx
nop
nop
movzx eax, byte [rdx]
add rdx, 1
test al, al
mov byte [rcx + rdx - 1], al
jne 0x1400e0cb0
xor eax, eax
or rcx, 0xffffffffffffffff
mov rdi, rbx
repne scasb al, byte [rdi]
xor ecx, ecx
lea rdx, [rsp + 0x48]
nop
nop
nop
nop
movzx eax, byte [rdx + rcx]
add rcx, 1
test al, al
mov byte [rdi + rcx - 2], al
jne 0x1400e0ce0
mov rax, qword [rsi]
lea rdx, [0x1402e4750]
mov r8, rbx
mov rcx, rsi
call qword [rax + 0x10]
xor eax, eax
jmp 0x1400e0d8a
lea rax, [rsp + 0x44]
xor ebx, ebx
xor r9d, r9d
mov qword [rsp + 0x38], rbx
mov qword [rsp + 0x30], rax
lea rax, [rsp + 0x48]
xor r8d, r8d
mov edx, 0x70000
mov rcx, rsi
mov dword [rsp + 0x28], 0x18
mov dword [rsp + 0x44], ebx
mov qword [rsp + 0x20], rax
call qword [sym.imp.KERNEL32.dll_DeviceIoControl]
mov edi, dword [rsp + 0x5c]
mov ecx, reloc.MFC80U.DLL_Ordinal_512
test eax, eax
lea r9, [rsp + 0x40]
mov rdx, r12
cmove edi, ecx
mov rcx, rsi
mov dword [rsp + 0x40], ebx
mov qword [rsp + 0x20], rbx
imul ebp, edi
mov r8d, ebp
call qword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x1400e0d88
mov eax, dword [rsp + 0x40]
xor edx, edx
div edi
test edx, edx
jne 0x1400e0d88
mov ebx, 1
mov eax, ebx
mov rcx, qword [rsp + 0x60]
xor rcx, rsp
call fcn.140161080
add rsp, 0x70
pop r12
pop rdi
pop rsi
pop rbp
pop rbx
ret