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

Disassembly:
jmp 0x1403ea4f0
mov dword [rsp + 0x18], r8d
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rdi
sub rsp, 0x90
lea rdi, [rsp + 0x50]
mov ecx, 0x10
mov eax, 0xcccccccc
rep stosd dword [rdi], eax
mov rcx, qword [rsp + 0xa0]
mov qword [rsp + 0x88], 0
mov rax, qword [rsp + 0xa0]
mov eax, dword [rax + 8]
and eax, 8
test eax, eax
je 0x1403ea552
mov rax, qword [rsp + 0xa0]
add rax, 0x10
mov qword [rsp + 0x88], rax
mov qword [rsp + 0x40], 0
mov rax, qword [rsp + 0x88]
mov qword [rsp + 0x38], rax
mov eax, dword [rsp + 0xb0]
mov dword [rsp + 0x30], eax
mov rax, qword [rsp + 0xa8]
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x68]
mov qword [rsp + 0x20], rax
xor r9d, r9d
xor r8d, r8d
xor edx, edx
mov rax, qword [rsp + 0xa0]
mov rcx, qword [rax]
call qword [sym.imp.ntdll.dll_NtWriteFile]
mov dword [rsp + 0x50], eax
cmp dword [rsp + 0x50], 0x103
jne 0x1403ea5da
xor r8d, r8d
xor edx, edx
mov rax, qword [rsp + 0xa0]
mov rcx, qword [rax]
call qword [sym.imp.ntdll.dll_NtWaitForSingleObject]
mov dword [rsp + 0x50], eax
cmp dword [rsp + 0x50], 0
jl 0x1403ea5da
mov eax, dword [rsp + 0x68]
mov dword [rsp + 0x50], eax
cmp dword [rsp + 0x50], 0
jl 0x1403ea618
mov rax, qword [rsp + 0xa0]
mov rax, qword [rax + 0x10]
add rax, qword [rsp + 0x70]
mov rcx, qword [rsp + 0xa0]
mov qword [rcx + 0x10], rax
mov rax, qword [rsp + 0xa0]
mov eax, dword [rax + 8]
bts eax, 0x1f
mov rcx, qword [rsp + 0xa0]
mov dword [rcx + 8], eax
mov eax, dword [rsp + 0x50]
mov edi, eax
mov rcx, rsp
lea rdx, [0x14079a090]
call fcn.1402124fd
mov eax, edi
add rsp, 0x90
pop rdi
ret

Function at 0x14020d773
Capabilities:
Set file attributes

Disassembly:
jmp 0x1403fb1c0
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rdi
sub rsp, 0x60
lea rdi, [rsp + 0x30]
mov ecx, 0xc
mov eax, 0xcccccccc
rep stosd dword [rdi], eax
mov rcx, qword [rsp + 0x70]
mov dword [rsp + 0x20], 4
mov r9d, 0x28
mov r8, qword [rsp + 0x78]
lea rdx, [rsp + 0x38]
mov rcx, qword [rsp + 0x70]
call qword [sym.imp.ntdll.dll_NtSetInformationFile]
mov rdi, rax
mov rcx, rsp
lea rdx, [0x1407a16f0]
call fcn.1402124fd
mov rax, rdi
add rsp, 0x60
pop rdi
ret

Function at 0x14020d7b4
Capabilities:
Set thread local storage value

Disassembly:
jmp 0x1403b8380
mov qword [rsp + 0x10], rdx
mov dword [rsp + 8], ecx
push rdi
sub rsp, 0x20
cmp dword [0x14095f7f0], 0xffffffff
jae 0x1403b83b8
cmp dword [rsp + 0x30], 0x40
jae 0x1403b83b8
call fcn.140212854
mov ecx, dword [rsp + 0x30]
mov rdx, qword [rsp + 0x38]
mov qword [rax + rcx*8 + 0x1480], rdx
xor eax, eax
jmp 0x1403b83d4
mov rdx, qword [rsp + 0x38]
mov ecx, dword [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_TlsSetValue]
test eax, eax
je 0x1403b83cf
xor eax, eax
jmp 0x1403b83d4
call fcn.1402107d9
add rsp, 0x20
pop rdi
ret
Function at 0x14020d7f0
Capabilities:
Parse pe header

