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

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
push r14
push r15
sub rsp, 0x60
mov rbx, rcx
lea r14, [rcx + 0x68]
xor edi, edi
mov edx, 4
mov rcx, rbx
call fcn.140011270
mov ebp, eax
mov r15d, 0xc0000001
cmp eax, 1
ja 0x140007408
mov esi, dword [rbx + 0x80]
sub esi, dword [rbx + 0x18]
add esi, 0x1ff
and esi, 0xfffffe00
je 0x140007414
and qword [rsp + 0x40], 0
xor r9d, r9d
mov rax, qword [rbx + 0x70]
xor r8d, r8d
mov rcx, qword [rbx + 0x60]
xor edx, edx
mov qword [rsp + 0x38], r14
mov dword [rsp + 0x30], esi
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x50]
mov qword [rsp + 0x20], rax
call qword [sym.imp.ntoskrnl.exe_ZwWriteFile]
mov rcx, qword [rsp + 0x58]
mov edi, eax
add qword [r14], rcx
test eax, eax
js 0x140007411
mov eax, esi
cmp rax, rcx
jne 0x140007411
mov rax, qword [rbx + 0x70]
mov qword [rbx + 0x10], rax
mov eax, dword [rbx + 0x80]
mov dword [rbx + 0x18], eax
test ebp, ebp
jne 0x140007414
jmp 0x14000737d
mov edi, r15d
lea r11, [rsp + 0x60]
cmp ebp, 1
mov rbx, qword [r11 + 0x20]
mov rbp, qword [r11 + 0x28]
cmovne edi, r15d
mov rsi, qword [r11 + 0x30]
mov eax, edi
mov rsp, r11
pop r15
pop r14
pop rdi
ret

Function at 0x140007554
Capabilities:
Read file on windows

