joyce8/EMBER2024-capa huggingface dataset:
Function at 0x14016f250
Capabilities:
Get disk information
Query or enumerate registry value

Disassembly:
mov eax, Ordinal_5259
call sub.ntdll.dll___chkstk
sub rsp, rax
mov rax, qword [0x14042d950]
xor rax, rsp
mov qword [rsp + Ordinal_5236], rax
lea rcx, [rsp + 0x161]
xor edx, edx
mov r8d, 0x103
mov byte [rsp + 0x160], 0
call sub.ntdll.dll_memset
lea rdx, [rsp + 0x38]
mov qword [rsp + 0x20], rdx
lea rdx, [0x140364f98]
mov r9d, 1
xor r8d, r8d
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x14016f307
mov rcx, qword [rsp + 0x38]
lea rax, [rsp + 0x44]
lea r9, [rsp + 0x40]
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x160]
lea rdx, [0x140364fa8]
xor r8d, r8d
mov dword [rsp + 0x40], 1
mov dword [rsp + 0x44], Ordinal_265
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
je 0x14016f321
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor al, al
mov rcx, qword [rsp + 0x1470]
xor rcx, rsp
call fcn.140161080
add rsp, 0x1488
ret
mov rcx, qword [rsp + 0x38]
mov qword [rsp + reloc.MFC80U.DLL_Ordinal_5248], rdi
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
call qword [sym.imp.KERNEL32.dll_GetTickCount]
lea rcx, [rsp + 0x51]
xor edx, edx
mov r8d, 0x103
mov edi, eax
mov byte [rsp + 0x50], 0
call sub.ntdll.dll_memset
and edi, 0x3e8
lea rdx, [0x140364fb8]
lea rcx, [rsp + 0x50]
mov r8d, edi
call qword [sym.imp.ntdll.dll_sprintf]
lea r8, [rsp + 0x160]
lea rdx, [rsp + 0x54]
mov ecx, 1
call qword [sym.imp.KERNEL32.dll_DefineDosDeviceA]
test eax, eax
je 0x14016f44e
xor eax, eax
or rcx, 0xffffffffffffffff
lea rdi, [rsp + 0x50]
repne scasb al, byte [rdi]
movzx eax, word [0x1403649fc]
lea rcx, [rsp + 0x271]
xor edx, edx
mov r8d, Ordinal_512
mov byte [rsp + 0x270], 0
mov word [rdi - 1], ax
call sub.ntdll.dll_memset
lea rdx, [rsp + 0x270]
lea rcx, [rsp + 0x50]
mov r8d, reloc.MFC80U.DLL_Ordinal_512
call qword [sym.imp.KERNEL32.dll_GetVolumeNameForVolumeMountPointA]
test eax, eax
je 0x14016f44e
lea rcx, [rsp + reloc.MFC80U.DLL_Ordinal_1137]
xor edx, edx
mov r8d, 0xfff
mov byte [rsp + Ordinal_1137], 0
call sub.ntdll.dll_memset
lea r9, [rsp + 0x30]
lea rdx, [rsp + 0x470]
lea rcx, [rsp + 0x270]
xor edi, edi
mov r8d, 0x1000
mov dword [rsp + 0x30], edi
call qword [sym.imp.KERNEL32.dll_GetVolumePathNamesForVolumeNameA]
test eax, eax
je 0x14016f44e
mov ecx, dword [rsp + 0x30]
test ecx, ecx
je 0x14016f44e
lea rax, [rsp + 0x472]
cmp byte [rax - 1], 0x3a
jne 0x14016f443
cmp byte [rax], 0x5c
je 0x14016f470
add edi, 1
add rax, 1
cmp edi, ecx
jb 0x14016f438
xor al, al
mov rdi, qword [rsp + reloc.MFC80U.DLL_Ordinal_5248]
mov rcx, qword [rsp + 0x1470]
xor rcx, rsp
call fcn.140161080
add rsp, 0x1488
ret
movsxd rax, edi
mov al, byte [rsp + rax + 0x470]
jmp 0x14016f450
Function at 0x140170860
Capabilities:
Check if file exists
Get file attributes
Manipulate boot configuration

