joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140092a00
Capabilities:
Write file on windows

Disassembly:
push rsi
push rbx
sub rsp, 0x38
mov rbx, rcx
lea rax, [rsp + 0x58]
mov ecx, 2
mov qword [rsp + 0x58], rdx
mov qword [rsp + 0x60], r8
mov qword [rsp + 0x68], r9
mov qword [rsp + 0x28], rax
call fcn.140093ae0
mov r8d, 0x1b
mov edx, 1
lea rcx, str.Mingw_w64_runtime_failure:_n
mov r9, rax
call sub.msvcrt.dll_fwrite
mov rsi, qword [rsp + 0x28]
mov ecx, 2
call fcn.140093ae0
mov rdx, rbx
mov rcx, rax
mov r8, rsi
call sub.msvcrt.dll_vfprintf
call sub.msvcrt.dll_abort
nop
nop dword [rax]

Function at 0x140092a70
Capabilities:
Allocate or change rwx memory

Disassembly:
push rdi
push rsi
push rbx
sub rsp, 0x50
movsxd rsi, dword [0x1401c8e34]
mov rbx, rcx
test esi, esi
jle 0x140092ba0
mov rax, qword [0x1401c8e38]
xor r9d, r9d
add rax, 0x18
nop word [rax + rax]
mov r8, qword [rax]
cmp rbx, r8
jb 0x140092abb
mov rdx, qword [rax + 8]
mov edx, dword [rdx + 8]
add r8, rdx
cmp rbx, r8
jb 0x140092b45
add r9d, 1
add rax, 0x28
cmp r9d, esi
jne 0x140092aa0
mov rcx, rbx
call fcn.1400934e0
mov rdi, rax
test rax, rax
je 0x140092bc2
mov rax, qword [0x1401c8e38]
lea rbx, [rsi + rsi*4]
shl rbx, 3
add rax, rbx
mov qword [rax + 0x20], rdi
mov dword [rax], 0
call fcn.140093620
mov edx, dword [rdi + 0xc]
mov r8d, 0x30
lea rcx, [rax + rdx]
mov rax, qword [0x1401c8e38]
lea rdx, [rsp + 0x20]
mov qword [rax + rbx + 0x18], rcx
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x140092ba7
mov eax, dword [rsp + 0x44]
lea edx, [rax - 4]
and edx, 0xfffffffb
je 0x140092b3e
lea edx, [rax - 0x40]
and edx, 0xffffffbf
jne 0x140092b50
add dword [0x1401c8e34], 1
add rsp, 0x50
pop rbx
pop rsi
pop rdi
ret
cmp eax, 2
mov rcx, qword [rsp + 0x20]
mov rdx, qword [rsp + 0x38]
mov r8d, 0x40
mov eax, 4
cmove r8d, eax
add rbx, qword [0x1401c8e38]
mov qword [rbx + 8], rcx
mov r9, rbx
mov qword [rbx + 0x10], rdx
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x140092b3e
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.__VirtualProtect_failed_with_code_0x_x
mov edx, eax
call fcn.140092a00
nop dword [rax]
xor esi, esi
jmp 0x140092ac8
mov rax, qword [0x1401c8e38]
mov edx, dword [rdi + 8]
lea rcx, str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov r8, qword [rax + rbx + 0x18]
call fcn.140092a00
mov rdx, rbx
lea rcx, str.Address__p_has_no_image_section
call fcn.140092a00
nop
nop word cs:[rax + rax]
nop dword [rax]

Function at 0x140093150
Capabilities:
Get thread local storage value

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x20
lea r12, [0x1401c8ea0]
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rbx, qword [0x1401c8e80]
test rbx, rbx
je 0x1400931ac
mov rbp, qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rdi, qword [sym.imp.KERNEL32.dll_GetLastError]
nop dword [rax]
mov ecx, dword [rbx]
call rbp
mov rsi, rax
call rdi
test rsi, rsi
je 0x1400931a3
test eax, eax
jne 0x1400931a3
mov rax, qword [rbx + 8]
mov rcx, rsi
call rax
mov rbx, qword [rbx + 0x10]
test rbx, rbx
jne 0x140093188
mov rcx, r12
add rsp, 0x20
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
jmp qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
Function at 0x1400934e0
Capabilities:
Enumerate pe sections
Parse pe header

