joyce8/EMBER2024-capa huggingface dataset:
Function at 0x180128b40
Capabilities:
Query or enumerate registry key

Disassembly:
mov qword [rsp + 8], rcx
push rdi
sub rsp, 0xe0
lea rdi, [rsp + 0x30]
mov ecx, 0x2c
mov eax, 0xcccccccc
rep stosd dword [rdi], eax
mov rcx, qword [rsp + 0xf0]
mov rax, qword [0x1805a6200]
xor rax, rsp
mov qword [rsp + 0xd0], rax
mov rax, qword [rsp + 0xf0]
mov eax, dword [rax + 0xe0]
and eax, 4
test eax, eax
jne 0x180128cc2
mov rax, qword [rsp + 0xf0]
mov rax, qword [rax + 0x58]
mov rax, qword [rax + 0x10]
mov rdx, rax
lea rcx, [0x18059f528]
call sym.ProcessMonitor.dll_PhConcatStringRef2
mov qword [rsp + 0x48], rax
mov rax, qword [rsp + 0x48]
mov dword [rsp + 0x20], 0
mov r9, rax
mov r8, 0xfffffffffffffffd
mov edx, 1
lea rcx, [rsp + 0x38]
call sym.ProcessMonitor.dll_PhOpenKey
test eax, eax
jl 0x180128c99
lea rax, [rsp + 0x68]
mov rdi, rax
xor eax, eax
mov ecx, 0x18
rep stosb byte [rdi], al
mov dword [rsp + 0x94], 0
lea rax, [rsp + 0x94]
mov qword [rsp + 0x20], rax
mov r9d, 0x10
lea r8, [rsp + 0x68]
xor edx, edx
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.ntdll.dll_NtQueryKey]
mov dword [rsp + 0x50], eax
cmp dword [rsp + 0x50], 0
je 0x180128c39
cmp dword [rsp + 0x50], 0x80000005
jne 0x180128c4f
mov rax, qword [rsp + 0xf0]
mov rcx, qword [rsp + 0x68]
mov qword [rax + 0xc8], rcx
jmp 0x180128c8e
lea r8, [rsp + 0xb8]
xor edx, edx
mov rcx, qword [rsp + 0x38]
call sym.ProcessMonitor.dll_PhQueryKey
test eax, eax
jl 0x180128c8e
mov rax, qword [rsp + 0xb8]
mov rax, qword [rax]
mov rcx, qword [rsp + 0xf0]
mov qword [rcx + 0xc8], rax
mov rcx, qword [rsp + 0xb8]
call sym.ProcessMonitor.dll_PhFree
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.ntdll.dll_NtClose]
mov rcx, qword [rsp + 0x48]
call sym.ProcessMonitor.dll_PhDereferenceObject
mov rax, qword [rsp + 0xf0]
mov eax, dword [rax + 0xe0]
or eax, 4
mov rcx, qword [rsp + 0xf0]
mov dword [rcx + 0xe0], eax
mov rcx, rsp
lea rdx, [0x18049f920]
call fcn.180014e20
mov rcx, qword [rsp + 0xd0]
xor rcx, rsp
call fcn.18000ce90
add rsp, 0xe0
pop rdi
ret
Function at 0x180132270
Capabilities:
Capture screenshot

