joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1400c1240
Capabilities:
Get system information on windows
Make suspicious ntquerysysteminformation call

Disassembly:
push rbx
sub rsp, 0x30
xor ebx, ebx
xor edx, edx
mov qword [rsp + 0x28], rbx
mov r9d, 0x100000
mov r8d, 0x200000
mov qword [rsp + 0x20], rbx
mov ecx, 0x1002
call qword [sym.imp.ntdll.dll_RtlCreateHeap]
mov qword [sym.ProcessJacker.exe_PhHeapHandle], rax
test rax, rax
jne 0x1400c1282
mov eax, 0xc000009a
add rsp, 0x30
pop rbx
ret
mov rax, qword gs:[0x30]
mov rcx, qword [rax + 0x60]
mov rax, qword [rcx + 0x10]
mov qword [sym.ProcessJacker.exe_PhLibImageBase], rax
call fcn.1400c1330
xor r9d, r9d
lea rdx, [sym.ProcessJacker.exe_PhSystemBasicInformation]
xor ecx, ecx
lea r8d, [r9 + 0x40]
call qword [sym.imp.ntdll.dll_NtQuerySystemInformation]
xor r9d, r9d
lea rcx, [0x14015daf8]
xor r8d, r8d
mov edx, 0xf0003
call qword [sym.imp.ntdll.dll_NtCreateKeyedEvent]
test eax, eax
js 0x1400c1325
cmp byte [0x14015deb8], 1
mov eax, 0xfa0
cmova ebx, eax
mov dword [0x140155ba8], ebx
call fcn.1400ae420
test eax, eax
js 0x1400c1325
call fcn.1400aee40
test al, al
je 0x1400c1325
call fcn.1400b4bd0
test al, al
je 0x1400c1325
lea r8, [0x1400b5cf0]
xor edx, edx
lea rcx, str.SymbolProvider
call sym.ProcessJacker.exe_PhCreateObjectType
mov qword [0x14015e0b0], rax
xor eax, eax
add rsp, 0x30
pop rbx
ret
mov eax, 0xc0000001
add rsp, 0x30
pop rbx
ret
Function at 0x1400c1330
Capabilities:
Check os version

