joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1400bb52c
Capabilities:
Read file on windows

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, rcx
test rcx, rcx
jne 0x1400bb24e
call fcn.1400a3920
mov dword [rax], 0x16
call fcn.1400a3528
jmp 0x1400bb39e
mov eax, dword [rcx + 0x14]
shr eax, 0xd
test al, 1
je 0x1400bb39e
mov eax, dword [rcx + 0x14]
shr eax, 0xc
test al, 1
jne 0x1400bb39e
mov eax, dword [rcx + 0x14]
shr eax, 1
test al, 1
je 0x1400bb27d
lock or dword [rcx + 0x14], 0x10
jmp 0x1400bb39e
lock or dword [rcx + 0x14], 1
mov eax, dword [rcx + 0x14]
test eax, 0x4c0
jne 0x1400bb291
call fcn.1400bb92c
mov ebp, dword [rbx + 0x10]
cmp ebp, 1
jne 0x1400bb2a1
mov rax, qword [rbx]
mov r14b, byte [rax]
jmp 0x1400bb2a4
xor r14b, r14b
mov rsi, qword [rbx + 8]
mov rcx, rbx
mov edi, dword [rbx + 0x20]
mov qword [rbx], rsi
call fcn.1400baa2c
mov r8d, edi
mov rdx, rsi
mov ecx, eax
call fcn.1400bff40
mov dword [rbx + 0x10], eax
lea ecx, [rax + 1]
cmp ecx, 2
jbe 0x1400bb38c
mov eax, dword [rbx + 0x14]
test al, 6
jne 0x1400bb337
mov rcx, rbx
call fcn.1400baa2c
cmp eax, 0xffffffff
je 0x1400bb322
mov rcx, rbx
call fcn.1400baa2c
cmp eax, 0xfffffffe
je 0x1400bb322
mov rcx, rbx
call fcn.1400baa2c
movsxd rdi, eax
lea rsi, [0x140383a90]
mov rcx, rbx
sar rdi, 6
call fcn.1400baa2c
and eax, 0x3f
lea rcx, [rax + rax*8]
mov rax, qword [rsi + rdi*8]
lea rdx, [rax + rcx*8]
jmp 0x1400bb329
lea rdx, [0x1400fe7c0]
mov al, byte [rdx + 0x38]
and al, 0x82
cmp al, 0x82
jne 0x1400bb337
lock or dword [rbx + 0x14], 0x20
cmp dword [rbx + 0x20], 0x200
jne 0x1400bb35b
mov eax, dword [rbx + 0x14]
shr eax, 6
test al, 1
je 0x1400bb35b
mov eax, dword [rbx + 0x14]
shr eax, 8
test al, 1
jne 0x1400bb35b
mov dword [rbx + 0x20], 0x1000
mov rdx, qword [rbx]
cmp ebp, 1
jne 0x1400bb379
movzx ecx, byte [rdx]
dec dword [rbx + 0x10]
shl cx, 8
movzx eax, r14b
or cx, ax
inc rdx
jmp 0x1400bb384
movzx ecx, word [rdx]
add dword [rbx + 0x10], 0xfffffffe
add rdx, 2
mov qword [rbx], rdx
movzx eax, cx
jmp 0x1400bb3a3
neg eax
sbb eax, eax
and eax, 8
add eax, 8
lock or dword [rbx + 0x14], eax
and dword [rbx + 0x10], 0
mov eax, 0xffff
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
jmp 0x1400bb218
Function at 0x1400bcef8
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 8], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
mov eax, 0x1050
call fcn.14009cb70
sub rsp, rax
mov rax, qword [0x1400fe3f8]
xor rax, rsp
mov qword [rsp + 0x1040], rax
mov r15, r8
mov rbp, rdx
mov rbx, rcx
call fcn.1400baa2c
xor edi, edi
movsxd r14, eax
cmp dword [rbx + 0x10], edi
jne 0x1400bcf47
mov rax, rbp
jmp 0x1400bd04f
mov rax, qword [rbx]
mov rcx, r14
sub rax, qword [rbx + 8]
and ecx, 0x3f
cqo
mov rbx, r14
sub rax, rdx
sar rbx, 6
sar rax, 1
mov r9, r15
lea r12, [rcx + rcx*8]
mov rsi, rax
lea rax, [0x140000000]
xor r8d, r8d
mov rdx, qword [rax + rbx*8 + 0x383a90]
mov ecx, r14d
mov rdx, qword [rdx + r12*8 + 0x30]
call fcn.1400bd3e8
mov r13, rax
lea rax, [0x140000000]
mov rcx, qword [rax + rbx*8 + 0x383a90]
cmp r13, qword [rcx + r12*8 + 0x30]
jne 0x1400bd04b
mov rcx, qword [rcx + r12*8 + 0x28]
lea r9, [rsp + 0x30]
mov r8d, 0x1000
mov qword [rsp + 0x20], rdi
lea rdx, [rsp + 0x40]
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x1400bd04b
mov r9, r15
xor r8d, r8d
mov rdx, rbp
mov ecx, r14d
call fcn.1400bd3e8
test rax, rax
js 0x1400bd04b
mov eax, dword [rsp + 0x30]
cmp rsi, rax
jg 0x1400bd04b
lea rdx, [rsp + 0x40]
add rdx, rax
lea rcx, [rsp + 0x40]
test rsi, rsi
je 0x1400bd03d
lea r8, [0x140000000]
cmp rcx, rdx
jae 0x1400bd03d
cmp byte [rcx], 0xd
jne 0x1400bd023
lea rax, [rdx - 1]
cmp rcx, rax
jae 0x1400bd032
cmp byte [rcx + 1], 0xa
jne 0x1400bd032
inc rcx
jmp 0x1400bd032
movzx eax, byte [rcx]
movsx rax, byte [rax + r8 + 0xfe9d0]
add rcx, rax
inc rdi
inc rcx
cmp rdi, rsi
jne 0x1400bd005
lea rax, [rsp + 0x40]
sub rcx, rax
lea rax, [rcx + r13]
jmp 0x1400bd04f
or rax, 0xffffffffffffffff
mov rcx, qword [rsp + 0x1040]
xor rcx, rsp
call fcn.14009c8a0
mov rbx, qword [rsp + 0x1090]
add rsp, 0x1050
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
Function at 0x1400bfa94
Capabilities:
Read file on windows

