joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1400a13f0
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.1400a10b0
test eax, eax
jne 0x1400a14fa
call fcn.140049470
lea rbx, [0x1404342a0]
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 0x1400a1463
xor ebx, ebx
jmp 0x1400a14e0
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 0x1400a14a0
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 0x1400a14d0
mov rax, qword [rsi]
lea rdx, [0x1402e4750]
mov r8, rbx
mov rcx, rsi
call qword [rax + 0x10]
xor eax, eax
jmp 0x1400a157a
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 0x1400a1578
mov eax, dword [rsp + 0x40]
xor edx, edx
div edi
test edx, edx
jne 0x1400a1578
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 0x1400a15a0
Capabilities:
Write file on windows

Disassembly:
push rbp
push rsi
push rdi
sub rsp, 0x50
mov rax, qword [0x14042d950]
xor rax, rsp
mov qword [rsp + 0x48], rax
test r8d, r8d
mov edi, r8d
mov rsi, rdx
mov rbp, rcx
jne 0x1400a15ce
lea eax, [r8 + 1]
jmp 0x1400a1710
mov qword [rsp + 0x88], rbx
xor ebx, ebx
lea r9, [rsp + 0x30]
mov dword [rsp + 0x30], ebx
mov qword [rsp + 0x20], rbx
call qword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x1400a1639
cmp dword [rsp + 0x30], ebx
je 0x1400a1639
cmp edi, 2
lea ecx, [rbx + 1]
jb 0x1400a1610
lea eax, [rdi - 2]
cmp byte [rax + rsi], 0xd
jne 0x1400a1610
lea eax, [rdi - 1]
cmp byte [rax + rsi], 0xa
je 0x1400a1632
lea r9, [rsp + 0x30]
lea rdx, [0x1403b64ec]
mov r8d, 2
mov rcx, rbp
mov qword [rsp + 0x20], rbx
call qword [sym.imp.KERNEL32.dll_WriteFile]
mov ecx, eax
mov eax, ecx
jmp 0x1400a1708
call fcn.140049470
lea rbp, [0x1404342a0]
xor edx, edx
mov rcx, rbp
mov r8d, 0x80
mov rsi, rax
call sub.ntdll.dll_memset
lea rcx, str.....IncludeFileIO.h
mov edx, 0x5c
call qword [sym.imp.ntdll.dll_strrchr]
test rax, rax
mov rdi, rax
je 0x1400a16f3
xor eax, eax
lea rdx, [0x1402dfd08]
lea rcx, [rsp + 0x38]
mov r8d, 0xd2
mov byte [rsp + 0x38], bl
mov qword [rsp + 0x39], rax
mov word [rsp + 0x41], ax
mov byte [rsp + 0x43], al
call qword [sym.imp.ntdll.dll_sprintf]
lea rdx, [rdi + 1]
mov rcx, rbp
sub rcx, rdx
nop
movzx eax, byte [rdx]
add rdx, 1
test al, al
mov byte [rcx + rdx - 1], al
jne 0x1400a16b0
xor eax, eax
or rcx, 0xffffffffffffffff
mov rdi, rbp
repne scasb al, byte [rdi]
xor ecx, ecx
lea rdx, [rsp + 0x38]
nop
nop
nop
nop
movzx eax, byte [rdx + rcx]
add rcx, 1
test al, al
mov byte [rdi + rcx - 2], al
jne 0x1400a16e0
mov rbx, rbp
mov rax, qword [rsi]
lea rdx, [0x1402ea518]
mov r8, rbx
mov rcx, rsi
call qword [rax + 0x10]
xor eax, eax
mov rbx, qword [rsp + 0x88]
mov rcx, qword [rsp + 0x48]
xor rcx, rsp
call fcn.140161080
add rsp, 0x50
pop rdi
pop rsi
pop rbp
ret