Disassembly:
mov rax, rsp
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rbp
push rsi
push rdi
push r14
sub rsp, 0x60
and qword [rax + 8], 0
mov rsi, rdx
mov ebp, r8d
mov rbx, rcx
mov ecx, ebp
lea r8, [rax + 8]
mov edx, 0x200000
call fcn.14000dae8
mov rdi, rax
test rax, rax
jne 0x140007597
mov eax, 0xc000009a
jmp 0x140007675
mov r10, qword [rsi]
lea r14, [rbx + 0x68]
mov qword [rbx + 0x60], r10
mov eax, dword [rsi + 0xc]
mov qword [r14], rax
mov rcx, qword [rsi + 0x10]
mov esi, ebp
mov qword [rbx + 0x58], rcx
cmp rbp, rcx
jl 0x1400075b9
mov esi, ecx
and qword [rsp + 0x40], 0
lea rax, [rsp + 0x50]
mov qword [rsp + 0x38], r14
xor r9d, r9d
mov dword [rsp + 0x30], esi
xor r8d, r8d
mov qword [rsp + 0x28], rdi
xor edx, edx
mov rcx, r10
mov qword [rsp + 0x20], rax
call qword [sym.imp.ntoskrnl.exe_ZwReadFile]
test eax, eax
js 0x14000765e
mov eax, esi
cmp rax, qword [rsp + 0x58]
jne 0x14000765e
lfence
sub qword [rbx + 0x58], rax
lea rdx, [0x140016090]
add qword [r14], rax
mov r8d, 0x58
and qword [rbx + 0x10], 0
mov rcx, rbx
and dword [rbx + 0x18], 0
and qword [rbx + 0x30], 0
and qword [rbx + 0x38], 0
and qword [rbx + 0x40], 0
mov qword [rbx], rdi
mov dword [rbx + 8], esi
call fcn.140012fd0
test eax, eax
je 0x14000763d
mov ebx, 0xc000009a
jmp 0x140007663
mov rax, qword [rsp + 0x80]
mov qword [rbx + 0x78], rax
xor eax, eax
mov dword [rbx + 0x80], ebp
mov qword [rbx + 0x70], rdi
mov byte [rbx + 0x84], 0
jmp 0x140007675
mov ebx, 0xc0000001
mov rdx, qword [rsp + 0x80]
mov rcx, rdi
call fcn.14000db74
mov eax, ebx
lea r11, [rsp + 0x60]
mov rbx, qword [r11 + 0x28]
mov rbp, qword [r11 + 0x30]
mov rsp, r11
pop r14
pop rdi
pop rsi
ret
Function at 0x1400078b4
Capabilities:
Get file attributes

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rsi
push rdi
push r14
push r15
sub rsp, 0x70
mov rax, qword [0x1400220f0]
xor rax, rsp
mov qword [rsp + 0x60], rax
mov r14, rdx
mov rbp, rcx
mov ecx, dword [0x140022120]
mov edx, 0x428
mov r8d, 0x64526346
call qword [sym.imp.ntoskrnl.exe_ExAllocatePoolWithTag]
mov rdi, rax
test rax, rax
jne 0x1400078ff
mov eax, 0xc000009a
jmp 0x140007955
add rax, 0x227
mov dword [rsp + 0x20], 5
and rax, 0xfffffffffffffe00
lea r8, [rsp + 0x48]
mov r9d, 0x18
mov qword [rdi + 0x20], rax
lea rdx, [rsp + 0x38]
mov rcx, rbp
call qword [sym.imp.ntoskrnl.exe_ZwQueryInformationFile]
mov esi, eax
test eax, eax
js 0x140007948
mov r15d, 0x200
cmp qword [rsp + 0x50], r15
jge 0x140007976
mov esi, 0xc0000004
xor edx, edx
mov rcx, rdi
call qword [sym.imp.ntoskrnl.exe_ExFreePoolWithTag]
mov eax, esi
mov rcx, qword [rsp + 0x60]
xor rcx, rsp
call fcn.1400157c0
mov rbx, qword [rsp + 0xb0]
add rsp, 0x70
pop r15
pop r14
pop rdi
pop rsi
pop rbp
ret
lfence
mov rbx, qword [rsp + 0x50]
lea rdx, [rsp + 0x30]
mov r8, qword [rdi + 0x20]
mov rcx, rbp
mov qword [rsp + 0x30], rbx
call fcn.1400071a4
mov r8d, eax
mov ecx, eax
test eax, eax
je 0x140007a01
sub ecx, 1
je 0x1400079c3
cmp ecx, 1
je 0x1400079ae
mov esi, 0xc0000014
jmp 0x140007948
mov rax, qword [rdi + 0x20]
mov dword [rdi + 0xc], r15d
mov rcx, qword [rax + 0x20]
sub rcx, r15
mov qword [rdi + 0x10], rcx
jmp 0x140007a09
mov rdx, qword [rdi + 0x20]
mov r9d, dword [rdx + 0x24]
add r9d, r15d
mov dword [rdi + 0xc], r9d
mov ecx, dword [rdx + 0x14]
mov eax, dword [rdx + 0x1c]
shl rax, cl
mov qword [rdi + 0x10], rax
mov rcx, qword [rdx + 0x38]
cmp rax, rcx
jle 0x1400079ee
mov qword [rdi + 0x10], rcx
jmp 0x1400079f1
mov rcx, rax
mov eax, r9d
add rax, rcx
cmp rax, rbx
jle 0x140007a09
jmp 0x140007943
and dword [rdi + 0xc], 0
mov qword [rdi + 0x10], rbx
lfence
mov rax, qword [rsp + 0x30]
mov qword [rdi + 0x18], rax
mov qword [rdi], rbp
mov dword [rdi + 8], r8d
mov qword [r14], rdi
jmp 0x140007953

Function at 0x14000b0d0
Capabilities:
Encode data using xor