Disassembly:
mov qword [rsp + 0x18], rbx
push rsi
sub rsp, 0x250
mov rax, qword [0x14042d950]
xor rax, rsp
mov qword [rsp + reloc.MFC80U.DLL_Ordinal_576], rax
mov rsi, rcx
lea rcx, [rsp + 0x21]
xor edx, edx
mov r8d, 0x103
mov byte [rsp + 0x20], 0
call sub.ntdll.dll_memset
mov edx, dword [0x140c48060]
xor ebx, ebx
test dl, 1
jne 0x1401708e9
or edx, 1
lea rcx, [0x140c47c68]
mov r8d, Ordinal_265
mov dword [0x140c48060], edx
xor edx, edx
mov dword [0x140c47b60], ebx
call sub.ntdll.dll_memset
lea rcx, [0x140c47b64]
xor edx, edx
mov r8d, Ordinal_265
call sub.ntdll.dll_memset
lea rcx, [0x1402dc0a0]
call fcn.140161180
lea rcx, [rsp + 0x20]
call fcn.140015f80
test eax, eax
je 0x14017094a
mov qword [rsp + 0x268], rdi
call fcn.14016f6a0
cmp eax, 5
ja 0x14017096b
xor eax, eax
or rcx, 0xffffffffffffffff
lea rdi, [rsp + 0x20]
repne scasb al, byte [rdi]
mov rax, qword [str._boot.ini]
lea rcx, [rsp + 0x20]
mov qword [rdi - 1], rax
movzx eax, word [0x140364f78]
mov word [rdi + 7], ax
call qword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x140170a45
xor eax, eax
mov rdi, qword [rsp + 0x268]
mov rcx, qword [rsp + reloc.MFC80U.DLL_Ordinal_576]
xor rcx, rsp
call fcn.140161080
mov rbx, qword [rsp + 0x270]
add rsp, 0x250
pop rsi
ret
lea rcx, [rsp + 0x131]
xor edx, edx
mov r8d, 0x103
mov byte [rsp + 0x130], bl
call sub.ntdll.dll_memset
mov rdx, rbx
nop
nop
movzx eax, byte [rsp + rdx + 0x20]
add rdx, 1
test al, al
mov byte [rsp + rdx + 0x12f], al
jne 0x140170990
xor eax, eax
or rcx, 0xffffffffffffffff
lea rdi, [rsp + 0x130]
repne scasb al, byte [rdi]
mov eax, dword [str.BCD]
lea rcx, [rsp + 0x130]
mov dword [rdi - 1], eax
movzx eax, byte [0x140364f80]
mov byte [rdi + 3], al
call qword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x140170a45
mov rcx, rbx
nop
movzx eax, byte [rsp + rcx + 0x20]
add rcx, 1
test al, al
mov byte [rsp + rcx + 0x12f], al
jne 0x1401709e0
xor eax, eax
or rcx, 0xffffffffffffffff
lea rdi, [rsp + 0x130]
repne scasb al, byte [rdi]
mov rax, qword [0x140364f88]
lea rcx, [rsp + 0x130]
mov qword [rdi - 1], rax
movzx eax, word [0x140364f90]
mov word [rdi + 7], ax
call qword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x140170940
movzx eax, byte [rsp + rbx + 0x130]
add rbx, 1
test al, al
mov byte [rsp + rbx + 0x1f], al
jne 0x140170a31
test rsi, rsi
je 0x140170940
or rcx, 0xffffffffffffffff
xor eax, eax
lea rdi, [rsp + 0x20]
repne scasb al, byte [rdi]
not rcx
sub rcx, 1
cmp rcx, 0x104
jae 0x140170940
lea rax, [rsp + 0x20]
lea rcx, [rsp + 0x20]
sub rsi, rax
nop
movzx eax, byte [rcx]
add rcx, 1
test al, al
mov byte [rsi + rcx - 1], al
jne 0x140170a80
mov eax, 1
jmp 0x140170942
Function at 0x1401796d0
Capabilities:
Get disk information via ioctl