Function at 0x1400a1730
Capabilities:
Check os version

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, reloc.MFC80U.DLL_Ordinal_336
mov rax, qword [0x14042d950]
xor rax, rsp
mov qword [rsp + reloc.MFC80U.DLL_Ordinal_320], rax
test rdx, rdx
mov rbx, rdx
jne 0x1400a17c7
lea rcx, [rsp + 0x20]
mov r8d, Ordinal_280
call sub.ntdll.dll_memset
lea rcx, [rsp + 0x20]
mov dword [rsp + 0x20], Ordinal_280
call qword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
jne 0x1400a17ae
call fcn.140049470
lea rcx, str...optcore.cpp
mov edx, 0x34
mov rdi, qword [rax]
mov rbx, rax
call fcn.1400a0fc0
lea rdx, [0x1402ea560]
mov rcx, rbx
mov r8, rax
call qword [rdi + 0x10]
xor eax, eax
jmp 0x1400a17f2
mov eax, dword [rsp + 0x24]
cmp eax, 6
ja 0x1400a17c0
jne 0x1400a17aa
cmp dword [rsp + 0x28], 2
jb 0x1400a17aa
mov eax, 1
jmp 0x1400a17f2
mov rax, qword [rdx]
mov rcx, rdx
call qword [rax + 0x30]
mov rdx, qword [rbx]
mov rcx, rbx
mov rdi, rax
call qword [rdx + 0x38]
mov rdx, qword [rdi]
mov rcx, rdi
mov rbx, rax
call qword [rdx + 0x50]
mov rdx, rbx
mov ecx, eax
call fcn.14009b690
mov rcx, qword [rsp + reloc.MFC80U.DLL_Ordinal_320]
xor rcx, rsp
call fcn.140161080
mov rbx, qword [rsp + 0x160]
add rsp, reloc.MFC80U.DLL_Ordinal_336
pop rdi
ret
Function at 0x1400a5530
Capabilities:
Check os version

Disassembly:
push rbx
sub rsp, 0x160
mov rax, qword [0x14042d950]
xor rax, rsp
mov qword [rsp + reloc.MFC80U.DLL_Ordinal_336], rax
lea rcx, [rsp + 0x20]
xor edx, edx
mov r8d, Ordinal_280
call sub.ntdll.dll_memset
lea rcx, [rsp + 0x20]
mov dword [rsp + 0x20], Ordinal_280
call qword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
jne 0x1400a5677
mov qword [rsp + 0x170], rsi
mov qword [rsp + reloc.MFC80U.DLL_Ordinal_376], rdi
call fcn.140049470
lea rbx, [0x1404342a0]
xor edx, edx
mov r8d, 0x80
mov rcx, rbx
mov rsi, rax
call sub.ntdll.dll_memset
lea rcx, str...optcore.cpp
mov edx, 0x5c
call qword [sym.imp.ntdll.dll_strrchr]
test rax, rax
mov rdi, rax
jne 0x1400a55c8
xor ebx, ebx
jmp 0x1400a5650
xor eax, eax
lea rdx, [0x1402dfd08]
lea rcx, [rsp + reloc.MFC80U.DLL_Ordinal_320]
mov r8d, reloc.MFC80U.DLL_Ordinal_1610
mov byte [rsp + reloc.MFC80U.DLL_Ordinal_320], 0
mov qword [rsp + 0x141], rax
mov word [rsp + 0x149], ax
mov byte [rsp + 0x14b], al
call qword [sym.imp.ntdll.dll_sprintf]
lea rdx, [rdi + 1]
mov rcx, rbx
sub rcx, rdx
nop
movzx eax, byte [rdx]
add rdx, 1
test al, al
mov byte [rcx + rdx - 1], al
jne 0x1400a5610
xor eax, eax
or rcx, 0xffffffffffffffff
mov rdi, rbx
repne scasb al, byte [rdi]
xor ecx, ecx
lea rdx, [rsp + reloc.MFC80U.DLL_Ordinal_320]
nop
nop
nop
movzx eax, byte [rdx + rcx]
add rcx, 1
test al, al
mov byte [rdi + rcx - 2], al
jne 0x1400a5640
mov rax, qword [rsi]
lea rdx, str._s:_Failed_to_GetVersionEx.
mov r8, rbx
mov rcx, rsi
call qword [rax + 0x10]
mov rdi, qword [rsp + reloc.MFC80U.DLL_Ordinal_376]
mov rsi, qword [rsp + 0x170]
xor eax, eax
jmp 0x1400a5683
xor ebx, ebx
cmp dword [rsp + 0x24], 6
setb bl
mov eax, ebx
mov rcx, qword [rsp + reloc.MFC80U.DLL_Ordinal_336]
xor rcx, rsp
call fcn.140161080
add rsp, 0x160
pop rbx
ret
Function at 0x1400b0510
Capabilities:
Get file size
Read file on windows