Disassembly:
jmp 0x14044bed0
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rdi
sub rsp, 0x50
mov rax, qword [rsp + 0x60]
mov rcx, qword [rsp + 0x68]
mov qword [rax + 8], rcx
mov rax, qword [rsp + 0x60]
mov rcx, qword [rsp + 0x70]
mov qword [rax + 0x10], rcx
cmp qword [rsp + 0x70], 0x40
jae 0x14044bf12
mov eax, 0xc000001f
jmp 0x14044c0a1
mov rax, qword [rsp + 0x68]
mov qword [rsp + 0x30], rax
cmp qword [rsp + 0x30], 0
je 0x14044bf2c
cmp qword [rsp + 0x30], 0xffffffffffffffff
jne 0x14044bf36
mov eax, 0xc000000d
jmp 0x14044c0a1
mov rax, qword [rsp + 0x30]
mov qword [rsp + 0x20], rax
mov r8d, 0x40
mov rdx, qword [rsp + 0x20]
mov rcx, qword [rsp + 0x60]
call fcn.14020ef0b
nop
jmp 0x14044bf65
mov rax, qword [rsp + 0x20]
movzx eax, word [rax]
cmp eax, 0x5a4d
je 0x14044bf7e
mov eax, 0xc000012f
jmp 0x14044c0a1
mov rax, qword [rsp + 0x20]
movsxd rax, dword [rax + 0x3c]
mov qword [rsp + 0x38], rax
mov rax, qword [rsp + 0x70]
cmp qword [rsp + 0x38], rax
jae 0x14044bfa3
cmp qword [rsp + 0x38], 0x10000000
jb 0x14044bfad
mov eax, 0xc000007b
jmp 0x14044c0a1
mov rax, qword [rsp + 0x38]
mov rcx, qword [rsp + 0x20]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x28], rax
mov r8d, 0x18
mov rdx, qword [rsp + 0x28]
mov rcx, qword [rsp + 0x60]
call fcn.14020ef0b
mov rax, qword [rsp + 0x28]
movzx eax, word [rax + 0x14]
add eax, 0x18
mov eax, eax
mov rcx, qword [rsp + 0x28]
movzx ecx, word [rcx + 6]
imul rcx, rcx, 0x28
add rax, rcx
mov r8, rax
mov rdx, qword [rsp + 0x28]
mov rcx, qword [rsp + 0x60]
call fcn.14020ef0b
nop
jmp 0x14044c017
mov rax, qword [rsp + 0x28]
cmp dword [rax], 0x4550
je 0x14044c02b
mov eax, 0xc000007b
jmp 0x14044c0a1
mov rax, qword [rsp + 0x60]
mov rcx, qword [rsp + 0x28]
movzx ecx, word [rcx + 0x18]
mov word [rax + 0x30], cx
mov rax, qword [rsp + 0x60]
movzx eax, word [rax + 0x30]
cmp eax, 0x10b
je 0x14044c064
mov rax, qword [rsp + 0x60]
movzx eax, word [rax + 0x30]
cmp eax, 0x20b
je 0x14044c064
mov eax, 0xc000007b
jmp 0x14044c0a1
mov rax, qword [rsp + 0x60]
mov rcx, qword [rsp + 0x28]
mov qword [rax + 0x18], rcx
mov rax, qword [rsp + 0x28]
movzx eax, word [rax + 6]
mov rcx, qword [rsp + 0x60]
mov dword [rcx + 0x20], eax
mov rax, qword [rsp + 0x28]
movzx eax, word [rax + 0x14]
mov rcx, qword [rsp + 0x28]
lea rax, [rcx + rax + 0x18]
mov rcx, qword [rsp + 0x60]
mov qword [rcx + 0x28], rax
xor eax, eax
add rsp, 0x50
pop rdi
ret
Function at 0x14020d90d
Capabilities:
Inspect section memory permissions

