joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1400086c4
Capabilities:
Enumerate processes via ntquerysysteminformation
Find process by pid
Get system information on windows

Disassembly:
mov qword [rsp + 8], rbx
push rbp
push rsi
push rdi
push r14
push r15
sub rsp, 0x30
mov ebp, 0x2000
mov r14, rdx
mov ebx, ebp
mov edx, ebp
mov r15, rcx
jmp 0x14000871d
and dword [rsp + 0x70], 0
lea r9, [rsp + 0x70]
mov r8d, ebx
mov rdx, rdi
mov ecx, 5
call qword [sym.imp.ntoskrnl.exe_ZwQuerySystemInformation]
mov esi, eax
test eax, eax
jns 0x14000874b
xor edx, edx
mov rcx, rdi
call qword [sym.imp.ntoskrnl.exe_ExFreePoolWithTag]
cmp esi, 0xc0000004
jne 0x140008738
add ebx, ebp
mov edx, ebx
mov r8d, 0x30397358
xor ecx, ecx
call qword [sym.imp.ntoskrnl.exe_ExAllocatePoolWithTag]
mov rdi, rax
test rax, rax
jne 0x1400086e5
mov esi, 0xc000009a
mov rbx, qword [rsp + 0x60]
mov eax, esi
add rsp, 0x30
pop r15
pop r14
pop rdi
pop rsi
pop rbp
ret
mov rbp, rdi
mov rcx, qword [rdi + 0x50]
test rcx, rcx
je 0x140008791
lea rdx, [rsp + 0x78]
call qword [sym.imp.ntoskrnl.exe_PsLookupProcessByProcessId]
mov esi, eax
test eax, eax
js 0x140008791
mov r8, qword [rsp + 0x78]
mov r9, r14
mov rdx, qword [rdi + 0x50]
mov rcx, rdi
mov rax, r15
call qword [0x14001a3a0]
mov rcx, qword [rsp + 0x78]
mov bl, al
call qword [sym.imp.ntoskrnl.exe_ObfDereferenceObject]
test bl, bl
jne 0x14000879c
mov eax, dword [rdi]
test eax, eax
je 0x14000879c
add rdi, rax
jmp 0x14000874e
xor edx, edx
mov rcx, rbp
call qword [sym.imp.ntoskrnl.exe_ExFreePoolWithTag]
jmp 0x140008738

Function at 0x140008be0
Capabilities:
Parse pe header

Disassembly:
mov qword [rsp + 8], rbx
mov r11, r8
mov rbx, rdx
mov rax, rcx
mov r10d, 0xc0000001
test rdx, rdx
je 0x140008cda
test r8, r8
je 0x140008cda
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x140008cda
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x140008cda
movzx eax, word [rcx + 0x18]
mov edx, 0x20b
cmp ax, dx
jne 0x140008c7f
test r9, r9
je 0x140008c40
mov eax, dword [rcx + 8]
mov dword [r9], eax
mov rax, qword [rsp + 0x28]
test rax, rax
je 0x140008c4d
mov byte [rax], 1
movzx edx, word [rcx + 6]
test rdx, rdx
je 0x140008cda
xor eax, eax
add rcx, 0x118
mov r8d, dword [rcx + 4]
test r8d, r8d
je 0x140008c71
cmp dword [rcx], 0
ja 0x140008ccf
inc rax
add rcx, 0x28
cmp rax, rdx
jge 0x140008cda
jmp 0x140008c63
mov edx, 0x10b
cmp ax, dx
jne 0x140008cda
test r9, r9
je 0x140008c94
mov eax, dword [rcx + 8]
mov dword [r9], eax
mov rax, qword [rsp + 0x28]
test rax, rax
je 0x140008ca1
mov byte [rax], 0
movzx edx, word [rcx + 6]
test rdx, rdx
je 0x140008cda
xor eax, eax
add rcx, 0x108
mov r8d, dword [rcx + 4]
test r8d, r8d
je 0x140008cc1
cmp dword [rcx], 0
ja 0x140008ccf
inc rax
add rcx, 0x28
cmp rax, rdx
jge 0x140008cda
jmp 0x140008cb3
mov dword [rbx], r8d
xor r10d, r10d
mov eax, dword [rcx]
mov dword [r11], eax
mov rbx, qword [rsp + 8]
mov eax, r10d
ret
Function at 0x1400094d4
Capabilities:
Hash data with md5

