joyce8/EMBER2024-capa huggingface dataset:
Function at 0x14000bce8
Capabilities:
Create process on windows
Create process suspended
Resume thread

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rbp
push rdi
push r12
push r14
push r15
lea rbp, [rsp - 0x600]
sub rsp, 0x700
mov rax, qword [rcx + 0x40]
xor ebx, ebx
mov rsi, rcx
mov dword [rbp + 0x630], ebx
mov rdx, qword [rax]
mov eax, dword [rdx + 8]
sub eax, 0x8c
je 0x14000bd3a
cmp eax, 1
jne 0x14000bd3a
lea r15, str.RegExp.exe
lea r12, [0x14003b4e8]
jmp 0x14000bd48
lea r12, [0x14003b4ec]
lea r15, [0x14003b4f0]
xor eax, eax
lea rdi, [rbp - 0x20]
mov ecx, 0x20a
lea rdx, [rbp - 0x20]
rep stosb byte [rdi], al
lea rcx, [0x14003ab78]
call fcn.140001b80
dec eax
cmp eax, 0x103
ja 0x14000bf20
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
lea r8, [rbp + 0x630]
mov byte [rsp + 0x20], 1
mov rdx, rax
mov ecx, 0x7d1
call fcn.140003018
mov r14, rax
test rax, rax
jne 0x14000bdaf
lea rdx, str.____Failed_to_load_helper_dll_r_n
lea ecx, [rax + 1]
call fcn.140011454
jmp 0x14000bf2b
mov edx, dword [rbp + 0x630]
lea r8, str.RegisterForProvider2
mov r9d, 1
mov rcx, r14
call fcn.1400118a0
test eax, eax
je 0x14000beef
lea r9, [rbp - 0x20]
mov qword [rsp + 0x20], r15
lea r8, [0x14003ac10]
mov edx, 0x208
lea rcx, [rbp + 0x1f0]
call fcn.1400032a4
mov r8d, dword [rbp + 0x630]
lea rax, [rbp + 0x630]
mov rdx, r14
mov qword [rsp + 0x28], rax
lea rcx, [rbp + 0x1f0]
call fcn.140001520
test rax, rax
je 0x14000bedb
xor eax, eax
lea rdi, [rsp + 0x70]
lea edx, [rax + 0x68]
mov ecx, edx
rep stosb byte [rdi], al
lea ecx, [rax + 0x18]
mov dword [rsp + 0x70], edx
lea rdi, [rsp + 0x50]
rep stosb byte [rdi], al
lea rcx, [rsp + 0x70]
call qword [sym.imp.KERNEL32.dll_GetStartupInfoW]
lea rax, [rsp + 0x50]
xor r9d, r9d
mov qword [rsp + 0x48], rax
lea rcx, [rbp + 0x1f0]
lea rax, [rsp + 0x70]
xor r8d, r8d
mov qword [rsp + 0x40], rax
mov rdx, r12
lea rax, [rbp - 0x20]
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x30], rbx
mov dword [rsp + 0x28], 4
mov dword [rsp + 0x20], 1
call qword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
je 0x14000bebc
mov qword [rsp + 0x20], rsi
call fcn.14000c5a0
mov rcx, qword [rsp + 0x58]
mov rdi, rax
call qword [sym.imp.KERNEL32.dll_ResumeThread]
test rdi, rdi
je 0x14000bebc
mov rcx, qword [rsp + 0x50]
or edx, 0xffffffff
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov rcx, qword [rsp + 0x58]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
cmp qword [rsi + 0x28], rbx
setne bl
jmp 0x14000bf00
mov edx, dword [rbp + 0x630]
lea rcx, str.____Failed_to_write_help_dll_on_disk
call fcn.1400122dc
jmp 0x14000bf00
lea rdx, str.____Error_while_configuring_helper_dll_r_n
mov ecx, 1
call fcn.140011454
mov rcx, qword gs:[0x30]
mov r8, r14
xor edx, edx
mov rcx, qword [rcx + 0x60]
mov rcx, qword [rcx + 0x30]
call qword [sym.imp.ntdll.dll_RtlFreeHeap]
mov eax, ebx
jmp 0x14000bf2d
mov ecx, 8
call qword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
lea r11, [rsp + 0x700]
mov rbx, qword [r11 + 0x38]
mov rsi, qword [r11 + 0x40]
mov rsp, r11
pop r15
pop r14
pop r12
pop rdi
pop rbp
ret
Function at 0x14000c168
Capabilities:
Access peb ldr_data

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
push rbp
push r14
push r15
lea rbp, [rax - 0x5f]
sub rsp, 0xd0
mov rsi, rcx
mov word [rbp + 0x73], 0x500
xor r15d, r15d
mov dword [rbp - 0x69], 0x101
lea rcx, [rbp - 0x59]
mov dword [rbp + 0x6f], r15d
mov r8b, 2
mov qword [rbp - 0x65], 0x1000000
lea rdx, [rbp + 0x6f]
call qword [sym.imp.ntdll.dll_RtlInitializeSid]
xor edx, edx
lea rcx, [rbp - 0x59]
call qword [sym.imp.ntdll.dll_RtlSubAuthoritySid]
lea edx, [r15 + 1]
lea rcx, [rbp - 0x59]
mov dword [rax], 0x20
call qword [sym.imp.ntdll.dll_RtlSubAuthoritySid]
lea rcx, [rbp - 0x59]
mov dword [rax], 0x220
call qword [sym.imp.ntdll.dll_RtlLengthSid]
lea rcx, [rbp - 0x69]
mov r14d, eax
call qword [sym.imp.ntdll.dll_RtlLengthSid]
add eax, 0x48
lea edx, [r15 + 8]
add r14d, eax
mov rax, qword gs:[0x30]
mov r8d, r14d
mov rcx, qword [rax + 0x60]
mov rcx, qword [rcx + 0x30]
call qword [sym.imp.ntdll.dll_RtlAllocateHeap]
mov rbx, rax
test rax, rax
je 0x14000c27f
lea edx, [r15 + 1]
mov rcx, rax
lea rdi, [rax + 0x28]
call qword [sym.imp.ntdll.dll_RtlCreateSecurityDescriptor]
lea edx, [r14 - 0x28]
mov rcx, rdi
lea r8d, [r15 + 2]
call qword [sym.imp.ntdll.dll_RtlCreateAcl]
lea r9, [rbp - 0x59]
mov r8d, 0x1f0001
lea edx, [r15 + 2]
mov rcx, rdi
call qword [sym.imp.ntdll.dll_RtlAddAccessAllowedAce]
lea r9, [rbp - 0x69]
mov rcx, rdi
lea edx, [r15 + 2]
lea r8d, [r15 + 1]
call qword [sym.imp.ntdll.dll_RtlAddAccessAllowedAce]
xor r9d, r9d
mov r8, rdi
mov dl, 1
mov rcx, rbx
call qword [sym.imp.ntdll.dll_RtlSetDaclSecurityDescriptor]
lea rdx, str.KduPort
lea rcx, [rbp - 0x19]
call qword [sym.imp.ntdll.dll_RtlInitUnicodeString]
lea rax, [rbp - 0x19]
mov dword [rbp - 0x49], 0x30
mov qword [rbp - 0x39], rax
lea rdi, [rbp - 9]
xor eax, eax
mov qword [rbp - 0x41], r15
lea r8, [rbp - 9]
mov dword [rbp - 0x31], 0x40
lea rdx, [rbp - 0x49]
mov qword [rbp - 0x29], rbx
mov qword [rbp - 0x21], r15
lea ecx, [rax + 0x48]
rep stosb byte [rdi], al
mov rcx, rsi
mov qword [rbp + 7], 0xa8
call qword [sym.imp.ntdll.dll_NtAlpcCreatePort]
mov edi, eax
test rbx, rbx
je 0x14000c2f9
mov rcx, qword gs:[0x30]
mov r8, rbx
xor edx, edx
mov rcx, qword [rcx + 0x60]
mov rcx, qword [rcx + 0x30]
call qword [sym.imp.ntdll.dll_RtlFreeHeap]
lea r11, [rsp + 0xd0]
mov eax, edi
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x30]
mov rdi, qword [r11 + 0x38]
mov rsp, r11
pop r15
pop r14
pop rbp
ret
Function at 0x14000c5a0
Capabilities:
Create thread