Disassembly:
jmp 0x140447930
mov dword [rsp + 8], ecx
push rdi
sub rsp, 0x10
mov dword [rsp], 0
mov eax, dword [rsp + 0x20]
and eax, 1
test eax, eax
jne 0x140447961
mov eax, dword [rsp + 0x20]
and eax, 2
test eax, eax
jne 0x140447961
mov eax, dword [rsp + 0x20]
and eax, 0x10
test eax, eax
je 0x14044796b
mov eax, dword [rsp]
bts eax, 0x13
mov dword [rsp], eax
mov eax, dword [rsp + 0x20]
and eax, 4
test eax, eax
jne 0x14044799b
mov eax, dword [rsp + 0x20]
and eax, 0x20
test eax, eax
jne 0x14044799b
mov eax, dword [rsp + 0x20]
and eax, 0x80000000
test eax, eax
jne 0x14044799b
mov eax, dword [rsp + 0x20]
and eax, 0x20000000
test eax, eax
je 0x1404479a5
mov eax, dword [rsp]
bts eax, 0x12
mov dword [rsp], eax
mov eax, dword [rsp + 0x20]
and eax, 8
test eax, eax
jne 0x1404479d5
mov eax, dword [rsp + 0x20]
and eax, 0x40
test eax, eax
jne 0x1404479d5
mov eax, dword [rsp + 0x20]
and eax, 0x40000000
test eax, eax
jne 0x1404479d5
mov eax, dword [rsp + 0x20]
and eax, 0x10000000
test eax, eax
je 0x1404479df
mov eax, dword [rsp]
bts eax, 0x18
mov dword [rsp], eax
mov eax, dword [rsp + 0x20]
and eax, 0x10000
test eax, eax
je 0x1404479f7
mov eax, dword [rsp]
or eax, 0x10c0000
mov dword [rsp], eax
mov eax, dword [rsp]
add rsp, 0x10
pop rdi
ret

Function at 0x14020d949
Capabilities:
Get system information on windows

Disassembly:
jmp 0x1403e10e0
mov qword [rsp + 8], rcx
push rdi
sub rsp, 0x90
lea rdi, [rsp + 0x20]
mov ecx, 0x1c
mov eax, 0xcccccccc
rep stosd dword [rdi], eax
mov rcx, qword [rsp + 0xa0]
mov rax, qword [0x140961e80]
xor rax, rsp
mov qword [rsp + 0x80], rax
xor r9d, r9d
mov r8d, 0x30
lea rdx, [rsp + 0x38]
mov ecx, 3
call qword [sym.imp.ntdll.dll_NtQuerySystemInformation]
mov dword [rsp + 0x20], eax
cmp dword [rsp + 0x20], 0
jl 0x1403e114c
mov rax, qword [rsp + 0xa0]
mov rcx, qword [rsp + 0x38]
mov qword [rax], rcx
mov eax, dword [rsp + 0x20]
mov edi, eax
mov rcx, rsp
lea rdx, [0x140797530]
call fcn.1402124fd
mov eax, edi
mov rcx, qword [rsp + 0x80]
xor rcx, rsp
call fcn.14020ee98
add rsp, 0x90
pop rdi
ret
Function at 0x14020d9d5
Capabilities:
Get system information on windows