Disassembly:
jmp 0x180132270
mov qword [rsp + 8], rcx
push rdi
sub rsp, 0xb0
lea rdi, [rsp + 0x50]
mov ecx, 0x18
mov eax, 0xcccccccc
rep stosd dword [rdi], eax
mov rcx, qword [rsp + 0xc0]
mov rax, qword [0x1805a6200]
xor rax, rsp
mov qword [rsp + 0xa8], rax
mov dword [rsp + 0x78], 0
mov dword [rsp + 0x7c], 0
mov rax, qword [rsp + 0xc0]
mov rcx, qword [rsp + 0xc0]
mov ecx, dword [rcx + 0x28]
mov eax, dword [rax + 0x30]
sub eax, ecx
mov dword [rsp + 0x80], eax
mov rax, qword [rsp + 0xc0]
mov rcx, qword [rsp + 0xc0]
mov ecx, dword [rcx + 0x2c]
mov eax, dword [rax + 0x34]
sub eax, ecx
mov dword [rsp + 0x84], eax
mov rax, qword [rsp + 0xc0]
mov rcx, qword [rax + 0x18]
call qword [sym.imp.USER32.dll_GetDC]
mov qword [rsp + 0x50], rax
cmp qword [rsp + 0x50], 0
jne 0x18013231a
jmp 0x18013248e
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.GDI32.dll_CreateCompatibleDC]
mov qword [rsp + 0x58], rax
mov r8d, dword [rsp + 0x84]
mov edx, dword [rsp + 0x80]
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.GDI32.dll_CreateCompatibleBitmap]
mov qword [rsp + 0x60], rax
mov rdx, qword [rsp + 0x60]
mov rcx, qword [rsp + 0x58]
call qword [sym.imp.GDI32.dll_SelectObject]
mov qword [rsp + 0x68], rax
mov edx, 1
mov rcx, qword [rsp + 0x58]
call qword [sym.imp.GDI32.dll_SetBkMode]
movzx eax, byte [0x1808ecbec]
test eax, eax
je 0x1801323c4
mov eax, dword [0x1808ecb1c]
mov dword [rsp + 0xa0], eax
cmp dword [rsp + 0xa0], 1
je 0x180132394
jmp 0x1801323c2
mov edx, 0x2b2b2b
mov rcx, qword [rsp + 0x58]
call qword [sym.imp.GDI32.dll_SetDCBrushColor]
mov ecx, 0x12
call qword [sym.imp.GDI32.dll_GetStockObject]
mov r8, rax
lea rdx, [rsp + 0x78]
mov rcx, qword [rsp + 0x58]
call qword [sym.imp.USER32.dll_FillRect]
jmp 0x1801323f2
mov edx, 0xffffff
mov rcx, qword [rsp + 0x58]
call qword [sym.imp.GDI32.dll_SetDCBrushColor]
mov ecx, 0x12
call qword [sym.imp.GDI32.dll_GetStockObject]
mov r8, rax
lea rdx, [rsp + 0x78]
mov rcx, qword [rsp + 0x58]
call qword [sym.imp.USER32.dll_FillRect]
mov dword [rsp + 0x40], 0xcc0020
mov dword [rsp + 0x38], 0
mov dword [rsp + 0x30], 0
mov rax, qword [rsp + 0x58]
mov qword [rsp + 0x28], rax
mov rax, qword [rsp + 0xc0]
mov eax, dword [rax + 0x34]
mov dword [rsp + 0x20], eax
mov rax, qword [rsp + 0xc0]
mov r9d, dword [rax + 0x30]
mov rax, qword [rsp + 0xc0]
mov r8d, dword [rax + 0x2c]
mov rax, qword [rsp + 0xc0]
mov edx, dword [rax + 0x28]
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.GDI32.dll_BitBlt]
mov rdx, qword [rsp + 0x68]
mov rcx, qword [rsp + 0x58]
call qword [sym.imp.GDI32.dll_SelectObject]
mov rcx, qword [rsp + 0x60]
call qword [sym.imp.GDI32.dll_DeleteObject]
mov rcx, qword [rsp + 0x58]
call qword [sym.imp.GDI32.dll_DeleteDC]
mov rdx, qword [rsp + 0x50]
mov rax, qword [rsp + 0xc0]
mov rcx, qword [rax + 0x18]
call qword [sym.imp.USER32.dll_ReleaseDC]
mov rcx, rsp
lea rdx, [0x1804a1270]
call fcn.180014e20
mov rcx, qword [rsp + 0xa8]
xor rcx, rsp
call fcn.18000ce90
add rsp, 0xb0
pop rdi
ret
Function at 0x1801338e0
Capabilities:
Hide graphical window

