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

Disassembly:
push rbx
push rsi
push rdi
sub rsp, 0x230
mov rax, qword [0x14042d950]
xor rax, rsp
mov qword [rsp + 0x220], rax
mov rbx, qword [rdx + 8]
mov rsi, rdx
mov rdi, rcx
test rbx, rbx
je 0x140141528
mov rdx, rbx
call fcn.1401414c0
test eax, eax
je 0x140141592
mov rdx, qword [rbx + 0x10]
test rdx, rdx
je 0x140141528
nop
nop
nop
mov rbx, qword [rdx + 0x10]
mov rcx, rdi
call fcn.1401414c0
test eax, eax
je 0x140141592
test rbx, rbx
mov rdx, rbx
jne 0x140141510
add dword [rdi + 0x1c0], 1
call qword [sym.imp.KERNEL32.dll_GetTickCount]
sub eax, dword [rdi + reloc.MFC80U.DLL_Ordinal_424]
cmp eax, 0x3e8
jb 0x140141686
mov rcx, qword [rdi + 0x60]
mov rax, qword [rcx]
call qword [rax + 0xf0]
test eax, eax
je 0x140141599
mov rcx, qword [rdi + 0x60]
mov edx, 0x17
mov rax, qword [rcx]
call qword [rax + 0x40]
call fcn.140049470
lea rcx, str...quickmovefat.cpp
mov rdi, qword [rax]
mov edx, 0x2bc
mov rbx, rax
call fcn.14013b9e0
lea rdx, str._s:_User_cancel_operations.
mov rcx, rbx
mov r8, rax
call qword [rdi + 0x10]
xor eax, eax
jmp 0x14014169a
lea rcx, [rsp + 0x22]
xor edx, edx
mov r8d, Ordinal_512
mov qword [rsp + 0x260], rbp
mov word [rsp + 0x20], 0
call sub.ntdll.dll_memset
mov r11d, dword [rdi + 0x1c0]
mov eax, dword [rdi + reloc.MFC80U.DLL_Ordinal_444]
mov ebp, 0x64
lea rdx, str.Filesystem_Analysing___d___...
lea rcx, [rsp + 0x20]
cvtsi2sd xmm1, r11
cvtsi2sd xmm0, rax
divsd xmm1, xmm0
mulsd xmm1, qword [0x1403b85a8]
cvttsd2si rbx, xmm1
cmp ebx, ebp
cmova ebx, ebp
mov r8d, ebx
call qword [sym.imp.MSVCR80.dll__swprintf]
mov rcx, qword [rdi + 0x60]
lea rdx, [rsp + 0x20]
mov rax, qword [rcx]
call qword [rax + 0x70]
lea rdx, str.Status:_d
lea rcx, [rsp + 0x20]
mov r8d, ebx
call qword [sym.imp.MSVCR80.dll__swprintf]
mov rcx, qword [rdi + 0x60]
lea rdx, [rsp + 0x20]
mov rax, qword [rcx]
call qword [rax + 0x78]
call qword [sym.imp.KERNEL32.dll_GetTickCount]
cvtsi2sd xmm0, dword [rdi + 0x198]
mov rcx, qword [rdi + 0x60]
cmp ebx, ebp
mov dword [rdi + reloc.MFC80U.DLL_Ordinal_424], eax
mov rax, qword [rcx]
cmovg ebx, ebp
cvtsi2sd xmm1, ebx
mulsd xmm1, qword [rdi + 0x190]
addsd xmm1, xmm0
cvttsd2si ebx, xmm1
call qword [rax + 0xa0]
mov rbp, qword [rsp + 0x260]
cmp eax, ebx
jge 0x140141686
mov rcx, qword [rdi + 0x60]
mov edx, ebx
mov rax, qword [rcx]
call qword [rax + 0x10]
mov rdx, rsi
mov rcx, rdi
call fcn.14013fbb0
xor ecx, ecx
test eax, eax
setne cl
mov eax, ecx
mov rcx, qword [rsp + 0x220]
xor rcx, rsp
call fcn.140161080
add rsp, 0x230
pop rdi
pop rsi
pop rbx
ret
Function at 0x140143300
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.140143170
test eax, eax
jne 0x14014340a
call fcn.140049470
lea rbx, [0x14043e1b0]
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 0x140143373
xor ebx, ebx
jmp 0x1401433f0
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 0x1401433b0
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 0x1401433e0
mov rax, qword [rsi]
lea rdx, [0x1402e1048]
mov r8, rbx
mov rcx, rsi
call qword [rax + 0x10]
xor eax, eax
jmp 0x14014348a
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 0x140143488
mov eax, dword [rsp + 0x40]
xor edx, edx
div edi
test edx, edx
jne 0x140143488
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 0x140144ac0
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.140144930
test eax, eax
jne 0x140144bca
call fcn.140049470
lea rbx, [0x14043e230]
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 0x140144b33
xor ebx, ebx
jmp 0x140144bb0
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 0x140144b70
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 0x140144ba0
mov rax, qword [rsi]
lea rdx, [0x1402e1048]
mov r8, rbx
mov rcx, rsi
call qword [rax + 0x10]
xor eax, eax
jmp 0x140144c4a
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 0x140144c48
mov eax, dword [rsp + 0x40]
xor edx, edx
div edi
test edx, edx
jne 0x140144c48
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 0x140146840
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.1401466b0
test eax, eax
jne 0x14014694a
call fcn.140049470
lea rbx, [0x14043e2b0]
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 0x1401468b3
xor ebx, ebx
jmp 0x140146930
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 0x1401468f0
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 0x140146920
mov rax, qword [rsi]
lea rdx, [0x1402e1048]
mov r8, rbx
mov rcx, rsi
call qword [rax + 0x10]
xor eax, eax
jmp 0x1401469ca
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 0x1401469c8
mov eax, dword [rsp + 0x40]
xor edx, edx
div edi
test edx, edx
jne 0x1401469c8
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
add r8, qword [rcx + 0x10]
mov rcx, qword [rcx]
jmp 0x140146840
Function at 0x1401469f0
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.1401466b0
test eax, eax
jne 0x140146afa
call fcn.140049470
lea rbx, [0x14043e2b0]
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 0x140146a63
xor ebx, ebx
jmp 0x140146ae0
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 0x140146aa0
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 0x140146ad0
mov rax, qword [rsi]
lea rdx, [0x1402e4750]
mov r8, rbx
mov rcx, rsi
call qword [rax + 0x10]
xor eax, eax
jmp 0x140146b7a
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 0x140146b78
mov eax, dword [rsp + 0x40]
xor edx, edx
div edi
test edx, edx
jne 0x140146b78
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
add r8, qword [rcx + 0x10]
mov rcx, qword [rcx]
jmp 0x1401469f0
Function at 0x140146bf0
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.1401466b0
test eax, eax
jne 0x14014694a
call fcn.140049470
lea rbx, [0x14043e2b0]
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 0x1401468b3
xor ebx, ebx
jmp 0x140146930
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 0x1401468f0
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 0x140146920
mov rax, qword [rsi]
lea rdx, [0x1402e1048]
mov r8, rbx
mov rcx, rsi
call qword [rax + 0x10]
xor eax, eax
jmp 0x1401469ca
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 0x1401469c8
mov eax, dword [rsp + 0x40]
xor edx, edx
div edi
test edx, edx
jne 0x1401469c8
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
add r8, qword [rcx + 0x10]
mov rcx, qword [rcx]
jmp 0x140146840
Function at 0x140146c00
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.1401466b0
test eax, eax
jne 0x140146afa
call fcn.140049470
lea rbx, [0x14043e2b0]
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 0x140146a63
xor ebx, ebx
jmp 0x140146ae0
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 0x140146aa0
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 0x140146ad0
mov rax, qword [rsi]
lea rdx, [0x1402e4750]
mov r8, rbx
mov rcx, rsi
call qword [rax + 0x10]
xor eax, eax
jmp 0x140146b7a
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 0x140146b78
mov eax, dword [rsp + 0x40]
xor edx, edx
div edi
test edx, edx
jne 0x140146b78
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
add r8, qword [rcx + 0x10]
mov rcx, qword [rcx]
jmp 0x1401469f0
Function at 0x140146e90
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.140146d00
test eax, eax
jne 0x140146f9a
call fcn.140049470
lea rbx, [0x14043e330]
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 0x140146f03
xor ebx, ebx
jmp 0x140146f80
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 0x140146f40
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 0x140146f70
mov rax, qword [rsi]
lea rdx, [0x1402e1048]
mov r8, rbx
mov rcx, rsi
call qword [rax + 0x10]
xor eax, eax
jmp 0x14014701a
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 0x140147018
mov eax, dword [rsp + 0x40]
xor edx, edx
div edi
test edx, edx
jne 0x140147018
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 0x14014bd10
Capabilities:
Read file on windows

