joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1400150b0
Capabilities:
Check if file exists
Get file attributes
Terminate process

Disassembly:
push r15
push r14
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x90
movaps xmmword [rsp + 0x80], xmm8
movaps xmmword [rsp + 0x70], xmm7
movaps xmmword [rsp + 0x60], xmm6
mov rcx, qword [0x1400310a8]
test rcx, rcx
je 0x14001510b
mov edx, 0x1388
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
je 0x1400150fe
mov rcx, qword [0x1400310a8]
xor edx, edx
call qword [sym.imp.KERNEL32.dll_TerminateProcess]
mov rcx, qword [0x1400310a8]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
cmp byte [0x1400338e0], 1
jne 0x1400151b7
mov rbx, qword [0x140028718]
mov qword [rsp + 0x50], rbx
movups xmm6, xmmword [0x140028708]
movaps xmmword [rsp + 0x40], xmm6
movups xmm7, xmmword [0x1400286f8]
movaps xmmword [rsp + 0x30], xmm7
movups xmm8, xmmword [0x1400286e8]
movaps xmmword [rsp + 0x20], xmm8
lea rsi, [rsp + 0x20]
mov rcx, rsi
call qword [sym.imp.SHELL32.dll_SHFileOperationW]
mov ebp, 0x14
lea rdi, [0x1400310c0]
mov r14, qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov r15, qword [sym.imp.KERNEL32.dll_Sleep]
mov r12, qword [sym.imp.SHELL32.dll_SHFileOperationW]
nop dword [rax]
mov rcx, rdi
call r14
cmp eax, 0xffffffff
je 0x1400151b7
and eax, 0x10
je 0x1400151b7
mov ecx, 0x64
call r15
mov qword [rsp + 0x50], rbx
movaps xmmword [rsp + 0x40], xmm6
movaps xmmword [rsp + 0x30], xmm7
movaps xmmword [rsp + 0x20], xmm8
mov rcx, rsi
call r12
dec ebp
jne 0x140015180
movaps xmm6, xmmword [rsp + 0x60]
movaps xmm7, xmmword [rsp + 0x70]
movaps xmm8, xmmword [rsp + 0x80]
add rsp, 0x90
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r14
pop r15
ret
Function at 0x14001b970
Capabilities:
Create directory

Disassembly:
push rsi
push rdi
push rbx
mov eax, 0x2020
call fcn.14001d0f0
sub rsp, rax
mov rsi, rcx
mov eax, dword [0x1400310b0]
test eax, eax
je 0x14001b993
test eax, eax
jg 0x14001b9db
jmp 0x14001ba12
lea rdx, str.HOME
lea rcx, [rsp + 0x20]
mov r8d, 0x1000
call fcn.140014570
test al, al
je 0x14001ba8a
lea rcx, [rsp + 0x20]
call sub.msvcrt.dll__wcsdup
movsxd rcx, dword [0x1400310b0]
lea rdx, [0x140036120]
mov qword [rdx + rcx*8], rax
lea eax, [rcx + 1]
mov dword [0x1400310b0], eax
test eax, eax
jle 0x14001ba12
lea rdi, [0x140036120]
xor ebx, ebx
nop word cs:[rax + rax]
mov rdx, qword [rdi]
mov rcx, rsi
call sub.msvcrt.dll_wcscmp
test eax, eax
je 0x14001ba7d
inc rbx
movsxd rax, dword [0x1400310b0]
add rdi, 8
cmp rbx, rax
jl 0x14001b9f0
mov rcx, rsi
call sub.msvcrt.dll_wcslen
cmp rax, 2
jne 0x14001ba29
mov al, 1
cmp word [rsi + 2], 0x3a
je 0x14001ba7f
mov rcx, rsi
xor edx, edx
call qword [sym.imp.KERNEL32.dll_CreateDirectoryW]
mov ecx, eax
mov al, 1
test ecx, ecx
jne 0x14001ba4a
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
sete al
test al, al
je 0x14001ba7f
cmp dword [0x1400310b0], 0x3ff
jg 0x14001ba7f
mov rcx, rsi
call sub.msvcrt.dll__wcsdup
movsxd rcx, dword [0x1400310b0]
lea rdx, [0x140036120]
mov qword [rdx + rcx*8], rax
lea eax, [rcx + 1]
mov dword [0x1400310b0], eax
mov al, 1
add rsp, 0x2020
pop rbx
pop rdi
pop rsi
ret
lea rcx, str.HOME
call fcn.140015cf0
int3

