joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140110610
Capabilities:
Reference wmi statements

Disassembly:
push rbx
sub rsp, 0x70
mov rbx, rcx
xorps xmm0, xmm0
movups xmmword [rsp + 0x28], xmm0
movdqa xmm1, xmmword [0x140339490]
movdqu xmmword [rsp + 0x38], xmm1
movsd xmm0, qword [str.SerialNumber]
movsd qword [rsp + 0x28], xmm0
mov eax, dword [0x140337ce0]
mov dword [rsp + 0x30], eax
mov byte [rsp + 0x34], 0
xorps xmm0, xmm0
movups xmmword [rsp + 0x48], xmm0
xorps xmm1, xmm1
movdqu xmmword [rsp + 0x58], xmm1
mov ecx, Ordinal_50
call fcn.14009629c
mov qword [rsp + 0x48], rax
movdqa xmm0, xmmword [reloc.WLDAP32.dll_Ordinal_33]
movdqu xmmword [rsp + 0x58], xmm0
movups xmm0, xmmword [str.SELECT__FROM_Win32_PhysicalMedia]
movups xmmword [rax], xmm0
movups xmm1, xmmword [0x140337d30]
movups xmmword [rax + 0x10], xmm1
movzx ecx, byte [0x140337d40]
mov byte [rax + 0x20], cl
mov byte [rax + 0x21], 0
lea r8, [rsp + 0x28]
lea rdx, [rsp + 0x48]
mov rcx, rbx
call fcn.1401109e0
nop
mov rdx, qword [rsp + 0x60]
cmp rdx, 0xf
jbe 0x1401106f0
inc rdx
mov rcx, qword [rsp + 0x48]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1401106eb
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x1401106eb
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.140096518
movdqa xmm0, xmmword [0x140339400]
movdqu xmmword [rsp + 0x58], xmm0
mov byte [rsp + 0x48], 0
mov rdx, qword [rsp + 0x40]
cmp rdx, 0xf
jbe 0x140110743
inc rdx
mov rcx, qword [rsp + 0x28]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14011073e
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x14011073e
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.140096518
mov rax, rbx
add rsp, 0x70
pop rbx
ret
Function at 0x140110760
Capabilities:
Reference wmi statements

Disassembly:
push rbx
sub rsp, 0x70
mov rbx, rcx
xorps xmm0, xmm0
movups xmmword [rsp + 0x28], xmm0
movdqa xmm1, xmmword [reloc.WS2_32.dll_connect]
movdqu xmmword [rsp + 0x38], xmm1
mov dword [rsp + 0x28], 0x656d614e
mov byte [rsp + 0x2c], 0
movups xmmword [rsp + 0x48], xmm0
xorps xmm1, xmm1
movdqu xmmword [rsp + 0x58], xmm1
mov ecx, Ordinal_50
call fcn.14009629c
mov rdx, rax
mov qword [rsp + 0x48], rax
movdqa xmm0, xmmword [reloc.WLDAP32.dll_Ordinal_35]
movdqu xmmword [rsp + 0x58], xmm0
movups xmm0, xmmword [str.SELECT__FROM_Win32_VideoController]
movups xmmword [rax], xmm0
movups xmm1, xmmword [0x140337cf8]
movups xmmword [rax + 0x10], xmm1
movzx ecx, word [0x140337d08]
mov word [rax + 0x20], cx
movzx eax, byte [0x140337d0a]
mov byte [rdx + 0x22], al
mov byte [rdx + 0x23], 0
lea r8, [rsp + 0x28]
lea rdx, [rsp + 0x48]
mov rcx, rbx
call fcn.1401109e0
nop
mov rdx, qword [rsp + 0x60]
cmp rdx, 0xf
jbe 0x14011083b
inc rdx
mov rcx, qword [rsp + 0x48]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140110836
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140110836
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.140096518
movdqa xmm0, xmmword [0x140339400]
movdqu xmmword [rsp + 0x58], xmm0
mov byte [rsp + 0x48], 0
mov rdx, qword [rsp + 0x40]
cmp rdx, 0xf
jbe 0x14011088e
inc rdx
mov rcx, qword [rsp + 0x28]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140110889
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140110889
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.140096518
mov rax, rbx
add rsp, 0x70
pop rbx
ret
Function at 0x1401108a0
Capabilities:
Reference wmi statements