Disassembly:
mov rdx, qword [0x140134cb0]
xor eax, eax
cmp word [rdx], 0x5a4d
jne 0x140093500
movsxd r8, dword [rdx + 0x3c]
add r8, rdx
cmp dword [r8], 0x4550
je 0x140093508
ret
cmp word [r8 + 0x18], 0x20b
jne 0x140093500
movzx eax, word [r8 + 0x14]
sub rcx, rdx
lea rax, [r8 + rax + 0x18]
movzx r8d, word [r8 + 6]
test r8w, r8w
je 0x14009355d
lea edx, [r8 - 1]
lea rdx, [rdx + rdx*4]
lea r9, [rax + rdx*8 + 0x28]
nop word cs:[rax + rax]
mov r8d, dword [rax + 0xc]
mov rdx, r8
cmp rcx, r8
jb 0x140093554
add edx, dword [rax + 8]
cmp rcx, rdx
jb 0x140093500
add rax, 0x28
cmp rax, r9
jne 0x140093540
xor eax, eax
ret

Function at 0x140093560
Capabilities:
Parse pe header

Disassembly:
mov rax, qword [0x140134cb0]
xor ecx, ecx
cmp word [rax], 0x5a4d
jne 0x14009357f
movsxd rdx, dword [rax + 0x3c]
add rax, rdx
cmp dword [rax], 0x4550
je 0x140093588
mov eax, ecx
ret
cmp word [rax + 0x18], 0x20b
jne 0x14009357f
movzx ecx, word [rax + 6]
mov eax, ecx
ret

Function at 0x140093620
Capabilities:
Parse pe header

Disassembly:
mov rax, qword [0x140134cb0]
xor edx, edx
cmp word [rax], 0x5a4d
jne 0x14009363f
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
je 0x140093648
mov rax, rdx
ret
cmp word [rcx + 0x18], 0x20b
cmove rdx, rax
mov rax, rdx
ret
Function at 0x1400025e0
Capabilities:
Get common file path

