joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140136460
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 0x1401364a6
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.140135fc0
xor r13d, r13d
lea rcx, [rsp + 0x80]
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
lea r8d, [r13 + 1]
call qword [sym.imp.ADVAPI32.dll_LsaLookupNames2]
mov rcx, qword ds:[rsp + 0x80]
mov ebp, eax
test eax, eax
js 0x140136636
mov edx, dword [rcx]
sub edx, 7
cmp edx, 1
jbe 0x140136631
mov qword [rsp + 0x88], rbx
mov qword [rsp + 0x98], rsi
mov qword [rsp + 0x58], rdi
test r12, r12
je 0x140136579
mov rcx, qword [rcx + 8]
call qword [sym.imp.ntdll.dll_RtlLengthSid]
mov rcx, qword [0x140241998]
lea edx, [r13 + 4]
mov esi, eax
mov rax, qword [rsp + 0x80]
mov r8d, esi
mov rdi, qword [rax + 8]
call qword [sym.imp.ntdll.dll_RtlAllocateHeap]
mov r8d, esi
mov rdx, rdi
mov rcx, rax
mov rbx, rax
call fcn.140188690
mov rcx, qword [rsp + 0x80]
mov qword [r12], rbx
nop dword [rax]
test r14, r14
je 0x140136610
movsxd rax, dword [rcx + 0x10]
test eax, eax
js 0x1401365fb
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 0x1401365b8
call sym.ProcessHacker.exe_PhReferenceEmptyString
mov rbx, rax
mov qword [r14], rax
jmp 0x140136608
mov rdx, qword [0x1402418e8]
mov rdi, rcx
mov rsi, qword [rax + 8]
add rcx, 0x12
call sym.ProcessHacker.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 0x1401365f6
mov rcx, qword [rbx + 8]
mov r8, rdi
mov rdx, rsi
call fcn.140188690
mov qword [r14], rbx
jmp 0x140136608
nop dword [rax + rax]
call sym.ProcessHacker.exe_PhReferenceEmptyString
mov qword [r14], rax
mov rcx, qword [rsp + 0x80]
mov rdi, qword [rsp + 0x58]
mov rsi, qword [rsp + 0x98]
mov rbx, qword [rsp + 0x88]
test r15, r15
je 0x140136636
mov eax, dword [rcx]
mov dword [r15], eax
jmp 0x140136636
mov ebp, 0xc0000073
mov rax, qword [rsp + 0x30]
mov r13, qword [rsp + 0x50]
test rax, rax
je 0x140136656
mov rcx, rax
call qword [sym.imp.ADVAPI32.dll_LsaFreeMemory]
mov rcx, qword [rsp + 0x80]
test rcx, rcx
je 0x140136666
nop dword [rax + rax]
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 0x1401535a0
Capabilities:
Create thread

Disassembly:
sub rsp, 0x48
mov rax, qword [rsp + 0x78]
mov byte [rsp + 0x30], 0
mov qword [rsp + 0x28], rax
mov rax, qword [rsp + 0x70]
mov qword [rsp + 0x20], rax
call fcn.1401535e0
mov rdx, rax
lea rcx, [0x140153520]
add rsp, 0x48
jmp sym.ProcessHacker.exe_PhCreateThread2
Function at 0x140155e60
Capabilities:
Parse pe header

