joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140181860
Capabilities:
Parse pe header

Disassembly:
mov qword ss:[rsp + 0x18], rbx
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x30
mov r8, qword [0x1402cabf0]
xor edi, edi
mov rsi, rcx
test r8, r8
je 0x140181895
mov rax, qword [0x1402cac00]
test rax, rax
jne 0x14018197c
call fcn.1401814e0
mov rbx, rax
test rax, rax
je 0x140181a11
mov qword [rsp + 0x40], rbp
mov ebp, 0x5a4d
cmp word [rax], bp
jne 0x14018190a
mov ecx, dword ds:[rax + 0x3c]
lea eax, [rcx - 1]
cmp eax, 0x7ffffffd
ja 0x14018190a
cmp dword [rcx + rbx], 0x4550
jne 0x14018190a
lea rdx, ds:[rbx + 0x88]
add rdx, rcx
mov eax, dword [rdx]
test eax, eax
je 0x14018190a
cmp dword [rdx + 4], edi
je 0x14018190a
lea r8, ds:[rbx + rax]
mov word [rsp + 0x20], di
lea r9, str.PowerGetActiveScheme
mov rcx, rbx
call fcn.14017e4c0
mov r8, rax
jmp 0x14018190d
mov r8, rdi
cmp word [rbx], bp
mov rcx, rbx
mov rbp, qword [rsp + 0x40]
mov eax, 0x3c
mov qword [0x1402cabf0], r8
jne 0x140181972
mov ecx, dword [rbx + rax]
lea eax, [rcx - 1]
cmp eax, 0x7ffffffd
ja 0x140181972
cmp dword [rcx + rbx], 0x4550
jne 0x140181972
lea rdx, [rbx + 0x88]
add rdx, rcx
mov eax, dword [rdx]
test eax, eax
je 0x140181972
cmp dword [rdx + 4], edi
je 0x140181972
lea r8, [rbx + rax]
mov word [rsp + 0x20], di
lea r9, str.PowerWriteSecurityDescriptor
mov rcx, rbx
call fcn.14017e4c0
mov r8, qword [0x1402cabf0]
jmp 0x140181975
mov rax, rdi
mov qword [0x1402cac00], rax
nop dword [rax]
test r8, r8
je 0x1401819fc
test rax, rax
je 0x1401819fc
lea rdx, [rsp + 0x48]
xor ecx, ecx
mov rax, r8
call qword [case.0x14013d84a.0]
test eax, eax
je 0x1401819b4
mov ecx, eax
mov rbx, qword [rsp + 0x50]
mov rsi, qword [rsp + 0x58]
add rsp, 0x30
pop rdi
jmp sym.SystemInformer.exe_PhDosErrorToNtStatus
test rsi, rsi
je 0x1401819bd
mov rdi, qword [rsi + 8]
mov rdx, qword [rsp + 0x48]
mov r8, rdi
mov rax, qword [0x1402cac00]
mov ecx, 0xe
call qword [case.0x14013d84a.0]
mov rcx, qword ds:[rsp + 0x48]
mov ebx, eax
call qword [sym.imp.KERNEL32.dll_LocalFree]
mov ecx, ebx
mov rbx, qword [rsp + 0x50]
mov rsi, qword [rsp + 0x58]
add rsp, 0x30
pop rdi
jmp sym.SystemInformer.exe_PhDosErrorToNtStatus
mov eax, 0xc000007a
mov rbx, qword [rsp + 0x50]
mov rsi, qword [rsp + 0x58]
add rsp, 0x30
pop rdi
ret
mov rbx, qword [rsp + 0x50]
mov eax, 0xc0000135
mov rsi, qword [rsp + 0x58]
add rsp, 0x30
pop rdi
ret
Function at 0x140184120
Capabilities:
Map section object

