joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140013df4
Capabilities:
Allocate or change rwx memory

Disassembly:
mov qword [rsp + 0x18], rbx
mov dword [rsp + 0x20], r9d
mov qword [rsp + 0x10], rdx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
mov rbp, rsp
sub rsp, 0x40
xor r9d, r9d
mov r12d, r8d
mov qword [rbp - 0x10], r9
mov rax, rdx
mov edx, r9d
test rcx, rcx
je 0x140014013
mov rsi, qword [rbp + 0x80]
test rsi, rsi
je 0x140014013
test rax, rax
je 0x140014013
test r8d, r8d
je 0x140014013
mov r14, qword [rbp + 0x68]
test r14, r14
je 0x140014013
or r10, 0xffffffffffffffff
mov rax, r10
inc rax
cmp word [r14 + rax*2], r9w
jne 0x140013e64
mov rdi, qword [rbp + 0x70]
lea r8d, [rax*2 + 2]
mov dword [rbp + 0x40], r8d
test rdi, rdi
je 0x140013e97
mov rax, r10
inc rax
cmp word [rdi + rax*2], r9w
jne 0x140013e86
lea edx, [rax*2 + 2]
cmp byte [rbp + 0x78], 1
mov r9, rcx
mov r13d, r8d
mov eax, 0x17ce
mov r15d, edx
mov r8d, 0x101a
cmovne eax, r8d
mov dword [rsp + 0x28], 0x40
add rax, 0x100
mov dword [rsp + 0x20], 0x1000
add rax, r12
lea rdx, [rbp - 0x10]
add rax, r15
xor r8d, r8d
add rax, r13
mov rbx, r12
mov qword [rcx], rax
mov rcx, r10
call qword [sym.imp.ntoskrnl.exe_ZwAllocateVirtualMemory]
test eax, eax
js 0x140014013
mov rdx, qword [rbp + 0x48]
mov r8, rbx
mov rcx, qword [rbp - 0x10]
call fcn.140018440
mov rcx, qword [rbp - 0x10]
add rcx, rbx
cmp byte [rbp + 0x78], 1
jne 0x140013f89
mov r8d, 0x17a8
lea rdx, [0x140022710]
call fcn.140018440
mov rcx, qword [rbp - 0x10]
mov edx, 0x17a8
add rcx, rbx
call fcn.1400181b4
mov rax, qword [rbp - 0x10]
mov r8d, r13d
add rax, 0x17a8
mov rdx, r14
add rbx, rax
mov eax, dword [rbp + 0x58]
and dword [rbx], 0
lea rcx, [rbx + 0x26]
mov dword [rbx + 4], eax
movzx eax, byte [rbp + 0x60]
mov word [rbx + 8], ax
mov rax, qword [rbp - 0x10]
mov qword [rbx + 0x1a], rax
mov dword [rbx + 0x22], r12d
mov qword [rbx + 0xa], rcx
call fcn.140018440
test rdi, rdi
je 0x140013f7f
lea rcx, [rbx + 0x26]
add rcx, r13
mov qword [rbx + 0x12], rcx
jmp 0x140013ff9
and qword [rbx + 0x12], 0
jmp 0x14001400a
mov r8d, 0x1000
lea rdx, [0x140023ec0]
call fcn.140018440
mov rcx, qword [rbp - 0x10]
mov edx, 0x1000
add rcx, rbx
call fcn.1400181b4
mov rax, qword [rbp - 0x10]
mov r8, r13
add rax, 0x1000
mov rdx, r14
add rbx, rax
mov eax, dword [rbp + 0x58]
and dword [rbx], 0
mov dword [rbx + 4], eax
movzx eax, byte [rbp + 0x60]
mov word [rbx + 8], ax
mov eax, dword [rbp - 0x10]
mov dword [rbx + 0x12], eax
lea eax, [rbx + 0x1a]
mov ecx, eax
mov dword [rbx + 0x16], r12d
mov dword [rbx + 0xa], eax
call fcn.140018440
test rdi, rdi
je 0x140014006
mov eax, dword [rbp + 0x40]
add eax, 0x1a
add eax, ebx
mov dword [rbx + 0xe], eax
mov ecx, eax
mov r8, r15
mov rdx, rdi
call fcn.140018440
jmp 0x14001400a
and dword [rbx + 0xe], 0
mov rax, qword [rbp - 0x10]
mov qword [rsi], rbx
jmp 0x140014015
xor eax, eax
mov rbx, qword [rsp + 0x90]
add rsp, 0x40
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
Function at 0x1400140cc
Capabilities:
Get system information on windows

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x18], rsi
push rdi
sub rsp, 0x30
and dword [rax + 0x10], 0
mov rdi, rcx
mov dword [rax - 0x18], 0x160014
lea rax, [0x140019530]
mov qword [rsp + 0x28], rax
mov rax, qword [0x140025560]
test rax, rax
je 0x140014118
test rcx, rcx
je 0x140014204
mov ecx, dword [0x140025568]
mov dword [rdi], ecx
jmp 0x140014204
lea rcx, [rsp + 0x20]
call qword [sym.imp.ntoskrnl.exe_MmGetSystemRoutineAddress]
mov rsi, rax
test rax, rax
je 0x140014202
mov r8d, dword [rsp + 0x48]
lea r9, [rsp + 0x48]
xor edx, edx
lea ecx, [rdx + 0xb]
call qword [sym.imp.ntoskrnl.exe_ZwQuerySystemInformation]
mov eax, dword [rsp + 0x48]
test eax, eax
je 0x140014202
mov edx, eax
xor ecx, ecx
mov r8d, 0x746b734b
call qword [sym.imp.ntoskrnl.exe_ExAllocatePoolWithTag]
mov rbx, rax
test rax, rax
je 0x140014202
mov r8d, dword [rsp + 0x48]
xor edx, edx
mov rcx, rax
call fcn.140018240
mov r8d, dword [rsp + 0x48]
lea r9, [rsp + 0x48]
mov rdx, rbx
mov ecx, 0xb
call qword [sym.imp.ntoskrnl.exe_ZwQuerySystemInformation]
test eax, eax
js 0x1400141ee
mov r8d, dword [rbx]
xor edx, edx
test r8d, r8d
je 0x1400141ee
lea rcx, [rbx + 0x20]
mov r9, qword [rcx - 8]
cmp rsi, r9
jb 0x1400141b8
mov eax, dword [rcx]
add rax, r9
cmp rsi, rax
jb 0x1400141c8
inc edx
add rcx, 0x128
cmp edx, r8d
jae 0x1400141ee
jmp 0x1400141a5
mov eax, edx
imul rcx, rax, 0x128
mov rax, qword [rcx + rbx + 0x18]
mov qword [0x140025560], rax
mov eax, dword [rcx + rbx + 0x20]
mov dword [0x140025568], eax
test rdi, rdi
je 0x1400141ee
mov dword [rdi], eax
xor edx, edx
mov rcx, rbx
call qword [sym.imp.ntoskrnl.exe_ExFreePoolWithTag]
mov rax, qword [0x140025560]
jmp 0x140014204
xor eax, eax
mov rbx, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x50]
add rsp, 0x30
pop rdi
ret
Function at 0x140014214
Capabilities:
Access pe header

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x40
mov rax, qword [0x140025570]
test rax, rax
jne 0x140014306
xor ecx, ecx
call fcn.1400140cc
mov rbp, rax
test rax, rax
je 0x140014304
mov rcx, rax
call qword [sym.imp.ntoskrnl.exe_RtlImageNtHeader]
mov rdi, rax
call fcn.140014c90
test rax, rax
je 0x140014267
mov ecx, dword [rdi + 8]
mov dword [rax + 8], ecx
movzx ecx, word [rdi + 6]
lea rsi, [rdi + 0x108]
lea rdx, [rcx + rcx*4]
lea rcx, [rsi + rdx*8]
cmp rsi, rcx
jae 0x140014304
lfence
lea rbx, [rsi + 8]
mov eax, dword [rbx + 0x1c]
and eax, 0x2a000000
cmp eax, 0x28000000
jne 0x1400142eb
mov eax, dword [rbx - 8]
cmp eax, 0x54494e49
je 0x1400142eb
cmp eax, 0x45474150
je 0x1400142eb
movups xmm0, xmmword [0x140019550]
mov r9d, dword [rbx + 4]
lea rcx, [rsp + 0x50]
mov eax, dword [rbx]
add r9, rbp
and qword [rsp + 0x50], 0
mov r8d, 0xf
mov qword [rsp + 0x28], rcx
mov dl, 0xcc
lea rcx, [rsp + 0x30]
mov qword [rsp + 0x20], rax
movdqu xmmword [rsp + 0x30], xmm0
call fcn.140014030
test eax, eax
jns 0x14001431b
movzx eax, word [rdi + 6]
add rbx, 0x28
lea rcx, [rax + rax*4]
lea rdx, [rsi + rcx*8]
lea rax, [rbx - 8]
cmp rax, rdx
jb 0x14001428a
xor eax, eax
mov rbx, qword [rsp + 0x58]
mov rbp, qword [rsp + 0x60]
mov rsi, qword [rsp + 0x68]
add rsp, 0x40
pop rdi
ret
mov rdx, qword [rsp + 0x50]
mov eax, dword [rdx + 3]
mov ecx, dword [rdx + 0xa]
add rax, 7
add rax, rdx
add rdx, 0xe
add rdx, rcx
mov qword [0x140025570], rax
mov qword [0x140025558], rdx
jmp 0x140014306
Function at 0x140014344
Capabilities:
Get system information on windows

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
push rsi
push rdi
push r12
push r14
push r15
sub rsp, 0x20
mov r15, rdx
mov r14, r8
mov edx, 0x23e0
mov r12, rcx
mov ebp, 0x746b734b
mov dword [rsp + 0x68], edx
mov r8d, ebp
xor ecx, ecx
call qword [sym.imp.ntoskrnl.exe_ExAllocatePoolWithTag]
mov rbx, rax
test rax, rax
je 0x140014485
mov r8d, dword [rsp + 0x68]
lea r9, [rsp + 0x68]
mov esi, 0xb
mov rdx, rax
mov ecx, esi
call qword [sym.imp.ntoskrnl.exe_ZwQuerySystemInformation]
mov edi, eax
cmp eax, 0xc0000004
jne 0x1400143fe
xor edx, edx
mov rcx, rbx
call qword [sym.imp.ntoskrnl.exe_ExFreePoolWithTag]
mov edx, dword [rsp + 0x68]
mov r8d, ebp
xor ecx, ecx
call qword [sym.imp.ntoskrnl.exe_ExAllocatePoolWithTag]
mov rbx, rax
test rax, rax
je 0x140014485
mov r8d, dword [rsp + 0x68]
lea r9, [rsp + 0x68]
mov rdx, rax
mov ecx, esi
call qword [sym.imp.ntoskrnl.exe_ZwQuerySystemInformation]
mov edi, eax
test eax, eax
je 0x140014402
xor edx, edx
mov rcx, rbx
call qword [sym.imp.ntoskrnl.exe_ExFreePoolWithTag]
mov eax, edi
jmp 0x14001448a
test edi, edi
jmp 0x1400143ea
mov edi, 0xc000009a
test r12, r12
jne 0x140014425
test r15, r15
je 0x140014418
mov rax, qword [rbx + 0x18]
mov qword [r15], rax
test r14, r14
je 0x14001447e
mov eax, dword [rbx + 0x20]
mov dword [r14], eax
jmp 0x14001447e
xor esi, esi
cmp dword [rbx], esi
jbe 0x1400143ec
mov ebp, esi
mov rdx, r12
imul rax, rbp, 0x128
movzx ecx, word [rax + rbx + 0x2e]
add rax, 0x30
add rcx, rax
add rcx, rbx
call fcn.140005e84
test eax, eax
je 0x140014457
inc esi
cmp esi, dword [rbx]
jb 0x14001442b
jmp 0x1400143ec
test r15, r15
je 0x14001446b
imul rax, rbp, 0x128
mov rcx, qword [rax + rbx + 0x18]
mov qword [r15], rcx
test r14, r14
je 0x14001447e
imul rax, rbp, 0x128
mov ecx, dword [rax + rbx + 0x20]
mov dword [r14], ecx
xor edi, edi
jmp 0x1400143ec
mov eax, 0xc000009a
mov rbx, qword [rsp + 0x50]
mov rbp, qword [rsp + 0x58]
add rsp, 0x20
pop r15
pop r14
pop r12
pop rdi
pop rsi
ret
Function at 0x140014530
Capabilities:
Access pe header

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x10], rdx
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x40
mov r12b, r8b
mov rdi, rcx
xor ebx, ebx
call qword [sym.imp.ntoskrnl.exe_RtlImageNtHeader]
mov rsi, rax
movzx eax, word [rax + 0x18]
mov ecx, 0x10b
cmp ax, cx
jne 0x14001465f
mov edx, dword [rsi + 0x78]
test edx, edx
je 0x14001475e
test r12b, r12b
je 0x140014591
lea r14, [rdi + rdx]
mov r15d, dword [r14 + 0x1c]
mov r13d, dword [r14 + 0x20]
mov eax, dword [r14 + 0x24]
jmp 0x1400145c9
mov rcx, rsi
call fcn.140014b7c
mov r14d, eax
add r14, rdi
mov edx, dword [r14 + 0x1c]
mov rcx, rsi
call fcn.140014b7c
mov r15d, eax
mov edx, dword [r14 + 0x20]
mov rcx, rsi
call fcn.140014b7c
mov r13d, eax
mov edx, dword [r14 + 0x24]
mov rcx, rsi
call fcn.140014b7c
mov eax, eax
add rax, rdi
mov qword [rsp + 0x30], rax
mov ecx, r13d
add rcx, rdi
mov qword [rsp + 0x38], rcx
mov r13d, r15d
add r13, rdi
mov r15d, ebx
mov dword [rsp + 0x20], ebx
cmp r15d, dword [r14 + 0x18]
jae 0x14001475e
mov eax, r15d
mov ecx, dword [rcx + rax*4]
test r12b, r12b
jne 0x14001460c
mov edx, ecx
mov rcx, rsi
call fcn.140014b7c
mov ecx, eax
mov eax, r15d
mov rdx, qword [rsp + 0x30]
movzx eax, word [rdx + rax*2]
mov word [rsp + 0x88], ax
add rcx, rdi
mov rdx, qword [rsp + 0x78]
call fcn.140005e84
test eax, eax
jne 0x140014650
movzx eax, word [rsp + 0x88]
mov edx, dword [r13 + rax*4]
test r12b, r12b
je 0x14001473b
lea rbx, [rdi + rdx]
jmp 0x140014748
inc r15d
mov dword [rsp + 0x20], r15d
mov rcx, qword [rsp + 0x38]
jmp 0x1400145eb
mov ecx, 0x20b
cmp ax, cx
jne 0x14001475e
mov edx, dword [rsi + 0x88]
test edx, edx
je 0x14001475e
test r12b, r12b
je 0x140014692
lea r14, [rdi + rdx]
mov r15d, dword [r14 + 0x1c]
mov r13d, dword [r14 + 0x20]
mov eax, dword [r14 + 0x24]
jmp 0x1400146ca
mov rcx, rsi
call fcn.140014b7c
mov r14d, eax
add r14, rdi
mov edx, dword [r14 + 0x1c]
mov rcx, rsi
call fcn.140014b7c
mov r15d, eax
mov edx, dword [r14 + 0x20]
mov rcx, rsi
call fcn.140014b7c
mov r13d, eax
mov edx, dword [r14 + 0x24]
mov rcx, rsi
call fcn.140014b7c
mov eax, eax
add rax, rdi
mov qword [rsp + 0x38], rax
mov ecx, r13d
add rcx, rdi
mov qword [rsp + 0x30], rcx
mov r13d, r15d
add r13, rdi
mov r15d, ebx
mov dword [rsp + 0x20], ebx
cmp r15d, dword [r14 + 0x18]
jae 0x14001475e
mov eax, r15d
mov ecx, dword [rcx + rax*4]
test r12b, r12b
jne 0x140014709
mov edx, ecx
mov rcx, rsi
call fcn.140014b7c
mov ecx, eax
mov eax, r15d
mov rdx, qword [rsp + 0x38]
movzx eax, word [rdx + rax*2]
mov word [rsp + 0x88], ax
add rcx, rdi
mov rdx, qword [rsp + 0x78]
call fcn.140005e84
test eax, eax
jne 0x14001474f
movzx eax, word [rsp + 0x88]
jmp 0x140014639
mov rcx, rsi
call fcn.140014b7c
mov ebx, eax
add rbx, rdi
mov qword [rsp + 0x28], rbx
jmp 0x14001475e
inc r15d
mov dword [rsp + 0x20], r15d
mov rcx, qword [rsp + 0x30]
jmp 0x1400146ec
jmp 0x140014767
mov rax, rbx
lea r11, [rsp + 0x40]
mov rbx, qword [r11 + 0x30]
mov rsi, qword [r11 + 0x40]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rdi
ret
Function at 0x1400149bc
Capabilities:
Map section object
Parse pe header

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rbp
push rdi
push r14
lea rbp, [rsp - 0x47]
sub rsp, 0xc0
xor r14d, r14d
mov rdi, r8
mov qword [rbp + 0x7f], r14
mov rsi, rdx
mov qword [rbp + 0x67], r14
mov qword [rbp - 0x19], r14
mov qword [rbp - 0x11], r14
test rcx, rcx
jne 0x1400149fe
mov eax, 0xc0000001
jmp 0x140014b61
mov rdx, rcx
lea rcx, [rbp - 9]
call qword [sym.imp.ntoskrnl.exe_RtlInitUnicodeString]
mov dword [rsp + 0x50], r14d
lea rax, [rbp - 9]
mov qword [rsp + 0x48], r14
lea r9, [rbp + 7]
mov dword [rsp + 0x40], r14d
lea r8, [rbp + 0x17]
mov dword [rsp + 0x38], 1
lea rcx, [rbp + 0x7f]
mov dword [rsp + 0x30], 1
xorps xmm0, xmm0
mov dword [rsp + 0x28], r14d
mov edx, 1
mov qword [rsp + 0x20], r14
mov dword [rbp + 0x17], 0x30
mov qword [rbp + 0x1f], r14
mov dword [rbp + 0x2f], 0x240
mov qword [rbp + 0x27], rax
movdqu xmmword [rbp + 0x37], xmm0
call qword [sym.imp.ntoskrnl.exe_ZwCreateFile]
mov ebx, eax
test eax, eax
js 0x140014b5f
mov rax, qword [rbp + 0x7f]
lea r8, [rbp + 0x17]
mov qword [rsp + 0x30], rax
lea rcx, [rbp + 0x67]
xorps xmm0, xmm0
mov dword [rsp + 0x28], 0x8000000
xor r9d, r9d
mov dword [rsp + 0x20], 2
mov edx, 0xf0005
mov dword [rbp + 0x17], 0x30
mov qword [rbp + 0x1f], r14
mov dword [rbp + 0x2f], 0x240
mov qword [rbp + 0x27], r14
movdqu xmmword [rbp + 0x37], xmm0
call qword [sym.imp.ntoskrnl.exe_ZwCreateSection]
mov ebx, eax
test eax, eax
js 0x140014b55
mov rcx, qword [rbp + 0x67]
lea rax, [rbp - 0x11]
mov dword [rsp + 0x48], 2
lea r8, [rbp - 0x19]
mov dword [rsp + 0x40], r14d
xor r9d, r9d
mov dword [rsp + 0x38], 1
or rdx, 0xffffffffffffffff
mov qword [rsp + 0x30], rax
mov qword [rsp + 0x28], r14
mov qword [rsp + 0x20], r14
call qword [sym.imp.ntoskrnl.exe_ZwMapViewOfSection]
mov ebx, eax
test eax, eax
js 0x140014b4b
mov rcx, qword [rbp - 0x19]
mov ebx, 0xc000009a
test rcx, rcx
je 0x140014b4b
mov eax, 0x5a4d
cmp word [rcx], ax
jne 0x140014b4b
movsxd rax, dword [rcx + 0x3c]
cmp dword [rax + rcx], 0x4550
jne 0x140014b4b
test rsi, rsi
je 0x140014b3e
mov qword [rsi], rcx
test rdi, rdi
je 0x140014b48
mov eax, dword [rbp - 0x11]
mov dword [rdi], eax
mov ebx, r14d
mov rcx, qword [rbp + 0x67]
call qword [sym.imp.ntoskrnl.exe_ZwClose]
mov rcx, qword [rbp + 0x7f]
call qword [sym.imp.ntoskrnl.exe_ZwClose]
mov eax, ebx
lea r11, [rsp + 0xc0]
mov rbx, qword [r11 + 0x28]
mov rsi, qword [r11 + 0x30]
mov rsp, r11
pop r14
pop rdi
pop rbp
ret
Function at 0x140017028
Capabilities:
Query or enumerate registry value