Disassembly:
push rbx
push rdi
sub rsp, 0x38
mov rdi, rcx
call fcn.140155dc0
mov rbx, rax
test rax, rax
jne 0x140155e83
mov eax, 0xc0000135
add rsp, 0x38
pop rdi
pop rbx
ret
mov r8, qword [0x140241b88]
mov qword ss:[rsp + 0x50], rbp
mov ebp, 0x5a4d
mov qword [rsp + 0x30], rsi
xor esi, esi
test r8, r8
jne 0x140155efe
cmp word [rax], bp
jne 0x140155ef4
mov ecx, dword [rax + 0x3c]
lea eax, [rcx - 1]
cmp eax, 0x7ffffffd
ja 0x140155ef4
cmp dword ds:[rcx + rbx], 0x4550
jne 0x140155ef4
lea rdx, [rbx + 0x88]
add rdx, rcx
mov eax, dword [rdx]
test eax, eax
je 0x140155ef4
cmp dword [rdx + 4], esi
je 0x140155ef4
lea r8, [rbx + rax]
mov word [rsp + 0x20], si
lea r9, str.PowerGetActiveScheme
mov rcx, rbx
call fcn.1400fa1a0
mov r8, rax
jmp 0x140155ef7
mov r8, rsi
mov qword [0x140241b88], r8
mov rax, qword [0x140241b90]
test rax, rax
jne 0x140155f65
cmp word [rbx], bp
jne 0x140155f5b
mov ecx, dword [rbx + 0x3c]
lea eax, [rcx - 1]
cmp eax, 0x7ffffffd
ja 0x140155f5b
cmp dword [rcx + rbx], 0x4550
jne 0x140155f5b
lea rdx, [rbx + 0x88]
add rdx, rcx
mov eax, dword [rdx]
test eax, eax
je 0x140155f5b
cmp dword [rdx + 4], esi
je 0x140155f5b
lea r8, [rbx + rax]
mov word [rsp + 0x20], si
lea r9, str.PowerReadSecurityDescriptor
mov rcx, rbx
call fcn.1400fa1a0
mov r8, qword [0x140241b88]
jmp 0x140155f5e
mov rax, rsi
mov qword [0x140241b90], rax
mov rsi, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x50]
test r8, r8
je 0x140156029
nop dword [rax + rax]
test rax, rax
je 0x140156029
lea rdx, [rsp + 0x58]
xor ecx, ecx
mov rax, r8
call qword [case.0x1400f654f.0]
test eax, eax
je 0x140155fb5
nop dword [rax]
jle 0x14015602e
movzx eax, ax
or eax, 0xc0070000
add rsp, 0x38
pop rdi
pop rbx
ret
mov rdx, qword [rsp + 0x58]
lea r8, [rsp + 0x60]
mov rax, qword [0x140241b90]
mov ecx, 0xe
call qword [case.0x1400f654f.0]
mov ebx, eax
test eax, eax
jne 0x140156008
test rdi, rdi
je 0x140155fe9
mov rcx, qword [rsp + 0x60]
call sym.ProcessHacker.exe_PhCreateString
mov qword [rdi], rax
mov rcx, qword [rsp + 0x60]
call qword [sym.imp.KERNEL32.dll_LocalFree]
mov rcx, qword [rsp + 0x58]
call qword [sym.imp.KERNEL32.dll_LocalFree]
mov eax, ebx
add rsp, 0x38
pop rdi
pop rbx
ret
mov rcx, qword [rsp + 0x58]
call qword [sym.imp.KERNEL32.dll_LocalFree]
test ebx, ebx
jle 0x140156020
movzx ebx, bx
or ebx, 0xc0070000
mov eax, ebx
add rsp, 0x38
pop rdi
pop rbx
ret
mov eax, 0xc000007a
add rsp, 0x38
pop rdi
pop rbx
ret
Function at 0x140156040
Capabilities:
Parse pe header

