joyce8/EMBER2024-capa huggingface dataset:
Function at 0x5166c0
Capabilities:
Get file attributes

Disassembly:
push r15
push r14
push r13
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x68
lea r12, [rsp + 0x40]
mov r15, rcx
mov rcx, r12
call fcn.004cec92
mov rcx, qword [rsp + 0x40]
mov rbx, qword [rsp + 0x48]
sub rbx, rcx
call fcn.004d1482
cmp eax, ebx
jne 0x516712
mov rdx, qword [rsp + 0x48]
sub rdx, qword [rsp + 0x40]
mov eax, 1
mov rcx, r12
add edx, edx
cmove edx, eax
call fcn.004ced00
mov rax, qword [rsp + 0x48]
lea rbx, [rsp + 0x50]
mov rcx, rbx
lea rdx, [rax + 1]
mov qword [rsp + 0x48], rdx
mov rdx, r15
mov byte [rax], 0
mov r9d, dword [rsp + 0x40]
mov rax, qword [r15]
mov r8, qword [rsp + 0x40]
not r9d
add r9d, dword [rsp + 0x48]
call qword [rax + 0x18]
lea rcx, [r15 + 0x60]
mov rdx, rbx
call fcn.004ce2ae
mov rcx, rbx
call fcn.004cddea
mov rax, qword [r15 + 0x60]
cmp dword [rax], 0
je 0x516781
mov rcx, qword [r15 + 0x30]
or r13d, 0xffffffff
test rcx, rcx
je 0x51687d
mov rax, qword [rcx]
xor edx, edx
call qword [rax + 0x10]
jmp 0x51687d
mov rax, qword [r15 + 0x18]
mov rdi, qword [r15 + 0x10]
lea r13, [rsp + 0x3c]
mov dword [r15 + 0x38], 0
mov dword [r15 + 0x58], 0
lea rbp, [0x005370f4]
mov qword [rsp + 0x20], rax
cmp qword [rsp + 0x20], rdi
je 0x516871
mov r8, rdi
mov rdx, r15
mov rcx, rbx
mov r14d, dword [rdi + 0x14]
call fcn.005165e0
mov rax, qword [rsp + 0x50]
lea rcx, [rax + 4]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesA]
mov rcx, rbx
mov esi, eax
call fcn.004cddea
inc esi
je 0x51685d
mov r8, rdi
mov rdx, r15
mov rcx, rbx
call fcn.005163e0
mov rax, qword [rsp + 0x50]
mov rdx, rbp
lea rcx, [rax + 4]
call sub.msvcrt.dll_fopen
mov rcx, rbx
mov rsi, rax
call fcn.004cddea
test rsi, rsi
je 0x51685d
mov edx, 0x10
mov r8, rsi
mov rcx, rbx
call sub.msvcrt.dll_fgets
mov rcx, rsi
mov qword [rsp + 0x28], rax
call sub.msvcrt.dll_fclose
mov rdx, qword [rsp + 0x28]
test rdx, rdx
je 0x51685d
mov r8, r13
lea rdx, [0x00537467]
mov rcx, rbx
call sub.msvcrt.dll_sscanf
dec eax
jne 0x51685d
cmp r14d, dword [rsp + 0x3c]
jne 0x51685d
mov byte [rdi + 0x18], 1
jmp 0x516868
mov byte [rdi + 0x18], 0
mov eax, dword [rdi + 0x10]
add dword [r15 + 0x58], eax
add rdi, 0x20
jmp 0x5167aa
mov rcx, r15
call fcn.005168a0
mov r13d, dword [r15 + 0x58]
mov rcx, r12
call fcn.004cebe6
mov eax, r13d
add rsp, 0x68
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
pop r15
ret

Function at 0x517260
Capabilities:
Read file on windows

Disassembly:
push r13
push r12
push rsi
push rbx
sub rsp, 0x28
xor r13d, r13d
mov r9, qword [rcx]
mov r12, rdx
mov rsi, rcx
mov edx, r8d
mov r8d, 1
mov rcx, r12
mov rbx, rdx
call sub.msvcrt.dll_fread
dec rax
jne 0x5172a9
mov rcx, qword [rsi + 8]
mov r13b, 1
test rcx, rcx
je 0x5172a9
mov r9d, ebx
mov r8, r12
mov rdx, r12
call fcn.004bf246
mov eax, r13d
add rsp, 0x28
pop rbx
pop rsi
pop r12
pop r13
ret
Function at 0x51bbc0
Capabilities:
Get common file path