Disassembly:
jmp 0x1801338e0
push rdi
sub rsp, 0x50
cmp dword [0x1808e8898], 0
jne 0x1801338f4
jmp 0x1801339ff
mov dword [0x1808e8898], 0
mov qword [0x1808e88a0], 0
mov dword [rsp + 0x30], 0
jmp 0x18013391d
mov eax, dword [rsp + 0x30]
inc eax
mov dword [rsp + 0x30], eax
mov rax, qword [0x1808e8818]
mov eax, dword [rax]
cmp dword [rsp + 0x30], eax
jae 0x1801339cd
mov eax, dword [rsp + 0x30]
mov rcx, qword [0x1808e8818]
mov rcx, qword [rcx + 8]
mov rax, qword [rcx + rax*8]
mov qword [rsp + 0x38], rax
movsxd rax, dword [0x1808e8898]
mov rcx, qword [rsp + 0x38]
mov rcx, qword [rcx + 0x18]
mov qword [rsp + 0x40], rcx
xor r9d, r9d
mov r8, rax
mov edx, 3
mov rcx, qword [rsp + 0x38]
mov rax, qword [rsp + 0x40]
call qword [0x180c63010]
mov r8d, 3
mov edx, 3
mov rax, qword [rsp + 0x38]
mov rcx, qword [rax + 0x40]
call fcn.18000ed80
xor edx, edx
mov rax, qword [rsp + 0x38]
mov rcx, qword [rax + 0xa8]
call qword [sym.imp.USER32.dll_ShowWindow]
mov rax, qword [rsp + 0x38]
cmp qword [rax + 0xa0], 0
je 0x1801339c8
xor edx, edx
mov rax, qword [rsp + 0x38]
mov rcx, qword [rax + 0xa0]
call qword [sym.imp.USER32.dll_ShowWindow]
jmp 0x180133913
xor edx, edx
mov rcx, qword [0x1808e88a8]
call qword [sym.imp.USER32.dll_ShowWindow]
xor edx, edx
mov rcx, qword [0x1808e88b8]
call qword [sym.imp.USER32.dll_ShowWindow]
xor edx, edx
mov rcx, qword [0x1808e88b0]
call qword [sym.imp.USER32.dll_ShowWindow]
call fcn.180016330
add rsp, 0x50
pop rdi
ret
Function at 0x1801368f0
Capabilities:
Get system information on windows
Make suspicious ntquerysysteminformation call

Disassembly:
jmp 0x1801368f0
push rdi
sub rsp, 0x40
mov qword [rsp + 0x30], 0
mov eax, dword [0x1808e8a10]
imul rax, rax, 0x18
xor r9d, r9d
mov r8d, eax
mov rdx, qword [0x1808e8a18]
mov ecx, 0x17
call qword [sym.imp.ntdll.dll_NtQuerySystemInformation]
test eax, eax
jl 0x18013696a
mov dword [rsp + 0x38], 0
jmp 0x180136939
mov eax, dword [rsp + 0x38]
inc eax
mov dword [rsp + 0x38], eax
mov eax, dword [0x1808e8a10]
cmp dword [rsp + 0x38], eax
jae 0x18013696a
mov eax, dword [rsp + 0x38]
imul rax, rax, 0x18
mov rcx, qword [0x1808e8a18]
mov eax, dword [rcx + rax + 4]
mov rcx, qword [rsp + 0x30]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x30], rax
jmp 0x18013692f
mov eax, dword [0x1808e8a38]
mov ecx, dword [0x1808ed048]
sub ecx, eax
mov eax, ecx
mov dword [0x1808e8a3c], eax
mov eax, dword [0x1808ed048]
mov dword [0x1808e8a38], eax
mov eax, dword [0x1808e8a40]
mov ecx, dword [0x1808ecf08]
sub ecx, eax
mov eax, ecx
mov dword [0x1808e8a44], eax
mov eax, dword [0x1808ecf08]
mov dword [0x1808e8a40], eax
mov rax, qword [0x1808e8a48]
mov rcx, qword [rsp + 0x30]
sub rcx, rax
mov rax, rcx
mov qword [0x1808e8a50], rax
mov rax, qword [rsp + 0x30]
mov qword [0x1808e8a48], rax
mov eax, dword [0x1808e8a58]
mov ecx, dword [0x1808ed054]
sub ecx, eax
mov eax, ecx
mov dword [0x1808e8a5c], eax
mov eax, dword [0x1808ed054]
mov dword [0x1808e8a58], eax
mov eax, dword [0x1808e8a10]
imul rax, rax, 0x18
mov dword [rsp + 0x20], eax
mov r9, qword [0x1808e8a20]
xor r8d, r8d
xor edx, edx
mov ecx, 0xb
call qword [sym.imp.ntdll.dll_NtPowerInformation]
test eax, eax
jge 0x180136a39
mov eax, dword [0x1808e8a10]
imul rax, rax, 0x18
mov r8, rax
xor edx, edx
mov rcx, qword [0x1808e8a20]
call fcn.180013180
cmp qword [0x1808e8a30], 0
je 0x180136a4f
mov rcx, qword [0x1808e8a30]
call sym.ProcessMonitor.dll_PhFree
mov rax, qword [0x1808e8a28]
mov qword [0x1808e8a30], rax
mov qword [0x1808e8a28], 0
lea rcx, [0x1808e8a28]
call fcn.180009ff0
cmp dword [0x1808e8a08], 2
jae 0x180136a8b
mov eax, dword [0x1808e8a08]
inc eax
mov dword [0x1808e8a08], eax
call fcn.180014090
call fcn.180013960
add rsp, 0x40
pop rdi
ret