Disassembly:
sub rsp, 0x148
lea rcx, [rsp + 0x20]
mov dword [rsp + 0x20], 0x11c
call qword [sym.imp.ntdll.dll_RtlGetVersion]
test eax, eax
jns 0x1400c1360
mov dword [sym.ProcessJacker.exe_WindowsVersion], 0x7fffffff
add rsp, 0x148
ret
lea rcx, [sym.ProcessJacker.exe_PhOsVersion]
mov eax, 2
lea rdx, [rsp + 0x20]
lea rcx, [rcx + 0x80]
movups xmm0, xmmword [rdx]
movups xmm1, xmmword [rdx + 0x10]
lea rdx, [rdx + 0x80]
movups xmmword [rcx - 0x80], xmm0
movups xmm0, xmmword [rdx - 0x60]
movups xmmword [rcx - 0x70], xmm1
movups xmm1, xmmword [rdx - 0x50]
movups xmmword [rcx - 0x60], xmm0
movups xmm0, xmmword [rdx - 0x40]
movups xmmword [rcx - 0x50], xmm1
movups xmm1, xmmword [rdx - 0x30]
movups xmmword [rcx - 0x40], xmm0
movups xmm0, xmmword [rdx - 0x20]
movups xmmword [rcx - 0x30], xmm1
movups xmm1, xmmword [rdx - 0x10]
movups xmmword [rcx - 0x20], xmm0
movups xmmword [rcx - 0x10], xmm1
sub rax, 1
jne 0x1400c1371
mov rax, qword [rdx + 0x10]
movups xmm0, xmmword [rdx]
movups xmmword [rcx], xmm0
mov qword [rcx + 0x10], rax
mov eax, dword [rdx + 0x18]
mov dword [rcx + 0x18], eax
mov eax, dword [rsp + 0x24]
cmp eax, 5
jne 0x1400c1445
mov eax, dword [rsp + 0x28]
cmp eax, 1
jb 0x1400c1447
jne 0x1400c1430
mov dword [sym.ProcessJacker.exe_WindowsVersion], 0x33
mov dword [sym.ProcessJacker.exe_ProcessQueryAccess], 0x400
mov dword [sym.ProcessJacker.exe_ProcessAllAccess], 0x1f0fff
mov dword [sym.ProcessJacker.exe_ThreadQueryAccess], 0x40
mov dword [sym.ProcessJacker.exe_ThreadSetAccess], 0x20
mov dword [sym.ProcessJacker.exe_ThreadAllAccess], 0x1f03ff
add rsp, 0x148
ret
cmp eax, 2
jne 0x1400c14c6
mov dword [sym.ProcessJacker.exe_WindowsVersion], 0x34
jmp 0x1400c13f6
jae 0x1400c1453
mov dword [sym.ProcessJacker.exe_WindowsVersion], 0
jmp 0x1400c13f6
cmp eax, 6
jne 0x1400c149f
mov eax, dword [rsp + 0x28]
test eax, eax
jne 0x1400c146c
mov dword [sym.ProcessJacker.exe_WindowsVersion], 0x3c
jmp 0x1400c14d3
cmp eax, 1
jne 0x1400c147d
mov dword [sym.ProcessJacker.exe_WindowsVersion], 0x3d
jmp 0x1400c14d3
cmp eax, 2
jne 0x1400c148e
mov dword [sym.ProcessJacker.exe_WindowsVersion], 0x3e
jmp 0x1400c14d3
cmp eax, 3
jne 0x1400c14c6
mov dword [sym.ProcessJacker.exe_WindowsVersion], 0x3f
jmp 0x1400c14d3
cmp eax, 0xa
jne 0x1400c14b8
mov eax, dword [rsp + 0x28]
test eax, eax
jne 0x1400c14ba
mov dword [sym.ProcessJacker.exe_WindowsVersion], 0x64
jmp 0x1400c14d3
jbe 0x1400c14c6
mov dword [sym.ProcessJacker.exe_WindowsVersion], 0x7fffffff
jmp 0x1400c14d3
cmp dword [sym.ProcessJacker.exe_WindowsVersion], 0x3c
jb 0x1400c13f6
mov dword [sym.ProcessJacker.exe_ProcessQueryAccess], 0x1000
mov dword [sym.ProcessJacker.exe_ProcessAllAccess], 0x1f1fff
mov dword [sym.ProcessJacker.exe_ThreadQueryAccess], 0x800
mov dword [sym.ProcessJacker.exe_ThreadSetAccess], 0x400
mov dword [sym.ProcessJacker.exe_ThreadAllAccess], 0x1f0fff
add rsp, 0x148
ret
Function at 0x1400c21f0
Capabilities:
Enumerate services

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x20], rbp
push rsi
push rdi
push r12
push r14
push r15
sub rsp, 0x50
mov r14, r9
mov ebp, r8d
mov ebx, edx
mov r15, rcx
test edx, edx
jne 0x1400c2229
cmp dword [sym.ProcessJacker.exe_WindowsVersion], 0x64
mov ebx, 0x3b
mov eax, 0x1ff
cmovae ebx, eax
mov edi, dword [0x140155c48]
mov eax, 3
mov rcx, qword [sym.ProcessJacker.exe_PhHeapHandle]
test r8d, r8d
mov r8d, edi
cmove ebp, eax
lea edx, [rax + 1]
call qword [sym.imp.ntdll.dll_RtlAllocateHeap]
xor r12d, r12d
mov r9d, ebp
mov qword [rsp + 0x48], r12
mov rsi, rax
mov qword [rsp + 0x40], r12
lea rax, [rsp + 0x90]
mov qword [rsp + 0x38], rax
mov r8d, ebx
lea rax, [rsp + 0x88]
xor edx, edx
mov qword [rsp + 0x30], rax
mov rcx, r15
mov dword [rsp + 0x28], edi
mov qword [rsp + 0x20], rsi
call qword [sym.imp.ADVAPI32.dll_EnumServicesStatusExW]
test eax, eax
jne 0x1400c232f
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xea
jne 0x1400c2319
mov rcx, qword [sym.ProcessJacker.exe_PhHeapHandle]
mov r8, rsi
xor edx, edx
call qword [sym.imp.ntdll.dll_RtlFreeHeap]
add edi, dword [rsp + 0x88]
lea edx, [r12 + 4]
mov rcx, qword [sym.ProcessJacker.exe_PhHeapHandle]
mov r8d, edi
call qword [sym.imp.ntdll.dll_RtlAllocateHeap]
mov qword [rsp + 0x48], r12
mov r9d, ebp
mov rsi, rax
mov qword [rsp + 0x40], r12
lea rax, [rsp + 0x90]
mov r8d, ebx
mov qword [rsp + 0x38], rax
xor edx, edx
lea rax, [rsp + 0x88]
mov rcx, r15
mov qword [rsp + 0x30], rax
mov dword [rsp + 0x28], edi
mov qword [rsp + 0x20], rsi
call qword [sym.imp.ADVAPI32.dll_EnumServicesStatusExW]
test eax, eax
jne 0x1400c232f
mov rcx, qword [sym.ProcessJacker.exe_PhHeapHandle]
mov r8, rsi
xor edx, edx
call qword [sym.imp.ntdll.dll_RtlFreeHeap]
xor eax, eax
jmp 0x1400c2351
mov eax, dword [0x140155c48]
cmp edi, 0x20000
cmovbe eax, edi
mov dword [0x140155c48], eax
mov eax, dword [rsp + 0x90]
mov dword [r14], eax
mov rax, rsi
lea r11, [rsp + 0x50]
mov rbx, qword [r11 + 0x30]
mov rbp, qword [r11 + 0x48]
mov rsp, r11
pop r15
pop r14
pop r12
pop rdi
pop rsi
ret