Disassembly:
mov qword [rsp + 0x10], rbx
push rbp
push rsi
push rdi
push r14
push r15
mov rbp, rsp
sub rsp, 0x40
xor r15d, r15d
mov rsi, rcx
mov dword [rbp + 0x30], r15d
mov ecx, r15d
mov qword [rbp + 0x40], rcx
xorps xmm0, xmm0
mov r14, r9
mov rdi, r8
mov ebx, 0xc000000d
movups xmmword [rbp - 0x10], xmm0
test r9, r9
je 0x140017066
mov qword [r9], r15
test rdi, rdi
je 0x140017179
test r14, r14
je 0x140017179
test rdx, rdx
je 0x140017094
or rax, 0xffffffffffffffff
inc rax
cmp word [rdx + rax*2], r15w
jne 0x140017081
test rax, rax
je 0x140017179
test rsi, rsi
jne 0x1400170a2
test rdx, rdx
je 0x140017189
test rdx, rdx
jne 0x1400170ad
mov qword [rbp + 0x40], rsi
jmp 0x1400170c3
lea r8, [rbp + 0x40]
mov rcx, rsi
call fcn.1400173b0
mov ebx, eax
test eax, eax
js 0x140017175
mov rdx, rdi
lea rcx, [rbp - 0x10]
call qword [sym.imp.ntoskrnl.exe_RtlInitUnicodeString]
mov rcx, qword [rbp + 0x40]
lea rax, [rbp + 0x30]
xor r9d, r9d
mov qword [rsp + 0x28], rax
lea rdx, [rbp - 0x10]
mov dword [rsp + 0x20], r15d
lea r8d, [r9 + 2]
call qword [sym.imp.ntoskrnl.exe_ZwQueryValueKey]
mov ebx, eax
cmp eax, 0x80000005
je 0x140017103
cmp eax, 0xc0000023
jne 0x140017175
mov eax, dword [rbp + 0x30]
mov ebx, 0xc000009a
test eax, eax
je 0x140017175
mov edx, eax
xor ecx, ecx
mov r8d, 0x746b734b
call qword [sym.imp.ntoskrnl.exe_ExAllocatePoolWithTag]
mov rdi, rax
test rax, rax
je 0x140017175
mov r8d, dword [rbp + 0x30]
xor edx, edx
mov rcx, rax
call fcn.140018240
mov ecx, dword [rbp + 0x30]
lea rax, [rbp + 0x30]
mov qword [rsp + 0x28], rax
lea rdx, [rbp - 0x10]
mov dword [rsp + 0x20], ecx
mov r9, rdi
mov rcx, qword [rbp + 0x40]
mov r8d, 2
call qword [sym.imp.ntoskrnl.exe_ZwQueryValueKey]
mov ebx, eax
test eax, eax
js 0x140017167
mov qword [r14], rdi
jmp 0x140017175
lfence
xor edx, edx
mov rcx, rdi
call qword [sym.imp.ntoskrnl.exe_ExFreePoolWithTag]
mov rcx, qword [rbp + 0x40]
cmp rcx, rsi
je 0x140017189
test rcx, rcx
je 0x140017189
call qword [sym.imp.ntoskrnl.exe_ZwClose]
mov eax, ebx
mov rbx, qword [rsp + 0x78]
add rsp, 0x40
pop r15
pop r14
pop rdi
pop rsi
pop rbp
ret
Function at 0x140017558
Capabilities:
Set registry value