Function at 0x14001bdd0
Capabilities:
Write file on windows

Disassembly:
push rbp
push rbx
sub rsp, 0x38
lea rbp, [rsp + 0x30]
mov qword [rbp + 0x20], rcx
mov qword [rbp + 0x28], rdx
mov qword [rbp + 0x30], r8
mov qword [rbp + 0x38], r9
lea rax, [rbp + 0x28]
mov qword [rbp - 8], rax
mov ecx, 2
call fcn.140022d20
mov r9, rax
mov r8d, 0x1b
mov edx, 1
lea rax, str.Mingw_w64_runtime_failure:_n
mov rcx, rax
call sub.msvcrt.dll_fwrite
mov rbx, qword [rbp - 8]
mov ecx, 2
call fcn.140022d20
mov rcx, rax
mov rax, qword [rbp + 0x20]
mov r8, rbx
mov rdx, rax
call sub.msvcrt.dll_vfprintf
call sub.msvcrt.dll_abort
nop

Function at 0x14001caa2
Capabilities:
Get thread local storage value

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x30
mov eax, dword [0x1400401e8]
test eax, eax
je 0x14001cb3a
lea rax, [0x1400401c0]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
call rax
mov rax, qword [0x1400401f0]
mov qword [rbp - 8], rax
jmp 0x14001cb1e
mov rax, qword [rbp - 8]
mov eax, dword [rax]
mov ecx, eax
mov rax, qword [sym.imp.KERNEL32.dll_TlsGetValue]
call rax
mov qword [rbp - 0x10], rax
mov rax, qword [sym.imp.KERNEL32.dll_GetLastError]
call rax
test eax, eax
jne 0x14001cb12
cmp qword [rbp - 0x10], 0
je 0x14001cb12
mov rax, qword [rbp - 8]
mov rdx, qword [rax + 8]
mov rax, qword [rbp - 0x10]
mov rcx, rax
call rdx
mov rax, qword [rbp - 8]
mov rax, qword [rax + 0x10]
mov qword [rbp - 8], rax
cmp qword [rbp - 8], 0
jne 0x14001cad8
lea rax, [0x1400401c0]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
call rax
jmp 0x14001cb3b
nop
add rsp, 0x30
pop rbp
ret
Function at 0x14001cc40
Capabilities:
Parse pe header

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x20
mov qword [rbp + 0x10], rcx
mov rax, qword [rbp + 0x10]
mov qword [rbp - 8], rax
mov rax, qword [rbp - 8]
movzx eax, word [rax]
cmp ax, 0x5a4d
je 0x14001cc68
mov eax, 0
jmp 0x14001ccb6
mov rax, qword [rbp - 8]
mov eax, dword [rax + 0x3c]
movsxd rdx, eax
mov rax, qword [rbp - 8]
add rax, rdx
mov qword [rbp - 0x10], rax
mov rax, qword [rbp - 0x10]
mov eax, dword [rax]
cmp eax, 0x4550
je 0x14001cc91
mov eax, 0
jmp 0x14001ccb6
mov rax, qword [rbp - 0x10]
add rax, 0x18
mov qword [rbp - 0x18], rax
mov rax, qword [rbp - 0x18]
movzx eax, word [rax]
cmp ax, 0x20b
je 0x14001ccb1
mov eax, 0
jmp 0x14001ccb6
mov eax, 1
add rsp, 0x20
pop rbp
ret