Function at 0x1400c2640
Capabilities:
Modify service

Disassembly:
sub rsp, 0x28
movzx eax, dl
lea r8, [rsp + 0x38]
mov edx, 3
mov dword [rsp + 0x38], eax
call qword [sym.imp.ADVAPI32.dll_ChangeServiceConfig2W]
test eax, eax
setne al
add rsp, 0x28
ret

Function at 0x1400c35a0
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], 1
mov qword [r11 - 0x28], rax
mov qword [r11 - 0x30], rdx
mov qword [r11 - 0x38], rdx
mov qword [r11 + 0x18], rdx
or rdx, 0xffffffffffffffff
call qword [sym.imp.ntdll.dll_NtMapViewOfSection]
test eax, eax
js 0x1400c3616
mov rdx, qword [rsp + 0x70]
mov r8, rbx
or rcx, 0xffffffffffffffff
call sym.ProcessJacker.exe_PhGetProcessMappedFileName
mov rdx, qword [rsp + 0x70]
or rcx, 0xffffffffffffffff
mov ebx, eax
call qword [sym.imp.ntdll.dll_NtUnmapViewOfSection]
mov eax, ebx
add rsp, 0x50
pop rbx
ret
Function at 0x1400c5170
Capabilities:
Create thread

Disassembly:
mov qword [rsp + 0x20], rbp
push rdi
push r14
push r15
sub rsp, 0x60
cmp qword [rcx + 0x20], 0
mov rbp, r9
mov r15, r8
mov rdi, rcx
jne 0x1400c51b3
mov r9d, 1
mov byte [rsp + 0x20], 0
xor r8d, r8d
mov edx, 0x1f0003
add rcx, 0x20
call qword [sym.imp.ntdll.dll_NtCreateEvent]
test eax, eax
js 0x1400c52eb
cmp qword [rdi + 0x28], 0
mov qword [rsp + 0x88], rsi
jne 0x1400c51e7
mov r9d, 1
mov byte [rsp + 0x20], 0
xor r8d, r8d
lea rcx, [rdi + 0x28]
mov edx, 0x1f0003
call qword [sym.imp.ntdll.dll_NtCreateEvent]
test eax, eax
js 0x1400c52e3
mov qword [rsp + 0x80], rbx
lea rbx, [rdi + 0x30]
mov qword [rsp + 0x90], r12
xor r12d, r12d
cmp qword [rbx], r12
jne 0x1400c526a
mov rcx, qword [rdi + 0x20]
call qword [sym.imp.ntdll.dll_NtClearEvent]
mov rcx, qword [rdi + 0x28]
call qword [sym.imp.ntdll.dll_NtClearEvent]
lea rax, [rsp + 0x50]
xor r9d, r9d
mov qword [rsp + 0x48], rax
xor r8d, r8d
mov qword [rsp + 0x40], rbx
lea rax, [0x1400c5300]
mov qword [rsp + 0x38], rdi
xor edx, edx
mov qword [rsp + 0x30], rax
or rcx, 0xffffffffffffffff
mov qword [rsp + 0x28], 0x8000
mov qword [rsp + 0x20], r12
call qword [sym.imp.ntdll.dll_RtlCreateUserThread]
test eax, eax
js 0x1400c52d3
mov rcx, qword [rdi + 0x28]
xor r8d, r8d
xor edx, edx
call qword [sym.imp.ntdll.dll_NtWaitForSingleObject]
mov rcx, qword [rdi + 0x20]
lea rax, [0x1400c5350]
xor edx, edx
mov qword [rdi + 0x10], rax
mov qword [rdi + 0x18], r15
call qword [sym.imp.ntdll.dll_NtSetEvent]
mov rcx, qword [rdi + 0x28]
mov r8, rbp
xor edx, edx
call qword [sym.imp.ntdll.dll_NtWaitForSingleObject]
mov esi, eax
mov qword [rdi + 0x10], r12
lock or dword [rsp], r12d
mov qword [rdi + 0x18], r12
test eax, eax
je 0x1400c52d1
mov rcx, qword [rbx]
mov esi, 0xc0000001
mov edx, esi
call qword [sym.imp.ntdll.dll_NtTerminateThread]
mov rcx, qword [rbx]
xor r8d, r8d
xor edx, edx
call qword [sym.imp.ntdll.dll_NtWaitForSingleObject]
mov rcx, qword [rbx]
call qword [sym.imp.ntdll.dll_NtClose]
mov qword [rbx], r12
mov eax, esi
mov rbx, qword [rsp + 0x80]
mov r12, qword [rsp + 0x90]
mov rsi, qword [rsp + 0x88]
mov rbp, qword [rsp + 0x98]
add rsp, 0x60
pop r15
pop r14
pop rdi
ret
Function at 0x1400c5e70
Capabilities:
Get graphical window text