Disassembly:
mov qword [rsp + 0x20], rbx
push rsi
sub rsp, 0x30
mov rsi, rcx
call fcn.140155dc0
mov rbx, rax
test rax, rax
jne 0x14015606a
mov eax, 0xc0000135
mov rbx, qword [rsp + 0x58]
add rsp, 0x30
pop rsi
ret
mov r8, qword [0x140241b88]
mov qword [rsp + 0x40], rbp
mov ebp, 0x5a4d
mov qword [rsp + 0x50], rdi
xor edi, edi
test r8, r8
jne 0x1401560de
cmp word [rax], bp
jne 0x1401560d4
mov ecx, dword [rax + 0x3c]
lea eax, [rcx - 1]
cmp eax, 0x7ffffffd
ja 0x1401560d4
cmp dword [rcx + rbx], 0x4550
jne 0x1401560d4
lea rdx, [rbx + 0x88]
add rdx, rcx
mov eax, dword [rdx]
test eax, eax
je 0x1401560d4
cmp dword [rdx + 4], edi
je 0x1401560d4
lea r8, [rbx + rax]
mov word [rsp + 0x20], di
lea r9, str.PowerGetActiveScheme
mov rcx, rbx
call fcn.1400fa1a0
mov r8, rax
jmp 0x1401560d7
mov r8, rdi
mov qword [0x140241b88], r8
mov rax, qword [0x140241b98]
test rax, rax
jne 0x140156145
cmp word [rbx], bp
jne 0x14015613b
mov ecx, dword [rbx + 0x3c]
lea eax, [rcx - 1]
cmp eax, 0x7ffffffd
ja 0x14015613b
cmp dword [rcx + rbx], 0x4550
jne 0x14015613b
lea rdx, [rbx + 0x88]
add rdx, rcx
mov eax, dword [rdx]
test eax, eax
je 0x14015613b
cmp dword [rdx + 4], edi
je 0x14015613b
lea r8, [rbx + rax]
mov word [rsp + 0x20], di
lea r9, str.PowerWriteSecurityDescriptor
mov rcx, rbx
call fcn.1400fa1a0
mov r8, qword [0x140241b88]
jmp 0x14015613e
mov rax, rdi
mov qword [0x140241b98], rax
mov rbp, qword [rsp + 0x40]
test r8, r8
je 0x1401561d5
test rax, rax
je 0x1401561d5
lea rdx, [rsp + 0x48]
xor ecx, ecx
mov rax, r8
call qword [case.0x1400f654f.0]
test eax, eax
je 0x140156186
jle 0x1401561da
mov rdi, qword [rsp + 0x50]
movzx eax, ax
or eax, 0xc0070000
mov rbx, qword [rsp + 0x58]
add rsp, 0x30
pop rsi
ret
test rsi, rsi
je 0x14015618f
mov rdi, qword [rsi + 8]
mov rdx, qword [rsp + 0x48]
mov r8, rdi
mov rax, qword [0x140241b98]
mov ecx, 0xe
call qword [case.0x1400f654f.0]
mov rcx, qword [rsp + 0x48]
mov ebx, eax
call qword [sym.imp.KERNEL32.dll_LocalFree]
test ebx, ebx
jle 0x1401561c3
movzx ebx, bx
or ebx, 0xc0070000
mov rdi, qword [rsp + 0x50]
mov eax, ebx
mov rbx, qword [rsp + 0x58]
add rsp, 0x30
pop rsi
ret
mov eax, 0xc000007a
mov rdi, qword [rsp + 0x50]
mov rbx, qword [rsp + 0x58]
add rsp, 0x30
pop rsi
ret
Function at 0x14015a680
Capabilities:
Open clipboard
Read clipboard data

Disassembly:
push rdi
push r15
sub rsp, 0x28
mov rdi, rdx
mov r15, rcx
call qword [sym.imp.USER32.dll_OpenClipboard]
test eax, eax
je 0x14015a7f1
lea rcx, str.BinaryData
mov qword [rsp + 0x48], rbp
call qword [sym.imp.USER32.dll_RegisterClipboardFormatW]
mov ecx, eax
call qword [sym.imp.USER32.dll_GetClipboardData]
mov rbp, rax
test rax, rax
jne 0x14015a6d3
lea ecx, [rax + 1]
call qword [sym.imp.USER32.dll_GetClipboardData]
mov rbp, rax
test rax, rax
je 0x14015a7e6
mov qword [rsp + 0x40], rbx
mov rcx, rbp
mov qword [rsp + 0x50], rsi
mov qword [rsp + 0x58], r12
mov qword [rsp + 0x20], r14
call qword [sym.imp.KERNEL32.dll_GlobalLock]
mov rcx, rbp
mov r12, rax
call qword [sym.imp.KERNEL32.dll_GlobalSize]
mov ecx, dword [rdi + 0x1c]
mov rsi, rax
mov r9d, dword [rdi + 0x20]
mov ebx, ecx
mov r14d, dword [rdi + 0x14]
cmp ecx, r9d
jle 0x14015a71d
mov ebx, r9d
mov dword [rdi + 0x20], ecx
mov dword [rdi + 0x1c], ebx
mov r9d, ecx
test byte [rdi + 0x2c], 0x10
je 0x14015a782
cmp ebx, 0xffffffff
jne 0x14015a74b
cmp dword [rdi + 0x18], 3
mov ebx, r14d
jne 0x14015a738
lea ebx, [r14 + 1]
mov dword [rdi + 0x14], ebx
mov r9d, esi
mov r8d, ebx
mov rdx, rdi
mov rcx, r15
call fcn.14015a900
jmp 0x14015a7a1
mov r8d, ebx
mov rdx, rdi
mov rcx, r15
call fcn.14015a800
mov r9d, esi
mov r8d, ebx
mov rdx, rdi
mov rcx, r15
call fcn.14015a900
mov r9d, 0xffffffff
mov rdx, rdi
mov r8d, r9d
mov rcx, r15
call fcn.14015a240
nop
jmp 0x14015a7a1
cmp ebx, 0xffffffff
jne 0x14015a797
cmp dword [rdi + 0x18], 3
mov ebx, r14d
jne 0x14015a797
lea ebx, [r14 + 1]
mov dword [rdi + 0x14], ebx
mov eax, dword [rdi + 8]
sub eax, ebx
cmp esi, eax
cmova esi, eax
mov ecx, ebx
mov rdx, r12
add rcx, qword [rdi]
mov r8d, esi
call fcn.140188690
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_GlobalUnlock]
mov r9d, 0x105
mov dword [rdi + 0x14], r14d
xor r8d, r8d
xor edx, edx
mov rcx, r15
call qword [sym.imp.USER32.dll_RedrawWindow]
mov r14, qword [rsp + 0x20]
mov r12, qword [rsp + 0x58]
mov rsi, qword [rsp + 0x50]
mov rbx, qword [rsp + 0x40]
call qword [sym.imp.USER32.dll_CloseClipboard]
mov rbp, qword [rsp + 0x48]
add rsp, 0x28
pop r15
pop rdi
ret
Function at 0x14015e000
Capabilities:
Capture screenshot