Disassembly:
push rbx
sub rsp, 0x240
mov rax, qword [0x14001c008]
xor rax, rsp
mov qword [rsp + 0x230], rax
lea rbx, [0x14001c8f0]
mov rax, 0xffffffffffffffff
nop dword [rax]
inc rax
cmp word [rbx + rax*2], 0
jne 0x140002610
test rax, rax
jne 0x140002667
xor edx, edx
lea rcx, [rsp + 0x20]
mov r8d, 0x208
call sub.VCRUNTIME140.dll_memset
mov edx, 0x104
lea rcx, [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
lea r8, [rsp + 0x20]
mov edx, 0x104
mov rcx, rbx
call sub.api_ms_win_crt_string_l1_1_0.dll_wcscat_s
lea r8, str._ntoskrnl.exe
mov edx, 0x104
mov rcx, rbx
call sub.api_ms_win_crt_string_l1_1_0.dll_wcscat_s
mov rax, rbx
mov rcx, qword [rsp + 0x230]
xor rcx, rsp
call fcn.1400085d0
add rsp, 0x240
pop rbx
ret

Function at 0x140002740
Capabilities:
Get file size
Read file on windows

Disassembly:
push rdi
sub rsp, 0x50
mov rax, qword [0x14001c008]
xor rax, rsp
mov qword [rsp + 0x48], rax
xor r9d, r9d
mov qword [rsp + 0x30], 0
mov dword [rsp + 0x28], 0x80
mov edx, 0x80000000
mov dword [rsp + 0x20], 3
lea r8d, [r9 + 1]
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov rdi, rax
cmp rax, 0xffffffffffffffff
jne 0x14000279e
xor eax, eax
mov rcx, qword [rsp + 0x48]
xor rcx, rsp
call fcn.1400085d0
add rsp, 0x50
pop rdi
ret
mov qword [rsp + 0x68], rbx
xor edx, edx
mov rcx, rdi
mov qword [rsp + 0x70], rsi
call qword [sym.imp.KERNEL32.dll_GetFileSize]
mov ecx, eax
mov esi, eax
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
lea r9, [rsp + 0x40]
mov dword [rsp + 0x40], 0
mov rdx, rax
mov qword [rsp + 0x20], 0
mov r8d, esi
mov rcx, rdi
mov rbx, rax
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x1400027ef
cmp dword [rsp + 0x40], esi
je 0x1400027f9
mov rcx, rbx
call sub.api_ms_win_crt_heap_l1_1_0.dll_free
xor ebx, ebx
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rsi, qword [rsp + 0x70]
mov rax, rbx
mov rbx, qword [rsp + 0x68]
mov rcx, qword [rsp + 0x48]
xor rcx, rsp
call fcn.1400085d0
add rsp, 0x50
pop rdi
ret

Function at 0x140002830
Capabilities:
Get common file path

Disassembly:
push rbx
sub rsp, 0x240
mov rax, qword [0x14001c008]
xor rax, rsp
mov qword [rsp + 0x230], rax
lea rbx, [0x14001cb10]
mov rax, 0xffffffffffffffff
nop dword [rax]
inc rax
cmp word [rbx + rax*2], 0
jne 0x140002860
test rax, rax
jne 0x1400028b7
xor edx, edx
lea rcx, [rsp + 0x20]
mov r8d, 0x208
call sub.VCRUNTIME140.dll_memset
mov edx, 0x104
lea rcx, [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
lea r8, [rsp + 0x20]
mov edx, 0x104
mov rcx, rbx
call sub.api_ms_win_crt_string_l1_1_0.dll_wcscat_s
lea r8, str.wdigest.dll
mov edx, 0x104
mov rcx, rbx
call sub.api_ms_win_crt_string_l1_1_0.dll_wcscat_s
mov rax, rbx
mov rcx, qword [rsp + 0x230]
xor rcx, rsp
call fcn.1400085d0
add rsp, 0x240
pop rbx
ret
Function at 0x140002990
Capabilities:
Terminate process

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
push rsi
push rdi
push r13
push r14
push r15
sub rsp, 0x20
mov rbp, rcx
mov rdi, rcx
mov rcx, rdx
xor ebx, ebx
sub rcx, rdi
mov r14, rdx
mov esi, 0x18
nop dword [rax]
movzx eax, byte [rcx + rdi]
cmp byte [rdi], al
jne 0x1400029d9
inc rbx
inc rdi
cmp rbx, rsi
jb 0x1400029c0
xor ebx, ebx
xor edi, edi
jmp 0x1400029fd
lea rcx, [rbx + rdx]
mov r8, rbx
mov rdx, rbp
sub rdx, r14
cmp rbx, rsi
jae 0x1400029fa
movzx eax, byte [rcx + 1]
inc rcx
inc rbx
cmp byte [rdx + rcx], al
jne 0x1400029e6
sub rbx, r8
mov r13d, 4
mov qword [rsp + 0x50], r12
xor r15d, r15d
lea ecx, [r13 + 0x5c]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
mov r9, rax
test rax, rax
je 0x140002b6c
lea r10, [r15 - 1]
test rdi, rdi
je 0x140002ae4
xor r12d, r12d
test rsi, rsi
je 0x140002ae4
mov rax, rbx
mov qword [r12 + r9 + 0x10], rbx
sub rax, rbp
mov qword [r12 + r9 + 8], rdi
add rax, rdi
sub rbp, rbx
add r14, rax
sub rbp, rdi
add rsi, rbp
mov rax, r14
sub rax, rbx
lea rbp, [rbx + rdi]
xor ebx, ebx
mov qword [r12 + r9], rax
test rsi, rsi
je 0x140002a97
mov rcx, r14
mov rdi, rbp
sub rcx, rbp
nop word [rax + rax]
movzx eax, byte [rdi + rcx]
cmp byte [rdi], al
jne 0x140002b3f
inc rbx
inc rdi
cmp rbx, rsi
jb 0x140002a80
xor ebx, ebx
xor edi, edi
inc r15
mov eax, r13d
add r12, 0x18
cmp r15, rax
jb 0x140002adb
add r13d, r13d
mov eax, 0x18
mov ecx, r13d
mul rcx
mov rcx, r9
cmovo rax, r10
mov rdx, rax
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_realloc]
mov r9, rax
test rax, rax
je 0x140002b6c
mov r10, 0xffffffffffffffff
test rdi, rdi
jne 0x140002a31
lea rcx, [r15 + 1]
mov eax, 0x18
mul rcx
mov rcx, r9
cmovo rax, r10
mov rdx, rax
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_realloc]
test rax, rax
je 0x140002b6c
mov r12, qword [rsp + 0x50]
lea rcx, [r15 + r15*2]
mov rbx, qword [rsp + 0x58]
mov rbp, qword [rsp + 0x60]
mov qword [rax + rcx*8 + 8], 0
mov qword [rax + rcx*8], 0
mov qword [rax + rcx*8 + 0x10], 0
add rsp, 0x20
pop r15
pop r14
pop r13
pop rdi
pop rsi
ret
mov rdx, rbp
lea rcx, [rbx + r14]
sub rdx, r14
mov r8, rbx
nop dword [rax]
cmp rbx, rsi
jae 0x140002b64
movzx eax, byte [rcx + 1]
inc rcx
inc rbx
cmp byte [rcx + rdx], al
jne 0x140002b50
sub rbx, r8
jmp 0x140002a9b
mov ecx, 1
call sub.api_ms_win_crt_runtime_l1_1_0.dll_exit
int3
Function at 0x140003de0
Capabilities:
Terminate process