Disassembly:
mov qword [rsp + 0x18], rbx
push rsi
push rdi
push r14
sub rsp, 0x60
mov rsi, r8
mov ebx, edx
mov r14, rcx
test dl, 1
je 0x1400c5f5d
test dl, 2
je 0x1400c5eb7
mov r8d, 0x20
lea rdx, [rsp + 0x20]
call qword [sym.imp.USER32.dll_InternalGetWindowText]
mov edi, eax
mov rbx, qword [rsp + 0x90]
add rsp, 0x60
pop r14
pop rdi
pop rsi
ret
mov rbx, qword [0x14015e0c8]
mov edx, 0x212
mov rcx, rbx
call fcn.1400ae820
lock inc dword [rbx + 4]
mov dword [rax + 8], 1
movzx ecx, byte [rbx + 2]
lea rbx, [rax + 0x10]
mov word [rax], cx
lea rax, [rbx + 0x10]
xor ecx, ecx
mov qword [rbx + 8], rax
mov qword [rbx], 0x200
mov word [rax + 0x200], cx
mov rcx, r14
mov r8d, dword [rbx]
mov rdx, qword [rbx + 8]
shr r8d, 1
inc r8d
call qword [sym.imp.USER32.dll_InternalGetWindowText]
mov edi, eax
mov eax, eax
add rax, rax
mov qword [rbx], rax
test rsi, rsi
je 0x1400c5f34
mov qword [rsi], rbx
mov eax, edi
mov rbx, qword [rsp + 0x90]
add rsp, 0x60
pop r14
pop rdi
pop rsi
ret
lea rcx, [rbx - 0x10]
or eax, 0xffffffff
lock xadd dword [rcx + 8], eax
cmp eax, 1
jne 0x1400c5f4a
call fcn.1400ae900
mov eax, edi
mov rbx, qword [rsp + 0x90]
add rsp, 0x60
pop r14
pop rdi
pop rsi
ret
mov qword [rsp + 0x80], rbp
call qword [sym.imp.USER32.dll_GetWindowTextLengthW]
mov ebp, eax
test eax, eax
je 0x1400c6020
test bl, 2
jne 0x1400c6020
mov rbx, qword [0x14015e0c8]
mov edi, ebp
add rdi, rdi
mov rcx, rbx
lea rdx, [rdi + 0x12]
call fcn.1400ae820
lock inc dword [rbx + 4]
mov dword [rax + 8], 1
movzx ecx, byte [rbx + 2]
lea rbx, [rax + 0x10]
mov word [rax], cx
lea rax, [rbx + 0x10]
xor ecx, ecx
mov qword [rbx + 8], rax
mov qword [rbx], rdi
mov word [rax + rdi], cx
mov rcx, r14
mov r8d, dword [rbx]
mov rdx, qword [rbx + 8]
shr r8d, 1
inc r8d
call qword [sym.imp.USER32.dll_GetWindowTextW]
test eax, eax
je 0x1400c5ff9
test rsi, rsi
je 0x1400c5fe1
mov qword [rsi], rbx
jmp 0x1400c602d
lea rcx, [rbx - 0x10]
or eax, 0xffffffff
lock xadd dword [rcx + 8], eax
cmp eax, 1
jne 0x1400c602d
call fcn.1400ae900
jmp 0x1400c602d
test rsi, rsi
je 0x1400c6006
call sym.ProcessJacker.exe_PhReferenceEmptyString
mov qword [rsi], rax
lea rcx, [rbx - 0x10]
or eax, 0xffffffff
lock xadd dword [rcx + 8], eax
cmp eax, 1
jne 0x1400c601c
call fcn.1400ae900
xor eax, eax
jmp 0x1400c602f
test rsi, rsi
je 0x1400c602d
call sym.ProcessJacker.exe_PhReferenceEmptyString
mov qword [rsi], rax
mov eax, ebp
mov rbp, qword [rsp + 0x80]
mov rbx, qword [rsp + 0x90]
add rsp, 0x60
pop r14
pop rdi
pop rsi
ret
Function at 0x1400c6da0
Capabilities:
Get file system object information

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rsi
push rdi
sub rsp, 0x2f0
movzx esi, r8b
mov rdi, rdx
mov rbp, rcx
test rdx, rdx
je 0x1400c6e75
movzx eax, byte [rdx]
xor al, 0xe
test al, 0x1f
jne 0x1400c6e75
lea rdx, str..exe
mov rcx, rdi
call fcn.1400e4d4c
test eax, eax
jne 0x1400c6e75
xor ebx, ebx
mov qword [rsp + 0x318], rbx
test rbp, rbp
je 0x1400c6e34
test sil, sil
mov dword [rsp + 0x20], 1
lea r9, [rsp + 0x318]
mov rcx, rbp
cmovne r9, rbx
lea r8, [rsp + 0x318]
cmove r8, rbx
xor edx, edx
call qword [sym.imp.SHELL32.dll_ExtractIconExW]
mov rax, qword [rsp + 0x318]
test rax, rax
jne 0x1400c6f1b
test sil, sil
lea rdx, [rsp + 0x318]
lea rcx, [rsp + 0x318]
cmove rdx, rbx
cmovne rcx, rbx
call sym.ProcessJacker.exe_PhGetStockApplicationIcon
mov rax, qword [rsp + 0x318]
test rax, rax
je 0x1400c6f1b
mov rdx, rax
xor ecx, ecx
call qword [sym.imp.SHELL32.dll_DuplicateIcon]
jmp 0x1400c6f1b
xor ebx, ebx
mov qword [rsp + 0x310], r14
test sil, sil
mov qword [rsp + 0x318], rbx
mov r14d, ebx
sete r14b
test rbp, rbp
je 0x1400c6ed5
mov eax, r14d
lea r8, [rsp + 0x30]
bts eax, 8
mov r9d, 0x2b8
xor edx, edx
mov dword [rsp + 0x20], eax
mov rcx, rbp
call qword [sym.imp.SHELL32.dll_SHGetFileInfoW]
mov rbx, qword [rsp + 0x318]
test rax, rax
cmovne rbx, qword [rsp + 0x30]
mov qword [rsp + 0x318], rbx
test rbx, rbx
jne 0x1400c6f10
test rdi, rdi
je 0x1400c6f10
or r14d, 0x110
lea r8, [rsp + 0x30]
mov r9d, 0x2b8
mov dword [rsp + 0x20], r14d
mov edx, 0x80
mov rcx, rdi
call qword [sym.imp.SHELL32.dll_SHGetFileInfoW]
mov rbx, qword [rsp + 0x318]
test rax, rax
cmovne rbx, qword [rsp + 0x30]
mov r14, qword [rsp + 0x310]
mov rax, rbx
mov rbx, qword [rsp + 0x320]
add rsp, 0x2f0
pop rdi
pop rsi
pop rbp
ret