Disassembly:
push rbx
sub rsp, 0x70
mov rbx, rcx
xorps xmm0, xmm0
movups xmmword [rsp + 0x48], xmm0
movdqa xmm1, xmmword [reloc.WS2_32.dll_connect]
movdqu xmmword [rsp + 0x58], xmm1
mov dword [rsp + 0x48], 0x656d614e
mov byte [rsp + 0x4c], 0
movups xmmword [rsp + 0x28], xmm0
xorps xmm1, xmm1
movdqu xmmword [rsp + 0x38], xmm1
mov ecx, reloc.WLDAP32.dll_Ordinal_32
call fcn.14009629c
mov rdx, rax
mov qword [rsp + 0x28], rax
movdqa xmm0, xmmword [0x140339560]
movdqu xmmword [rsp + 0x38], xmm0
movups xmm0, xmmword [str.SELECT__FROM_Win32_Processor]
movups xmmword [rax], xmm0
movsd xmm0, qword [0x140337cc0]
movsd qword [rax + 0x10], xmm0
mov ecx, dword [0x140337cc8]
mov dword [rax + 0x18], ecx
movzx eax, byte [0x140337ccc]
mov byte [rdx + 0x1c], al
mov byte [rdx + 0x1d], 0
lea r8, [rsp + 0x48]
lea rdx, [rsp + 0x28]
mov rcx, rbx
call fcn.1401109e0
nop
mov rdx, qword [rsp + 0x40]
cmp rdx, 0xf
jbe 0x14011097b
inc rdx
mov rcx, qword [rsp + 0x28]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140110976
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140110976
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.140096518
movdqa xmm0, xmmword [0x140339400]
movdqu xmmword [rsp + 0x38], xmm0
mov byte [rsp + 0x28], 0
mov rdx, qword [rsp + 0x60]
cmp rdx, 0xf
jbe 0x1401109ce
inc rdx
mov rcx, qword [rsp + 0x48]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1401109c9
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x1401109c9
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.140096518
mov rax, rbx
add rsp, 0x70
pop rbx
ret
Function at 0x1401111e0
Capabilities:
Get session user name

Disassembly:
push rbp
push rbx
push rsi
lea rbp, [rsp - 0x70]
sub rsp, 0x170
mov rbx, rcx
mov dword [rbp + 0xa0], 0x101
lea rcx, [rsp + 0x60]
xor esi, esi
lea rdx, [rbp + 0xa0]
call qword [sym.imp.ADVAPI32.dll_GetUserNameA]
test eax, eax
je 0x14011127d
mov qword [rbp + 0xa8], rsi
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
lea r8, [rbp + 0xa8]
mov edx, 8
mov rcx, rax
call qword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
je 0x14011127d
mov rcx, qword [rbp + 0xa8]
lea rax, [rbp + 0x98]
xor r9d, r9d
mov qword [rsp + 0x20], rax
xor r8d, r8d
mov dword [rbp + 0x98], esi
mov edx, 1
call qword [sym.imp.ADVAPI32.dll_GetTokenInformation]
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x7a
je 0x1401112a0
mov rcx, qword [rbp + 0xa8]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
xorps xmm0, xmm0
mov rax, rbx
movups xmmword [rbx], xmm0
mov qword [rbx + 0x10], rsi
mov qword [rbx + 0x18], reloc.WS2_32.dll_ntohs
mov byte [rbx], sil
add rsp, 0x170
pop rsi
pop rbx
pop rbp
ret
mov ecx, dword [rbp + 0x98]
mov qword [rsp + 0x190], rdi
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
mov r9d, dword [rbp + 0x98]
mov edx, 1
mov rcx, qword [rbp + 0xa8]
mov rdi, rax
lea rax, [rbp + 0x98]
mov r8, rdi
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_GetTokenInformation]
test eax, eax
jne 0x140111310
mov rcx, rdi
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov rcx, qword [rbp + 0xa8]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
xorps xmm0, xmm0
movups xmmword [rbx], xmm0
mov qword [rbx + 0x10], rsi
mov qword [rbx + 0x18], reloc.WS2_32.dll_ntohs
mov byte [rbx], sil
jmp 0x140111389
mov qword [rsp + 0x30], rsi
lea rdx, [rsp + 0x30]
mov rcx, qword [rdi]
call qword [sym.imp.ADVAPI32.dll_ConvertSidToStringSidA]
test eax, eax
je 0x1401112e3
mov rdx, qword [rsp + 0x30]
xorps xmm0, xmm0
xorps xmm1, xmm1
mov r8, 0xffffffffffffffff
movups xmmword [rsp + 0x40], xmm0
movdqu xmmword [rsp + 0x50], xmm1
inc r8
cmp byte [rdx + r8], sil
jne 0x140111344
lea rcx, [rsp + 0x40]
call fcn.1400037b0
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_LocalFree]
mov rcx, rdi
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov rcx, qword [rbp + 0xa8]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
movups xmm0, xmmword [rsp + 0x40]
movups xmm1, xmmword [rsp + 0x50]
movups xmmword [rbx], xmm0
movups xmmword [rbx + 0x10], xmm1
mov rdi, qword [rsp + 0x190]
mov rax, rbx
add rsp, 0x170
pop rsi
pop rbx
pop rbp
ret
Function at 0x1400011c0
Capabilities:
Check if file exists
Get file attributes
Set file attributes