Function at 0x14001ccbc
Capabilities:
Enumerate pe sections

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x20
mov qword [rbp + 0x10], rcx
mov qword [rbp + 0x18], rdx
mov rax, qword [rbp + 0x10]
mov eax, dword [rax + 0x3c]
movsxd rdx, eax
mov rax, qword [rbp + 0x10]
add rax, rdx
mov qword [rbp - 0x18], rax
mov dword [rbp - 0xc], 0
mov rax, qword [rbp - 0x18]
movzx eax, word [rax + 0x14]
movzx edx, ax
mov rax, qword [rbp - 0x18]
add rax, rdx
add rax, 0x18
mov qword [rbp - 8], rax
jmp 0x14001cd3a
mov rax, qword [rbp - 8]
mov eax, dword [rax + 0xc]
mov eax, eax
cmp qword [rbp + 0x18], rax
jb 0x14001cd31
mov rax, qword [rbp - 8]
mov edx, dword [rax + 0xc]
mov rax, qword [rbp - 8]
mov eax, dword [rax + 8]
add eax, edx
mov eax, eax
cmp qword [rbp + 0x18], rax
jae 0x14001cd31
mov rax, qword [rbp - 8]
jmp 0x14001cd4f
add dword [rbp - 0xc], 1
add qword [rbp - 8], 0x28
mov rax, qword [rbp - 0x18]
movzx eax, word [rax + 6]
movzx eax, ax
cmp dword [rbp - 0xc], eax
jb 0x14001cd04
mov eax, 0
add rsp, 0x20
pop rbp
ret
Function at 0x140004780
Capabilities:
Create process on windows

