joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140015960
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x20
cmp qword [rcx + 0x3138], 0
lea rbx, [rcx + 0x3140]
mov rsi, r8
mov rbp, rdx
mov rdi, rcx
je 0x140015a07
mov r9d, dword [rbx + 4]
mov qword [rsp + 0x30], r14
xor r14d, r14d
test r9d, r9d
jns 0x1400159ba
mov eax, r9d
mov rcx, rbx
cdq
sub eax, edx
mov edx, r14d
sar eax, 1
add eax, r9d
test eax, eax
cmovg edx, eax
call fcn.1400224b0
mov r8, rsi
mov dword [rbx], r14d
mov rdx, rbp
mov rcx, rbx
call fcn.140021fc0
mov eax, dword [rbx]
mov edx, 1
mov r9, qword [rdi + 0x3138]
test eax, eax
lea ecx, [rax - 1]
mov rax, qword [rdi + 0x3148]
cmove ecx, r14d
test rax, rax
movsxd r8, ecx
lea rcx, [0x14014db48]
cmovne rcx, rax
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
mov r14, qword [rsp + 0x30]
jmp 0x140015a0f
mov rcx, rbx
call fcn.140021fc0
mov rbx, qword [rsp + 0x38]
mov rbp, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
add rsp, 0x20
pop rdi
ret

Function at 0x14001b0d0
Capabilities:
Hash data with crc32

Disassembly:
mov qword [rsp + 0x10], rbx
mov dword [rsp + 8], ecx
push rdi
sub rsp, 0x20
mov r8, qword [0x14014db50]
movsxd r9, ecx
mov rbx, qword [r8 + 0x1c20]
add rbx, 0xc8
movsxd rdx, dword [rbx]
mov rax, qword [rbx + 8]
mov edi, dword [rax + rdx*4 - 4]
lea rdx, [0x1400d4810]
not edi
movzx eax, r9b
movzx ecx, dil
xor rcx, rax
shr edi, 8
movzx eax, byte [rsp + 0x31]
xor edi, dword [rdx + rcx*4]
movzx ecx, dil
xor rcx, rax
shr edi, 8
movzx eax, byte [rsp + 0x32]
xor edi, dword [rdx + rcx*4]
movzx ecx, dil
xor rcx, rax
shr edi, 8
movzx eax, byte [rsp + 0x33]
xor edi, dword [rdx + rcx*4]
movzx ecx, dil
shr edi, 8
xor rcx, rax
xor edi, dword [rdx + rcx*4]
not edi
cmp dword [r8 + 0x1c54], edi
jne 0x14001b16d
mov r8, r9
mov ecx, edi
xor r9d, r9d
lea edx, [r9 + 4]
call fcn.140010fd0
mov ecx, dword [rbx + 4]
mov r8d, dword [rbx]
cmp r8d, ecx
jne 0x14001b1a1
inc r8d
test ecx, ecx
je 0x14001b18a
mov eax, ecx
cdq
sub eax, edx
sar eax, 1
add eax, ecx
jmp 0x14001b18f
mov eax, 8
cmp eax, r8d
mov rcx, rbx
cmovg r8d, eax
mov edx, r8d
call fcn.1400225f0
movsxd rcx, dword [rbx]
mov rax, qword [rbx + 8]
mov dword [rax + rcx*4], edi
inc dword [rbx]
mov rbx, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret

Function at 0x14001e270
Capabilities:
Write file on windows