Disassembly:
mov qword [rsp + 0x10], rdx
push rbp
push rdi
sub rsp, 0x48
cmp dword [rcx], 0
mov rbp, rdx
mov rdi, rcx
je 0x140003e08
lea rcx, str.ERROR_:_Cannot_rebase_PE_that_is_memory_mapped__LoadLibraryd__n
add rsp, 0x48
pop rdi
pop rbp
jmp fcn.140001010
mov qword [rsp + 0x70], rbx
mov qword [rsp + 0x40], rsi
mov qword [rsp + 0x38], r12
mov qword [rsp + 0x30], r13
xor r13d, r13d
mov qword [rsp + 0x20], r15
cmp qword [rcx + 0x70], r13
jne 0x140003f63
mov rax, qword [rcx + 0x30]
mov edx, dword [rax + 0x28]
call fcn.140003d50
mov r12d, 0x10
mov qword [rsp + 0x60], rax
mov ecx, r12d
mov dword [rdi + 0x68], r13d
lea edx, [r13 + 8]
mov r15, rax
call sub.api_ms_win_crt_heap_l1_1_0.dll_calloc
mov qword [rdi + 0x70], rax
test rax, rax
je 0x140003ff5
mov rax, qword [rdi + 0x30]
lea r8, [r13 - 1]
cmp dword [rax + 0x2c], r13d
jbe 0x140003f3a
mov qword [rsp + 0x28], r14
mov rax, r15
mov r13d, 0xfff0
nop word [rax + rax]
mov ebp, dword [r15 + 4]
lea r14, [r15 + 8]
add rbp, r15
cmp r14, rbp
jae 0x140003f17
movzx ebx, word [r14]
and ebx, 0xfff
add ebx, dword [r15]
cmp dword [rdi + 0x68], r12d
jb 0x140003eda
mov rcx, qword [rdi + 0x70]
add r12d, r12d
mov eax, 8
mul r12
cmovo rax, r8
mov rdx, rax
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_realloc]
mov qword [rdi + 0x70], rax
mov r8, 0xffffffffffffffff
mov ecx, dword [rdi + 0x68]
mov rax, qword [rdi + 0x70]
mov dword [rax + rcx*8], ebx
mov ecx, dword [rdi + 0x68]
mov rax, qword [rdi + 0x70]
lea rdx, [rax + rcx*8]
movzx eax, word [r14]
movzx ecx, word [rdx + 4]
add r14, 2
and cx, r13w
shr ax, 0xc
or cx, ax
mov word [rdx + 4], cx
inc dword [rdi + 0x68]
cmp r14, rbp
jb 0x140003ea0
mov rax, qword [rsp + 0x60]
mov rcx, qword [rdi + 0x30]
mov r15, rbp
sub rbp, rax
mov edx, dword [rcx + 0x2c]
cmp rbp, rdx
jb 0x140003e90
mov rbp, qword [rsp + 0x68]
xor r13d, r13d
mov r14, qword [rsp + 0x28]
mov edx, dword [rdi + 0x68]
mov eax, 8
mov rcx, qword [rdi + 0x70]
mul rdx
cmovo rax, r8
mov rdx, rax
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_realloc]
mov qword [rdi + 0x70], rax
test rax, rax
je 0x140003ff5
cmp dword [rdi + 0x68], 0
mov rbx, qword [rdi + 0x10]
mov qword [rdi + 0x10], rbp
jbe 0x140003fbe
mov rax, qword [rdi + 0x70]
movzx edx, word [rax + r13*8 + 4]
lea r8, [rax + r13*8]
and edx, 0xf
je 0x140003fb5
cmp edx, 3
je 0x140003fa4
cmp edx, 0xa
jne 0x140003fde
mov edx, dword [r8]
mov rcx, rdi
call fcn.140003d50
mov rcx, rbp
sub rcx, rbx
add qword [rax], rcx
jmp 0x140003fb5
mov edx, dword [r8]
mov rcx, rdi
call fcn.140003d50
mov ecx, ebp
sub ecx, ebx
add dword [rax], ecx
inc r13d
cmp r13d, dword [rdi + 0x68]
jb 0x140003f71
mov r13, qword [rsp + 0x30]
mov r12, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
mov rbx, qword [rsp + 0x70]
mov r15, qword [rsp + 0x20]
add rsp, 0x48
pop rdi
pop rbp
ret
lea rcx, str.Unsupported_relocation_:_0x_x_nExiting..._n
call fcn.140001010
mov ecx, 1
call sub.api_ms_win_crt_runtime_l1_1_0.dll_exit
int3
mov ecx, 1
call sub.api_ms_win_crt_runtime_l1_1_0.dll_exit
int3
Function at 0x140004000
Capabilities:
Terminate process

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
mov esi, edx
mov rbx, rcx
mov edx, 0x88
mov ecx, 1
call sub.api_ms_win_crt_heap_l1_1_0.dll_calloc
mov rdi, rax
test rax, rax
je 0x14000412d
mov qword [rsp + 0x30], rbp
xor ebp, ebp
mov dword [rax + 4], ebp
mov dword [rax], esi
mov qword [rax + 8], 0xffffffffffffffff
mov qword [rax + 0x18], rbx
movsxd rdx, dword [rbx + 0x3c]
add rdx, rbx
mov qword [rax + 0x20], rdx
lea rcx, [rdx + 0x18]
mov qword [rax + 0x28], rcx
test esi, esi
jne 0x140004062
mov rbx, qword [rcx + 0x18]
mov qword [rax + 0x10], rbx
lea rsi, [rcx + 0x70]
mov qword [rax + 0x30], rsi
movzx eax, word [rdx + 0x14]
add rax, rcx
mov qword [rdi + 0x38], rax
mov edx, dword [rsi]
test edx, edx
jne 0x140004091
mov qword [rdi + 0x40], rbp
mov qword [rdi + 0x48], rbp
mov qword [rdi + 0x58], rbp
mov qword [rdi + 0x60], rbp
jmp 0x1400040d3
mov rcx, rdi
call fcn.140003d50
mov qword [rdi + 0x40], rax
mov rcx, rdi
mov rbx, rax
mov edx, dword [rax + 0x20]
call fcn.140003d50
mov qword [rdi + 0x48], rax
mov rcx, rdi
mov edx, dword [rbx + 0x1c]
call fcn.140003d50
mov qword [rdi + 0x58], rax
mov rcx, rdi
mov edx, dword [rbx + 0x24]
call fcn.140003d50
mov qword [rdi + 0x60], rax
mov eax, dword [rbx + 0x18]
mov dword [rdi + 0x50], eax
mov qword [rdi + 0x70], rbp
mov edx, dword [rsi + 0x30]
test edx, edx
je 0x140004111
mov rcx, rdi
call fcn.140003d50
mov qword [rdi + 0x78], rax
cmp dword [rax + 0xc], 2
jne 0x140004111
mov edx, dword [rax + 0x14]
mov rcx, rdi
call fcn.140003d50
mov qword [rdi + 0x80], rax
cmp dword [rax], 0x53445352
je 0x140004115
mov qword [rdi + 0x80], rbp
mov qword [rdi + 0x78], rbp
mov rbp, qword [rsp + 0x30]
mov rax, rdi
mov rbx, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret
mov ecx, 1
call sub.api_ms_win_crt_runtime_l1_1_0.dll_exit
int3
Function at 0x140004cd0
Capabilities:
Terminate process