Disassembly:
mov qword [rsp + 0x20], rbx
push rdi
sub rsp, 0xc0
mov rax, qword [0x140237008]
xor rax, rsp
mov qword [rsp + 0xb0], rax
mov rbx, rdx
xor r8d, r8d
lea rdx, [rsp + 0x50]
mov rdi, rcx
call qword [sym.imp.USER32.dll_GetUpdateRect]
test eax, eax
je 0x14015e23b
mov eax, dword [rsp + 0x5c]
or eax, dword [rsp + 0x54]
or eax, dword [rsp + 0x58]
or eax, dword [rsp + 0x50]
je 0x14015e23b
cmp dword [rbx + 0x240], 0
mov qword [rsp + 0xe0], rsi
jg 0x14015e0d4
xor r9d, r9d
xor r8d, r8d
xor edx, edx
xor ecx, ecx
call qword [sym.imp.GDI32.dll_CreateRectRgn]
xor r8d, r8d
mov rcx, rdi
mov rdx, rax
mov rsi, rax
call qword [sym.imp.USER32.dll_GetUpdateRgn]
mov rcx, qword [rbx + 0x248]
test rcx, rcx
jne 0x14015e09b
mov qword [rbx + 0x248], rsi
jmp 0x14015e0b6
mov r9d, 2
mov r8, rsi
mov rdx, rcx
call qword [sym.imp.GDI32.dll_CombineRgn]
mov rcx, rsi
call qword [sym.imp.GDI32.dll_DeleteObject]
lea rdx, ds:[rsp + 0x60]
mov rcx, rdi
call qword [sym.imp.USER32.dll_BeginPaint]
test rax, rax
je 0x14015e233
jmp 0x14015e225
test dword ds:[rbx + 0x40], 0x200000
je 0x14015e193
cmp qword [rbx + 0x200], 0
jne 0x14015e193
mov rcx, qword [rbx]
call qword [sym.imp.USER32.dll_GetDC]
mov rsi, rax
test rax, rax
je 0x14015e193
mov rcx, rax
call qword [sym.imp.GDI32.dll_CreateCompatibleDC]
mov qword [rbx + 0x200], rax
test rax, rax
je 0x14015e193
movups xmm0, xmmword ds:[rbx + 0x68]
mov rcx, rsi
movups xmmword [rbx + 0x218], xmm0
mov edx, dword [rbx + 0x220]
mov r8d, dword [rbx + 0x224]
inc edx
call qword [sym.imp.GDI32.dll_CreateCompatibleBitmap]
mov qword [rbx + 0x210], rax
test rax, rax
jne 0x14015e16c
mov rcx, qword [rbx + 0x200]
call qword [sym.imp.GDI32.dll_DeleteDC]
mov qword [rbx + 0x200], 0
jmp 0x14015e193
mov rcx, qword [rbx]
mov rdx, rsi
call qword [sym.imp.USER32.dll_ReleaseDC]
mov rdx, qword [rbx + 0x210]
mov rcx, qword [rbx + 0x200]
call qword [sym.imp.GDI32.dll_SelectObject]
mov qword [rbx + 0x208], rax
lea rdx, ds:[rsp + 0x60]
mov rcx, rdi
call qword [sym.imp.USER32.dll_BeginPaint]
mov rsi, rax
test rax, rax
je 0x14015e233
movups xmm0, xmmword [rsp + 0x6c]
mov r8, qword [rbx + 0x200]
lea r9, [rsp + 0x50]
mov rdx, rbx
mov rcx, rdi
movups xmmword [rsp + 0x50], xmm0
test r8, r8
je 0x14015e21c
call fcn.140163980
mov ecx, dword [rsp + 0x5c]
mov r8d, dword [rsp + 0x54]
sub ecx, r8d
mov edx, dword [rsp + 0x50]
mov rax, qword [rbx + 0x200]
mov r9d, dword [rsp + 0x58]
mov dword [rsp + 0x40], 0xcc0020
sub r9d, edx
mov dword [rsp + 0x38], r8d
mov dword [rsp + 0x30], edx
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x20], ecx
mov rcx, rsi
call qword [sym.imp.GDI32.dll_BitBlt]
jmp 0x14015e225
mov r8, rsi
call fcn.140163980
lea rdx, [rsp + 0x60]
mov rcx, rdi
call qword [sym.imp.USER32.dll_EndPaint]
mov rsi, qword [rsp + 0xe0]
mov rcx, qword [rsp + 0xb0]
xor rcx, rsp
call fcn.1401848a0
mov rbx, qword [rsp + 0xe8]
add rsp, 0xc0
pop rdi
ret
Function at 0x140167de0
Capabilities:
Parse pe header