Disassembly:
jmp 0x1403f66d0
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rdi
sub rsp, 0x70
lea rdi, [rsp + 0x20]
mov ecx, 0x14
mov eax, 0xcccccccc
rep stosd dword [rdi], eax
mov rcx, qword [rsp + 0x80]
mov eax, 0x100
mov word [rsp + 0x30], ax
movzx eax, word [rsp + 0x30]
mov ecx, eax
call sym.SystemInformer.exe_PhAllocate
mov qword [rsp + 0x28], rax
mov rax, qword [rsp + 0x80]
mov qword [rsp + 0x48], rax
xor eax, eax
mov word [rsp + 0x50], ax
movzx eax, word [rsp + 0x30]
mov word [rsp + 0x52], ax
mov rax, qword [rsp + 0x28]
mov qword [rsp + 0x58], rax
xor r9d, r9d
mov r8d, 0x18
lea rdx, [rsp + 0x48]
mov ecx, 0x58
call qword [sym.imp.ntdll.dll_NtQuerySystemInformation]
mov dword [rsp + 0x20], eax
cmp dword [rsp + 0x20], 0xc0000004
jne 0x1403f67a4
mov rcx, qword [rsp + 0x28]
call sym.SystemInformer.exe_PhFree
movzx eax, word [rsp + 0x52]
mov ecx, eax
call sym.SystemInformer.exe_PhAllocate
mov qword [rsp + 0x28], rax
mov rax, qword [rsp + 0x28]
mov qword [rsp + 0x58], rax
xor r9d, r9d
mov r8d, 0x18
lea rdx, [rsp + 0x48]
mov ecx, 0x58
call qword [sym.imp.ntdll.dll_NtQuerySystemInformation]
mov dword [rsp + 0x20], eax
cmp dword [rsp + 0x20], 0
jge 0x1403f67bb
mov rcx, qword [rsp + 0x28]
call sym.SystemInformer.exe_PhFree
mov eax, dword [rsp + 0x20]
jmp 0x1403f6800
lea rcx, [rsp + 0x50]
call fcn.14021104e
movzx eax, al
test eax, eax
je 0x1403f67dd
mov rcx, qword [rsp + 0x28]
call sym.SystemInformer.exe_PhFree
mov eax, 0xc0000001
jmp 0x1403f6800
lea rcx, [rsp + 0x50]
call fcn.14020d3b3
mov rcx, qword [rsp + 0x88]
mov qword [rcx], rax
mov rcx, qword [rsp + 0x28]
call sym.SystemInformer.exe_PhFree
mov eax, dword [rsp + 0x20]
mov rdi, rax
mov rcx, rsp
lea rdx, [0x14079ee10]
call fcn.1402124fd
mov rax, rdi
add rsp, 0x70
pop rdi
ret
Function at 0x14020d9df
Capabilities:
Read http header

Disassembly:
jmp 0x1404d08b0
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rdi
sub rsp, 0x50
lea rdi, [rsp + 0x30]
mov ecx, 8
mov eax, 0xcccccccc
rep stosd dword [rdi], eax
mov rcx, qword [rsp + 0x60]
mov dword [rsp + 0x34], 0
mov qword [rsp + 0x28], 0
lea rax, [rsp + 0x34]
mov qword [rsp + 0x20], rax
xor r9d, r9d
mov r8, qword [rsp + 0x68]
mov edx, 0xffff
mov rax, qword [rsp + 0x60]
mov rcx, qword [rax + 0x10]
call qword [sym.imp.WINHTTP.dll_WinHttpQueryHeaders]
test eax, eax
jne 0x1404d091f
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x7a
je 0x1404d091f
xor eax, eax
jmp 0x1404d0987
mov eax, dword [rsp + 0x34]
mov edx, eax
xor ecx, ecx
call sym.SystemInformer.exe_PhCreateStringEx
mov qword [rsp + 0x48], rax
mov qword [rsp + 0x28], 0
lea rax, [rsp + 0x34]
mov qword [rsp + 0x20], rax
mov rax, qword [rsp + 0x48]
mov r9, qword [rax + 8]
mov r8, qword [rsp + 0x68]
mov edx, 0xffff
mov rax, qword [rsp + 0x60]
mov rcx, qword [rax + 0x10]
call qword [sym.imp.WINHTTP.dll_WinHttpQueryHeaders]
test eax, eax
jne 0x1404d0978
mov rcx, qword [rsp + 0x48]
call sym.SystemInformer.exe_PhDereferenceObject
xor eax, eax
jmp 0x1404d0987
mov rcx, qword [rsp + 0x48]
call fcn.140212d1d
mov rax, qword [rsp + 0x48]
mov rdi, rax
mov rcx, rsp
lea rdx, [0x1407ddc30]
call fcn.1402124fd
mov rax, rdi
add rsp, 0x50
pop rdi
ret

Function at 0x14020d9e9
Capabilities:
Receive http response