Disassembly:
mov r11, rsp
sub rsp, 0x88
mov rax, qword [0x14001c008]
xor rax, rsp
mov qword [rsp + 0x70], rax
movabs rax, 0x800000000000
cmp rdx, rax
jb 0x140004df9
movabs rax, 0xffff800000000000
cmp rdx, rax
jb 0x140004e10
lea rax, [rcx - 1]
cmp rax, 7
ja 0x140004de2
mov rax, qword [0x14001c0a0]
mov qword [r11 - 8], rbx
xor ebx, ebx
mov dword [rsp + 0x5c], ebx
mov qword [r11 - 0x38], rdx
mov qword [r11 - 0x40], r8
mov dword [rsp + 0x58], ecx
mov dword [rsp + 0x40], ebx
cmp rax, 0xffffffffffffffff
jne 0x140004d8b
movups xmm0, xmmword [str..GIO]
mov qword [r11 - 0x58], rbx
lea r8d, [rbx + 3]
mov dword [rsp + 0x28], 0x80
lea rcx, [r11 - 0x28]
xor r9d, r9d
mov dword [rsp + 0x20], 3
mov edx, 0xc0000000
movups xmmword [rsp + 0x60], xmm0
call qword [sym.imp.KERNEL32.dll_CreateFileW]
cmp rax, 0xffffffffffffffff
je 0x140004e27
mov qword [0x14001c0a0], rax
mov qword [rsp + 0x38], rbx
lea rcx, [rsp + 0x40]
mov qword [rsp + 0x30], rcx
lea r8, [rsp + 0x48]
lea rcx, [rsp + 0x48]
mov dword [rsp + 0x28], 0x18
mov qword [rsp + 0x20], rcx
mov r9d, 0x18
mov rcx, rax
mov edx, 0xc3502808
call qword [sym.imp.KERNEL32.dll_DeviceIoControl]
mov rbx, qword [rsp + 0x80]
mov rcx, qword [rsp + 0x70]
xor rcx, rsp
call fcn.1400085d0
add rsp, 0x88
ret
lea rcx, str.Unsupported_size_for_read_operation__aborting..._n
call fcn.140001430
mov ecx, 1
call sub.api_ms_win_crt_runtime_l1_1_0.dll_exit
int3
lea rcx, str.Userland_address_used:_0x_016llx_nThis_should_not_happen__aborting..._n
call fcn.140001430
mov ecx, 1
call sub.api_ms_win_crt_runtime_l1_1_0.dll_exit
int3
lea rcx, str.Non_canonical_address_used:_0x_016llx_nAborting_to_avoid_a_BSOD..._n
call fcn.140001430
mov ecx, 1
call sub.api_ms_win_crt_runtime_l1_1_0.dll_exit
int3
lea rcx, str.____Unable_to_obtain_a_handle_to_the_vulnerable_driver__exiting..._n
call fcn.140001430
mov ecx, 1
call sub.api_ms_win_crt_runtime_l1_1_0.dll_exit
int3
Function at 0x140004e40
Capabilities:
Terminate process

