joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140131240
Capabilities:
Check if file exists
Get common file path
Get file attributes

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 - 0x18], 0
mov rbp, r9
mov rbx, r8
mov rdi, rdx
mov rsi, rcx
lea rcx, [rsp + 0x30]
call fcn.1401c832c
test eax, eax
jne 0x1401312a4
mov eax, dword [rsp + 0x30]
lea r8, str._s_s_X.tmp
mov dword [rsp + 0x28], eax
mov r9, rsi
mov rdx, rbp
mov qword [rsp + 0x20], rdi
mov rcx, rbx
call fcn.140010630
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x1401312b6
jmp 0x140131264
mov r9, rbx
xor r8d, r8d
mov rdx, rdi
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_GetTempFileNameW]
mov rbx, qword [rsp + 0x50]
mov rbp, qword [rsp + 0x58]
mov rsi, qword [rsp + 0x60]
add rsp, 0x40
pop rdi
ret

Function at 0x14013a808
Capabilities:
Log keystrokes via polling
Open clipboard
Write clipboard data

Disassembly:
mov rax, rsp
push rdi
sub rsp, 0x40
mov qword [rax - 0x18], 0xfffffffffffffffe
mov qword [rax + 8], rbx
mov qword [rax + 0x18], rbp
mov qword [rax + 0x20], rsi
mov rsi, rdx
mov rbp, rcx
cmp dword [rdx + 8], 0x100
jne 0x14013a941
mov ebx, dword [rdx + 0x10]
mov ecx, 0x11
call qword [sym.imp.USER32.dll_GetAsyncKeyState]
mov ecx, 0x8000
test cx, ax
je 0x14013a941
cmp ebx, 0x43
je 0x14013a861
cmp ebx, 0x2d
jne 0x14013a941
mov rcx, qword [rbp + 0x40]
call qword [sym.imp.USER32.dll_OpenClipboard]
test eax, eax
je 0x14013a941
call qword [sym.imp.USER32.dll_EmptyClipboard]
call fcn.14000c644
mov rcx, rax
test rax, rax
je 0x14013a960
mov rax, qword [rax]
mov rax, qword [rax + 0x18]
call qword [case.0x140033e8a.0]
add rax, 0x18
mov qword [rsp + 0x58], rax
mov eax, dword [rbp + 0x194]
movzx edx, ax
shr eax, 0x10
movzx ecx, al
mov r9d, edx
shr r9d, 8
movzx r8d, dl
mov dword [rsp + 0x20], ecx
lea rdx, str.RGB__d___d___d_
lea rcx, [rsp + 0x58]
call fcn.14000be80
mov rbx, qword [rsp + 0x58]
mov eax, dword [rbx - 0x10]
inc eax
movsxd rdx, eax
add rdx, rdx
mov ecx, 0x2000
call qword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov rdi, rax
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GlobalLock]
mov rdx, rbx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_lstrcpyW]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_GlobalUnlock]
mov rdx, rdi
mov ecx, 0xd
call qword [sym.imp.USER32.dll_SetClipboardData]
call qword [sym.imp.USER32.dll_CloseClipboard]
nop
lea rdx, [rbx - 0x18]
or eax, 0xffffffff
lock xadd dword [rdx + 0x10], eax
sub eax, 1
jg 0x14013a941
mov rcx, qword [rdx]
mov rax, qword [rcx]
mov rax, qword [rax + 8]
call qword [case.0x140033e8a.0]
mov rdx, rsi
mov rcx, rbp
mov rbx, qword [rsp + 0x50]
mov rbp, qword [rsp + 0x60]
mov rsi, qword [rsp + 0x68]
add rsp, 0x40
pop rdi
jmp method.CDialogEx.virtual_536
mov ecx, 0x80004005
call fcn.14000bfa0
int3
Function at 0x1401ab4e0
Capabilities:
Encode data using xor
Hash data using fnv