Function at 0x180137810
Capabilities:
Hide graphical window

Disassembly:
jmp 0x180137810
push rdi
sub rsp, 0x30
movzx eax, byte [0x1808e89f8]
test eax, eax
jne 0x18013782b
mov dword [rsp + 0x24], 1
jmp 0x180137833
mov dword [rsp + 0x24], 0
cmp dword [rsp + 0x24], 0
je 0x180137844
mov dword [rsp + 0x28], 5
jmp 0x18013784c
mov dword [rsp + 0x28], 0
mov edx, dword [rsp + 0x28]
mov rcx, qword [0x1808e89b0]
call qword [sym.imp.USER32.dll_ShowWindow]
mov dword [rsp + 0x20], 0
jmp 0x180137871
mov eax, dword [rsp + 0x20]
inc eax
mov dword [rsp + 0x20], eax
mov eax, dword [0x1808e8a10]
cmp dword [rsp + 0x20], eax
jae 0x1801378b5
movzx eax, byte [0x1808e89f8]
test eax, eax
je 0x180137892
mov dword [rsp + 0x2c], 5
jmp 0x18013789a
mov dword [rsp + 0x2c], 0
mov eax, dword [rsp + 0x20]
mov edx, dword [rsp + 0x2c]
mov rcx, qword [0x1808e89e8]
mov rcx, qword [rcx + rax*8]
call qword [sym.imp.USER32.dll_ShowWindow]
jmp 0x180137867
add rsp, 0x30
pop rdi
ret
Function at 0x180139ba0
Capabilities:
Get system information on windows

Disassembly:
jmp 0x180139ba0
push rbx
push rsi
push rdi
sub rsp, 0x130
lea rdi, [rsp + 0x20]
mov ecx, 0x44
mov eax, 0xcccccccc
rep stosd dword [rdi], eax
mov rax, qword [0x1805a6200]
xor rax, rsp
mov qword [rsp + 0x128], rax
mov qword [rsp + 0x28], 0
xor r9d, r9d
mov r8d, 0x31
lea rdx, [rsp + 0x78]
mov ecx, 0x69
call qword [sym.imp.ntdll.dll_NtQuerySystemInformation]
test eax, eax
jl 0x180139c16
mov dword [rsp + 0x64], 0x30
mov eax, dword [rsp + 0x64]
mov edx, eax
lea rcx, [rsp + 0x78]
call sym.ProcessMonitor.dll_PhZeroExtendToUtf16Ex
mov qword [rsp + 0x28], rax
jmp 0x180139ce1
mov eax, 4
imul rax, rax, 0
lea rax, [rsp + rax + 0xc8]
mov qword [rsp + 0x110], rax
mov eax, 0x80000002
xor ecx, ecx
cpuid
mov r8, qword [rsp + 0x110]
mov dword [r8], eax
mov dword [r8 + 4], ebx
mov dword [r8 + 8], ecx
mov dword [r8 + 0xc], edx
mov eax, 4
imul rax, rax, 4
lea rax, [rsp + rax + 0xc8]
mov qword [rsp + 0x118], rax
mov eax, 0x80000003
xor ecx, ecx
cpuid
mov r8, qword [rsp + 0x118]
mov dword [r8], eax
mov dword [r8 + 4], ebx
mov dword [r8 + 8], ecx
mov dword [r8 + 0xc], edx
mov eax, 4
imul rax, rax, 8
lea rax, [rsp + rax + 0xc8]
mov qword [rsp + 0x120], rax
mov eax, 0x80000004
xor ecx, ecx
cpuid
mov r8, qword [rsp + 0x120]
mov dword [r8], eax
mov dword [r8 + 4], ebx
mov dword [r8 + 8], ecx
mov dword [r8 + 0xc], edx
mov dword [rsp + 0x64], 0x30
mov eax, dword [rsp + 0x64]
mov edx, eax
lea rcx, [rsp + 0xc8]
call sym.ProcessMonitor.dll_PhZeroExtendToUtf16Ex
mov qword [rsp + 0x28], rax
mov rcx, qword [rsp + 0x28]
call fcn.1800160a0
lea rax, [rsp + 0x48]
mov rdi, rax
mov rsi, qword [rsp + 0x28]
mov ecx, 0x10
rep movsb byte [rdi], byte [rsi]
mov r8d, 2
lea rdx, [0x18059f6e0]
lea rcx, [rsp + 0x48]
call sym.ProcessMonitor.dll_PhTrimStringRef
lea rcx, [rsp + 0x48]
call fcn.180006dd0
mov rdx, rax
lea rcx, [rsp + 0x28]
call fcn.180003fd0
mov rax, qword [rsp + 0x28]
mov rdi, rax
mov rcx, rsp
lea rdx, [0x1804a2410]
call fcn.180014e20
mov rax, rdi
mov rcx, qword [rsp + 0x128]
xor rcx, rsp
call fcn.18000ce90
add rsp, 0x130
pop rdi
pop rsi
pop rbx
ret
Function at 0x18013a1d0
Capabilities:
Get system information on windows
Make suspicious ntquerysysteminformation call