Disassembly:
mov r11, rsp
push rbx
sub rsp, 0x50
mov dword [rsp + 0x48], 2
lea rax, [r11 + 0x20]
mov rbx, rdx
mov qword [r11 + 0x20], 1
xor edx, edx
lea r8, [r11 + 0x18]
mov dword [rsp + 0x40], edx
xor r9d, r9d
mov dword [rsp + 0x38], 2
mov qword [r11 - 0x28], rax
mov qword [r11 - 0x30], rdx
mov qword [r11 - 0x38], rdx
mov qword [r11 + 0x18], rdx
mov rdx, 0xffffffffffffffff
call qword [sym.imp.ntdll.dll_NtMapViewOfSection]
test eax, eax
jns 0x14018417e
lfence
add rsp, 0x50
pop rbx
ret
mov rdx, qword [rsp + 0x70]
mov r8, rbx
mov rcx, 0xffffffffffffffff
call sym.SystemInformer.exe_PhGetProcessMappedFileName
mov rdx, qword [rsp + 0x70]
mov rcx, 0xffffffffffffffff
mov ebx, eax
call qword [sym.imp.ntdll.dll_NtUnmapViewOfSection]
mov eax, ebx
add rsp, 0x50
pop rbx
ret

Function at 0x1401879e0
Capabilities:
Get thread local storage value

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rdi
push r12
push r14
push r15
sub rsp, 0x20
mov ebx, edx
mov r12, rcx
mov r14d, edx
mov rdx, qword [0x1402ca938]
mov edi, r8d
lea rcx, [rbx*8]
call sym.SystemInformer.exe_PhCreateObject
mov rcx, rax
call sym.SystemInformer.exe_PhAutoDereferenceObject
mov r15, rax
test ebx, ebx
je 0x140187b69
mov qword [rsp + 0x40], rbp
mov ebp, edi
mov qword [rsp + 0x48], rsi
mov rsi, rax
shl rbp, 3
nop dword [rax + rax]
mov rdx, qword [0x1402ca938]
mov rcx, rbp
call sym.SystemInformer.exe_PhCreateObject
cmp dword [0x1402bff40], 0xffffffff
mov rdi, rax
mov ecx, dword [0x1402cdb18]
jae 0x140187a7d
cmp ecx, 0x40
jae 0x140187a7d
lfence
mov rax, qword gs:[0x30]
mov rbx, qword [rax + rcx*8 + 0x1480]
jmp 0x140187a89
nop dword [rax]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rbx, rax
test rdi, rdi
je 0x140187b41
mov eax, dword [rbx]
cmp eax, 0x40
jae 0x140187aa5
mov qword [rbx + rax*8 + 8], rdi
inc dword [rbx]
jmp 0x140187b41
mov rcx, qword [rbx + 0x210]
test rcx, rcx
jne 0x140187add
mov rcx, qword [0x1402caaf0]
mov edx, 4
mov r8d, 0x200
mov dword [rbx + 0x20c], 0x40
call qword [sym.imp.ntdll.dll_RtlAllocateHeap]
mov rcx, rax
mov qword [rbx + 0x210], rax
mov eax, dword [rbx + 0x20c]
cmp dword [rbx + 0x208], eax
jne 0x140187b31
add eax, eax
mov edx, 4
mov r9d, eax
shl r9, 3
mov dword [rbx + 0x20c], eax
test rcx, rcx
jne 0x140187b17
mov rcx, qword [0x1402caaf0]
mov r8, r9
call qword [sym.imp.ntdll.dll_RtlAllocateHeap]
jmp 0x140187b27
mov r8, rcx
mov rcx, qword [0x1402caaf0]
call qword [sym.imp.ntdll.dll_RtlReAllocateHeap]
mov rcx, rax
mov qword [rbx + 0x210], rax
mov eax, dword [rbx + 0x208]
mov qword [rcx + rax*8], rdi
inc dword [rbx + 0x208]
mov r8, rbp
mov qword [rsi], rdi
xor edx, edx
mov rcx, rdi
call fcn.14020ab40
add rsi, 8
sub r14, 1
jne 0x140187a40
mov rsi, qword [rsp + 0x48]
mov rbp, qword [rsp + 0x40]
mov rbx, qword [rsp + 0x50]
mov rdi, qword [rsp + 0x58]
mov qword [r12], r15
add rsp, 0x20
pop r15
pop r14
pop r12
ret
Function at 0x140189f80
Capabilities:
Get user security identifier

