joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140019b04
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 0x140019b34
xor eax, eax
jmp 0x140019bf7
mov rbp, rbx
cmp word [rax], si
je 0x140019b59
or rax, 0xffffffffffffffff
inc rax
cmp word [rbp + rax*2], si
jne 0x140019b40
lea rbp, [rbp + rax*2]
add rbp, 2
cmp word [rbp], si
jne 0x140019b3c
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.14001287c
movsxd r14, eax
test eax, eax
jne 0x140019b97
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
jmp 0x140019b2d
mov rcx, r14
call fcn.14001278c
mov rdi, rax
test rax, rax
jne 0x140019bb0
xor ecx, ecx
call fcn.140012750
jmp 0x140019b8c
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.14001287c
test eax, eax
jne 0x140019be1
mov rcx, rdi
call fcn.140012750
jmp 0x140019beb
xor ecx, ecx
call fcn.140012750
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 0x14001b574
Capabilities:
Get file size

Disassembly:
push rbx
sub rsp, 0x20
mov edx, dword [rcx + 0x14]
nop
shr edx, 3
test dl, 1
je 0x14001b58a
mov al, 1
jmp 0x14001b5ea
mov eax, dword [rcx + 0x14]
nop
test al, 0xc0
je 0x14001b59b
mov rax, qword [rcx + 8]
cmp qword [rcx], rax
je 0x14001b5e8
mov ecx, dword [rcx + 0x18]
nop
call fcn.14001a05c
mov rbx, rax
cmp rax, 0xffffffffffffffff
je 0x14001b5e8
mov r9d, 1
lea r8, [rsp + 0x38]
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetFilePointerEx]
test eax, eax
je 0x14001b5e8
lea rdx, [rsp + 0x30]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
je 0x14001b5e8
mov rax, qword [rsp + 0x30]
cmp qword [rsp + 0x38], rax
sete al
jmp 0x14001b5ea
xor al, al
add rsp, 0x20
pop rbx
ret
Function at 0x14001bf20
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 0x20], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x30
movsxd r15, ecx
lea r9, [0x140033530]
mov rax, r15
mov rbp, r15
and eax, 0x3f
sar rbp, 6
mov ecx, 4
xor esi, esi
mov r14, rdx
lea rdi, [rax + rax*8]
mov rax, qword [r9 + rbp*8]
lea r13d, [rcx + 6]
mov r10, qword [rax + rdi*8 + 0x28]
test r8, r8
je 0x14001bf77
cmp word [rdx], r13w
jne 0x14001bf77
or byte [rax + rdi*8 + 0x38], cl
jmp 0x14001bf7c
and byte [rax + rdi*8 + 0x38], 0xfb
lea r8, [rdx + r8*2]
mov rbx, r14
cmp r14, r8
jae 0x14001c0a1
mov r11d, 0xd
lea r12d, [r11 - 0xb]
movzx ecx, word [rdx]
cmp cx, 0x1a
je 0x14001c0c2
lea r9, [rdx + 2]
cmp cx, r11w
je 0x14001bfb5
mov rdx, r9
mov word [rbx], cx
jmp 0x14001bfdc
cmp r9, r8
jae 0x14001bfec
cmp word [r9], r13w
mov rax, r12
mov ecx, 4
cmove rax, rcx
add rdx, rax
mov eax, r13d
cmp word [r9], r13w
cmovne ax, r11w
mov word [rbx], ax
mov rax, r12
add rbx, rax
cmp rdx, r8
jb 0x14001bf96
jmp 0x14001c0a1
lea r9, [rsp + 0x80]
mov qword [rsp + 0x20], rsi
mov r8d, r12d
lea rdx, [rsp + 0x70]
mov rcx, r10
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x14001c096
cmp dword [rsp + 0x80], esi
je 0x14001c096
lea r8, [0x140033530]
mov rax, qword [r8 + rbp*8]
test byte [rax + rdi*8 + 0x38], 0x48
je 0x14001c06e
movzx eax, word [rsp + 0x70]
cmp ax, r13w
jne 0x14001c03e
mov word [rbx], r13w
jmp 0x14001c09e
mov ecx, 0xd
mov word [rsp + 0x78], ax
mov word [rbx], cx
mov rax, qword [r8 + rbp*8]
lea rcx, [rax + rdi*8]
mov al, byte [rsp + rsi + 0x78]
mov byte [rcx + rsi + 0x3a], al
inc rsi
cmp rsi, r12
jl 0x14001c04b
mov rax, qword [r8 + rbp*8]
mov byte [rax + rdi*8 + 0x3c], r13b
jmp 0x14001c09e
cmp word [rsp + 0x70], r13w
jne 0x14001c07b
cmp rbx, r14
je 0x14001c038
mov rdx, 0xfffffffffffffffe
mov ecx, r15d
lea r8d, [rdx + 3]
call fcn.1400192a8
cmp word [rsp + 0x70], r13w
je 0x14001c0a1
mov ecx, 0xd
mov word [rbx], cx
add rbx, r12
sub rbx, r14
sar rbx, 1
lea eax, [rbx + rbx]
mov rbx, qword [rsp + 0x88]
add rsp, 0x30
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
lea r8, [0x140033530]
mov rdx, qword [r8 + rbp*8]
mov al, byte [rdx + rdi*8 + 0x38]
test al, 0x40
jne 0x14001c09b
or al, r12b
mov byte [rdx + rdi*8 + 0x38], al
jmp 0x14001c0a1
Function at 0x1400200d4
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.1400091d0
mov rax, qword [rbp - 0x31]
mov ebx, 0xfde9
cmp dword [rax + 0xc], ebx
jne 0x14002015e
cmp byte [rbp - 0x21], r15b
je 0x140020159
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, ebx
jmp 0x140020194
call fcn.140013398
test eax, eax
jne 0x140020180
cmp byte [rbp - 0x21], r15b
je 0x140020178
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, 1
jmp 0x140020194
cmp byte [rbp - 0x21], r15b
je 0x140020191
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.14000926c
test eax, eax
jne 0x140020234
xor edx, edx
lea rcx, [rbp - 0x39]
call fcn.1400091d0
mov rax, qword [rbp - 0x31]
cmp dword [rax + 0xc], ebx
jne 0x1400201d3
cmp byte [rbp - 0x21], r15b
je 0x140020208
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
jmp 0x140020208
call fcn.140013398
test eax, eax
jne 0x1400201f4
cmp byte [rbp - 0x21], r15b
je 0x1400201ed
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov ebx, 1
jmp 0x140020208
cmp byte [rbp - 0x21], r15b
je 0x140020205
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.14000926c
mov rdi, qword [rbp - 9]
test eax, eax
jne 0x140020234
mov rcx, qword [rbp + 0x27]
mov rdx, rdi
call qword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
mov ebx, eax
jmp 0x140020237
mov ebx, r15d
cmp byte [rbp + 0xf], r15b
je 0x140020245
mov rcx, rdi
call fcn.140012750
cmp byte [rbp + 0x3f], r15b
je 0x140020254
mov rcx, qword [rbp + 0x27]
call fcn.140012750
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 0x140003640
Capabilities:
Encode data using xor
Hash data using fnv

