joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140222c30
Capabilities:
Create process on windows
Get common file path

Disassembly:
push rdi
sub rsp, 0x4f0
mov rax, qword [0x14042d950]
xor rax, rsp
mov qword [rsp + 0x4e0], rax
lea rcx, [rsp + 0xe2]
xor edx, edx
mov r8d, reloc.MFC80U.DLL_Ordinal_1022
mov word [rsp + 0xe0], 0
call sub.ntdll.dll_memset
lea rcx, [rsp + 0xe0]
mov edx, reloc.MFC80U.DLL_Ordinal_512
call qword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
xor eax, eax
or rcx, 0xffffffffffffffff
lea rdi, [rsp + 0xe0]
xor edx, edx
repne scasw ax, word [rdi]
mov rax, qword [str.wpeutil.exe_shutdown]
lea r8d, [rdx + 0x68]
mov qword [rdi - 2], rax
mov rax, qword [0x1403724a0]
lea rcx, [rsp + 0x70]
mov qword [rdi + 6], rax
mov rax, qword [0x1403724a8]
mov qword [rdi + 0xe], rax
mov rax, qword [0x1403724b0]
mov qword [rdi + 0x16], rax
mov rax, qword [0x1403724b8]
mov qword [rdi + 0x1e], rax
mov eax, dword [0x1403724c0]
mov dword [rdi + 0x26], eax
call sub.ntdll.dll_memset
lea rax, [rsp + 0x50]
mov qword [rsp + 0x48], rax
lea rax, [rsp + 0x70]
lea rdx, [rsp + 0xe0]
mov qword [rsp + 0x40], rax
xor eax, eax
xor r9d, r9d
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x30], rax
mov dword [rsp + 0x28], eax
xor r8d, r8d
xor ecx, ecx
mov dword [rsp + 0x20], eax
mov dword [rsp + 0x70], 0x68
mov dword [rsp + 0xac], 1
mov word [rsp + 0xb0], 0
call qword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
je 0x140222d55
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rsp + 0x58]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x140222d6a
call fcn.140049470
lea rdx, str._s_wpeutile.exe_shutdown_fail
mov rdi, qword [rax]
mov rcx, rax
call qword [rdi + 0x10]
mov rcx, qword [rsp + 0x4e0]
xor rcx, rsp
call fcn.140161080
add rsp, 0x4f0
pop rdi
ret
Function at 0x140222f60
Capabilities:
Get installed programs
Query or enumerate registry value

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
push r12
mov eax, 0x2260
call sub.ntdll.dll___chkstk
sub rsp, rax
mov rax, qword [0x14042d950]
xor rax, rsp
mov qword [rsp + 0x2250], rax
xor r12d, r12d
lea rcx, [rsp + 0x250]
lea rdx, str.SOFTWAREMicrosoftWindowsCurrentVersionUninstallAOMEI_Dynamic_Disk_Manager_Technician_Edition_is1
mov r8d, 0xcc
mov dword [0x140442c90], r12d
mov word [0x140442c94], r12w
call sub.ntdll.dll_memcpy
lea rcx, [rsp + 0x31c]
xor edx, edx
mov r8d, 0x734
call sub.ntdll.dll_memset
lea rcx, [rsp + reloc.MFC80U.DLL_Ordinal_2640]
lea rdx, str.SOFTWAREMicrosoftWindowsCurrentVersionUninstallAOMEI_Dynamic_Disk_Manager_Unlimited_Edition_is1
mov r8d, 0xca
call sub.ntdll.dll_memcpy
lea rcx, [rsp + 0xb1a]
xor edx, edx
mov r8d, 0x736
call sub.ntdll.dll_memset
lea rcx, [rsp + 0x1250]
lea rdx, str.SOFTWAREMicrosoftWindowsCurrentVersionUninstallAOMEI_Dynamic_Disk_Manager_Server_Edition_is1
mov r8d, 0xc4
call sub.ntdll.dll_memcpy
lea rcx, [rsp + reloc.MFC80U.DLL_Ordinal_4884]
xor edx, edx
mov r8d, 0x73c
call sub.ntdll.dll_memset
lea rcx, [rsp + 0x1a50]
lea rdx, str.SOFTWAREMicrosoftWindowsCurrentVersionUninstallAOMEI_Dynamic_Disk_Manager_Pro_Edition_is1
mov r8d, 0xbe
call sub.ntdll.dll_memcpy
lea rcx, [rsp + 0x1b0e]
xor edx, edx
mov r8d, 0x742
call sub.ntdll.dll_memset
lea rbx, [rsp + 0x250]
lea esi, [r12 + 4]
lea rbp, [0x140442c94]
mov qword [rsp + 0x2270], rdi
nop
nop
lea r8, [rsp + 0x30]
mov rdx, rbx
mov rcx, 0xffffffff80000002
mov qword [rsp + 0x30], r12
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyW]
test eax, eax
jne 0x140223159
lea rcx, [rsp + 0x42]
xor edx, edx
mov r8d, 0x206
mov word [rsp + 0x40], r12w
call sub.ntdll.dll_memset
mov rcx, qword [rsp + 0x30]
lea rax, [rsp + 0x38]
lea r9, [rsp + 0x3c]
lea rdx, str.InstallLocation
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x40]
xor r8d, r8d
mov dword [rsp + 0x3c], r12d
mov dword [rsp + 0x38], Ordinal_265
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
or rcx, 0xffffffffffffffff
xor eax, eax
lea rdi, [rsp + 0x40]
repne scasw ax, word [rdi]
not rcx
cmp rcx, 1
je 0x140223159
mov dword [0x140442c90], 1
mov rcx, r12
movzx eax, word [rsp + rcx + 0x40]
add rcx, 2
test ax, ax
mov word [rcx + rbp - 2], ax
jne 0x140223124
xor eax, eax
mov rdi, rbp
or rcx, 0xffffffffffffffff
repne scasw ax, word [rdi]
mov rax, qword [str.DDM.exe]
mov qword [rdi - 2], rax
mov rax, qword [0x140371ff8]
mov qword [rdi + 6], rax
add rbx, 0x800
sub rsi, 1
jne 0x140223080
mov rdi, qword [rsp + 0x2270]
mov rcx, qword [rsp + 0x2250]
xor rcx, rsp
call fcn.140161080
lea r11, [rsp + 0x2260]
mov rbx, qword [r11 + 0x18]
mov rbp, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rsp, r11
pop r12
ret
Function at 0x140223780
Capabilities:
Check os version