Disassembly:
mov rax, rsp
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rbp
mov qword [rax + 0x20], rsi
push rdi
push r14
push r15
sub rsp, 0x40
xor r15d, r15d
mov rbx, rcx
mov ecx, r15d
mov rbp, r9
mov qword [rax + 8], rcx
mov r14, r8
mov edi, 0xc000000d
test r8, r8
je 0x14001761d
test r9, r9
je 0x14001761d
mov esi, dword [rsp + 0x80]
test esi, esi
je 0x14001761d
test rdx, rdx
je 0x1400175bd
or rax, 0xffffffffffffffff
inc rax
cmp word [rdx + rax*2], r15w
jne 0x1400175ae
test rax, rax
je 0x14001761d
test rbx, rbx
jne 0x1400175c7
test rdx, rdx
je 0x14001762d
test rdx, rdx
jne 0x1400175d3
mov qword [rsp + 0x60], rbx
jmp 0x1400175e6
lea r8, [rsp + 0x60]
mov rcx, rbx
call fcn.140016b28
mov edi, eax
test eax, eax
js 0x140017618
mov rdx, r14
lea rcx, [rsp + 0x30]
call qword [sym.imp.ntoskrnl.exe_RtlInitUnicodeString]
mov rcx, qword [rsp + 0x60]
lea rdx, [rsp + 0x30]
mov r9d, 3
mov dword [rsp + 0x28], esi
xor r8d, r8d
mov qword [rsp + 0x20], rbp
call qword [sym.imp.ntoskrnl.exe_ZwSetValueKey]
mov edi, eax
mov rcx, qword [rsp + 0x60]
cmp rcx, rbx
je 0x14001762d
test rcx, rcx
je 0x14001762d
call qword [sym.imp.ntoskrnl.exe_ZwClose]
mov rbx, qword [rsp + 0x68]
mov eax, edi
mov rbp, qword [rsp + 0x70]
mov rsi, qword [rsp + 0x78]
add rsp, 0x40
pop r15
pop r14
pop rdi
ret