Disassembly:
mov rax, rsp
push rbx
sub rsp, 0x80
and dword [rax - 0x68], 0
mov rbx, r8
and dword [rax - 0x64], 0
mov r8d, edx
mov rdx, rcx
mov dword [rax - 0x60], 0x67452301
lea rcx, [rax - 0x68]
mov dword [rax - 0x5c], 0xefcdab89
mov dword [rax - 0x58], 0x98badcfe
mov dword [rax - 0x54], 0x10325476
call fcn.140009f24
mov rdx, rbx
lea rcx, [rsp + 0x20]
call fcn.140009604
add rsp, 0x80
pop rbx
ret
Function at 0x14001262c
Capabilities:
Contain obfuscated stackstrings

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x27]
sub rsp, 0xd0
xor r14d, r14d
mov dil, 1
mov qword [rbp + 0x6f], r14
mov dword [rbp + 0x67], r14d
call fcn.140014214
mov rsi, rax
test rax, rax
jne 0x14001266d
mov eax, 0xc0000001
jmp 0x140012849
lea r8, [rbp + 0x67]
mov dword [rbp - 0x79], 0x6c64746e
lea rdx, [rbp + 0x6f]
mov dword [rbp - 0x75], 0x6c642e6c
lea rcx, [rbp - 0x79]
mov word [rbp - 0x71], 0x6c
call fcn.140014344
mov ebx, eax
test eax, eax
jns 0x140012737
lea r8, [rbp + 0x67]
mov dword [rbp - 0x59], 0x53005c
lea rdx, [rbp + 0x6f]
mov dword [rbp - 0x55], 0x730079
lea rcx, [rbp - 0x59]
mov dword [rbp - 0x51], 0x650074
mov dword [rbp - 0x4d], 0x52006d
mov dword [rbp - 0x49], 0x6f006f
mov dword [rbp - 0x45], 0x5c0074
mov dword [rbp - 0x41], 0x790053
mov dword [rbp - 0x3d], 0x740073
mov dword [rbp - 0x39], 0x6d0065
mov dword [rbp - 0x35], 0x320033
mov dword [rbp - 0x31], 0x6e005c
mov dword [rbp - 0x2d], 0x640074
mov dword [rbp - 0x29], 0x6c006c
mov dword [rbp - 0x25], 0x64002e
mov dword [rbp - 0x21], 0x6c006c
mov word [rbp - 0x1d], r14w
call fcn.1400149bc
mov ebx, eax
test eax, eax
js 0x140012849
mov rdx, qword [rbp + 0x6f]
test rdx, rdx
je 0x140012849
mov dil, r14b
jmp 0x14001273b
mov rdx, qword [rbp + 0x6f]
movdqa xmm0, xmmword [str.ZwTerminateThreaZwCreateThreadExPQRAPAQASH]
lea rax, [0x1400254f8]
movdqu xmmword [rbp - 0x19], xmm0
lea r9, [rbp - 0x19]
mov qword [rsp + 0x28], rax
movdqa xmm0, xmmword [str.ZwSuspendThread]
mov r8b, 1
movdqu xmmword [rbp + 0x17], xmm0
mov rcx, rsi
mov word [rbp - 9], 0x64
movdqa xmm0, xmmword [0x14001dfc0]
movdqu xmmword [rbp - 1], xmm0
mov dword [rbp - 0x69], 0x6552775a
mov dword [rbp - 0x65], 0x656d7573
mov dword [rbp - 0x61], 0x65726854
mov word [rbp - 0x5d], 0x6461
mov byte [rbp - 0x5b], r14b
mov byte [rbp + 0xf], r14b
mov byte [rsp + 0x20], dil
call fcn.1400144a4
mov rdx, qword [rbp + 0x6f]
lea rax, [0x1400254e8]
mov qword [rsp + 0x28], rax
lea r9, [rbp + 0x17]
mov r8b, 1
mov byte [rsp + 0x20], dil
mov rcx, rsi
call fcn.1400144a4
mov rdx, qword [rbp + 0x6f]
lea rax, [0x1400254f0]
mov qword [rsp + 0x28], rax
lea r9, [rbp - 0x69]
mov r8b, 1
mov byte [rsp + 0x20], dil
mov rcx, rsi
call fcn.1400144a4
mov rdx, qword [rbp + 0x6f]
lea rax, [0x140025500]
mov qword [rsp + 0x28], rax
lea r9, [rbp - 1]
mov r8b, 1
mov byte [rsp + 0x20], dil
mov rcx, rsi
call fcn.1400144a4
mov rdx, qword [rbp + 0x6f]
mov r8b, dil
mov rcx, rsi
call fcn.14001295c
mov rcx, qword [rbp + 0x6f]
call fcn.140015214
call fcn.140014cc0
test dil, dil
jne 0x140012847
mov rdx, qword [rbp + 0x6f]
or rcx, 0xffffffffffffffff
call qword [sym.imp.ntoskrnl.exe_ZwUnmapViewOfSection]
mov eax, ebx
mov rbx, qword [rsp + 0x120]
add rsp, 0xd0
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
Function at 0x14001295c
Capabilities:
Contain obfuscated stackstrings

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rdi
push rbp
mov rbp, rsp
sub rsp, 0x70
movdqa xmm0, xmmword [0x14001e120]
mov bl, r8b
mov rax, qword [sym.imp.ntoskrnl.exe_ZwQueryVirtualMemory]
lea r8, [rbp - 0x50]
movdqu xmmword [rbp - 0x50], xmm0
mov rdi, rdx
mov qword [0x140025538], rax
movdqa xmm0, xmmword [str.ZwWriteVirtualMeZwProtectVirtualZwReadVirtualMemCreateProcessIntZwAllocateVirtua]
xor eax, eax
movdqu xmmword [rbp - 0x38], xmm0
mov dl, bl
mov rcx, rdi
movdqa xmm0, xmmword [0x14001e110]
movdqu xmmword [rbp - 0x20], xmm0
mov dword [rbp - 0x40], 0x79726f
mov dword [rbp - 0x28], 0x79726f6d
mov byte [rbp - 0x24], al
mov dword [rbp - 0x10], 0x6f6d654d
mov word [rbp - 0xc], 0x7972
mov byte [rbp - 0xa], al
call fcn.140014784
lea r8, [rbp - 0x38]
mov qword [0x140025540], rax
mov dl, bl
mov rcx, rdi
call fcn.140014784
lea r8, [rbp - 0x20]
mov qword [0x140025548], rax
mov dl, bl
mov rcx, rdi
call fcn.140014784
lea r11, [rsp + 0x70]
mov qword [0x140025550], rax
mov rbx, qword [r11 + 0x10]
mov rdi, qword [r11 + 0x18]
mov rsp, r11
pop rbp
ret