Disassembly:
mov qword [rsp + 0x10], rbx
push rdi
sub rsp, 0x60
mov rax, qword [section..data]
xor rax, rsp
mov qword [rsp + 0x50], rax
cmp qword [rcx + 0x18], 0xf
mov rbx, rcx
mov r8, rcx
jbe 0x1400011e9
mov r8, qword [rcx]
xor eax, eax
xor edx, edx
mov dword [rsp + 0x28], eax
xor ecx, ecx
mov r9d, 0xffffffff
mov qword [rsp + 0x20], rax
call qword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
movsxd rdi, eax
xorps xmm0, xmm0
xorps xmm1, xmm1
lea rcx, [rsp + 0x30]
mov r8, rdi
movups xmmword [rsp + 0x30], xmm0
movdqu xmmword [rsp + 0x40], xmm1
call fcn.1400025b0
cmp qword [rsp + 0x48], 7
lea rcx, [rsp + 0x30]
cmova rcx, qword [rsp + 0x30]
cmp qword [rbx + 0x18], 0xf
jbe 0x140001240
mov rbx, qword [rbx]
mov dword [rsp + 0x28], edi
mov r9d, 0xffffffff
mov qword [rsp + 0x20], rcx
mov r8, rbx
xor ecx, ecx
xor edx, edx
call qword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
cmp qword [rsp + 0x48], 7
lea rcx, [rsp + 0x30]
cmova rcx, qword [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x140001294
and eax, 0xfffffff8
lea rcx, [rsp + 0x30]
cmp qword [rsp + 0x48], 7
mov edx, eax
cmova rcx, qword [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_SetFileAttributesW]
mov rdx, qword [rsp + 0x48]
cmp rdx, 7
jbe 0x1400012d9
mov rcx, qword [rsp + 0x30]
lea rdx, [rdx*2 + 2]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400012d4
mov rcx, qword [rcx - 8]
add rdx, 0x27
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x1400012d4
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.14000290c
mov rcx, qword [rsp + 0x50]
xor rcx, rsp
call fcn.1400028b0
mov rbx, qword [rsp + 0x78]
add rsp, 0x60
pop rdi
ret
Function at 0x140003264
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x1400032ae
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x1400032ae
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x1400032ae
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x1400032ae
cmp dword [rcx + 0x84], 0xe
jbe 0x1400032ae
cmp dword [rcx + 0xf8], 0
setne al
jmp 0x1400032b0
xor al, al
add rsp, 0x28
ret
Function at 0x1400010a8
Capabilities:
Parse pe header
Read file on windows

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rsi
push rbp
push rdi
push r14
lea rbp, [rsp - 0x1a0]
sub rsp, 0x2a0
mov rax, qword [0x140025ed8]
xor rax, rsp
mov qword [rbp + 0x190], rax
mov rsi, rdx
mov rbx, rcx
xor r14d, r14d
lea rcx, [rbp - 0x80]
xor edx, edx
mov qword [rsp + 0x58], r14
mov r8d, 0x20a
call fcn.140018a40
mov r9, rbx
mov qword [rsp + 0x60], r14
lea r8, [0x140018f00]
mov edx, 0x105
lea rcx, [rbp - 0x80]
call sub.ntoskrnl.exe_swprintf_s
xor r8d, r8d
lea rdx, [rbp - 0x80]
lea rcx, [rsp + 0x50]
call fcn.140006ff4
mov ebx, eax
test eax, eax
js 0x14000121b
mov rcx, qword [rsp + 0x50]
lea rdx, [rsp + 0x58]
call fcn.140006c54
mov ebx, eax
test eax, eax
js 0x140001210
cmp qword [rsp + 0x58], 0x1000
mov ebx, 0xc0000001
jle 0x140001210
mov edx, 0x1000
xor ecx, ecx
mov r8d, 0x746b734b
call qword [sym.imp.ntoskrnl.exe_ExAllocatePoolWithTag]
mov rdi, rax
test rax, rax
je 0x140001210
mov rcx, qword [rsp + 0x50]
lea rax, [rsp + 0x60]
mov qword [rsp + 0x40], r14
xor r9d, r9d
mov qword [rsp + 0x38], rax
xor r8d, r8d
mov dword [rsp + 0x30], 0x1000
lea rax, [rsp + 0x68]
mov qword [rsp + 0x28], rdi
xor edx, edx
mov qword [rsp + 0x20], rax
call qword [sym.imp.ntoskrnl.exe_ZwReadFile]
mov ebx, eax
test eax, eax
js 0x140001205
mov eax, 0x5a4d
cmp word [rdi], ax
jne 0x140001205
lfence
movsxd rax, dword [rdi + 0x3c]
add rax, rdi
cmp dword [rax], 0x4550
jne 0x140001205
movzx ecx, word [rax + 0x18]
mov edx, 0x20b
cmp cx, dx
jne 0x1400011ee
cmp word [rax + 6], r14w
je 0x140001205
mov byte [rsi], 1
jmp 0x140001202
mov edx, 0x10b
cmp cx, dx
jne 0x140001205
cmp word [rax + 6], r14w
je 0x140001205
mov byte [rsi], r14b
mov ebx, r14d
xor edx, edx
mov rcx, rdi
call qword [sym.imp.ntoskrnl.exe_ExFreePoolWithTag]
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.ntoskrnl.exe_ZwClose]
mov eax, ebx
mov rcx, qword [rbp + 0x190]
xor rcx, rsp
call fcn.140018030
lea r11, [rsp + 0x2a0]
mov rbx, qword [r11 + 0x30]
mov rsi, qword [r11 + 0x38]
mov rsp, r11
pop r14
pop rdi
pop rbp
ret
Function at 0x140001330
Capabilities:
Read file on windows