Disassembly:
push rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
sub rsp, 0x30
movsxd rbp, ecx
mov r9, r8
mov rax, rbp
lea rcx, [0x140383a90]
and eax, 0x3f
mov r10, rbp
sar r10, 6
xor edi, edi
mov rsi, rdx
mov r14, rbp
lea r8, [rax + rax*8]
mov rax, qword [rcx + r10*8]
mov ecx, 4
mov qword [rsp + 0x78], rcx
mov r11, qword [rax + r8*8 + 0x28]
lea r12d, [rcx + 6]
test r9, r9
je 0x1400bfaf2
cmp word [rdx], r12w
jne 0x1400bfaf2
or byte [rax + r8*8 + 0x38], cl
jmp 0x1400bfaf8
and byte [rax + r8*8 + 0x38], 0xfb
lea rdx, [rdx + r9*2]
mov rcx, rsi
mov rbx, rsi
cmp rsi, rdx
jae 0x1400bfc53
mov r9d, 0x1a
lea r13d, [r9 - 0xd]
movzx eax, word [rcx]
cmp ax, r9w
je 0x1400bfc2e
lea r9, [rcx + 2]
cmp ax, r13w
je 0x1400bfb31
mov rcx, r9
jmp 0x1400bfb54
cmp r9, rdx
jae 0x1400bfb6b
cmp word [r9], r12w
mov eax, 2
cmove rax, qword [rsp + 0x78]
add rcx, rax
mov eax, r12d
cmp word [r9], r12w
cmovne ax, r13w
mov word [rbx], ax
mov r9d, 0x1a
add rbx, 2
cmp rcx, rdx
jb 0x1400bfb15
jmp 0x1400bfc53
lea r9, [rsp + 0x80]
mov qword [rsp + 0x20], rdi
mov r8d, 2
lea rdx, [rsp + 0x70]
mov rcx, r11
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x1400bfc28
cmp dword [rsp + 0x80], edi
je 0x1400bfc28
mov rdx, r14
lea r11, [0x140383a90]
sar rdx, 6
and r14d, 0x3f
mov rax, qword [r11 + rdx*8]
lea r8, [r14 + r14*8]
test byte [rax + r8*8 + 0x38], 0x48
je 0x1400bfc01
movzx eax, word [rsp + 0x70]
cmp ax, r12w
jne 0x1400bfbd4
mov word [rbx], r12w
jmp 0x1400bfc4f
mov word [rbx], r13w
mov word [rsp + 0x78], ax
mov rax, qword [r11 + rdx*8]
lea rcx, [rax + r8*8]
mov al, byte [rsp + rdi + 0x78]
mov byte [rcx + rdi + 0x3a], al
inc rdi
cmp rdi, 2
jl 0x1400bfbdd
mov rax, qword [r11 + rdx*8]
mov byte [rax + r8*8 + 0x3c], r12b
jmp 0x1400bfc4f
cmp word [rsp + 0x70], r12w
jne 0x1400bfc0e
cmp rbx, rsi
je 0x1400bfbce
mov rdx, 0xfffffffffffffffe
mov ecx, ebp
lea r8d, [rdx + 3]
call fcn.1400bd3f0
cmp word [rsp + 0x70], r12w
je 0x1400bfc53
mov word [rbx], r13w
jmp 0x1400bfc4f
lea r11, [0x140383a90]
mov rcx, qword [r11 + r10*8]
mov al, byte [rcx + r8*8 + 0x38]
test al, 0x40
jne 0x1400bfc4b
or al, 2
mov byte [rcx + r8*8 + 0x38], al
jmp 0x1400bfc53
mov word [rbx], r9w
add rbx, 2
sub rbx, rsi
sar rbx, 1
lea eax, [rbx + rbx]
add rsp, 0x30
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
pop rbx
ret
Function at 0x1400c3014
Capabilities:
Query environment variable

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, 0x40
call qword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
xor esi, esi
mov rbx, rax
test rax, rax
jne 0x1400c3044
xor eax, eax
jmp 0x1400c3107
mov rbp, rbx
cmp word [rax], si
je 0x1400c3069
or rax, 0xffffffffffffffff
inc rax
cmp word [rbp + rax*2], si
jne 0x1400c3050
lea rbp, [rbp + rax*2]
add rbp, 2
cmp word [rbp], si
jne 0x1400c304c
mov qword [rsp + 0x38], rsi
sub rbp, rbx
mov qword [rsp + 0x30], rsi
add rbp, 2
sar rbp, 1
mov r8, rbx
mov r9d, ebp
mov dword [rsp + 0x28], esi
xor edx, edx
mov qword [rsp + 0x20], rsi
xor ecx, ecx
call fcn.1400c19c0
movsxd r14, eax
test eax, eax
jne 0x1400c30a7
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
jmp 0x1400c303d
mov rcx, r14
call fcn.1400b94f4
mov rdi, rax
test rax, rax
jne 0x1400c30c0
xor ecx, ecx
call fcn.1400b94b8
jmp 0x1400c309c
mov qword [rsp + 0x38], rsi
mov r9d, ebp
mov qword [rsp + 0x30], rsi
mov r8, rbx
mov dword [rsp + 0x28], r14d
xor edx, edx
xor ecx, ecx
mov qword [rsp + 0x20], rdi
call fcn.1400c19c0
test eax, eax
jne 0x1400c30f1
mov rcx, rdi
call fcn.1400b94b8
jmp 0x1400c30fb
xor ecx, ecx
call fcn.1400b94b8
mov rsi, rdi
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov rax, rsi
mov rbx, qword [rsp + 0x50]
mov rbp, qword [rsp + 0x58]
mov rsi, qword [rsp + 0x60]
mov rdi, qword [rsp + 0x68]
add rsp, 0x40
pop r14
ret