Disassembly:
jmp 0x18013a1d0
mov qword [rsp + 8], rcx
push rdi
sub rsp, 0x60
lea rdi, [rsp + 0x20]
mov ecx, 0x10
mov eax, 0xcccccccc
rep stosd dword [rdi], eax
mov rcx, qword [rsp + 0x70]
mov rax, qword [0x1805a6200]
xor rax, rsp
mov qword [rsp + 0x50], rax
mov dword [rsp + 0x34], 0x100
mov eax, dword [rsp + 0x34]
mov ecx, eax
call sym.ProcessMonitor.dll_PhAllocate
mov qword [rsp + 0x28], rax
lea r9, [rsp + 0x34]
mov r8d, dword [rsp + 0x34]
mov rdx, qword [rsp + 0x28]
mov ecx, 0x64
call qword [sym.imp.ntdll.dll_NtQuerySystemInformation]
mov dword [rsp + 0x20], eax
mov dword [rsp + 0x44], 0
cmp dword [rsp + 0x20], 0xc0000004
jne 0x18013a292
cmp dword [rsp + 0x44], 8
jae 0x18013a292
mov rcx, qword [rsp + 0x28]
call sym.ProcessMonitor.dll_PhFree
mov eax, dword [rsp + 0x34]
mov ecx, eax
call sym.ProcessMonitor.dll_PhAllocate
mov qword [rsp + 0x28], rax
lea r9, [rsp + 0x34]
mov r8d, dword [rsp + 0x34]
mov rdx, qword [rsp + 0x28]
mov ecx, 0x64
call qword [sym.imp.ntdll.dll_NtQuerySystemInformation]
mov dword [rsp + 0x20], eax
mov eax, dword [rsp + 0x44]
inc eax
mov dword [rsp + 0x44], eax
jmp 0x18013a23d
cmp dword [rsp + 0x20], 0
jl 0x18013a2a8
mov rax, qword [rsp + 0x70]
mov rcx, qword [rsp + 0x28]
mov qword [rax], rcx
jmp 0x18013a2b2
mov rcx, qword [rsp + 0x28]
call sym.ProcessMonitor.dll_PhFree
mov eax, dword [rsp + 0x20]
mov edi, eax
mov rcx, rsp
lea rdx, [0x1804a2470]
call fcn.180014e20
mov eax, edi
mov rcx, qword [rsp + 0x50]
xor rcx, rsp
call fcn.18000ce90
add rsp, 0x60
pop rdi
ret
Function at 0x18013a2f0
Capabilities:
Get system information on windows
Make suspicious ntquerysysteminformation call