Disassembly:
mov qword [rsp + 0x20], r9
push rbx
sub rsp, 0x30
and dword [rsp + 0x58], 0
mov edx, 8
mov rax, qword gs:[0x30]
lea r8d, [rdx + 0x28]
mov rcx, qword [rax + 0x60]
mov rcx, qword [rcx + 0x30]
call qword [sym.imp.ntdll.dll_RtlAllocateHeap]
mov rbx, rax
test rax, rax
je 0x14000c641
mov rcx, qword [rsp + 0x60]
lea rax, [0x140012454]
mov qword [rbx], rax
lea r8, [0x14000c318]
lea rax, [0x140012440]
mov qword [rbx + 0x20], rcx
mov qword [rbx + 8], rax
mov r9, rbx
lea rax, [rsp + 0x58]
xor edx, edx
mov qword [rsp + 0x28], rax
xor ecx, ecx
and dword [rsp + 0x20], 0
call qword [sym.imp.KERNEL32.dll_CreateThread]
test rax, rax
je 0x14000c623
mov qword [rbx + 0x28], rax
jmp 0x14000c641
mov rax, qword gs:[0x30]
mov r8, rbx
xor edx, edx
mov rcx, qword [rax + 0x60]
mov rcx, qword [rcx + 0x30]
call qword [sym.imp.ntdll.dll_RtlFreeHeap]
xor ebx, ebx
mov rax, rbx
add rsp, 0x30
pop rbx
ret
Function at 0x14000d0e4
Capabilities:
Access pe header