Disassembly:
mov qword ss:[rsp + 8], rbx
push rdi
sub rsp, 0x90
test byte [0x14023f340], 1
mov rbx, rdx
mov rdi, rcx
jne 0x140167edc
lock bts qword [0x14023f340], 0x1f
jae 0x140167e32
test byte [0x14023f340], 1
jne 0x140167edc
xor edx, edx
lea rcx, [0x14023f340]
call sym.ProcessHacker.exe_PhfWaitForEvent
jmp 0x140167edc
xor edx, edx
lea rcx, str.cryptui.dll
mov r8d, 0x800
call qword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov rcx, rax
test rax, rax
jne 0x140167e6e
xor edx, edx
lea rcx, str.cryptui.dll
mov r8d, 0xa00
call qword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov rcx, rax
test rax, rax
je 0x140167ed0
mov eax, 0x5a4d
cmp word [rcx], ax
jne 0x140167ec7
mov edx, dword ds:[rcx + 0x3c]
lea eax, [rdx - 1]
cmp eax, 0x7ffffffd
ja 0x140167ec7
cmp dword [rdx + rcx], 0x4550
jne 0x140167ec7
add rdx, 0x88
add rdx, rcx
mov eax, dword [rdx]
test eax, eax
je 0x140167ec7
cmp dword [rdx + 4], 0
je 0x140167ec7
lea r8, ds:[rcx + rax]
xor eax, eax
lea r9, str.CryptUIDlgViewSignerInfoW
mov word [rsp + 0x20], ax
call fcn.1400fa1a0
jmp 0x140167ec9
xor eax, eax
mov qword [0x140245760], rax
lea rcx, [0x14023f340]
call sym.ProcessHacker.exe_PhfSetEvent
cmp qword [0x140245760], 0
je 0x140167f86
xorps xmm0, xmm0
mov dword [rsp + 0x30], 0x60
xor eax, eax
mov rcx, rbx
mov qword [rsp + 0x88], rax
mov rax, qword [0x140245808]
movups xmmword [rsp + 0x38], xmm0
movups xmmword [rsp + 0x48], xmm0
movups xmmword [rsp + 0x58], xmm0
movups xmmword [rsp + 0x68], xmm0
movups xmmword [rsp + 0x78], xmm0
call qword [case.0x1400f654f.0]
mov rbx, rax
test rax, rax
je 0x140167f86
mov rcx, rax
xor r9d, r9d
mov rax, qword [0x1402457c0]
xor r8d, r8d
xor edx, edx
call qword [case.0x1400f654f.0]
test rax, rax
je 0x140167f86
mov rcx, qword [rdi + 0x20]
mov qword [rsp + 0x38], rcx
lea rcx, [rsp + 0x30]
mov rax, qword [rax + 0x20]
mov qword [rsp + 0x50], rax
mov rax, qword [rbx + 0x70]
mov qword [rsp + 0x58], rax
lea rax, str.1.3.6.1.5.5.7.3.3
mov qword [rsp + 0x60], rax
mov rax, qword [0x140245760]
call qword [case.0x1400f654f.0]
mov rbx, qword [rsp + 0xa0]
add rsp, 0x90
pop rdi
ret
Function at 0x140169480
Capabilities:
Parse pe header

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x20
mov rsi, r8
mov rdi, rdx
mov rbx, rcx
mov qword [rcx + 8], rdx
mov qword [rcx + 0x10], r8
mov r8d, 0x40
call fcn.140169a80
nop
mov eax, 0x5a4d
cmp word [rdi], ax
je 0x1401694cb
mov eax, 0xc000012f
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret
mov ecx, dword [rdi + 0x3c]
lea eax, [rcx - 1]
cmp eax, 0xffffffe
ja 0x140169572
nop dword [rax]
cmp rcx, rsi
jae 0x140169572
lea rdx, [rcx + rdi]
mov qword [rbx + 0x18], rdx
mov r8d, 0x18
mov rcx, rbx
call fcn.140169a80
mov rdx, qword [rbx + 0x18]
movzx eax, word [rdx + 6]
lea rcx, [rax + rax*4]
movzx eax, word [rdx + 0x14]
lea rcx, [rcx + 3]
lea r8, [rax + rcx*8]
mov rcx, rbx
call fcn.140169a80
nop
mov rcx, qword [rbx + 0x18]
cmp dword [rcx], 0x4550
jne 0x140169572
movzx eax, word [rcx + 0x18]
mov word [rbx + 0x30], ax
mov edx, 0x10b
cmp ax, dx
je 0x140169548
mov edx, 0x20b
cmp ax, dx
jne 0x140169572
movzx eax, word [rcx + 6]
mov dword [rbx + 0x20], eax
movzx eax, word [rcx + 0x14]
add rcx, 0x18
add rcx, rax
mov qword [rbx + 0x28], rcx
xor eax, eax
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret
mov eax, 0xc000007b
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret
Function at 0x140169600
Capabilities:
Get file attributes
Map section object