Disassembly:
mov r11, rsp
mov qword [r11 + 8], rbx
mov qword [r11 + 0x10], rbp
mov qword [r11 + 0x18], rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x90
xor eax, eax
xorps xmm0, xmm0
mov dword [rsp + 0x54], eax
mov rdi, rdx
xor edx, edx
movaps xmmword [rsp + 0x60], xmm0
cmp qword [rcx + 0x18], 0xf
movzx r13d, r8b
movaps xmmword [rsp + 0x70], xmm0
mov rsi, rcx
mov qword [r11 - 0x38], rax
lea rax, str.runas
mov qword [rsp + 0x30], rax
mov dword [rsp + 0x20], 0x70
mov dword [rsp + 0x24], 0x40
mov qword [rsp + 0x28], rdx
jbe 0x1400047f3
mov rcx, qword [rcx]
lea rax, [rsi + 0x18]
jmp 0x1400047f7
lea rax, [rcx + 0x18]
cmp qword [rdi + 0x18], 0xf
lea rbx, [rdi + 0x18]
mov qword [rsp + 0x38], rcx
lea r14, [rsi + 0x18]
mov rcx, rdi
jbe 0x140004814
mov rcx, qword [rdi]
mov r14, rax
lea rax, [0x1400c623a]
mov qword [rsp + 0x40], rcx
mov qword [rsp + 0x48], rax
lea rcx, [rsp + 0x20]
movzx eax, r9b
xor eax, 1
mov qword [rsp + 0x58], rdx
mov dword [rsp + 0x50], eax
mov qword [rsp + 0x88], rdx
call qword [sym.imp.SHELL32.dll_ShellExecuteExA]
mov r12d, eax
mov r15, r14
test eax, eax
je 0x140004880
test r13b, r13b
je 0x140004872
mov rcx, qword [rsp + 0x88]
mov edx, 0xffffffff
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
lea r15, [rsi + 0x18]
lea rbx, [rdi + 0x18]
mov rcx, qword [rsp + 0x88]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rdx, qword [rsi + 0x18]
mov rbp, rbx
cmp rdx, 0xf
jbe 0x1400048c4
mov rcx, qword [rsi]
inc rdx
cmp rdx, 0x1000
jb 0x1400048bc
mov r8, qword [rcx - 8]
add rdx, 0x27
sub rcx, r8
lea rax, [rcx - 8]
cmp rax, 0x1f
ja 0x14000493f
mov rcx, r8
lea rbp, [rdi + 0x18]
call fcn.1400820f8
mov r14, r15
xor r15d, r15d
mov qword [r14], 0xf
mov qword [rsi + 0x10], r15
mov byte [rsi], r15b
mov rdx, qword [rbx]
cmp rdx, 0xf
jbe 0x14000490d
mov rcx, qword [rdi]
inc rdx
cmp rdx, 0x1000
jb 0x140004905
mov r8, qword [rcx - 8]
add rdx, 0x27
sub rcx, r8
lea rax, [rcx - 8]
cmp rax, 0x1f
ja 0x14000493f
mov rcx, r8
call fcn.1400820f8
mov rbx, rbp
lea r11, [rsp + 0x90]
mov qword [rbx], 0xf
mov rbx, qword [r11 + 0x30]
mov eax, r12d
mov rbp, qword [r11 + 0x38]
mov rsi, qword [r11 + 0x40]
mov qword [rdi + 0x10], r15
mov byte [rdi], r15b
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rdi
ret
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
Function at 0x140005550
Capabilities:
Encode data using xor
Generate random numbers using a mersenne twister

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 8], rcx
push rbp
push rsi
push rdi
mov eax, 0x13e0
call fcn.140082470
sub rsp, rax
mov rdi, rdx
mov rbx, rcx
xor ebp, ebp
mov dword [rsp + 0x20], ebp
xorps xmm0, xmm0
movups xmmword [rsp + 0x28], xmm0
lea ecx, [rbp + 0x40]
call fcn.1400820bc
mov rsi, rax
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x38], 0x34
mov qword [rsp + 0x40], 0x3f
movups xmm0, xmmword [str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz]
movups xmmword [rax], xmm0
movups xmm1, xmmword [0x1400c62f0]
movups xmmword [rax + 0x10], xmm1
movups xmm0, xmmword [0x1400c6300]
movups xmmword [rax + 0x20], xmm0
mov ecx, dword [0x1400c6310]
mov dword [rax + 0x30], ecx
mov byte [rax + 0x34], bpl
call sub.MSVCP140.dll_unsigned_int___cdecl_std::_Random_device_void_
mov dword [rsp + 0x13d4], 0xffffffff
mov dword [rsp + 0x54], eax
lea edx, [rbp + 1]
nop dword [rax]
nop dword [rax + rax]
mov ecx, eax
shr ecx, 0x1e
xor ecx, eax
imul eax, ecx, 0x6c078965
add eax, edx
mov dword [rsp + rdx*4 + 0x54], eax
inc rdx
cmp rdx, 0x270
jb 0x1400055f0
mov dword [rsp + 0x50], 0x270
xorps xmm0, xmm0
movups xmmword [rbx], xmm0
mov qword [rbx + 0x10], rbp
mov qword [rbx + 0x18], 0xf
mov byte [rbx], 0
mov dword [rsp + 0x20], 1
test rdi, rdi
je 0x1400056d9
lea rax, [rsp + 0x50]
mov qword [rsp + 0x1410], rax
nop word [rax + rax]
lea rcx, [rsp + 0x1410]
call fcn.1400057f0
mov ecx, eax
imul rax, rcx, 0x34
cmp eax, 0x2f
ja 0x140005688
nop dword [rax + rax]
lea rcx, [rsp + 0x1410]
call fcn.1400057f0
mov ecx, eax
imul rax, rcx, 0x34
cmp eax, 0x30
jb 0x140005670
shr rax, 0x20
movsxd rcx, eax
movzx r9d, byte [rcx + rsi]
mov rcx, qword [rbx + 0x10]
mov rdx, qword [rbx + 0x18]
cmp rcx, rdx
jae 0x1400056c0
lea rax, [rcx + 1]
mov qword [rbx + 0x10], rax
mov rax, rbx
cmp rdx, 0xf
jbe 0x1400056b5
mov rax, qword [rbx]
mov byte [rax + rcx], r9b
mov byte [rax + rcx + 1], 0
jmp 0x1400056cf
xor r8d, r8d
lea edx, [r8 + 1]
mov rcx, rbx
call fcn.140003200
sub rdi, 1
jne 0x140005650
mov edx, 0x40
mov rcx, rsi
call fcn.1400820f8
mov rax, rbx
mov rbx, qword [rsp + 0x1408]
add rsp, 0x13e0
pop rdi
pop rsi
pop rbp
ret
Function at 0x1400441d0
Capabilities:
Set registry value