Function at 0x140012a20
Capabilities:
Find process by pid

Disassembly:
mov rax, rsp
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rbp
mov qword [rax + 0x20], rsi
push rdi
sub rsp, 0x50
and qword [rax + 8], 0
mov bpl, dl
mov rbx, rcx
mov edx, 0x10
mov rcx, qword gs:[0x188]
mov rdi, r9
mov sil, r8b
call qword [sym.imp.ntoskrnl.exe_KeSetPriorityThread]
cmp rbx, 4
ja 0x140012a66
mov eax, 0xc0000227
jmp 0x140012adf
lfence
lea rdx, [rsp + 0x60]
mov rcx, rbx
call qword [sym.imp.ntoskrnl.exe_PsLookupProcessByProcessId]
test eax, eax
jns 0x140012a80
lfence
jmp 0x140012adf
mov rax, qword [rsp + 0xa0]
mov r9, rdi
mov rcx, qword [rsp + 0x60]
mov r8b, sil
mov qword [rsp + 0x40], rax
mov dl, bpl
mov rax, qword [rsp + 0x98]
mov qword [rsp + 0x38], rax
mov eax, dword [rsp + 0x90]
mov dword [rsp + 0x30], eax
mov rax, qword [rsp + 0x88]
mov qword [rsp + 0x28], rax
mov eax, dword [rsp + 0x80]
mov dword [rsp + 0x20], eax
call fcn.140012af4
mov rcx, qword [rsp + 0x60]
mov ebx, eax
call qword [sym.imp.ntoskrnl.exe_ObfDereferenceObject]
mov eax, ebx
mov rbx, qword [rsp + 0x68]
mov rbp, qword [rsp + 0x70]
mov rsi, qword [rsp + 0x78]
add rsp, 0x50
pop rdi
ret
Function at 0x140012af4
Capabilities:
Attach user process memory