Disassembly:
movabs rax, 0xcbf29ce484222325
mov r9d, 0
sub r8, rdx
je 0x140003674
movabs r10, 0x100000001b3
nop
movzx ecx, byte [r9 + rdx]
inc r9
xor rax, rcx
imul rax, r10
cmp r9, r8
jb 0x140003660
ret
Function at 0x140007e30
Capabilities:
Validate payment card number using luhn algorithm

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x20
mov esi, edx
mov dword [rcx + 0x74], 0
mov rbx, rcx
mov edi, 0x7fffffff
movsx ecx, byte [rbx + 0x78]
lea eax, [rcx - 0x30]
cmp al, 9
ja 0x140007efc
lea r8d, [rcx - 0x30]
cmp r8d, 0xffffffff
je 0x140007efc
mov r9d, dword [rbx + 0x74]
mov ecx, 0x7fffffff
sub ecx, r8d
mov eax, 0x66666667
imul ecx
sar edx, 2
mov eax, edx
shr eax, 0x1f
add edx, eax
cmp r9d, edx
jg 0x140007f15
lea eax, [r9 + r9*4]
dec edi
lea ecx, [r8 + rax*2]
mov rax, qword [rbx]
mov dword [rbx + 0x74], ecx
mov rcx, qword [rbx + 0x10]
cmp rax, rcx
je 0x140007eec
cmp byte [rax], 0x5c
jne 0x140007ee6
lea rdx, [rax + 1]
cmp rdx, rcx
je 0x140007ee6
mov r8d, dword [rbx + 0x80]
test r8b, 8
jne 0x140007ed2
movzx ecx, byte [rdx]
sub cl, 0x28
cmp cl, 1
jbe 0x140007ee3
test r8b, 0x10
jne 0x140007ee6
movzx ecx, byte [rdx]
sub cl, 0x7b
test cl, 0xfd
jne 0x140007ee6
mov rax, rdx
inc rax
mov qword [rbx], rax
mov rcx, rbx
call fcn.140004560
test edi, edi
jne 0x140007e50
mov rbx, qword [rsp + 0x30]
cmp edi, 0x7fffffff
mov rsi, qword [rsp + 0x38]
setne al
add rsp, 0x20
pop rdi
ret
mov edx, esi
call fcn.140004550
int3