Disassembly:
push r14
push r13
push r12
push rbx
sub rsp, 0x278
lea r14, [rcx + 0x78]
mov rbx, rcx
lea r13, [rsp + 0x66]
lea r12, [rsp + 0x16b]
mov rcx, r14
call fcn.004a70a0
mov rdx, r13
mov ecx, 0x105
mov byte [rbx + 0x112c], 0
call qword [sym.imp.KERNEL32.dll_GetTempPathA]
xor r8d, r8d
mov r9, r12
mov rcx, r13
lea rdx, [0x00535ff6]
call qword [sym.imp.KERNEL32.dll_GetTempFileNameA]
lea rcx, [rbx + 0x1110]
mov rdx, r12
call fcn.004ce26a
xor r8d, r8d
xor r9d, r9d
mov edx, 0x1201bf
mov qword [rsp + 0x30], 0
mov rcx, r12
mov dword [rsp + 0x28], pe_nt_image_headers64
mov dword [rsp + 0x20], 2
call qword [sym.imp.KERNEL32.dll_CreateFileA]
xor r8d, r8d
mov qword [rbx + 0x1120], rax
inc rax
je 0x51bd0b
mov dword [rbx + 0x1100], 2
lea r12, [rsp + 0x58]
lea rdx, str.Downloading...
mov dword [rbx + 0x1128], 0
mov rcx, r12
lea r13, [rsp + 0x50]
call fcn.004cdfee
mov rdx, r12
mov rcx, rbx
call fcn.0051ba40
mov rcx, r12
call fcn.004cddea
mov r8, qword [rbx + 0x1120]
lea rdx, str.http:__upgrade.mikrotik.com_routeros_winbox_
mov rcx, r13
mov qword [rsp + 0x48], r8
call fcn.004cdfee
lea rdx, [rbx + 0x1108]
mov rcx, r13
call fcn.004ce162
mov rdx, r13
mov rcx, r12
call fcn.004cdf96
lea rdx, str._winbox64.exe
mov rcx, r12
call fcn.004ce17a
mov r8, qword [rsp + 0x48]
mov rdx, r12
mov rcx, r14
call fcn.004a7472
mov rcx, r12
call fcn.004cddea
mov rcx, r13
call fcn.004cddea
mov r8b, 1
mov eax, r8d
add rsp, 0x278
pop rbx
pop r12
pop r13
pop r14
ret
Function at 0x1400020d0
Capabilities:
Allocate or change rwx memory