Function at 0x1400c3124
Capabilities:
Query environment variable

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
call qword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
xor ebp, ebp
mov rbx, rax
test rax, rax
je 0x1400c31ab
mov rsi, rbx
cmp word [rax], bp
je 0x1400c316a
or rax, 0xffffffffffffffff
inc rax
cmp word [rsi + rax*2], bp
jne 0x1400c3154
lea rsi, [rsi + rax*2]
add rsi, 2
cmp word [rsi], bp
jne 0x1400c3150
sub rsi, rbx
add rsi, 2
sar rsi, 1
add rsi, rsi
mov rcx, rsi
call fcn.1400b94f4
mov rdi, rax
test rax, rax
je 0x1400c3198
mov r8, rsi
mov rdx, rbx
mov rcx, rax
call fcn.14009ef80
mov rbp, rdi
xor ecx, ecx
call fcn.1400b94b8
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov rax, rbp
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret
Function at 0x1400ca654
Capabilities:
Set environment variable

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
mov qword [rax + 0x20], rdi
push rbp
push r14
push r15
lea rbp, [rax - 0x5f]
sub rsp, 0xa0
xor r15d, r15d
mov r14, rdx
mov rsi, rcx
mov qword [rbp + 0x17], r15
xor edx, edx
mov qword [rbp + 0x1f], r15
lea rcx, [rbp - 0x39]
mov qword [rbp + 0x27], r15
mov qword [rbp + 0x2f], r15
mov edi, r15d
mov qword [rbp + 0x37], r15
mov byte [rbp + 0x3f], r15b
mov qword [rbp - 0x19], r15
mov qword [rbp - 0x11], r15
mov qword [rbp - 9], r15
mov qword [rbp - 1], r15
mov qword [rbp + 7], r15
mov byte [rbp + 0xf], r15b
call fcn.1400a47cc
mov rax, qword [rbp - 0x31]
mov ebx, 0xfde9
cmp dword [rax + 0xc], ebx
jne 0x1400ca6de
cmp byte [rbp - 0x21], r15b
je 0x1400ca6d9
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, ebx
jmp 0x1400ca714
call fcn.1400bd7b4
test eax, eax
jne 0x1400ca700
cmp byte [rbp - 0x21], r15b
je 0x1400ca6f8
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, 1
jmp 0x1400ca714
cmp byte [rbp - 0x21], r15b
je 0x1400ca711
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, r15d
lea r8, [rbp + 0x77]
mov rcx, rsi
lea rdx, [rbp + 0x17]
call fcn.1400b4864
test eax, eax
jne 0x1400ca7b4
xor edx, edx
lea rcx, [rbp - 0x39]
call fcn.1400a47cc
mov rax, qword [rbp - 0x31]
cmp dword [rax + 0xc], ebx
jne 0x1400ca753
cmp byte [rbp - 0x21], r15b
je 0x1400ca788
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
jmp 0x1400ca788
call fcn.1400bd7b4
test eax, eax
jne 0x1400ca774
cmp byte [rbp - 0x21], r15b
je 0x1400ca76d
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov ebx, 1
jmp 0x1400ca788
cmp byte [rbp - 0x21], r15b
je 0x1400ca785
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov ebx, r15d
mov r9d, ebx
lea r8, [rbp + 0x77]
lea rdx, [rbp - 0x19]
mov rcx, r14
call fcn.1400b4864
mov rdi, qword [rbp - 9]
test eax, eax
jne 0x1400ca7b4
mov rcx, qword [rbp + 0x27]
mov rdx, rdi
call qword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
mov ebx, eax
jmp 0x1400ca7b7
mov ebx, r15d
cmp byte [rbp + 0xf], r15b
je 0x1400ca7c5
mov rcx, rdi
call fcn.1400b94b8
cmp byte [rbp + 0x3f], r15b
je 0x1400ca7d4
mov rcx, qword [rbp + 0x27]
call fcn.1400b94b8
lea r11, [rsp + 0xa0]
mov eax, ebx
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rdi, qword [r11 + 0x38]
mov rsp, r11
pop r15
pop r14
pop rbp
ret
Function at 0x1400cb010
Capabilities:
Clear file content

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 r12
push r14
push r15
sub rsp, 0x20
mov rbx, rdx
mov rsi, r8
xor edx, edx
mov r14d, ecx
lea r8d, [rdx + 1]
call fcn.1400bd3f0
xor edx, edx
mov ecx, r14d
mov r12, rax
lea r8d, [rdx + 2]
call fcn.1400bd3f0
mov rbp, rbx
sub rbp, rax
cmp r12, 0xffffffffffffffff
je 0x1400cb160
cmp rax, 0xffffffffffffffff
je 0x1400cb160
xor edi, edi
test rbp, rbp
jle 0x1400cb10b
lea edx, [rdi + 1]
mov ecx, 0x1000
call fcn.1400b9440
mov rbx, rax
test rax, rax
jne 0x1400cb098
lea edi, [rax + 0xc]
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], edi
jmp 0x1400cb101
mov edx, 0x8000
mov ecx, r14d
call fcn.1400b6554
mov r15d, eax
mov eax, 0x1000
mov r8d, ebp
cmp rbp, rax
mov r9, rsi
mov rdx, rbx
mov ecx, r14d
cmovge r8d, eax
call fcn.1400bc8d8
cmp eax, 0xffffffff
je 0x1400cb0e1
cdqe
sub rbp, rax
test rbp, rbp
jg 0x1400cb0a8
mov edx, r15d
mov ecx, r14d
call fcn.1400b6554
jmp 0x1400cb101
cmp byte [rsi + 0x38], dil
je 0x1400cb0f8
cmp dword [rsi + 0x34], 5
jne 0x1400cb0f8
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], 0xd
cmp byte [rsi + 0x30], dil
je 0x1400cb101
mov edi, dword [rsi + 0x2c]
mov rcx, rbx
call fcn.1400b94b8
jmp 0x1400cb174
jns 0x1400cb174
xor r8d, r8d
mov rdx, rbx
mov ecx, r14d
call fcn.1400bd3f0
cmp rax, 0xffffffffffffffff
jne 0x1400cb12c
cmp byte [rsi + 0x30], dil
je 0x1400cb174
mov edi, dword [rsi + 0x2c]
jmp 0x1400cb174
mov ecx, r14d
call fcn.1400c422c
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x1400cb174
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov byte [rsi + 0x38], 1
mov edi, 0xd
mov dword [rsi + 0x34], eax
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], 0xd
jmp 0x1400cb174
xor edi, edi
cmp byte [rsi + 0x30], dil
je 0x1400cb16d
mov eax, dword [rsi + 0x2c]
jmp 0x1400cb172
mov eax, 0x16
mov edi, eax
xor r8d, r8d
mov rdx, r12
mov ecx, r14d
call fcn.1400bd3f0
mov rbx, qword [rsp + 0x40]
mov eax, edi
mov rdi, qword [rsp + 0x58]
mov rbp, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
add rsp, 0x20
pop r15
pop r14
pop r12
ret
Function at 0x140001700
Capabilities:
Encode data using xor

