joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1400bb8c8
Capabilities:
Encode data using xor

Disassembly:
push rbp
push r14
push r15
mov rbp, rsp
sub rsp, 0x40
mov qword [rbp - 0x18], 0xfffffffffffffffe
mov qword [rsp + 0x60], rbx
mov qword [rsp + 0x70], rsi
mov qword [rsp + 0x78], rdi
mov esi, r9d
mov rdi, r8
mov r14d, edx
mov rbx, rcx
mov ecx, edx
sub ecx, 0xe
je 0x1400bba42
sub ecx, 1
je 0x1400bb9e6
sub ecx, 1
je 0x1400bb98f
cmp ecx, 1
je 0x1400bb934
test r9d, r9d
je 0x1400bba97
mov edx, r14d
mov rcx, rdi
call fcn.14008f630
add esi, 0xffffffff
jne 0x1400bb91f
jmp 0x1400bba97
mov qword [rbp - 0x10], rdi
mov byte [rbp - 8], 0
mov edx, r9d
mov rcx, rbx
call fcn.1400bd030
mov r14, qword [rbx]
mov r15, qword [rbx + 8]
cmp r14, r15
je 0x1400bb98a
mov esi, 1
mov rbx, r14
add r14, 8
mov byte [rbp - 8], 0
lea rdx, [rbp - 0x20]
mov rcx, rdi
call fcn.140096a84
mov rax, qword [rbp - 0x20]
mov rcx, rax
shr rcx, 1
and rax, rsi
neg rax
xor rcx, rax
mov qword [rbx], rcx
cmp r14, r15
jne 0x1400bb958
jmp 0x1400bba97
mov qword [rbp - 0x10], rdi
mov byte [rbp - 8], 0
mov edx, r9d
mov rcx, rbx
call fcn.1400bd030
mov r14, qword [rbx]
mov r15, qword [rbx + 8]
cmp r14, r15
je 0x1400bb9e1
mov esi, 1
mov rbx, r14
add r14, 8
mov byte [rbp - 8], 0
lea rdx, [rbp + 0x28]
mov rcx, rdi
call fcn.14008a6ec
mov eax, dword [rbp + 0x28]
mov ecx, eax
shr ecx, 1
and eax, esi
neg eax
xor eax, ecx
cdqe
mov qword [rbx], rax
cmp r14, r15
jne 0x1400bb9b3
jmp 0x1400bba97
mov qword [rbp - 0x10], rdi
mov byte [rbp - 8], 0
mov edx, r9d
mov rcx, rbx
call fcn.1400bd030
mov r14, qword [rbx]
mov r15, qword [rbx + 8]
cmp r14, r15
je 0x1400bba40
mov esi, 1
mov rbx, r14
add r14, 8
mov byte [rbp - 8], 0
lea rdx, [rbp + 0x28]
mov rcx, rdi
call fcn.14009eb20
movzx eax, word [rbp + 0x28]
movzx ecx, ax
shr cx, 1
and ax, si
neg ax
xor ax, cx
movsx rax, ax
mov qword [rbx], rax
cmp r14, r15
jne 0x1400bba0a
jmp 0x1400bba97
mov qword [rbp - 0x10], rdi
mov byte [rbp - 8], 0
mov edx, r9d
mov rcx, rbx
call fcn.1400bd030
mov r8, qword [rbx]
mov r10, qword [rbx + 8]
cmp r8, r10
je 0x1400bba97
mov esi, 1
mov r11, r8
add r8, 8
mov byte [rbp - 8], 0
mov eax, dword [rdi + 0x18]
mov r9d, dword [rdi + 0x20]
sub eax, r9d
cmp eax, esi
jb 0x1400bbab0
mov rcx, qword [rdi + 0x10]
movsx rdx, byte [r9 + rcx]
lea eax, [r9 + 1]
mov dword [rdi + 0x20], eax
mov qword [r11], rdx
cmp r8, r10
jne 0x1400bba66
mov rbx, qword [rsp + 0x60]
mov rsi, qword [rsp + 0x70]
mov rdi, qword [rsp + 0x78]
add rsp, 0x40
pop r15
pop r14
pop rbp
ret
mov edx, esi
mov rcx, rdi
call fcn.14006fbcc
int3

