joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140162770
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, [0x140334e90]
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 0x1401627c7
cmp word [rdx], r13w
jne 0x1401627c7
or byte [rax + rdi*8 + 0x38], cl
jmp 0x1401627cc
and byte [rax + rdi*8 + 0x38], 0xfb
lea r8, [rdx + r8*2]
mov rbx, r14
cmp r14, r8
jae 0x1401628f1
mov r11d, 0xd
lea r12d, [r11 - 0xb]
movzx ecx, word [rdx]
cmp cx, 0x1a
je 0x140162912
lea r9, [rdx + 2]
cmp cx, r11w
je 0x140162805
mov rdx, r9
mov word [rbx], cx
jmp 0x14016282c
cmp r9, r8
jae 0x14016283c
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 0x1401627e6
jmp 0x1401628f1
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 0x1401628e6
cmp dword [rsp + 0x80], esi
je 0x1401628e6
lea r8, [0x140334e90]
mov rax, qword [r8 + rbp*8]
test byte [rax + rdi*8 + 0x38], 0x48
je 0x1401628be
movzx eax, word [rsp + 0x70]
cmp ax, r13w
jne 0x14016288e
mov word [rbx], r13w
jmp 0x1401628ee
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 0x14016289b
mov rax, qword [r8 + rbp*8]
mov byte [rax + rdi*8 + 0x3c], r13b
jmp 0x1401628ee
cmp word [rsp + 0x70], r13w
jne 0x1401628cb
cmp rbx, r14
je 0x140162888
mov rdx, 0xfffffffffffffffe
mov ecx, r15d
lea r8d, [rdx + 3]
call fcn.1401633d8
cmp word [rsp + 0x70], r13w
je 0x1401628f1
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, [0x140334e90]
mov rdx, qword [r8 + rbp*8]
mov al, byte [rdx + rdi*8 + 0x38]
test al, 0x40
jne 0x1401628eb
or al, r12b
mov byte [rdx + rdi*8 + 0x38], al
jmp 0x1401628f1
Function at 0x140166304
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 0x140166334
xor eax, eax
jmp 0x1401663f7
mov rbp, rbx
cmp word [rax], si
je 0x140166359
or rax, 0xffffffffffffffff
inc rax
cmp word [rbp + rax*2], si
jne 0x140166340
lea rbp, [rbp + rax*2]
add rbp, 2
cmp word [rbp], si
jne 0x14016633c
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.140164a50
movsxd r14, eax
test eax, eax
jne 0x140166397
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
jmp 0x14016632d
mov rcx, r14
call fcn.14015da94
mov rdi, rax
test rax, rax
jne 0x1401663b0
xor ecx, ecx
call fcn.14015cd8c
jmp 0x14016638c
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.140164a50
test eax, eax
jne 0x1401663e1
mov rcx, rdi
call fcn.14015cd8c
jmp 0x1401663eb
xor ecx, ecx
call fcn.14015cd8c
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 0x140168c00
Capabilities:
Get geographical location

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
mov esi, edx
mov ebx, ecx
call fcn.14015f2a0
mov ecx, ebx
lea r8, [rsp + 0x30]
and ecx, 0x3ff
mov r9d, 2
bts ecx, 0xa
mov edx, 0x20000001
mov rdi, rax
call qword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
xor edx, edx
test eax, eax
je 0x140168ca1
cmp ebx, dword [rsp + 0x30]
je 0x140168c9a
test esi, esi
je 0x140168c9a
mov r10, qword [rdi + 0x98]
mov r9d, edx
movzx r8d, word [r10]
lea rcx, [r10 + 2]
lea eax, [r8 - 0x41]
cmp ax, 0x19
jbe 0x140168c75
sub r8w, 0x61
cmp r8w, 0x19
ja 0x140168c82
movzx r8d, word [rcx]
inc r9d
add rcx, 2
jmp 0x140168c5f
or rax, 0xffffffffffffffff
inc rax
cmp word [r10 + rax*2], dx
jne 0x140168c86
cmp r9d, eax
setne dl
mov eax, edx
jmp 0x140168ca3
mov eax, 1
jmp 0x140168ca3
xor eax, eax
mov rbx, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret
Function at 0x14016d5fc
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.1401633d8
xor edx, edx
mov ecx, r14d
mov r12, rax
lea r8d, [rdx + 2]
call fcn.1401633d8
mov rbp, rbx
sub rbp, rax
cmp r12, 0xffffffffffffffff
je 0x14016d74c
cmp rax, 0xffffffffffffffff
je 0x14016d74c
xor edi, edi
test rbp, rbp
jle 0x14016d6f7
lea edx, [rdi + 1]
mov ecx, 0x1000
call fcn.14015cd14
mov rbx, rax
test rax, rax
jne 0x14016d684
lea edi, [rax + 0xc]
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], edi
jmp 0x14016d6ed
mov edx, 0x8000
mov ecx, r14d
call fcn.14015895c
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.140161464
cmp eax, 0xffffffff
je 0x14016d6cd
cdqe
sub rbp, rax
test rbp, rbp
jg 0x14016d694
mov edx, r15d
mov ecx, r14d
call fcn.14015895c
jmp 0x14016d6ed
cmp byte [rsi + 0x38], dil
je 0x14016d6e4
cmp dword [rsi + 0x34], 5
jne 0x14016d6e4
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], 0xd
cmp byte [rsi + 0x30], dil
je 0x14016d6ed
mov edi, dword [rsi + 0x2c]
mov rcx, rbx
call fcn.14015cd8c
jmp 0x14016d760
jns 0x14016d760
xor r8d, r8d
mov rdx, rbx
mov ecx, r14d
call fcn.1401633d8
cmp rax, 0xffffffffffffffff
jne 0x14016d718
cmp byte [rsi + 0x30], dil
je 0x14016d760
mov edi, dword [rsi + 0x2c]
jmp 0x14016d760
mov ecx, r14d
call fcn.140160a2c
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x14016d760
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 0x14016d760
xor edi, edi
cmp byte [rsi + 0x30], dil
je 0x14016d759
mov eax, dword [rsi + 0x2c]
jmp 0x14016d75e
mov eax, 0x16
mov edi, eax
xor r8d, r8d
mov rdx, r12
mov ecx, r14d
call fcn.1401633d8
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 0x1400113ca
Capabilities:
Terminate process