Disassembly:
jmp 0x18013a2f0
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rdi
sub rsp, 0x60
lea rdi, [rsp + 0x20]
mov ecx, 0x10
mov eax, 0xcccccccc
rep stosd dword [rdi], eax
mov rcx, qword [rsp + 0x70]
mov rax, qword [0x1805a6200]
xor rax, rsp
mov qword [rsp + 0x50], rax
mov dword [rsp + 0x34], 0x100
mov eax, dword [rsp + 0x34]
mov ecx, eax
call sym.ProcessMonitor.dll_PhAllocate
mov qword [rsp + 0x28], rax
lea r9, [rsp + 0x34]
mov r8d, dword [rsp + 0x34]
mov rdx, qword [rsp + 0x28]
mov ecx, 0x49
call qword [sym.imp.ntdll.dll_NtQuerySystemInformation]
mov dword [rsp + 0x20], eax
mov dword [rsp + 0x44], 0
cmp dword [rsp + 0x20], 0xc0000004
jne 0x18013a3b7
cmp dword [rsp + 0x44], 8
jae 0x18013a3b7
mov rcx, qword [rsp + 0x28]
call sym.ProcessMonitor.dll_PhFree
mov eax, dword [rsp + 0x34]
mov ecx, eax
call sym.ProcessMonitor.dll_PhAllocate
mov qword [rsp + 0x28], rax
lea r9, [rsp + 0x34]
mov r8d, dword [rsp + 0x34]
mov rdx, qword [rsp + 0x28]
mov ecx, 0x49
call qword [sym.imp.ntdll.dll_NtQuerySystemInformation]
mov dword [rsp + 0x20], eax
mov eax, dword [rsp + 0x44]
inc eax
mov dword [rsp + 0x44], eax
jmp 0x18013a362
cmp dword [rsp + 0x20], 0
jl 0x18013a3d8
mov rax, qword [rsp + 0x70]
mov rcx, qword [rsp + 0x28]
mov qword [rax], rcx
mov rax, qword [rsp + 0x78]
mov ecx, dword [rsp + 0x34]
mov dword [rax], ecx
jmp 0x18013a3e2
mov rcx, qword [rsp + 0x28]
call sym.ProcessMonitor.dll_PhFree
mov eax, dword [rsp + 0x20]
mov edi, eax
mov rcx, rsp
lea rdx, [0x1804a24d0]
call fcn.180014e20
mov eax, edi
mov rcx, qword [rsp + 0x50]
xor rcx, rsp
call fcn.18000ce90
add rsp, 0x60
pop rdi
ret
Function at 0x18013a420
Capabilities:
Get system information on windows

Disassembly:
jmp 0x18013a420
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
mov dword [rsp + 8], ecx
push rdi
sub rsp, 0x70
lea rdi, [rsp + 0x30]
mov ecx, 0x10
mov eax, 0xcccccccc
rep stosd dword [rdi], eax
mov ecx, dword [rsp + 0x80]
mov rax, qword [0x1805a6200]
xor rax, rsp
mov qword [rsp + 0x68], rax
mov eax, dword [rsp + 0x80]
mov dword [rsp + 0x60], eax
cmp dword [rsp + 0x60], 0
je 0x18013a475
cmp dword [rsp + 0x60], 3
je 0x18013a47f
jmp 0x18013a489
mov dword [rsp + 0x34], 0
jmp 0x18013a493
mov dword [rsp + 0x34], 1
jmp 0x18013a493
mov eax, 0xc0000003
jmp 0x18013a5b1
mov eax, dword [rsp + 0x34]
lea rcx, [0x18059f6f0]
mov eax, dword [rcx + rax*4]
mov dword [rsp + 0x44], eax
mov eax, dword [rsp + 0x44]
mov ecx, eax
call sym.ProcessMonitor.dll_PhAllocate
mov qword [rsp + 0x38], rax
lea rax, [rsp + 0x44]
mov qword [rsp + 0x28], rax
mov eax, dword [rsp + 0x44]
mov dword [rsp + 0x20], eax
mov r9, qword [rsp + 0x38]
mov r8d, 4
lea rdx, [rsp + 0x80]
mov ecx, 0x6b
call qword [sym.imp.ntdll.dll_NtQuerySystemInformationEx]
mov dword [rsp + 0x30], eax
mov dword [rsp + 0x54], 0
cmp dword [rsp + 0x30], 0xc0000004
jne 0x18013a55c
cmp dword [rsp + 0x54], 8
jae 0x18013a55c
mov rcx, qword [rsp + 0x38]
call sym.ProcessMonitor.dll_PhFree
mov eax, dword [rsp + 0x44]
mov ecx, eax
call sym.ProcessMonitor.dll_PhAllocate
mov qword [rsp + 0x38], rax
lea rax, [rsp + 0x44]
mov qword [rsp + 0x28], rax
mov eax, dword [rsp + 0x44]
mov dword [rsp + 0x20], eax
mov r9, qword [rsp + 0x38]
mov r8d, 4
lea rdx, [rsp + 0x80]
mov ecx, 0x6b
call qword [sym.imp.ntdll.dll_NtQuerySystemInformationEx]
mov dword [rsp + 0x30], eax
mov eax, dword [rsp + 0x54]
inc eax
mov dword [rsp + 0x54], eax
jmp 0x18013a4f1
cmp dword [rsp + 0x30], 0
jge 0x18013a573
mov rcx, qword [rsp + 0x38]
call sym.ProcessMonitor.dll_PhFree
mov eax, dword [rsp + 0x30]
jmp 0x18013a5b1
cmp dword [rsp + 0x44], 0x100000
ja 0x18013a58f
mov eax, dword [rsp + 0x34]
lea rcx, [0x18059f6f0]
mov edx, dword [rsp + 0x44]
mov dword [rcx + rax*4], edx
mov rax, qword [rsp + 0x88]
mov rcx, qword [rsp + 0x38]
mov qword [rax], rcx
mov rax, qword [rsp + 0x90]
mov ecx, dword [rsp + 0x44]
mov dword [rax], ecx
mov eax, dword [rsp + 0x30]
mov rdi, rax
mov rcx, rsp
lea rdx, [0x1804a2530]
call fcn.180014e20
mov rax, rdi
mov rcx, qword [rsp + 0x68]
xor rcx, rsp
call fcn.18000ce90
add rsp, 0x70
pop rdi
ret
Function at 0x18015f960
Capabilities:
Allocate thread local storage