Disassembly:
push rbx
sub rsp, 0x20
mov ebx, ecx
call fcn.1400017f0
test eax, eax
jne 0x140001719
xor eax, eax
add rsp, 0x20
pop rbx
ret
mov ecx, dword [section..data]
lea r10, [0x140003020]
mov r9, qword [0x140003020]
xor edx, edx
shl ecx, 0xd
xor ecx, dword [section..data]
mov eax, ecx
shr eax, 0x11
xor eax, ecx
mov ecx, eax
shl ecx, 5
xor ecx, eax
mov eax, ecx
mov dword [section..data], ecx
div r9d
mov eax, edx
add rax, rax
cmp ebx, dword [r10 + rax*8 + 8]
jne 0x140001790
mov r8d, ecx
shl ecx, 0xd
xor edx, edx
xor ecx, r8d
mov eax, ecx
shr eax, 0x11
xor eax, ecx
mov ecx, eax
shl ecx, 5
xor ecx, eax
mov eax, ecx
mov r8d, ecx
div r9d
mov eax, edx
add rax, rax
cmp ebx, dword [r10 + rax*8 + 8]
je 0x140001760
mov dword [section..data], ecx
mov eax, edx
add rax, rax
mov rax, qword [r10 + rax*8 + 0x10]
add rsp, 0x20
pop rbx
ret
Function at 0x1400011bc
Capabilities:
Query or enumerate registry value