Function at 0x1400c6f30
Capabilities:
Open clipboard
Write clipboard data

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
mov rdi, rdx
mov rsi, rcx
mov rdx, qword [rdx]
mov ecx, 2
add rdx, 2
call qword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov rcx, rax
mov rbp, rax
call qword [sym.imp.KERNEL32.dll_GlobalLock]
mov r8, qword [rdi]
mov rcx, rax
mov rdx, qword [rdi + 8]
mov rbx, rax
call fcn.1400e3970
mov rcx, qword [rdi]
xor eax, eax
mov word [rbx + rcx], ax
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GlobalUnlock]
mov rcx, rsi
call qword [sym.imp.USER32.dll_OpenClipboard]
test eax, eax
je 0x1400c6fbe
call qword [sym.imp.USER32.dll_EmptyClipboard]
test eax, eax
je 0x1400c6fbe
mov rdx, rbp
mov ecx, 0xd
call qword [sym.imp.USER32.dll_SetClipboardData]
test rax, rax
je 0x1400c6fbe
call qword [sym.imp.USER32.dll_CloseClipboard]
jmp 0x1400c6fc7
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_GlobalFree]
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret
Function at 0x1400c6fe0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rsi
push r14
sub rsp, 0x30
mov rsi, r8
mov r14, rcx
mov rcx, rsi
mov r8d, 5
mov rdx, r9
call qword [sym.imp.KERNEL32.dll_FindResourceW]
mov rbx, rax
test rax, rax
jne 0x1400c7021
mov rbx, qword [rsp + 0x50]
mov rsi, qword [rsp + 0x58]
add rsp, 0x30
pop r14
ret
mov rdx, rax
mov qword [rsp + 0x48], rdi
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_SizeofResource]
mov edi, eax
test eax, eax
je 0x1400c7049
mov rdx, rbx
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_LoadResource]
test rax, rax
jne 0x1400c7050
xor eax, eax
jmp 0x1400c70e4
mov rcx, rax
mov qword [rsp + 0x40], rbp
call qword [sym.imp.KERNEL32.dll_LockResource]
mov rbp, rax
test rax, rax
je 0x1400c70df
mov rcx, qword [sym.ProcessJacker.exe_PhHeapHandle]
mov r8, rdi
mov edx, 4
mov rbx, rdi
call qword [sym.imp.ntdll.dll_RtlAllocateHeap]
mov r8, rbx
mov rdx, rbp
mov rcx, rax
mov rdi, rax
call fcn.1400e3970
mov eax, 0xffff
cmp word [rdi + 2], ax
jne 0x1400c70a3
mov dword [rdi + 0xc], 0x40000448
jmp 0x1400c70a9
mov dword [rdi], 0x40000448
mov rax, qword [rsp + 0x68]
mov r8, r14
mov r9, qword [rsp + 0x60]
mov rdx, rdi
mov rcx, rsi
mov qword [rsp + 0x20], rax
call qword [sym.imp.USER32.dll_CreateDialogIndirectParamW]
mov rcx, qword [sym.ProcessJacker.exe_PhHeapHandle]
mov r8, rdi
xor edx, edx
mov rbx, rax
call qword [sym.imp.ntdll.dll_RtlFreeHeap]
mov rax, rbx
mov rbp, qword [rsp + 0x40]
mov rdi, qword [rsp + 0x48]
mov rbx, qword [rsp + 0x50]
mov rsi, qword [rsp + 0x58]
add rsp, 0x30
pop r14
ret
Function at 0x1400cc630
Capabilities:
Get user security identifier