Disassembly:
jmp 0x14001a000
mov qword [rsp + 8], rcx
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_SetUnhandledExceptionFilter]
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_UnhandledExceptionFilter]
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov edx, 0xc0000409
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_TerminateProcess]
add rsp, 0x28
ret

Function at 0x1400114c4
Capabilities:
Parse pe header

Disassembly:
jmp 0x14001b350
sub rsp, 0x38
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov qword [rsp + 0x20], rax
cmp qword [rsp + 0x20], 0
jne 0x14001b370
xor al, al
jmp 0x14001b3f1
mov rax, qword [rsp + 0x20]
movzx eax, word [rax]
cmp eax, 0x5a4d
je 0x14001b383
xor al, al
jmp 0x14001b3f1
mov rax, qword [rsp + 0x20]
movsxd rax, dword [rax + 0x3c]
mov rcx, qword [rsp + 0x20]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x28], rax
mov rax, qword [rsp + 0x28]
cmp dword [rax], 0x4550
je 0x14001b3ad
xor al, al
jmp 0x14001b3f1
mov rax, qword [rsp + 0x28]
movzx eax, word [rax + 0x18]
cmp eax, 0x20b
je 0x14001b3c1
xor al, al
jmp 0x14001b3f1
mov rax, qword [rsp + 0x28]
cmp dword [rax + 0x84], 0xe
ja 0x14001b3d3
xor al, al
jmp 0x14001b3f1
mov eax, 8
imul rax, rax, 0xe
mov rcx, qword [rsp + 0x28]
cmp dword [rcx + rax + 0x88], 0
jne 0x14001b3ef
xor al, al
jmp 0x14001b3f1
mov al, 1
add rsp, 0x38
ret
Function at 0x14000a920
Capabilities:
Create thread