Disassembly:
sub rsp, 0x158
mov rax, qword [0x14042d950]
xor rax, rsp
mov qword [rsp + reloc.MFC80U.DLL_Ordinal_320], 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]
xor eax, eax
cmp dword [rsp + 0x24], 6
setae al
mov rcx, qword [rsp + reloc.MFC80U.DLL_Ordinal_320]
xor rcx, rsp
call fcn.140161080
add rsp, 0x158
ret

Function at 0x1402237f0
Capabilities:
Shutdown system

Disassembly:
sub rsp, 0x48
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
lea r8, [rsp + 0x50]
mov edx, 0x28
mov rcx, rax
call qword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
jne 0x140223816
add rsp, 0x48
ret
lea r8, [rsp + 0x34]
lea rdx, str.SeShutdownPrivilege
xor ecx, ecx
mov qword [rsp + 0x40], rbx
call qword [sym.imp.ADVAPI32.dll_LookupPrivilegeValueW]
mov rcx, qword [rsp + 0x50]
xor ebx, ebx
lea r8, [rsp + 0x30]
xor r9d, r9d
xor edx, edx
mov qword [rsp + 0x28], rbx
mov dword [rsp + 0x30], 1
mov dword [rsp + 0x3c], 2
mov qword [rsp + 0x20], rbx
call qword [sym.imp.ADVAPI32.dll_AdjustTokenPrivileges]
call qword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
je 0x140223876
xor eax, eax
mov rbx, qword [rsp + 0x40]
add rsp, 0x48
ret
xor edx, edx
lea ecx, [rdx + 5]
call qword [sym.imp.USER32.dll_ExitWindowsEx]
test eax, eax
setne bl
mov eax, ebx
mov rbx, qword [rsp + 0x40]
add rsp, 0x48
ret