Disassembly:
jmp 0x18015f960
push rdi
sub rsp, 0x90
lea rdi, [rsp + 0x20]
mov ecx, 0x1c
mov eax, 0xcccccccc
rep stosd dword [rdi], eax
mov rax, qword [0x1805a6200]
xor rax, rsp
mov qword [rsp + 0x80], rax
lea rcx, [0x180c39350]
call fcn.1800192b0
lea rcx, [0x1808e8f20]
call qword [sym.imp.ntdll.dll_RtlInitializeSListHead]
mov r8d, 0x200
mov edx, 0xd0
lea rcx, [0x1808e8f30]
call sym.ProcessMonitor.dll_PhInitializeFreeList
mov r8d, 0x40
xor edx, edx
lea rcx, [rsp + 0x30]
call fcn.180013180
lea rax, [rsp + 0x30]
mov qword [0x1808e8f58], rax
mov eax, 8
imul rax, rax, 0
lea rcx, [0x180c39520]
lea rdx, [rsp + 0x30]
mov qword [rcx + rax], rdx
xor r8d, r8d
xor edx, edx
lea rcx, str.Type
call sym.ProcessMonitor.dll_PhCreateObjectType
mov qword [0x1808e8f58], rax
mov rax, qword [0x1808e8f58]
movzx eax, byte [rax + 2]
mov rcx, qword [0x1808e8f58]
mov word [rcx - 0xa0], ax
mov rax, qword [0x1808e8f58]
mov dword [rax + 4], 1
xor r8d, r8d
xor edx, edx
lea rcx, str.Alloc
call sym.ProcessMonitor.dll_PhCreateObjectType
mov qword [0x1808e8f60], rax
call qword [sym.imp.KERNEL32.dll_TlsAlloc]
mov dword [0x1808e8f78], eax
cmp dword [0x1808e8f78], 0xffffffff
jne 0x18015fa63
xor al, al
jmp 0x18015fa65
mov al, 1
mov rdi, rax
mov rcx, rsp
lea rdx, [0x1804ac0d0]
call fcn.180014e20
mov rax, rdi
mov rcx, qword [rsp + 0x80]
xor rcx, rsp
call fcn.18000ce90
add rsp, 0x90
pop rdi
ret

Function at 0x180160b80
Capabilities:
Get thread local storage value

Disassembly:
jmp 0x180160b80
push rdi
sub rsp, 0x20
mov ecx, dword [0x1808e8f78]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
add rsp, 0x20
pop rdi
ret

Function at 0x180160bc0
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
jmp 0x180160bc0
mov qword [rsp + 8], rcx
push rdi
sub rsp, 0x30
mov rdx, qword [rsp + 0x40]
mov ecx, dword [0x1808e8f78]
call qword [sym.imp.KERNEL32.dll_TlsSetValue]
test eax, eax
jne 0x180160bea
mov ecx, 0xc0000001
call qword [sym.imp.ntdll.dll_RtlRaiseStatus]
mov ecx, dword [0x180c3933c]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov qword [rsp + 0x20], rax
cmp qword [rsp + 0x20], 0
je 0x180160c11
mov rax, qword [rsp + 0x20]
mov rcx, qword [rsp + 0x40]
mov qword [rax + 0x30], rcx
add rsp, 0x30
pop rdi
ret
Function at 0x180160cb0
Capabilities:
Allocate thread local storage