Function at 0x1400c9390
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x18
xor edx, edx
lea rax, [rcx - 1]
cmp rax, 0xfffffffffffffffd
ja 0x1400c93dc
mov eax, 0x5a4d
cmp word [rcx], ax
jne 0x1400c93d4
cmp dword [rcx + 0x3c], edx
jl 0x1400c93d4
cmp dword [rcx + 0x3c], 0x10000000
jae 0x1400c93d4
movsxd rax, dword [rcx + 0x3c]
add rax, rcx
mov qword [rsp], rax
cmp dword [rax], 0x4550
cmovne rax, rdx
mov rdx, rax
mov qword [rsp], rax
jmp 0x1400c93dc
mov rax, rdx
add rsp, 0x18
ret
Function at 0x12fe0
Capabilities:
Encode data using xor

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
push rsi
push rdi
push r12
sub rsp, 0x3d0
mov rax, qword [0x0002c100]
xor rax, rsp
mov qword [rsp + 0x3c0], rax
mov rdi, rcx
movabs rax, 0x453144334635327b
lea rdx, [rsp + 0x30]
lea rcx, [rsp + 0x20]
mov ebx, r8d
mov qword [rsp + 0x20], rax
call fcn.00012bb4
lea rdx, [rsp + 0xc0]
lea rcx, [rsp + 0x30]
call fcn.00012c40
test ebx, ebx
jle 0x13146
lea ebp, [rbx - 1]
mov r12d, 0x20
shr ebp, 3
inc ebp
lea rdx, [rsp + 0x30]
mov rcx, rdi
call fcn.00012bb4
lea rcx, [rsp + 0x30]
call fcn.00012d88
xor ebx, ebx
lea rsi, [rsp + 0xc0]
lea rcx, [rsp + 0x70]
lea rdx, [rsp + 0x50]
mov r8, r12
call fcn.000283d0
lea rcx, [rsp + 0x70]
call fcn.00012e38
xor r11d, r11d
mov al, byte [rsi + r11]
inc r11
xor byte [rsp + r11 + 0x6f], al
cmp r11, 0x30
jl 0x13093
lea rcx, [rsp + 0x70]
call fcn.00012ee8
lea rcx, [rsp + 0x70]
call fcn.00012e90
xor r11d, r11d
mov al, byte [rsp + r11 + 0x70]
inc r11
xor byte [rsp + r11 + 0x2f], al
cmp r11, r12
jl 0x130bc
cmp rbx, 0xf
je 0x13110
lea rcx, [rsp + 0xa0]
lea rdx, [rsp + 0x30]
mov r8, r12
call fcn.000283d0
lea rcx, [rsp + 0x30]
lea rdx, [rsp + 0x50]
mov r8, r12
call fcn.000283d0
lea rcx, [rsp + 0x50]
lea rdx, [rsp + 0xa0]
mov r8, r12
call fcn.000283d0
inc rbx
add rsi, 0x30
cmp rbx, 0x10
jl 0x13074
lea rcx, [rsp + 0x30]
call fcn.00012de0
lea rcx, [rsp + 0x30]
mov rdx, rdi
call fcn.00012bf8
add rdi, 8
sub rbp, 1
jne 0x13053
mov rcx, qword [rsp + 0x3c0]
xor rcx, rsp
call fcn.000281c0
lea r11, [rsp + 0x3d0]
mov rbx, qword [r11 + 0x28]
mov rbp, qword [r11 + 0x30]
mov rsp, r11
pop r12
pop rdi
pop rsi
ret
Function at 0x13174
Capabilities:
Encode data using xor

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rbp
push rsi
push rdi
push r12
sub rsp, 0x3d0
mov rax, qword [0x0002c100]
xor rax, rsp
mov qword [rsp + 0x3c0], rax
mov rax, qword [rdx]
mov rsi, rcx
lea rdx, [rsp + 0x30]
lea rcx, [rsp + 0x20]
mov ebx, r8d
mov qword [rsp + 0x20], rax
call fcn.00012bb4
lea rdx, [rsp + 0xc0]
lea rcx, [rsp + 0x30]
call fcn.00012c40
test ebx, ebx
jle 0x132d2
lea ebp, [rbx - 1]
mov r12d, 0x20
shr ebp, 3
inc ebp
lea rdx, [rsp + 0x30]
mov rcx, rsi
call fcn.00012bb4
lea rcx, [rsp + 0x30]
call fcn.00012d88
mov ebx, 0xf
lea rdi, [rsp + 0x390]
lea rcx, [rsp + 0x70]
lea rdx, [rsp + 0x50]
mov r8, r12
call fcn.000283d0
lea rcx, [rsp + 0x70]
call fcn.00012e38
xor r11d, r11d
mov al, byte [rdi + r11]
inc r11
xor byte [rsp + r11 + 0x6f], al
cmp r11, 0x30
jl 0x13223
lea rcx, [rsp + 0x70]
call fcn.00012ee8
lea rcx, [rsp + 0x70]
call fcn.00012e90
xor r11d, r11d
mov al, byte [rsp + r11 + 0x70]
inc r11
xor byte [rsp + r11 + 0x2f], al
cmp r11, r12
jl 0x1324c
test rbx, rbx
je 0x1329f
lea rcx, [rsp + 0xa0]
lea rdx, [rsp + 0x30]
mov r8, r12
call fcn.000283d0
lea rcx, [rsp + 0x30]
lea rdx, [rsp + 0x50]
mov r8, r12
call fcn.000283d0
lea rcx, [rsp + 0x50]
lea rdx, [rsp + 0xa0]
mov r8, r12
call fcn.000283d0
sub rdi, 0x30
sub rbx, 1
jns 0x13204
lea rcx, [rsp + 0x30]
call fcn.00012de0
lea rcx, [rsp + 0x30]
mov rdx, rsi
call fcn.00012bf8
add rsi, 8
sub rbp, 1
jne 0x131e0
mov rcx, qword [rsp + 0x3c0]
xor rcx, rsp
call fcn.000281c0
lea r11, [rsp + 0x3d0]
mov rbx, qword [r11 + 0x30]
mov rbp, qword [r11 + 0x38]
mov rsp, r11
pop r12
pop rdi
pop rsi
ret
Function at 0x13e40
Capabilities:
Hash data with md5

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
push rbp
push rsi
push rdi
push r12
push r13
sub rsp, 0x90
xor ebp, ebp
mov rsi, r8
mov r12, rdx
mov edi, ecx
mov dword [rax - 0x74], 0x67452301
mov dword [rax - 0x78], 0xefcdab89
mov dword [rax + 0x20], 0x98badcfe
mov dword [rax + 0x10], 0x10325476
cmp rdx, rbp
je 0x1405c
mov eax, ecx
lea r13d, [rbp + 0x40]
shr eax, 0x1d
mov dword [rsp + 0x4c], eax
mov eax, ecx
and eax, 0x1fffffff
shl eax, 3
mov dword [rsp + 0x48], eax
mov eax, ecx
shr eax, 6
cmp eax, ebp
jbe 0x13eec
mov ebx, eax
lea rcx, [rsp + 0x50]
mov rdx, rsi
mov r8, r13
call fcn.000283d0
lea r11, [rsp + 0xc8]
lea r9, [rsp + 0xd8]
lea r8, [rsp + 0x40]
lea rdx, [rsp + 0x44]
lea rcx, [rsp + 0x50]
mov qword [rsp + 0x20], r11
call fcn.00013300
add rsi, r13
sub rbx, 1
jne 0x13eaa
lea rcx, [rsp + 0x50]
mov r8, r13
xor edx, edx
call fcn.00028240
mov ebx, edi
lea rcx, [rsp + 0x50]
and ebx, 0x3f
mov rdx, rsi
mov r8, rbx
call fcn.000283d0
and edi, 0x3f
mov byte [rsp + rbx + 0x50], 0x80
cmp dil, 0x37
jbe 0x13f56
lea rax, [rsp + 0xc8]
lea r9, [rsp + 0xd8]
lea r8, [rsp + 0x40]
lea rdx, [rsp + 0x44]
lea rcx, [rsp + 0x50]
mov qword [rsp + 0x20], rax
call fcn.00013300
lea rcx, [rsp + 0x50]
mov r8, r13
xor edx, edx
call fcn.00028240
mov rax, qword [rsp + 0x48]
lea r9, [rsp + 0xd8]
lea r8, [rsp + 0x40]
mov qword [rsp + 0x88], rax
lea rax, [rsp + 0xc8]
lea rdx, [rsp + 0x44]
lea rcx, [rsp + 0x50]
mov qword [rsp + 0x20], rax
call fcn.00013300
mov r11d, dword [rsp + 0xc8]
mov ecx, dword [rsp + 0xd8]
mov edx, dword [rsp + 0x44]
mov r10d, ecx
mov esi, 0xff0000
mov edi, 0xff00
and r10d, esi
mov ebx, r11d
mov eax, r11d
and ebx, esi
mov r9d, edx
shr eax, 0x10
and r9d, esi
or ebx, eax
mov eax, r11d
shl r11d, 0x10
and eax, edi
shr ebx, 8
or eax, r11d
shl eax, 8
or ebx, eax
mov eax, ecx
shr eax, 0x10
mov dword [rsp + 0x30], ebx
or r10d, eax
mov eax, ecx
shl ecx, 0x10
and eax, edi
shr r10d, 8
or eax, ecx
mov ecx, dword [rsp + 0x40]
shl eax, 8
mov r8d, ecx
or r10d, eax
mov eax, ecx
and r8d, esi
shr eax, 0x10
mov dword [rsp + 0x28], r10d
or r8d, eax
mov eax, ecx
shl ecx, 0x10
and eax, edi
shr r8d, 8
or eax, ecx
mov ecx, edx
shl eax, 8
and ecx, edi
or r8d, eax
mov eax, edx
shl edx, 0x10
or ecx, edx
shr eax, 0x10
mov dword [rsp + 0x20], r8d
or r9d, eax
shl ecx, 8
lea r8, [0x00028910]
shr r9d, 8
mov edx, 0x21
or r9d, ecx
mov rcx, r12
call fcn.00011008
cmp eax, ebp
cmovl ebp, eax
mov eax, ebp
jmp 0x14061
mov eax, 0xc000000d
mov rbx, qword [rsp + 0xc0]
add rsp, 0x90
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret

Function at 0x140f0
Capabilities:
Encode data using xor

Disassembly:
or r9d, 0xffffffff
mov r11, rcx
test r8d, r8d
je 0x14122
mov r10d, r8d
movzx eax, byte [rdx]
mov r8d, r9d
mov ecx, r9d
xor r8, rax
shr ecx, 8
inc rdx
movzx eax, r8b
mov r9d, dword [r11 + rax*4]
xor r9d, ecx
sub r10, 1
jne 0x140ff
not r9d
mov eax, r9d
ret
Function at 0x1441c
Capabilities:
Parse pe header
Resolve function by parsing pe exports

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x20
mov r15, rdx
mov rbx, rcx
xor edi, edi
call qword [sym.imp.ntoskrnl.exe_MmIsAddressValid]
cmp al, dil
jne 0x1444f
xor eax, eax
jmp 0x144c2
mov eax, 0x5a4d
cmp word [rbx], ax
jne 0x1444b
movsxd rax, dword [rbx + 0x3c]
cmp dword [rax + rbx], 0x4550
jne 0x1444b
mov eax, dword [rax + rbx + 0x88]
mov esi, edi
add rax, rbx
mov r12d, dword [rax + 0x1c]
mov ebp, dword [rax + 0x20]
mov r13d, dword [rax + 0x24]
mov r14d, dword [rax + 0x18]
add r12, rbx
add rbp, rbx
add r13, rbx
cmp r14d, edi
jbe 0x144bf
mov edx, dword [rbp]
mov rcx, r15
add rdx, rbx
call qword [sym.imp.ntoskrnl.exe__stricmp]
cmp eax, edi
je 0x144af
inc esi
add rbp, 4
cmp esi, r14d
jb 0x1448f
jmp 0x144bf
movsxd rax, esi
movzx ecx, word [r13 + rax*2]
mov edi, dword [r12 + rcx*4]
add rdi, rbx
mov rax, rdi
mov rbx, qword [rsp + 0x50]
mov rbp, qword [rsp + 0x58]
mov rsi, qword [rsp + 0x60]
add rsp, 0x20
pop r15
pop r14
pop r13
pop r12
pop rdi
ret