Disassembly:
mov qword [rsp + 8], rsi
push rdi
sub rsp, 0x3f0
xor r9d, r9d
xor r8d, r8d
lea edx, [r9 + 1]
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_HeapSetInformation]
mov rax, qword gs:[0x30]
mov rcx, qword [rax + 0x60]
mov rcx, qword [rcx + 0x10]
call qword [sym.imp.ntdll.dll_RtlImageNtHeader]
mov ecx, dword [rax + 0x58]
mov dword [rsp + 0x38], ecx
lea rax, str.Thu_Jun_27_04:25:39_2024
mov qword [rsp + 0x30], rax
mov dword [rsp + 0x28], 0x7e8
mov dword [rsp + 0x20], 0x964
mov edx, 1
lea r9d, [rdx + 1]
lea r8d, [rdx + 3]
lea rcx, str.___Kernel_Driver_Utility_v_lu._lu._lu__build__lu__started___c_2020____lu_KDU_Project_r_n___Built_at__s__header_checksum_0x_lX_r_n___Supported_x64_OS_:_Windows_7_and_above_r_n
call fcn.140002fc4
lea rdi, [rsp + 0xe0]
xor eax, eax
mov ecx, 0x100
rep stosb byte [rdi], al
lea rdi, [rsp + 0x1e0]
mov ecx, 0x20a
rep stosb byte [rdi], al
mov rax, qword gs:[0x30]
mov rcx, qword [rax + 0x60]
mov rcx, qword [rcx + 0x10]
call qword [sym.imp.ntdll.dll_RtlImageNtHeader]
mov dword [rsp + 0x40], 0x1040264
movzx ecx, word [rax + 0x58]
or ecx, 0x24040000
mov dword [rsp + 0x44], ecx
lea r9, [rsp + 0xe0]
mov r10, qword [rsp + 0x40]
mov word [rsp + 0xde], 0x5f2d
xor esi, esi
mov dil, sil
lea r8, [rsp + 0xd4]
movzx ecx, dil
lea edx, [rdi + 0x61]
lea eax, [rdx - 0x20]
mov byte [r8 - 0x34], al
mov byte [rsp + rcx + 0xba], dl
cmp cl, 0xa
jae 0x14000d1e7
sub dl, 0x31
mov byte [r8], dl
inc dil
inc r8
cmp dil, 0x1a
jl 0x14000d1c7
mov ecx, 0xd
mov rax, r10
shr r10, 5
and eax, 0x3f
movsx eax, byte [rsp + rax + 0xa0]
mov word [r9], ax
lea r9, [r9 + 2]
sub rcx, 1
jne 0x14000d1f8
mov word [r9], si
lea r9, [rsp + 0xe0]
lea r8, str.BaseNamedObjects_ws
mov edx, 0x104
lea rcx, [rsp + 0x1e0]
call fcn.1400032a4
lea rdx, [rsp + 0x1e0]
lea rcx, [rsp + 0x58]
call qword [sym.imp.ntdll.dll_RtlInitUnicodeString]
mov dword [rsp + 0x68], 0x30
mov qword [rsp + 0x70], rsi
mov dword [rsp + 0x80], 0x40
lea rax, [rsp + 0x58]
mov qword [rsp + 0x78], rax
xorps xmm0, xmm0
movdqu xmmword [rsp + 0x88], xmm0
xor r9d, r9d
lea r8, [rsp + 0x68]
mov edx, 0x1f0001
lea rcx, [rsp + 0x50]
call qword [sym.imp.ntdll.dll_NtCreateMutant]
mov edi, 0xb7
mov ecx, 0xc0000035
cmp eax, ecx
cmovne edi, esi
je 0x14000d2c7
call fcn.14000cc44
mov edi, eax
mov dword [rsp + 0x48], eax
jmp 0x14000d2d8
lea rdx, str.____Another_instance_is_running__close_it_before_r_n
mov ecx, 1
call fcn.140011454
mov edx, edi
lea rcx, str.___Return_value:__d._Bye_bye__r_n
call fcn.140002fc4
mov eax, edi
mov rsi, qword [rsp + 0x400]
add rsp, 0x3f0
pop rdi
ret
Function at 0x14000e684
Capabilities:
Create process on windows
Create process suspended
Resume thread

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rdi
push rbp
lea rbp, [rsp - 0x57]
sub rsp, 0xe0
mov rbx, rdx
mov rdi, rcx
xor edx, edx
lea rcx, [rbp - 0x15]
lea r8d, [rdx + 0x64]
call fcn.14002bd70
xorps xmm0, xmm0
mov dword [rbp - 0x19], 0x68
xor eax, eax
lea rcx, str.___Creating_Process__s_r_n
mov rdx, rbx
mov qword [rbp - 0x29], rax
movups xmmword [rbp - 0x39], xmm0
call fcn.14000e374
lea rax, [rbp - 0x39]
xor r9d, r9d
mov qword [rsp + 0x48], rax
xor r8d, r8d
lea rax, [rbp - 0x19]
mov rdx, rbx
mov qword [rsp + 0x40], rax
xor ecx, ecx
and qword [rsp + 0x38], 0
and qword [rsp + 0x30], 0
mov dword [rsp + 0x28], 4
and dword [rsp + 0x20], 0
call qword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
jne 0x14000e72e
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.____Failed_to_create_process
mov edx, eax
call fcn.1400123a8
xor eax, eax
jmp 0x14000e7b4
mov edx, dword [rbp - 0x29]
lea rcx, str.___Created_Process_with_PID__lu_r_n
call fcn.140002fc4
mov edx, dword [rbp - 0x29]
mov r9d, 1
mov rcx, rdi
lea r8d, [r9 + 2]
call fcn.14000e7cc
mov ebx, eax
test eax, eax
jne 0x14000e767
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.____Failed_to_set_process_as_PPL
jmp 0x14000e720
mov rcx, qword [rbp - 0x31]
call qword [sym.imp.KERNEL32.dll_ResumeThread]
mov edi, eax
cmp eax, 1
je 0x14000e791
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, edi
lea rcx, str.____Failed_to_resume_process:__lu__0x_lX_n
mov r8d, eax
call fcn.140002fc4
jmp 0x14000e7b2
mov rcx, qword [rbp - 0x39]
or edx, 0xffffffff
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov rcx, qword [rbp - 0x39]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rbp - 0x31]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, ebx
lea r11, [rsp + 0xe0]
mov rbx, qword [r11 + 0x10]
mov rdi, qword [r11 + 0x18]
mov rsp, r11
pop rbp
ret