Disassembly:
mov r11, rsp
mov qword [r11 + 8], rbx
mov byte [r11 + 0x18], r8b
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x90
mov r14, r9
mov r15b, dl
mov rbx, rcx
mov dword [rsp + 0x40], 0xc0000227
xor eax, eax
mov dil, al
xorps xmm0, xmm0
movups xmmword [rsp + 0x60], xmm0
movups xmmword [rsp + 0x70], xmm0
movups xmmword [r11 - 0x38], xmm0
mov qword [r11 - 0x60], rax
mov qword [r11 - 0x70], rax
mov qword [r11 - 0x68], rax
test r9, r9
je 0x140012cab
cmp dword [rsp + 0xe0], eax
je 0x140012cab
test rcx, rcx
je 0x140012cab
call qword [sym.imp.ntoskrnl.exe_PsGetProcessPeb]
mov r13, rax
mov rcx, rbx
call qword [sym.imp.ntoskrnl.exe_PsGetProcessWow64Process]
mov r12, rax
lea rdx, [rsp + 0x60]
mov rcx, rbx
call qword [sym.imp.ntoskrnl.exe_KeStackAttachProcess]
mov dil, 1
mov byte [rsp + 0xd8], dil
call qword [sym.imp.ntoskrnl.exe_IoGetCurrentProcess]
mov rcx, rax
call fcn.140012600
cmp al, dil
je 0x140012cab
test r15b, r15b
je 0x140012bc9
mov dword [rsp + 0x20], 0xc8
mov r9, r12
mov r8, r13
lea rdx, [0x140019510]
mov rcx, rbx
call fcn.140014bec
mov rax, qword [rsp + 0xf8]
test rax, rax
je 0x140012bf9
mov r9, qword [rsp + 0x100]
mov r8, qword [r13 + 0x10]
mov dl, 1
mov rcx, rbx
mov r10, qword [0x14001a3a0]
call r10
test al, al
je 0x140012cab
test r12, r12
sete al
lea rcx, [rsp + 0x48]
mov qword [rsp + 0x30], rcx
mov byte [rsp + 0x28], al
mov eax, dword [rsp + 0xf0]
mov dword [rsp + 0x20], eax
mov r9, qword [rsp + 0xe8]
mov r8d, dword [rsp + 0xe0]
mov rdx, r14
lea rcx, [rsp + 0x50]
call fcn.140012cdc
mov qword [rsp + 0x58], rax
test rax, rax
je 0x140012c91
mov rdx, qword [rsp + 0x48]
test rdx, rdx
je 0x140012c91
mov ecx, dword [rsp + 0xe0]
add rcx, rax
lea rax, [rsp + 0x40]
mov qword [rsp + 0x20], rax
mov r9b, 1
mov r8d, 4
call fcn.1400124c8
cmp byte [rsp + 0xd0], 1
jne 0x140012c8f
mov r9d, 0x8000
lea r8, [rsp + 0x50]
lea rdx, [rsp + 0x58]
or rcx, 0xffffffffffffffff
call qword [sym.imp.ntoskrnl.exe_ZwFreeVirtualMemory]
jmp 0x140012cab
mov dword [rsp + 0x40], 0xc0000225
jmp 0x140012cab
cmp dil, 1
jne 0x140012cbc
lea rcx, [rsp + 0x60]
call qword [sym.imp.ntoskrnl.exe_KeUnstackDetachProcess]
mov eax, dword [rsp + 0x40]
mov rbx, qword [rsp + 0xc0]
add rsp, 0x90
pop r15
pop r14
pop r13
pop r12
pop rdi
ret
Function at 0x140012cdc
Capabilities:
Allocate or change rwx memory