Disassembly:
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x480
mov rax, qword [0x14042d950]
xor rax, rsp
mov qword [rsp + Ordinal_1137], rax
mov rcx, qword [rcx]
xor eax, eax
xor esi, esi
mov dword [rsp + 0x4c], eax
mov dword [rsp + 0x50], eax
mov qword [rsp + 0x38], rsi
lea rax, [rsp + 0x40]
mov rdi, rdx
xor r9d, r9d
mov qword [rsp + 0x30], rax
lea rax, [rsp + 0x48]
xor r8d, r8d
mov edx, 0x2d1080
mov dword [rsp + 0x28], 0xc
mov dword [rsp + 0x48], esi
mov qword [rsp + 0x20], rax
mov dword [rsp + 0x40], esi
call qword [sym.imp.KERNEL32.dll_DeviceIoControl]
test eax, eax
je 0x140179831
lea rcx, [rsp + 0x72]
xor edx, edx
mov r8d, reloc.MFC80U.DLL_Ordinal_1022
mov qword [rsp + Ordinal_1189], rbx
mov word [rsp + 0x70], si
call sub.ntdll.dll_memset
mov r9d, dword [rsp + 0x4c]
lea r8, [0x1403669a0]
lea rcx, [rsp + 0x70]
mov edx, 0x400
call fcn.140013b00
xor r9d, r9d
mov qword [rsp + 0x30], rsi
lea rcx, [rsp + 0x70]
lea r8d, [r9 + 7]
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 0x140179812
xor eax, eax
mov qword [rsp + 0x38], rsi
xor r9d, r9d
mov dword [rsp + 0x5c], eax
mov dword [rsp + 0x60], eax
mov dword [rsp + 0x64], eax
mov dword [rsp + 0x68], eax
mov dword [rsp + 0x6c], eax
lea rax, [rsp + 0x44]
mov qword [rsp + 0x30], rax
lea rax, [rsp + 0x58]
xor r8d, r8d
mov edx, 0x70000
mov rcx, rbx
mov dword [rsp + 0x28], 0x18
mov dword [rsp + 0x44], esi
mov dword [rsp + 0x58], esi
mov qword [rsp + 0x20], rax
call qword [sym.imp.KERNEL32.dll_DeviceIoControl]
test eax, eax
jne 0x140179816
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
xor al, al
jmp 0x140179829
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov r11d, dword [rsp + 0x6c]
mov al, 1
mov dword [rdi], r11d
mov rbx, qword [rsp + 0x4a0]
mov rcx, qword [rsp + 0x470]
xor rcx, rsp
call fcn.140161080
mov rsi, qword [rsp + 0x4a8]
add rsp, 0x480
pop rdi
ret
Function at 0x140179860
Capabilities:
Get disk information via ioctl