Function at 0x144e8
Capabilities:
Enumerate processes via ntquerysysteminformation
Find process by pid
Get system information on windows

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rbp
mov qword [rax + 0x20], rsi
push rdi
push r12
push r13
sub rsp, 0x20
mov rbp, rdx
xor edx, edx
mov r12, rcx
lea edi, [rdx + 5]
lea r9, [rax + 0x18]
xor r13d, r13d
mov ecx, edi
xor r8d, r8d
mov dword [rax + 0x18], r13d
call qword [sym.imp.ntoskrnl.exe_ZwQuerySystemInformation]
mov ebx, dword [rsp + 0x50]
cmp ebx, r13d
jne 0x14534
mov eax, 0xc0000001
jmp 0x145b7
mov rdx, rbx
xor ecx, ecx
call qword [sym.imp.ntoskrnl.exe_ExAllocatePool]
mov rsi, rax
cmp rax, r13
je 0x1452a
lea r9, [rsp + 0x50]
mov r8d, ebx
mov rdx, rax
mov ecx, edi
call qword [sym.imp.ntoskrnl.exe_ZwQuerySystemInformation]
cmp eax, r13d
mov ebx, eax
jl 0x145aa
mov ebx, 0xc0000001
mov rdi, rsi
mov eax, dword [rdi]
add rdi, rax
je 0x14594
cmp qword [rdi + 0x50], r13
je 0x14594
cmp word [rdi + 0x38], r13w
je 0x14594
mov rcx, qword [rdi + 0x40]
cmp rcx, r13
je 0x14594
mov rdx, r12
call qword [sym.imp.ntoskrnl.exe__wcsicmp]
cmp eax, r13d
je 0x1459b
cmp dword [rdi], r13d
je 0x145aa
jmp 0x14569
mov rcx, qword [rdi + 0x50]
mov rdx, rbp
call qword [sym.imp.ntoskrnl.exe_PsLookupProcessByProcessId]
mov ebx, eax
xor edx, edx
mov rcx, rsi
call qword [sym.imp.ntoskrnl.exe_ExFreePoolWithTag]
mov eax, ebx
mov rbx, qword [rsp + 0x40]
mov rbp, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x58]
add rsp, 0x20
pop r13
pop r12
pop rdi
ret
Function at 0x145d8
Capabilities:
Enumerate processes via ntquerysysteminformation
Get system information on windows

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rbp
mov qword [rax + 0x20], rsi
push rdi
sub rsp, 0x20
and dword [rax + 0x18], 0
mov rbp, rdx
mov rsi, rcx
xor ebx, ebx
lea r9, [rax + 0x18]
xor r8d, r8d
lea edi, [rbx + 5]
xor edx, edx
mov ecx, edi
call qword [sym.imp.ntoskrnl.exe_ZwQuerySystemInformation]
cmp eax, 0xc0000004
jne 0x1464b
mov edx, dword [rsp + 0x40]
xor ecx, ecx
call qword [sym.imp.ntoskrnl.exe_ExAllocatePool]
mov rbx, rax
test rax, rax
jne 0x1462e
mov eax, 0xc000009a
jmp 0x14699
mov r8d, dword [rsp + 0x40]
lea r9, [rsp + 0x40]
mov rdx, rax
mov ecx, edi
call qword [sym.imp.ntoskrnl.exe_ZwQuerySystemInformation]
mov edi, eax
test eax, eax
jns 0x1464f
jmp 0x1468c
test eax, eax
jne 0x14699
mov rcx, rbx
cmp qword [rbx + 0x50], rsi
je 0x14668
cmp dword [rcx], 0
je 0x14687
mov eax, dword [rcx]
add rcx, rax
cmp qword [rcx + 0x50], rsi
jne 0x14658
add rcx, 0x100
je 0x14687
test rbp, rbp
je 0x14687
mov rcx, qword [rcx + 0x30]
mov rdx, rbp
call qword [sym.imp.ntoskrnl.exe_PsLookupThreadByThreadId]
mov edi, eax
jmp 0x1468c
mov edi, 0xc0000001
xor edx, edx
mov rcx, rbx
call qword [sym.imp.ntoskrnl.exe_ExFreePoolWithTag]
mov eax, edi
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x48]
add rsp, 0x20
pop rdi
ret
Function at 0x1517c
Capabilities:
Delete file
Write file on windows