Disassembly:
push r12
push r14
push r15
sub rsp, 0x60
movzx eax, word [rcx]
mov r15, r9
mov word [rsp + 0x38], ax
mov r14, r8
add ax, 2
mov r12, rdx
cmp qword [rcx], 0xfffe
mov word [rsp + 0x3a], ax
mov rax, qword [rcx + 8]
mov qword [rsp + 0x40], rax
jbe 0x140189fc6
mov eax, 0xc0000106
add rsp, 0x60
pop r15
pop r14
pop r12
ret
mov qword [rsp + 0x90], rbp
mov qword [rsp + 0x50], r13
call fcn.140189ae0
lea rcx, [rsp + 0x80]
xor r13d, r13d
mov qword [rsp + 0x28], rcx
lea r9, [rsp + 0x38]
lea rcx, [rsp + 0x30]
mov qword [rsp + 0x30], r13
mov qword [rsp + 0x20], rcx
xor edx, edx
mov rcx, rax
mov qword [rsp + 0x80], r13
mov r8d, 1
call qword [sym.imp.ADVAPI32.dll_LsaLookupNames2]
mov rdx, qword ds:[rsp + 0x80]
mov ebp, eax
test eax, eax
js 0x14018a147
mov ecx, dword [rdx]
sub ecx, 7
cmp ecx, 1
jbe 0x14018a142
mov qword [rsp + 0x88], rbx
mov qword [rsp + 0x98], rsi
mov qword [rsp + 0x58], rdi
test r12, r12
je 0x14018a092
mov rsi, qword [rdx + 8]
mov edx, 4
movzx ecx, byte [rsi + 1]
lea rdi, [rcx*4 + 8]
mov rcx, qword [0x1402caaf0]
mov r8, rdi
call qword [sym.imp.ntdll.dll_RtlAllocateHeap]
mov r8, rdi
mov rdx, rsi
mov rcx, rax
mov rbx, rax
call fcn.14020af00
mov rdx, qword [rsp + 0x80]
mov qword [r12], rbx
test r14, r14
je 0x14018a121
movsxd rax, dword ds:[rdx + 0x10]
test eax, eax
js 0x14018a111
lea rdx, [rax + rax*2]
mov rax, qword [rsp + 0x30]
mov rcx, qword [rax + 8]
lea rax, [rcx + rdx*8]
movzx ecx, word [rcx + rdx*8]
test cx, cx
jne 0x14018a0cd
nop
call sym.SystemInformer.exe_PhReferenceEmptyString
mov rbx, rax
mov qword [r14], rax
jmp 0x14018a119
mov rdx, qword [0x1402ca998]
mov rdi, rcx
mov rsi, qword [rax + 8]
add rcx, 0x12
call sym.SystemInformer.exe_PhCreateObject
mov rbx, rax
mov qword [rax], rdi
add rax, 0x10
mov qword [rbx + 8], rax
mov word [rax + rdi], r13w
test rsi, rsi
je 0x14018a10c
mov rcx, qword [rbx + 8]
mov r8, rdi
mov rdx, rsi
call fcn.14020af00
mov qword [r14], rbx
jmp 0x14018a119
call sym.SystemInformer.exe_PhReferenceEmptyString
mov qword [r14], rax
mov rdx, qword [rsp + 0x80]
mov rdi, qword [rsp + 0x58]
mov rsi, qword [rsp + 0x98]
mov rbx, qword [rsp + 0x88]
test r15, r15
je 0x14018a147
mov eax, dword [rdx]
mov dword [r15], eax
jmp 0x14018a147
mov ebp, 0xc0000073
mov rcx, qword [rsp + 0x30]
mov r13, qword [rsp + 0x50]
test rcx, rcx
je 0x14018a164
call qword [sym.imp.ADVAPI32.dll_LsaFreeMemory]
mov rdx, qword [rsp + 0x80]
test rdx, rdx
je 0x14018a172
mov rcx, rdx
call qword [sym.imp.ADVAPI32.dll_LsaFreeMemory]
mov eax, ebp
mov rbp, qword [rsp + 0x90]
add rsp, 0x60
pop r15
pop r14
pop r12
ret
Function at 0x14018a5e0
Capabilities:
Parse pe header

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x40
xor ebx, ebx
mov rdi, rdx
test byte [0x1402c6688], 1
mov rsi, rcx
mov dword [rsp + 0x60], ebx
jne 0x14018a725
lock bts qword [0x1402c6688], 0x1f
setb al
test al, al
je 0x14018a639
test byte [0x1402c6688], 1
jne 0x14018a725
xor edx, edx
lea rcx, [0x1402c6688]
call sym.SystemInformer.exe_PhfWaitForEvent
jmp 0x14018a725
lea r8, str.sechost.dll
xorps xmm1, xmm1
mov rdx, r8
mov rcx, r8
and rdx, 0xfffffffffffffff1
and ecx, 0xf
je 0x14018a66f
xorps xmm0, xmm0
pcmpeqw xmm0, xmmword [rdx]
pmovmskb eax, xmm0
shr eax, cl
bsf ecx, eax
je 0x14018a66b
mov edx, ecx
shr rdx, 1
jmp 0x14018a6a3
add rdx, 0x10
xorps xmm0, xmm0
pcmpeqw xmm0, xmmword [rdx]
pmovmskb eax, xmm0
bsf ecx, eax
jne 0x14018a695
nop
add rdx, 0x10
movdqa xmm0, xmm1
pcmpeqw xmm0, xmmword [rdx]
pmovmskb eax, xmm0
bsf ecx, eax
je 0x14018a680
sub rdx, r8
mov eax, ecx
sar rdx, 1
shr rax, 1
add rdx, rax
lea rax, [rdx + rdx]
mov qword [rsp + 0x38], r8
lea rdx, [rsp + 0x30]
mov qword [rsp + 0x30], rax
call fcn.14017e120
mov rcx, rax
test rax, rax
je 0x14018a712
mov eax, 0x5a4d
cmp word [rcx], ax
jne 0x14018a712
mov edx, dword [rcx + 0x3c]
lea eax, [rdx - 1]
cmp eax, 0x7ffffffd
ja 0x14018a712
cmp dword [rdx + rcx], 0x4550
jne 0x14018a712
add rdx, 0x88
add rdx, rcx
mov eax, dword [rdx]
test eax, eax
je 0x14018a712
cmp dword [rdx + 4], ebx
je 0x14018a712
lea r8, [rcx + rax]
mov word [rsp + 0x20], bx
lea r9, str.LsaLookupUserAccountType
call fcn.14017e4c0
mov rbx, rax
lea rcx, [0x1402c6688]
mov qword [0x1402ceaa8], rbx
call sym.SystemInformer.exe_PhfSetEvent
mov rax, qword [0x1402ceaa8]
test rax, rax
jne 0x14018a746
mov eax, 0xc0000001
mov rbx, qword [rsp + 0x50]
mov rsi, qword [rsp + 0x58]
add rsp, 0x40
pop rdi
ret
lea rdx, [rsp + 0x60]
mov rcx, rsi
call qword [case.0x14013d84a.0]
test eax, eax
js 0x14018a75e
mov ecx, dword [rsp + 0x60]
mov dword [rdi], ecx
mov rbx, qword [rsp + 0x50]
mov rsi, qword [rsp + 0x58]
add rsp, 0x40
pop rdi
ret
Function at 0x14018bc20
Capabilities:
Enumerate pe sections