Disassembly:
sub rsp, 0x78
mov rax, rdx
mov dword [rsp + 0x80], 1
mov rdx, qword [rcx]
cmp qword [rdx + 0x18], 0xf
jbe 0x1400441ef
mov rdx, qword [rdx]
mov dword [rsp + 0x28], 4
lea rcx, [rsp + 0x80]
mov qword [rsp + 0x20], rcx
mov r9d, 4
xor r8d, r8d
mov rcx, rax
call qword [sym.imp.ADVAPI32.dll_RegSetValueExA]
lea rax, [rsp + 0x50]
mov qword [rsp + 0x90], rax
xorps xmm0, xmm0
movups xmmword [rsp + 0x50], xmm0
xor eax, eax
mov qword [rsp + 0x60], rax
mov qword [rsp + 0x68], rax
lea ecx, [rax + 0x40]
call fcn.1400820bc
mov rcx, rax
mov qword [rsp + 0x50], rax
mov qword [rsp + 0x60], 0x3d
mov qword [rsp + 0x68], 0x3f
movups xmm0, xmmword [str._C_Get_Service__Name_WpnUserService__Restart_Service__Force]
movups xmmword [rax], xmm0
movups xmm1, xmmword [0x1400ce3f8]
movups xmmword [rax + 0x10], xmm1
movups xmm0, xmmword [0x1400ce408]
movups xmmword [rax + 0x20], xmm0
movsd xmm0, qword [0x1400ce418]
movsd qword [rax + 0x30], xmm0
mov eax, dword [0x1400ce420]
mov dword [rcx + 0x38], eax
movzx eax, byte [0x1400ce424]
mov byte [rcx + 0x3c], al
mov byte [rcx + 0x3d], 0
mov word [rsp + 0x3e], 0
mov qword [rsp + 0x40], 0xe
mov qword [rsp + 0x48], 0xf
movsd xmm0, qword [str.powershell.exe]
movsd qword [rsp + 0x30], xmm0
mov eax, dword [0x1400ce430]
mov dword [rsp + 0x38], eax
movzx eax, word [0x1400ce434]
mov word [rsp + 0x3c], ax
xor r9d, r9d
mov r8b, 1
lea rdx, [rsp + 0x50]
lea rcx, [rsp + 0x30]
call fcn.140004780
add rsp, 0x78
ret
Function at 0x140044300
Capabilities:
Query or enumerate registry value
Set registry value

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x60
mov dword [rbp + 0x20], 4
mov dword [rbp + 0x28], 4
xorps xmm0, xmm0
movups xmmword [rbp - 0x20], xmm0
movdqa xmm1, xmmword [0x1400ce4d0]
movdqu xmmword [rbp - 0x10], xmm1
movsd xmm0, qword [str.ToastEnabled]
movsd qword [rbp - 0x20], xmm0
mov eax, dword [0x1400ce440]
mov dword [rbp - 0x18], eax
mov byte [rbp - 0x14], 0
lea rax, [rbp - 0x20]
mov qword [rbp - 0x28], rax
lea rax, [rbp - 0x30]
mov qword [rsp + 0x20], rax
mov r9d, 0xf003f
xor r8d, r8d
lea rdx, str.SOFTWAREMicrosoftWindowsCurrentVersionPushNotifications
mov rcx, 0xffffffff80000001
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
js 0x14004441d
lea rdx, [rbp - 0x20]
cmp qword [rbp - 8], 0xf
cmova rdx, qword [rbp - 0x20]
lea rax, [rbp + 0x20]
mov qword [rsp + 0x28], rax
lea rax, [rbp + 0x18]
mov qword [rsp + 0x20], rax
lea r9, [rbp + 0x28]
xor r8d, r8d
mov rcx, qword [rbp - 0x30]
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov eax, dword [rbp + 0x18]
test eax, eax
jne 0x1400443cd
mov rdx, qword [rbp - 0x30]
lea rcx, [rbp - 0x28]
call fcn.1400441d0
mov rcx, qword [rbp - 0x30]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [rbp + 0x18]
cmp eax, 1
jbe 0x14004444d
lea rdx, [rbp - 0x20]
cmp qword [rbp - 8], 0xf
cmova rdx, qword [rbp - 0x20]
mov dword [rsp + 0x28], 4
mov qword [rsp + 0x20], rax
mov r9d, 4
xor r8d, r8d
mov rcx, qword [rbp - 0x30]
call qword [sym.imp.ADVAPI32.dll_RegSetValueExA]
test eax, eax
js 0x14004444d
mov rdx, qword [rbp - 0x30]
lea rcx, [rbp - 0x28]
call fcn.1400441d0
mov rcx, qword [rbp - 0x30]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x14004444d
xor eax, eax
mov dword [rsp + 0x28], 0x7d0
mov word [rsp + 0x20], ax
mov r9d, 0x1040
lea r8, str.Info
lea rdx, str.Error_Code_4567
xor ecx, ecx
call fcn.140005480
call fcn.1400057e0
nop
mov rdx, qword [rbp - 8]
cmp rdx, 0xf
jbe 0x14004448b
inc rdx
mov rcx, qword [rbp - 0x20]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140044486
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140044486
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.1400820f8
add rsp, 0x60
pop rbp
ret
Function at 0x140044ca0
Capabilities:
Enumerate pe sections