Disassembly:
push rbx
push rsi
push r14
push r15
sub rsp, 0xb8
mov rax, qword [0x140237008]
xor rax, rsp
mov qword [rsp + 0xa0], rax
xor ebx, ebx
mov qword [rsp + 0x68], rdx
xor r15b, r15b
mov qword [rsp + 0x60], rbx
mov rsi, r8
mov r14, rdx
test rdx, rdx
jne 0x140169690
test rcx, rcx
jne 0x140169649
mov eax, 0xc0000030
jmp 0x140169815
mov dword [rsp + 0x30], 0x60
mov rdx, rcx
mov dword [rsp + 0x28], 1
lea rcx, [rsp + 0x68]
mov r9d, 0x80
mov dword [rsp + 0x20], 1
mov r8d, 0x100081
call sym.ProcessHacker.exe_PhCreateFile
nop word [rax + rax]
test eax, eax
js 0x140169815
mov r14, qword [rsp + 0x68]
mov r15b, 1
mov qword ss:[rsp + 0xf8], rbp
lea r8, [rsp + 0x88]
mov r9d, 0x18
mov qword [rsp + 0xb0], rdi
lea rdx, [rsp + 0x78]
mov dword [rsp + 0x20], 5
mov rcx, r14
call qword [sym.imp.ntdll.dll_NtQueryInformationFile]
mov ebp, eax
test eax, eax
js 0x140169770
mov rax, qword [rsp + 0x90]
lea r9, [rsp + 0x58]
xor r8d, r8d
mov qword [rsp + 0x30], r14
mov dword [rsp + 0x28], 0x8000000
lea rcx, [rsp + 0x60]
mov qword [rsp + 0x58], rax
mov dword [rsp + 0x20], 2
lea edx, [r8 + 5]
call qword [sym.imp.ntdll.dll_NtCreateSection]
mov ebp, eax
test eax, eax
js 0x140169770
mov rax, qword [rsp + 0x58]
lea r8, [rsp + 0x70]
mov rcx, qword [rsp + 0x60]
xor r9d, r9d
mov dword [rsp + 0x48], 2
mov dword [rsp + 0x40], ebx
mov dword [rsp + 0x38], 1
mov qword [rsp + 0x50], rax
lea rdx, [r9 - 1]
lea rax, [rsp + 0x50]
mov qword [rsp + 0x70], rbx
mov qword [rsp + 0x30], rax
mov qword [rsp + 0x28], rbx
mov qword [rsp + 0x20], rbx
call qword [sym.imp.ntdll.dll_NtMapViewOfSection]
mov ebp, eax
test eax, eax
js 0x140169770
mov rbx, qword [rsp + 0x70]
mov rdi, qword [rsp + 0x58]
jmp 0x14016977a
mov rbx, qword [rsp + 0x50]
mov rdi, qword [rsp + 0x50]
mov rcx, qword ds:[rsp + 0x60]
test rcx, rcx
je 0x14016978b
call qword [sym.imp.ntdll.dll_NtClose]
test r15b, r15b
je 0x140169799
mov rcx, r14
call qword [sym.imp.ntdll.dll_NtClose]
test ebp, ebp
js 0x140169803
movzx eax, word [rbx]
mov ecx, 0x457f
mov word [rsi], ax
mov qword [rsi + 8], rbx
mov qword [rsi + 0x10], rdi
cmp ax, cx
je 0x1401697d6
mov ecx, 0x5a4d
cmp ax, cx
je 0x1401697c6
mov ebx, 0xc00001a3
jmp 0x1401697eb
mov r8, rdi
mov rdx, rbx
mov rcx, rsi
call sym.ProcessHacker.exe_PhInitializeMappedImage
jmp 0x1401697e5
mov r8, rdi
mov rdx, rbx
mov rcx, rsi
call fcn.14017b6e0
mov ebx, eax
test eax, eax
jns 0x1401697ff
lfence
mov rdx, qword [rsi + 8]
mov rcx, 0xffffffffffffffff
call qword [sym.imp.ntdll.dll_NtUnmapViewOfSection]
mov eax, ebx
jmp 0x140169805
mov eax, ebp
mov rbp, qword [rsp + 0xf8]
mov rdi, qword [rsp + 0xb0]
mov rcx, qword [rsp + 0xa0]
xor rcx, rsp
call fcn.1401848a0
add rsp, 0xb8
pop r15
pop r14
pop rsi
pop rbx
ret
Function at 0x140169860
Capabilities:
Get file attributes
Map section object