Disassembly:
sub rsp, 0x38
lea rcx, [0x14000a8f0]
call qword [sym.imp.KERNEL32.dll_SetUnhandledExceptionFilter]
call qword [sym.imp.KERNEL32.dll_GetConsoleWindow]
xor edx, edx
mov rcx, rax
call qword [sym.imp.USER32.dll_ShowWindow]
call qword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
xor r9d, r9d
xor r8d, r8d
xor edx, edx
mov ecx, eax
call qword [sym.imp.USER32.dll_PostThreadMessageA]
call qword [sym.imp.USER32.dll_GetInputState]
call fcn.140008750
xor r11d, r11d
lea r8, [0x14000a440]
xor r9d, r9d
mov qword [rsp + 0x28], r11
xor edx, edx
xor ecx, ecx
mov dword [rsp + 0x20], r11d
call qword [sym.imp.KERNEL32.dll_CreateThread]
or edx, 0xffffffff
mov rcx, rax
mov qword [0x1400606f0], rax
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov rcx, qword [0x1400606f0]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, 0x12c
call qword [sym.imp.KERNEL32.dll_Sleep]
xor eax, eax
add rsp, 0x38
ret

Function at 0x14000cf15
Capabilities:
Accept command line arguments
Parse pe header

Disassembly:
mov qword [rsp + 0x10], rbx
push rdi
sub rsp, 0x30
mov eax, 0x5a4d
cmp word [0x140000000], ax
je 0x14000cdb8
xor ebx, ebx
jmp 0x14000cdf0
movsxd rax, dword [0x14000003c]
lea rcx, [0x140000000]
add rax, rcx
cmp dword [rax], 0x4550
jne 0x14000cdb4
mov ecx, 0x20b
cmp word [rax + 0x18], cx
jne 0x14000cdb4
xor ebx, ebx
cmp dword [rax + 0x84], 0xe
jbe 0x14000cdf0
cmp dword [rax + 0xf8], ebx
setne bl
mov dword [rsp + 0x40], ebx
call fcn.14000d368
test eax, eax
jne 0x14000ce1f
cmp dword [0x14005d3a0], 2
je 0x14000ce0b
call fcn.14000da0c
mov ecx, 0x1c
call fcn.14000d7ac
mov ecx, 0xff
call fcn.14000d3fc
call fcn.14000ef1c
test eax, eax
jne 0x14000ce4a
cmp dword [0x14005d3a0], 2
je 0x14000ce36
call fcn.14000da0c
mov ecx, reloc.WS2_32.dll_recv
call fcn.14000d7ac
mov ecx, 0xff
call fcn.14000d3fc
call fcn.1400116f0
nop
call fcn.14001141c
test eax, eax
jns 0x14000ce63
mov ecx, 0x1b
call fcn.14000d758
call qword [sym.imp.KERNEL32.dll_GetCommandLineW]
mov qword [0x140061968], rax
call fcn.140011394
mov qword [0x14005d398], rax
call fcn.1400112a4
test eax, eax
jns 0x14000ce8f
mov ecx, 8
call fcn.14000d758
call fcn.140010fd4
test eax, eax
jns 0x14000cea2
mov ecx, 9
call fcn.14000d758
mov ecx, 1
call fcn.14000d4e0
test eax, eax
je 0x14000ceb7
mov ecx, eax
call fcn.14000d758
mov r8, qword [0x14005d960]
mov qword [0x14005d968], r8
mov rdx, qword [0x14005d948]
mov ecx, dword [0x14005d93c]
call fcn.14000a920
mov edi, eax
mov dword [rsp + 0x20], eax
test ebx, ebx
jne 0x14000cee8
mov ecx, eax
call fcn.14000d720
call fcn.14000d738
jmp 0x14000cf06
mov eax, edi
mov rbx, qword [rsp + 0x48]
add rsp, 0x30
pop rdi
ret
sub esp, 0x28
call fcn.140011760
add rsp, 0x28
jmp 0x14000cd9c
Function at 0x14000d063
Capabilities:
Terminate process