Function at 0x140017648
Capabilities:
Set registry value

Disassembly:
mov qword [rsp + 0x10], rbx
mov dword [rsp + 0x20], r9d
push rbp
push rsi
push rdi
sub rsp, 0x40
xor ebp, ebp
mov rbx, rcx
mov ecx, ebp
mov rsi, r8
mov qword [rsp + 0x60], rcx
mov edi, 0xc000000d
test rbx, rbx
jne 0x14001767b
test rdx, rdx
je 0x1400176fe
test rsi, rsi
je 0x1400176ee
test rdx, rdx
je 0x1400176ac
or rax, 0xffffffffffffffff
inc rax
cmp word [rdx + rax*2], bp
jne 0x140017689
test rax, rax
je 0x1400176ee
lea r8, [rsp + 0x60]
mov rcx, rbx
call fcn.1400173b0
mov edi, eax
test eax, eax
jns 0x1400176b1
jmp 0x1400176e9
mov qword [rsp + 0x60], rbx
mov rdx, rsi
lea rcx, [rsp + 0x30]
call qword [sym.imp.ntoskrnl.exe_RtlInitUnicodeString]
mov rcx, qword [rsp + 0x60]
lea rax, [rsp + 0x78]
mov r9d, 4
lea rdx, [rsp + 0x30]
mov dword [rsp + 0x28], r9d
xor r8d, r8d
mov qword [rsp + 0x20], rax
call qword [sym.imp.ntoskrnl.exe_ZwSetValueKey]
mov edi, eax
mov rcx, qword [rsp + 0x60]
cmp rcx, rbx
je 0x1400176fe
test rcx, rcx
je 0x1400176fe
call qword [sym.imp.ntoskrnl.exe_ZwClose]
mov rbx, qword [rsp + 0x68]
mov eax, edi
add rsp, 0x40
pop rdi
pop rsi
pop rbp
ret
Function at 0x140017710
Capabilities:
Set registry value

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
push rsi
push rdi
push r12
push r14
push r15
sub rsp, 0x40
xor r12d, r12d
mov rdi, rcx
mov ecx, r12d
mov r15d, r9d
mov qword [rsp + 0x70], rcx
mov r14, r8
mov esi, 0xc000000d
test r8, r8
je 0x1400177e2
mov rbp, qword [rsp + 0x90]
test rbp, rbp
je 0x1400177e2
test rdi, rdi
jne 0x140017767
test rdx, rdx
je 0x1400177f2
or rbx, 0xffffffffffffffff
test rdx, rdx
je 0x140017797
mov rax, rbx
inc rax
cmp word [rdx + rax*2], r12w
jne 0x140017773
test rax, rax
je 0x1400177e2
lea r8, [rsp + 0x70]
mov rcx, rdi
call fcn.140016b28
mov esi, eax
test eax, eax
jns 0x14001779c
jmp 0x1400177dd
mov qword [rsp + 0x70], rdi
inc rbx
cmp word [rbp + rbx*2], r12w
jne 0x14001779c
mov rdx, r14
lea rcx, [rsp + 0x30]
lea ebx, [rbx*2 + 2]
call qword [sym.imp.ntoskrnl.exe_RtlInitUnicodeString]
mov rcx, qword [rsp + 0x70]
lea rdx, [rsp + 0x30]
mov r9d, r15d
mov dword [rsp + 0x28], ebx
xor r8d, r8d
mov qword [rsp + 0x20], rbp
call qword [sym.imp.ntoskrnl.exe_ZwSetValueKey]
mov esi, eax
mov rcx, qword [rsp + 0x70]
cmp rcx, rdi
je 0x1400177f2
test rcx, rcx
je 0x1400177f2
call qword [sym.imp.ntoskrnl.exe_ZwClose]
lea r11, [rsp + 0x40]
mov eax, esi
mov rbx, qword [r11 + 0x38]
mov rbp, qword [r11 + 0x40]
mov rsp, r11
pop r15
pop r14
pop r12
pop rdi
pop rsi
ret