Disassembly:
push rbx
push rsi
push rdi
sub rsp, 0x70
mov rax, qword [0x14006cb38]
xor rax, rsp
mov qword [rsp + 0x60], rax
mov rbx, rcx
mov edi, r9d
lea rcx, [rsp + 0x38]
mov rsi, r8
call qword [sym.imp.ntoskrnl.exe_RtlInitUnicodeString]
lea rax, [rsp + 0x30]
mov r8d, 2
mov qword [rsp + 0x28], rax
lea r9, [rsp + 0x48]
lea rdx, [rsp + 0x38]
mov dword [rsp + 0x20], 0x14
mov rcx, rbx
call qword [sym.imp.ntoskrnl.exe_ZwQueryValueKey]
test eax, eax
js 0x14000122f
cmp dword [rsp + 0x30], 0x14
ja 0x14000122f
cmp dword [rsp + 0x4c], 4
jne 0x14000122f
cmp dword [rsp + 0x50], 4
jne 0x14000122f
mov edi, dword [rsp + 0x54]
mov dword [rsi], edi
xor eax, eax
mov rcx, qword [rsp + 0x60]
xor rcx, rsp
call fcn.140011110
add rsp, 0x70
pop rdi
pop rsi
pop rbx
ret
Function at 0x1400014b0
Capabilities:
Query or enumerate registry value

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, 0x40
mov rbx, qword [rsp + 0x90]
mov r14, r9
mov r15d, r8d
mov r12, rdx
mov r13, rcx
test rbx, rbx
je 0x140001520
movzx esi, word [rbx]
call fcn.14000b588
mov ecx, eax
mov r8d, 0x67666e43
mov edx, esi
call qword [sym.imp.ntoskrnl.exe_ExAllocatePoolWithTag]
mov rdi, rax
test rax, rax
jne 0x14000150f
mov eax, 0xc0000017
jmp 0x14000165a
mov rdx, qword [rbx + 8]
mov r8, rsi
mov rcx, rax
call fcn.140011300
jmp 0x140001524
xor esi, esi
xor edi, edi
mov rdx, r12
lea rcx, [rsp + 0x30]
call qword [sym.imp.ntoskrnl.exe_RtlInitUnicodeString]
xor r9d, r9d
lea rax, [rsp + 0x90]
mov qword [rsp + 0x28], rax
lea rdx, [rsp + 0x30]
and dword [rsp + 0x20], 0
mov rcx, r13
lea ebp, [r9 + 2]
mov r8d, ebp
call qword [sym.imp.ntoskrnl.exe_ZwQueryValueKey]
cmp eax, 0x80000005
je 0x14000156e
cmp eax, 0xc0000023
jne 0x14000164b
cmp dword [rsp + 0x90], 0x10
jb 0x14000164b
mov ebx, dword [rsp + 0x90]
call fcn.14000b588
mov r12d, 0x67666e43
mov ecx, eax
mov r8d, r12d
mov edx, ebx
call qword [sym.imp.ntoskrnl.exe_ExAllocatePoolWithTag]
mov rbx, rax
test rax, rax
je 0x14000164b
lea rax, [rsp + 0x90]
mov r9, rbx
mov qword [rsp + 0x28], rax
lea rdx, [rsp + 0x30]
mov eax, dword [rsp + 0x90]
mov r8d, ebp
mov rcx, r13
mov dword [rsp + 0x20], eax
call qword [sym.imp.ntoskrnl.exe_ZwQueryValueKey]
test eax, eax
js 0x14000163f
cmp dword [rbx + 4], r15d
jne 0x14000163f
mov ecx, dword [rbx + 8]
lea eax, [rcx - 1]
cmp eax, 0xfffe
ja 0x14000163f
mov esi, ecx
test rdi, rdi
je 0x140001600
mov edx, r12d
mov rcx, rdi
call qword [sym.imp.ntoskrnl.exe_ExFreePoolWithTag]
mov esi, dword [rbx + 8]
mov ebp, esi
call fcn.14000b588
mov ecx, eax
mov edx, esi
mov r8d, r12d
call qword [sym.imp.ntoskrnl.exe_ExAllocatePoolWithTag]
mov rdi, rax
lfence
test rax, rax
jne 0x140001630
mov edx, r12d
mov rcx, rbx
call qword [sym.imp.ntoskrnl.exe_ExFreePoolWithTag]
jmp 0x140001505
lea rdx, [rbx + 0xc]
mov r8, rbp
mov rcx, rax
call fcn.140011300
mov edx, r12d
mov rcx, rbx
call qword [sym.imp.ntoskrnl.exe_ExFreePoolWithTag]
mov qword [r14 + 8], rdi
xor eax, eax
mov word [r14], si
mov word [r14 + 2], si
lea r11, [rsp + 0x40]
mov rbx, qword [r11 + 0x30]
mov rbp, qword [r11 + 0x38]
mov rsi, qword [r11 + 0x40]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rdi
ret
Function at 0x14000171c
Capabilities:
Print debug messages