Disassembly:
sub r8, rdx
xor r10d, r10d
sar r8, 1
movabs rax, 0xcbf29ce484222325
add r8, r8
mov r9, rdx
lea rcx, [r8 + rdx]
cmp rdx, rcx
cmova r8, r10
test r8, r8
je 0x1401ab52c
movzx ecx, byte [r9]
movabs r10, 0x100000001b3
xor rax, rcx
inc r9
mov rcx, r9
sub rcx, rdx
imul rax, r10
cmp rcx, r8
jne 0x1401ab509
ret

Function at 0x1401b34d8
Capabilities:
Encode data using xor
Hash data using fnv

Disassembly:
xor ecx, ecx
mov r10, r8
sub r10, rdx
movabs rax, 0xcbf29ce484222325
cmp rdx, r8
mov r9, rdx
cmova r10, rcx
test r10, r10
je 0x1401b351c
movzx ecx, byte [r9]
movabs r8, 0x100000001b3
xor rax, rcx
inc r9
mov rcx, r9
sub rcx, rdx
imul rax, r8
cmp rcx, r10
jne 0x1401b34f9
ret

Function at 0x1401c9fd0
Capabilities:
Parse pe header

Disassembly:
xor r8d, r8d
xor edx, edx
jmp 0x1401c9df4
Function at 0x180001980
Capabilities:
Contain obfuscated stackstrings
Parse pe header

Disassembly:
movabs rax, 0xc9fd0bb2fa6e846e
mov qword [rsp + 0x5a8], rax
mov dword [rsp + 0x36c], 0xd8ab07f7
movabs rax, 0x8a2c9e1b7e2407f9
mov qword [rsp + 0x5b0], rax
mov dword [rsp + 0x370], 0x1833a35e
mov eax, 1
imul rax, rax, 7
mov byte [rsp + rax + 0x1e0], 0x6c
mov byte [rsp + 0x17b], 0xce
movabs rax, 0x867b5fbc19f96453
mov qword [rsp + 0x5b8], rax
mov eax, 1
imul rax, rax, 8
mov byte [rsp + rax + 0x1e0], 0x65
mov dword [rsp + 0x374], 0x97bdcce
mov eax, 1
imul rax, rax, 9
mov byte [rsp + rax + 0x1e0], 0x46
mov eax, 1
imul rax, rax, 0xa
mov byte [rsp + rax + 0x1e0], 0x69
movabs rax, 0xe3a75a9b2a78b259
mov qword [rsp + 0x5c0], rax
mov eax, 1
imul rax, rax, 0xb
mov byte [rsp + rax + 0x1e0], 0x6c
mov dword [rsp + 0x378], 0xf1f37e57
mov eax, 1
imul rax, rax, 0xc
mov byte [rsp + rax + 0x1e0], 0x65
mov eax, 1
imul rax, rax, 0xd
mov byte [rsp + rax + 0x1e0], 0x4e
mov byte [rsp + 0x17c], 0xb4
invalid
invalid
invalid
invalid
invalid

Function at 0x180001b90
Capabilities:
Contain obfuscated stackstrings
Parse pe header

Disassembly:
add eax, dword [rax]
add byte [rax], al
mov ecx, 0x1b85a37
add byte [rax], al
add byte [rax + 0x6b], cl
rol byte [rcx], 0xc6
test byte [rax + riz*8], al
add dword [rax], eax
add byte [rbp - 0x48], ah
add dword [rax], eax
add byte [rax], al
imul rax, rax, 2
mov byte [rsp + rax + 0x1e0], 0x61
mov eax, 1
imul rax, rax, 3
mov byte [rsp + rax + 0x1e0], 0x64
mov byte [rsp + 0x180], 4
mov byte [rsp + 0x181], 8
mov byte [rsp + 0x182], 0x2f
mov eax, 1
imul rax, rax, 4
mov byte [rsp + rax + 0x1e0], 0x46
mov eax, 1
imul rax, rax, 5
mov byte [rsp + rax + 0x1e0], 0x69
mov eax, 1
imul rax, rax, 6
mov byte [rsp + rax + 0x1e0], 0x6c
mov byte [rsp + 0x183], SysAllocStringByteLen
movabs rax, 0xb214a282945949c5
mov qword [rsp + 0x5e0], rax
movabs rax, 0x13bafe2ce1700d40
mov qword [rsp + 0x5e8], rax
mov eax, 1
imul rax, rax, 7
mov byte [rsp + rax + 0x1e0], 0x65
mov byte [rsp + 0x184], 0xa6
movabs rax, 0xc3d71584aff69559
mov qword [rsp + 0x5f0], rax
mov byte [rsp + 0x185], 0x22
mov dword [rsp + 0x394], 0xbd430e79
mov eax, 1
imul rax, rax, 8
mov byte [rsp + rax + 0x1e0], 0