Disassembly:
mov qword [rsp + 8], rbx
mov rbx, rdx
test rcx, rcx
je 0x140044ceb
movzx r10d, word [rcx + 6]
test r10d, r10d
je 0x140044ceb
movzx r11d, word [rcx + 0x14]
xor r9d, r9d
add r11, 0x18
add r11, rcx
test r10d, r10d
je 0x140044ceb
lea rdx, [r11 + 0x10]
nop
mov ecx, dword [rdx - 4]
cmp r8d, ecx
jb 0x140044cdf
add ecx, dword [rdx]
cmp r8d, ecx
jb 0x140044cf3
inc r9d
add rdx, 0x28
cmp r9d, r10d
jb 0x140044cd0
xor eax, eax
mov rbx, qword [rsp + 8]
ret
lea rcx, [r9 + r9*4]
lea rax, [r11 + rcx*8]
test rax, rax
je 0x140044ceb
sub r8d, dword [rax + 0xc]
mov eax, dword [rax + 0x14]
mov ecx, r8d
add rcx, rbx
mov rbx, qword [rsp + 8]
add rax, rcx
ret

Function at 0x140044d40
Capabilities:
Query or enumerate registry value

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 8], rcx
push rbp
push rsi
push rdi
sub rsp, 0x60
mov rbp, rdx
mov rdi, rcx
mov rdx, rcx
lea rcx, [rsp + 0x40]
call fcn.1400035d0
mov rbx, rax
mov dword [rsp + 0x98], 1
mov dword [rsp + 0x90], 0xff
lea rdx, [0x1401dac68]
cmp qword [0x1401dac80], 0xf
cmova rdx, qword [0x1401dac68]
mov rcx, 0xffffffff80000001
call fcn.140044ea0
mov rsi, rax
mov r8, rbx
cmp qword [rbx + 0x18], 0xf
jbe 0x140044db0
mov r8, qword [rbx]
lea rax, [rsp + 0x90]
mov qword [rsp + 0x30], rax
mov qword [rsp + 0x28], rbp
lea rax, [rsp + 0x98]
mov qword [rsp + 0x20], rax
xor edx, edx
lea r9d, [rdx + 2]
mov rcx, rsi
call qword [sym.imp.ADVAPI32.dll_RegGetValueA]
mov ebp, eax
mov rcx, rsi
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rdx, qword [rbx + 0x18]
cmp rdx, 0xf
jbe 0x140044e1f
mov rcx, qword [rbx]
inc rdx
cmp rdx, 0x1000
jb 0x140044e1a
add rdx, 0x27
mov r8, qword [rcx - 8]
sub rcx, r8
lea rax, [rcx - 8]
cmp rax, 0x1f
ja 0x140044e87
mov rcx, r8
call fcn.1400820f8
xor esi, esi
mov qword [rbx + 0x10], rsi
mov qword [rbx + 0x18], 0xf
mov byte [rbx], sil
mov rdx, qword [rdi + 0x18]
cmp rdx, 0xf
jbe 0x140044e66
inc rdx
mov rcx, qword [rdi]
cmp rdx, 0x1000
jb 0x140044e61
add rdx, 0x27
mov r8, qword [rcx - 8]
sub rcx, r8
lea rax, [rcx - 8]
cmp rax, 0x1f
ja 0x140044e8e
mov rcx, r8
call fcn.1400820f8
mov qword [rdi + 0x10], rsi
mov qword [rdi + 0x18], 0xf
mov byte [rdi], 0
mov eax, ebp
mov rbx, qword [rsp + 0x88]
add rsp, 0x60
pop rdi
pop rsi
pop rbp
ret
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
nop
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
Function at 0x140044f20
Capabilities:
Set registry value

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rsi
push rdi
push r14
push r15
sub rsp, 0x30
cmp qword [0x1401dac80], 0xf
mov rbx, rdx
mov rdi, rcx
mov qword [rsp + 0x58], r12
lea rdx, [0x1401dac68]
mov rcx, 0xffffffff80000001
cmova rdx, qword [0x1401dac68]
call fcn.140044ea0
cmp qword [rbx + 0x18], 0xf
lea r14, [rbx + 0x10]
mov r12, rax
mov rcx, rbx
mov eax, dword [r14]
jbe 0x140044f7c
mov rcx, qword [rbx]
lea r14, [rbx + 0x10]
cmp qword [rdi + 0x18], 0xf
lea rsi, [rdi + 0x18]
mov qword [rsp + 0x50], rbp
mov rdx, rdi
jbe 0x140044f98
mov rdx, qword [rdi]
lea rbp, [rbx + 0x10]
jmp 0x140044f9b
mov rbp, r14
mov dword [rsp + 0x28], eax
mov r9d, 1
mov qword [rsp + 0x20], rcx
xor r8d, r8d
mov rcx, r12
call qword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov rcx, r12
mov r15d, eax
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rdx, qword [rsi]
mov r12, qword [rsp + 0x58]
cmp rdx, 0xf
jbe 0x140045003
mov rcx, qword [rdi]
inc rdx
cmp rdx, 0x1000
jb 0x140044ffb
mov r8, qword [rcx - 8]
add rdx, 0x27
sub rcx, r8
lea rax, [rcx - 8]
cmp rax, 0x1f
ja 0x140045073
mov rcx, r8
lea rsi, [rdi + 0x18]
call fcn.1400820f8
mov r14, rbp
xor ebp, ebp
mov qword [rsi], 0xf
mov qword [rdi + 0x10], rbp
mov byte [rdi], bpl
mov rdx, qword [rbx + 0x18]
cmp rdx, 0xf
jbe 0x140045049
mov rcx, qword [rbx]
inc rdx
cmp rdx, 0x1000
jb 0x140045044
mov r8, qword [rcx - 8]
add rdx, 0x27
sub rcx, r8
lea rax, [rcx - 8]
cmp rax, 0x1f
ja 0x140045073
mov rcx, r8
call fcn.1400820f8
mov rsi, qword [rsp + 0x68]
mov eax, r15d
mov byte [rbx], bpl
mov qword [r14], rbp
mov rbp, qword [rsp + 0x50]
mov qword [rbx + 0x18], 0xf
mov rbx, qword [rsp + 0x60]
add rsp, 0x30
pop r15
pop r14
pop rdi
ret
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
Function at 0x140045080
Capabilities:
Get uefi variable
Query environment variable