Disassembly:
push rbx
sub rsp, 0x20
mov rax, qword [0x14014db50]
mov rbx, rcx
xor ecx, ecx
mov dword [rax + 0x30d4], ecx
test rbx, rbx
je 0x14001e2df
mov qword [rsp + 0x30], rcx
lea rcx, [rsp + 0x30]
mov qword [rsp + 0x38], rdi
call fcn.14001e2f0
lea rdx, [0x1400d4db8]
mov rcx, rbx
mov rdi, rax
call fcn.140013b00
mov rbx, rax
test rax, rax
je 0x14001e2da
mov r8, qword [rsp + 0x30]
mov r9, rax
mov edx, 1
mov rcx, rdi
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
mov rcx, rbx
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
mov rdi, qword [rsp + 0x38]
add rsp, 0x20
pop rbx
ret
Function at 0x140020b50
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 0x20], rbx
push rsi
sub rsp, 0x20
mov rbx, qword [0x14014db50]
cmp byte [rbx + 0x30d1], 0
jne 0x140020ca9
mov rcx, qword [rbx + 0x20]
test rcx, rcx
je 0x140020ca2
lea rdx, [0x1400d4db4]
mov qword [rsp + 0x38], rdi
call fcn.140013b00
mov rdi, rax
test rax, rax
je 0x140020c9d
mov qword [rsp + 0x40], r14
mov rcx, rax
mov qword [rsp + 0x30], rbp
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_ftell]
mov r14d, eax
cmp eax, 0xffffffff
je 0x140020c8a
xor edx, edx
mov rcx, rdi
lea r8d, [rdx + 2]
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fseek]
test eax, eax
jne 0x140020c8a
mov rcx, rdi
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_ftell]
movsxd rbp, eax
cmp ebp, 0xffffffff
je 0x140020c8a
xor r8d, r8d
mov edx, r14d
mov rcx, rdi
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fseek]
test eax, eax
jne 0x140020c8a
mov r14, rbp
cmp rbp, 0xffffffffffffffff
je 0x140020c8a
mov rax, qword [0x14014db50]
test rax, rax
je 0x140020c19
inc dword [rax + 0x3b0]
mov rdx, qword [0x14014db58]
mov rcx, r14
call qword [0x14010a010]
mov rbp, rax
test rax, rax
je 0x140020c8a
mov r9, rdi
mov r8, r14
mov edx, 1
mov rcx, rax
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
mov rcx, rdi
cmp rax, r14
je 0x140020c55
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
jmp 0x140020c66
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
mov rdx, r14
mov rcx, rbp
call fcn.1400153a0
mov rax, qword [0x14014db50]
test rax, rax
je 0x140020c78
dec dword [rax + 0x3b0]
mov rdx, qword [0x14014db58]
mov rcx, rbp
call qword [0x14010a018]
jmp 0x140020c93
mov rcx, rdi
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
mov rbp, qword [rsp + 0x30]
mov r14, qword [rsp + 0x40]
mov rdi, qword [rsp + 0x38]
mov byte [rbx + 0x30d1], 1
movss xmm0, dword [rbx + 0x30d4]
xorps xmm1, xmm1
comiss xmm0, xmm1
jbe 0x140020cec
subss xmm0, dword [rbx + 0x18]
comiss xmm1, xmm0
movss dword [rbx + 0x30d4], xmm0
jb 0x140020cec
mov rcx, qword [rbx + 0x20]
test rcx, rcx
je 0x140020cdb
call fcn.14001e270
jmp 0x140020ce2
mov byte [rbx + 0x398], 1
mov dword [rbx + 0x30d4], 0
mov rbx, qword [rsp + 0x48]
add rsp, 0x20
pop rsi
ret
Function at 0x140035f80
Capabilities:
Resolve function by parsing pe exports

Disassembly:
sub rsp, 0x38
mov rax, qword [0x14014db50]
mov rcx, qword [rax + 0x2070]
mov r10, qword [rax + 0x1c20]
movsxd rax, dword [rcx + 0x7c]
movups xmm0, xmmword [rcx + 0x174]
movss xmm4, dword [rcx + 0x174]
movss xmm3, dword [rcx + 0x178]
movss xmm2, dword [rcx + 0x17c]
movss xmm1, dword [rcx + 0x180]
movss dword [rsp + 0x20], xmm4
movss dword [rsp + 0x24], xmm3
movss dword [rsp + 0x28], xmm2
movss dword [rsp + 0x2c], xmm1
imul r9, rax, 0x68
mov rax, qword [r10 + 0x270]
add r9, qword [rcx + 0x18]
movups xmmword [r10 + 0x210], xmm0
movss dword [rax + 0x88], xmm4
movss dword [rax + 0x8c], xmm3
movss dword [rax + 0x90], xmm2
movss dword [rax + 0x94], xmm1
mov rax, qword [r10 + 0x270]
movups xmm0, xmmword [rsp + 0x20]
movsxd r8, dword [rax + 0x58]
mov rdx, qword [rax + 0x60]
add r8, r8
movups xmmword [rdx + r8*8 - 0x10], xmm0
movzx r8d, byte [r9 + 0x57]
mov rdx, qword [r10 + 0x270]
mov rcx, qword [rcx + 0x1a8]
add rsp, 0x38
jmp 0x14002aaf0

Function at 0x140036050
Capabilities:
Resolve function by parsing pe exports