Function at 0x180001c90
Capabilities:
Contain obfuscated stackstrings
Parse pe header

Disassembly:
mov dword [rsp + 0x398], 0x7f82b8b5
mov dword [rsp + 0x39c], 0xd5261cf7
mov byte [rsp + 0x186], 0xda
mov dword [rsp + 0x3a0], 0xefecdbcd
mov dword [rsp + 0x3a4], 0xfee562b3
lea rdx, [rsp + 0x1e0]
mov rcx, qword [rsp + 0x1b8]
mov eax, 0x48000001
mov eax, dword [rsp + 0x1a8]
Function at 0x180002ec0
Capabilities:
Terminate process

Disassembly:
push rbx
sub rsp, 0x20
mov rbx, rcx
mov rcx, qword [rcx + 0x6f8]
call qword [sym.imp.KERNEL32.dll_ResetEvent]
cmp byte [rbx + 0x728], 0
jne 0x180002f73
cmp byte [0x1800123a7], 0
je 0x180002f73
lea r8, str.ErrorReportLauncher
xor edx, edx
mov ecx, 0x100000
call qword [sym.imp.KERNEL32.dll_OpenEventW]
test rax, rax
je 0x180002f73
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rbx + 0x720]
call qword [sym.imp.KERNEL32.dll_SetEvent]
nop
mov ecx, 0xea60
call qword [sym.imp.KERNEL32.dll_Sleep]
lea r8, str.ErrorReportLauncher
xor edx, edx
mov ecx, 0x100000
call qword [sym.imp.KERNEL32.dll_OpenEventW]
test rax, rax
je 0x180002f4f
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x180002f20
mov rcx, qword [rbx + 0x6f8]
call qword [sym.imp.KERNEL32.dll_SetEvent]
cmp byte [rbx + 0x728], 0
mov rcx, rbx
sete dl
add rsp, 0x20
pop rbx
jmp fcn.1800033c0
mov rcx, qword [rbx + 0x688]
call qword [sym.imp.KERNEL32.dll_SetEvent]
mov rcx, qword [rbx + 0x6f8]
mov edx, 0xffffffff
add rsp, 0x20
pop rbx
jmp qword [sym.imp.KERNEL32.dll_WaitForSingleObject]

Function at 0x1800033c0
Capabilities:
Terminate process

Disassembly:
push rbx
push r15
sub rsp, 0x28
mov eax, dword [rcx + 0x6e8]
mov r15, rcx
mov qword [rsp + 0x40], rbp
movzx ebp, dl
mov qword [rsp + 0x58], r12
xor r12d, r12d
sub eax, 1
movsxd rbx, eax
js 0x18000345e
mov qword [rsp + 0x48], rsi
lea rsi, [rbx*4 + 0x14]
mov qword [rsp + 0x50], rdi
mov qword [rsp + 0x20], r14
lea r14, [rcx + 0x698]
lea r14, [r14 + rbx*8]
nop dword [rax + rax]
mov rdi, qword [r14]
xor edx, edx
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_TerminateProcess]
mov edx, 0x3e8
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
test bpl, bpl
jne 0x180003441
mov rax, qword [r15]
mov dword [rsi + rax], r12d
sub r14, 8
sub rsi, 4
sub rbx, 1
jns 0x180003410
mov r14, qword [rsp + 0x20]
mov rdi, qword [rsp + 0x50]
mov rsi, qword [rsp + 0x48]
mov dword [r15 + 0x6e8], r12d
test bpl, bpl
mov r12, qword [rsp + 0x58]
mov rbp, qword [rsp + 0x40]
je 0x1800034b1
xor edx, edx
mov rcx, r15
call fcn.1800027c0
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov rcx, rax
xor edx, edx
mov rbx, rax
call qword [sym.imp.KERNEL32.dll_TerminateProcess]
mov edx, 0x3e8
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov rcx, rbx
add rsp, 0x28
pop r15
pop rbx
jmp qword [sym.imp.KERNEL32.dll_CloseHandle]
add rsp, 0x28
pop r15
pop rbx
ret
Function at 0x180003910
Capabilities:
Create thread