Disassembly:
push rbx
sub rsp, 0x40
mov rax, qword [0x1402bf040]
xor rax, rsp
mov qword [rsp + 0x38], rax
mov rbx, rcx
call fcn.140189a00
mov edx, dword [rbx + 2]
cmp edx, dword [rax + 2]
jne 0x14018bd32
movzx edx, word [rbx + 6]
cmp dx, word [rax + 6]
jne 0x14018bd32
cmp dword ds:[rbx + 8], 1
jne 0x14018bd32
mov eax, dword [rbx + 0xc]
lea rcx, [rsp + 0x28]
mov dword [rsp + 0x28], eax
mov eax, dword [rbx + 0x10]
mov dword [rsp + 0x2c], eax
mov eax, dword [rbx + 0x14]
mov dword [rsp + 0x30], eax
mov eax, dword [rbx + 0x18]
mov dword [rsp + 0x34], eax
call sym.SystemInformer.exe_PhFormatGuid
mov rbx, rax
test rax, rax
je 0x14018bd32
mov rdx, qword [0x1402ca998]
mov qword [rsp + 0x58], rbp
mov rbp, qword [rax + 8]
mov qword [rsp + 0x60], rsi
mov rsi, qword [rax]
and rsi, 0xfffffffffffffffe
mov qword [rsp + 0x68], rdi
sub rsi, 4
lea rcx, [rsi + 0x12]
call sym.SystemInformer.exe_PhCreateObject
mov rdi, rax
lea rcx, [rax + 0x10]
mov qword [rax], rsi
mov qword [rax + 8], rcx
xor eax, eax
mov word [rcx + rsi], ax
add rbp, 2
je 0x14018bcf5
mov rcx, qword [rdi + 8]
mov r8, rsi
mov rdx, rbp
call fcn.14020af00
lea rcx, [rbx - 0x10]
mov eax, 0xffffffff
lock xadd dword [rcx + 8], eax
mov rsi, qword [rsp + 0x60]
mov rbp, qword [rsp + 0x58]
cmp eax, 1
jne 0x14018bd17
call fcn.140141ea0
mov rax, rdi
mov rdi, qword [rsp + 0x68]
mov rcx, qword [rsp + 0x38]
xor rcx, rsp
call fcn.1401e4a20
add rsp, 0x40
pop rbx
ret
xor eax, eax
mov rcx, qword [rsp + 0x38]
xor rcx, rsp
call fcn.1401e4a20
add rsp, 0x40
pop rbx
ret