Disassembly:
mov r11, rsp
mov qword [r11 + 8], rbx
mov qword [r11 + 0x10], rbp
mov qword [r11 + 0x18], rsi
push rdi
sub rsp, 0xd0
xor ebp, ebp
xor eax, eax
mov edi, r8d
mov word [rsp + 0x78], bp
mov rbx, rcx
mov rsi, rdx
lea r8d, [rbp + 0x28]
lea rcx, [r11 - 0x38]
xor edx, edx
mov qword [r11 + 0x20], rbp
mov qword [r11 - 0x5e], rax
mov dword [r11 - 0x56], eax
mov word [r11 - 0x52], ax
mov dword [r11 - 0x40], ebp
call fcn.00028240
xor eax, eax
lea rcx, [rsp + 0x78]
mov rdx, rbx
mov dword [rsp + 0x88], ebp
mov dword [rsp + 0x70], ebp
mov dword [rsp + 0x8c], eax
mov qword [rsp + 0x90], rax
mov dword [rsp + 0x74], eax
call qword [fcn.004e696c]
lea rax, [rsp + 0x78]
lea rcx, [rsp + 0x98]
mov dword [rsp + 0x98], 0x30
mov qword [rsp + 0xa0], rbp
mov dword [rsp + 0xb0], 0x240
mov qword [rsp + 0xb8], rbp
mov qword [rsp + 0xa8], rax
mov qword [rsp + 0xc0], rbp
call qword [sym.imp.ntoskrnl.exe_ZwDeleteFile]
mov dword [rsp + 0x68], 0x100
mov qword [rsp + 0x60], rbp
mov dword [rsp + 0x58], ebp
mov dword [rsp + 0x50], ebp
mov qword [rsp + 0x48], rbp
mov dword [rsp + 0x40], 0x68
mov dword [rsp + 0x38], 3
mov dword [rsp + 0x30], ebp
lea r9, [rsp + 0x88]
lea r8, [rsp + 0x98]
lea rcx, [rsp + 0xf8]
mov edx, 0x40100000
mov dword [rsp + 0x28], 0x80
mov qword [rsp + 0x20], rbp
call qword [sym.imp.ntoskrnl.exe_IoCreateFile]
cmp eax, ebp
mov ebx, eax
jl 0x152e1
mov rcx, qword [rsp + 0xf8]
mov qword [rsp + 0x40], rbp
lea rax, [rsp + 0x70]
mov qword [rsp + 0x38], rax
lea rax, [rsp + 0x88]
mov dword [rsp + 0x30], edi
xor r9d, r9d
xor r8d, r8d
xor edx, edx
mov qword [rsp + 0x28], rsi
mov qword [rsp + 0x20], rax
call qword [sym.imp.ntoskrnl.exe_ZwWriteFile]
mov ebx, eax
mov rcx, qword [rsp + 0xf8]
cmp rcx, rbp
je 0x152f4
call qword [sym.imp.ntoskrnl.exe_ZwClose]
lea r11, [rsp + 0xd0]
mov eax, ebx
mov rbx, qword [r11 + 0x10]
mov rbp, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
mov rsp, r11
pop rdi
ret