Disassembly:
xor r10d, r10d
movabs rax, 0x7931213611683828
mov r9, rcx
cmp qword [rcx], rax
jne 0x14000b155
lea r8, [rcx + 0x4f]
lea r11, [rcx + 8]
cmp r8, r11
jb 0x14000b128
test edx, edx
jne 0x14000b10d
mov cl, byte [r8 - 2]
add cl, byte [r8]
xor cl, 0x55
mov byte [r8], cl
dec r8
cmp r8, r11
jae 0x14000b0f6
jmp 0x14000b128
mov dl, byte [r8]
lea rax, [r8 - 1]
mov cl, byte [rax]
sub dl, cl
xor dl, 0x5a
mov byte [r8], dl
mov r8, rax
mov dl, cl
cmp rax, r11
jae 0x14000b110
lea rdx, [r9 + 0x50]
lea rcx, [r9 + 0x10]
jmp 0x14000b13b
movzx eax, byte [rcx]
add r10d, eax
inc rcx
cmp rcx, rdx
jb 0x14000b132
cmp dword [r9 + 0xc], r10d
jne 0x14000b155
mov ecx, dword [r9 + 0x1c]
sub ecx, 0x41
cmp ecx, 0x19
ja 0x14000b155
mov al, 1
ret
xor al, al
ret
Function at 0x14000b190
Capabilities:
Encode data using xor

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rbp
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
push r14
sub rsp, 0x20
mov rbx, rdx
lea rsi, [rcx + 0x50]
xor edx, edx
mov r14d, r8d
mov rbp, r9
mov rdi, rcx
lea r8d, [rdx + 0x50]
call fcn.140015d40
lea rdx, [rdi + 8]
movabs rax, 0x7931213611683828
mov qword [rdi], rax
lea rcx, [rdi + 0x10]
mov dword [rdx], 0x50
mov rax, qword [rbx]
mov qword [rcx], rax
movzx eax, byte [rsp + 0x50]
mov dword [rdi + 0x1c], eax
mov dword [rdi + 0x18], 2
mov rax, qword [rbx]
mov qword [rdi + 0x20], rax
test rbp, rbp
je 0x14000b214
mov byte [rdi + 0x2f], 1
movups xmm0, xmmword [rbp]
movups xmmword [rdi + 0x30], xmm0
movups xmm1, xmmword [rbp + 0x10]
movups xmmword [rdi + 0x40], xmm1
and dword [rdi + 0xc], 0
cmp rcx, rsi
jae 0x14000b232
xor r8d, r8d
movzx eax, byte [rcx]
inc rcx
add r8d, eax
mov dword [rdi + 0xc], r8d
cmp rcx, rsi
jb 0x14000b220
cmp rdx, rsi
jae 0x14000b260
test r14d, r14d
jne 0x14000b24f
mov al, byte [rdx]
xor al, 0x55
sub al, byte [rdx - 2]
mov byte [rdx], al
inc rdx
cmp rdx, rsi
jb 0x14000b23c
jmp 0x14000b260
mov al, byte [rdx]
xor al, 0x5a
add al, byte [rdx - 1]
mov byte [rdx], al
inc rdx
cmp rdx, rsi
jb 0x14000b24f
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
mov rdi, qword [rsp + 0x48]
add rsp, 0x20
pop r14
ret
Function at 0x14000b27c
Capabilities:
Encode data using xor

Disassembly:
mov qword [rsp + 0x20], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
mov rbp, rsp
sub rsp, 0x70
mov rax, qword [0x1400220f0]
xor rax, rsp
mov qword [rbp - 0x10], rax
mov rcx, qword [rcx]
xor eax, eax
mov r15, rdx
mov qword [rbp - 0x20], rax
movabs rdx, 0xaeea6428d3b997b3
mov word [rbp - 0x18], ax
mov r12d, r8d
lea rax, [rcx + rdx]
xor rcx, rdx
xor r13d, r13d
mov qword [rbp - 0x30], rax
mov qword [rbp - 0x28], rcx
movzx r9d, r13w
movzx ebx, r13w
mov r10d, r13d
mov r8d, r13d
lea esi, [r13 + 4]
movzx ecx, word [rbp + r8 - 0x30]
inc r10d
movzx edx, word [rbp + r8 - 0x28]
lea r8, [r8 + 2]
lea eax, [rdx + rcx]
shr eax, 3
add r9w, ax
add dx, r9w
xor dx, cx
mov word [rbp + r8 - 0x32], dx
cmp r10d, esi
jb 0x14000b2e2
lea rcx, [rbp - 0x27]
mov edx, 1
movzx eax, byte [rcx - 1]
inc edx
add bx, ax
movzx eax, bx
shr ax, 2
add byte [rcx], al
inc rcx
cmp edx, 8
jb 0x14000b31a
mov edi, dword [rbp - 0x30]
lea eax, [r9 + rbx]
mov r10d, dword [rbp - 0x2c]
mov r8, qword [rbp - 0x28]
add edi, dword [rbp - 0x24]
xor r10d, r8d
movzx ecx, ax
mov eax, 0xcccccccd
mul ecx
shr edx, 2
lea eax, [rdx + rdx*4]
sub ecx, eax
mov eax, 0x100000
cmp edi, eax
jae 0x14000b366
or edi, eax
mov eax, esi
or r14d, 0xffffffff
sub eax, ecx
mov edx, 5
shl eax, 3
mov cl, al
mov eax, r8d
shr r14d, cl
shr r8d, 0x18
and r14d, r10d
shr eax, 0x10
mov r9d, r8d
movzx ecx, al
lea r8, [0x140016450]
mov dword [rsp + 0x20], ecx
lea rcx, [rbp - 0x20]
call fcn.14000647c
and bl, 1
lea r8, [rbp - 0x20]
mov r9d, 5
movzx edx, word [r8]
lea eax, [rdx - 0x30]
cmp ax, 9
ja 0x14000b3da
mov al, bl
neg al
sbb cx, cx
and cx, 0xfff6
sub cx, 0xffbf
add cx, dx
test bl, bl
mov word [r8], cx
sete bl
jmp 0x14000b3ed
sub dx, 0x61
cmp dx, r9w
jbe 0x14000b3ed
mov eax, 0x72
mov word [r8], ax
add r8, 2
sub rsi, 1
jne 0x14000b3af
movzx r9d, word [rbp - 0x20]
lea rax, [rbp - 0x1e]
mov qword [rsp + 0x30], rax
lea r8, [0x140016470]
mov dword [rsp + 0x28], r14d
mov rdx, r12
mov rcx, r15
mov dword [rsp + 0x20], edi
call fcn.14000647c
mov rcx, qword [rbp - 0x10]
xor rcx, rsp
call fcn.1400157c0
mov rbx, qword [rsp + 0xc8]
add rsp, 0x70
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret

Function at 0x14000b544
Capabilities:
Set registry value

Disassembly:
test rcx, rcx
je 0x14000b5e2
push rbx
sub rsp, 0x40
mov rbx, rcx
xor edx, edx
lea rcx, [rsp + 0x60]
call fcn.14000ad98
test eax, eax
js 0x14000b5dd
mov rdx, qword [rsp + 0x60]
lea r8, [rsp + 0x50]
lea rcx, [rsp + 0x58]
call fcn.14000aed8
test eax, eax
js 0x14000b5d2
lea rdx, [0x1400165f0]
lea rcx, [rsp + 0x30]
call qword [sym.imp.ntoskrnl.exe_RtlInitUnicodeString]
mov rax, qword [0x1400221b8]
test rax, rax
je 0x14000b5a0
btr dword [rax + 4], 7
mov eax, dword [rbx + 8]
lea rcx, [rbx + 0xc]
mov r9d, dword [rbx + 4]
lea rdx, [rsp + 0x30]
mov dword [rsp + 0x28], eax
xor r8d, r8d
mov qword [rsp + 0x20], rcx
mov rcx, qword [rsp + 0x58]
call qword [sym.imp.ntoskrnl.exe_ZwSetValueKey]
mov rcx, qword [rsp + 0x58]
call qword [sym.imp.ntoskrnl.exe_ZwClose]
mov rcx, qword [rsp + 0x60]
call qword [sym.imp.ntoskrnl.exe_ZwClose]
add rsp, 0x40
pop rbx
ret
Function at 0x14000b5e4
Capabilities:
Set registry value