Disassembly:
jmp 0x1404d0680
mov qword [rsp + 0x20], r9
mov dword [rsp + 0x18], r8d
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rdi
sub rsp, 0x30
mov r9, qword [rsp + 0x58]
mov r8d, dword [rsp + 0x50]
mov rdx, qword [rsp + 0x48]
mov rax, qword [rsp + 0x40]
mov rcx, qword [rax + 0x10]
call qword [sym.imp.WINHTTP.dll_WinHttpReadData]
test eax, eax
je 0x1404d06c5
mov dword [rsp + 0x20], 1
jmp 0x1404d06cd
mov dword [rsp + 0x20], 0
movzx eax, byte [rsp + 0x20]
add rsp, 0x30
pop rdi
ret
Function at 0x14020da4d
Capabilities:
Resume thread

Disassembly:
jmp 0x14022e610
mov dword [rsp + 0x18], r8d
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rbp
push rdi
sub rsp, 0x1b8
lea rbp, [rsp + 0x30]
lea rdi, [rsp + 0x30]
mov ecx, 0x32
mov eax, 0xcccccccc
rep stosd dword [rdi], eax
mov rcx, qword [rsp + 0x1d8]
mov rax, qword [0x140961e80]
xor rax, rbp
mov qword [rbp + 0x178], rax
mov byte [rbp + 4], 1
mov byte [rbp + 0x24], 0
mov dword [rbp + 0x44], 0
jmp 0x14022e670
mov eax, dword [rbp + 0x44]
inc eax
mov dword [rbp + 0x44], eax
mov eax, dword [rbp + 0x1b0]
cmp dword [rbp + 0x44], eax
jae 0x14022e7d9
mov eax, dword [rbp + 0x44]
mov rcx, qword [rbp + 0x1a8]
mov rax, qword [rcx + rax*8]
mov r8, qword [rax]
mov edx, 2
lea rcx, [rbp + 0x88]
call sym.SystemInformer.exe_PhOpenThread
mov dword [rbp + 0x64], eax
cmp dword [rbp + 0x64], 0
jl 0x14022e6ca
xor edx, edx
mov rcx, qword [rbp + 0x88]
call qword [sym.imp.ntdll.dll_NtResumeThread]
mov dword [rbp + 0x64], eax
mov rcx, qword [rbp + 0x88]
call qword [sym.imp.ntdll.dll_NtClose]
nop
cmp dword [rbp + 0x64], 0
jge 0x14022e7d4
mov byte [rbp + 4], 0
movzx eax, byte [rbp + 0x24]
test eax, eax
jne 0x14022e79e
mov eax, dword [rbp + 0x44]
mov rcx, qword [rbp + 0x1a8]
mov rax, qword [rcx + rax*8]
mov rcx, qword [rax]
call fcn.14020a55f
mov edx, eax
lea rcx, str.Unable_to_resume_thread__lu
call fcn.140210833
lea r9, [rbp + 0xa4]
mov r8d, dword [rbp + 0x64]
mov rdx, qword [rax + 8]
mov rcx, qword [rbp + 0x1a0]
call fcn.14020b577
movzx eax, al
test eax, eax
je 0x14022e79e
movzx eax, byte [rbp + 0xa4]
test eax, eax
je 0x14022e798
mov eax, dword [rbp + 0x44]
mov rcx, qword [rbp + 0x1a8]
mov rax, qword [rcx + rax*8]
xor r8d, r8d
mov edx, 3
mov rcx, qword [rax]
call fcn.14021497e
mov dword [rbp + 0x64], eax
cmp dword [rbp + 0x64], 0
jl 0x14022e762
mov byte [rbp + 4], 1
jmp 0x14022e790
mov eax, dword [rbp + 0x44]
mov dword [rsp + 0x20], 0
mov r9d, dword [rbp + 0x64]
mov rcx, qword [rbp + 0x1a8]
mov r8, qword [rcx + rax*8]
lea rdx, str.resume
mov rcx, qword [rbp + 0x1a0]
call fcn.140233ee0
nop
call sym.SystemInformer.exe_PhUiDisconnectFromPhSvc
nop
jmp 0x14022e79c
mov byte [rbp + 0x24], 1
jmp 0x14022e7d4
mov eax, dword [rbp + 0x44]
mov dword [rsp + 0x20], 0
mov r9d, dword [rbp + 0x64]
mov rcx, qword [rbp + 0x1a8]
mov r8, qword [rcx + rax*8]
lea rdx, str.resume
mov rcx, qword [rbp + 0x1a0]
call fcn.140233ee0
movzx eax, al
test eax, eax
jne 0x14022e7d4
jmp 0x14022e7d9
jmp 0x14022e668
movzx eax, byte [rbp + 4]
mov edi, eax
lea rcx, [rbp - 0x30]
lea rdx, [0x14064b370]
call fcn.1402124fd
mov eax, edi
mov rcx, qword [rbp + 0x178]
xor rcx, rbp
call fcn.14020ee98
lea rsp, [rbp + 0x188]
pop rdi
pop rbp
ret
Function at 0x14020db9c
Capabilities:
Delete registry key
Unload driver