Function at 0x1402238a0
Capabilities:
Shutdown system

Disassembly:
sub rsp, 0x48
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
lea r8, [rsp + 0x50]
mov edx, 0x28
mov rcx, rax
call qword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
jne 0x1402238c6
add rsp, 0x48
ret
lea r8, [rsp + 0x34]
lea rdx, [0x140371ae0]
xor ecx, ecx
mov qword [rsp + 0x40], rbx
call qword [sym.imp.ADVAPI32.dll_LookupPrivilegeValueW]
mov rcx, qword [rsp + 0x50]
xor ebx, ebx
lea r8, [rsp + 0x30]
xor r9d, r9d
xor edx, edx
mov qword [rsp + 0x28], rbx
mov dword [rsp + 0x30], 1
mov dword [rsp + 0x3c], 2
mov qword [rsp + 0x20], rbx
call qword [sym.imp.ADVAPI32.dll_AdjustTokenPrivileges]
call qword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
je 0x140223926
xor eax, eax
mov rbx, qword [rsp + 0x40]
add rsp, 0x48
ret
xor edx, edx
lea ecx, [rdx + 6]
call qword [sym.imp.USER32.dll_ExitWindowsEx]
test eax, eax
setne bl
mov eax, ebx
mov rbx, qword [rsp + 0x40]
add rsp, 0x48
ret
Function at 0x140223a00
Capabilities:
Compare security identifiers