Function at 0x14000ffe4
Capabilities:
Map section object

Disassembly:
mov r11, rsp
sub rsp, 0x68
and qword [r11 + 0x10], 0
mov r10, rdx
and r10, 0xfffffffffffff000
mov eax, r8d
sub rax, r10
mov qword [r11 - 0x10], r10
add rax, rdx
lea r8, [r11 + 0x10]
mov qword [r11 - 0x18], rax
neg r9d
sbb eax, eax
xor r9d, r9d
and eax, 2
or rdx, 0xffffffffffffffff
add eax, 2
mov dword [rsp + 0x48], eax
lea rax, [r11 - 0x18]
and dword [rsp + 0x40], 0
mov dword [rsp + 0x38], 2
mov qword [r11 - 0x38], rax
lea rax, [r11 - 0x10]
mov qword [r11 - 0x40], rax
and qword [r11 - 0x48], 0
call qword [sym.imp.ntdll.dll_NtMapViewOfSection]
test eax, eax
jns 0x140010065
mov ecx, eax
call qword [sym.imp.ntdll.dll_RtlNtStatusToDosError]
mov ecx, eax
call qword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
jmp 0x14001006a
mov rax, qword [rsp + 0x78]
add rsp, 0x68
ret
Function at 0x140010688
Capabilities:
Access pe header

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 edi, edx
xor ebp, ebp
mov r14, r8
mov rsi, r9
mov r8, rcx
mov rdx, rcx
mov r10d, ebp
lea r11d, [rdi + 1]
shr r11d, 1
je 0x1400106da
movzx eax, word [rdx]
lea rdx, [rdx + 2]
add r10d, eax
mov ecx, r10d
movzx r10d, r10w
shr ecx, 0x10
add r10d, ecx
add r11d, 0xffffffff
jne 0x1400106bd
mov ebx, r10d
mov rcx, r8
shr ebx, 0x10
add bx, r10w
call qword [sym.imp.ntdll.dll_RtlImageNtHeader]
test rax, rax
je 0x140010711
movzx ecx, word [rax + 0x58]
cmp bx, cx
adc cx, bp
sub bx, cx
movzx ecx, word [rax + 0x5a]
cmp bx, cx
adc cx, bp
sub bx, cx
mov ecx, dword [rax + 0x58]
jmp 0x140010716
mov ecx, edi
movzx ebx, bp
movzx eax, bx
add eax, edi
test r14, r14
je 0x140010723
mov dword [r14], ecx
test rsi, rsi
je 0x14001072a
mov dword [rsi], eax
mov rbx, qword [rsp + 0x30]
cmp eax, ecx
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
sete al
mov rdi, qword [rsp + 0x48]
add rsp, 0x20
pop r14
ret