Disassembly:
sub rsp, 0x38
mov rax, qword [0x14014db50]
mov rcx, qword [rax + 0x2070]
mov r9, qword [rax + 0x1c20]
movups xmm0, xmmword [r9 + 0x210]
movups xmmword [rcx + 0x174], xmm0
mov rax, qword [r9 + 0x270]
movups xmm0, xmmword [rcx + 0x154]
movss xmm4, dword [rcx + 0x154]
movss xmm3, dword [rcx + 0x158]
movss xmm2, dword [rcx + 0x15c]
movss xmm1, dword [rcx + 0x160]
movups xmmword [r9 + 0x210], xmm0
movss dword [rsp + 0x20], xmm4
movss dword [rsp + 0x24], xmm3
movss dword [rsp + 0x28], xmm2
movss dword [rsp + 0x2c], xmm1
movss dword [rax + 0x88], xmm4
movss dword [rax + 0x8c], xmm3
movss dword [rax + 0x90], xmm2
movss dword [rax + 0x94], xmm1
mov rax, qword [r9 + 0x270]
movups xmm0, xmmword [rsp + 0x20]
movsxd r8, dword [rax + 0x58]
mov rdx, qword [rax + 0x60]
add r8, r8
movups xmmword [rdx + r8*8 - 0x10], xmm0
movzx r8d, byte [rcx + 0x1f7]
mov rcx, qword [rcx + 0x1a8]
mov rdx, qword [r9 + 0x270]
add rsp, 0x38
jmp 0x14002aaf0
Function at 0x14003e980
Capabilities:
Create thread

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
push rsi
push rdi
push r14
sub rsp, 0x30
mov rsi, r9
mov rbp, r8
mov r14, rdx
mov rdi, rcx
mov ecx, 0x50
call fcn.14008fe9c
mov rbx, rax
mov qword [rsp + 0x50], rax
test rax, rax
je 0x14003e9e9
mov rax, qword [rsp + 0x78]
movzx edx, byte [rax]
mov byte [rbx], dl
mov rax, qword [rsp + 0x70]
mov ecx, dword [rax]
mov dword [rbx + 4], ecx
lea rcx, [rbx + 8]
mov rdx, rsi
call fcn.1400035e0
nop
lea rcx, [rbx + 0x28]
mov rdx, rbp
call fcn.1400035e0
nop
mov qword [rbx + 0x48], r14
jmp 0x14003e9eb
xor ebx, ebx
mov qword [rsp + 0x50], rbx
lea rsi, [rdi + 8]
mov qword [rsp + 0x28], rsi
mov dword [rsp + 0x20], 0
mov r9, rbx
lea r8, [0x14003ed10]
xor edx, edx
xor ecx, ecx
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__beginthreadex]
mov qword [rdi], rax
test rax, rax
je 0x14003ea33
mov rax, rdi
mov rbx, qword [rsp + 0x58]
mov rbp, qword [rsp + 0x60]
add rsp, 0x30
pop r14
pop rdi
pop rsi
ret
mov dword [rsi], 0
mov ecx, 6
call sub.MSVCP140.dll_void___cdecl_std::_Throw_Cpp_error_int_
int3
Function at 0x14004c480
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push rbx
sub rsp, 0x20
mov rbx, rcx
mov ecx, dword [rcx + 0x10]
mov r10d, ecx
and r10d, 7
je 0x14004c4b4
cmp ecx, r10d
jge 0x14004c4a2
mov rcx, rbx
call fcn.140045e20
mov eax, dword [rbx + 0x14]
mov ecx, r10d
shr eax, cl
sub dword [rbx + 0x10], r10d
mov ecx, dword [rbx + 0x10]
mov dword [rbx + 0x14], eax
xor r8d, r8d
mov eax, ecx
test ecx, ecx
jle 0x14004c4ee
mov ecx, dword [rbx + 0x14]
lea rdx, [rsp + 0x30]
movzx r9d, cl
nop dword [rax]
shr ecx, 8
inc r8d
mov byte [rdx], r9b
lea rdx, [rdx + 1]
sub eax, 8
mov dword [rbx + 0x14], ecx
movzx r9d, cl
test eax, eax
jg 0x14004c4d0
mov dword [rbx + 0x10], eax
test eax, eax
jns 0x14004c51d
mov edx, dword [0x14014df90]
mov rax, qword gs:[0x58]
mov ecx, 0x20
mov rax, qword [rax + rdx*8]
lea rdx, str.zlib_corrupt
mov qword [rcx + rax], rdx
xor eax, eax
add rsp, 0x20
pop rbx
ret
movsxd rcx, r8d
cmp rcx, 4
jge 0x14004c54f
mov r8, qword [rbx + 8]
mov rax, qword [rbx]
nop dword [rax]
cmp rax, r8
jb 0x14004c539
xor dl, dl
jmp 0x14004c542
movzx edx, byte [rax]
inc rax
mov qword [rbx], rax
mov byte [rsp + rcx + 0x30], dl
inc rcx
cmp rcx, 4
jl 0x14004c530
movzx eax, byte [rsp + 0x30]
movzx r8d, byte [rsp + 0x31]
movzx ecx, byte [rsp + 0x33]
shl r8d, 8
add r8d, eax
shl ecx, 8
movzx eax, byte [rsp + 0x32]
add ecx, eax
mov eax, r8d
xor eax, 0xffff
cmp ecx, eax
jne 0x14004c4f2
mov rcx, qword [rbx]
mov qword [rsp + 0x38], rdi
mov edi, r8d
add rcx, rdi
cmp rcx, qword [rbx + 8]
jbe 0x14004c5c4
mov edx, dword [0x14014df90]
mov rax, qword gs:[0x58]
mov ecx, 0x20
mov rax, qword [rax + rdx*8]
lea rdx, str.read_past_buffer
mov qword [rcx + rax], rdx
mov rdi, qword [rsp + 0x38]
xor eax, eax
add rsp, 0x20
pop rbx
ret
mov rdx, qword [rbx + 0x18]
lea rax, [r8 + rdx]
cmp rax, qword [rbx + 0x28]
jbe 0x14004c5de
mov rcx, rbx
call fcn.140051900
test eax, eax
je 0x14004c5b7
mov rdx, qword [rbx]
mov r8, rdi
mov rcx, qword [rbx + 0x18]
call sub.VCRUNTIME140.dll_memcpy
add qword [rbx], rdi
mov eax, 1
add qword [rbx + 0x18], rdi
mov rdi, qword [rsp + 0x38]
add rsp, 0x20
pop rbx
ret
Function at 0x140051b00
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 0x140051b1f
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.14008fe9c
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 [0x1400da538]
movups xmmword [rax + 0x10], xmm1
movups xmm0, xmmword [0x1400da548]
movups xmmword [rax + 0x20], xmm0
movsd xmm0, qword [0x1400da558]
movsd qword [rax + 0x30], xmm0
mov eax, dword [0x1400da560]
mov dword [rcx + 0x38], eax
movzx eax, byte [0x1400da564]
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 [0x1400da570]
mov dword [rsp + 0x38], eax
movzx eax, word [0x1400da574]
mov word [rsp + 0x3c], ax
xor r9d, r9d
mov r8b, 1
lea rdx, [rsp + 0x50]
lea rcx, [rsp + 0x30]
call fcn.140004660
add rsp, 0x78
ret
Function at 0x140051c30
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 [0x1400da610]
movdqu xmmword [rbp - 0x10], xmm1
movsd xmm0, qword [str.ToastEnabled]
movsd qword [rbp - 0x20], xmm0
mov eax, dword [0x1400da580]
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 0x140051d4d
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 0x140051cfd
mov rdx, qword [rbp - 0x30]
lea rcx, [rbp - 0x28]
call fcn.140051b00
mov rcx, qword [rbp - 0x30]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [rbp + 0x18]
cmp eax, 1
jbe 0x140051d7d
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 0x140051d7d
mov rdx, qword [rbp - 0x30]
lea rcx, [rbp - 0x28]
call fcn.140051b00
mov rcx, qword [rbp - 0x30]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x140051d7d
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.1400052b0
call fcn.140005610
nop
mov rdx, qword [rbp - 8]
cmp rdx, 0xf
jbe 0x140051dbb
inc rdx
mov rcx, qword [rbp - 0x20]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140051db6
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140051db6
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.14008fed8
add rsp, 0x60
pop rbp
ret
Function at 0x1400525d0
Capabilities:
Enumerate pe sections