Disassembly:
push rsi
sub rsp, 0x90
mov rax, qword [0x14042d950]
xor rax, rsp
mov qword [rsp + 0x80], rax
xor esi, esi
lea rax, [rsp + 0x70]
lea rcx, [rsp + 0x78]
mov qword [rsp + 0x50], rax
mov dword [rsp + 0x48], esi
mov dword [rsp + 0x40], esi
mov dword [rsp + 0x38], esi
mov dword [rsp + 0x30], esi
lea r8d, [rsi + 0x20]
mov r9d, 0x220
mov dl, 2
mov dword [rsp + 0x28], esi
mov byte [rsp + 0x78], sil
mov byte [rsp + 0x79], sil
mov byte [rsp + 0x7a], sil
mov dword [rsp + 0x20], esi
mov byte [rsp + 0x7b], sil
mov byte [rsp + 0x7c], sil
mov byte [rsp + 0x7d], 5
mov qword [rsp + 0x70], rsi
call qword [sym.imp.ADVAPI32.dll_AllocateAndInitializeSid]
test eax, eax
je 0x140223acb
mov qword [rsp + 0x68], rsi
call qword [sym.imp.KERNEL32.dll_GetCurrentThread]
lea r9, [rsp + 0x68]
lea r8d, [rsi + 1]
mov edx, 0x2000a
mov rcx, rax
call qword [sym.imp.ADVAPI32.dll_OpenThreadToken]
test eax, eax
jne 0x140223ad2
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
lea r8, [rsp + 0x68]
mov edx, 0x2000a
mov rcx, rax
call qword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
jne 0x140223ad2
mov rcx, qword [rsp + 0x70]
call qword [sym.imp.ADVAPI32.dll_FreeSid]
xor eax, eax
jmp 0x140223bdd
mov rcx, qword [rsp + 0x68]
xor r9d, r9d
lea rax, [rsp + 0x60]
lea edx, [r9 + 2]
xor r8d, r8d
mov qword [rsp + 0xa0], rbx
mov qword [rsp + 0xa8], rbp
mov dword [rsp + 0x60], esi
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_GetTokenInformation]
mov ebx, dword [rsp + 0x60]
mov edx, 1
mov rcx, rbx
call qword [sym.imp.MSVCR80.dll_calloc]
test rax, rax
mov rbp, rax
jne 0x140223b3c
mov rcx, qword [rsp + 0x70]
call qword [sym.imp.ADVAPI32.dll_FreeSid]
mov rcx, qword [rsp + 0x68]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
jmp 0x140223bcd
mov rcx, qword [rsp + 0x68]
lea rax, [rsp + 0x60]
mov r9d, ebx
mov r8, rbp
mov edx, 2
mov qword [rsp + 0xb0], rdi
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_GetTokenInformation]
cmp dword [rbp], esi
mov rdi, rsi
jbe 0x140223ba4
lea rbx, [rbp + 0x10]
mov rdx, qword [rsp + 0x70]
mov rcx, qword [rbx - 8]
call qword [sym.imp.ADVAPI32.dll_EqualSid]
test eax, eax
je 0x140223b8d
mov eax, dword [rbx]
test al, 4
jne 0x140223b9f
test al, 2
jne 0x140223b9f
mov eax, dword [rbp]
add rdi, 1
add rbx, 0x10
cmp rdi, rax
jb 0x140223b70
jmp 0x140223ba4
mov esi, 1
mov rcx, qword [rsp + 0x70]
call qword [sym.imp.ADVAPI32.dll_FreeSid]
mov rcx, qword [rsp + 0x68]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, rbp
call qword [sym.imp.MSVCR80.dll_free]
mov rdi, qword [rsp + 0xb0]
mov eax, esi
mov rbx, qword [rsp + 0xa0]
mov rbp, qword [rsp + 0xa8]
mov rcx, qword [rsp + 0x80]
xor rcx, rsp
call fcn.140161080
add rsp, 0x90
pop rsi
ret
Function at 0x140223d20
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x20], rsi
push rdi
push r12
push r13
sub rsp, 0x30
mov rsi, rdx
mov r12d, r8d
mov r13, rcx
mov r8d, r8d
xor edx, edx
mov rcx, rsi
call sub.ntdll.dll_memset
xor ebp, ebp
shr r12d, 1
mov ebx, ebp
mov rdi, rsi
je 0x140223da7
nop
nop
lea r9, [rsp + 0x60]
mov r8d, 2
mov rdx, rdi
mov rcx, r13
mov dword [rsp + 0x60], ebp
mov qword [rsp + 0x20], rbp
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x140223e43
cmp dword [rsp + 0x60], ebp
je 0x140223e43
movzx eax, word [rdi]
add ebx, 1
add rdi, 2
cmp ax, 0xa
je 0x140223da7
cmp ebx, r12d
jb 0x140223d60
mov word [rdi], bp
cmp byte [rsi], 0xff
jne 0x140223def
cmp byte [rsi + 1], 0xfe
jne 0x140223def
movzx ecx, word [rsi + 2]
lea rax, [rsi + 2]
test cx, cx
je 0x140223de6
mov rdx, rsi
nop
nop
nop
add rax, 2
mov word [rdx], cx
add ebp, 1
mov cx, word [rax]
add rdx, 2
test cx, cx
jne 0x140223dd0
movsxd rax, ebp
mov word [rsi + rax*2], 0
or rcx, 0xffffffffffffffff
xor eax, eax
mov rdi, rsi
repne scasw ax, word [rdi]
not rcx
sub rcx, 1
cmp ecx, 2
jl 0x140223e28
movsxd rax, ecx
cmp word [rsi + rax*2 - 4], 0xd
jne 0x140223e28
cmp word [rsi + rax*2 - 2], 0xa
jne 0x140223e28
mov word [rsi + rax*2 - 4], 0
mov word [rsi + rax*2 - 2], 0
mov eax, ecx
mov rbx, qword [rsp + 0x50]
mov rbp, qword [rsp + 0x58]
mov rsi, qword [rsp + 0x68]
add rsp, 0x30
pop r13
pop r12
pop rdi
ret
mov ecx, ebx
mov eax, ebx
mov word [rdi + rcx*2], bp
jmp 0x140223e2a
Function at 0x140224160
Capabilities:
Query or enumerate registry value