Disassembly:
push rbp
push r13
push r15
lea rbp, [rsp - 0x47]
sub rsp, 0xe0
mov rax, qword [0x14000c008]
xor rax, rsp
mov qword [rbp + 0x17], rax
mov r13, rcx
mov r8d, edx
xor edx, edx
mov ecx, 0x1fffff
call qword [sym.imp.KERNEL32.dll_OpenProcess]
mov r15, rax
test rax, rax
je 0x14000232f
cmp byte [0x14000c850], 0
mov qword [rsp + 0x110], rbx
mov qword [rsp + 0xd8], rsi
mov qword [rsp + 0xd0], rdi
mov qword [rsp + 0xc8], r12
mov qword [rsp + 0xc0], r14
je 0x14000214b
mov r14d, 0x832b
mov r12d, r14d
jmp 0x140002157
mov r14d, 0x770e
mov r12d, 0x7458
lea rcx, str.ntdll.dll
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov rcx, rax
lea rdx, str.NtRaiseHardError
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov r9d, 1
mov byte [rbp - 0x69], 0xc3
mov rdx, rax
mov qword [rsp + 0x20], 0
lea r8, [rbp - 0x69]
mov rcx, r15
call qword [sym.imp.KERNEL32.dll_WriteProcessMemory]
xor edx, edx
mov dword [rsp + 0x20], 0x40
mov r9d, 0x3000
mov r8d, 0x1000
mov rcx, r15
call qword [sym.imp.KERNEL32.dll_VirtualAllocEx]
lea rcx, str.kernel32.dll
mov word [rbp + 7], 0xb848
mov rsi, rax
mov word [rbp + 0x11], 0xe0ff
mov word [rbp - 0x59], 0xb848
mov dword [rbp - 0x4f], 0xc69000c6
mov dword [rbp - 0x4b], 0xc6900140
mov dword [rbp - 0x47], 0xc6900240
mov dword [rbp - 0x43], 0xc6900340
mov dword [rbp - 0x3f], 0xc6900440
mov dword [rbp - 0x3b], 0xc6900540
mov dword [rbp - 0x37], 0x48900640
mov byte [rbp - 0x33], 0xb8
mov dword [rbp - 0x2a], 0xc69000c6
mov dword [rbp - 0x26], 0xc6900140
mov dword [rbp - 0x22], 0xc6900240
mov dword [rbp - 0x1e], 0xc6900340
mov dword [rbp - 0x1a], 0xc6900440
mov dword [rbp - 0x16], 0xc6900540
mov dword [rbp - 0x12], 0x48900640
mov byte [rbp - 0xe], 0xb8
mov word [rbp - 5], 0xe0ff
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov rcx, rax
lea rdx, str.VirtualProtect
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
lea rcx, str.kernelbase.dll
mov rdi, rax
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov rcx, rax
lea rdx, str.VirtualProtect
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov r9d, 0x40
mov r8d, 0x1000
mov rbx, rax
mov rdx, rdi
lea rax, [rbp - 0x65]
mov rcx, r15
mov qword [rsp + 0x20], rax
call qword [sym.imp.KERNEL32.dll_VirtualProtectEx]
lea rcx, [r14 + r13]
mov qword [rbp - 0xd], rbx
mov qword [rbp - 0x57], rcx
lea r8, [rbp - 0x59]
xor ebx, ebx
mov qword [rbp + 9], rsi
lea rcx, [r12 + r13]
mov qword [rsp + 0x20], rbx
mov qword [rbp - 0x32], rcx
mov rdx, rsi
mov rcx, r15
lea r9d, [rbx + 0x56]
call qword [sym.imp.KERNEL32.dll_WriteProcessMemory]
lea r9d, [rbx + 0xc]
mov qword [rsp + 0x20], rbx
lea r8, [rbp + 7]
mov rdx, rdi
mov rcx, r15
call qword [sym.imp.KERNEL32.dll_WriteProcessMemory]
mov r9d, dword [rbp - 0x65]
lea rax, [rbp - 0x65]
mov qword [rsp + 0x20], rax
mov r8d, 0x1000
mov rdx, rdi
mov rcx, r15
call qword [sym.imp.KERNEL32.dll_VirtualProtectEx]
mov r14, qword [rsp + 0xc0]
mov r12, qword [rsp + 0xc8]
mov rdi, qword [rsp + 0xd0]
mov rsi, qword [rsp + 0xd8]
mov rbx, qword [rsp + 0x110]
mov rcx, qword [rbp + 0x17]
xor rcx, rsp
call fcn.140006590
add rsp, 0xe0
pop r15
pop r13
pop rbp
ret
Function at 0x140002350
Capabilities:
Allocate or change rwx memory