Disassembly:
push rsi
push r14
push r15
sub rsp, 0x50
cmp qword [rcx], 0xfffe
mov r14, r9
movzx eax, word [rcx]
mov rsi, r8
mov word [rsp + 0x38], ax
mov r15, rdx
mov word [rsp + 0x3a], ax
mov rax, qword [rcx + 8]
mov qword [rsp + 0x40], rax
jbe 0x1400cc671
mov eax, 0xc0000106
add rsp, 0x50
pop r15
pop r14
pop rsi
ret
mov qword [rsp + 0x80], rbp
call fcn.1400cc350
xor ecx, ecx
lea r9, [rsp + 0x38]
mov qword [rsp + 0x30], rcx
xor edx, edx
mov qword [rsp + 0x70], rcx
lea rcx, [rsp + 0x70]
mov qword [rsp + 0x28], rcx
lea rcx, [rsp + 0x30]
mov qword [rsp + 0x20], rcx
mov rcx, rax
lea r8d, [rdx + 1]
call qword [sym.imp.ADVAPI32.dll_LsaLookupNames2]
mov rcx, qword [rsp + 0x70]
mov ebp, eax
test eax, eax
js 0x1400cc777
mov edx, dword [rcx]
sub edx, 7
cmp edx, 1
jbe 0x1400cc772
test r15, r15
je 0x1400cc72e
mov rcx, qword [rcx + 8]
mov qword [rsp + 0x78], rbx
mov qword [rsp + 0x88], rdi
call qword [sym.imp.ntdll.dll_RtlLengthSid]
mov rcx, qword [sym.ProcessJacker.exe_PhHeapHandle]
mov edx, 4
mov r8d, eax
mov ebx, eax
call qword [sym.imp.ntdll.dll_RtlAllocateHeap]
mov rdx, qword [rsp + 0x70]
mov r8d, ebx
mov rcx, rax
mov rdi, rax
mov rdx, qword [rdx + 8]
call fcn.1400e3970
mov rcx, qword [rsp + 0x70]
mov rbx, qword [rsp + 0x78]
mov qword [r15], rdi
mov rdi, qword [rsp + 0x88]
test rsi, rsi
je 0x1400cc766
movsxd rax, dword [rcx + 0x10]
test eax, eax
js 0x1400cc759
lea r8, [rax + rax*2]
mov rax, qword [rsp + 0x30]
mov rcx, qword [rax + 8]
movzx edx, word [rcx + r8*8]
mov rcx, qword [rcx + r8*8 + 8]
call sym.ProcessJacker.exe_PhCreateStringEx
jmp 0x1400cc75e
call sym.ProcessJacker.exe_PhReferenceEmptyString
mov rcx, qword [rsp + 0x70]
mov qword [rsi], rax
test r14, r14
je 0x1400cc777
mov eax, dword [rcx]
mov dword [r14], eax
jmp 0x1400cc777
mov ebp, 0xc0000073
mov rax, qword [rsp + 0x30]
test rax, rax
je 0x1400cc78f
mov rcx, rax
call qword [sym.imp.ADVAPI32.dll_LsaFreeMemory]
mov rcx, qword [rsp + 0x70]
test rcx, rcx
je 0x1400cc79a
call qword [sym.imp.ADVAPI32.dll_LsaFreeMemory]
mov eax, ebp
mov rbp, qword [rsp + 0x80]
add rsp, 0x50
pop r15
pop r14
pop rsi
ret
Function at 0x1400d25d0
Capabilities:
Open clipboard
Read clipboard data