Disassembly:
mov r11, rsp
sub rsp, 0x88
mov rax, qword [0x14001c008]
xor rax, rsp
mov qword [rsp + 0x70], rax
movabs rax, 0x800000000000
cmp rdx, rax
jb 0x140004f69
movabs rax, 0xffff800000000000
cmp rdx, rax
jb 0x140004f80
lea rax, [rcx - 1]
cmp rax, 7
ja 0x140004f52
mov rax, qword [0x14001c0a0]
mov qword [r11 - 8], rbx
xor ebx, ebx
mov dword [rsp + 0x5c], ebx
mov qword [r11 - 0x38], r8
mov qword [r11 - 0x40], rdx
mov dword [rsp + 0x58], ecx
mov dword [rsp + 0x40], ebx
cmp rax, 0xffffffffffffffff
jne 0x140004efb
movups xmm0, xmmword [str..GIO]
mov qword [r11 - 0x58], rbx
lea r8d, [rbx + 3]
mov dword [rsp + 0x28], 0x80
lea rcx, [r11 - 0x28]
xor r9d, r9d
mov dword [rsp + 0x20], 3
mov edx, 0xc0000000
movups xmmword [rsp + 0x60], xmm0
call qword [sym.imp.KERNEL32.dll_CreateFileW]
cmp rax, 0xffffffffffffffff
je 0x140004f97
mov qword [0x14001c0a0], rax
mov qword [rsp + 0x38], rbx
lea rcx, [rsp + 0x40]
mov qword [rsp + 0x30], rcx
lea r8, [rsp + 0x48]
lea rcx, [rsp + 0x48]
mov dword [rsp + 0x28], 0x18
mov qword [rsp + 0x20], rcx
mov r9d, 0x18
mov rcx, rax
mov edx, 0xc3502808
call qword [sym.imp.KERNEL32.dll_DeviceIoControl]
mov rbx, qword [rsp + 0x80]
mov rcx, qword [rsp + 0x70]
xor rcx, rsp
call fcn.1400085d0
add rsp, 0x88
ret
lea rcx, str.Unsupported_size_for_read_operation__aborting..._n
call sub.api_ms_win_crt_stdio_l1_1_0.dll__putws
mov ecx, 1
call sub.api_ms_win_crt_runtime_l1_1_0.dll_exit
int3
lea rcx, str.Userland_address_used:_0x_016llx_nThis_should_not_happen__aborting..._n
call fcn.140001430
mov ecx, 1
call sub.api_ms_win_crt_runtime_l1_1_0.dll_exit
int3
lea rcx, str.Non_canonical_address_used:_0x_016llx_nAborting_to_avoid_a_BSOD..._n
call fcn.140001430
mov ecx, 1
call sub.api_ms_win_crt_runtime_l1_1_0.dll_exit
int3
lea rcx, str.____Unable_to_obtain_a_handle_to_the_vulnerable_driver__exiting..._n
call fcn.140001430
mov ecx, 1
call sub.api_ms_win_crt_runtime_l1_1_0.dll_exit
int3
Function at 0x140006e20
Capabilities:
Get file version info