Disassembly:
push rdi
sub rsp, 0x80
mov rax, qword [0x14042d950]
xor rax, rsp
mov qword [rsp + 0x70], rax
xor eax, eax
xor edi, edi
lea rdx, str.SOFTWAREMicrosoftWindows_NTCurrentVersion
mov qword [rsp + 0x51], rax
mov qword [rsp + 0x59], rax
mov qword [rsp + 0x61], rax
mov dword [rsp + 0x69], eax
mov word [rsp + 0x6d], ax
mov byte [rsp + 0x6f], al
lea rax, [rsp + 0x38]
lea r9d, [rdi + 1]
xor r8d, r8d
mov rcx, 0xffffffff80000002
mov qword [rsp + 0x38], rdi
mov dword [rsp + 0x34], edi
mov qword [rsp + 0x20], rax
mov byte [rsp + 0x50], dil
mov dword [rsp + 0x30], edi
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x14022431a
mov rcx, qword [rsp + 0x38]
lea rax, [rsp + 0x30]
lea r9, [rsp + 0x34]
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x50]
lea rdx, str.CurrentBuild
xor r8d, r8d
mov dword [rsp + 0x30], 0x20
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
je 0x140224332
mov rcx, qword [rsp + 0x38]
mov qword [rsp + 0x90], rbx
mov qword [rsp + 0x98], rsi
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
call fcn.140049470
lea rcx, [0x140c48ec0]
xor edx, edx
mov r8d, 0x80
mov rbx, rax
call sub.ntdll.dll_memset
lea edx, [rdi + 0x5c]
lea rcx, [0x140372a50]
call qword [sym.imp.ntdll.dll_strrchr]
test rax, rax
mov rsi, rax
je 0x1402242f7
xor eax, eax
lea rdx, [0x140372d0c]
lea rcx, [rsp + 0x40]
mov r8d, Ordinal_1652
mov byte [rsp + 0x40], dil
mov qword [rsp + 0x41], rax
mov word [rsp + 0x49], ax
mov byte [rsp + 0x4b], al
call qword [sym.imp.ntdll.dll_sprintf]
lea rdx, [rsi + 1]
lea rcx, [0x140c48ec0]
sub rcx, rdx
nop
nop
nop
nop
movzx eax, byte [rdx]
add rdx, 1
test al, al
mov byte [rcx + rdx - 1], al
jne 0x1402242b0
xor eax, eax
or rcx, 0xffffffffffffffff
lea rdi, [0x140c48ec0]
repne scasb al, byte [rdi]
xor ecx, ecx
lea rdx, [rsp + 0x40]
nop
nop
nop
movzx eax, byte [rdx + rcx]
add rcx, 1
test al, al
mov byte [rdi + rcx - 2], al
jne 0x1402242e0
lea rdi, [0x140c48ec0]
mov rax, qword [rbx]
lea rdx, str._s:_Query_CurrentBuild_error.
mov r8, rdi
mov rcx, rbx
call qword [rax + 0x10]
mov rsi, qword [rsp + 0x98]
mov rbx, qword [rsp + 0x90]
xor eax, eax
mov rcx, qword [rsp + 0x70]
xor rcx, rsp
call fcn.140161080
add rsp, 0x80
pop rdi
ret
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [rsp + 0x34], 1
jne 0x14022431a
lea rcx, [rsp + 0x50]
call qword [sym.imp.ntdll.dll__wtoi]
jmp 0x14022431c
Function at 0x140224c90
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 0x140224dd7
mov qword [rsp + 0x170], rsi
mov qword [rsp + reloc.MFC80U.DLL_Ordinal_376], rdi
call fcn.140049470
lea rbx, [0x140c48ec0]
xor edx, edx
mov r8d, 0x80
mov rcx, rbx
mov rsi, rax
call sub.ntdll.dll_memset
lea rcx, [0x140372338]
mov edx, 0x5c
call qword [sym.imp.ntdll.dll_strrchr]
test rax, rax
mov rdi, rax
jne 0x140224d28
xor ebx, ebx
jmp 0x140224db0
xor eax, eax
lea rdx, [0x140372d0c]
lea rcx, [rsp + reloc.MFC80U.DLL_Ordinal_320]
mov r8d, 0x4e0
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 0x140224d70
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 0x140224da0
mov rax, qword [rsi]
lea rdx, str._s:_Failed_to_GetVersionEx_in_IsWin8.
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 0x140224dfc
mov eax, dword [rsp + 0x24]
cmp eax, 6
jbe 0x140224de7
mov eax, 1
jmp 0x140224dfc
cmp eax, 6
jne 0x140224df8
cmp dword [rsp + 0x28], 2
jb 0x140224df8
lea ebx, [rax - 5]
jmp 0x140224dfa
xor ebx, ebx
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 0x140224e20
Capabilities:
Write file on windows