Function at 0x14000c62c
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x14000c676
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x14000c676
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x14000c676
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x14000c676
cmp dword [rcx + 0x84], 0xe
jbe 0x14000c676
cmp dword [rcx + 0xf8], 0
setne al
jmp 0x14000c678
xor al, al
add rsp, 0x28
ret

Function at 0x140016500
Capabilities:
Parse pe header

Disassembly:
xor r8d, r8d
xor edx, edx
jmp 0x1400162f0
Function at 0x14001eb2c
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 0x14001eb5c
xor eax, eax
jmp 0x14001ec1f
mov rbp, rbx
cmp word [rax], si
je 0x14001eb81
or rax, 0xffffffffffffffff
inc rax
cmp word [rbp + rax*2], si
jne 0x14001eb68
lea rbp, [rbp + rax*2]
add rbp, 2
cmp word [rbp], si
jne 0x14001eb64
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.14001d274
movsxd r14, eax
test eax, eax
jne 0x14001ebbf
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
jmp 0x14001eb55
mov rcx, r14
call fcn.14001b748
mov rdi, rax
test rax, rax
jne 0x14001ebd8
xor ecx, ecx
call fcn.14001a644
jmp 0x14001ebb4
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.14001d274
test eax, eax
jne 0x14001ec09
mov rcx, rdi
call fcn.14001a644
jmp 0x14001ec13
xor ecx, ecx
call fcn.14001a644
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 0x14001ec3c
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 0x14001ecc3
mov rsi, rbx
cmp word [rax], bp
je 0x14001ec82
or rax, 0xffffffffffffffff
inc rax
cmp word [rsi + rax*2], bp
jne 0x14001ec6c
lea rsi, [rsi + rax*2]
add rsi, 2
cmp word [rsi], bp
jne 0x14001ec68
sub rsi, rbx
add rsi, 2
sar rsi, 1
add rsi, rsi
mov rcx, rsi
call fcn.14001b748
mov rdi, rax
test rax, rax
je 0x14001ecb0
mov r8, rsi
mov rdx, rbx
mov rcx, rax
call fcn.14000d820
mov rbp, rdi
xor ecx, ecx
call fcn.14001a644
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 0x1400245ac
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.1400134a0
mov rax, qword [rbp - 0x31]
mov ebx, 0xfde9
cmp dword [rax + 0xc], ebx
jne 0x140024636
cmp byte [rbp - 0x21], r15b
je 0x140024631
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, ebx
jmp 0x14002466c
call fcn.140019ec0
test eax, eax
jne 0x140024658
cmp byte [rbp - 0x21], r15b
je 0x140024650
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, 1
jmp 0x14002466c
cmp byte [rbp - 0x21], r15b
je 0x140024669
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.140015b80
test eax, eax
jne 0x14002470c
xor edx, edx
lea rcx, [rbp - 0x39]
call fcn.1400134a0
mov rax, qword [rbp - 0x31]
cmp dword [rax + 0xc], ebx
jne 0x1400246ab
cmp byte [rbp - 0x21], r15b
je 0x1400246e0
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
jmp 0x1400246e0
call fcn.140019ec0
test eax, eax
jne 0x1400246cc
cmp byte [rbp - 0x21], r15b
je 0x1400246c5
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov ebx, 1
jmp 0x1400246e0
cmp byte [rbp - 0x21], r15b
je 0x1400246dd
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.140015b80
mov rdi, qword [rbp - 9]
test eax, eax
jne 0x14002470c
mov rcx, qword [rbp + 0x27]
mov rdx, rdi
call qword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
mov ebx, eax
jmp 0x14002470f
mov ebx, r15d
cmp byte [rbp + 0xf], r15b
je 0x14002471d
mov rcx, rdi
call fcn.14001a644
cmp byte [rbp + 0x3f], r15b
je 0x14002472c
mov rcx, qword [rbp + 0x27]
call fcn.14001a644
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 0x1400010c4
Capabilities:
Create device object

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
push rsi
push rdi
push r14
sub rsp, 0x40
mov rsi, rcx
xor r14d, r14d
mov rcx, rdx
mov qword [rsp + 0x78], r14
mov bpl, r8b
mov rdi, rdx
call qword [sym.imp.ntoskrnl.exe_IoGetDeviceAttachmentBaseRef]
mov rbx, rax
test rax, rax
jne 0x1400010fd
mov rbx, rdi
jmp 0x140001106
mov rcx, rax
call qword [sym.imp.ntoskrnl.exe_ObfDereferenceObject]
lea rax, [rsp + 0x78]
mov r9d, 0x22
mov qword [rsp + 0x30], rax
xor r8d, r8d
mov byte [rsp + 0x28], r14b
mov edx, 0x348
mov rcx, rsi
mov dword [rsp + 0x20], 0x100
call qword [sym.imp.ntoskrnl.exe_IoCreateDevice]
test eax, eax
js 0x14000122e
mov rax, qword [rsp + 0x78]
mov r9d, 0x64
mov edx, 0x6c694654
mov dword [rsp + 0x20], 0x20
mov rdi, qword [rax + 0x40]
lea r8d, [r9 - 0x63]
lea rsi, [rdi + 0x18]
mov byte [rdi], bpl
mov rcx, rsi
mov qword [rdi + 0x38], rbx
call qword [sym.imp.ntoskrnl.exe_IoInitializeRemoveLockEx]
cmp bpl, 3
jne 0x140001194
lea rdx, [rdi + 0x342]
mov rcx, rbx
lea r8, [rdi + 0x340]
mov word [rdx], r14w
mov word [r8], r14w
call fcn.140001244
mov qword [rdi + 8], r14
lea r8, [rdi + 8]
mov rcx, qword [rsp + 0x78]
mov rdx, rbx
call qword [sym.imp.ntoskrnl.exe_IoAttachDeviceToDeviceStackSafe]
test eax, eax
jns 0x1400011ef
mov r9d, 1
mov dword [rsp + 0x20], 0x20
lea r8, [0x140003a70]
xor edx, edx
mov rcx, rsi
call qword [sym.imp.ntoskrnl.exe_IoAcquireRemoveLockEx]
xor edx, edx
mov rcx, rsi
lea r8d, [rdx + 0x20]
call qword [sym.imp.ntoskrnl.exe_IoReleaseRemoveLockAndWaitEx]
mov rcx, qword [rsp + 0x78]
call qword [sym.imp.ntoskrnl.exe_IoDeleteDevice]
mov eax, 0xc0000001
jmp 0x14000122e
mov rax, qword [rdi + 8]
mov rdx, qword [rsp + 0x78]
mov ecx, dword [rax + 0x30]
and ecx, 0x2014
or dword [rdx + 0x30], ecx
mov rax, qword [rdi + 8]
mov ecx, dword [rax + 0x48]
mov rax, qword [rsp + 0x78]
mov dword [rax + 0x48], ecx
mov rax, qword [rdi + 8]
mov ecx, dword [rax + 0x34]
mov rax, qword [rsp + 0x78]
mov dword [rax + 0x34], ecx
mov rax, qword [rsp + 0x78]
btr dword [rax + 0x30], 7
xor eax, eax
mov rbx, qword [rsp + 0x60]
mov rbp, qword [rsp + 0x68]
add rsp, 0x40
pop r14
pop rdi
pop rsi
ret
Function at 0x140001890
Capabilities:
Print debug messages

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
mov ebx, dword [rcx + 8]
mov rdi, rcx
add ebx, dword [rcx + 4]
shl ebx, 8
add ebx, 0xc
cmp ebx, edx
je 0x1400018d0
mov r8d, 0x1b
lea rdx, [0x140003ac0]
lea rcx, [0x140003ad0]
call sub.ntoskrnl.exe_DbgPrint
mov eax, 0xc000000d
jmp 0x140001966
lea rcx, [0x140006680]
call fcn.1400034c0
mov rcx, qword [0x1400062a8]
mov al, byte [rdi]
mov byte [0x1400062a0], al
test rcx, rcx
je 0x140001903
mov edx, 0x6e726564
call qword [sym.imp.ntoskrnl.exe_ExFreePoolWithTag]
and qword [0x1400062a8], 0
mov r8d, 0x6e726564
mov rdx, rbx
xor ecx, ecx
call qword [sym.imp.ntoskrnl.exe_ExAllocatePoolWithTag]
mov qword [0x1400062a8], rax
test rax, rax
je 0x14000193f
mov r8, rbx
xor edx, edx
mov rcx, rax
call fcn.1400036c0
mov rcx, qword [0x1400062a8]
mov r8, rbx
mov rdx, rdi
call fcn.1400037c0
lea rcx, [0x140006680]
call fcn.1400034e8
mov r8d, 0x30
lea rdx, [0x140003ac0]
lea rcx, [0x140003af0]
call sub.ntoskrnl.exe_DbgPrint
xor eax, eax
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret

Function at 0x140001d0c
Capabilities:
Print debug messages

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
mov rbp, rsp
sub rsp, 0x30
mov rax, qword [rcx + 0x138]
xor ebx, ebx
mov word [rbp + 0x18], bx
mov word [rbp + 0x10], bx
test rax, rax
je 0x140001dd8
cmp qword [rax + 0x28], rbx
je 0x140001dd8
lea r8, [rbp + 0x10]
lea rdx, [rbp + 0x18]
call fcn.140001244
movzx ecx, word [rbp + 0x10]
lea rdx, [0x140003bd0]
mov rax, qword [0x1400065f0]
mov r8d, 0x125
movzx r9d, word [rbp + 0x18]
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x20], ecx
lea rcx, [0x140003be0]
call sub.ntoskrnl.exe_DbgPrint
movzx ecx, word [rbp + 0x18]
cmp bx, cx
je 0x140001ddd
movzx edx, word [rbp + 0x10]
cmp bx, dx
je 0x140001ddd
call fcn.140001c5c
test al, al
jne 0x140001ddd
movzx edx, word [rbp + 0x10]
mov r8b, 1
movzx ecx, word [rbp + 0x18]
call fcn.140001b94
test al, al
je 0x140001ddd
movzx eax, word [rbp + 0x10]
lea rdx, [0x140003bd0]
movzx r9d, word [rbp + 0x18]
lea rcx, [0x140003c30]
mov r8d, 0x133
mov dword [rsp + 0x20], eax
call sub.ntoskrnl.exe_DbgPrint
mov ebx, 1
jmp 0x140001ddd
mov ebx, 4
mov eax, ebx
mov rbx, qword [rsp + 0x50]
add rsp, 0x30
pop rbp
ret
Function at 0x140002e90
Capabilities:
Complete processing asynchronous io request

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rbp
mov qword [rax + 0x18], rsi
push rdi
sub rsp, 0x30
mov rsi, qword [rcx + 0x40]
mov rdi, rdx
cmp byte [rsi], 1
je 0x140002f15
mov r9d, 1
mov dword [rax - 0x18], 0x20
lea r8, [0x140003a70]
lea rcx, [rsi + 0x18]
call qword [sym.imp.ntoskrnl.exe_IoAcquireRemoveLockEx]
mov ebx, eax
test eax, eax
jns 0x140002ee6
xor edx, edx
mov dword [rdi + 0x30], eax
mov rcx, rdi
call qword [sym.imp.ntoskrnl.exe_IofCompleteRequest]
mov eax, ebx
jmp 0x140002f2b
inc byte [rdi + 0x43]
mov rdx, rdi
add qword [rdi + 0xb8], 0x48
mov rcx, qword [rsi + 8]
call qword [sym.imp.ntoskrnl.exe_IofCallDriver]
mov r8d, 0x20
lea rcx, [rsi + 0x18]
mov rdx, rdi
mov ebx, eax
call qword [sym.imp.ntoskrnl.exe_IoReleaseRemoveLockEx]
jmp 0x140002ee2
and dword [rdx + 0x30], 0
mov rcx, rdi
and qword [rdx + 0x38], 0
xor edx, edx
call qword [sym.imp.ntoskrnl.exe_IofCompleteRequest]
xor eax, eax
mov rbx, qword [rsp + 0x40]
mov rbp, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
add rsp, 0x30
pop rdi
ret