Disassembly:
push rbp
push rsi
push rdi
sub rsp, 0x510
mov rax, qword [0x14042d950]
xor rax, rsp
mov qword [rsp + Ordinal_1282], rax
xor eax, eax
xor ebp, ebp
mov rsi, rcx
mov rcx, qword [rcx]
mov dword [rsp + 0x4c], eax
mov dword [rsp + 0x50], eax
mov qword [rsp + 0x38], rbp
lea rax, [rsp + 0x44]
mov rdi, rdx
mov qword [rsp + 0x30], rax
lea rax, [rsp + 0x48]
xor r9d, r9d
xor r8d, r8d
mov edx, 0x2d1080
mov dword [rsp + 0x28], 0xc
mov dword [rsp + 0x48], ebp
mov dword [rsp + 0x44], ebp
mov qword [rsp + 0x20], rax
call qword [sym.imp.KERNEL32.dll_DeviceIoControl]
test eax, eax
je 0x140179a22
lea rcx, [rsp + 0x102]
xor edx, edx
mov r8d, reloc.MFC80U.DLL_Ordinal_1022
mov qword [rsp + 0x540], rbx
mov word [rsp + 0x100], bp
call sub.ntdll.dll_memset
mov r9d, dword [rsp + 0x4c]
lea r8, [0x140366978]
lea rcx, [rsp + 0x100]
mov edx, 0x400
call fcn.140013b00
xor r9d, r9d
mov qword [rsp + 0x30], rbp
lea rcx, [rsp + 0x100]
lea r8d, [r9 + 7]
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 0x1401799af
xor eax, eax
mov qword [rsp + 0x38], rbp
xor r9d, r9d
mov dword [rsp + 0x5c], eax
mov dword [rsp + 0x60], eax
mov dword [rsp + 0x64], eax
mov dword [rsp + 0x68], eax
mov dword [rsp + 0x6c], eax
lea rax, [rsp + 0x40]
mov qword [rsp + 0x30], rax
lea rax, [rsp + 0x58]
xor r8d, r8d
mov edx, 0x70000
mov rcx, rbx
mov dword [rsp + 0x28], 0x18
mov dword [rsp + 0x40], ebp
mov dword [rsp + 0x58], ebp
mov qword [rsp + 0x20], rax
call qword [sym.imp.KERNEL32.dll_DeviceIoControl]
test eax, eax
jne 0x1401799b3
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
xor al, al
jmp 0x140179a1a
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
lea rcx, [rsp + 0x70]
xor edx, edx
mov r8d, 0x90
call sub.ntdll.dll_memset
mov rcx, qword [rsi]
mov qword [rsp + 0x38], rbp
lea rax, [rsp + 0x40]
xor r9d, r9d
xor r8d, r8d
mov qword [rsp + 0x30], rax
lea rax, [rsp + 0x70]
mov edx, 0x70048
mov dword [rsp + 0x28], 0x90
mov qword [rsp + 0x20], rax
call qword [sym.imp.KERNEL32.dll_DeviceIoControl]
test eax, eax
je 0x1401799af
mov rax, qword [rsp + 0x78]
mov ecx, dword [rsp + 0x6c]
cqo
idiv rcx
mov qword [rdi], rax
mov al, 1
mov rbx, qword [rsp + 0x540]
mov rcx, qword [rsp + 0x500]
xor rcx, rsp
call fcn.140161080
add rsp, 0x510
pop rdi
pop rsi
pop rbp
ret
Function at 0x14017e5c0
Capabilities:
Print debug messages

Disassembly:
mov qword [rsp + 8], rcx
mov qword [rsp + 0x10], rdx
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x20], r9
push rbx
mov eax, reloc.MFC80U.DLL_Ordinal_4144
call sub.ntdll.dll___chkstk
sub rsp, rax
mov rax, qword [0x14042d950]
xor rax, rsp
mov qword [rsp + Ordinal_4135], rax
lea rbx, [rsp + 0x1048]
mov rdx, rbx
call qword [sym.imp.MSVCR80.dll__vscprintf]
add eax, 1
cmp eax, 0x1000
jg 0x14017e64c
mov rdx, qword [rsp + 0x1040]
lea rcx, [rsp + 0x20]
mov r8, rbx
call qword [sym.imp.ntdll.dll_vsprintf]
cmp byte [0x140c45674], 0
je 0x14017e639
lea rcx, [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_OutputDebugStringA]
cmp byte [0x140c45675], 0
je 0x14017e64c
lea rcx, [rsp + 0x20]
call fcn.14017e200
mov rcx, qword [rsp + 0x1020]
xor rcx, rsp
call fcn.140161080
add rsp, reloc.MFC80U.DLL_Ordinal_4144
pop rbx
ret

Function at 0x14017e7b0
Capabilities:
Print debug messages