Disassembly:
push rsi
sub rsp, 0x160
mov rax, qword [0x14042d950]
xor rax, rsp
mov qword [rsp + reloc.MFC80U.DLL_Ordinal_336], rax
mov esi, ecx
lea rdx, [0x140c47870]
mov r8d, reloc.MFC80U.DLL_Ordinal_512
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
lea rcx, [0x140c47870]
mov edx, 0x5c
call qword [sym.imp.ntdll.dll_strrchr]
test rax, rax
je 0x140224f8d
mov byte [rax], 0
xor eax, eax
or rcx, 0xffffffffffffffff
xor r9d, r9d
mov qword [rsp + 0x30], 0
mov qword [rsp + reloc.MFC80U.DLL_Ordinal_376], rbx
mov qword [rsp + 0x180], rdi
lea rdi, [0x140c47870]
lea r8d, [r9 + 3]
repne scasb al, byte [rdi]
mov rax, qword [0x140372318]
lea rcx, [0x140c47870]
mov qword [rdi - 1], rax
movzx eax, word [0x140372320]
mov edx, 0xc0000000
mov dword [rsp + 0x28], 0x80
mov dword [rsp + 0x20], 4
mov word [rdi + 7], ax
call qword [sym.imp.KERNEL32.dll_CreateFileA]
cmp rax, 0xffffffffffffffff
mov rbx, rax
jne 0x140224f0b
xor eax, eax
mov rbx, qword [rsp + reloc.MFC80U.DLL_Ordinal_376]
mov rdi, qword [rsp + 0x180]
mov rcx, qword [rsp + reloc.MFC80U.DLL_Ordinal_336]
xor rcx, rsp
call fcn.140161080
add rsp, 0x160
pop rsi
ret
mov r9d, 2
xor r8d, r8d
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetFilePointer]
lea rcx, [rsp + 0x51]
xor edx, edx
mov r8d, 0xff
mov byte [rsp + 0x50], 0
call sub.ntdll.dll_memset
lea rdx, [0x14036e0ec]
lea rcx, [rsp + 0x50]
mov r8d, esi
call qword [sym.imp.ntdll.dll_sprintf]
xor eax, eax
or rcx, 0xffffffffffffffff
lea rdi, [rsp + 0x50]
lea r9, [rsp + 0x40]
lea rdx, [rsp + 0x50]
repne scasb al, byte [rdi]
mov dword [rsp + 0x40], eax
mov qword [rsp + 0x20], rax
not rcx
lea r8d, [rcx - 1]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_WriteFile]
mov rcx, rbx
mov edi, eax
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, edi
jmp 0x140224ee2
xor eax, eax
jmp 0x140224ef2
Function at 0x140224fa0
Capabilities:
Check if file exists
Get file attributes