Disassembly:
jmp 0x14040d7e0
mov qword [rsp + 8], rcx
push rdi
sub rsp, 0x110
lea rdi, [rsp + 0x40]
mov ecx, 0x34
mov eax, 0xcccccccc
rep stosd dword [rdi], eax
mov rcx, qword [rsp + 0x120]
mov rax, qword [rsp + 0x120]
mov rdx, rax
lea rcx, [0x14095fb10]
call sym.SystemInformer.exe_PhConcatStringRef2
mov qword [rsp + 0x48], rax
mov rax, qword [rsp + 0x48]
lea rdx, [rsp + 0x58]
mov rcx, rax
call fcn.140210adb
movzx eax, al
test eax, eax
jne 0x14040d84f
mov rcx, qword [rsp + 0x48]
call sym.SystemInformer.exe_PhDereferenceObject
mov eax, 0xc0000106
jmp 0x14040d9f8
mov rax, qword [rsp + 0x48]
lea rcx, [rsp + 0xa4]
mov qword [rsp + 0x30], rcx
mov dword [rsp + 0x28], 0
mov dword [rsp + 0x20], 0
mov r9, rax
xor r8d, r8d
mov edx, 0x30006
lea rcx, [rsp + 0x88]
call sym.SystemInformer.exe_PhCreateKey
mov dword [rsp + 0x40], eax
cmp dword [rsp + 0x40], 0
jl 0x14040d9ea
cmp dword [rsp + 0xa4], 1
jne 0x14040d9b3
mov dword [rsp + 0xf4], 1
lea rdx, str.ErrorControl
lea rcx, [rsp + 0xc8]
call fcn.14020bbee
mov dword [rsp + 0x20], 4
lea r9, [rsp + 0xf4]
mov r8d, 4
lea rdx, [rsp + 0xc8]
mov rcx, qword [rsp + 0x88]
call sym.SystemInformer.exe_PhSetValueKey
lea rdx, [0x140751650]
lea rcx, [rsp + 0xc8]
call fcn.14020bbee
mov dword [rsp + 0x20], 4
lea r9, [rsp + 0xf4]
mov r8d, 4
lea rdx, [rsp + 0xc8]
mov rcx, qword [rsp + 0x88]
call sym.SystemInformer.exe_PhSetValueKey
lea rdx, str.Type
lea rcx, [rsp + 0xc8]
call fcn.14020bbee
mov dword [rsp + 0x20], 4
lea r9, [rsp + 0xf4]
mov r8d, 4
lea rdx, [rsp + 0xc8]
mov rcx, qword [rsp + 0x88]
call sym.SystemInformer.exe_PhSetValueKey
lea rdx, str.ImagePath
lea rcx, [rsp + 0xc8]
call fcn.14020bbee
mov eax, dword [0x14095fb20]
add rax, 2
mov dword [rsp + 0x20], eax
mov r9, qword [str.SystemRootSystem32drivers_ntfs.sys]
mov r8d, 1
lea rdx, [rsp + 0xc8]
mov rcx, qword [rsp + 0x88]
call sym.SystemInformer.exe_PhSetValueKey
nop
lea rcx, [rsp + 0x58]
call qword [sym.imp.ntdll.dll_NtUnloadDriver]
mov dword [rsp + 0x40], eax
cmp dword [rsp + 0xa4], 1
jne 0x14040d9db
mov rcx, qword [rsp + 0x88]
call qword [sym.imp.ntdll.dll_NtDeleteKey]
nop
mov rcx, qword [rsp + 0x88]
call qword [sym.imp.ntdll.dll_NtClose]
nop
mov rcx, qword [rsp + 0x48]
call sym.SystemInformer.exe_PhDereferenceObject
mov eax, dword [rsp + 0x40]
mov rdi, rax
mov rcx, rsp
lea rdx, [0x1407ab790]
call fcn.1402124fd
mov rax, rdi
add rsp, 0x110
pop rdi
ret
Function at 0x14020dc41
Capabilities:
Get system information on windows