Disassembly:
push rbp
push r14
push r15
lea rbp, [rsp - 0x47]
sub rsp, 0xd0
mov rax, qword [0x14000c008]
xor rax, rsp
mov qword [rbp + 0x27], rax
mov r15, rcx
mov r8d, edx
xor edx, edx
mov ecx, 0x1fffff
call qword [sym.imp.KERNEL32.dll_OpenProcess]
mov r14, rax
test rax, rax
je 0x14000257f
mov qword [rsp + 0x100], rbx
lea rcx, str.ntdll.dll
mov qword [rsp + 0xc8], rsi
mov qword [rsp + 0xc0], rdi
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov rcx, rax
lea rdx, str.NtRaiseHardError
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov r9d, 1
mov byte [rbp - 0x59], 0xc3
mov rdx, rax
mov qword [rsp + 0x20], 0
lea r8, [rbp - 0x59]
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_WriteProcessMemory]
xor edx, edx
mov dword [rsp + 0x20], 0x40
mov r9d, 0x3000
mov r8d, 0x1000
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_VirtualAllocEx]
lea rcx, str.kernel32.dll
mov word [rbp + 0x17], 0xb848
mov rsi, rax
mov word [rbp + 0x21], 0xe0ff
mov word [rbp - 0x49], 0xb848
mov dword [rbp - 0x3f], 0xc69000c6
mov dword [rbp - 0x3b], 0xc6900140
mov dword [rbp - 0x37], 0xc6900240
mov dword [rbp - 0x33], 0xc6900340
mov dword [rbp - 0x2f], 0xc6900440
mov dword [rbp - 0x2b], 0xc6900540
mov dword [rbp - 0x27], 0x48900640
mov byte [rbp - 0x23], 0xb8
mov dword [rbp - 0x1a], 0xc69000c6
mov dword [rbp - 0x16], 0xc6900140
mov dword [rbp - 0x12], 0xc6900240
mov dword [rbp - 0xe], 0xc6900340
mov dword [rbp - 0xa], 0xc6900440
mov dword [rbp - 6], 0xc6900540
mov dword [rbp - 2], 0x48900640
mov byte [rbp + 2], 0xb8
mov word [rbp + 0xb], 0xe0ff
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov rcx, rax
lea rdx, str.VirtualProtect
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
lea rcx, str.kernelbase.dll
mov rdi, rax
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov rcx, rax
lea rdx, str.VirtualProtect
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov r9d, 0x40
mov r8d, 0x1000
mov rbx, rax
mov rdx, rdi
lea rax, [rbp - 0x55]
mov rcx, r14
mov qword [rsp + 0x20], rax
call qword [sym.imp.KERNEL32.dll_VirtualProtectEx]
lea rcx, [r15 + 0x19af9]
mov qword [rbp + 3], rbx
mov qword [rbp - 0x47], rcx
lea r8, [rbp - 0x49]
lea rcx, [r15 + 0x198bc]
mov qword [rbp + 0x19], rsi
mov qword [rbp - 0x22], rcx
mov r9d, 0x56
mov rcx, r14
mov qword [rsp + 0x20], 0
mov rdx, rsi
call qword [sym.imp.KERNEL32.dll_WriteProcessMemory]
mov r9d, 0xc
mov qword [rsp + 0x20], 0
lea r8, [rbp + 0x17]
mov rdx, rdi
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_WriteProcessMemory]
lea rax, [rbp - 0x55]
mov qword [rsp + 0x20], rax
mov r9d, dword [rbp - 0x55]
mov r8d, 0x1000
mov rdx, rdi
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_VirtualProtectEx]
mov rdi, qword [rsp + 0xc0]
mov rsi, qword [rsp + 0xc8]
mov rbx, qword [rsp + 0x100]
mov rcx, qword [rbp + 0x27]
xor rcx, rsp
call fcn.140006590
add rsp, 0xd0
pop r15
pop r14
pop rbp
ret
Function at 0x1400025a0
Capabilities:
Allocate or change rwx memory