Disassembly:
push rbp
push rbx
push rsi
push rdi
push r14
lea rbp, [rsp - 0x30]
sub rsp, 0x130
mov rax, qword [0x140025ed8]
xor rax, rsp
mov qword [rbp + 0x28], rax
and qword [rsp + 0x60], 0
lea r9, [rsp + 0x70]
xor eax, eax
mov qword [rbp - 0x70], rcx
and dword [rsp + 0x50], eax
lea rcx, [rsp + 0x68]
and qword [rsp + 0x48], rax
xorps xmm0, xmm0
and qword [rbp - 0x78], rax
mov rsi, rdx
mov dword [rsp + 0x40], 0x20
mov edx, 0x80
mov dword [rsp + 0x38], 1
mov r14, r8
mov dword [rsp + 0x30], 7
lea r8, [rbp - 0x80]
mov dword [rsp + 0x28], edx
and qword [rsp + 0x20], rax
movups xmmword [rbp + 0x10], xmm0
mov dword [rbp + 0x20], eax
mov dword [rbp - 0x80], 0x30
mov dword [rbp - 0x68], 0x240
movdqu xmmword [rbp - 0x60], xmm0
call qword [sym.imp.ntoskrnl.exe_ZwCreateFile]
mov edi, eax
test eax, eax
js 0x1400014b9
mov edx, 0x1000
xor ecx, ecx
mov r8d, 0x746b734b
call qword [sym.imp.ntoskrnl.exe_ExAllocatePoolWithTag]
mov rbx, rax
test rax, rax
je 0x1400014a1
lea rcx, [rbp - 0x50]
call fcn.140009aa0
and qword [rsp + 0x40], 0
lea rax, [rsp + 0x60]
mov rcx, qword [rsp + 0x68]
xor r9d, r9d
mov qword [rsp + 0x38], rax
xor r8d, r8d
mov dword [rsp + 0x30], 0x3e8
lea rax, [rsp + 0x70]
mov qword [rsp + 0x28], rbx
xor edx, edx
mov qword [rsp + 0x20], rax
call qword [sym.imp.ntoskrnl.exe_ZwReadFile]
mov edi, eax
test eax, eax
js 0x140001496
lfence
mov r8d, dword [rsp + 0x78]
lea rcx, [rbp - 0x50]
mov rdx, rbx
call fcn.14000a334
and qword [rsp + 0x40], 0
lea rax, [rsp + 0x60]
mov rcx, qword [rsp + 0x68]
xor r9d, r9d
add qword [rsp + 0x60], 0x3e8
xor r8d, r8d
mov qword [rsp + 0x38], rax
xor edx, edx
mov dword [rsp + 0x30], 0x3e8
lea rax, [rsp + 0x70]
mov qword [rsp + 0x28], rbx
mov qword [rsp + 0x20], rax
call qword [sym.imp.ntoskrnl.exe_ZwReadFile]
mov edi, eax
test eax, eax
jns 0x14000143c
xor edx, edx
mov rcx, rbx
call qword [sym.imp.ntoskrnl.exe_ExFreePoolWithTag]
mov rcx, qword [rsp + 0x68]
call qword [sym.imp.ntoskrnl.exe_ZwClose]
lea rdx, [rbp + 0x10]
lea rcx, [rbp - 0x50]
call fcn.140009a14
mov byte [rsp + 0x30], 1
lea r8, [rbp + 0x14]
mov byte [rsp + 0x28], 0
mov r9d, 8
mov rdx, rsi
mov byte [rsp + 0x20], 0
xor ecx, ecx
call fcn.1400122fc
mov byte [rsp + 0x30], 1
lea r8, [rbp + 0x10]
mov byte [rsp + 0x28], 0
mov r9d, 0x10
xor edx, edx
mov byte [rsp + 0x20], 0
mov rcx, r14
call fcn.1400122fc
mov eax, edi
mov rcx, qword [rbp + 0x28]
xor rcx, rsp
call fcn.140018030
add rsp, 0x130
pop r14
pop rdi
pop rsi
pop rbx
pop rbp
ret