Function at 0x140003284
Capabilities:
Print debug messages
Reference cloudflare dns server

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x40
mov rax, qword [sym.imp.ntoskrnl.exe_InitSafeBootMode]
mov rbx, rcx
cmp dword [rax], 0
jbe 0x1400032a7
mov eax, 0xc0000022
jmp 0x140003398
xorps xmm0, xmm0
lea rdx, [0x1400041e0]
xorps xmm1, xmm1
lea rcx, [rsp + 0x30]
movups xmmword [rsp + 0x30], xmm0
movups xmmword [rsp + 0x20], xmm1
call qword [sym.imp.ntoskrnl.exe_RtlInitAnsiString]
mov r8b, 1
lea rdx, [rsp + 0x30]
lea rcx, [rsp + 0x20]
call qword [sym.imp.ntoskrnl.exe_RtlAnsiStringToUnicodeString]
movzx r8d, word [rsp + 0x20]
lea rcx, [0x140006220]
mov rdx, qword [rsp + 0x28]
call fcn.1400037c0
lea rcx, [rsp + 0x20]
call qword [sym.imp.ntoskrnl.exe_RtlFreeUnicodeString]
mov r8d, 0x5f
mov qword [0x1400065e0], rbx
lea rdx, [0x1400041f0]
lea rcx, [0x140004200]
call sub.ntoskrnl.exe_DbgPrint
call fcn.140001884
lea rax, [fcn.140002e90]
mov ecx, 0x1c
lea rdi, [rbx + 0x70]
rep stosq qword [rdi], rax
lea rax, [0x140002870]
mov qword [rbx + 0x148], rax
lea rcx, [0x140001df0]
lea rax, [0x140002de0]
mov qword [rbx + 0x120], rax
mov rax, qword [rbx + 0x30]
mov qword [rax + 8], rcx
lea rax, [0x1400021e0]
and qword [rbx + 0x68], 0
mov rcx, rbx
mov qword [rbx + 0xe0], rax
call fcn.1400033a4
test eax, eax
js 0x140003393
call fcn.14000323c
call fcn.140001cd0
call fcn.140002f40
test eax, eax
jns 0x140003398
mov eax, 0xc0000001
mov rbx, qword [rsp + 0x50]
add rsp, 0x40
pop rdi
ret
Function at 0x1400033a4
Capabilities:
Print debug messages