Disassembly:
push rbp
push rbx
push rsi
push rdi
push r12
push r14
push r15
lea rbp, [rsp - 0x10]
sub rsp, 0x110
mov rax, qword [0x140237008]
xor rax, rsp
mov qword [rbp], rax
xor r12d, r12d
xor sil, sil
mov qword [rsp + 0x68], r12
mov r15, r9
mov r14, r8
mov rdi, rdx
test rdx, rdx
jne 0x140169957
test rcx, rcx
jne 0x1401698b8
mov eax, 0xc0000030
jmp 0x140169a50
xor r9d, r9d
lea rdx, [rbp - 0x78]
xor r8d, r8d
call qword [sym.imp.ntdll.dll_RtlDosPathNameToNtPathName_U_WithStatus]
mov ebx, eax
test eax, eax
js 0x140169a6e
mov dword [rsp + 0x50], r12d
lea rax, [rbp - 0x78]
mov qword [rsp + 0x48], r12
lea r9, [rbp - 0x38]
mov dword [rsp + 0x40], 0x60
lea r8, [rbp - 0x68]
mov dword [rsp + 0x38], 1
lea rcx, [rsp + 0x78]
mov dword [rsp + 0x30], 1
xorps xmm0, xmm0
mov dword [rsp + 0x28], 0x80
mov edx, 0x100081
mov qword [rsp + 0x20], r12
mov dword [rbp - 0x68], 0x30
mov qword [rbp - 0x60], r12
mov dword [rbp - 0x50], 0x40
mov qword [rbp - 0x58], rax
movdqu xmmword [rbp - 0x48], xmm0
call qword [sym.imp.ntdll.dll_NtCreateFile]
lea rcx, [rbp - 0x78]
mov ebx, eax
call qword [sym.imp.ntdll.dll_RtlFreeUnicodeString]
test ebx, ebx
js 0x140169a6e
mov rdi, qword [rsp + 0x78]
mov sil, 1
mov r9d, 0x18
mov dword [rsp + 0x20], 5
lea r8, [rbp - 0x18]
mov rcx, rdi
lea rdx, [rbp - 0x28]
call qword [sym.imp.ntdll.dll_NtQueryInformationFile]
mov ebx, eax
test eax, eax
js 0x140169a2f
mov rax, qword ds:[rbp - 0x10]
mov qword [rsp + 0x60], rax
lfence
xor r8d, r8d
mov qword [rsp + 0x30], rdi
mov dword [rsp + 0x28], 0x8000000
lea r9, [rsp + 0x60]
lea rcx, [rsp + 0x68]
mov dword [rsp + 0x20], 2
lea edx, [r8 + 5]
call qword [sym.imp.ntdll.dll_NtCreateSection]
mov ebx, eax
test eax, eax
js 0x140169a2f
mov rax, qword [rsp + 0x60]
lea r8, [rsp + 0x70]
mov rcx, qword [rsp + 0x68]
xor r9d, r9d
mov dword [rsp + 0x48], 2
mov dword [rsp + 0x40], r12d
mov dword [rsp + 0x38], 1
mov qword [rbp - 0x80], rax
lea rdx, [r9 - 1]
lea rax, [rbp - 0x80]
mov qword [rsp + 0x70], r12
mov qword [rsp + 0x30], rax
mov qword [rsp + 0x28], r12
mov qword [rsp + 0x20], r12
call qword [sym.imp.ntdll.dll_NtMapViewOfSection]
mov ebx, eax
test eax, eax
js 0x140169a2f
mov rax, qword [rsp + 0x70]
mov qword [r14], rax
mov rax, qword [rsp + 0x60]
mov qword [r15], rax
mov rcx, qword [rsp + 0x68]
test rcx, rcx
je 0x140169a3f
call qword [sym.imp.ntdll.dll_NtClose]
nop
test sil, sil
je 0x140169a4e
mov rcx, rdi
call qword [sym.imp.ntdll.dll_NtClose]
mov eax, ebx
mov rcx, qword [rbp]
xor rcx, rsp
call fcn.1401848a0
add rsp, 0x110
pop r15
pop r14
pop r12
pop rdi
pop rsi
pop rbx
pop rbp
ret
lfence
jmp 0x140169a4e
Function at 0x140169d20
Capabilities:
Parse pe header