Disassembly:
push rbx
push r14
sub rsp, 0x28
mov rbx, rdx
mov r14, rcx
call qword [sym.imp.USER32.dll_OpenClipboard]
test eax, eax
je 0x1400d273a
lea rcx, str.BinaryData
mov qword [rsp + 0x40], 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 0x1400d2623
lea ecx, [rax + 1]
call qword [sym.imp.USER32.dll_GetClipboardData]
mov rbp, rax
test rax, rax
je 0x1400d272f
mov qword [rsp + 0x48], rsi
mov rcx, rbp
mov qword [rsp + 0x50], rdi
mov qword [rsp + 0x58], r12
mov qword [rsp + 0x20], r15
call qword [sym.imp.KERNEL32.dll_GlobalLock]
mov rcx, rbp
mov r12, rax
call qword [sym.imp.KERNEL32.dll_GlobalSize]
mov ecx, dword [rbx + 0x1c]
mov rsi, rax
mov edx, dword [rbx + 0x20]
mov r15d, dword [rbx + 0x14]
cmp ecx, edx
jle 0x1400d2663
mov dword [rbx + 0x20], ecx
mov dword [rbx + 0x1c], edx
cmp byte [rbx + 0x30], 0
mov edi, dword [rbx + 0x1c]
je 0x1400d26cb
cmp edi, 0xffffffff
jne 0x1400d2694
cmp dword [rbx + 0x18], 3
jne 0x1400d267e
lea eax, [r15 + 1]
mov dword [rbx + 0x14], eax
mov edi, dword [rbx + 0x14]
mov r9d, esi
mov r8d, edi
mov rdx, rbx
mov rcx, r14
call fcn.1400d2840
jmp 0x1400d26ea
mov r9d, dword [rbx + 0x20]
mov r8d, edi
mov rdx, rbx
mov rcx, r14
call fcn.1400d2750
mov r9d, esi
mov r8d, edi
mov rdx, rbx
mov rcx, r14
call fcn.1400d2840
or r9d, 0xffffffff
mov rdx, rbx
or r8d, r9d
mov rcx, r14
call fcn.1400d2220
jmp 0x1400d26ea
cmp edi, 0xffffffff
jne 0x1400d26e0
cmp dword [rbx + 0x18], 3
jne 0x1400d26dd
lea eax, [r15 + 1]
mov dword [rbx + 0x14], eax
mov edi, dword [rbx + 0x14]
mov eax, dword [rbx + 8]
sub eax, edi
cmp esi, eax
cmova esi, eax
mov ecx, edi
mov rdx, r12
add rcx, qword [rbx]
mov r8d, esi
call fcn.1400e3970
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_GlobalUnlock]
mov r9d, 0x105
mov dword [rbx + 0x14], r15d
xor r8d, r8d
xor edx, edx
mov rcx, r14
call qword [sym.imp.USER32.dll_RedrawWindow]
mov r15, qword [rsp + 0x20]
mov r12, qword [rsp + 0x58]
mov rdi, qword [rsp + 0x50]
mov rsi, qword [rsp + 0x48]
call qword [sym.imp.USER32.dll_CloseClipboard]
mov rbp, qword [rsp + 0x40]
add rsp, 0x28
pop r14
pop rbx
ret
Function at 0x1400ded20
Capabilities:
Enumerate pe sections
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], rdx
mov qword [rcx + 8], r8
mov r8d, 0x40
call fcn.1400defc0
nop
mov eax, 0x5a4d
cmp word [rdi], ax
je 0x1400ded5f
mov eax, 0xc000012f
jmp 0x1400dedf7
mov eax, dword [rdi + 0x3c]
test eax, eax
jne 0x1400ded70
mov eax, 0xc000007b
jmp 0x1400dedf7
cmp eax, 0x10000000
jae 0x1400ded66
cmp rax, rsi
jae 0x1400ded66
lea rdx, [rax + rdi]
mov qword [rbx + 0x10], rdx
mov r8d, 0x18
mov rcx, rbx
call fcn.1400defc0
mov rdx, qword [rbx + 0x10]
movzx eax, word [rdx + 0x14]
add eax, 0x18
movsxd r8, eax
movzx eax, word [rdx + 6]
lea rcx, [rax + rax*4]
lea r8, [r8 + rcx*8]
mov rcx, rbx
call fcn.1400defc0
nop
mov rcx, qword [rbx + 0x10]
cmp dword [rcx], 0x4550
jne 0x1400ded66
movzx eax, word [rcx + 0x18]
mov word [rbx + 0x28], ax
mov edx, 0x10b
sub ax, dx
mov edx, 0xfeff
test dx, ax
jne 0x1400ded66
movzx eax, word [rcx + 6]
mov dword [rbx + 0x18], eax
movzx eax, word [rcx + 0x14]
add rcx, 0x18
add rcx, rax
mov qword [rbx + 0x20], rcx
xor eax, eax
jmp 0x1400dedf7
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret
Function at 0x1400dee10
Capabilities:
Get file attributes
Map section object