Disassembly:
push rbx
sub rsp, 0x30
mov r11, rcx
mov ecx, 4
cmp dx, cx
jb 0x1400017a0
movzx r10d, word [r11 + 2]
movzx eax, dx
lea r9, [rcx + r10]
cmp rax, r9
jb 0x1400017a0
sub dx, cx
shr r10w, 1
xor ebx, ebx
mov word [rsp + 0x22], dx
lea r9, [r11 + 4]
movzx ecx, bx
mov qword [rsp + 0x28], r9
cmp bx, r10w
jae 0x140001773
movzx eax, cx
cmp word [r9 + rax*2], bx
je 0x140001773
inc cx
cmp cx, r10w
jb 0x140001760
movzx edx, word [r11]
add cx, cx
mov word [rsp + 0x20], cx
mov ecx, edx
test edx, edx
je 0x1400017d8
sub ecx, 1
je 0x1400017c9
sub ecx, 1
je 0x1400017ba
cmp ecx, 1
je 0x1400017ab
lea rcx, [0x140011970]
call sub.ntoskrnl.exe_DbgPrint
mov eax, 0xc000000d
add rsp, 0x30
pop rbx
ret
mov rdx, r8
lea rcx, [rsp + 0x20]
call fcn.140009c2c
jmp 0x1400017a5
mov rdx, r8
lea rcx, [rsp + 0x20]
call fcn.140009da8
jmp 0x1400017a5
mov rdx, r8
lea rcx, [rsp + 0x20]
call fcn.14000eb68
jmp 0x1400017a5
mov rdx, r8
lea rcx, [rsp + 0x20]
call fcn.14000eae4
jmp 0x1400017a5