Disassembly:
mov r11, rsp
mov qword [r11 + 0x20], rbx
push rbp
push rsi
push r12
sub rsp, 0x60
cmp byte [rcx + 0xa4], 0
mov r12, r9
mov ebp, r8d
mov rsi, rdx
mov rbx, rcx
je 0x14014bd7e
mov rcx, qword [rcx + 0xa8]
mov qword [r11 - 0x38], 0
lea rax, [r11 + 8]
mov qword [r11 - 0x40], rax
lea rax, [r11 - 0x28]
mov dword [rsp + 0x30], ebp
mov qword [r11 - 0x50], r9
mov qword [r11 + 8], rdx
xor r8d, r8d
xor r9d, r9d
xor edx, edx
mov qword [r11 - 0x58], rax
call qword [sym.imp.ntdll.dll_NtReadFile]
mov rbx, qword [rsp + 0x98]
add rsp, 0x60
pop r12
pop rsi
pop rbp
ret
mov r8d, dword [rcx + 0xc4]
mov qword [rsp + 0x88], rdi
mov qword [rsp + 0x90], r13
mov ecx, r8d
lea rax, [r8 - 1]
not rax
and rax, rdx
lea edx, [r8 - 1]
sub ecx, eax
mov qword [rsp + 0x80], rax
not edx
lea r13d, [rcx + rsi - 1]
lea eax, [r8 + rbp - 1]
and r13d, edx
and eax, edx
add r13d, eax
mov ecx, r13d
call qword [sym.imp.MSVCR80.dll_malloc]
test rax, rax
mov rdi, rax
jne 0x14014bddc
mov ebx, 0xc000009a
jmp 0x14014be38
mov rcx, qword [rbx + 0xa8]
mov qword [rsp + 0x40], 0
lea rax, [rsp + 0x80]
mov qword [rsp + 0x38], rax
lea rax, [rsp + 0x50]
mov dword [rsp + 0x30], r13d
xor r9d, r9d
xor r8d, r8d
xor edx, edx
mov qword [rsp + 0x28], rdi
mov qword [rsp + 0x20], rax
call qword [sym.imp.ntdll.dll_NtReadFile]
test eax, eax
mov ebx, eax
js 0x14014be38
sub esi, dword [rsp + 0x80]
mov r8, rbp
mov rcx, r12
mov edx, esi
add rdx, rdi
call sub.ntdll.dll_memcpy
test rdi, rdi
mov r13, qword [rsp + 0x90]
je 0x14014be4e
mov rcx, rdi
call qword [sym.imp.MSVCR80.dll_free]
mov rdi, qword [rsp + 0x88]
mov eax, ebx
mov rbx, qword [rsp + 0x98]
add rsp, 0x60
pop r12
pop rsi
pop rbp
ret
Function at 0x14014be70
Capabilities:
Read file on windows
Write file on windows