Disassembly:
mov qword [rsp + 8], rcx
mov qword [rsp + 0x10], rdx
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x20], r9
push rbx
mov eax, 0x2030
call sub.ntdll.dll___chkstk
sub rsp, rax
mov rax, qword [0x14042d950]
xor rax, rsp
mov qword [rsp + 0x2020], rax
lea rbx, [rsp + 0x2048]
mov rdx, rbx
call qword [sym.imp.ntdll.dll__vscwprintf]
add eax, 1
cmp eax, 0x1000
jg 0x14017e83c
mov rdx, qword [rsp + 0x2040]
lea rcx, [rsp + 0x20]
mov r8, rbx
call qword [sym.imp.MSVCR80.dll__vswprintf]
cmp byte [0x140c45674], 0
je 0x14017e829
lea rcx, [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_OutputDebugStringW]
cmp byte [0x140c45675], 0
je 0x14017e83c
lea rcx, [rsp + 0x20]
call fcn.14017e670
mov rcx, qword [rsp + 0x2020]
xor rcx, rsp
call fcn.140161080
add rsp, 0x2030
pop rbx
ret
Function at 0x140193fe0
Capabilities:
Check os version

Disassembly:
push rbx
sub rsp, 0x1b0
mov rax, qword [0x14042d950]
xor rax, rsp
mov qword [rsp + 0x1a0], rax
mov ebx, dword [0x140442ef8]
lea rcx, [rsp + 0x40]
xor edx, edx
mov r8d, Ordinal_280
call sub.ntdll.dll_memset
lea rcx, [rsp + 0x40]
mov dword [rsp + 0x40], Ordinal_280
call qword [sym.imp.KERNEL32.dll_GetVersionExW]
cmp dword [rsp + 0x44], 6
jae 0x140194099
xor eax, eax
lea rdx, [0x140367a38]
lea rcx, [rsp + 0x160]
mov r8d, ebx
mov word [rsp + 0x160], 0
mov qword [rsp + 0x162], rax
mov qword [rsp + reloc.MFC80U.DLL_Ordinal_362], rax
mov qword [rsp + 0x172], rax
mov qword [rsp + 0x17a], rax
mov qword [rsp + 0x182], rax
mov qword [rsp + 0x18a], rax
mov qword [rsp + 0x192], rax
mov dword [rsp + 0x19a], eax
mov word [rsp + 0x19e], ax
call fcn.140002b60
jmp 0x1401940ce
call fcn.1400494c0
mov edx, ebx
mov r8, qword [rax]
mov rcx, rax
call qword [r8 + 0x18]
test eax, eax
jns 0x1401940b4
or rax, 0xffffffffffffffff
jmp 0x140194101
lea rdx, [0x140367a60]
lea rcx, [rsp + 0x160]
mov r9d, ebx
mov r8d, eax
call fcn.140002b60
xor r9d, r9d
mov qword [rsp + 0x30], 0
lea rcx, [rsp + 0x160]
lea r8d, [r9 + 3]
mov edx, 0xc0000000
mov dword [rsp + 0x28], 0x80
mov dword [rsp + 0x20], 3
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov rcx, qword [rsp + 0x1a0]
xor rcx, rsp
call fcn.140161080
add rsp, 0x1b0
pop rbx
ret
Function at 0x140195270
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rsi
push rdi
sub rsp, 0x70
mov rax, qword [0x14042d950]
xor rax, rsp
mov qword [rsp + 0x60], rax
mov rbp, rdx
xor edx, edx
mov rdi, rcx
call fcn.140193e60
test eax, eax
jne 0x140195377
call fcn.140049470
lea rbx, [0x140c48070]
xor edx, edx
mov rcx, rbx
mov r8d, 0x80
mov rsi, rax
call sub.ntdll.dll_memset
lea rcx, [0x140367b20]
mov edx, 0x5c
call qword [sym.imp.ntdll.dll_strrchr]
test rax, rax
mov rdi, rax
jne 0x1401952e0
xor ebx, ebx
jmp 0x140195360
xor eax, eax
lea rdx, [0x140368c28]
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
nop
movzx eax, byte [rdx]
add rdx, 1
test al, al
mov byte [rcx + rdx - 1], al
jne 0x140195320
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 0x140195350
mov rax, qword [rsi]
lea rdx, [0x140367b40]
mov r8, rbx
mov rcx, rsi
call qword [rax + 0x10]
xor eax, eax
jmp 0x1401953f4
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, rdi
mov dword [rsp + 0x28], 0x18
mov dword [rsp + 0x44], ebx
mov qword [rsp + 0x20], rax
call qword [sym.imp.KERNEL32.dll_DeviceIoControl]
mov esi, dword [rsp + 0x5c]
mov ecx, reloc.MFC80U.DLL_Ordinal_512
test eax, eax
lea r9, [rsp + 0x40]
mov rdx, rbp
cmove esi, ecx
mov rcx, rdi
mov dword [rsp + 0x40], ebx
mov r8d, esi
mov qword [rsp + 0x20], rbx
call qword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x1401953f2
mov eax, dword [rsp + 0x40]
xor edx, edx
div esi
test edx, edx
jne 0x1401953f2
mov ebx, 1
mov eax, ebx
mov rcx, qword [rsp + 0x60]
xor rcx, rsp
call fcn.140161080
mov rbx, qword [rsp + 0xa0]
add rsp, 0x70
pop rdi
pop rsi
pop rbp
ret
Function at 0x140195420
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rsi
push rdi
sub rsp, 0x70
mov rax, qword [0x14042d950]
xor rax, rsp
mov qword [rsp + 0x60], rax
mov rbp, rdx
xor edx, edx
mov rdi, rcx
call fcn.140193e60
test eax, eax
jne 0x140195527
call fcn.140049470
lea rbx, [0x140c48070]
xor edx, edx
mov rcx, rbx
mov r8d, 0x80
mov rsi, rax
call sub.ntdll.dll_memset
lea rcx, [0x140367ad0]
mov edx, 0x5c
call qword [sym.imp.ntdll.dll_strrchr]
test rax, rax
mov rdi, rax
jne 0x140195490
xor ebx, ebx
jmp 0x140195510
xor eax, eax
lea rdx, [0x140368c28]
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
nop
movzx eax, byte [rdx]
add rdx, 1
test al, al
mov byte [rcx + rdx - 1], al
jne 0x1401954d0
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 0x140195500
mov rax, qword [rsi]
lea rdx, [0x140367af0]
mov r8, rbx
mov rcx, rsi
call qword [rax + 0x10]
xor eax, eax
jmp 0x1401955a4
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, rdi
mov dword [rsp + 0x28], 0x18
mov dword [rsp + 0x44], ebx
mov qword [rsp + 0x20], rax
call qword [sym.imp.KERNEL32.dll_DeviceIoControl]
mov esi, dword [rsp + 0x5c]
mov ecx, reloc.MFC80U.DLL_Ordinal_512
test eax, eax
lea r9, [rsp + 0x40]
mov rdx, rbp
cmove esi, ecx
mov rcx, rdi
mov dword [rsp + 0x40], ebx
mov r8d, esi
mov qword [rsp + 0x20], rbx
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x1401955a2
mov eax, dword [rsp + 0x40]
xor edx, edx
div esi
test edx, edx
jne 0x1401955a2
mov ebx, 1
mov eax, ebx
mov rcx, qword [rsp + 0x60]
xor rcx, rsp
call fcn.140161080
mov rbx, qword [rsp + 0xa0]
add rsp, 0x70
pop rdi
pop rsi
pop rbp
ret
Function at 0x1401a1660
Capabilities:
Terminate thread