Disassembly:
push rbx
sub rsp, 0x430
mov r8d, 0x400
lea rdx, [rsp + 0x30]
lea rcx, str._ProgramFiles_Windows_DefenderMpClient.dll
call qword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsA]
lea rcx, [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov rbx, rax
test rax, rax
je 0x1400450d4
mov r8b, 1
lea rdx, str.WDStatus
mov rcx, rax
call fcn.1400446d0
test rax, rax
jne 0x140045136
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
lea rcx, [rsp + 0x440]
call qword [sym.imp.KERNEL32.dll_GetFirmwareType]
cmp dword [rsp + 0x440], 2
jne 0x14004512b
lea rcx, str.SeSystemEnvironmentPrivilege
call fcn.140004350
test eax, eax
je 0x14004512b
xor r9d, r9d
lea rdx, str.00000000_0000_0000_0000_000000000000
xor r8d, r8d
lea rcx, [0x1400c623a]
call qword [sym.imp.KERNEL32.dll_GetFirmwareEnvironmentVariableA]
test eax, eax
jne 0x14004512b
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 1
je 0x14004515c
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov al, 1
add rsp, 0x430
pop rbx
ret
lea rcx, [rsp + 0x440]
call rax
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
cmp dword [rsp + 0x440], 0
je 0x1400450d4
lea rdx, str.Bro_Defender_is_on._Use_guide_tool_to_disable.
jmp 0x140045163
lea rdx, str.Your_BIOS_mode_must_be_UEFI.
xor eax, eax
mov dword [rsp + 0x28], 0x4e20
mov r9d, 0x1010
mov word [rsp + 0x20], ax
lea r8, str.Info
xor ecx, ecx
call fcn.140005480
xor al, al
add rsp, 0x430
pop rbx
ret
Function at 0x140081370
Capabilities:
Get file size

Disassembly:
push rbx
sub rsp, 0x20
mov rax, qword [rcx]
mov rbx, rcx
call qword [rax + 0x48]
test al, al
jne 0x14008138b
xor eax, eax
add rsp, 0x20
pop rbx
ret
mov rcx, qword [rbx + 0x30]
mov edx, 1
add rsp, 0x20
pop rbx
jmp 0x1400a1fc0
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
mov rsi, rdx
mov rdi, rcx
lea rbx, [rcx + 0x48]
mov rcx, rbx
call qword [sym.imp.CONCRT140.dll_public:_void___cdecl_Concurrency::details::_ReentrantBlockingLock::_Acquire_void____ptr64]
mov rcx, qword [rdi + 0x70]
cmp rcx, 0xffffffffffffffff
jne 0x1400a1ff1
mov rdi, rcx
jmp 0x1400a2011
lea rdx, [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
je 0x1400a200f
xor edx, edx
mov rax, qword [rsp + 0x30]
div rsi
mov rdi, rax
jmp 0x1400a2011
xor edi, edi
mov rcx, rbx
call qword [sym.imp.CONCRT140.dll_public:_void___cdecl_Concurrency::details::_ReentrantBlockingLock::_Release_void____ptr64]
nop
mov rax, rdi
mov rbx, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret

Function at 0x140082c3c
Capabilities:
Parse pe header

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