Function at 0x14018d040
Capabilities:
Parse pe header

Disassembly:
push rbx
sub rsp, 0x60
mov rbx, rdx
mov qword [rsp + 0x28], 0
mov rdx, rcx
mov qword [rsp + 0x20], 0x30
mov rcx, 0xffffffffffffffff
lea r9, [rsp + 0x30]
xor r8d, r8d
call qword [sym.imp.ntdll.dll_NtQueryVirtualMemory]
test eax, eax
js 0x14018d0cd
mov rdx, qword [rsp + 0x38]
mov eax, 0x5a4d
cmp word [rdx], ax
jne 0x14018d0cd
movsxd rax, dword [rdx + 0x3c]
cmp dword [rax + rdx], 0x4550
jne 0x14018d0cd
mov r8, qword [rax + rdx + 0xe8]
mov rcx, r8
shr rcx, 0x20
test r8d, r8d
je 0x14018d0cd
test ecx, ecx
je 0x14018d0cd
mov eax, r8d
add rax, rdx
cmp rbx, rax
jb 0x14018d0cd
add ecx, r8d
add rcx, rdx
cmp rbx, rcx
jae 0x14018d0cd
mov al, 1
add rsp, 0x60
pop rbx
ret
xor al, al
add rsp, 0x60
pop rbx
ret

Function at 0x14018d340
Capabilities:
Allocate or change rwx memory

Disassembly:
push rbx
sub rsp, 0x30
mov rbx, qword [0x1402ceac0]
test rbx, rbx
je 0x14018d3bd
mov qword [rsp + 0x58], rdi
xor edi, edi
nop dword [rax]
lea rax, [rsp + 0x40]
mov dword [rsp + 0x40], edi
mov r9d, 0x20
mov qword [rsp + 0x20], rax
lea r8, [rsp + 0x48]
mov qword [rsp + 0x50], rbx
lea rdx, [rsp + 0x50]
mov qword [rsp + 0x48], 0x10000
mov rcx, 0xffffffffffffffff
call qword [sym.imp.ntdll.dll_NtProtectVirtualMemory]
mov r8d, 0x10000
mov rdx, rbx
mov rcx, 0xffffffffffffffff
call qword [sym.imp.ntdll.dll_NtFlushInstructionCache]
mov rbx, qword [rbx + 8]
test rbx, rbx
jne 0x14018d360
mov rdi, qword [rsp + 0x58]
add rsp, 0x30
pop rbx
ret
Function at 0x14018d3e0
Capabilities:
Allocate or change rwx memory