Disassembly:
push rbx
sub rsp, 0x30
mov rbx, rcx
mov rcx, qword [rcx + 0x678]
call qword [sym.imp.KERNEL32.dll_ResetEvent]
mov rcx, qword [rbx + 0x688]
call qword [sym.imp.KERNEL32.dll_ResetEvent]
xor ecx, ecx
lea rax, [rsp + 0x40]
mov qword [rsp + 0x28], rax
lea r8, [0x1800034c0]
mov r9, rbx
mov dword [rsp + 0x20], ecx
mov edx, 0x20000
mov dword [rsp + 0x40], ecx
call qword [sym.imp.KERNEL32.dll_CreateThread]
mov qword [rbx + 0x6f0], rax
test rax, rax
jne 0x180003980
call qword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jle 0x180003982
movzx eax, ax
or eax, 0x80070000
add rsp, 0x30
pop rbx
ret
xor eax, eax
add rsp, 0x30
pop rbx
ret

Function at 0x1800041c0
Capabilities:
Read file on windows
Write file on windows

Disassembly:
push rbp
push rsi
push rdi
sub rsp, 0x40
lea rax, [rdx - 1]
mov esi, r9d
mov r10, r8
mov rbp, rdx
cmp rax, 0xfffffffffffffffd
ja 0x1800042cc
test r8, r8
je 0x1800042cc
test r9d, r9d
je 0x1800042cc
mov rdi, qword [rsp + 0x80]
test rdi, rdi
je 0x1800042cc
mov qword [rsp + 0x60], rbx
lea r9, [rsp + 0x68]
mov qword [rsp + 0x70], r14
mov r8d, esi
xor r14d, r14d
mov rdx, r10
mov rcx, rbp
mov dword [rsp + 0x68], r14d
mov ebx, r14d
mov qword [rsp + 0x20], r14
call qword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x18000423a
cmp dword [rsp + 0x68], esi
je 0x18000424f
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
test eax, eax
jle 0x18000424f
movzx ebx, ax
or ebx, 0x80070000
mov dword [rdi], 0x80004005
test ebx, ebx
js 0x1800042b8
lea r9, [rsp + 0x30]
mov dword [rsp + 0x30], r14d
mov r8d, 4
mov qword [rsp + 0x20], r14
mov rdx, rdi
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x1800042a3
cmp dword [rsp + 0x30], 4
jne 0x1800042a3
cmp dword [rdi], r14d
jge 0x1800042b8
mov r14, qword [rsp + 0x70]
mov ebx, 1
mov eax, ebx
mov rbx, qword [rsp + 0x60]
add rsp, 0x40
pop rdi
pop rsi
pop rbp
ret
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
test eax, eax
jle 0x1800042b8
movzx ebx, ax
or ebx, 0x80070000
mov r14, qword [rsp + 0x70]
mov eax, ebx
mov rbx, qword [rsp + 0x60]
add rsp, 0x40
pop rdi
pop rsi
pop rbp
ret
mov eax, 0x80070057
add rsp, 0x40
pop rdi
pop rsi
pop rbp
ret
Function at 0x180007290
Capabilities:
Check if file exists