Function at 0x1400016a0
Capabilities:
Encode data using xor

Disassembly:
mov al, 0x58
test rdx, rdx
je 0x1400016b4
xor byte [rcx], al
inc al
inc rcx
sub rdx, 1
jne 0x1400016a7
ret
Function at 0x1400016b8
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 0x20], rbx
push rbp
push rsi
push rdi
push r14
push r15
lea rbp, [rsp - 0x230]
sub rsp, 0x330
mov rax, qword [0x140025ed8]
xor rax, rsp
mov qword [rbp + 0x220], rax
mov rdi, r8
mov r14d, edx
mov rsi, rcx
xor r15d, r15d
xor edx, edx
mov qword [rsp + 0x60], r15
mov r8d, 0x258
lea rcx, [rbp - 0x40]
mov bl, r9b
call fcn.140018a40
lea rcx, [rbp - 0x40]
cmp bl, 1
jne 0x140001721
mov r8, rdi
mov edx, 0x12c
call sub.ntoskrnl.exe_wcscpy_s
jmp 0x140001742
mov ebx, 0x12c
lea r8, [0x140018ef0]
mov edx, ebx
call sub.ntoskrnl.exe_wcscpy_s
mov r8, rdi
lea rcx, [rbp - 0x40]
mov edx, ebx
call sub.ntoskrnl.exe_wcscat_s
lea rdx, [rbp - 0x40]
lea rcx, [rsp + 0x68]
call qword [sym.imp.ntoskrnl.exe_RtlInitUnicodeString]
mov dword [rsp + 0x50], r15d
lea rax, [rsp + 0x68]
mov qword [rsp + 0x48], r15
lea r9, [rsp + 0x78]
mov dword [rsp + 0x40], 0x20
lea r8, [rbp - 0x78]
mov dword [rsp + 0x38], 5
lea rcx, [rsp + 0x60]
mov dword [rsp + 0x30], 7
xorps xmm0, xmm0
mov dword [rsp + 0x28], 0x82
mov edx, 0x40000000
mov qword [rsp + 0x20], r15
mov dword [rbp - 0x78], 0x30
mov qword [rbp - 0x70], r15
mov dword [rbp - 0x60], 0x240
mov qword [rbp - 0x68], rax
movdqu xmmword [rbp - 0x58], xmm0
call qword [sym.imp.ntoskrnl.exe_ZwCreateFile]
mov ebx, eax
test eax, eax
js 0x140001802
mov rcx, qword [rsp + 0x60]
lea rax, [rsp + 0x78]
mov qword [rsp + 0x40], r15
xor r9d, r9d
mov qword [rsp + 0x38], r15
xor r8d, r8d
mov dword [rsp + 0x30], r14d
xor edx, edx
mov qword [rsp + 0x28], rsi
mov qword [rsp + 0x20], rax
call qword [sym.imp.ntoskrnl.exe_ZwWriteFile]
mov rcx, qword [rsp + 0x60]
mov ebx, eax
call qword [sym.imp.ntoskrnl.exe_ZwClose]
jmp 0x14000180c
cmp ebx, 0xc0000043
cmove ebx, r15d
mov eax, ebx
mov rcx, qword [rbp + 0x220]
xor rcx, rsp
call fcn.140018030
mov rbx, qword [rsp + 0x378]
add rsp, 0x330
pop r15
pop r14
pop rdi
pop rsi
pop rbp
ret
Function at 0x140003900
Capabilities:
Create device object

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rsi
push rdi
sub rsp, 0xd0
mov rax, qword [0x140025ed8]
xor rax, rsp
mov qword [rsp + 0xc0], rax
mov rax, qword [sym.imp.ntoskrnl.exe_InitSafeBootMode]
xor ebp, ebp
mov rsi, rdx
mov rbx, rcx
cmp dword [rax], ebp
ja 0x1400039f6
test rcx, rcx
je 0x1400039f6
mov rdi, qword [rcx + 0x28]
test rdi, rdi
je 0x1400039f6
or dword [rdi + 0x68], 0x20
xor r9d, r9d
xor r8d, r8d
xor edx, edx
mov rcx, rsi
call fcn.1400124e4
mov qword [0x140026320], rax
test rax, rax
je 0x1400039f6
lea rcx, [rdi + 0x48]
lea rdi, [0x140026328]
mov rdx, rdi
lea r8, [0x140026350]
call fcn.140001330
mov r9, rdi
lea r8, [0x140019210]
lea edx, [rbp + 0x32]
lea rcx, [rsp + 0x50]
call sub.ntoskrnl.exe_swprintf_s
lea rdx, [rsp + 0x50]
lea rcx, [rsp + 0x40]
call qword [sym.imp.ntoskrnl.exe_RtlInitUnicodeString]
lea rax, [0x1400263f8]
xor edx, edx
mov qword [rsp + 0x30], rax
lea r9d, [rbp + 0x22]
mov byte [rsp + 0x28], bpl
lea r8, [rsp + 0x40]
mov rcx, rbx
mov dword [rsp + 0x20], ebp
call qword [sym.imp.ntoskrnl.exe_IoCreateDevice]
test eax, eax
jns 0x140003a1e
mov rcx, qword [0x140026320]
xor edx, edx
call qword [sym.imp.ntoskrnl.exe_ExFreePoolWithTag]
mov qword [0x140026320], rbp
mov eax, 0xc0000001
mov rcx, qword [rsp + 0xc0]
xor rcx, rsp
call fcn.140018030
mov rbx, qword [rsp + 0x100]
add rsp, 0xd0
pop rdi
pop rsi
pop rbp
ret
mov rax, qword [0x1400263f8]
lea r8, [0x140018f00]
mov r9, rdi
lea rcx, [0x140026380]
mov edx, 0x32
or dword [rax + 0x30], 4
call sub.ntoskrnl.exe_swprintf_s
lea rdx, [0x140026380]
lea rcx, [0x1400263e8]
call qword [sym.imp.ntoskrnl.exe_RtlInitUnicodeString]
lea rdx, [rsp + 0x40]
lea rcx, [0x1400263e8]
call qword [sym.imp.ntoskrnl.exe_IoCreateSymbolicLink]
test eax, eax
jns 0x140003a77
mov word [0x1400263e8], bp
jmp 0x140003a92
lfence
mov qword [rbx + 0x68], rbp
call fcn.140012d6c
mov rdx, rsi
mov rcx, rbx
call fcn.140001a78
test eax, eax
jns 0x140003abc
lfence
mov rcx, qword [0x140026320]
call fcn.1400083c8
mov rcx, qword [0x140026320]
call fcn.140008898
mov rcx, rbx
call fcn.140003ae0
xor eax, eax
jmp 0x1400039fb
mov rcx, qword [0x140026320]
call fcn.1400083c8
mov rcx, qword [0x140026320]
call fcn.140008898
jmp 0x140003ab5