Disassembly:
push rbp
push r14
push r15
lea rbp, [rsp - 0x47]
sub rsp, 0xa0
mov rax, qword [0x14000c008]
xor rax, rsp
mov qword [rbp + 0x27], rax
mov r15, rcx
mov r8d, edx
xor edx, edx
mov ecx, 0x1fffff
call qword [sym.imp.KERNEL32.dll_OpenProcess]
mov r14, rax
test rax, rax
je 0x14000278f
mov qword [rsp + 0xd0], rbx
lea rcx, str.ntdll.dll
mov qword [rsp + 0x98], rsi
mov qword [rsp + 0x90], rdi
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov rcx, rax
lea rdx, str.NtRaiseHardError
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov r9d, 1
mov byte [rbp - 0x29], 0xc3
mov rdx, rax
mov qword [rsp + 0x20], 0
lea r8, [rbp - 0x29]
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_WriteProcessMemory]
xor edx, edx
mov dword [rsp + 0x20], 0x40
mov r9d, 0x3000
mov r8d, 0x1000
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_VirtualAllocEx]
lea rcx, str.kernel32.dll
mov word [rbp + 0x17], 0xb848
mov rsi, rax
mov word [rbp + 0x21], 0xe0ff
mov word [rbp - 0x21], 0xb848
mov dword [rbp - 0x17], 0xc69000c6
mov dword [rbp - 0x13], 0xc6900140
mov dword [rbp - 0xf], 0xc6900240
mov dword [rbp - 0xb], 0xc6900340
mov dword [rbp - 7], 0xc6900440
mov dword [rbp - 3], 0xc6900540
mov dword [rbp + 1], 0x48900640
mov byte [rbp + 5], 0xb8
mov word [rbp + 0xe], 0xe0ff
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov rcx, rax
lea rdx, str.VirtualProtect
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
lea rcx, str.kernelbase.dll
mov rdi, rax
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov rcx, rax
lea rdx, str.VirtualProtect
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov r9d, 0x40
mov r8d, 0x1000
mov rbx, rax
mov rdx, rdi
lea rax, [rbp - 0x25]
mov rcx, r14
mov qword [rsp + 0x20], rax
call qword [sym.imp.KERNEL32.dll_VirtualProtectEx]
lea rcx, [r15 + 0x8e341]
mov qword [rbp + 6], rbx
mov qword [rbp - 0x1f], rcx
lea r8, [rbp - 0x21]
mov rcx, r14
mov qword [rbp + 0x19], rsi
mov r9d, 0x31
mov qword [rsp + 0x20], 0
mov rdx, rsi
call qword [sym.imp.KERNEL32.dll_WriteProcessMemory]
mov r9d, 0xc
mov qword [rsp + 0x20], 0
lea r8, [rbp + 0x17]
mov rdx, rdi
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_WriteProcessMemory]
mov r9d, dword [rbp - 0x25]
lea rax, [rbp - 0x25]
mov r8d, 0x1000
mov qword [rsp + 0x20], rax
mov rdx, rdi
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_VirtualProtectEx]
mov rdi, qword [rsp + 0x90]
mov rsi, qword [rsp + 0x98]
mov rbx, qword [rsp + 0xd0]
mov rcx, qword [rbp + 0x27]
xor rcx, rsp
call fcn.140006590
add rsp, 0xa0
pop r15
pop r14
pop rbp
ret
Function at 0x140005ebc
Capabilities:
Get geographical location

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x40
mov rdi, rdx
lea r8, [rsp + 0x60]
mov ebx, ecx
mov edx, 0x20000001
lea rcx, str._x_sys_default_locale
mov r9d, 2
call qword [sym.imp.KERNEL32.dll_GetLocaleInfoEx]
mov r8d, ebx
mov ecx, 0x1300
neg eax
sbb r9d, r9d
and qword [rsp + 0x30], 0
and r9d, dword [rsp + 0x60]
xor edx, edx
and dword [rsp + 0x28], 0
mov dword [rsp + 0x60], r9d
mov qword [rsp + 0x20], rdi
call qword [sym.imp.KERNEL32.dll_FormatMessageA]
mov edx, eax
test eax, eax
je 0x140005f40
mov r8, qword [rdi]
dec r8
add r8, rdx
movzx ecx, byte [r8]
lea rax, [0x140008450]
cmp byte [rcx + rax], 0
je 0x140005f40
dec r8
sub rdx, 1
jne 0x140005f26
mov rbx, qword [rsp + 0x50]
mov rax, rdx
add rsp, 0x40
pop rdi
ret

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

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
mov rdi, rcx
mov rdx, rcx
mov ecx, 0x105
call fcn.140005f58
mov ebx, eax
test eax, eax
jne 0x1400064b4
and dword [rsp + 0x38], eax
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rsp + 0x3c], eax
jmp 0x140006517
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x14000650e
test al, 0x10
je 0x14000650e
bt eax, 0xa
jae 0x140006507
mov r9d, 0x2000000
lea rcx, [rsp + 0x38]
mov r8d, 0x80
mov rdx, rdi
call fcn.140006528
mov rcx, qword [rsp + 0x38]
mov edi, eax
cmp rcx, 0xffffffffffffffff
je 0x140006503
call qword [sym.imp.KERNEL32.dll_CloseHandle]
test eax, eax
jne 0x140006503
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_terminate]
int3
test edi, edi
jne 0x14000650e
and dword [rsp + 0x3c], 0
jmp 0x140006513
or dword [rsp + 0x3c], 0xffffffff
mov dword [rsp + 0x38], ebx
mov rax, qword [rsp + 0x38]
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret

Function at 0x140006fa0
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x140006fea
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x140006fea
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x140006fea
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x140006fea
cmp dword [rcx + 0x84], 0xe
jbe 0x140006fea
cmp dword [rcx + 0xf8], 0
setne al
jmp 0x140006fec
xor al, al
add rsp, 0x28
ret
Function at 0x14000e050
Capabilities:
Get file attributes

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
push r14
push r15
sub rsp, 0x30
or edi, 0xffffffff
mov rbp, r8
mov r14, rdx
mov rsi, rcx
test rdx, rdx
je 0x14000e0df
mov rcx, rdx
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
nop dword [rax + rax]
mov ebx, eax
cmp eax, edi
je 0x14000e098
shr ebx, 4
not ebx
and ebx, 1
jmp 0x14000e09a
xor ebx, ebx
xor ecx, ecx
call fcn.140025d50
xor ecx, ecx
call fcn.140025d50
test ebx, ebx
jne 0x14000e0df
mov rax, qword [rsi]
mov ebx, 0x80070057
mov rcx, rsi
mov edi, ebx
mov rax, qword [rax + 0x18]
call qword [str.PN_t_]
xor ecx, ecx
test rax, rax
je 0x14000e25e
mov dword [rsp + 0x28], ebx
mov dword [rsp + 0x20], 0x1d2
jmp 0x14000e238
test rbp, rbp
je 0x14000e148
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
nop dword [rax + rax]
mov ebx, eax
cmp eax, edi
je 0x14000e101
shr ebx, 4
and ebx, 1
jmp 0x14000e103
xor ebx, ebx
xor ecx, ecx
call fcn.140025d50
xor ecx, ecx
call fcn.140025d50
test ebx, ebx
jne 0x14000e148
mov rax, qword [rsi]
mov ebx, 0x80070057
mov rcx, rsi
mov edi, ebx
mov rax, qword [rax + 0x18]
call qword [str.PN_t_]
xor ecx, ecx
test rax, rax
je 0x14000e25e
mov dword [rsp + 0x28], ebx
mov dword [rsp + 0x20], 0x1d8
jmp 0x14000e238
lea r15, [rsi + 0x90]
mov rbx, qword [r15]
test rbx, rbx
je 0x14000e183
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
nop dword [rax + rax]
lea r8, [rbx - 4]
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_HeapFree]
nop dword [rax + rax]
xor ecx, ecx
call fcn.140025d50
and qword [r15], 0
xor edi, edi
test r14, r14
je 0x14000e1c4
mov rdx, r15
mov rcx, r14
call fcn.140024bb8
mov edi, eax
test eax, eax
jns 0x14000e1c4
mov rcx, qword [rsi]
mov rax, qword [rcx + 0x18]
mov rcx, rsi
call qword [str.PN_t_]
xor ecx, ecx
test rax, rax
je 0x14000e25e
mov dword [rsp + 0x28], edi
mov dword [rsp + 0x20], 0x1de
jmp 0x14000e238
lea r14, [rsi + 0x98]
mov rbx, qword [r14]
test rbx, rbx
je 0x14000e1ff
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
nop dword [rax + rax]
lea r8, [rbx - 4]
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_HeapFree]
nop dword [rax + rax]
xor ecx, ecx
call fcn.140025d50
and qword [r14], 0
test rbp, rbp
je 0x14000e263
mov rdx, r14
mov rcx, rbp
call fcn.140024bb8
mov edi, eax
test eax, eax
jns 0x14000e263
mov rax, qword [rsi]
mov rcx, rsi
mov rax, qword [rax + 0x18]
call qword [str.PN_t_]
xor ecx, ecx
test rax, rax
je 0x14000e25e
mov dword [rsp + 0x28], edi
mov dword [rsp + 0x20], 0x1e4
lea r9, str.CSetupHost::SetAutomationPaths
mov edx, 4
lea r8, str._s__d_:_Result__0x_X
mov rcx, rax
call fcn.14002374c
mov ecx, eax
test eax, eax
jns 0x14000e25e
call fcn.140025d30
call fcn.140025d50
mov ecx, edi
call fcn.140025d50
mov rbx, qword [rsp + 0x50]
mov eax, edi
mov rbp, qword [rsp + 0x58]
mov rsi, qword [rsp + 0x60]
add rsp, 0x30
pop r15
pop r14
pop rdi
ret
Function at 0x140022124
Capabilities:
Shutdown system