Disassembly:
push rbx
push rbp
push rsi
push rdi
push r14
sub rsp, 0x240
mov rax, qword [0x180012018]
xor rax, rsp
mov qword [rsp + 0x230], rax
mov rbp, r8
mov rsi, rdx
mov r8d, edx
mov rbx, rcx
mov rdx, rcx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
mov edx, 0x5c
mov rcx, rbx
call sub.VCRUNTIME140.dll_wcsrchr
mov rdi, rax
add rdi, 2
je 0x1800073aa
xor r14d, r14d
mov r8, rbp
mov rdx, rsi
mov word [rdi], r14w
mov rcx, rbx
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcscat_s]
mov rcx, rbx
call qword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x1800073a6
lea r8d, [r14 + 4]
lea rdx, str.x86_
lea rcx, [rdi - 8]
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll__wcsnicmp]
mov rcx, rbx
test eax, eax
jne 0x180007337
mov r8, rbp
mov word [rdi - 8], r14w
mov rdx, rsi
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcscat_s]
jmp 0x180007399
mov edx, 0x5c
call sub.VCRUNTIME140.dll_wcsrchr
add rax, 2
je 0x180007399
mov r8, rbx
mov word [rax], r14w
mov edx, 0x104
lea rcx, [rsp + 0x20]
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcscpy_s]
lea r8, str.x86_
mov edx, 0x104
lea rcx, [rsp + 0x20]
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcscat_s]
mov r8, rbp
lea rcx, [rsp + 0x20]
mov edx, 0x104
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcscat_s]
lea r8, [rsp + 0x20]
mov rdx, rsi
mov rcx, rbx
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcscpy_s]
mov rcx, rbx
call qword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x1800073aa
xor eax, eax
jmp 0x1800073bc
call qword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jle 0x1800073bc
movzx eax, ax
or eax, 0x80070000
mov rcx, qword [rsp + 0x230]
xor rcx, rsp
call fcn.18000a740
add rsp, 0x240
pop r14
pop rdi
pop rsi
pop rbp
pop rbx
ret
Function at 0x180008330
Capabilities:
Print debug messages

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x30
mov rdi, rcx
xor ebx, ebx
mov qword [rsp + 0x20], rbx
mov qword [rsp + 0x48], rbx
cmp dword [0x1800125d4], ebx
jne 0x1800083eb
mov eax, dword [0x1800125d0]
test eax, eax
jne 0x1800083eb
mov edx, dword [0x1800125dc]
test edx, edx
je 0x18000838b
lea rcx, str.IsolationAware_function_called_after_IsolationAwareCleanup_n
call qword [sym.imp.KERNEL32.dll_OutputDebugStringA]
mov eax, dword [0x1800125d0]
mov edx, dword [0x1800125dc]
test eax, eax
jne 0x1800083eb
test edx, edx
jne 0x18000839c
call fcn.180008500
test eax, eax
je 0x1800083b2
lea rdx, [rsp + 0x48]
mov rcx, qword [section..data]
call qword [sym.imp.KERNEL32.dll_ActivateActCtx]
test eax, eax
jne 0x1800083eb
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea ecx, [rax - 0x7e]
cmp ecx, 1
jbe 0x1800083e1
cmp eax, 0x78
je 0x1800083e1
cmp eax, 1
je 0x1800083e1
cmp eax, 0x32
je 0x1800083e1
xor eax, eax
mov rbx, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x50]
add rsp, 0x30
pop rdi
ret
mov dword [0x1800125d0], 1
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov rsi, rax
mov qword [rsp + 0x20], rax
cmp dword [0x1800125d4], 0
je 0x18000840e
cmp dword [0x1800125d0], 0
jne 0x18000843c
mov edi, ebx
test rsi, rsi
sete dil
test edi, edi
je 0x180008423
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
mov rdx, qword [rsp + 0x48]
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_DeactivateActCtx]
test edi, edi
je 0x18000843c
mov ecx, ebx
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov rax, rsi
mov rbx, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x50]
add rsp, 0x30
pop rdi
ret

Function at 0x180009c60
Capabilities:
Print debug messages