Disassembly:
push rbp
push rsi
push rdi
sub rsp, 0x50
mov rax, qword [0x14001c008]
xor rax, rsp
mov qword [rsp + 0x40], rax
xor eax, eax
lea rdx, [rsp + 0x3c]
mov rbp, rcx
mov dword [rsp + 0x3c], eax
mov rcx, r8
mov dword [rsp + 0x38], eax
mov qword [rsp + 0x30], rax
mov rsi, r8
call qword [sym.imp.VERSION.dll_GetFileVersionInfoSizeW]
mov edi, eax
test eax, eax
je 0x140006f03
mov ecx, edi
mov qword [rsp + 0x78], rbx
mov edx, 1
call sub.api_ms_win_crt_heap_l1_1_0.dll_calloc
mov rbx, rax
test rax, rax
jne 0x140006e8b
lea rcx, str.____Couldnt_allocate_memory_to_retrieve_version_data
call sub.api_ms_win_crt_stdio_l1_1_0.dll__putws
jmp 0x140006efe
mov r9, rbx
mov r8d, edi
xor edx, edx
mov rcx, rsi
call qword [sym.imp.VERSION.dll_GetFileVersionInfoW]
test eax, eax
je 0x140006ef6
lea r9, [rsp + 0x38]
mov rcx, rbx
lea r8, [rsp + 0x30]
lea rdx, [0x14000a5fc]
call qword [sym.imp.VERSION.dll_VerQueryValueW]
test eax, eax
je 0x140006ef6
cmp dword [rsp + 0x38], 0
je 0x140006ef6
mov rax, qword [rsp + 0x30]
cmp dword [rax], 0xfeef04bd
jne 0x140006ef6
mov r9d, dword [rax + 0xc]
lea r8, str._ld__ld
movzx eax, r9w
mov edx, pe_nt_image_headers64
shr r9d, 0x10
mov rcx, rbp
mov dword [rsp + 0x20], eax
call fcn.140002090
mov rcx, rbx
call sub.api_ms_win_crt_heap_l1_1_0.dll_free
mov rbx, qword [rsp + 0x78]
mov rcx, qword [rsp + 0x40]
xor rcx, rsp
call fcn.1400085d0
add rsp, 0x50
pop rdi
pop rsi
pop rbp
ret
Function at 0x1400071f0
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
mov qword [rsp + 0x10], rbx
push rsi
sub rsp, 0x20
lea rsi, str.ntdll.dll
mov rdx, 0xffffffffffffffff
nop dword [rax + rax]
cmp word [rsi + rdx*2 + 2], 0
lea rdx, [rdx + 1]
jne 0x140007210
mov rax, qword gs:[0x60]
mov qword [rsp + 0x30], rdi
mov rcx, qword [rax + 0x18]
mov rbx, qword [rcx + 0x10]
test rbx, rbx
je 0x14000726f
lea rdi, [rdx + rdx]
nop dword [rax + rax]
mov rcx, qword [rbx + 0x60]
mov r8, rdi
mov rdx, rsi
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll__memicmp]
test eax, eax
je 0x140007281
mov rax, qword gs:[0x60]
mov rbx, qword [rbx]
mov rcx, qword [rax + 0x18]
cmp rbx, qword [rcx + 0x10]
je 0x14000726f
test rbx, rbx
jne 0x140007240
xor eax, eax
mov rdi, qword [rsp + 0x30]
mov rbx, qword [rsp + 0x38]
add rsp, 0x20
pop rsi
ret
mov rdi, qword [rsp + 0x30]
mov rax, rbx
mov rbx, qword [rsp + 0x38]
add rsp, 0x20
pop rsi
ret
Function at 0x140007800
Capabilities:
Delete service
Query service status
Stop service