Disassembly:
mov qword [rsp + 0x20], rbx
push rdi
sub rsp, 0x60
movzx eax, cx
mov rdi, rdx
mov rbx, rcx
test rax, rax
je 0x14018d402
sub rbx, rax
add rbx, 0x10000
mov qword [rsp + 0x80], rsi
cmp rbx, rdi
jae 0x14018d509
xor esi, esi
nop word [rax + rax]
lea rax, [rbx - 0x70000000]
cmp rax, 0x10000000
ja 0x14018d43b
add rbx, 0x8000000
jmp 0x14018d4fa
xorps xmm0, xmm0
mov qword [rsp + 0x28], rsi
lea r9, [rsp + 0x30]
mov qword [rsp + 0x20], 0x30
xor r8d, r8d
mov rdx, rbx
mov rcx, 0xffffffffffffffff
movups xmmword [rsp + 0x30], xmm0
movups xmmword [rsp + 0x40], xmm0
movups xmmword [rsp + 0x50], xmm0
call qword [sym.imp.ntdll.dll_NtQueryVirtualMemory]
test eax, eax
js 0x14018d509
cmp dword [rsp + 0x50], 0x10000
mov rcx, qword [rsp + 0x48]
jne 0x14018d4df
cmp rcx, 0x10000
jb 0x14018d4df
mov dword [rsp + 0x28], 0x40
lea r9, [rsp + 0x78]
xor r8d, r8d
mov dword [rsp + 0x20], 0x3000
lea rdx, [rsp + 0x70]
mov qword [rsp + 0x78], 0x10000
mov rcx, 0xffffffffffffffff
mov qword [rsp + 0x70], rbx
call qword [sym.imp.ntdll.dll_NtAllocateVirtualMemory]
test eax, eax
jns 0x14018d521
cmp eax, 0xc0000604
je 0x14018d509
add rbx, 0x10000
jmp 0x14018d4fa
mov rbx, qword [rsp + 0x30]
add rbx, rcx
movzx ecx, bx
test rcx, rcx
je 0x14018d4fa
mov eax, 0x10000
sub rax, rcx
add rbx, rax
nop word [rax + rax]
cmp rbx, rdi
jb 0x14018d420
xor eax, eax
mov rsi, qword [rsp + 0x80]
mov rbx, qword [rsp + 0x88]
add rsp, 0x60
pop rdi
ret
mov rax, qword [rsp + 0x70]
jmp 0x14018d50b

Function at 0x14018d540
Capabilities:
Allocate or change rwx memory

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x60
add rdx, 0xffffffffffff0000
mov rdi, rcx
movzx eax, dx
mov rbx, rdx
sub rbx, rax
test rax, rax
cmove rbx, rdx
cmp rbx, rcx
jbe 0x14018d669
xor esi, esi
nop dword [rax]
nop dword [rax + rax]
lea rax, [rbx - 0x70000000]
cmp rax, 0x10000000
ja 0x14018d59b
sub rbx, 0x8000000
jmp 0x14018d658
xorps xmm0, xmm0
mov qword [rsp + 0x28], rsi
lea r9, [rsp + 0x30]
mov qword [rsp + 0x20], 0x30
xor r8d, r8d
mov rdx, rbx
mov rcx, 0xffffffffffffffff
movups xmmword [rsp + 0x30], xmm0
movups xmmword [rsp + 0x40], xmm0
movups xmmword [rsp + 0x50], xmm0
call qword [sym.imp.ntdll.dll_NtQueryVirtualMemory]
test eax, eax
js 0x14018d669
cmp dword [rsp + 0x50], 0x10000
jne 0x14018d63c
cmp qword [rsp + 0x48], 0x10000
jb 0x14018d63c
mov dword [rsp + 0x28], 0x40
lea r9, [rsp + 0x78]
xor r8d, r8d
mov dword [rsp + 0x20], 0x3000
lea rdx, [rsp + 0x70]
mov qword [rsp + 0x78], 0x10000
mov rcx, 0xffffffffffffffff
mov qword [rsp + 0x70], rbx
call qword [sym.imp.ntdll.dll_NtAllocateVirtualMemory]
test eax, eax
jns 0x14018d67d
cmp eax, 0xc0000604
je 0x14018d669
sub rbx, 0x10000
jmp 0x14018d658
mov rcx, qword [rsp + 0x38]
add rcx, 0xffffffffffff0000
movzx eax, cx
mov rbx, rcx
sub rbx, rax
test rax, rax
cmove rbx, rcx
nop dword [rax + rax]
cmp rbx, rdi
ja 0x14018d580
xor eax, eax
lea r11, [rsp + 0x60]
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rsp, r11
pop rdi
ret
mov rax, qword [rsp + 0x70]
lea r11, [rsp + 0x60]
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rsp, r11
pop rdi
ret
Function at 0x140194780
Capabilities:
Get file attributes