Disassembly:
mov qword [rsp + 8], rcx
mov qword [rsp + 0x10], rdx
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x20], r9
push rbx
push rdi
mov eax, 0x2058
call fcn.18000a6d0
sub rsp, rax
mov rax, qword [0x180012018]
xor rax, rsp
mov qword [rsp + 0x2040], rax
mov rbx, rcx
lea rdi, [rsp + 0x2078]
call fcn.1800086f0
mov qword [rsp + 0x30], rdi
lea rdx, [rsp + 0x40]
mov qword [rsp + 0x28], 0
mov r9, 0xffffffffffffffff
mov r8d, 0x1000
mov qword [rsp + 0x20], rbx
mov rcx, qword [rax]
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___stdio_common_vsnwprintf_s]
lea rcx, [rsp + 0x40]
call qword [sym.imp.KERNEL32.dll_OutputDebugStringW]
mov rcx, qword [rsp + 0x2040]
xor rcx, rsp
call fcn.18000a740
add rsp, 0x2058
pop rdi
pop rbx
ret
Function at 0x140001534
Capabilities:
Get file attributes
Print debug messages
Read file on windows

Disassembly:
mov qword [rsp + 8], rbx
push rbp
sub rsp, 0x80
mov rax, qword [0x14000b330]
xor rax, rsp
mov qword [rsp + 0x78], rax
mov qword [0x14000bc48], rcx
test rcx, rcx
je 0x14000170b
test rdx, rdx
je 0x14000170b
lea rbx, [0x140012e70]
mov rcx, rbx
call qword [sym.imp.ntoskrnl.exe_RtlInitUnicodeString]
and dword [rsp + 0x50], 0
and qword [rsp + 0x48], 0
xorps xmm0, xmm0
movdqu xmmword [0x140012e60], xmm0
and qword [0x140012e48], 0
mov dword [rsp + 0x40], 0x28
mov dword [rsp + 0x38], 1
mov dword [rsp + 0x30], 1
and dword [rsp + 0x28], 0
and qword [rsp + 0x20], 0
lea rbp, [0x140012e20]
lea r8, [0x140012e40]
lea rcx, [0x14000ecc0]
mov edx, 0x110000
mov r9, rbp
mov dword [0x140012e40], 0x30
mov dword [0x140012e58], 0x40
mov qword [0x140012e50], rbx
call qword [sym.imp.ntoskrnl.exe_ZwCreateFile]
test eax, eax
js 0x140001710
mov rcx, qword [0x14000ecc0]
and dword [rsp + 0x60], 0
xor eax, eax
lea r9d, [rax + 0x18]
lea r8, [rsp + 0x60]
mov rdx, rbp
mov qword [rsp + 0x64], rax
mov qword [rsp + 0x6c], rax
mov dword [rsp + 0x74], eax
mov dword [rsp + 0x20], 5
call qword [sym.imp.ntoskrnl.exe_ZwQueryInformationFile]
mov ebx, eax
test eax, eax
js 0x1400016df
cmp qword [rsp + 0x68], 0
je 0x1400016df
mov edx, dword [rsp + 0x68]
mov ecx, 1
mov r8d, 0x62737973
call qword [sym.imp.ntoskrnl.exe_ExAllocatePoolWithTag]
mov qword [0x14000ecc8], rax
test rax, rax
jne 0x14000167b
lea rcx, [0x140008210]
call sub.ntoskrnl.exe_DbgPrint
jmp 0x1400016ed
mov r8d, dword [rsp + 0x68]
xor edx, edx
mov rcx, rax
call fcn.1400013f0
and qword [rsp + 0x40], 0
mov eax, dword [rsp + 0x68]
and qword [rsp + 0x38], 0
mov rcx, qword [0x14000ecc0]
mov dword [rsp + 0x30], eax
mov rax, qword [0x14000ecc8]
xor r9d, r9d
xor r8d, r8d
mov qword [rsp + 0x28], rax
xor edx, edx
mov qword [rsp + 0x20], rbp
call qword [sym.imp.ntoskrnl.exe_ZwReadFile]
mov ebx, eax
test eax, eax
jns 0x1400016d3
lea rcx, [0x140008230]
jmp 0x1400016e6
mov eax, dword [rsp + 0x68]
mov dword [0x140012e18], eax
jmp 0x1400016ed
lea rcx, [0x1400081f0]
mov edx, eax
call sub.ntoskrnl.exe_DbgPrint
mov rcx, qword [0x14000ecc0]
test rcx, rcx
je 0x140001707
call qword [sym.imp.ntoskrnl.exe_ZwClose]
and qword [0x14000ecc0], 0
mov eax, ebx
jmp 0x140001710
mov eax, 0xc000000d
mov rcx, qword [rsp + 0x78]
xor rcx, rsp
call fcn.140008010
mov rbx, qword [rsp + 0x90]
add rsp, 0x80
pop rbp
ret
Function at 0x1400017a0
Capabilities:
Create thread

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x40
and qword [rsp + 0x60], 0
mov rdi, rdx
mov esi, ecx
mov edx, 0x30
xor ecx, ecx
mov bl, 1
call qword [sym.imp.ntoskrnl.exe_ExAllocatePool]
mov r8, rax
mov qword [0x14000b348], rax
test rax, rax
jne 0x1400017df
xor bl, bl
jmp 0x140001889
imul eax, esi, 0xffffd8f0
xor edx, edx
movsxd rcx, eax
mov qword [r8], rcx
mov rax, qword [0x14000b348]
xor r8d, r8d
mov qword [rax + 8], rdi
mov rcx, qword [0x14000b348]
add rcx, 0x18
call qword [sym.imp.ntoskrnl.exe_KeInitializeEvent]
and qword [rsp + 0x30], 0
lea rax, [0x140003570]
mov qword [rsp + 0x28], rax
and qword [rsp + 0x20], 0
lea rcx, [rsp + 0x60]
xor r9d, r9d
xor r8d, r8d
xor edx, edx
call qword [sym.imp.ntoskrnl.exe_PsCreateSystemThread]
test eax, eax
js 0x14000186b
mov rax, qword [0x14000b348]
mov rcx, qword [rsp + 0x60]
and qword [rsp + 0x28], 0
add rax, 0x10
xor r9d, r9d
xor r8d, r8d
mov edx, 0x1f0003
mov qword [rsp + 0x20], rax
call qword [sym.imp.ntoskrnl.exe_ObReferenceObjectByHandle]
test eax, eax
jns 0x140001889
mov rcx, qword [0x14000b348]
xor bl, bl
test rcx, rcx
je 0x140001889
xor edx, edx
call qword [sym.imp.ntoskrnl.exe_ExFreePoolWithTag]
and qword [0x14000b348], 0
mov rcx, qword [rsp + 0x60]
test rcx, rcx
je 0x140001899
call qword [sym.imp.ntoskrnl.exe_ZwClose]
mov rsi, qword [rsp + 0x58]
mov al, bl
mov rbx, qword [rsp + 0x50]
add rsp, 0x40
pop rdi
ret