Disassembly:
mov rax, rsp
mov dword [rax + 8], ecx
push rdi
sub rsp, 0x40
mov qword [rax - 0x18], 0xfffffffffffffffe
mov qword [rax + 0x10], rbx
mov ebx, edx
and qword [rax + 0x18], 0
mov dword [rax + 8], FDICopy
lea rdx, [rax + 8]
lea rcx, [rax + 0x18]
call fcn.140027e14
mov edi, eax
test eax, eax
jns 0x140022160
mov ecx, eax
jmp 0x1400221bc
mov eax, 0x80030002
test ebx, ebx
cmovne eax, ebx
mov dword [rsp + 0x28], eax
mov r9d, 1
mov dword [rsp + 0x20], r9d
xor r8d, r8d
lea rdx, str.WinDLP_System_Reboot
xor ecx, ecx
call qword [sym.imp.ADVAPI32.dll_InitiateSystemShutdownExW]
nop dword [rax + rax]
test eax, eax
jne 0x1400221c1
call qword [sym.imp.KERNEL32.dll_GetLastError]
nop dword [rax + rax]
test eax, eax
jne 0x1400221ac
mov edi, 0x80004005
jmp 0x1400221ba
movzx edi, ax
or edi, 0x80070000
test eax, eax
cmovle edi, eax
mov ecx, edi
call fcn.140025d30
mov ecx, edi
call fcn.140025d50
nop
mov rcx, qword [rsp + 0x60]
test rcx, rcx
je 0x14002220c
lea rbx, [rcx - 8]
lea r9, [0x1400285d0]
mov r8, qword [rbx]
mov edx, 8
call fcn.14009461c
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
nop dword [rax + rax]
mov rcx, rax
mov r8, rbx
xor edx, edx
call qword [sym.imp.KERNEL32.dll_HeapFree]
nop dword [rax + rax]
nop
mov eax, edi
mov rbx, qword [rsp + 0x58]
add rsp, 0x40
pop rdi
ret
Function at 0x140022484
Capabilities:
Query environment variable

Disassembly:
mov qword [rsp + 0x10], rbx
push rsi
push rdi
push r14
sub rsp, 0x20
xor ebx, ebx
xor edi, edi
mov qword [rsp + 0x50], rbx
mov r14, rdx
mov rsi, rcx
test rcx, rcx
jne 0x1400224b6
mov ecx, 0x80070057
mov esi, ecx
call fcn.140025d30
jmp 0x1400225a6
test r14, r14
je 0x1400224a5
xor ecx, ecx
call fcn.140025d50
xor ecx, ecx
call fcn.140025d50
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
nop dword [rax + rax]
xor edx, edx
mov r8d, 0x820
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
nop dword [rax + rax]
mov rdi, rax
test rax, rax
jne 0x1400224fd
mov esi, 0x8007000e
mov ecx, esi
jmp 0x1400224ac
xor edx, edx
mov r8d, 0x820
mov rcx, rdi
call sub.msvcrt.dll_memset
mov r8d, 0x410
mov rdx, rdi
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
nop dword [rax + rax]
test eax, eax
jne 0x140022550
call qword [sym.imp.KERNEL32.dll_GetLastError]
nop dword [rax + rax]
test eax, eax
jne 0x140022540
mov esi, 0x80004005
jmp 0x1400224f9
movzx esi, ax
or esi, 0x80070000
test eax, eax
cmovle esi, eax
jmp 0x1400224f9
lea rdx, [rsp + 0x40]
mov rcx, rdi
call fcn.140029fcc
mov esi, eax
test eax, eax
jns 0x14002256c
mov ecx, eax
call fcn.140025d30
jmp 0x14002258f
mov edx, dword [rsp + 0x40]
lea r8, [rsp + 0x50]
mov rcx, rdi
call fcn.140028308
mov esi, eax
test eax, eax
jns 0x14002258a
mov ecx, eax
call fcn.140025d30
mov rbx, qword [rsp + 0x50]
mov ecx, esi
call fcn.140025d50
test esi, esi
js 0x1400224f9
mov rax, rbx
xor ebx, ebx
mov qword [r14], rax
mov ecx, esi
call fcn.140025d50
test rdi, rdi
je 0x1400225d2
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
nop dword [rax + rax]
mov r8, rdi
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_HeapFree]
nop dword [rax + rax]
test rbx, rbx
je 0x1400225ff
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
nop dword [rax + rax]
lea r8, [rbx - 4]
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_HeapFree]
nop dword [rax + rax]
xor ecx, ecx
call fcn.140025d50
mov rbx, qword [rsp + 0x48]
mov eax, esi
add rsp, 0x20
pop r14
pop rdi
pop rsi
ret