Disassembly:
mov r11, rsp
push rbp
push rsi
push r14
push r15
sub rsp, 0x68
cmp byte [rcx + 0xa4], 0
mov r15, r9
mov r14d, r8d
mov rbp, rdx
mov rsi, rcx
je 0x14014bed6
mov rcx, qword [rcx + 0xa8]
mov qword [r11 - 0x48], 0
lea rax, [r11 + 8]
mov qword [r11 - 0x50], rax
mov dword [r11 - 0x58], r14d
mov qword [r11 - 0x60], r9
lea rax, [r11 - 0x38]
mov qword [r11 + 8], rdx
xor r9d, r9d
xor r8d, r8d
xor edx, edx
mov qword [r11 - 0x68], rax
call qword [sym.imp.ntdll.dll_NtWriteFile]
add rsp, 0x68
pop r15
pop r14
pop rsi
pop rbp
ret
mov r8d, dword [rcx + 0xc4]
mov qword [rsp + 0x98], rbx
mov qword [rsp + 0xa0], rdi
mov ecx, r8d
mov qword [rsp + 0x60], r13
lea rax, [r8 - 1]
not rax
and rax, rdx
lea edx, [r8 - 1]
sub ecx, eax
mov qword [rsp + 0x90], rax
not edx
lea r13d, [rcx + rbp - 1]
lea eax, [r8 + r14 - 1]
and r13d, edx
and eax, edx
add r13d, eax
mov ecx, r13d
call qword [sym.imp.MSVCR80.dll_malloc]
test rax, rax
mov rdi, rax
jne 0x14014bf3c
mov ebx, 0xc000009a
jmp 0x14014bfee
cmp r13d, r14d
jne 0x14014bf4e
mov rax, qword [rsp + 0x90]
cmp rax, rbp
je 0x14014bf9b
mov rcx, qword [rsi + 0xa8]
mov qword [rsp + 0x40], 0
lea rax, [rsp + 0x90]
mov qword [rsp + 0x38], rax
lea rax, [rsp + 0x50]
mov dword [rsp + 0x30], r13d
xor r9d, r9d
xor r8d, r8d
xor edx, edx
mov qword [rsp + 0x28], rdi
mov qword [rsp + 0x20], rax
call qword [sym.imp.ntdll.dll_NtReadFile]
test eax, eax
mov ebx, eax
js 0x14014bfee
mov rax, qword [rsp + 0x90]
sub ebp, eax
mov r8, r14
mov rdx, r15
mov ecx, ebp
add rcx, rdi
call sub.ntdll.dll_memcpy
mov rcx, qword [rsi + 0xa8]
mov qword [rsp + 0x40], 0
lea rax, [rsp + 0x90]
xor r9d, r9d
xor r8d, r8d
mov qword [rsp + 0x38], rax
lea rax, [rsp + 0x50]
mov dword [rsp + 0x30], r13d
xor edx, edx
mov qword [rsp + 0x28], rdi
mov qword [rsp + 0x20], rax
call qword [sym.imp.ntdll.dll_NtWriteFile]
mov ebx, eax
test rdi, rdi
mov r13, qword [rsp + 0x60]
je 0x14014c001
mov rcx, rdi
call qword [sym.imp.MSVCR80.dll_free]
mov rdi, qword [rsp + 0xa0]
mov eax, ebx
mov rbx, qword [rsp + 0x98]
add rsp, 0x68
pop r15
pop r14
pop rsi
pop rbp
ret
Function at 0x14014f360
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push rbx
push r14
push r15
sub rsp, 0x60
mov rax, qword [rcx + 0x20]
mov r14, rcx
mov ebx, r8d
mov r8d, dword [rax + 0x18]
mov qword [rsp + 0x80], rax
mov r15, r9
mov r9, rdx
mov edx, 1
lea ecx, [r8 + 8]
mov eax, edx
mov dword [rsp + 0x30], 0xc
shl eax, cl
lea ecx, [r8 + r8 + 0x10]
mov dword [rsp + 0x34], eax
mov eax, edx
shl eax, cl
lea ecx, [r8 + r8*2 + 0x18]
mov dword [rsp + 0x38], eax
mov eax, edx
xor edx, edx
shl eax, cl
mov dword [rsp + 0x3c], eax
mov eax, dword [r14 + 4]
div dword [r14 + 0xc4]
xor edx, edx
mov ecx, eax
mov eax, dword [r9 + 0x1c]
div ecx
cmp ebx, eax
jb 0x14014f3e0
xor al, al
add rsp, 0x60
pop r15
pop r14
pop rbx
ret
mov qword [rsp + 0x58], rsi
mov qword [rsp + 0x50], rdi
xor esi, esi
mov qword [rsp + 0x88], rbp
mov qword [rsp + 0x48], r12
mov edi, esi
mov rax, rsi
mov qword [rsp + 0x40], r13
mov ecx, dword [rsp + rax*4 + 0x30]
cmp ebx, ecx
jb 0x14014f442
add rax, 1
sub ebx, ecx
add edi, 1
cmp rax, 4
jl 0x14014f403
xor al, al
mov r12, qword [rsp + 0x48]
mov rbp, qword [rsp + 0x88]
mov r13, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x58]
mov rdi, qword [rsp + 0x50]
add rsp, 0x60
pop r15
pop r14
pop rbx
ret
test edi, edi
jne 0x14014f44a
mov eax, ebx
jmp 0x14014f44d
lea eax, [rdi + 0xb]
movsxd rcx, dword [r14 + 4]
mov r13d, dword [r9 + rax*4 + 0x28]
mov dword [rsp + 0x90], esi
mov r12b, 1
call qword [sym.imp.MSVCR80.dll_malloc]
test rax, rax
mov rbp, rax
je 0x14014f41a
movsxd r8, dword [r14 + 4]
xor edx, edx
mov rcx, rax
call sub.ntdll.dll_memset
test edi, edi
jne 0x14014f485
mov esi, r13d
jmp 0x14014f4f6
cmp edi, 3
jg 0x14014f4f6
mov r8, rbp
mov edx, r13d
mov rcx, r14
call fcn.14014caa0
test al, al
jne 0x14014f4a1
xor r12b, r12b
jmp 0x14014f4f6
mov rax, qword [rsp + 0x80]
xor edx, edx
lea r9d, [rdi - 1]
mov ecx, dword [rax + 0x18]
mov r8d, 1
mov eax, ebx
add ecx, 8
imul ecx, r9d
shl r8d, cl
div r8d
mov ecx, eax
mov r8d, edx
lea rax, [rsp + 0x90]
mov edx, dword [rbp + rcx*4]
mov rcx, r14
mov qword [rsp + 0x20], rax
call fcn.14014f260
movzx r12d, r12b
test al, al
cmove r12d, esi
mov esi, dword [rsp + 0x90]
mov rcx, rbp
call qword [sym.imp.MSVCR80.dll_free]
test r12b, r12b
je 0x14014f41a
test esi, esi
je 0x14014f41a
test r15, r15
je 0x14014f518
mov dword [r15], esi
mov al, 1
jmp 0x14014f41c