Disassembly:
cmp rcx, qword [0x140023258]
jne 0x14000b8da
rol rcx, 0x10
test cx, 0xffff
jne 0x14000b8d6
repz ret
ror rcx, 0x10
jmp 0x14000cfbc
mov qword [rsp + 8], rcx
sub rsp, 0x88
lea rcx, [0x14005d450]
call qword [sym.imp.KERNEL32.dll_RtlCaptureContext]
mov rax, qword [0x14005d548]
mov qword [rsp + 0x58], rax
xor r8d, r8d
lea rdx, [rsp + 0x60]
mov rcx, qword [rsp + 0x58]
call sub.KERNEL32.dll_RtlLookupFunctionEntry
mov qword [rsp + 0x50], rax
cmp qword [rsp + 0x50], 0
je 0x14000d041
mov qword [rsp + 0x38], 0
lea rax, [rsp + 0x48]
mov qword [rsp + 0x30], rax
lea rax, [rsp + 0x40]
mov qword [rsp + 0x28], rax
lea rax, [0x14005d450]
mov qword [rsp + 0x20], rax
mov r9, qword [rsp + 0x50]
mov r8, qword [rsp + 0x58]
mov rdx, qword [rsp + 0x60]
xor ecx, ecx
call sub.KERNEL32.dll_RtlVirtualUnwind
jmp 0x14000d063
mov rax, qword [rsp + 0x88]
mov qword [0x14005d548], rax
lea rax, [rsp + 0x88]
add rax, 8
mov qword [0x14005d4e8], rax
mov rax, qword [0x14005d548]
mov qword [0x14005d3c0], rax
mov rax, qword [rsp + 0x90]
mov qword [0x14005d4d0], rax
mov dword [0x14005d3b0], 0xc0000409
mov dword [0x14005d3b4], 1
mov rax, qword [0x140023258]
mov qword [rsp + 0x68], rax
mov rax, qword [0x140023260]
mov qword [rsp + 0x70], rax
call qword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
mov dword [0x14005d448], eax
mov ecx, 1
call fcn.140011814
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_SetUnhandledExceptionFilter]
lea rcx, [0x14001b860]
call qword [sym.imp.KERNEL32.dll_UnhandledExceptionFilter]
cmp dword [0x14005d448], 0
jne 0x14000d0ea
mov ecx, 1
call fcn.140011814
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov edx, 0xc0000409
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_TerminateProcess]
add rsp, 0x88
ret

Function at 0x14000d720
Capabilities:
Terminate process

Disassembly:
xor r8d, r8d
xor edx, edx
jmp fcn.14000d590
Function at 0x118a8
Capabilities:
Write file on windows

Disassembly:
mov r11, rsp
sub rsp, 0x68
test rcx, rcx
je 0x118eb
test rdx, rdx
je 0x118eb
mov rax, cr8
test al, al
jne 0x118eb
and qword [r11 - 0x28], 0
and qword [r11 - 0x30], 0
mov dword [r11 - 0x38], r8d
mov qword [r11 - 0x40], rdx
lea rax, [r11 - 0x18]
xor r9d, r9d
xor edx, edx
xor r8d, r8d
mov qword [r11 - 0x48], rax
call qword [sym.imp.ntoskrnl.exe_ZwWriteFile]
jmp 0x118f0
mov eax, 0xc0000001
add rsp, 0x68
ret

Function at 0x118fc
Capabilities:
Delete file

Disassembly:
sub rsp, 0x68
mov rdx, rcx
lea rcx, [rsp + 0x20]
call qword [sym.imp.ntoskrnl.exe_RtlInitUnicodeString]
xor ecx, ecx
lea rax, [rsp + 0x20]
mov qword [rsp + 0x38], rcx
mov qword [rsp + 0x50], rcx
mov qword [rsp + 0x58], rcx
lea rcx, [rsp + 0x30]
mov dword [rsp + 0x30], 0x30
mov dword [rsp + 0x48], 0x240
mov qword [rsp + 0x40], rax
call qword [sym.imp.ntoskrnl.exe_ZwDeleteFile]
add rsp, 0x68
ret

Function at 0x11950
Capabilities:
Get file attributes