Disassembly:
push rbx
sub rsp, 0x80
mov rbx, rcx
lea rdx, [0x140004090]
lea rcx, [rsp + 0x50]
call qword [sym.imp.ntoskrnl.exe_RtlInitUnicodeString]
lea rdx, [0x1400040c0]
lea rcx, [rsp + 0x70]
call qword [sym.imp.ntoskrnl.exe_RtlInitUnicodeString]
lea rdx, [0x1400040f0]
lea rcx, [rsp + 0x60]
call qword [sym.imp.ntoskrnl.exe_RtlInitUnicodeString]
lea rax, [0x1400065e8]
mov r9d, 0x22
mov qword [rsp + 0x40], rax
lea r8, [rsp + 0x50]
lea rax, [0x140005330]
mov edx, 0x348
mov qword [rsp + 0x38], rax
mov rcx, rbx
lea rax, [rsp + 0x60]
mov qword [rsp + 0x30], rax
mov byte [rsp + 0x28], 0
mov dword [rsp + 0x20], 0x100
call fcn.14000808c
mov ebx, eax
test eax, eax
js 0x14000348f
mov rax, qword [0x1400065e8]
lea rdx, [rsp + 0x50]
lea rcx, [rsp + 0x70]
or dword [rax + 0x30], 4
call qword [sym.imp.ntoskrnl.exe_IoCreateSymbolicLink]
mov ebx, eax
test eax, eax
jns 0x140003473
mov rcx, qword [0x1400065e8]
call qword [sym.imp.ntoskrnl.exe_IoDeleteDevice]
mov r9d, ebx
lea rcx, [0x140004170]
mov r8d, 0x30
jmp 0x14000349f
mov rax, qword [0x1400065e8]
mov rcx, qword [rax + 0x40]
mov byte [rcx], 1
mov rax, qword [0x1400065e8]
btr dword [rax + 0x30], 7
jmp 0x1400034ab
mov r9d, eax
lea rcx, [0x1400041b0]
mov r8d, 0x3b
lea rdx, [0x140004150]
call sub.ntoskrnl.exe_DbgPrint
mov eax, ebx
add rsp, 0x80
pop rbx
ret

Function at 0x140009750
Capabilities:
Query or enumerate registry value

Disassembly:
mov r11, rsp
mov qword [r11 + 0x18], rbx
push rdi
sub rsp, 0x50
mov rax, qword [0x140006200]
xor rax, rsp
mov qword [rsp + 0x48], rax
and dword [rsp + 0x30], 0
lea rax, [r11 - 0x28]
mov rdi, r9
mov qword [r11 - 0x30], rax
mov ebx, r8d
mov dword [rsp + 0x20], 0x10
lea r9, [r11 - 0x20]
mov r8d, 2
call qword [sym.imp.ntoskrnl.exe_ZwQueryValueKey]
nop dword [rax + rax]
test eax, eax
js 0x1400097b2
cmp dword [rsp + 0x3c], 4
jne 0x1400097ad
mov ebx, dword [rsp + 0x44]
jmp 0x1400097b2
mov eax, 0xc0000024
mov dword [rdi], ebx
mov rcx, qword [rsp + 0x48]
xor rcx, rsp
call fcn.140003620
mov rbx, qword [rsp + 0x70]
add rsp, 0x50
pop rdi
ret