Function at 0x1400027ac
Capabilities:
Create device object

Disassembly:
mov r11, rsp
mov qword [r11 + 8], rbx
push rdi
sub rsp, 0x50
xor eax, eax
mov rbx, rcx
xor edi, edi
mov word [rsp + 0x40], di
mov qword [r11 - 0x16], rax
lea rcx, [r11 - 0x18]
lea rdx, [0x140008450]
mov dword [rsp + 0x4a], eax
mov word [rsp + 0x4e], ax
mov qword [r11 + 0x10], rdi
call qword [sym.imp.ntoskrnl.exe_RtlInitUnicodeString]
lea rax, [rsp + 0x68]
mov qword [rsp + 0x30], rax
lea r9d, [rdi + 0x22]
lea r8, [rsp + 0x40]
xor edx, edx
mov rcx, rbx
mov byte [rsp + 0x28], dil
mov dword [rsp + 0x20], edi
call qword [sym.imp.ntoskrnl.exe_IoCreateDevice]
mov rbx, qword [rsp + 0x60]
add rsp, 0x50
pop rdi
ret
Function at 0x140003014
Capabilities:
Set registry value

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
mov qword [rax + 0x18], rdi
push rbp
lea rbp, [rax - 0x57]
sub rsp, 0x90
mov rbx, rdx
mov rdx, rcx
lea rcx, [rbp - 9]
mov rdi, r9
mov esi, r8d
call qword [sym.imp.ntoskrnl.exe_RtlInitUnicodeString]
lea rcx, [rbp + 7]
mov rdx, rbx
call qword [sym.imp.ntoskrnl.exe_RtlInitUnicodeString]
and qword [rbp + 0x1f], 0
lea rax, [rbp - 9]
xorps xmm0, xmm0
movdqu xmmword [rbp + 0x37], xmm0
lea r8, [rbp + 0x17]
lea rcx, [rbp - 0x11]
mov edx, 0xf003f
mov qword [rbp + 0x27], rax
mov dword [rbp + 0x17], 0x30
mov dword [rbp + 0x2f], 0x40
call qword [sym.imp.ntoskrnl.exe_ZwOpenKey]
test eax, eax
js 0x1400030c0
mov eax, dword [rbp + 0x7f]
mov rcx, qword [rbp - 0x11]
lea rdx, [rbp + 7]
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 [rbp - 0x11]
call qword [sym.imp.ntoskrnl.exe_ZwFlushKey]
mov rcx, qword [rbp - 0x11]
call qword [sym.imp.ntoskrnl.exe_ZwClose]
lea r11, [rsp + 0x90]
mov rbx, qword [r11 + 0x10]
mov rsi, qword [r11 + 0x18]
mov rdi, qword [r11 + 0x20]
mov rsp, r11
pop rbp
ret