Disassembly:
jmp 0x14040a350
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
mov dword [rsp + 8], ecx
push rdi
sub rsp, 0x60
lea rdi, [rsp + 0x30]
mov ecx, 0xc
mov eax, 0xcccccccc
rep stosd dword [rdi], eax
mov ecx, dword [rsp + 0x70]
mov eax, dword [rsp + 0x70]
mov dword [rsp + 0x58], eax
cmp dword [rsp + 0x58], 0
je 0x14040a3a1
cmp dword [rsp + 0x58], 3
je 0x14040a3ab
cmp dword [rsp + 0x58], 4
je 0x14040a3b5
cmp dword [rsp + 0x58], 0xffff
je 0x14040a3bf
jmp 0x14040a3c9
mov dword [rsp + 0x34], 0
jmp 0x14040a3d3
mov dword [rsp + 0x34], 1
jmp 0x14040a3d3
mov dword [rsp + 0x34], 2
jmp 0x14040a3d3
mov dword [rsp + 0x34], 3
jmp 0x14040a3d3
mov eax, 0xc0000003
jmp 0x14040a4e8
mov eax, dword [rsp + 0x34]
lea rcx, [0x14095fcf8]
mov eax, dword [rcx + rax*4]
mov dword [rsp + 0x44], eax
mov eax, dword [rsp + 0x44]
mov ecx, eax
call sym.SystemInformer.exe_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 + 0x70]
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 0x14040a496
cmp dword [rsp + 0x54], 8
jae 0x14040a496
mov rcx, qword [rsp + 0x38]
call sym.SystemInformer.exe_PhFree
mov eax, dword [rsp + 0x44]
mov ecx, eax
call sym.SystemInformer.exe_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 + 0x70]
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 0x14040a42e
cmp dword [rsp + 0x30], 0
jge 0x14040a4ad
mov rcx, qword [rsp + 0x38]
call sym.SystemInformer.exe_PhFree
mov eax, dword [rsp + 0x30]
jmp 0x14040a4e8
cmp dword [rsp + 0x44], 0x100000
ja 0x14040a4c9
mov eax, dword [rsp + 0x34]
lea rcx, [0x14095fcf8]
mov edx, dword [rsp + 0x44]
mov dword [rcx + rax*4], edx
mov rax, qword [rsp + 0x78]
mov rcx, qword [rsp + 0x38]
mov qword [rax], rcx
mov rax, qword [rsp + 0x80]
mov ecx, dword [rsp + 0x44]
mov dword [rax], ecx
mov eax, dword [rsp + 0x30]
mov rdi, rax
mov rcx, rsp
lea rdx, [0x1407a9d70]
call fcn.1402124fd
mov rax, rdi
add rsp, 0x60
pop rdi
ret
Function at 0x14020df4d
Capabilities:
Get system information on windows
Make suspicious ntquerysysteminformation call