Disassembly:
mov r11, rsp
mov qword [r11 + 8], rbx
mov qword [r11 + 0x18], rbp
mov qword [r11 + 0x20], rsi
push rdi
sub rsp, 0x2f0
mov rax, qword [0x0001d100]
xor rax, rsp
mov qword [rsp + 0x2e0], rax
mov rbx, rcx
mov rdi, rdx
lea rcx, [r11 - 0x226]
xor ebp, ebp
xor edx, edx
mov r8d, 0x206
mov word [rsp + 0xd0], bp
call fcn.0001a460
or qword [rsp + 0x70], 0xffffffffffffffff
mov esi, 0x104
lea rcx, [rsp + 0xd0]
xor edx, edx
mov r8, rsi
call fcn.0001a460
lea r8, [0x0001a740]
lea rcx, [rsp + 0xd0]
mov rdx, rsi
call fcn.00011008
lea rcx, [rsp + 0xd0]
mov r8, rbx
mov rdx, rsi
call fcn.00011080
lea rdx, [rsp + 0xd0]
lea rcx, [rsp + 0xb8]
call qword [sym.imp.ntoskrnl.exe_RtlInitUnicodeString]
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], 0x4021
mov dword [rsp + 0x38], 1
lea rax, [rsp + 0xb8]
lea ebx, [rbp + 3]
lea r9, [rsp + 0xa8]
lea r8, [rsp + 0x78]
mov dword [rsp + 0x30], ebx
lea rcx, [rsp + 0x70]
mov edx, 0x100001
mov dword [rsp + 0x28], 0x80
mov dword [rsp + 0x78], 0x30
mov qword [rsp + 0x80], rbp
mov qword [rsp + 0x20], rbp
mov dword [rsp + 0x90], 0x40
mov qword [rsp + 0x88], rax
mov qword [rsp + 0x98], rbp
mov qword [rsp + 0xa0], rbp
call qword [sym.imp.ntoskrnl.exe_IoCreateFile]
cmp eax, ebp
jne 0x11af2
mov rax, qword [rsp + 0x70]
cmp rax, 0xffffffffffffffff
je 0x11af7
mov byte [rsp + 0x50], bpl
mov qword [rsp + 0x48], rbp
mov byte [rsp + 0x40], 1
mov dword [rsp + 0x38], ebx
lea rcx, [rsp + 0xa8]
mov dword [rsp + 0x30], 0x164
mov qword [rsp + 0x28], rdi
mov qword [rsp + 0x20], rcx
xor r9d, r9d
mov rcx, rax
xor r8d, r8d
xor edx, edx
call qword [sym.imp.ntoskrnl.exe_ZwQueryDirectoryFile]
cmp eax, ebp
je 0x11af2
mov rcx, qword [rsp + 0x70]
call qword [sym.imp.ntoskrnl.exe_ZwClose]
or rax, 0xffffffffffffffff
jmp 0x11af7
mov rax, qword [rsp + 0x70]
mov rcx, qword [rsp + 0x2e0]
xor rcx, rsp
call fcn.0001a090
lea r11, [rsp + 0x2f0]
mov rbx, qword [r11 + 0x10]
mov rbp, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rsp, r11
pop rdi
ret
Function at 0x11b28
Capabilities:
Get file attributes

Disassembly:
mov rax, rsp
sub rsp, 0x78
cmp rcx, 0xffffffffffffffff
je 0x11b73
mov byte [rax - 0x28], 0
and qword [rax - 0x30], 0
mov byte [rax - 0x38], 0
mov dword [rax - 0x40], 3
mov dword [rax - 0x48], 0x2c8000
mov qword [rax - 0x50], rdx
lea rax, [rax - 0x18]
xor r9d, r9d
xor r8d, r8d
xor edx, edx
mov qword [rsp + 0x20], rax
call qword [sym.imp.ntoskrnl.exe_ZwQueryDirectoryFile]
test eax, eax
js 0x11b73
mov al, 1
jmp 0x11b75
xor al, al
add rsp, 0x78
ret