Disassembly:
mov qword [rsp + 8], rcx
push rsi
push rdi
push r12
sub rsp, 0x30
mov qword [rsp + 0x20], 0xfffffffffffffffe
mov qword [rsp + 0x60], rbx
mov qword [rsp + 0x68], rbp
mov rdi, rcx
lea rax, [0x1403b0368]
mov qword [rcx], rax
add rcx, 0x1d58
call fcn.1401a6950
nop
lea rbx, [rdi + 0x1b78]
mov qword [rsp + 0x58], rbx
lea rax, [0x1403affa8]
mov qword [rbx], rax
mov rcx, qword [rbx + 0x130]
cmp rcx, 0xffffffffffffffff
je 0x1401a16d2
xor edx, edx
call qword [sym.imp.KERNEL32.dll_TerminateThread]
mov rcx, qword [rbx + 0x130]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
lea rcx, [rbx + 0x138]
call sub.MFC80U.DLL_Ordinal_727
nop
lea rbp, [0x1403b23d8]
mov qword [rbx], rbp
lea rcx, [rbx + 0x110]
call qword [sym.imp.MFC80U.DLL_Ordinal_588]
lea rcx, [rbx + 0x108]
call qword [sym.imp.MFC80U.DLL_Ordinal_588]
lea rcx, [rbx + 0xf0]
lea r12, [0x14038d150]
mov qword [rcx], r12
call fcn.140001300
nop
mov rcx, rbx
call sub.MFC80U.DLL_Ordinal_617
nop
lea rbx, [rdi + 0x17a0]
mov qword [rsp + 0x58], rbx
lea rax, [0x1403b06b8]
mov qword [rbx], rax
lea rcx, [rbx + 0x330]
call sub.MFC80U.DLL_Ordinal_753
nop
lea rcx, [rbx + 0x288]
call sub.MFC80U.DLL_Ordinal_753
nop
lea rcx, [rbx + 0x1d8]
lea rsi, [0x1403a5998]
mov qword [rcx], rsi
call sub.MFC80U.DLL_Ordinal_753
nop
lea rcx, [rbx + reloc.MFC80U.DLL_Ordinal_296]
mov qword [rcx], rsi
call sub.MFC80U.DLL_Ordinal_753
nop
mov qword [rbx], rbp
lea rcx, [rbx + 0x110]
call qword [sym.imp.MFC80U.DLL_Ordinal_588]
lea rcx, [rbx + 0x108]
call qword [sym.imp.MFC80U.DLL_Ordinal_588]
lea rcx, [rbx + 0xf0]
mov qword [rcx], r12
call fcn.140001300
nop
mov rcx, rbx
call sub.MFC80U.DLL_Ordinal_617
nop
lea rcx, [rdi + 0xe88]
call fcn.1401abc10
nop
lea rcx, [rdi + 0xb18]
call fcn.1402148f0
nop
lea rcx, [rdi + 0x7d0]
call fcn.1402148f0
nop
lea rcx, [rdi + 0x488]
call fcn.1402148f0
nop
lea rcx, [rdi + reloc.MFC80U.DLL_Ordinal_320]
call fcn.1402148f0
nop
lea rcx, [rdi + 0x130]
mov qword [rcx], r12
call fcn.140001300
nop
lea rax, [0x1403b2098]
mov qword [rdi], rax
lea rcx, [rdi + 0xe8]
call sub.MFC80U.DLL_Ordinal_689
nop
mov rcx, rdi
mov rbx, qword [rsp + 0x60]
mov rbp, qword [rsp + 0x68]
add rsp, 0x30
pop r12
pop rdi
pop rsi
jmp sub.MFC80U.DLL_Ordinal_617