Function at 0x14001074c
Capabilities:
Delete registry key
Query or enumerate registry key

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 8], rcx
push rbp
push rsi
push rdi
push r14
push r15
lea rbp, [rsp - 0x150]
sub rsp, 0x250
mov r14, 0xffffffff80000002
mov rsi, rdx
mov rcx, r14
call qword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
xor ebx, ebx
test eax, eax
je 0x14001087f
lea rax, [rbp + 0x190]
mov r9d, 0x20019
xor r8d, r8d
mov qword [rsp + 0x20], rax
mov rdx, rsi
mov rcx, r14
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
je 0x1400107be
cmp eax, 2
je 0x14001087f
xor eax, eax
jmp 0x140010884
mov rdi, rsi
test rsi, rsi
jne 0x1400107cb
mov rdi, rbx
jmp 0x1400107d9
cmp word [rsi], bx
je 0x1400107d9
add rdi, 2
cmp word [rdi], bx
jne 0x1400107d0
mov eax, 0x5c
cmp word [rdi - 2], ax
je 0x1400107ee
mov word [rdi], ax
add rdi, 2
mov word [rdi], bx
mov r15d, 0x104
jmp 0x140010818
mov r9, r15
lea r8, [rsp + 0x40]
mov rdx, r15
mov rcx, rdi
call fcn.14000148c
mov rdx, rsi
mov rcx, r14
call fcn.14001074c
test eax, eax
je 0x140010859
mov rcx, qword [rbp + 0x190]
lea rax, [rbp + 0x198]
mov qword [rsp + 0x38], rax
lea r9, [rbp + 0x180]
mov qword [rsp + 0x30], rbx
lea r8, [rsp + 0x40]
mov qword [rsp + 0x28], rbx
xor edx, edx
mov qword [rsp + 0x20], rbx
mov dword [rbp + 0x180], r15d
call qword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
test eax, eax
je 0x1400107f6
mov rcx, qword [rbp + 0x190]
mov word [rdi - 2], bx
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rdx, rsi
mov rcx, r14
call qword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
test eax, eax
sete bl
mov eax, ebx
jmp 0x140010884
mov eax, 1
mov rbx, qword [rsp + 0x288]
add rsp, 0x250
pop r15
pop r14
pop rdi
pop rsi
pop rbp
ret
Function at 0x140010af8
Capabilities:
Install driver
Unload driver

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, 0x250
xor r14d, r14d
mov rbx, rdx
mov rsi, r9
mov bpl, r8b
mov rdx, rcx
test rcx, rcx
je 0x140010bf8
test rbx, rbx
jne 0x140010b3b
mov eax, 0xc00000f0
jmp 0x140010bfd
xor eax, eax
mov qword [rsp + 0x20], rdx
lea rdi, [rsp + 0x40]
mov ecx, 0x20a
rep stosb byte [rdi], al
lea rcx, [rsp + 0x40]
mov edx, 0x104
lea r9, str.RegistryMachine
lea r8, str._wSSystemCurrentControlSetServices_wS
call fcn.1400032a4
test eax, eax
js 0x140010bf8
lea rdx, [rsp + 0x64]
mov rcx, rbx
call fcn.140010954
test eax, eax
js 0x140010bfd
lea rdx, [rsp + 0x40]
lea rcx, [rsp + 0x30]
call qword [sym.imp.ntdll.dll_RtlInitUnicodeString]
test rsi, rsi
je 0x140010bac
mov rdx, qword [rsp + 0x280]
lea rcx, [rsp + 0x30]
call rsi
test eax, eax
js 0x140010bfd
lea rcx, [rsp + 0x30]
call qword [sym.imp.ntdll.dll_NtLoadDriver]
test bpl, bpl
je 0x140010bed
cmp eax, 0xc000010e
je 0x140010bd1
cmp eax, 0xc0000035
je 0x140010bd1
cmp eax, 0x40000000
jne 0x140010bfd
lea rcx, [rsp + 0x30]
call qword [sym.imp.ntdll.dll_NtUnloadDriver]
test eax, eax
js 0x140010bfd
lea rcx, [rsp + 0x30]
call qword [sym.imp.ntdll.dll_NtLoadDriver]
jmp 0x140010bfd
cmp eax, 0x40000000
cmove eax, r14d
jmp 0x140010bfd
mov eax, 0xc00000ef
lea r11, [rsp + 0x250]
mov rbx, qword [r11 + 0x10]
mov rbp, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
mov rdi, qword [r11 + 0x28]
mov rsp, r11
pop r14
ret