Function at 0x11d80
Capabilities:
Set file attributes

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x18], rsi
push rdi
sub rsp, 0xb0
and qword [rax + 0x10], 0
mov rsi, rdx
mov rbx, rcx
xor edx, edx
mov r8d, 0x1018
mov rcx, rsi
call fcn.0001a460
or rcx, 0xffffffffffffffff
lea r8, [0x000de130]
xor eax, eax
mov rdi, r8
mov edx, 0x104
repne scasw ax, word [rdi]
not rcx
dec rcx
add ecx, ecx
mov dword [rsi + 0x10], ecx
lea rcx, [rsi + 0x14]
call fcn.00011008
and qword [rsi + 8], 0
lea rcx, [rsp + 0x60]
mov rdx, rbx
mov byte [rsi], 1
call qword [sym.imp.ntoskrnl.exe_RtlInitUnicodeString]
and dword [rsp + 0x50], 0
and qword [rsp + 0x48], 0
and qword [rsp + 0x88], 0
and qword [rsp + 0xa0], 0
and qword [rsp + 0xa8], 0
mov dword [rsp + 0x40], 0x28
mov dword [rsp + 0x38], 1
lea rax, [rsp + 0x60]
mov dword [rsp + 0x30], 1
and dword [rsp + 0x28], 0
and qword [rsp + 0x20], 0
lea r9, [rsp + 0x70]
lea r8, [rsp + 0x80]
lea rcx, [rsp + 0xc8]
mov edx, 0x110000
mov dword [rsp + 0x80], 0x30
mov dword [rsp + 0x98], 0x40
mov qword [rsp + 0x90], rax
call qword [sym.imp.ntoskrnl.exe_ZwCreateFile]
mov edi, eax
test eax, eax
jns 0x11e92
mov edx, 0x666c726e
mov rcx, rsi
call qword [sym.imp.ntoskrnl.exe_ExFreePoolWithTag]
jmp 0x11ed4
mov rcx, qword [rsp + 0xc8]
lea rdx, [rsp + 0x70]
mov r9d, 0x1018
mov r8, rsi
mov dword [rsp + 0x20], 0xa
call qword [sym.imp.ntoskrnl.exe_ZwSetInformationFile]
mov edx, 0x666c726e
mov rcx, rsi
mov edi, eax
call qword [sym.imp.ntoskrnl.exe_ExFreePoolWithTag]
mov rcx, qword [rsp + 0xc8]
call qword [sym.imp.ntoskrnl.exe_ZwClose]
lea r11, [rsp + 0xb0]
mov eax, edi
mov rbx, qword [r11 + 0x10]
mov rsi, qword [r11 + 0x20]
mov rsp, r11
pop rdi
ret
Function at 0x11f60
Capabilities:
Query or enumerate registry value

Disassembly:
mov r11, rsp
mov qword [r11 + 0x20], rbx
push rsi
push rdi
push r12
sub rsp, 0xa0
mov rax, qword [0x0001d100]
xor rax, rsp
mov qword [rsp + 0x90], rax
or qword [r11 - 0x80], 0xffffffffffffffff
xor r12d, r12d
mov rsi, r8
mov rdi, rcx
mov rbx, rdx
lea r8d, [r12 + 0x28]
lea rcx, [r11 - 0x60]
xor edx, edx
mov dword [r11 - 0x68], r12d
call fcn.0001a460
xor eax, eax
lea rcx, [rsp + 0x40]
mov rdx, rbx
mov dword [rsp + 0x30], r12d
mov word [rsp + 0x40], r12w
mov qword [rsp + 0x42], rax
mov dword [rsp + 0x4a], eax
mov word [rsp + 0x4e], ax
call qword [sym.imp.ntoskrnl.exe_RtlInitUnicodeString]
lea r8, [rsp + 0x50]
lea rcx, [rsp + 0x38]
mov edx, 0x20019
mov dword [rsp + 0x50], 0x30
mov qword [rsp + 0x58], r12
mov dword [rsp + 0x68], 0x40
mov qword [rsp + 0x60], rdi
mov qword [rsp + 0x70], r12
mov qword [rsp + 0x78], r12
call qword [sym.imp.ntoskrnl.exe_ZwOpenKey]
cmp eax, r12d
jl 0x1211d
mov rcx, qword [rsp + 0x38]
lea rax, [rsp + 0x30]
lea r9, [rsp + 0x80]
mov qword [rsp + 0x28], rax
lea r8d, [r12 + 2]
lea rdx, [rsp + 0x40]
mov dword [rsp + 0x20], 0x10
call qword [sym.imp.ntoskrnl.exe_ZwQueryValueKey]
cmp eax, r12d
mov ebx, eax
jge 0x1205c
cmp eax, 0x80000005
je 0x1205c
cmp eax, 0xc0000023
jne 0x12110
mov edx, dword [rsp + 0x30]
mov ecx, 1
mov r8d, 0x70767069
call qword [sym.imp.ntoskrnl.exe_ExAllocatePoolWithTag]
mov rcx, qword [rsp + 0x38]
mov rdi, rax
cmp rax, r12
je 0x12115
lea rax, [rsp + 0x30]
lea rdx, [rsp + 0x40]
mov r9, rdi
mov qword [rsp + 0x28], rax
mov eax, dword [rsp + 0x30]
mov r8d, 2
mov dword [rsp + 0x20], eax
call qword [sym.imp.ntoskrnl.exe_ZwQueryValueKey]
cmp eax, r12d
mov ebx, eax
jge 0x120ca
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.ntoskrnl.exe_ZwClose]
mov edx, 0x70767069
mov rcx, rdi
call qword [sym.imp.ntoskrnl.exe_ExFreePoolWithTag]
jmp 0x1211b
cmp dword [rsp + 0x84], 4
mov rcx, rsi
jne 0x120ed
mov edx, dword [rsp + 0x30]
mov r9d, dword [rdi + 0xc]
lea r8, [0x0001a780]
call fcn.00011ef4
jmp 0x12102
lea r9, [rdi + 0xc]
lea r8, [0x0001a790]
mov edx, 0x400
call fcn.00011ef4
mov edx, 0x70767069
mov rcx, rdi
call qword [sym.imp.ntoskrnl.exe_ExFreePoolWithTag]
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.ntoskrnl.exe_ZwClose]
mov eax, ebx
mov rcx, qword [rsp + 0x90]
xor rcx, rsp
call fcn.0001a090
mov rbx, qword [rsp + 0xd8]
add rsp, 0xa0
pop r12
pop rdi
pop rsi
ret
Function at 0x12148
Capabilities:
Set registry value

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x90
mov rbx, rdx
mov rdx, rcx
lea rcx, [rsp + 0x38]
mov rdi, r9
mov esi, r8d
call qword [sym.imp.ntoskrnl.exe_RtlInitUnicodeString]
lea rcx, [rsp + 0x48]
mov rdx, rbx
call qword [sym.imp.ntoskrnl.exe_RtlInitUnicodeString]
and qword [rsp + 0x60], 0
and qword [rsp + 0x78], 0
and qword [rsp + 0x80], 0
lea rax, [rsp + 0x38]
lea r8, [rsp + 0x58]
lea rcx, [rsp + 0x30]
mov edx, 0xf003f
mov qword [rsp + 0x68], rax
mov dword [rsp + 0x58], 0x30
mov dword [rsp + 0x70], 0x40
call qword [sym.imp.ntoskrnl.exe_ZwOpenKey]
mov ebx, eax
test eax, eax
js 0x12207
mov eax, dword [rsp + 0xc0]
mov rcx, qword [rsp + 0x30]
lea rdx, [rsp + 0x48]
mov dword [rsp + 0x28], eax
mov r9d, esi
xor r8d, r8d
mov qword [rsp + 0x20], rdi
call qword [sym.imp.ntoskrnl.exe_ZwSetValueKey]
mov rcx, qword [rsp + 0x30]
mov ebx, eax
call qword [sym.imp.ntoskrnl.exe_ZwFlushKey]
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.ntoskrnl.exe_ZwClose]
lea r11, [rsp + 0x90]
mov eax, ebx
mov rbx, qword [r11 + 0x10]
mov rsi, qword [r11 + 0x18]
mov rsp, r11
pop rdi
ret