Function at 0x140004344
Capabilities:
Create thread

Disassembly:
sub rsp, 0x48
xor eax, eax
cmp byte [0x140026410], al
jne 0x1400043a2
xor r8d, r8d
mov byte [0x140026410], 1
xor edx, edx
lea rcx, [0x140026428]
call qword [sym.imp.ntoskrnl.exe_KeInitializeEvent]
and qword [rsp + 0x30], 0
lea rax, [0x140003e40]
mov qword [rsp + 0x28], rax
lea rcx, [0x140026408]
and qword [rsp + 0x20], 0
xor r9d, r9d
xor r8d, r8d
mov edx, 0x1fffff
call qword [sym.imp.ntoskrnl.exe_PsCreateSystemThread]
test eax, eax
jns 0x1400043a2
lfence
add rsp, 0x48
ret
Function at 0x140004a9c
Capabilities:
Encode data using xor

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rbp
push rdi
push r14
lea rbp, [rsp - 0x140]
sub rsp, 0x240
mov rax, qword [0x140025ed8]
xor rax, rsp
mov qword [rbp + 0x130], rax
xor r10d, r10d
mov dword [rsp], 0x43727453
mov r14, rcx
mov dword [rsp + 4], 0x74707972
mov eax, r10d
lea rcx, [rsp + 0x10]
mov r11, r8
mov esi, edx
mov ebx, 0x100
mov byte [rcx], al
inc eax
inc rcx
cmp eax, ebx
jb 0x140004af1
test r8, r8
je 0x140004b06
test r9d, r9d
jne 0x140004b10
lea r11, [rsp]
mov r9d, 8
mov r8d, r10d
lea rdi, [rbp + 0x20]
mov eax, r8d
xor edx, edx
div r9d
mov eax, r9d
inc r8d
sub eax, edx
dec eax
mov cl, byte [rax + r11]
mov byte [rdi], cl
inc rdi
cmp r8d, ebx
jb 0x140004b17
mov r9d, r10d
mov r8, r10
movsx edx, byte [rsp + r8 + 0x10]
movsx ecx, byte [rbp + r8 + 0x20]
add ecx, r9d
add ecx, edx
movzx r9d, cl
mov al, byte [rsp + r9 + 0x10]
mov byte [rsp + r8 + 0x10], al
inc r8
mov byte [rsp + r9 + 0x10], dl
sub rbx, 1
jne 0x140004b3d
mov ebx, r10d
mov r11d, r10d
test esi, esi
jle 0x140004bb9
lea eax, [rbx + 1]
mov r8d, r11d
movzx ebx, al
inc r11d
movsx r9d, byte [rsp + rbx + 0x10]
lea eax, [r10 + r9]
movzx r10d, al
mov al, byte [rsp + r10 + 0x10]
mov byte [rsp + rbx + 0x10], al
mov byte [rsp + r10 + 0x10], r9b
add r9b, byte [rsp + rbx + 0x10]
movzx eax, r9b
mov dl, byte [rsp + rax + 0x10]
xor dl, byte [r8 + r14]
xor dl, r9b
mov byte [r8 + r14], dl
cmp r11d, esi
jl 0x140004b74
mov rcx, qword [rbp + 0x130]
xor rcx, rsp
call fcn.140018030
lea r11, [rsp + 0x240]
mov rbx, qword [r11 + 0x28]
mov rsi, qword [r11 + 0x30]
mov rsp, r11
pop r14
pop rdi
pop rbp
ret