Disassembly:
push rsi
sub rsp, 0x80
mov rax, qword [0x1402bf040]
xor rax, rsp
mov qword [rsp + 0x78], rax
mov rsi, rdx
mov dword [rsp + 0x30], 0x60
mov rdx, rcx
mov dword [rsp + 0x28], 1
lea rcx, [rsp + 0x40]
mov dword [rsp + 0x20], 5
mov r9d, 0x80
mov r8d, 0x120089
call sym.SystemInformer.exe_PhCreateFile
test eax, eax
jns 0x1401947d8
lfence
jmp 0x14019487c
mov qword [rsp + 0xa8], rdi
lea r8, [rsp + 0x60]
mov rdi, qword [rsp + 0x40]
lea rdx, [rsp + 0x48]
mov rcx, rdi
mov dword [rsp + 0x20], 5
mov r9d, 0x18
call qword [sym.imp.ntdll.dll_NtQueryInformationFile]
test eax, eax
js 0x14019482d
movups xmm0, xmmword [rsp + 0x60]
movups xmmword [rsp + 0x48], xmm0
cmp qword [rsp + 0x50], 0
jne 0x14019482d
mov rcx, rdi
call qword [sym.imp.ntdll.dll_NtClose]
mov eax, 0xc0000011
jmp 0x140194874
mov rdx, rdi
mov qword [rsp + 0xa0], rbx
call fcn.1401dacf0
mov rcx, rdi
mov rbx, rax
call qword [sym.imp.ntdll.dll_NtClose]
test rbx, rbx
je 0x140194867
cmp dword [rbx], 0
jne 0x14019485f
test rsi, rsi
je 0x14019485b
mov qword [rsi], rbx
xor eax, eax
jmp 0x14019486c
mov rcx, rbx
call fcn.1401da6a0
mov eax, 0xc0000102
mov rbx, qword [rsp + 0xa0]
mov rdi, qword [rsp + 0xa8]
mov rcx, qword [rsp + 0x78]
xor rcx, rsp
call fcn.1401e4a20
add rsp, 0x80
pop rsi
ret
Function at 0x140195e60
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
mov r9, rcx
mov qword [rcx + 8], rdx
mov qword [rcx + 0x10], r8
cmp r8, 0x40
jae 0x140195e7f
mov eax, 0xc000001f
add rsp, 0x28
ret
lea rax, [rdx - 1]
cmp rax, 0xfffffffffffffffd
ja 0x140195f92
lea rax, [rdx + 0x40]
cmp rax, rdx
jb 0x140195f84
lea r10, ds:[rdx + r8]
cmp rax, r10
ja 0x140195f84
mov eax, 0x5a4d
cmp word [rdx], ax
je 0x140195ebd
mov eax, 0xc000012f
add rsp, 0x28
ret
lfence
movsxd rax, dword [rdx + 0x3c]
cmp rax, r8
jae 0x140195f7a
cmp rax, 0x10000000
jae 0x140195f7a
lea r8, [rax + rdx]
lea r11, [r8 + 0x18]
cmp r11, r8
jb 0x140195f6c
cmp r8, rdx
jb 0x140195f6c
cmp r11, r10
ja 0x140195f6c
movzx eax, word [r8 + 6]
lea rcx, [rax + rax*4]
movzx eax, word [r8 + 0x14]
lea rax, [rax + rcx*8]
add rax, 0x18
add rax, r8
cmp rax, r8
jb 0x140195f61
cmp rax, r10
ja 0x140195f61
cmp dword ds:[r8], 0x4550
jne 0x140195f7a
movzx eax, word [r11]
mov word [r9 + 0x30], ax
mov ecx, 0x10b
sub ax, cx
mov ecx, 0xfeff
test cx, ax
jne 0x140195f7a
mov qword [r9 + 0x18], r8
movzx eax, word [r8 + 6]
mov dword [r9 + 0x20], eax
movzx ecx, word [r8 + 0x14]
add rcx, 0x18
add rcx, r8
mov qword [r9 + 0x28], rcx
xor eax, eax
add rsp, 0x28
ret
mov ecx, 0xc0000005
call qword [sym.imp.ntdll.dll_RtlRaiseStatus]
mov ecx, 0xc0000005
call qword [sym.imp.ntdll.dll_RtlRaiseStatus]
nop
jmp 0x140195f97
mov eax, 0xc000007b
add rsp, 0x28
ret
mov ecx, 0xc0000005
call qword [sym.imp.ntdll.dll_RtlRaiseStatus]
nop
jmp 0x140195f97
mov eax, 0xc000000d
add rsp, 0x28
ret
Function at 0x140195fa0
Capabilities:
Get file attributes
Map section object