Disassembly:
push rbx
sub rsp, 0x40
mov byte [0x1400221a0], 1
mov rbx, rcx
test dl, dl
je 0x14000b60b
xor r8d, r8d
lea rcx, [0x1400163e0]
lea edx, [r8 + 0x10]
call fcn.14000b03c
and qword [rsp + 0x28], 0
lea rax, [rsp + 0x60]
mov r9d, 0x2001f
mov qword [rsp + 0x20], rax
lea r8, [0x140015fc0]
mov rdx, rbx
xor ecx, ecx
call fcn.14000e1fc
mov ebx, eax
test eax, eax
js 0x14000b685
lea rdx, [0x140016440]
mov dword [rsp + 0x58], 0x40000000
lea rcx, [rsp + 0x30]
call qword [sym.imp.ntoskrnl.exe_RtlInitUnicodeString]
mov rcx, qword [rsp + 0x60]
lea rax, [rsp + 0x58]
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 rcx, qword [rsp + 0x60]
call qword [sym.imp.ntoskrnl.exe_ZwClose]
mov eax, ebx
add rsp, 0x40
pop rbx
ret
Function at 0x14000f090
Capabilities:
Query or enumerate registry value

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rbp
mov qword [rax + 0x18], rsi
push rdi
sub rsp, 0x40
and dword [rax + 0x20], 0
mov rbp, rcx
lea rcx, [rax - 0x18]
mov rsi, r8
call qword [sym.imp.ntoskrnl.exe_RtlInitUnicodeString]
xor r9d, r9d
lea rax, [rsp + 0x68]
mov qword [rsp + 0x28], rax
lea rdx, [rsp + 0x30]
and dword [rsp + 0x20], 0
mov rcx, rbp
lea r8d, [r9 + 2]
call qword [sym.imp.ntoskrnl.exe_ZwQueryValueKey]
mov ebx, eax
cmp eax, 0x80000005
je 0x14000f0ec
cmp eax, 0xc0000023
jne 0x14000f153
mov edx, dword [rsp + 0x68]
mov r8d, 0x62696c52
mov ecx, dword [0x140022120]
call qword [sym.imp.ntoskrnl.exe_ExAllocatePoolWithTag]
mov rdi, rax
test rax, rax
je 0x14000f14e
mov ecx, dword [rsp + 0x68]
lea rax, [rsp + 0x68]
mov qword [rsp + 0x28], rax
lea rdx, [rsp + 0x30]
mov dword [rsp + 0x20], ecx
mov r9, rdi
mov rcx, rbp
mov r8d, 2
call qword [sym.imp.ntoskrnl.exe_ZwQueryValueKey]
mov ebx, eax
test eax, eax
js 0x14000f13e
mov qword [rsi], rdi
jmp 0x14000f153
lfence
xor edx, edx
mov rcx, rdi
call qword [sym.imp.ntoskrnl.exe_ExFreePoolWithTag]
jmp 0x14000f153
mov ebx, 0xc000009a
mov rbp, qword [rsp + 0x58]
mov eax, ebx
mov rbx, qword [rsp + 0x50]
mov rsi, qword [rsp + 0x60]
add rsp, 0x40
pop rdi
ret

Function at 0x14000f418
Capabilities:
Create thread

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
push rdi
sub rsp, 0x70
and qword [rax - 0x30], 0
mov rdi, r8
and qword [rax - 0x28], 0
lea r8, [rax - 0x38]
mov qword [rax - 0x48], rdx
xorps xmm0, xmm0
mov qword [rax - 0x50], rcx
xor r9d, r9d
and qword [rax - 0x58], 0
lea rcx, [rax + 0x20]
mov edx, 0x1fffff
mov dword [rax - 0x38], 0x30
mov dword [rax - 0x20], 0x200
movdqu xmmword [rax - 0x18], xmm0
call qword [sym.imp.ntoskrnl.exe_PsCreateSystemThread]
mov ebx, eax
test eax, eax
js 0x14000f4a9
test rdi, rdi
je 0x14000f49b
and qword [rsp + 0x28], 0
xor r9d, r9d
mov rcx, qword [rsp + 0x98]
xor r8d, r8d
mov edx, 0x1fffff
mov qword [rsp + 0x20], rdi
call qword [sym.imp.ntoskrnl.exe_ObReferenceObjectByHandle]
mov ebx, eax
mov rcx, qword [rsp + 0x98]
call qword [sym.imp.ntoskrnl.exe_ZwClose]
mov eax, ebx
mov rbx, qword [rsp + 0x80]
add rsp, 0x70
pop rdi
ret
Function at 0x14000fca0
Capabilities:
Set file attributes

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
mov qword [rax + 0x18], rdi
push rbp
push r14
push r15
lea rbp, [rax - 0x57]
sub rsp, 0x90
mov r15, rdx
mov esi, r8d
mov rdx, rcx
mov r14b, r9b
lea rcx, [rbp - 0x19]
call qword [sym.imp.ntoskrnl.exe_RtlInitUnicodeString]
and qword [rbp + 0xf], 0
lea rax, [rbp - 0x19]
xorps xmm0, xmm0
mov dword [rsp + 0x28], 0x60
and dword [rsp + 0x20], 0
lea r9, [rbp - 9]
lea r8, [rbp + 7]
mov qword [rbp + 0x17], rax
mov edx, 0x40000000
mov dword [rbp + 7], 0x30
lea rcx, [rbp - 0x21]
mov dword [rbp + 0x1f], 0x240
movdqu xmmword [rbp + 0x27], xmm0
call qword [sym.imp.ntoskrnl.exe_ZwOpenFile]
test eax, eax
jns 0x14000fd25
lfence
jmp 0x14000fd9d
mov ecx, dword [0x140022120]
lea edi, [rsi + 0x16]
mov edx, edi
mov r8d, 0x62696c52
call qword [sym.imp.ntoskrnl.exe_ExAllocatePoolWithTag]
mov rbx, rax
test rax, rax
jne 0x14000fd4b
mov edi, 0xc000009a
jmp 0x14000fd91
mov byte [rax], r14b
lea rcx, [rbx + 0x14]
mov rax, qword [rbp + 0x7f]
mov r8, rsi
mov rdx, r15
mov qword [rbx + 8], rax
mov dword [rbx + 0x10], esi
call fcn.140015a80
mov rcx, qword [rbp - 0x21]
lea rdx, [rbp - 9]
mov r9d, edi
mov dword [rsp + 0x20], 0xa
mov r8, rbx
call qword [sym.imp.ntoskrnl.exe_ZwSetInformationFile]
xor edx, edx
mov rcx, rbx
mov edi, eax
call qword [sym.imp.ntoskrnl.exe_ExFreePoolWithTag]
mov rcx, qword [rbp - 0x21]
call qword [sym.imp.ntoskrnl.exe_ZwClose]
mov eax, edi
lea r11, [rsp + 0x90]
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rdi, qword [r11 + 0x30]
mov rsp, r11
pop r15
pop r14
pop rbp
ret