Disassembly:
push rbx
push rbp
push r12
sub rsp, 0x470
mov rax, qword [0x14042d950]
xor rax, rsp
mov qword [rsp + 0x460], rax
mov rbp, rcx
mov rbx, rdx
lea rcx, [rsp + 0x62]
xor edx, edx
mov r8d, reloc.MFC80U.DLL_Ordinal_1022
mov word [rsp + 0x60], 0
call sub.ntdll.dll_memset
lea rcx, [rsp + 0x60]
mov r8, rbx
mov edx, reloc.MFC80U.DLL_Ordinal_512
call qword [sym.imp.MSVCR80.dll_wcscat_s]
lea r8, str.System32GroupPolicyMachineRegistry.pol
lea rcx, [rsp + 0x60]
mov edx, reloc.MFC80U.DLL_Ordinal_512
call qword [sym.imp.MSVCR80.dll_wcscat_s]
lea rcx, str.kernel32
xor r12d, r12d
mov dword [rsp + 0x40], r12d
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
lea rdx, str.IsWow64Process
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
mov rbx, rax
je 0x1400b05b4
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
lea rdx, [rsp + 0x40]
mov rcx, rax
call rbx
cmp dword [rsp + 0x40], r12d
je 0x1400b05e4
lea rcx, str.kernel32
mov qword [rsp + 0x58], r12
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
lea rdx, [0x1402eb770]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
lea rcx, [rsp + 0x58]
call rax
xor r9d, r9d
mov qword [rsp + 0x30], r12
lea rcx, [rsp + 0x60]
lea r8d, [r9 + 1]
mov edx, 0x80000000
mov dword [rsp + 0x28], 0x80
mov dword [rsp + 0x20], 3
call qword [sym.imp.KERNEL32.dll_CreateFileW]
cmp rax, 0xffffffffffffffff
mov rbx, rax
je 0x1400b063f
xor eax, eax
lea rdx, [rsp + 0x48]
mov rcx, rbx
mov dword [rsp + 0x48], r12d
mov dword [rsp + 0x4c], eax
call qword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
jne 0x1400b0646
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
jmp 0x1400b06dd
mov qword [rsp + Ordinal_1173], rsi
mov esi, dword [rsp + 0x48]
mov qword [rsp + Ordinal_1189], rdi
mov rcx, rsi
call qword [sym.imp.MSVCR80.dll_malloc]
test rax, rax
mov rdi, rax
je 0x1400b068d
lea r9, [rsp + 0x50]
mov r8d, esi
mov rdx, rax
mov rcx, rbx
mov dword [rsp + 0x50], r12d
mov qword [rsp + 0x20], r12
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x1400b069a
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
jmp 0x1400b06cd
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov r8d, esi
mov rdx, rdi
mov rcx, rbp
call fcn.1400b03e0
cmp eax, 0xffffffff
jne 0x1400b06c3
mov rcx, rdi
call qword [sym.imp.MSVCR80.dll_free]
xor eax, eax
jmp 0x1400b06cd
cdqe
movzx eax, word [rdi + rax*2 + 0xb0]
mov rsi, qword [rsp + 0x490]
mov rdi, qword [rsp + 0x4a0]
mov rcx, qword [rsp + 0x460]
xor rcx, rsp
call fcn.140161080
add rsp, 0x470
pop r12
pop rbp
pop rbx
ret
Function at 0x1400b0700
Capabilities:
Get file size
Read file on windows
Write file on windows