Function at 0x1401a2520
Capabilities:
Terminate thread

Disassembly:
mov qword [rsp + 8], rcx
push rbx
sub rsp, 0x30
mov qword [rsp + 0x20], 0xfffffffffffffffe
mov rbx, rcx
lea rax, [0x1403affa8]
mov qword [rcx], rax
mov rcx, qword [rcx + 0x130]
cmp rcx, 0xffffffffffffffff
je 0x1401a2562
xor edx, edx
call qword [sym.imp.KERNEL32.dll_TerminateThread]
mov rcx, qword [rbx + 0x130]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
lea rcx, [rbx + 0x138]
call sub.MFC80U.DLL_Ordinal_727
nop
lea rax, [0x1403b23d8]
mov qword [rbx], rax
lea rcx, [rbx + 0x110]
call qword [sym.imp.MFC80U.DLL_Ordinal_588]
lea rcx, [rbx + 0x108]
call qword [sym.imp.MFC80U.DLL_Ordinal_588]
lea rcx, [rbx + 0xf0]
lea rax, [0x14038d150]
mov qword [rcx], rax
call fcn.140001300
nop
mov rcx, rbx
add rsp, 0x30
pop rbx
jmp sub.MFC80U.DLL_Ordinal_617
Function at 0x1401a2790
Capabilities:
Check os version