Disassembly:
mov qword [rsp + 8], rbx
mov rbx, rdx
test rcx, rcx
je 0x14005261b
movzx r10d, word [rcx + 6]
test r10d, r10d
je 0x14005261b
movzx r11d, word [rcx + 0x14]
xor r9d, r9d
add r11, 0x18
add r11, rcx
test r10d, r10d
je 0x14005261b
lea rdx, [r11 + 0x10]
nop
mov ecx, dword [rdx - 4]
cmp r8d, ecx
jb 0x14005260f
add ecx, dword [rdx]
cmp r8d, ecx
jb 0x140052623
inc r9d
add rdx, 0x28
cmp r9d, r10d
jb 0x140052600
xor eax, eax
mov rbx, qword [rsp + 8]
ret
lea rcx, [r9 + r9*4]
lea rax, [r11 + rcx*8]
test rax, rax
je 0x14005261b
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 0x140052670
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.1400035e0
mov rbx, rax
mov dword [rsp + 0x98], 1
mov dword [rsp + 0x90], 0xff
lea rdx, [0x14014ded8]
cmp qword [0x14014def0], 0xf
cmova rdx, qword [0x14014ded8]
mov rcx, 0xffffffff80000001
call fcn.1400527d0
mov rsi, rax
mov r8, rbx
cmp qword [rbx + 0x18], 0xf
jbe 0x1400526e0
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 0x14005274f
mov rcx, qword [rbx]
inc rdx
cmp rdx, 0x1000
jb 0x14005274a
add rdx, 0x27
mov r8, qword [rcx - 8]
sub rcx, r8
lea rax, [rcx - 8]
cmp rax, 0x1f
ja 0x1400527b7
mov rcx, r8
call fcn.14008fed8
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 0x140052796
inc rdx
mov rcx, qword [rdi]
cmp rdx, 0x1000
jb 0x140052791
add rdx, 0x27
mov r8, qword [rcx - 8]
sub rcx, r8
lea rax, [rcx - 8]
cmp rax, 0x1f
ja 0x1400527be
mov rcx, r8
call fcn.14008fed8
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 0x140052850
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 [0x14014def0], 0xf
mov rbx, rdx
mov rdi, rcx
mov qword [rsp + 0x58], r12
lea rdx, [0x14014ded8]
mov rcx, 0xffffffff80000001
cmova rdx, qword [0x14014ded8]
call fcn.1400527d0
cmp qword [rbx + 0x18], 0xf
lea r14, [rbx + 0x10]
mov r12, rax
mov rcx, rbx
mov eax, dword [r14]
jbe 0x1400528ac
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 0x1400528c8
mov rdx, qword [rdi]
lea rbp, [rbx + 0x10]
jmp 0x1400528cb
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 0x140052933
mov rcx, qword [rdi]
inc rdx
cmp rdx, 0x1000
jb 0x14005292b
mov r8, qword [rcx - 8]
add rdx, 0x27
sub rcx, r8
lea rax, [rcx - 8]
cmp rax, 0x1f
ja 0x1400529a3
mov rcx, r8
lea rsi, [rdi + 0x18]
call fcn.14008fed8
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 0x140052979
mov rcx, qword [rbx]
inc rdx
cmp rdx, 0x1000
jb 0x140052974
mov r8, qword [rcx - 8]
add rdx, 0x27
sub rcx, r8
lea rax, [rcx - 8]
cmp rax, 0x1f
ja 0x1400529a3
mov rcx, r8
call fcn.14008fed8
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 0x1400529b0
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 0x140052a04
mov r8b, 1
lea rdx, str.WDStatus
mov rcx, rax
call fcn.140052000
test rax, rax
jne 0x140052a66
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 0x140052a5b
lea rcx, str.SeSystemEnvironmentPrivilege
call fcn.1400041f0
test eax, eax
je 0x140052a5b
xor r9d, r9d
lea rdx, str.00000000_0000_0000_0000_000000000000
xor r8d, r8d
lea rcx, [0x1400d423a]
call qword [sym.imp.KERNEL32.dll_GetFirmwareEnvironmentVariableA]
test eax, eax
jne 0x140052a5b
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 1
je 0x140052a8c
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 0x140052a04
lea rdx, str.Windows_Defender_is_turned_on._Download_Defender_Control_and_use_it_to_disable.
jmp 0x140052a93
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.1400052b0
xor al, al
add rsp, 0x430
pop rbx
ret
Function at 0x14008f150
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 0x14008f16b
xor eax, eax
add rsp, 0x20
pop rbx
ret
mov rcx, qword [rbx + 0x30]
mov edx, 1
add rsp, 0x20
pop rbx
jmp 0x1400afe00
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 0x1400afe31
mov rdi, rcx
jmp 0x1400afe51
lea rdx, [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
je 0x1400afe4f
xor edx, edx
mov rax, qword [rsp + 0x30]
div rsi
mov rdi, rax
jmp 0x1400afe51
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 0x140090a1c
Capabilities:
Parse pe header

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