Disassembly:
push rbx
push rbp
push r12
push r13
sub rsp, 0x478
mov rax, qword [0x14042d950]
xor rax, rsp
mov qword [rsp + 0x460], rax
mov r12, rcx
movzx ebp, r8b
mov rbx, rdx
lea rcx, [rsp + 0x62]
xor edx, edx
mov r8d, reloc.MFC80U.DLL_Ordinal_1022
mov word [rsp + 0x60], 0
call sub.ntdll.dll_memset
lea rcx, [rsp + 0x60]
mov r8, rbx
mov edx, reloc.MFC80U.DLL_Ordinal_512
call qword [sym.imp.MSVCR80.dll_wcscat_s]
lea r8, str.System32GroupPolicyMachineRegistry.pol
lea rcx, [rsp + 0x60]
mov edx, reloc.MFC80U.DLL_Ordinal_512
call qword [sym.imp.MSVCR80.dll_wcscat_s]
xor r13d, r13d
lea rcx, [rsp + 0x60]
mov qword [rsp + 0x30], r13
lea r8d, [r13 + 1]
xor r9d, r9d
mov edx, 0xc0000000
mov dword [rsp + 0x28], 0x80
mov dword [rsp + 0x20], 3
call qword [sym.imp.KERNEL32.dll_CreateFileW]
cmp rax, 0xffffffffffffffff
mov rbx, rax
je 0x1400b07cb
xor eax, eax
lea rdx, [rsp + 0x48]
mov rcx, rbx
mov dword [rsp + 0x48], r13d
mov dword [rsp + 0x4c], eax
call qword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
jne 0x1400b07d2
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
jmp 0x1400b08c7
mov qword [rsp + 0x4b0], rsi
mov esi, dword [rsp + 0x48]
mov qword [rsp + Ordinal_1137], rdi
mov rcx, rsi
call qword [sym.imp.MSVCR80.dll_malloc]
test rax, rax
mov rdi, rax
je 0x1400b0835
lea r9, [rsp + 0x40]
mov r8d, esi
mov rdx, rax
mov rcx, rbx
mov dword [rsp + 0x40], r13d
mov qword [rsp + 0x20], r13
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x1400b0835
mov r8d, esi
mov rdx, rdi
mov rcx, r12
call fcn.1400b03e0
cmp eax, 0xffffffff
jne 0x1400b0842
mov rcx, rdi
call qword [sym.imp.MSVCR80.dll_free]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
jmp 0x1400b08b7
test bpl, bpl
je 0x1400b0855
cdqe
mov word [rdi + rax*2 + 0xb0], 1
jmp 0x1400b0860
cdqe
mov word [rdi + rax*2 + 0xb0], r13w
xor eax, eax
mov dword [rsp + 0x50], r13d
xor r9d, r9d
mov dword [rsp + 0x54], eax
mov rdx, qword [rsp + 0x50]
xor r8d, r8d
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_SetFilePointerEx]
test eax, eax
je 0x1400b083e
lea r9, [rsp + 0x40]
mov r8d, esi
mov rdx, rdi
mov rcx, rbx
mov qword [rsp + 0x20], r13
call qword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x1400b0835
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FlushFileBuffers]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, 1
mov rsi, qword [rsp + 0x4b0]
mov rdi, qword [rsp + 0x470]
mov rcx, qword [rsp + 0x460]
xor rcx, rsp
call fcn.140161080
add rsp, 0x478
pop r13
pop r12
pop rbp
pop rbx
ret
Function at 0x1400bca90
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.1400bc900
test eax, eax
jne 0x1400bcb9a
call fcn.140049470
lea rbx, [0x140434340]
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 0x1400bcb03
xor ebx, ebx
jmp 0x1400bcb80
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 0x1400bcb40
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 0x1400bcb70
mov rax, qword [rsi]
lea rdx, [0x1402e1048]
mov r8, rbx
mov rcx, rsi
call qword [rax + 0x10]
xor eax, eax
jmp 0x1400bcc1a
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 0x1400bcc18
mov eax, dword [rsp + 0x40]
xor edx, edx
div edi
test edx, edx
jne 0x1400bcc18
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 0x1400c4130
Capabilities:
Check os version

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, reloc.MFC80U.DLL_Ordinal_336
mov rax, qword [0x14042d950]
xor rax, rsp
mov qword [rsp + reloc.MFC80U.DLL_Ordinal_320], rax
test rdx, rdx
mov rbx, rdx
jne 0x1400c41ba
lea rcx, [rsp + 0x20]
mov r8d, Ordinal_280
call sub.ntdll.dll_memset
lea rcx, [rsp + 0x20]
mov dword [rsp + 0x20], Ordinal_280
call qword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
jne 0x1400c41ae
call fcn.140049470
lea rcx, str...opthelp.cpp
mov edx, 0xf06
mov rdi, qword [rax]
mov rbx, rax
call fcn.1400bc810
lea rdx, [0x1402ea560]
mov rcx, rbx
mov r8, rax
call qword [rdi + 0x10]
xor eax, eax
jmp 0x1400c41e5
xor eax, eax
cmp dword [rsp + 0x24], 6
setae al
jmp 0x1400c41e5
mov rax, qword [rdx]
mov rcx, rdx
call qword [rax + 0x30]
mov rdx, qword [rbx]
mov rcx, rbx
mov rdi, rax
call qword [rdx + 0x38]
mov rdx, qword [rdi]
mov rcx, rdi
mov rbx, rax
call qword [rdx + 0x50]
mov rdx, rbx
mov ecx, eax
call fcn.14009b530
mov rcx, qword [rsp + reloc.MFC80U.DLL_Ordinal_320]
xor rcx, rsp
call fcn.140161080
mov rbx, qword [rsp + 0x160]
add rsp, reloc.MFC80U.DLL_Ordinal_336
pop rdi
ret
Function at 0x1400c7020
Capabilities:
Write file on windows