Disassembly:
push rbx
push r14
sub rsp, 0x88
mov rax, qword [0x14001c008]
xor rax, rsp
mov qword [rsp + 0x60], rax
mov r14d, edx
mov rbx, rcx
cmp edx, 3
jbe 0x140007840
mov r8, rcx
mov edx, 3
lea rcx, str.____Reached_maximun_number_of_attempts___i__to_uninstall_the_service__s_n
call fcn.140001430
xor eax, eax
jmp 0x1400079e2
mov qword [rsp + 0xb0], rbp
lea rdx, str.ServicesActive
mov qword [rsp + 0x80], rsi
xor ecx, ecx
xor esi, esi
mov qword [rsp + 0x78], rdi
mov qword [rsp + 0x70], r15
mov r15d, esi
lea r8d, [rsi + 1]
call qword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov rdi, rax
test rax, rax
je 0x1400078ce
lea r8d, [rsi + 0x20]
mov rdx, rbx
mov rcx, rax
call qword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov rbp, rax
test rax, rax
je 0x1400078af
lea r8, [rsp + 0x40]
mov rcx, rax
lea edx, [rsi + 1]
call qword [sym.imp.ADVAPI32.dll_ControlService]
mov rcx, rbp
mov r15d, eax
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
test r15d, r15d
je 0x1400078ce
mov rdx, rbx
lea rcx, str.____s_service_stopped_n
call fcn.140001430
jmp 0x140007917
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x426
jne 0x1400078ec
mov rdx, rbx
lea rcx, str.____s_service_not_running_n
call fcn.140001430
jmp 0x140007917
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x425
jne 0x14000799d
mov rdx, rbx
lea rcx, str.____s_service_cannot_accept_control_messages_at_this_time__waiting..._n
call fcn.140001430
mov ecx, 0x3e8
call qword [sym.imp.KERNEL32.dll_Sleep]
mov r8d, 1
lea rdx, str.ServicesActive
xor ecx, ecx
call qword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov rbp, rax
test rax, rax
je 0x1400079b1
mov r8d, 0x10004
mov rdx, rbx
mov rcx, rax
call qword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov rdi, rax
test rax, rax
je 0x14000798c
lea rdx, [rsp + 0x20]
mov rcx, rax
call qword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
test eax, eax
je 0x14000798c
cmp dword [rsp + 0x24], 1
mov rcx, rdi
je 0x14000797b
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov rcx, rbp
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
jmp 0x1400079b1
call qword [sym.imp.ADVAPI32.dll_DeleteService]
mov rcx, rdi
mov esi, eax
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov rcx, rbp
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
test esi, esi
je 0x1400079b1
mov eax, esi
jmp 0x1400079c8
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
lea rcx, str.____ERROR_ServiceUninstall___ServiceUninstall__0x_08x__n
call fcn.140001430
mov ecx, 0x3e8
call qword [sym.imp.KERNEL32.dll_Sleep]
lea edx, [r14 + 1]
mov rcx, rbx
call fcn.140007800
mov rdi, qword [rsp + 0x78]
mov rsi, qword [rsp + 0x80]
mov rbp, qword [rsp + 0xb0]
mov r15, qword [rsp + 0x70]
mov rcx, qword [rsp + 0x60]
xor rcx, rsp
call fcn.1400085d0
add rsp, 0x88
pop r14
pop rbx
ret