Function at 0x12224
Capabilities:
Delete registry key
Print debug messages

Disassembly:
push rbx
sub rsp, 0x60
mov rdx, rcx
lea rcx, [rsp + 0x20]
call qword [sym.imp.ntoskrnl.exe_RtlInitUnicodeString]
and qword [rsp + 0x38], 0
and qword [rsp + 0x50], 0
and qword [rsp + 0x58], 0
lea rax, [rsp + 0x20]
lea r8, [rsp + 0x30]
lea rcx, [rsp + 0x78]
mov edx, 0xf003f
mov qword [rsp + 0x40], rax
mov dword [rsp + 0x30], 0x30
mov dword [rsp + 0x48], 0x40
call qword [sym.imp.ntoskrnl.exe_ZwOpenKey]
mov ebx, eax
test eax, eax
js 0x122bc
lea rcx, [0x0001a7a0]
call sub.ntoskrnl.exe_DbgPrint
mov rcx, qword [rsp + 0x78]
call qword [sym.imp.ntoskrnl.exe_ZwDeleteKey]
lea rcx, [0x0001a7c0]
mov ebx, eax
test eax, eax
jns 0x122aa
lea rcx, [0x0001a7e0]
call sub.ntoskrnl.exe_DbgPrint
mov rcx, qword [rsp + 0x78]
call qword [sym.imp.ntoskrnl.exe_ZwClose]
jmp 0x122c8
lea rcx, [0x0001a800]
call sub.ntoskrnl.exe_DbgPrint
mov eax, ebx
add rsp, 0x60
pop rbx
ret