Disassembly:
jmp 0x180160cb0
push rdi
sub rsp, 0x60
lea rdi, [rsp + 0x20]
mov ecx, 0x10
mov eax, 0xcccccccc
rep stosd dword [rdi], eax
mov rax, qword [0x1805a6200]
xor rax, rsp
mov qword [rsp + 0x50], rax
mov ecx, 0xa
call qword [sym.imp.KERNEL32.dll_IsProcessorFeaturePresent]
test eax, eax
je 0x180160cec
mov byte [0x1808e8fc0], 1
xor r8d, r8d
xor edx, edx
lea rcx, str.String
call sym.ProcessMonitor.dll_PhCreateObjectType
mov qword [0x1808e8f98], rax
xor r8d, r8d
xor edx, edx
lea rcx, str.Bytes
call sym.ProcessMonitor.dll_PhCreateObjectType
mov qword [0x1808e8fa0], rax
mov qword [rsp + 0x28], 0x10
mov dword [rsp + 0x30], 0x80
lea r9, [rsp + 0x28]
lea r8, [0x180004ee0]
mov edx, 1
lea rcx, str.List
call sym.ProcessMonitor.dll_PhCreateObjectTypeEx
mov qword [0x1808e8fa8], rax
lea r8, [0x180017e30]
xor edx, edx
lea rcx, str.PointerList
call sym.ProcessMonitor.dll_PhCreateObjectType
mov qword [0x1808e8fb0], rax
mov qword [rsp + 0x28], 0x48
mov dword [rsp + 0x30], 0x40
lea r9, [rsp + 0x28]
lea r8, [0x180011ba0]
mov edx, 1
lea rcx, str.Hashtable
call sym.ProcessMonitor.dll_PhCreateObjectTypeEx
mov qword [0x1808e8fb8], rax
mov r8d, 0x10
mov edx, 0x10
lea rcx, [0x1808e8fd0]
call sym.ProcessMonitor.dll_PhInitializeFreeList
call qword [sym.imp.KERNEL32.dll_TlsAlloc]
mov dword [0x180c3933c], eax
mov al, 1
mov rdi, rax
mov rcx, rsp
lea rdx, [0x1804ac320]
call fcn.180014e20
mov rax, rdi
mov rcx, qword [rsp + 0x50]
xor rcx, rsp
call fcn.18000ce90
add rsp, 0x60
pop rdi
ret

Function at 0x180160e00
Capabilities:
Create thread

Disassembly:
jmp 0x180160e00
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rdi
sub rsp, 0x80
lea rdi, [rsp + 0x50]
mov ecx, 0xc
mov eax, 0xcccccccc
rep stosd dword [rdi], eax
mov rcx, qword [rsp + 0x90]
lea rcx, [0x1808e8fd0]
call sym.ProcessMonitor.dll_PhAllocateFromFreeList
mov qword [rsp + 0x78], rax
mov rax, qword [rsp + 0x78]
mov rcx, qword [rsp + 0x98]
mov qword [rax], rcx
mov rax, qword [rsp + 0x78]
mov rcx, qword [rsp + 0xa0]
mov qword [rax + 8], rcx
mov qword [rsp + 0x48], 0
lea rax, [rsp + 0x68]
mov qword [rsp + 0x40], rax
mov rax, qword [rsp + 0x78]
mov qword [rsp + 0x38], rax
lea rax, [0x18000acc0]
mov qword [rsp + 0x30], rax
mov rax, qword [rsp + 0x90]
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], 0
xor r9d, r9d
xor r8d, r8d
xor edx, edx
mov rcx, 0xffffffffffffffff
call qword [sym.imp.ntdll.dll_RtlCreateUserThread]
mov dword [rsp + 0x50], eax
mov ecx, dword [rsp + 0x50]
call sym.ProcessMonitor.dll_PhNtStatusToDosError
mov ecx, eax
call qword [sym.imp.KERNEL32.dll_SetLastError]
cmp dword [rsp + 0x50], 0
jl 0x180160ee5
lea rax, [0x180c392c0]
lock inc dword [rax]
mov rax, qword [rsp + 0x68]
jmp 0x180160f02
lea rax, [0x180c392c4]
lock inc dword [rax]
mov rdx, qword [rsp + 0x78]
lea rcx, [0x1808e8fd0]
call sym.ProcessMonitor.dll_PhFreeToFreeList
xor eax, eax
mov rdi, rax
mov rcx, rsp
lea rdx, [0x1804ac380]
call fcn.180014e20
mov rax, rdi
add rsp, 0x80
pop rdi
ret