Function at 0x1400017e8
Capabilities:
Print debug messages

Disassembly:
push rbx
sub rsp, 0x30
mov r10, rcx
mov rbx, r8
mov ecx, 8
cmp dx, cx
jb 0x14000186d
movzx r11d, word [r10 + 2]
movzx eax, dx
lea r9, [rcx + r11]
cmp rax, r9
jb 0x14000186d
sub dx, cx
shr r11w, 1
xor r9d, r9d
mov word [rsp + 0x22], dx
lea r8, [r10 + 8]
movzx ecx, r9w
mov qword [rsp + 0x28], r8
cmp r9w, r11w
jae 0x140001844
movzx eax, cx
cmp word [r8 + rax*2], r9w
je 0x140001844
inc cx
cmp cx, r11w
jb 0x140001831
movzx edx, word [r10]
add cx, cx
mov word [rsp + 0x20], cx
mov ecx, edx
sub ecx, 4
je 0x1400018b2
sub ecx, 1
je 0x140001895
cmp ecx, 1
je 0x140001878
lea rcx, [0x140011970]
call sub.ntoskrnl.exe_DbgPrint
mov eax, 0xc000000d
add rsp, 0x30
pop rbx
ret
cmp word [r10 + 6], r9w
lea rcx, [rsp + 0x20]
movzx edx, word [r10 + 4]
mov r9, rbx
setne r8b
call fcn.14000bc44
jmp 0x140001872
cmp word [r10 + 6], r9w
lea rcx, [rsp + 0x20]
movzx edx, word [r10 + 4]
mov r9, rbx
setne r8b
call fcn.14000bd78
jmp 0x140001872
cmp word [r10 + 6], r9w
lea rcx, [rsp + 0x20]
movzx edx, word [r10 + 4]
mov r9, rbx
setne r8b
call fcn.14000bb10
jmp 0x140001872

Function at 0x1400018d0
Capabilities:
Print debug messages

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x40
cmp byte [0x14006cb68], 0
lea rax, [0x140011a40]
mov qword [rsp + 0x38], rax
mov dword [rsp + 0x30], 0x30002e
jne 0x140001903
mov eax, 0xc0000225
jmp 0x140001971
lea rcx, [rsp + 0x30]
call qword [sym.imp.ntoskrnl.exe_IoDeleteSymbolicLink]
mov esi, eax
test eax, eax
jns 0x140001925
lfence
mov edx, eax
lea rcx, [0x140011b60]
call sub.ntoskrnl.exe_DbgPrint
mov rcx, qword [0x14006cb70]
call qword [sym.imp.ntoskrnl.exe_IoDeleteDevice]
mov byte [0x14006cb68], 0
mov rdi, cr8
call qword [sym.imp.ntoskrnl.exe_PsGetCurrentThreadId]
mov rbx, rax
call qword [sym.imp.ntoskrnl.exe_PsGetCurrentProcessId]
mov edx, 2
movzx r9d, dil
mov qword [rsp + 0x28], rbx
lea r8, [0x140011ba0]
mov qword [rsp + 0x20], rax
lea ecx, [rdx + 0x4b]
call qword [sym.imp.ntoskrnl.exe_DbgPrintEx]
mov eax, esi
mov rbx, qword [rsp + 0x50]
mov rsi, qword [rsp + 0x58]
add rsp, 0x40
pop rdi
ret
Function at 0x140001984
Capabilities:
Print debug messages