Function at 0x15898
Capabilities:
Delete file

Disassembly:
mov rax, rsp
mov qword [rax + 0x18], rbx
push rdi
sub rsp, 0x70
and qword [rax + 0x10], 0
and qword [rax + 8], 0
and qword [rax - 0x30], 0
and qword [rax - 0x18], 0
and qword [rax - 0x10], 0
mov rdi, rcx
mov qword [rax - 0x28], rcx
lea rcx, [rax - 0x38]
mov dword [rax - 0x38], 0x30
mov dword [rax - 0x20], 0x240
call qword [sym.imp.ntoskrnl.exe_ZwDeleteFile]
mov ebx, eax
test eax, eax
je 0x15981
mov dword [rsp + 0x30], 0x68
lea rcx, [rsp + 0x88]
mov r9d, 0x80
mov r8d, 0x80100000
mov rdx, rdi
mov dword [rsp + 0x28], 1
mov dword [rsp + 0x20], 1
call fcn.0001549c
mov ebx, eax
test eax, eax
js 0x15981
mov r8, qword [0x0002a1c8]
mov rcx, qword [rsp + 0x88]
and qword [rsp + 0x28], 0
mov r8, qword [r8]
xor r9d, r9d
lea rax, [rsp + 0x80]
lea edx, [r9 + 1]
mov qword [rsp + 0x20], rax
call qword [sym.imp.ntoskrnl.exe_ObReferenceObjectByHandle]
mov ebx, eax
test eax, eax
js 0x15973
mov rcx, qword [rsp + 0x80]
call fcn.00015710
mov rcx, qword [rsp + 0x80]
call qword [sym.imp.ntoskrnl.exe_ObfDereferenceObject]
mov rcx, qword [rsp + 0x88]
call qword [sym.imp.ntoskrnl.exe_ZwClose]
mov eax, ebx
mov rbx, qword [rsp + 0x90]
add rsp, 0x70
pop rdi
ret
Function at 0x15998
Capabilities:
Set file attributes
Write file on windows

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
push rdi
sub rsp, 0x70
and qword [rax - 0x28], 0
mov rbx, r8
mov edi, r9d
lea r8, [rax - 0x28]
lea rdx, [rax - 0x20]
mov r9d, 8
mov rsi, rcx
mov dword [rax - 0x58], 0xe
call qword [sym.imp.ntoskrnl.exe_ZwSetInformationFile]
test eax, eax
js 0x15a4f
xor eax, eax
add rdi, rbx
mov qword [rsp + 0x90], rax
jmp 0x15a48
or dword [rsp + 0x94], 0xffffffff
xor eax, eax
xor r9d, r9d
and qword [rsp + 0x40], rax
mov qword [rsp + 0x58], rax
mov qword [rsp + 0x60], rax
lea rax, [rsp + 0x90]
xor r8d, r8d
xor edx, edx
mov qword [rsp + 0x38], rax
lea rax, [rsp + 0x58]
mov dword [rsp + 0x30], 0x2000
mov rcx, rsi
mov qword [rsp + 0x28], rbx
mov dword [rsp + 0x90], 0xfffffffe
mov qword [rsp + 0x20], rax
call qword [sym.imp.ntoskrnl.exe_ZwWriteFile]
test eax, eax
js 0x15a4f
mov eax, dword [rsp + 0x60]
add rbx, rax
cmp rbx, rdi
jb 0x159e4
xor eax, eax
lea r11, [rsp + 0x70]
mov rbx, qword [r11 + 0x10]
mov rsi, qword [r11 + 0x18]
mov rsp, r11
pop rdi
ret
Function at 0x15bac
Capabilities:
Delete registry key
Query or enumerate registry key