Function at 0x14000fdbc
Capabilities:
Get file attributes
Set file attributes

Disassembly:
mov r11, rsp
mov qword [r11 + 0x18], rbx
mov qword [r11 + 0x20], rsi
push rdi
sub rsp, 0x70
mov rax, qword [0x1400220f0]
xor rax, rsp
mov qword [rsp + 0x60], rax
mov edi, r8d
mov rbx, rdx
mov rsi, rcx
test r8b, 1
jne 0x14000fe32
mov r9d, 0x18
mov dword [rsp + 0x20], 5
lea r8, [r11 - 0x30]
lea rdx, [r11 - 0x40]
call qword [sym.imp.ntoskrnl.exe_ZwQueryInformationFile]
test eax, eax
js 0x14000fe32
mov rcx, qword [rsp + 0x50]
cmp rcx, rbx
je 0x14000fe58
test dil, 8
jne 0x14000fe32
test dil, 2
je 0x14000fe27
cmp rcx, rbx
jle 0x14000fe32
jmp 0x14000fe58
test dil, 4
je 0x14000fe32
cmp rcx, rbx
jl 0x14000fe58
mov r9d, 8
mov qword [rsp + 0x30], rbx
lea r8, [rsp + 0x30]
mov dword [rsp + 0x20], 0x14
lea rdx, [rsp + 0x38]
mov rcx, rsi
call qword [sym.imp.ntoskrnl.exe_ZwSetInformationFile]
mov rcx, qword [rsp + 0x60]
xor rcx, rsp
call fcn.1400157c0
lea r11, [rsp + 0x70]
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rsp, r11
pop rdi
ret
Function at 0x140011ac0
Capabilities:
Encrypt data using rc4 prga

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
push r14
push r15
sub rsp, 0x20
mov ebp, dword [rcx + 0x44]
mov rdi, rcx
mov r9d, dword [rcx + 0x9c]
mov edx, dword [rdi + 0x94]
mov esi, dword [rdi + 0x58]
mov ecx, dword [rdi + 0x44]
sub esi, edx
add ecx, 0xfffffefa
sub esi, r9d
add ecx, ebp
cmp edx, ecx
jb 0x140011b7d
mov rcx, qword [rdi + 0x50]
mov r8, rbp
lea rdx, [rcx + rbp]
call fcn.140015a80
mov r9d, dword [rdi + 0x74]
mov rax, qword [rdi + 0x68]
sub dword [rdi + 0x98], ebp
sub dword [rdi + 0x94], ebp
sub dword [rdi + 0x84], ebp
lea r8, [rax + r9*2]
xor eax, eax
lea r8, [r8 - 2]
movzx edx, word [r8]
movzx ecx, dx
sub cx, bp
cmp edx, ebp
cmovae ax, cx
mov word [r8], ax
add r9d, 0xffffffff
jne 0x140011b30
mov rax, qword [rdi + 0x60]
mov r9d, ebp
lea r8, [rax + rbp*2]
xor eax, eax
lea r8, [r8 - 2]
movzx edx, word [r8]
movzx ecx, dx
sub cx, bp
cmp edx, ebp
cmovae ax, cx
mov word [r8], ax
add r9d, 0xffffffff
jne 0x140011b5b
add esi, ebp
mov r14, qword [rdi]
mov ecx, dword [r14 + 8]
test ecx, ecx
je 0x140011c3d
mov edx, dword [rdi + 0x9c]
mov r15d, dword [rdi + 0x94]
add r15, rdx
add r15, qword [rdi + 0x50]
cmp ecx, esi
cmovbe esi, ecx
test esi, esi
je 0x140011be9
mov rax, qword [r14 + 0x28]
sub ecx, esi
mov dword [r14 + 8], ecx
cmp dword [rax + 0x2c], 1
jne 0x140011bcc
mov rdx, qword [r14]
mov r8d, esi
mov ecx, dword [r14 + 0x4c]
call fcn.140014b84
mov dword [r14 + 0x4c], eax
mov rdx, qword [r14]
mov rcx, r15
mov r8d, esi
mov ebx, esi
call fcn.140015a80
add qword [r14], rbx
add dword [r14 + 0xc], esi
mov edx, dword [rdi + 0x9c]
lea r9d, [rdx + rsi]
mov dword [rdi + 0x9c], r9d
cmp r9d, 3
jb 0x140011c27
mov eax, dword [rdi + 0x94]
mov rdx, qword [rdi + 0x50]
mov ecx, dword [rdi + 0x80]
movzx r8d, byte [rax + rdx]
mov dword [rdi + 0x70], r8d
shl r8d, cl
inc eax
movzx eax, byte [rax + rdx]
xor r8d, eax
and r8d, dword [rdi + 0x7c]
mov dword [rdi + 0x70], r8d
cmp r9d, 0x106
jae 0x140011c3d
mov rax, qword [rdi]
cmp dword [rax + 8], 0
jne 0x140011ae5
mov rbx, qword [rsp + 0x40]
mov rbp, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
add rsp, 0x20
pop r15
pop r14
pop rdi
ret
Function at 0x14001725c
Capabilities:
Encode data using xor