Disassembly:
push rsi
push rdi
push r12
push r15
sub rsp, 0xc8
mov rax, qword [0x1402bf040]
xor rax, rsp
mov qword [rsp + 0xa0], rax
xor r15b, r15b
mov qword [rsp + 0x70], rdx
xor r12d, r12d
mov rsi, r8
mov rdi, rdx
test rdx, rdx
jne 0x140196035
test rcx, rcx
jne 0x140195fe5
mov eax, 0xc0000030
jmp 0x1401961a4
mov qword ss:[rsp + 0x40], r12
mov rdx, rcx
mov dword [rsp + 0x38], 0x60
lea rcx, [rsp + 0x70]
mov dword [rsp + 0x30], 1
xor r9d, r9d
mov dword [rsp + 0x28], 1
mov r8d, 0x100081
mov dword [rsp + 0x20], 0x80
call sym.SystemInformer.exe_PhCreateFileWin32Ex
test eax, eax
js 0x1401961a4
mov rdi, qword [rsp + 0x70]
mov r15b, 1
mov qword [rsp + 0xc0], rbx
lea r8, [rsp + 0x88]
mov qword [rsp + 0xb8], rbp
lea rdx, [rsp + 0x70]
mov r9d, 0x18
mov qword [rsp + 0xb0], r14
mov rcx, rdi
mov dword [rsp + 0x20], 5
call qword [sym.imp.ntdll.dll_NtQueryInformationFile]
mov ebx, eax
test eax, eax
js 0x140196136
movups xmm0, xmmword [rsp + 0x88]
mov qword [rsp + 0x30], rdi
lea r9, [rsp + 0x58]
mov dword [rsp + 0x28], 0x8000000
lea rcx, [rsp + 0x60]
movups xmmword [rsp + 0x70], xmm0
mov rax, qword [rsp + 0x78]
xor r8d, r8d
mov edx, 5
mov qword [rsp + 0x58], rax
mov dword [rsp + 0x20], 2
call qword [sym.imp.ntdll.dll_NtCreateSection]
mov ebx, eax
test eax, eax
js 0x140196136
mov rax, qword [rsp + 0x58]
lea r8, [rsp + 0x68]
mov rcx, qword [rsp + 0x60]
xor r9d, r9d
mov dword [rsp + 0x48], 2
mov rdx, 0xffffffffffffffff
mov dword [rsp + 0x40], r12d
mov dword [rsp + 0x38], 2
mov qword [rsp + 0x50], rax
lea rax, [rsp + 0x50]
mov qword [rsp + 0x30], rax
mov qword [rsp + 0x28], r12
mov qword [rsp + 0x20], r12
mov qword [rsp + 0x68], r12
call qword [sym.imp.ntdll.dll_NtMapViewOfSection]
mov rcx, qword ds:[rsp + 0x60]
mov ebx, eax
call qword [sym.imp.ntdll.dll_NtClose]
test ebx, ebx
js 0x140196136
mov rbp, qword [rsp + 0x68]
mov r14, qword [rsp + 0x58]
jmp 0x140196140
mov rbp, qword [rsp + 0x50]
mov r14, qword [rsp + 0x50]
test r15b, r15b
je 0x14019614e
mov rcx, rdi
call qword [sym.imp.ntdll.dll_NtClose]
test ebx, ebx
js 0x14019618a
mov r8, r14
mov rdx, rbp
mov rcx, rsi
call fcn.140195e60
mov ebx, eax
test eax, eax
jns 0x14019618c
cmp qword [rsi + 8], r12
je 0x14019618c
lfence
mov rdx, qword [rsi + 8]
mov rcx, 0xffffffffffffffff
call qword [sym.imp.ntdll.dll_NtUnmapViewOfSection]
mov qword [rsi + 8], r12
mov eax, ebx
mov rbp, qword [rsp + 0xb8]
mov rbx, qword [rsp + 0xc0]
mov r14, qword [rsp + 0xb0]
mov rcx, qword [rsp + 0xa0]
xor rcx, rsp
call fcn.1401e4a20
add rsp, 0xc8
pop r15
pop r12
pop rdi
pop rsi
ret