Function at 0x14000362c
Capabilities:
Print debug messages
Write file on windows

Disassembly:
push rdi
sub rsp, 0x70
cmp dword [0x140012e18], 0
jbe 0x140003771
mov rdx, qword [0x14000bc48]
lea rcx, [rsp + 0x60]
call qword [sym.imp.ntoskrnl.exe_RtlInitUnicodeString]
and dword [rsp + 0x50], 0
and qword [rsp + 0x48], 0
xorps xmm0, xmm0
movdqu xmmword [0x140012e60], xmm0
and qword [0x140012e48], 0
mov dword [rsp + 0x40], 0x20
mov dword [rsp + 0x38], 5
lea rax, [rsp + 0x60]
mov dword [rsp + 0x30], 7
lea rdi, [0x140012e20]
lea r8, [0x140012e40]
lea rcx, [0x14000ecd8]
mov edx, 0x10000000
mov r9, rdi
mov dword [rsp + 0x28], 0x80
and qword [rsp + 0x20], 0
mov dword [0x140012e40], 0x30
mov dword [0x140012e58], 0x240
mov qword [0x140012e50], rax
call qword [sym.imp.ntoskrnl.exe_ZwCreateFile]
test eax, eax
jns 0x1400036ea
lea rcx, [0x140008250]
mov edx, eax
call sub.ntoskrnl.exe_DbgPrint
and qword [rsp + 0x40], 0
mov eax, dword [0x140012e18]
and qword [rsp + 0x38], 0
mov rcx, qword [0x14000ecd8]
mov dword [rsp + 0x30], eax
mov rax, qword [0x14000ecc8]
mov qword [rsp + 0x28], rax
xor r9d, r9d
xor r8d, r8d
xor edx, edx
mov qword [rsp + 0x20], rdi
call qword [sym.imp.ntoskrnl.exe_ZwWriteFile]
test eax, eax
jns 0x140003738
lea rcx, [0x140008260]
mov edx, eax
call sub.ntoskrnl.exe_DbgPrint
mov rcx, qword [0x14000ecd8]
test rcx, rcx
je 0x140003752
call qword [sym.imp.ntoskrnl.exe_ZwClose]
and qword [0x14000ecc0], 0
mov rcx, qword [0x14000ecc8]
test rcx, rcx
je 0x140003771
mov edx, 0x62737973
call qword [sym.imp.ntoskrnl.exe_ExFreePoolWithTag]
and qword [0x14000ecc8], 0
add rsp, 0x70
pop rdi
ret