Disassembly:
jmp 0x1403fdfa0
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 dword [rsp + 0x44], 0
mov dword [rsp + 0x54], 0
mov eax, dword [0x14095fb74]
mov dword [rsp + 0x30], eax
mov eax, dword [rsp + 0x30]
mov ecx, eax
call sym.SystemInformer.exe_PhAllocate
mov qword [rsp + 0x28], rax
lea r9, [rsp + 0x44]
mov r8d, dword [rsp + 0x30]
mov rdx, qword [rsp + 0x28]
mov ecx, 0x40
call qword [sym.imp.ntdll.dll_NtQuerySystemInformation]
mov dword [rsp + 0x20], eax
cmp dword [rsp + 0x20], 0xc0000004
jne 0x1403fe065
cmp dword [rsp + 0x54], 0xa
jae 0x1403fe065
mov rcx, qword [rsp + 0x28]
call sym.SystemInformer.exe_PhFree
mov eax, dword [rsp + 0x44]
mov dword [rsp + 0x30], eax
mov eax, dword [rsp + 0x30]
mov ecx, eax
call sym.SystemInformer.exe_PhAllocate
mov qword [rsp + 0x28], rax
lea r9, [rsp + 0x44]
mov r8d, dword [rsp + 0x30]
mov rdx, qword [rsp + 0x28]
mov ecx, 0x40
call qword [sym.imp.ntdll.dll_NtQuerySystemInformation]
mov dword [rsp + 0x20], eax
mov eax, dword [rsp + 0x54]
inc eax
mov dword [rsp + 0x54], eax
jmp 0x1403fe008
cmp dword [rsp + 0x20], 0
jge 0x1403fe0e3
mov eax, dword [0x14095fb74]
mov dword [rsp + 0x30], eax
mov eax, dword [rsp + 0x30]
mov ecx, eax
call sym.SystemInformer.exe_PhAllocate
mov qword [rsp + 0x28], rax
xor r9d, r9d
mov r8d, dword [rsp + 0x30]
mov rdx, qword [rsp + 0x28]
mov ecx, 0x40
call qword [sym.imp.ntdll.dll_NtQuerySystemInformation]
mov dword [rsp + 0x20], eax
cmp dword [rsp + 0x20], 0xc0000004
jne 0x1403fe0e3
mov rcx, qword [rsp + 0x28]
call sym.SystemInformer.exe_PhFree
mov eax, dword [rsp + 0x30]
shl eax, 1
mov dword [rsp + 0x30], eax
cmp dword [rsp + 0x30], 0x10000000
jbe 0x1403fe0d1
mov eax, 0xc000009a
jmp 0x1403fe11f
mov eax, dword [rsp + 0x30]
mov ecx, eax
call sym.SystemInformer.exe_PhAllocate
mov qword [rsp + 0x28], rax
jmp 0x1403fe086
cmp dword [rsp + 0x20], 0
jge 0x1403fe0fa
mov rcx, qword [rsp + 0x28]
call sym.SystemInformer.exe_PhFree
mov eax, dword [rsp + 0x20]
jmp 0x1403fe11f
cmp dword [rsp + 0x30], 0x200000
ja 0x1403fe10e
mov eax, dword [rsp + 0x30]
mov dword [0x14095fb74], eax
mov rax, qword [rsp + 0x70]
mov rcx, qword [rsp + 0x28]
mov qword [rax], rcx
mov eax, dword [rsp + 0x20]
mov rdi, rax
mov rcx, rsp
lea rdx, [0x1407a3120]
call fcn.1402124fd
mov rax, rdi
add rsp, 0x60
pop rdi
ret

Function at 0x14020e0ba
Capabilities:
Set file attributes

Disassembly:
jmp 0x1403fb4d0
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rdi
sub rsp, 0x80
lea rdi, [rsp + 0x30]
mov ecx, 0x14
mov eax, 0xcccccccc
rep stosd dword [rdi], eax
mov rcx, qword [rsp + 0x90]
mov rax, qword [rsp + 0x98]
mov rax, qword [rax]
mov qword [rsp + 0x38], rax
mov dword [rsp + 0x20], 0x14
mov r9d, 8
lea r8, [rsp + 0x38]
lea rdx, [rsp + 0x58]
mov rcx, qword [rsp + 0x90]
call qword [sym.imp.ntdll.dll_NtSetInformationFile]
mov rdi, rax
mov rcx, rsp
lea rdx, [0x1407a1a10]
call fcn.1402124fd
mov rax, rdi
add rsp, 0x80
pop rdi
ret