Function at 0x140010c1c
Capabilities:
Unload driver

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x660
mov rdx, rcx
lea rdi, [rsp + 0x40]
xor eax, eax
mov qword [rsp + 0x20], rdx
mov ecx, 0x20a
lea r9, str.RegistryMachine
rep stosb byte [rdi], al
lea rcx, [rsp + 0x40]
mov edx, 0x104
lea r8, str._wSSystemCurrentControlSetServices_wS
call fcn.1400032a4
test eax, eax
jns 0x140010c67
mov eax, 0xc00000ef
jmp 0x140010cd5
lea rdx, [rsp + 0x64]
xor ecx, ecx
call fcn.140010954
test eax, eax
js 0x140010cd5
lea rdx, [rsp + 0x40]
lea rcx, [rsp + 0x30]
call qword [sym.imp.ntdll.dll_RtlInitUnicodeString]
lea rcx, [rsp + 0x30]
call qword [sym.imp.ntdll.dll_NtUnloadDriver]
mov ebx, eax
test eax, eax
js 0x140010cd3
xor eax, eax
lea rdi, [rsp + 0x250]
mov ecx, 0x410
lea r8, [rsp + 0x64]
rep stosb byte [rdi], al
lea rcx, [rsp + 0x250]
mov r9d, 0x104
mov edx, 0x208
call fcn.14000148c
lea rdx, [rsp + 0x250]
call fcn.14001074c
mov eax, ebx
mov rbx, qword [rsp + 0x670]
add rsp, 0x660
pop rdi
ret