Disassembly:
mov qword [rsp + 8], rbx
push rbp
push rsi
push rdi
sub rsp, 0x20
mov eax, dword [r9]
mov ebp, 0xc
and dword [r9], 0
mov rdi, r9
mov rsi, r8
mov rbx, rcx
cmp dx, bp
jb 0x1400019d2
cmp eax, ebp
jb 0x1400019d2
movzx edx, word [rcx]
mov r8d, edx
sub r8d, 4
je 0x140001a0c
sub r8d, 1
je 0x1400019f8
cmp r8d, 2
je 0x1400019e4
lea rcx, [0x140011970]
call sub.ntoskrnl.exe_DbgPrint
mov eax, 0xc000000d
mov rbx, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
pop rsi
pop rbp
ret
mov ecx, dword [rcx + 8]
lea r8, [rsp + 0x48]
lea rdx, [rsp + 0x58]
call fcn.14000c640
jmp 0x140001a1e
mov ecx, dword [rcx + 8]
lea r8, [rsp + 0x48]
lea rdx, [rsp + 0x58]
call fcn.14000c6bc
jmp 0x140001a1e
mov ecx, dword [rcx + 8]
lea r8, [rsp + 0x48]
lea rdx, [rsp + 0x58]
call fcn.14000c5c4
mov ecx, eax
movzx eax, byte [rsp + 0x48]
mov word [rbx + 4], ax
movzx eax, word [rsp + 0x58]
mov word [rbx + 2], ax
movsd xmm0, qword [rbx]
movsd qword [rsi], xmm0
mov eax, dword [rbx + 8]
mov dword [rsi + 8], eax
mov eax, ecx
mov dword [rdi], ebp
jmp 0x1400019d7

Function at 0x140001a48
Capabilities:
Create device object
Print debug messages

Disassembly:
mov r11, rsp
mov qword [r11 + 8], rbx
mov qword [r11 + 0x18], rsi
mov qword [r11 + 0x20], rdi
push rbp
mov rbp, rsp
sub rsp, 0x60
and qword [rbp + 0x18], 0
lea rax, [0x140011a10]
mov qword [rbp - 0x18], rax
lea r8, [rbp - 0x20]
lea rax, [0x140011a40]
mov dword [rbp - 0x20], 0x280026
mov qword [rbp - 8], rax
mov r9d, 0x22
lea rax, [rbp + 0x18]
mov dword [rbp - 0x10], 0x30002e
mov qword [r11 - 0x38], rax
xor edx, edx
mov byte [rsp + 0x28], 0
mov rdi, rcx
and dword [rsp + 0x20], 0
call qword [sym.imp.ntoskrnl.exe_IoCreateDevice]
mov ebx, eax
test eax, eax
jns 0x140001acd
lfence
mov edx, eax
lea rcx, [0x140011a70]
call sub.ntoskrnl.exe_DbgPrint
mov eax, ebx
jmp 0x140001b7d
lea rdx, [rbp - 0x20]
lea rcx, [rbp - 0x10]
call qword [sym.imp.ntoskrnl.exe_IoCreateSymbolicLink]
mov esi, eax
lfence
test eax, eax
jns 0x140001afe
mov rcx, qword [rbp + 0x18]
call qword [sym.imp.ntoskrnl.exe_IoDeleteDevice]
mov edx, esi
lea rcx, [0x140011ab0]
call sub.ntoskrnl.exe_DbgPrint
jmp 0x140001b7b
lea rax, [0x140001ba0]
mov qword [rdi + 0x70], rax
lea rax, [0x140001ba0]
mov qword [rdi + 0x80], rax
lea rax, [0x140001ba0]
mov qword [rdi + 0x100], rax
lea rax, [0x140001bc0]
mov qword [rdi + 0xe0], rax
mov rax, qword [rbp + 0x18]
mov qword [0x14006cb70], rax
mov byte [0x14006cb68], 1
mov rdi, cr8
call qword [sym.imp.ntoskrnl.exe_PsGetCurrentThreadId]
mov rbx, rax
call qword [sym.imp.ntoskrnl.exe_PsGetCurrentProcessId]
mov edx, 2
movzx r9d, dil
mov qword [rsp + 0x28], rbx
lea r8, [0x140011af0]
mov qword [rsp + 0x20], rax
lea ecx, [rdx + 0x4b]
call qword [sym.imp.ntoskrnl.exe_DbgPrintEx]
mov eax, esi
lea r11, [rsp + 0x60]
mov rbx, qword [r11 + 0x10]
mov rsi, qword [r11 + 0x20]
mov rdi, qword [r11 + 0x28]
mov rsp, r11
pop rbp
ret