Disassembly:
mov rax, rsp
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rbp
mov qword [rax + 0x20], rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x30
and qword [rax + 8], 0
mov rsi, r9
mov r15d, r8d
mov rdi, rdx
test rcx, rcx
je 0x140012e7a
mov r14, qword [rsp + 0x90]
test r14, r14
je 0x140012e7a
test rdx, rdx
je 0x140012e7a
test r8d, r8d
je 0x140012e7a
mov r13b, byte [rsp + 0x88]
mov edx, 0xc29
cmp r13b, 1
mov eax, 0xf25
mov ebx, r15d
cmovne eax, edx
lea rdx, [r15 + 0x100]
test r9, r9
je 0x140012d65
mov ebp, dword [rsp + 0x80]
test ebp, ebp
jne 0x140012d69
xor ebp, ebp
xor esi, esi
add rax, rdx
mov r12d, ebp
add rax, r12
mov dword [rsp + 0x28], 0x40
mov qword [rcx], rax
lea rdx, [rsp + 0x60]
mov r9, rcx
mov dword [rsp + 0x20], 0x1000
or rcx, 0xffffffffffffffff
xor r8d, r8d
call qword [sym.imp.ntoskrnl.exe_ZwAllocateVirtualMemory]
test eax, eax
js 0x140012e7a
mov rcx, qword [rsp + 0x60]
mov r8, rbx
mov rdx, rdi
call fcn.140018440
mov rcx, qword [rsp + 0x60]
add rcx, rbx
cmp r13b, 1
jne 0x140012e1d
lea rdx, [0x140020c00]
mov r8d, 0xf00
call fcn.140018440
mov rdi, qword [rsp + 0x60]
add rdi, 0xf00
add rdi, rbx
and dword [rdi], 0
and qword [rdi + 4], 0
or byte [rdi + 0xc], 3
mov rax, qword [rsp + 0x60]
mov qword [rdi + 0xd], rax
mov dword [rdi + 0x15], r15d
mov dword [rdi + 0x19], ebp
test rsi, rsi
je 0x140012e18
lea rbx, [rdi + 0x25]
mov r8d, r12d
mov rcx, rbx
mov rdx, rsi
call fcn.140018440
mov qword [rdi + 0x1d], rbx
mov qword [r14], rdi
jmp 0x140012e73
lea rdx, [0x140021b00]
mov r8d, 0xc10
call fcn.140018440
mov rax, qword [rsp + 0x60]
add rax, 0xc10
add rbx, rax
and dword [rbx], 0
and dword [rbx + 4], 0
or byte [rbx + 8], 3
mov eax, dword [rsp + 0x60]
mov dword [rbx + 9], eax
mov dword [rbx + 0xd], r15d
mov dword [rbx + 0x11], ebp
test rsi, rsi
je 0x140012e70
lea rcx, [rbx + 0x19]
mov r8, r12
mov rdx, rsi
call fcn.140018440
lea eax, [rbx + 0x19]
mov dword [rbx + 0x15], eax
mov qword [r14], rbx
mov rax, qword [rsp + 0x60]
jmp 0x140012e7c
xor eax, eax
mov rbx, qword [rsp + 0x68]
mov rbp, qword [rsp + 0x70]
mov rsi, qword [rsp + 0x78]
add rsp, 0x30
pop r15
pop r14
pop r13
pop r12
pop rdi
ret
Function at 0x140012e9c
Capabilities:
Attach user process memory
Find process by pid

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rdx
push rsi
push rdi
push r12
push r14
push r15
sub rsp, 0xa0
mov rsi, r9
mov r12b, r8b
mov rbx, rdx
mov dword [rsp + 0x40], 0xc0000001
and qword [rax - 0x80], 0
xorps xmm0, xmm0
movups xmmword [rax - 0x58], xmm0
movups xmmword [rax - 0x48], xmm0
movups xmmword [rax - 0x38], xmm0
and qword [rax - 0x60], 0
mov qword [rax - 0x68], 0x1000
xor dil, dil
and dword [rax - 0x78], 0
and qword [rax - 0x70], 0
test r9, r9
je 0x140013072
test rdx, rdx
je 0x140012f08
mov qword [rax - 0x80], rdx
jmp 0x140012f1f
lea rdx, [rsp + 0x48]
call qword [sym.imp.ntoskrnl.exe_PsLookupProcessByProcessId]
mov dword [rsp + 0x40], eax
test eax, eax
js 0x140013072
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.ntoskrnl.exe_PsGetProcessPeb]
mov r15, rax
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.ntoskrnl.exe_PsGetProcessWow64Process]
mov r14, rax
lea rdx, [rsp + 0x70]
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.ntoskrnl.exe_KeStackAttachProcess]
mov dil, 1
mov byte [rsp + 0xe8], dil
call qword [sym.imp.ntoskrnl.exe_IoGetCurrentProcess]
mov rcx, rax
call fcn.140012600
cmp al, dil
je 0x140013072
mov dword [rsp + 0x40], 0xc0000225
mov dword [rsp + 0x20], 0xc8
mov r9, r14
mov r8, r15
lea rdx, [0x140019510]
mov rcx, qword [rsp + 0x48]
call fcn.140014bec
mov rax, qword [rsp + 0x100]
test rax, rax
je 0x140012fc6
mov r9, qword [rsp + 0x108]
mov r8, qword [r15 + 0x10]
xor edx, edx
mov rcx, qword [rsp + 0x48]
mov r10, qword [0x14001a3a0]
call r10
test al, al
je 0x140013072
test r14, r14
sete al
lea rcx, [rsp + 0x58]
mov qword [rsp + 0x30], rcx
mov byte [rsp + 0x28], al
mov eax, dword [rsp + 0xf8]
mov dword [rsp + 0x20], eax
mov r9, qword [rsp + 0xf0]
lea r8, [rsp + 0x50]
mov rdx, rsi
lea rcx, [rsp + 0x60]
call fcn.1400130b4
mov qword [rsp + 0x68], rax
test rax, rax
je 0x140013058
mov rdx, qword [rsp + 0x58]
test rdx, rdx
je 0x140013058
mov ecx, dword [rsp + 0x50]
test ecx, ecx
je 0x140013058
add rcx, rax
lea rax, [rsp + 0x40]
mov qword [rsp + 0x20], rax
mov r9b, 1
mov r8d, 4
call fcn.1400124c8
cmp r12b, 1
jne 0x140013056
mov r9d, 0x8000
lea r8, [rsp + 0x60]
lea rdx, [rsp + 0x68]
or rcx, 0xffffffffffffffff
call qword [sym.imp.ntoskrnl.exe_ZwFreeVirtualMemory]
jmp 0x140013072
jmp 0x140013072
cmp dil, 1
jne 0x140013083
lea rcx, [rsp + 0x70]
call qword [sym.imp.ntoskrnl.exe_KeUnstackDetachProcess]
test rbx, rbx
jne 0x140013098
mov rcx, qword [rsp + 0x48]
test rcx, rcx
je 0x140013098
call qword [sym.imp.ntoskrnl.exe_ObfDereferenceObject]
mov eax, dword [rsp + 0x40]
mov rbx, qword [rsp + 0xd0]
add rsp, 0xa0
pop r15
pop r14
pop r12
pop rdi
pop rsi
ret
Function at 0x1400130b4
Capabilities:
Allocate or change rwx memory

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
push rbp
push r12
push r13
push r14
push r15
mov rbp, rsp
sub rsp, 0x30
xor r10d, r10d
mov rsi, r9
mov qword [rbp + 0x30], r10
mov rdi, rdx
mov dl, byte [rbp + 0x58]
mov r14, r8
mov r9, rcx
test rcx, rcx
je 0x1400132d9
mov r13, qword [rbp + 0x60]
test r13, r13
je 0x1400132d9
test rdi, rdi
je 0x1400132d9
test r8, r8
je 0x1400132d9
or r11, 0xffffffffffffffff
mov rbx, r11
inc rbx
cmp word [rdi + rbx*2], r10w
jne 0x140013118
add bx, bx
je 0x1400132d9
movzx ecx, bx
mov eax, 0xf25
add ecx, 0x14
cmp dl, 1
mov dword [r8], ecx
mov r8d, 0xc29
cmovne eax, r8d
add rax, 0x100
test rsi, rsi
je 0x14001315a
mov r15d, dword [rbp + 0x50]
test r15d, r15d
jne 0x140013160
mov r15d, r10d
mov rsi, r10
add rax, rcx
mov r12d, r15d
add rax, r12
mov dword [rsp + 0x28], 0x40
xor r8d, r8d
mov qword [r9], rax
lea rdx, [rbp + 0x30]
mov dword [rsp + 0x20], 0x1000
mov rcx, r11
call qword [sym.imp.ntoskrnl.exe_ZwAllocateVirtualMemory]
test eax, eax
js 0x1400132d9
cmp byte [rbp + 0x58], 1
lea eax, [rbx + 2]
movzx r8d, ax
jne 0x140013251
mov rdx, qword [rbp + 0x30]
mov word [rdx], bx
mov word [rdx + 2], r8w
mov rcx, qword [rbp + 0x30]
add rcx, 0x10
mov qword [rdx + 8], rcx
mov rdx, rdi
call fcn.140018440
mov ecx, dword [r14]
lea rdx, [0x140020c00]
add rcx, qword [rbp + 0x30]
mov r8d, 0xf00
call fcn.140018440
test rsi, rsi
je 0x1400131fe
mov rax, qword [rbp + 0x30]
mov r8d, r12d
mov ecx, dword [r14]
add rax, 0xf00
add rcx, rax
mov rdx, rsi
call fcn.140018440
mov rdi, qword [rbp + 0x30]
mov ecx, dword [r14]
add rdi, 0xf00
add rdi, rcx
and dword [rdi], 0
and qword [rdi + 4], 0
and byte [rdi + 0xc], 0xfe
mov rax, qword [rbp + 0x30]
mov qword [rdi + 0xd], rax
mov eax, dword [r14]
mov dword [rdi + 0x15], eax
mov dword [rdi + 0x19], r15d
test rsi, rsi
je 0x140013248
lea rbx, [rdi + 0x25]
mov r8, r12
mov rcx, rbx
mov rdx, rsi
call fcn.140018440
mov qword [rdi + 0x1d], rbx
mov qword [r13], rdi
jmp 0x1400132d3
mov rcx, qword [rbp + 0x30]
mov rdx, rdi
mov word [rcx], bx
mov word [rcx + 2], r8w
mov eax, dword [rbp + 0x30]
add eax, 0x10
mov dword [rcx + 4], eax
mov ecx, eax
call fcn.140018440
mov ecx, dword [r14]
lea rdx, [0x140021b00]
add rcx, qword [rbp + 0x30]
mov r8d, 0xc10
call fcn.140018440
mov rbx, qword [rbp + 0x30]
mov ecx, dword [r14]
add rbx, 0xc10
add rbx, rcx
and dword [rbx], 0
and dword [rbx + 4], 0
and byte [rbx + 8], 0xfe
mov eax, dword [rbp + 0x30]
mov dword [rbx + 9], eax
mov eax, dword [r14]
mov dword [rbx + 0xd], eax
mov dword [rbx + 0x11], r15d
test rsi, rsi
je 0x1400132cf
lea rcx, [rbx + 0x19]
mov r8, r12
mov rdx, rsi
call fcn.140018440
lea eax, [rbx + 0x19]
mov dword [rbx + 0x15], eax
mov qword [r13], rbx
mov rax, qword [rbp + 0x30]
jmp 0x1400132db
xor eax, eax
mov rbx, qword [rsp + 0x68]
mov rsi, qword [rsp + 0x70]
mov rdi, qword [rsp + 0x78]
add rsp, 0x30
pop r15
pop r14
pop r13
pop r12
pop rbp
ret
Function at 0x1400138c8
Capabilities:
Allocate or change rwx memory

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rbp
push rdi
push r12
push r14
push r15
lea rbp, [rsp - 0x2f]
sub rsp, 0x90
xor r12d, r12d
mov rsi, r9
mov qword [rbp + 0x5f], r12
mov r14, r8
mov rdi, rcx
mov ebx, r12d
test rcx, rcx
je 0x140013add
test rdx, rdx
je 0x140013add
test r8, r8
jne 0x140013919
test r9, r9
je 0x140013add
or rcx, 0xffffffffffffffff
test rsi, rsi
je 0x140013931
mov rbx, rcx
inc rbx
cmp word [r9 + rbx*2], r12w
jne 0x140013925
add ebx, ebx
mov r9, rdx
mov r15d, ebx
mov dword [rsp + 0x28], 0x40
xor r8d, r8d
mov dword [rbp - 0x31], 0x83ec8b55
mov dword [rbp - 0x2d], 0x8d5754ec
lea rax, [r15 + 0x2e4]
mov dword [rbp - 0x29], 0xf88bac45
mov qword [rdx], rax
lea rdx, [rbp + 0x5f]
mov dword [rbp - 0x25], 0x44b9c033
mov dword [rbp - 0x21], 0xf3000000
mov dword [rbp - 0x1d], 0xac45c7aa
mov dword [rbp - 0x19], 0x44
mov dword [rbp - 0x15], 0xdc45c766
mov dword [rbp - 0x11], 0x45c70005
mov dword [rbp - 0xd], 0xd8
mov dword [rbp - 9], 0x8dc03300
mov dword [rbp - 5], 0xababf07d
mov dword [rbp - 1], 0x6aabab
mov dword [rbp + 3], 0x50f0458d
mov dword [rbp + 7], 0x50ac458d
mov dword [rbp + 0xb], 0x6a006a
mov dword [rbp + 0xf], 0x68
mov dword [rbp + 0x13], 0x6a006a00
mov qword [rbp + 0x17], 0x68006a00
mov dword [rbp + 0x1f], 0x68
mov dword [rbp + 0x23], 0xe8006a00
mov dword [rbp + 0x27], r12d
mov word [rbp + 0x2b], 0xc95f
mov dword [rsp + 0x20], 0x1000
call qword [sym.imp.ntoskrnl.exe_ZwAllocateVirtualMemory]
test eax, eax
js 0x140013add
mov rcx, qword [rbp + 0x5f]
mov eax, r12d
movaps xmm0, xmmword [rbp - 0x31]
movaps xmm1, xmmword [rbp - 0x21]
movups xmmword [rcx], xmm0
movaps xmm0, xmmword [rbp - 0x11]
movups xmmword [rcx + 0x10], xmm1
movaps xmm1, xmmword [rbp - 1]
movups xmmword [rcx + 0x20], xmm0
movaps xmm0, xmmword [rbp + 0xf]
movups xmmword [rcx + 0x30], xmm1
movsd xmm1, qword [rbp + 0x1f]
movups xmmword [rcx + 0x40], xmm0
movsd qword [rcx + 0x50], xmm1
mov dword [rcx + 0x58], eax
movzx eax, word [rbp + 0x2b]
mov word [rcx + 0x5c], ax
mov byte [rcx + 0x5e], 0xc3
mov cl, byte [rbp + 0x7f]
mov rax, qword [rbp + 0x5f]
mov byte [rax + 0x20], cl
test cl, cl
jne 0x140013a6f
mov rax, qword [rbp + 0x5f]
mov dword [rax + 0x25], 1
mov rax, qword [rbp + 0x5f]
mov dword [rax + 0x41], 0x8000000
test ebx, ebx
je 0x140013a9b
test rsi, rsi
je 0x140013a9b
mov rcx, qword [rbp + 0x5f]
mov r8, r15
add rcx, 0x2d0
mov rdx, rsi
call fcn.140018440
mov rcx, qword [rbp + 0x5f]
lea eax, [rcx + 0x2d0]
mov dword [rcx + 0x4c], eax
test r14, r14
je 0x140013acb
cmp word [r14], r12w
je 0x140013acb
mov rcx, qword [rbp + 0x5f]
mov r8, r14
add rcx, 0xc8
mov edx, 0x104
call sub.ntoskrnl.exe_wcscpy_s
mov rcx, qword [rbp + 0x5f]
lea eax, [rcx + 0xc8]
mov dword [rcx + 0x51], eax
mov rax, qword [rbp + 0x5f]
sub edi, eax
sub edi, 0x5c
mov dword [rax + 0x58], edi
mov rax, qword [rbp + 0x5f]
jmp 0x140013adf
xor eax, eax
lea r11, [rsp + 0x90]
mov rbx, qword [r11 + 0x38]
mov rsi, qword [r11 + 0x40]
mov rsp, r11
pop r15
pop r14
pop r12
pop rdi
pop rbp
ret