Disassembly:
push rbx
push rdi
push r14
push r15
sub rsp, 0x1a8
mov rax, qword [0x140237008]
xor rax, rsp
mov qword [rsp + 0x180], rax
mov r15, r8
mov qword [r9], rdx
mov rdi, r9
mov qword [rsp + 0x20], 0
mov rax, r15
lea r8, [rsp + 0x30]
mov r9d, 0x40
mov rbx, rdx
mov r14, rcx
call qword [case.0x1400f654f.0]
test eax, eax
jns 0x140169d78
lfence
jmp 0x140169edf
mov eax, 0x5a4d
cmp word [rsp + 0x30], ax
je 0x140169d91
mov eax, 0xc000012f
jmp 0x140169edf
mov eax, dword [rsp + 0x6c]
dec eax
mov qword [rsp + 0x1a0], rbp
mov qword [rsp + 0x198], rsi
cmp eax, 0xffffffe
ja 0x140169eca
lfence
mov ebp, dword [rsp + 0x6c]
lea r8, [rsp + 0x70]
add rbp, rbx
mov qword [rsp + 0x20], 0
mov rdx, rbp
mov r9d, pe_nt_image_headers64
mov rcx, r14
mov rax, r15
call qword [case.0x1400f654f.0]
nop
test eax, eax
jns 0x140169dec
lfence
jmp 0x140169ecf
cmp dword [rsp + 0x70], 0x4550
jne 0x140169eca
movzx eax, word [rsp + 0x88]
mov ecx, 0x10b
mov word [rdi + 0x20], ax
sub ax, cx
mov ecx, 0xfeff
test cx, ax
jne 0x140169eca
movzx eax, word ds:[rsp + 0x76]
mov dword [rdi + 0x10], eax
lea rsi, [rax + rax*4]
movzx eax, word [rsp + 0x84]
lea rsi, [rsi + 3]
lea rsi, [rax + rsi*8]
cmp rsi, 0x100000
ja 0x140169eca
lfence
mov rcx, qword [0x140241998]
mov r8, rsi
mov edx, 4
call qword [sym.imp.ntdll.dll_RtlAllocateHeap]
mov r8, rsi
xor edx, edx
mov rcx, rax
mov rbx, rax
call fcn.1401868c0
mov r9, rsi
mov qword [rsp + 0x20], 0
mov r8, rbx
mov rdx, rbp
mov rcx, r14
mov rax, r15
call qword [case.0x1400f654f.0]
mov esi, eax
test eax, eax
jns 0x140169eb3
lfence
mov rcx, qword [0x140241998]
mov r8, rbx
xor edx, edx
call qword [sym.imp.ntdll.dll_RtlFreeHeap]
mov eax, esi
jmp 0x140169ecf
mov qword [rdi + 8], rbx
lea rcx, [rbx + 0x18]
movzx eax, word [rbx + 0x14]
add rcx, rax
mov qword [rdi + 0x18], rcx
xor eax, eax
jmp 0x140169ecf
mov eax, 0xc000007b
mov rbp, qword [rsp + 0x1a0]
mov rsi, qword [rsp + 0x198]
mov rcx, qword [rsp + 0x180]
xor rcx, rsp
call fcn.1401848a0
add rsp, 0x1a8
pop r15
pop r14
pop rdi
pop rbx
ret