Disassembly:
mov qword [rsp + 0x10], rdx
push rbp
push rsi
sub rsp, 0x98
xor ebp, ebp
mov rsi, r9
mov qword [rsp + 0x50], rbp
mov qword [rsp + 0xb0], rbp
test rcx, rcx
jne 0x1400dee44
mov eax, 0xc0000030
add rsp, 0x98
pop rsi
pop rbp
ret
mov qword [rsp + 0x38], rbp
mov rdx, rcx
mov dword [rsp + 0x30], 0x60
lea rcx, [rsp + 0x50]
mov dword [rsp + 0x28], 1
xor r9d, r9d
mov r8d, 0x1000a1
mov dword [rsp + 0x20], 1
call sym.ProcessJacker.exe_PhCreateFileWin32Ex
test eax, eax
js 0x1400defb1
mov qword [rsp + 0xc0], rbx
lea r8, [rsp + 0x78]
mov qword [rsp + 0x90], rdi
lea rdx, [rsp + 0x68]
mov rdi, qword [rsp + 0x50]
mov r9d, 0x18
mov rcx, rdi
mov dword [rsp + 0x20], 5
call qword [sym.imp.ntdll.dll_NtQueryInformationFile]
mov ecx, eax
mov ebx, eax
test eax, eax
js 0x1400deecd
mov rax, qword [rsp + 0x80]
mov qword [rsp + 0xb8], rax
test ecx, ecx
js 0x1400def83
mov qword [rsp + 0x30], rdi
lea r9, [rsp + 0xb8]
mov dword [rsp + 0x28], 0x8000000
lea rcx, [rsp + 0xb0]
xor r8d, r8d
mov dword [rsp + 0x20], 0x20
mov edx, 0xf001f
call qword [sym.imp.ntdll.dll_NtCreateSection]
mov ebx, eax
test eax, eax
js 0x1400def83
mov rax, qword [rsp + 0xb8]
lea r8, [rsp + 0x58]
mov rcx, qword [rsp + 0xb0]
xor r9d, r9d
mov dword [rsp + 0x48], 0x20
or rdx, 0xffffffffffffffff
mov dword [rsp + 0x40], ebp
mov dword [rsp + 0x38], 1
mov qword [rsp + 0x60], rax
lea rax, [rsp + 0x60]
mov qword [rsp + 0x30], rax
mov qword [rsp + 0x28], rbp
mov qword [rsp + 0x20], rbp
mov qword [rsp + 0x58], rbp
call qword [sym.imp.ntdll.dll_NtMapViewOfSection]
mov ebx, eax
test eax, eax
js 0x1400def83
mov rax, qword [rsp + 0x58]
mov rdx, qword [rsp + 0xd0]
mov qword [rsi], rax
mov rax, qword [rsp + 0xb8]
mov qword [rdx], rax
mov rcx, qword [rsp + 0xb0]
test rcx, rcx
je 0x1400def96
call qword [sym.imp.ntdll.dll_NtClose]
mov rcx, rdi
call qword [sym.imp.ntdll.dll_NtClose]
mov rdi, qword [rsp + 0x90]
mov eax, ebx
mov rbx, qword [rsp + 0xc0]
add rsp, 0x98
pop rsi
pop rbp
ret