Disassembly:
mov qword [rsp + 0x10], rbx
push rdi
sub rsp, 0x350
mov rax, qword [0x14042d950]
xor rax, rsp
mov qword [rsp + 0x340], rax
mov rbx, rcx
mov edi, edx
lea rcx, [rsp + 0x132]
xor edx, edx
mov r8d, 0x206
mov word [rsp + 0x130], 0
call sub.ntdll.dll_memset
lea rcx, [rsp + 0x21]
xor edx, edx
mov r8d, 0x103
mov byte [rsp + 0x20], 0
call sub.ntdll.dll_memset
mov rax, qword [rbx]
mov rcx, rbx
call qword [rax + 0x50]
test edi, edi
lea rcx, [rsp + 0x130]
movzx r8d, ax
je 0x14022514b
lea rdx, str._c:WindowsBootEFI_bootmgfw.efi
call qword [sym.imp.MSVCR80.dll__swprintf]
lea rcx, [rsp + 0x130]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x14022509a
or rcx, 0xffffffffffffffff
xor eax, eax
lea rdi, [rsp + 0x130]
repne scasw ax, word [rdi]
lea rdx, [rsp + 0x130]
not rcx
lea r8, [rcx - 1]
lea rcx, [rsp + 0x20]
call qword [sym.imp.ntdll.dll_wcstombs]
call fcn.140049470
lea rcx, [0x1403720b8]
mov rbx, qword [rax]
mov edx, 0x3ce
mov rdi, rax
call fcn.140223eb0
lea r9, [rsp + 0x20]
lea rdx, [0x1403720c8]
mov r8, rax
mov rcx, rdi
call qword [rbx + 0x10]
xor eax, eax
jmp 0x1402251d0
lea rcx, [rsp + 0x130]
xor edx, edx
mov r8d, 0x208
call sub.ntdll.dll_memset
mov rdx, qword [rbx]
mov rcx, rbx
call qword [rdx + 0x50]
lea rdx, str._c:WindowsBootEFI_bootmgr.efi
lea rcx, [rsp + 0x130]
movzx r8d, ax
call qword [sym.imp.MSVCR80.dll__swprintf]
lea rcx, [rsp + 0x130]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x1402251cb
or rcx, 0xffffffffffffffff
xor eax, eax
lea rdi, [rsp + 0x130]
repne scasw ax, word [rdi]
lea rdx, [rsp + 0x130]
not rcx
lea r8, [rcx - 1]
lea rcx, [rsp + 0x20]
call qword [sym.imp.ntdll.dll_wcstombs]
call fcn.140049470
lea rcx, [0x140372148]
mov rbx, qword [rax]
mov edx, 0x3dc
mov rdi, rax
call fcn.140223eb0
lea r9, [rsp + 0x20]
lea rdx, [0x140372158]
mov r8, rax
mov rcx, rdi
call qword [rbx + 0x10]
xor eax, eax
jmp 0x1402251d0
lea rdx, str._c:WindowsBootPCAT_bootmgr
call qword [sym.imp.MSVCR80.dll__swprintf]
lea rcx, [rsp + 0x130]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x1402251cb
or rcx, 0xffffffffffffffff
xor eax, eax
lea rdi, [rsp + 0x130]
repne scasw ax, word [rdi]
lea rdx, [rsp + 0x130]
not rcx
lea r8, [rcx - 1]
lea rcx, [rsp + 0x20]
call qword [sym.imp.ntdll.dll_wcstombs]
call fcn.140049470
lea rcx, [0x1403721c8]
mov rbx, qword [rax]
mov edx, Ordinal_1022
mov rdi, rax
call fcn.140223eb0
lea r9, [rsp + 0x20]
lea rdx, [0x1403721d8]
mov r8, rax
mov rcx, rdi
call qword [rbx + 0x10]
xor eax, eax
jmp 0x1402251d0
mov eax, 1
mov rcx, qword [rsp + 0x340]
xor rcx, rsp
call fcn.140161080
mov rbx, qword [rsp + 0x368]
add rsp, 0x350
pop rdi
ret
Function at 0x140225200
Capabilities:
Check if file exists
Get file attributes