Disassembly:
push rbp
push rsi
push rdi
sub rsp, 0x50
mov rax, qword [0x14042d950]
xor rax, rsp
mov qword [rsp + 0x48], rax
test r8d, r8d
mov edi, r8d
mov rsi, rdx
mov rbp, rcx
jne 0x1400c704e
lea eax, [r8 + 1]
jmp 0x1400c7190
mov qword [rsp + 0x88], rbx
xor ebx, ebx
lea r9, [rsp + 0x30]
mov dword [rsp + 0x30], ebx
mov qword [rsp + 0x20], rbx
call qword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x1400c70b9
cmp dword [rsp + 0x30], ebx
je 0x1400c70b9
cmp edi, 2
lea ecx, [rbx + 1]
jb 0x1400c7090
lea eax, [rdi - 2]
cmp byte [rax + rsi], 0xd
jne 0x1400c7090
lea eax, [rdi - 1]
cmp byte [rax + rsi], 0xa
je 0x1400c70b2
lea r9, [rsp + 0x30]
lea rdx, [0x1403b64ec]
mov r8d, 2
mov rcx, rbp
mov qword [rsp + 0x20], rbx
call qword [sym.imp.KERNEL32.dll_WriteFile]
mov ecx, eax
mov eax, ecx
jmp 0x1400c7188
call fcn.140049470
lea rbp, [0x1404343d0]
xor edx, edx
mov rcx, rbp
mov r8d, 0x80
mov rsi, rax
call sub.ntdll.dll_memset
lea rcx, str.....IncludeFileIO.h
mov edx, 0x5c
call qword [sym.imp.ntdll.dll_strrchr]
test rax, rax
mov rdi, rax
je 0x1400c7173
xor eax, eax
lea rdx, [0x1402dfd08]
lea rcx, [rsp + 0x38]
mov r8d, 0xd2
mov byte [rsp + 0x38], bl
mov qword [rsp + 0x39], rax
mov word [rsp + 0x41], ax
mov byte [rsp + 0x43], al
call qword [sym.imp.ntdll.dll_sprintf]
lea rdx, [rdi + 1]
mov rcx, rbp
sub rcx, rdx
nop
movzx eax, byte [rdx]
add rdx, 1
test al, al
mov byte [rcx + rdx - 1], al
jne 0x1400c7130
xor eax, eax
or rcx, 0xffffffffffffffff
mov rdi, rbp
repne scasb al, byte [rdi]
xor ecx, ecx
lea rdx, [rsp + 0x38]
nop
nop
nop
nop
movzx eax, byte [rdx + rcx]
add rcx, 1
test al, al
mov byte [rdi + rcx - 2], al
jne 0x1400c7160
mov rbx, rbp
mov rax, qword [rsi]
lea rdx, [0x1402ea518]
mov r8, rbx
mov rcx, rsi
call qword [rax + 0x10]
xor eax, eax
mov rbx, qword [rsp + 0x88]
mov rcx, qword [rsp + 0x48]
xor rcx, rsp
call fcn.140161080
add rsp, 0x50
pop rdi
pop rsi
pop rbp
ret
Function at 0x1400c7780
Capabilities:
Manipulate boot configuration

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x4d0
mov rax, qword [0x14042d950]
xor rax, rsp
mov qword [rsp + reloc.MFC80U.DLL_Ordinal_1216], rax
mov esi, edx
mov rdi, rcx
call fcn.140049400
lea rcx, [rsp + 0xc2]
xor edx, edx
mov r8d, 0xfe
mov rbx, rax
mov word [rsp + 0xc0], 0
call sub.ntdll.dll_memset
mov r11, qword [rbx]
lea rdx, [rsp + 0xc0]
mov r8d, 0x80
mov rcx, rbx
call qword [r11 + 0x48]
mov rdx, qword [rdi + 0x58]
test rdx, rdx
je 0x1400c7812
lea r8, [rsp + 0xc0]
sub r8, rdx
nop
movzx ecx, word [rdx]
add rdx, 2
test cx, cx
mov word [r8 + rdx - 2], cx
jne 0x1400c7800
test eax, eax
jne 0x1400c781f
or rax, 0xffffffffffffffff
jmp 0x1400c793c
lea rcx, [rsp + 0x1c2]
xor edx, edx
mov r8d, 0xfe
mov word [rsp + 0x1c0], 0
call sub.ntdll.dll_memset
lea r8, [rsp + 0xc0]
lea rcx, [rsp + 0x1c0]
mov edx, 0x80
call qword [sym.imp.MSVCR80.dll_wcscpy_s]
lea rcx, [rsp + 0x2c2]
xor edx, edx
mov r8d, Ordinal_512
mov word [rsp + 0x2c0], 0
call sub.ntdll.dll_memset
lea r8, [rsp + 0x1c0]
lea rdx, [0x1402dfd70]
lea rcx, [rsp + 0x2c0]
call fcn.140002b60
lea rdx, [rsp + 0x2c0]
lea rcx, [rsp + 0x98]
call qword [sym.imp.ntdll.dll_RtlInitUnicodeString]
xor ecx, ecx
lea rax, [rsp + 0x98]
mov dword [rsp + 0x50], ecx
mov qword [rsp + 0x48], rcx
mov dword [rsp + 0x40], 0x60
mov qword [rsp + 0x78], rax
test esi, esi
mov eax, 1
cmovne eax, ecx
mov qword [rsp + 0x70], rcx
mov qword [rsp + 0x88], rcx
mov dword [rsp + 0x38], eax
mov dword [rsp + 0x30], 1
mov qword [rsp + 0x90], rcx
mov qword [rsp + 0x60], rcx
mov dword [rsp + 0x28], 0x80
mov qword [rsp + 0x20], rcx
lea rcx, [rsp + 0x60]
lea r9, [rsp + 0xa8]
lea r8, [rsp + 0x68]
mov edx, 0xc0100000
mov dword [rsp + 0x68], 0x30
mov dword [rsp + 0x80], 0x40
call qword [sym.imp.ntdll.dll_ZwCreateFile]
mov rax, qword [rsp + 0x60]
mov rcx, qword [rsp + reloc.MFC80U.DLL_Ordinal_1216]
xor rcx, rsp
call fcn.140161080
lea r11, [rsp + 0x4d0]
mov rbx, qword [r11 + 0x10]
mov rsi, qword [r11 + 0x18]
mov rsp, r11
pop rdi
ret
Function at 0x1400d2070
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.1400d1ee0
test eax, eax
jne 0x1400d217a
call fcn.140049470
lea rbx, [0x1404346d0]
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 0x1400d20e3
xor ebx, ebx
jmp 0x1400d2160
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 0x1400d2120
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 0x1400d2150
mov rax, qword [rsi]
lea rdx, [0x1402e1048]
mov r8, rbx
mov rcx, rsi
call qword [rax + 0x10]
xor eax, eax
jmp 0x1400d21fa
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 0x1400d21f8
mov eax, dword [rsp + 0x40]
xor edx, edx
div edi
test edx, edx
jne 0x1400d21f8
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 0x1400d2220
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.1400d1ee0
test eax, eax
jne 0x1400d232a
call fcn.140049470
lea rbx, [0x1404346d0]
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 0x1400d2293
xor ebx, ebx
jmp 0x1400d2310
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 0x1400d22d0
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 0x1400d2300
mov rax, qword [rsi]
lea rdx, [0x1402e4750]
mov r8, rbx
mov rcx, rsi
call qword [rax + 0x10]
xor eax, eax
jmp 0x1400d23aa
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 0x1400d23a8
mov eax, dword [rsp + 0x40]
xor edx, edx
div edi
test edx, edx
jne 0x1400d23a8
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