Function at 0x140010e80
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push rbx
sub rsp, 0x20
xor ebx, ebx
call fcn.1400018cc
test rax, rax
je 0x140010eb2
mov rcx, qword gs:[0x30]
mov r8, rax
mov rbx, qword [rax + 0x18]
xor edx, edx
mov rcx, qword [rcx + 0x60]
mov rcx, qword [rcx + 0x30]
call qword [sym.imp.ntdll.dll_RtlFreeHeap]
mov rax, rbx
add rsp, 0x20
pop rbx
ret
Function at 0x140010f14
Capabilities:
Accept command line arguments

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, 0x250
mov r12d, r9d
mov r13, r8
mov r15d, edx
mov rsi, rcx
call qword [sym.imp.KERNEL32.dll_GetCommandLineW]
mov rbx, qword [rsp + 0x2a0]
mov r14, rax
xor eax, eax
mov ebp, eax
test rbx, rbx
je 0x140010f5b
mov dword [rbx], eax
lea rdi, [rsp + 0x40]
mov ecx, 0x20a
rep stosb byte [rdi], al
mov r9d, 0x104
xor edx, edx
jmp 0x140010fb2
cmp dword [rsp + 0x2a0], r8d
je 0x140010fd3
lea rcx, [rsp + 0x40]
mov rax, rsi
cmp rcx, rsi
je 0x140010ff6
test rsi, rsi
je 0x140010fae
lea rdx, [rsp + 0x40]
sub rdx, rsi
movzx ecx, word [rdx + rax]
movzx edi, word [rax]
lea rax, [rax + 2]
test cx, cx
je 0x140010faa
cmp cx, di
je 0x140010f95
cmp ecx, edi
je 0x140010ff6
inc ebp
mov edx, ebp
lea rax, [rsp + 0x2a0]
mov rcx, r14
lea r8, [rsp + 0x40]
mov qword [rsp + 0x20], rax
call fcn.1400012a0
xor r8d, r8d
test eax, eax
jne 0x140010f71
xor eax, eax
lea r11, [rsp + 0x250]
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
test r15d, r15d
je 0x140011029
lea rax, [rsp + 0x2a0]
mov r9d, r12d
lea edx, [rbp + 1]
mov qword [rsp + 0x20], rax
mov r8, r13
mov rcx, r14
call fcn.1400012a0
test rbx, rbx
je 0x140010fd5
mov ecx, dword [rsp + 0x2a0]
mov dword [rbx], ecx
jmp 0x140010fd5
mov eax, 1
jmp 0x140010fd5
Function at 0x14001164c
Capabilities:
Access peb ldr_data
Delete file

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
push r14
push r15
sub rsp, 0x30
mov rax, qword gs:[0x30]
xor edi, edi
mov rsi, r8
mov rbp, rcx
mov r15d, edi
mov r9, qword [rax + 0x60]
mov r14, qword [r9 + 0x20]
mov r9, qword [r8 + 0x28]
mov rax, r9
test r9, r9
jne 0x140011695
mov r9d, edi
jmp 0x1400116a1
add r9, 2
cmp word [r9], di
jne 0x140011691
sub r9, rax
sar r9, 1
mov rax, qword [r8 + 0x30]
mov rcx, rax
test rax, rax
jne 0x1400116b6
mov rax, rdi
jmp 0x1400116c1
add rax, 2
cmp word [rax], di
jne 0x1400116b2
sub rax, rcx
sar rax, 1
lea rcx, [rax + r9]
movzx eax, word [r14 + 0x38]
lea rbx, [rax + rcx*2]
test dl, dl
je 0x1400117dd
mov rcx, rbp
call fcn.14000d50c
test eax, eax
jne 0x1400116f4
mov ecx, 0x54f
call qword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
jmp 0x140011885
mov rax, qword gs:[0x30]
lea r8, [rbx + 0x40]
mov edx, 8
mov rcx, qword [rax + 0x60]
mov rcx, qword [rcx + 0x30]
call qword [sym.imp.ntdll.dll_RtlAllocateHeap]
mov rbx, rax
test rax, rax
je 0x14001187a
movzx edx, word [r14 + 0x38]
mov rcx, rax
mov r8, qword [r14 + 0x40]
shr rdx, 1
mov r9, rdx
call fcn.14000148c
lea rdx, [0x14003a61c]
call fcn.1400013e8
mov rdx, qword [rsi + 0x28]
mov rcx, rbx
mov r14, rax
call fcn.1400013e8
mov r8d, dword [rsi + 0x38]
mov rdx, rbx
mov rcx, qword [rbp + 0x10]
call fcn.1400119c0
test eax, eax
je 0x1400117bc
mov word [r14], di
mov rcx, rbx
mov rdx, qword [rsi + 0x30]
call fcn.1400013e8
mov r8d, dword [rsi + 0x3c]
mov rdx, rbx
mov rcx, qword [rbp + 0x10]
call fcn.1400119c0
test eax, eax
je 0x1400117bc
mov eax, dword [rsi + 0x4c]
lea rcx, [rsi + 8]
mov r8d, dword [rsi + 0x48]
mov r9, rsi
mov rdx, qword [rsi + 0x40]
mov dword [rsp + 0x28], eax
mov qword [rsp + 0x20], rcx
mov rcx, rbx
call fcn.14001150c
mov r15d, eax
test eax, eax
jne 0x1400117bc
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
mov rcx, qword gs:[0x30]
mov r8, rbx
xor edx, edx
mov rcx, qword [rcx + 0x60]
mov rcx, qword [rcx + 0x30]
call qword [sym.imp.ntdll.dll_RtlFreeHeap]
jmp 0x14001187a
mov rax, qword gs:[0x30]
lea r8, [rbx + 0x40]
mov edx, 8
mov rcx, qword [rax + 0x60]
mov rcx, qword [rcx + 0x30]
call qword [sym.imp.ntdll.dll_RtlAllocateHeap]
mov rbp, rax
test rax, rax
je 0x14001187a
movzx edx, word [r14 + 0x38]
mov rcx, rax
mov r8, qword [r14 + 0x40]
shr rdx, 1
mov r9, rdx
call fcn.14000148c
lea rdx, [0x14003a61c]
call fcn.1400013e8
mov rdx, qword [rsi + 0x28]
mov rcx, rbp
mov rbx, rax
call fcn.1400013e8
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
mov word [rbx], di
mov rcx, rbp
mov rdx, qword [rsi + 0x30]
call fcn.1400013e8
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
mov rax, qword gs:[0x30]
mov r8, rbp
xor edx, edx
mov rcx, qword [rax + 0x60]
mov rcx, qword [rcx + 0x30]
call qword [sym.imp.ntdll.dll_RtlFreeHeap]
mov r15d, 1
mov ecx, edi
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov eax, r15d
mov rbx, qword [rsp + 0x50]
mov rbp, qword [rsp + 0x58]
mov rsi, qword [rsp + 0x60]
add rsp, 0x30
pop r15
pop r14
pop rdi
ret