Function at 0x1400181b4
Capabilities:
Encode data using xor

Disassembly:
mov al, 0x50
test edx, edx
je 0x1400181c9
mov edx, edx
xor byte [rcx], al
inc rcx
inc al
sub rdx, 1
jne 0x1400181bc
ret
Function at 0x140011af0
Capabilities:
Get disk information

Disassembly:
mov qword [rsp + 8], rbx
push rbp
push rsi
push rdi
push r14
push r15
sub rsp, 0x40
mov rbp, rcx
mov dword [rsp + 0x78], 0x105
mov ecx, 0x20a
call fcn.14002b37c
mov rbx, rax
test rax, rax
je 0x140011b69
nop dword [rax]
lea r9, [rsp + 0x78]
mov r8d, dword [rsp + 0x78]
mov rdx, rbx
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_GetVolumePathNamesForVolumeNameW]
mov esi, eax
test eax, eax
jne 0x140011b7c
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xea
jne 0x140011cd5
mov rcx, rbx
call fcn.14002b368
mov ecx, dword [rsp + 0x78]
add rcx, rcx
call fcn.14002b37c
mov rbx, rax
test rax, rax
jne 0x140011b20
xor eax, eax
mov rbx, qword [rsp + 0x70]
add rsp, 0x40
pop r15
pop r14
pop rdi
pop rsi
pop rbp
ret
call qword [sym.imp.KERNEL32.dll_GetLogicalDrives]
xor r15d, r15d
mov edi, r15d
movabs r14, 0x5c003a0041
mov qword [rsp + 0x80], r14
lea eax, [rdi + 0x41]
mov word [rsp + 0x80], ax
lea rcx, [rsp + 0x80]
call qword [sym.imp.KERNEL32.dll_GetDriveTypeW]
cmp eax, 1
jne 0x140011bef
mov rdx, rbp
lea rcx, [rsp + 0x80]
call qword [sym.imp.KERNEL32.dll_SetVolumeMountPointW]
mov esi, eax
test eax, eax
jne 0x140011bfc
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov r9d, eax
lea r8, [rsp + 0x80]
mov rdx, rbp
lea rcx, str.____Not_mounted:__s_____s__error:_0x_X_n
call fcn.140001b40
inc edi
cmp edi, 0x1a
jae 0x140011cd5
jmp 0x140011b92
lea r8, [rsp + 0x80]
mov rdx, rbp
lea rcx, str.___Mounted:__s_____s_n
call fcn.140001b40
xorps xmm0, xmm0
movups xmmword [rsp + 0x20], xmm0
xorps xmm1, xmm1
movdqu xmmword [rsp + 0x30], xmm1
lea rax, [rsp + 0x80]
mov r8, 0xffffffffffffffff
inc r8
cmp word [rax + r8*2], r15w
jne 0x140011c33
lea rdx, [rsp + 0x80]
lea rcx, [rsp + 0x20]
call fcn.140001be0
nop
mov rdx, qword [0x140050ab8]
cmp rdx, qword [0x140050ac0]
je 0x140011c86
movups xmm0, xmmword [rsp + 0x20]
movups xmmword [rdx], xmm0
movups xmm1, xmmword [rsp + 0x30]
movups xmmword [rdx + 0x10], xmm1
mov edx, 7
mov word [rsp + 0x20], r15w
add qword [0x140050ab8], 0x20
jmp 0x140011c9c
lea r8, [rsp + 0x20]
lea rcx, [0x140050ab0]
call fcn.140011d00
mov rdx, qword [rsp + 0x38]
cmp rdx, 8
jb 0x140011cd5
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x20]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140011cd0
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140011cf5
call fcn.1400195ec
test rbx, rbx
je 0x140011ce2
mov rcx, rbx
call fcn.14002b368
mov eax, esi
mov rbx, qword [rsp + 0x70]
add rsp, 0x40
pop r15
pop r14
pop rdi
pop rsi
pop rbp
ret
call fcn.14002a224
int3