Disassembly:
xor r9b, r9b
lea r8, [rcx + 0xf]
cmp dword [rcx], 0x66522301
lea r10, [rcx + 4]
mov rdx, rcx
jne 0x1400172bb
cmp r8, r10
jb 0x140017295
mov r11b, byte [r8]
lea rax, [r8 - 1]
xor r11b, 0xa5
mov cl, byte [rax]
sub r11b, cl
mov byte [r8], r11b
mov r8, rax
mov r11b, cl
cmp rax, r10
jae 0x14001727a
mov al, byte [rdx + 5]
sub al, 0x41
cmp al, 0x19
ja 0x1400172bb
lea rcx, [rdx + 0x10]
add rdx, 8
jmp 0x1400172ae
add r9b, byte [rdx]
inc rdx
cmp rdx, rcx
jb 0x1400172a8
cmp byte [r10], r9b
jne 0x1400172bb
mov al, 1
ret
xor al, al
ret

Function at 0x1400172c0
Capabilities:
Encode data using xor

Disassembly:
mov qword [rsp + 8], rbx
mov byte [rcx + 5], r8b
lea r9, [rcx + 8]
mov dword [rcx], 0x66522301
lea r10, [rcx + 0x10]
mov rax, qword [rdx]
lea r8, [rcx + 4]
mov qword [r9], rax
mov rbx, rdx
shr al, 1
mov r11, rcx
mov byte [rcx + 6], al
mov byte [rcx + 7], 0
mov byte [r8], 0
cmp r9, r10
jae 0x140017309
xor eax, eax
add al, byte [r9]
inc r9
mov byte [r8], al
cmp r9, r10
jb 0x1400172fb
mov rdx, r8
cmp r8, r10
jae 0x140017323
mov cl, byte [rdx - 1]
add cl, byte [rdx]
xor cl, 0xa5
mov byte [rdx], cl
inc rdx
cmp rdx, r10
jb 0x140017311
mov rax, qword [rbx]
lea rcx, [r11 + 0x18]
mov qword [r10], rax
mov edx, 8
cmp byte [rcx], 0
jne 0x14001733f
mov al, byte [r8]
inc r8
mov byte [rcx], al
inc rcx
sub rdx, 1
jne 0x140017332
mov rbx, qword [rsp + 8]
ret
Function at 0x140017504
Capabilities:
Delete registry value

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
push r14
push r15
sub rsp, 0x30
mov rbx, qword [rcx + 0x68]
mov rbp, r8
mov r14, rdx
mov r15, r9
mov rdi, rcx
mov r9, rbx
mov rdx, rbp
mov rcx, r14
lea r8, [rbx + 0xb8]
xor esi, esi
call fcn.14001765c
test eax, eax
js 0x14001763f
lfence
mov r9, qword [rdi + 0x68]
mov rdx, r15
mov r8, qword [rsp + 0x70]
add r9, 0x180
mov rcx, rbx
call fcn.1400179fc
test al, al
je 0x14001763f
test byte [rbx + 0xe], 4
je 0x140017636
mov al, byte [rbx + 0x28]
cmp al, 0x53
je 0x14001758e
cmp al, 0x58
je 0x14001758e
xor r8b, r8b
mov r9b, 2
jmp 0x140017594
mov r8b, 1
mov r9b, 3
movabs rax, 0xfffff78000000014
mov rax, qword [rax]
mov qword [rdi + 0x70], rax
mov rcx, qword [rbx + 4]
test rcx, rcx
jle 0x140017605
cmp rcx, rax
jg 0x140017605
lfence
mov rcx, qword [rdi + 0x70]
mov eax, 0x446f8657
sub rcx, qword [rbx + 4]
sar rcx, 0x20
mul ecx
sub ecx, edx
shr ecx, 1
add ecx, edx
shr ecx, 7
cmp ecx, dword [rbx + 0x10]
jae 0x140017610
lfence
mov byte [rdi + 0x5d], r9b
mov rax, qword [rbx + 4]
mov qword [rdi + 0x78], rax
mov eax, dword [rbx + 0x10]
mov dword [rdi + 0x80], eax
mov eax, dword [rbx + 0x10]
sub eax, ecx
movzx ecx, ax
mov esi, ecx
or esi, 0x90000000
test r8b, r8b
cmove esi, ecx
test r8b, r8b
je 0x14001763f
mov byte [rdi + 0x60], 1
jmp 0x14001763f
test r8b, r8b
jne 0x14001760a
lfence
mov rdx, rbp
lea rcx, [rsp + 0x20]
call qword [sym.imp.ntoskrnl.exe_RtlInitUnicodeString]
lea rdx, [rsp + 0x20]
mov rcx, r14
call qword [sym.imp.ntoskrnl.exe_ZwDeleteValueKey]
jmp 0x14001763f
mov byte [rdi + 0x5d], sil
mov esi, 0x80000000
mov rbx, qword [rsp + 0x50]
mov eax, esi
mov rsi, qword [rsp + 0x60]
mov rbp, qword [rsp + 0x58]
add rsp, 0x30
pop r15
pop r14
pop rdi
ret

Function at 0x1400176a8
Capabilities:
Query or enumerate registry value

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x40
mov rdi, rcx
mov edx, 0x30
mov ecx, dword [0x140022120]
mov r8d, 0x746f7250
mov dword [rsp + 0x58], edx
call qword [sym.imp.ntoskrnl.exe_ExAllocatePoolWithTag]
mov rbx, rax
test rax, rax
je 0x140017727
lea rdx, [0x140018f60]
lea rcx, [rsp + 0x30]
call qword [sym.imp.ntoskrnl.exe_RtlInitUnicodeString]
mov ecx, dword [rsp + 0x58]
lea rax, [rsp + 0x58]
mov qword [rsp + 0x28], rax
lea rdx, [rsp + 0x30]
mov dword [rsp + 0x20], ecx
mov r9, rbx
mov rcx, rdi
mov r8d, 2
call qword [sym.imp.ntoskrnl.exe_ZwQueryValueKey]
test eax, eax
jns 0x140017727
lfence
xor edx, edx
mov rcx, rbx
call qword [sym.imp.ntoskrnl.exe_ExFreePoolWithTag]
xor ebx, ebx
mov rax, rbx
mov rbx, qword [rsp + 0x50]
add rsp, 0x40
pop rdi
ret