Disassembly:
sub rsp, 0x438
mov rax, qword [0x14042d950]
xor rax, rsp
mov qword [rsp + Ordinal_1062], rax
lea rcx, [rsp + 0x22]
xor edx, edx
mov r8d, reloc.MFC80U.DLL_Ordinal_1022
mov word [rsp + 0x20], 0
call sub.ntdll.dll_memset
lea rdx, [rsp + 0x20]
mov r8d, reloc.MFC80U.DLL_Ordinal_512
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
lea rcx, [rsp + 0x20]
mov dx, 0x5c
call qword [sym.imp.ntdll.dll_wcsrchr]
test rax, rax
je 0x1402252ca
mov word [rax], 0
xor eax, eax
or rcx, 0xffffffffffffffff
mov qword [rsp + Ordinal_1073], rdi
lea rdi, [rsp + 0x20]
repne scasw ax, word [rdi]
mov rax, qword [str.EPW.exe]
lea rcx, [rsp + 0x20]
mov qword [rdi - 2], rax
mov rax, qword [0x140372058]
mov qword [rdi + 6], rax
movzx eax, word [0x140372060]
mov word [rdi + 0xe], ax
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov rdi, qword [rsp + 0x430]
xor ecx, ecx
cmp eax, 0xffffffff
setne cl
mov eax, ecx
mov rcx, qword [rsp + 0x420]
xor rcx, rsp
call fcn.140161080
add rsp, 0x438
ret
xor eax, eax
mov rcx, qword [rsp + 0x420]
xor rcx, rsp
call fcn.140161080
add rsp, 0x438
ret

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

Disassembly:
push rbx
sub rsp, 0x430
mov rax, qword [0x14042d950]
xor rax, rsp
mov qword [rsp + Ordinal_1062], rax
mov rbx, rcx
lea rcx, [rsp + 0x22]
xor edx, edx
mov r8d, reloc.MFC80U.DLL_Ordinal_1022
mov word [rsp + 0x20], 0
call sub.ntdll.dll_memset
lea rdx, [rsp + 0x20]
mov r8d, reloc.MFC80U.DLL_Ordinal_512
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
lea rcx, [rsp + 0x20]
mov dx, 0x5c
call qword [sym.imp.ntdll.dll_wcsrchr]
test rax, rax
je 0x1402253f8
mov word [rax], 0
xor eax, eax
or rcx, 0xffffffffffffffff
mov qword [rsp + Ordinal_1102], rdi
lea rdi, [rsp + 0x20]
repne scasw ax, word [rdi]
mov rax, qword [str.DyndiskConverter.exe]
lea rcx, [rsp + 0x20]
mov qword [rdi - 2], rax
mov rax, qword [0x140372028]
mov qword [rdi + 6], rax
mov rax, qword [0x140372030]
mov qword [rdi + 0xe], rax
mov rax, qword [0x140372038]
mov qword [rdi + 0x16], rax
mov rax, qword [0x140372040]
mov qword [rdi + 0x1e], rax
mov eax, dword [0x140372048]
mov dword [rdi + 0x26], eax
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov rdi, qword [rsp + 0x448]
cmp eax, 0xffffffff
je 0x1402253f8
test rbx, rbx
je 0x1402253f1
lea rax, [rsp + 0x20]
lea rcx, [rsp + 0x20]
sub rbx, rax
nop
nop
nop
movzx eax, word [rcx]
add rcx, 2
test ax, ax
mov word [rbx + rcx - 2], ax
jne 0x1402253e0
mov eax, 1
jmp 0x1402253fa
xor eax, eax
mov rcx, qword [rsp + 0x420]
xor rcx, rsp
call fcn.140161080
add rsp, 0x430
pop rbx
ret