Disassembly:
mov rax, rsp
mov qword [rax + 0x18], rbx
push rbp
push rsi
push rdi
sub rsp, 0x70
and qword [rax - 0x28], 0
and qword [rax - 0x20], 0
mov qword [rax - 0x38], rcx
mov qword [rax - 0x40], rdx
lea rcx, [rax + 0x10]
lea r8, [rax - 0x48]
mov edx, 0xf003f
mov dword [rax - 0x48], 0x30
mov dword [rax - 0x30], 0x240
call qword [sym.imp.ntoskrnl.exe_ZwOpenKey]
mov ebx, eax
test eax, eax
js 0x15dba
mov rcx, qword [rsp + 0x98]
xor r9d, r9d
lea rax, [rsp + 0x90]
lea esi, [r9 + 2]
xor r8d, r8d
mov qword [rsp + 0x20], rax
mov edx, esi
call qword [sym.imp.ntoskrnl.exe_ZwQueryKey]
mov ebx, eax
cmp eax, 0xc0000023
jne 0x15dac
mov edx, dword [rsp + 0x90]
xor ecx, ecx
call qword [sym.imp.ntoskrnl.exe_ExAllocatePool]
mov rdi, rax
test rax, rax
je 0x15dac
mov r8d, dword [rsp + 0x90]
xor edx, edx
mov rcx, rax
call fcn.00028240
mov r9d, dword [rsp + 0x90]
mov rcx, qword [rsp + 0x98]
lea r11, [rsp + 0x90]
mov r8, rdi
mov edx, esi
mov qword [rsp + 0x20], r11
call qword [sym.imp.ntoskrnl.exe_ZwQueryKey]
mov ebx, eax
test eax, eax
js 0x15da1
mov eax, dword [rdi + 0x14]
test eax, eax
je 0x15d83
xor esi, esi
test eax, eax
je 0x15d83
cmp esi, 0xa
jae 0x15da1
mov rcx, qword [rsp + 0x98]
lea rax, [rsp + 0x90]
xor r9d, r9d
mov qword [rsp + 0x28], rax
and dword [rsp + 0x20], 0
xor r8d, r8d
xor edx, edx
call qword [sym.imp.ntoskrnl.exe_ZwEnumerateKey]
mov ebx, eax
cmp eax, 0xc0000023
jne 0x15da1
mov edx, dword [rsp + 0x90]
xor ecx, ecx
call qword [sym.imp.ntoskrnl.exe_ExAllocatePool]
mov rbp, rax
test rax, rax
je 0x15da1
mov r8d, dword [rsp + 0x90]
xor edx, edx
mov rcx, rax
call fcn.00028240
mov ecx, dword [rsp + 0x90]
lea r11, [rsp + 0x90]
mov qword [rsp + 0x28], r11
mov dword [rsp + 0x20], ecx
mov rcx, qword [rsp + 0x98]
mov r9, rbp
xor r8d, r8d
xor edx, edx
call qword [sym.imp.ntoskrnl.exe_ZwEnumerateKey]
mov ebx, eax
test eax, eax
js 0x15d6d
movzx eax, word [rbp + 0xc]
mov rdx, qword [rsp + 0x98]
lea rcx, [rsp + 0x30]
mov word [rsp + 0x30], ax
movzx eax, word [rbp + 0xc]
mov word [rsp + 0x32], ax
lea rax, [rbp + 0x10]
mov qword [rsp + 0x38], rax
call fcn.00015bac
mov ebx, eax
xor edx, edx
mov rcx, rbp
call qword [sym.imp.ntoskrnl.exe_ExFreePoolWithTag]
inc esi
cmp esi, dword [rdi + 0x14]
jb 0x15c9f
mov rcx, qword [rsp + 0x98]
call qword [sym.imp.ntoskrnl.exe_ZwDeleteKey]
mov rcx, qword [rsp + 0x98]
mov ebx, eax
call qword [sym.imp.ntoskrnl.exe_ZwFlushKey]
xor edx, edx
mov rcx, rdi
call qword [sym.imp.ntoskrnl.exe_ExFreePoolWithTag]
mov rcx, qword [rsp + 0x98]
call qword [sym.imp.ntoskrnl.exe_ZwClose]
mov eax, ebx
mov rbx, qword [rsp + 0xa0]
add rsp, 0x70
pop rdi
pop rsi
pop rbp
ret
Function at 0x15fa4
Capabilities:
Query or enumerate registry value

Disassembly:
mov rax, rsp
mov qword [rax + 0x10], rbx
push rdi
sub rsp, 0x70
and qword [rax - 0x48], 0
and dword [rax + 8], 0
and qword [rax - 0x38], 0
and qword [rax - 0x20], 0
and qword [rax - 0x18], 0
mov qword [rax - 0x30], rcx
mov rdi, rdx
lea rcx, [rax - 0x48]
lea r8, [rax - 0x40]
mov edx, 0x20019
mov rbx, r9
mov dword [rax - 0x40], 0x30
mov dword [rax - 0x28], 0x240
call qword [sym.imp.ntoskrnl.exe_ZwOpenKey]
test eax, eax
js 0x1603a
mov rcx, qword [rsp + 0x30]
lea rax, [rsp + 0x80]
mov r9, rbx
mov qword [rsp + 0x28], rax
mov eax, dword [rsp + 0xa0]
mov r8d, 2
mov rdx, rdi
mov dword [rsp + 0x20], eax
call qword [sym.imp.ntoskrnl.exe_ZwQueryValueKey]
mov rcx, qword [rsp + 0x30]
mov ebx, eax
test rcx, rcx
je 0x16038
call qword [sym.imp.ntoskrnl.exe_ZwClose]
mov eax, ebx
mov rbx, qword [rsp + 0x88]
add rsp, 0x70
pop rdi
ret