Disassembly:
push rbx
sub rsp, 0x1b0
mov rax, qword [0x14042d950]
xor rax, rsp
mov qword [rsp + 0x1a0], rax
mov ebx, ecx
lea rcx, [rsp + 0x40]
xor edx, edx
mov r8d, Ordinal_280
call sub.ntdll.dll_memset
lea rcx, [rsp + 0x40]
mov dword [rsp + 0x40], Ordinal_280
call qword [sym.imp.KERNEL32.dll_GetVersionExW]
cmp dword [rsp + 0x44], 6
jae 0x1401a2846
xor eax, eax
lea rdx, [0x140369300]
lea rcx, [rsp + 0x160]
mov r8d, ebx
mov word [rsp + 0x160], 0
mov qword [rsp + 0x162], rax
mov qword [rsp + reloc.MFC80U.DLL_Ordinal_362], rax
mov qword [rsp + 0x172], rax
mov qword [rsp + 0x17a], rax
mov qword [rsp + 0x182], rax
mov qword [rsp + 0x18a], rax
mov qword [rsp + 0x192], rax
mov dword [rsp + 0x19a], eax
mov word [rsp + 0x19e], ax
call qword [sym.imp.MSVCR80.dll__swprintf]
jmp 0x1401a287c
call fcn.1400494c0
mov edx, ebx
mov r8, qword [rax]
mov rcx, rax
call qword [r8 + 0x18]
test eax, eax
jns 0x1401a2861
or rax, 0xffffffffffffffff
jmp 0x1401a28af
lea rdx, [0x140369328]
lea rcx, [rsp + 0x160]
mov r9d, ebx
mov r8d, eax
call qword [sym.imp.MSVCR80.dll__swprintf]
xor r9d, r9d
mov qword [rsp + 0x30], 0
lea rcx, [rsp + 0x160]
lea r8d, [r9 + 3]
mov edx, 0xc0000000
mov dword [rsp + 0x28], 0x80
mov dword [rsp + 0x20], 3
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov rcx, qword [rsp + 0x1a0]
xor rcx, rsp
call fcn.140161080
add rsp, 0x1b0
pop rbx
ret
Function at 0x1401a29c0
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 0x20], rbx
push rbp
push rsi
push rdi
sub rsp, 0x70
mov rax, qword [0x14042d950]
xor rax, rsp
mov qword [rsp + 0x60], rax
mov rbp, rdx
mov rdx, r8
mov rsi, rcx
call fcn.1401a2600
test eax, eax
jne 0x1401a2ac7
call fcn.140049470
lea rbx, [0x140c480f0]
xor edx, edx
mov rcx, rbx
mov r8d, 0x80
mov rsi, rax
call sub.ntdll.dll_memset
lea rcx, [0x1403693e8]
mov edx, 0x5c
call qword [sym.imp.ntdll.dll_strrchr]
test rax, rax
mov rdi, rax
jne 0x1401a2a31
xor ebx, ebx
jmp 0x1401a2ab0
xor eax, eax
lea rdx, [0x14036967c]
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
nop
movzx eax, byte [rdx]
add rdx, 1
test al, al
mov byte [rcx + rdx - 1], al
jne 0x1401a2a70
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 0x1401a2aa0
mov rax, qword [rsi]
lea rdx, [0x140369408]
mov r8, rbx
mov rcx, rsi
call qword [rax + 0x10]
xor eax, eax
jmp 0x1401a2b44
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, rbp
cmove edi, ecx
mov rcx, rsi
mov dword [rsp + 0x40], ebx
mov r8d, edi
mov qword [rsp + 0x20], rbx
call qword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x1401a2b42
mov eax, dword [rsp + 0x40]
xor edx, edx
div edi
test edx, edx
jne 0x1401a2b42
mov ebx, 1
mov eax, ebx
mov rcx, qword [rsp + 0x60]
xor rcx, rsp
call fcn.140161080
mov rbx, qword [rsp + 0xa8]
add rsp, 0x70
pop rdi
pop rsi
pop rbp
ret