Function at 0x1684c
Capabilities:
Contain obfuscated stackstrings

Disassembly:
sub rsp, 0x28
mov rax, qword [0x0002c100]
xor rax, rsp
mov qword [rsp + 0x10], rax
mov r9, rcx
mov cl, byte [rcx]
mov eax, 1
mov byte [rsp], 0x2e
mov byte [rsp + 1], 0x30
mov byte [rsp + 2], 0x31
mov edx, eax
mov byte [rsp + 3], 0x32
mov byte [rsp + 4], 0x33
mov byte [rsp + 5], 0x34
mov byte [rsp + 6], 0x35
mov byte [rsp + 7], 0x36
mov byte [rsp + 8], 0x37
mov byte [rsp + 9], 0x38
mov byte [rsp + 0xa], 0x39
test cl, cl
je 0x168cb
cmp cl, 0x2e
jne 0x168ac
add edx, eax
xor r10d, r10d
lea r8, [rsp]
cmp cl, byte [r8]
je 0x168df
add r10d, eax
add r8, rax
cmp r10d, 0xb
jb 0x168b3
xor al, al
cmp edx, 4
je 0x168cd
xor al, al
mov rcx, qword [rsp + 0x10]
xor rcx, rsp
call fcn.000281c0
add rsp, 0x28
ret
add r9, rax
mov cl, byte [r9]
test cl, cl
je 0x168c6
jmp 0x168a5
Function at 0x16b04
Capabilities:
Find process by pid

Disassembly:
mov qword [rsp + 8], rbx
push rbp
push rsi
push rdi
sub rsp, 0x60
mov rsi, rdx
mov edi, ecx
lea rdx, [0x00028cb0]
lea rcx, [rsp + 0x48]
xor ebx, ebx
call qword [fcn.004e696c]
lea rcx, [rsp + 0x48]
call qword [sym.imp.ntoskrnl.exe_MmGetSystemRoutineAddress]
mov rbp, rax
cmp rax, rbx
jne 0x16b43
xor al, al
jmp 0x16c45
lea rdx, [rsp + 0x40]
mov rcx, rdi
call qword [sym.imp.ntoskrnl.exe_PsLookupProcessByProcessId]
cmp eax, ebx
jl 0x16b3c
lea rax, [rsp + 0x98]
mov r9d, 0x80000000
xor r8d, r8d
mov qword [rsp + 0x30], rax
mov rax, qword [0x0002a118]
mov byte [rsp + 0x28], bl
mov rcx, qword [rax]
mov edx, 0x200
mov qword [rsp + 0x20], rcx
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.ntoskrnl.exe_ObOpenObjectByPointer]
cmp eax, ebx
jl 0x16b3c
mov rcx, qword [rsp + 0x98]
xor r9d, r9d
lea rax, [rsp + 0x90]
lea edx, [r9 + 0x1b]
xor r8d, r8d
mov qword [rsp + 0x20], rax
call rbp
cmp eax, 0xc0000004
jne 0x16b3c
mov edx, dword [rsp + 0x90]
movzx eax, word [rsi + 2]
lea ecx, [rdx - 0x10]
cmp eax, ecx
jae 0x16bd4
mov word [rsi], cx
jmp 0x16b3c
mov ecx, 1
mov r8d, 0x69706744
call qword [sym.imp.ntoskrnl.exe_ExAllocatePoolWithTag]
mov rdi, rax
cmp rax, rbx
je 0x16b3c
mov r9d, dword [rsp + 0x90]
mov rcx, qword [rsp + 0x98]
lea rax, [rsp + 0x90]
mov r8, rdi
mov edx, 0x1b
mov qword [rsp + 0x20], rax
call rbp
cmp eax, ebx
jl 0x16c2a
mov rdx, rdi
mov rcx, rsi
call qword [sym.imp.ntoskrnl.exe_RtlCopyUnicodeString]
mov bl, 1
mov rcx, qword [rsp + 0x98]
call qword [sym.imp.ntoskrnl.exe_ZwClose]
xor edx, edx
mov rcx, rdi
call qword [sym.imp.ntoskrnl.exe_ExFreePoolWithTag]
mov al, bl
mov rbx, qword [rsp + 0x80]
add rsp, 0x60
pop rdi
pop rsi
pop rbp
ret