joyce8/EMBER2024-capa huggingface dataset:
Function at 0x508d00
Capabilities:
Open clipboard
Write clipboard data

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov edi, dword [ebp + 0xc]
mov eax, dword [edi]
add eax, 2
push eax
push 2
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov ebx, eax
push ebx
call dword [sym.imp.KERNEL32.dll_GlobalLock]
push dword [edi]
mov esi, eax
push dword [edi + 4]
push esi
call fcn.00581150
mov ecx, dword ds:[edi]
add esp, 0xc
xor eax, eax
push esi
mov word [esi + ecx], ax
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_OpenClipboard]
test eax, eax
je 0x508d77
call dword [sym.imp.USER32.dll_EmptyClipboard]
test eax, eax
je 0x508d77
push ebx
push 0xd
call dword [sym.imp.USER32.dll_SetClipboardData]
test eax, eax
je 0x508d77
call dword [sym.imp.USER32.dll_CloseClipboard]
pop edi
pop esi
pop ebx
pop ebp
ret 8
push ebx
call dword [sym.imp.KERNEL32.dll_GlobalFree]
pop edi
pop esi
pop ebx
pop ebp
ret 8

Function at 0x50a9c0
Capabilities:
Shutdown system

Disassembly:
push ebx
mov ebx, ecx
push esi
mov edx, ebx
and edx, 1
shl edx, 2
mov esi, edx
or esi, 8
test bl, 2
push 0x80000000
cmove esi, edx
mov ecx, esi
or ecx, 0x40
test bl, 4
cmove ecx, esi
mov edx, ecx
or edx, 0x200
test bl, 8
cmove edx, ecx
mov ecx, edx
or ecx, 0x400
test bl, 0x10
cmove ecx, edx
mov eax, ecx
or eax, 0x80000
test bl, 0x80
cmove eax, ecx
or eax, 1
push eax
push 0
push 0
push 0
call dword [sym.imp.ADVAPI32.dll_InitiateShutdownW]
pop esi
pop ebx
ret
Function at 0x50b980
Capabilities:
Get file attributes
Set file attributes

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x4c
mov eax, dword [0x62d040]
xor eax, esp
mov dword [esp + 0x48], eax
push ebx
push esi
push edi
mov edi, dword [ebp + 0x1c]
mov ecx, dword [ebp + 0xc]
mov ebx, dword [ebp + 8]
push 0
lea eax, [edi*8]
not eax
and eax, 0x20
or eax, 0x40
push eax
push dword [ebp + 0x18]
lea eax, [esp + 0x1c]
push dword [ebp + 0x14]
push 0x80
push 0
push dword [ebp + 0x10]
push ecx
push eax
call sym.SystemInformer.exe_PhCreateFileWin32Ex
test eax, eax
jns 0x50b9eb
lfence
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x48]
xor ecx, esp
call fcn.0057ee0f
mov esp, ebp
pop ebp
ret 0x18
test byte [0x630d40], 1
jne 0x50ba1b
mov esi, 0x630d40
lock bts dword [esi], 0x1f
setb al
test al, al
je 0x50baf1
test byte [0x630d40], 1
jne 0x50ba1b
xor edx, edx
mov ecx, esi
call sym.SystemInformer.exe_PhfWaitForEvent
push dword [0x6340dc]
push 0x28
call sym.SystemInformer.exe_PhCreateObject
mov ecx, dword [esp + 0x10]
mov esi, eax
mov eax, edi
shl eax, 0xb
not eax
mov dword [esi], ecx
and eax, 0x1000
mov dword [esi + 4], edi
mov dword [esi + 8], 0
mov dword [esi + 0xc], 0
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], eax
mov dword [esi + 0x18], 0
mov dword [esi + 0x1c], 0
mov dword [esi + 0x20], 0
test edi, 0x10000
je 0x50bb75
push 5
push 0x18
lea eax, [esp + 0x40]
push eax
lea eax, [esp + 0x1c]
push eax
push ecx
call dword [sym.imp.ntdll.dll_NtQueryInformationFile]
test eax, eax
js 0x50bad1
test byte [esi + 4], 8
mov edx, dword [esp + 0x40]
mov eax, edx
mov ecx, dword [esp + 0x44]
mov dword [esi + 8], eax
mov dword [esi + 0xc], ecx
jne 0x50bb75
push 0xe
mov dword [esp + 0x14], eax
lea eax, [esp + 0x14]
push 8
push eax
lea eax, [esp + 0x3c]
mov dword [esp + 0x20], ecx
push eax
push dword [esi]
call dword [sym.imp.ntdll.dll_NtSetInformationFile]
test eax, eax
jns 0x50bb75
lfence
lea ecx, [esi - 8]
or eax, 0xffffffff
lock xadd dword [ecx + 4], eax
dec eax
jne 0x50bb7a
call fcn.004fbe40
jmp 0x50bb7a
push dword [0x633f68]
push 0x28
call sym.SystemInformer.exe_PhCreateObject
mov edx, eax
mov ecx, 1
mov word [edx], cx
lock xadd dword [0x633f64], ecx
inc ecx
dec cl
mov dword [edx + 4], 0
movzx eax, cl
mov byte [edx + 2], cl
mov dword [edx + 8], 0x50bcc0
mov dword [edx + 0xc], 0x615a74
mov dword [eax*4 + 0x6365a0], edx
lea eax, [edx + 0x10]
test al, 7
jne 0x50bb6a
xor ecx, ecx
mov dword [0x6340dc], edx
mov dword [eax], ecx
mov dword [eax + 4], ecx
mov dword [eax + 8], ecx
mov ecx, esi
mov dword [eax + 0xc], 0x10
mov dword [eax + 0x10], 0x30
call sym.SystemInformer.exe_PhfEndInitOnce
jmp 0x50ba1b
push 0x80000002
call dword [sym.imp.ntdll.dll_RtlRaiseStatus]
lfence
mov dword [ebx], esi
mov ecx, dword [esp + 0x54]
xor eax, eax
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.0057ee0f
mov esp, ebp
pop ebp
ret 0x18
Function at 0x50bd40
Capabilities:
Get file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push esi
mov esi, dword [ebp + 8]
test byte [esi + 4], 0xc
jne 0x50bd90
push 0xe
push 8
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x10]
push eax
push dword [esi]
call dword [sym.imp.ntdll.dll_NtQueryInformationFile]
test eax, eax
jns 0x50bd74
push eax
lfence
call dword [sym.imp.ntdll.dll_RtlRaiseStatus]
mov eax, dword [esi + 8]
cmp eax, dword [ebp - 8]
jne 0x50bd85
mov eax, dword ds:[esi + 0xc]
cmp eax, dword [ebp - 4]
je 0x50bd90
push 0xc00000e5
call dword [sym.imp.ntdll.dll_RtlRaiseStatus]
pop esi
mov esp, ebp
pop ebp
ret 4

Function at 0x50be00
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push esi
push edi
mov edi, ecx
mov ecx, 0
push 0
test byte [edi + 4], 8
lea eax, [edi + 8]
cmove eax, ecx
push eax
push dword [ebp + 8]
lea eax, [ebp - 8]
push edx
push eax
push ecx
push ecx
push ecx
push dword [edi]
call dword [sym.imp.ntdll.dll_NtReadFile]
cmp eax, 0x103
jne 0x50be4d
push 0
push 0
push dword [edi]
call dword [sym.imp.ntdll.dll_NtWaitForSingleObject]
test eax, eax
js 0x50be66
mov eax, dword [ebp - 8]
test eax, eax
js 0x50be66
mov ecx, dword ds:[ebp - 4]
add dword [edi + 8], ecx
mov edx, dword [ebp + 0xc]
adc dword [edi + 0xc], 0
test edx, edx
je 0x50be66
mov dword [edx], ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret 8
Function at 0x50be80
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push esi
mov esi, dword [ebp + 8]
xor ebx, ebx
push edi
mov eax, dword [esi + 4]
test al, 2
je 0x50bef9
push ebx
test al, 8
mov ecx, ebx
lea eax, [esi + 8]
cmove eax, ecx
push eax
push dword [ebp + 0x10]
lea eax, [ebp - 0xc]
push dword [ebp + 0xc]
push eax
push ebx
push ebx
push ebx
push dword [esi]
call dword [sym.imp.ntdll.dll_NtReadFile]
cmp eax, 0x103
jne 0x50bed2
push ebx
push ebx
push dword [esi]
call dword [sym.imp.ntdll.dll_NtWaitForSingleObject]
test eax, eax
js 0x50c033
mov eax, dword [ebp - 0xc]
test eax, eax
js 0x50c033
mov ecx, dword [ebp - 8]
add dword [esi + 8], ecx
mov edx, dword [ebp + 0x14]
adc dword [esi + 0xc], ebx
test edx, edx
je 0x50c033
pop edi
pop esi
mov dword [edx], ecx
pop ebx
mov esp, ebp
pop ebp
ret 0x10
mov edi, dword [esi + 0x1c]
mov edx, dword [esi + 0x18]
mov eax, dword [ebp + 0x10]
sub edi, edx
jne 0x50bfcd
mov ecx, dword [esi + 0x20]
lea edi, [esi + 0x10]
test ecx, ecx
je 0x50bf2a
mov edx, dword [edi]
push ecx
mov ecx, esi
call fcn.0050c040
mov edi, edi
test eax, eax
js 0x50bf4f
mov eax, dword [ebp + 0x10]
mov dword [esi + 0x20], ebx
cmp eax, dword [esi + 0x14]
jb 0x50bf5b
push dword [ebp + 0x14]
mov edx, dword [ebp + 0xc]
mov ecx, esi
lfence
push eax
mov dword [esi + 0x18], ebx
mov dword [esi + 0x1c], ebx
call fcn.0050be00
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x10
pop edi
pop esi
lfence
pop ebx
mov esp, ebp
pop ebp
ret 0x10
mov dword ds:[ebp - 4], edi
cmp dword [edi], ebx
jne 0x50bf75
mov ecx, esi
call fcn.0050bda0
test eax, eax
js 0x50bf4f
lea eax, [esi + 0x10]
mov dword [ebp - 4], eax
mov edx, dword [edi]
lea eax, [ebp - 8]
push eax
push dword [esi + 0x14]
mov ecx, esi
call fcn.0050be00
mov ebx, eax
test ebx, ebx
jns 0x50bf97
pop edi
pop esi
lfence
pop ebx
mov esp, ebp
pop ebp
ret 0x10
mov edi, dword [ebp - 8]
test edi, edi
jne 0x50bfb9
mov eax, dword [ebp + 0x14]
lfence
test eax, eax
je 0x50c031
mov dword [eax], edi
mov eax, ebx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x10
mov eax, dword [ebp + 0x10]
xor edx, edx
mov ecx, dword [ebp - 4]
mov dword [esi + 0x18], 0
mov dword [esi + 0x1c], edi
jmp 0x50bfd0
lea ecx, [esi + 0x10]
cmp edi, eax
cmova edi, eax
mov eax, dword [ecx]
push edi
add eax, edx
push eax
push dword [ebp + 0xc]
call fcn.00581150
add dword [esi + 0x18], edi
add esp, 0xc
mov ecx, dword [ebp + 0x10]
cmp edi, ecx
jae 0x50c028
mov eax, dword [esi + 0x1c]
cmp eax, dword [esi + 0x14]
jne 0x50c028
mov edx, dword [ebp + 0xc]
lea eax, [ebp - 8]
sub ecx, edi
push eax
push ecx
lea edx, [edi + edx]
mov ecx, esi
lfence
call fcn.0050be00
mov ebx, eax
test ebx, ebx
js 0x50c031
add edi, dword [ebp - 8]
mov dword [esi + 0x18], 0
mov dword [esi + 0x1c], 0
mov eax, dword [ebp + 0x14]
test eax, eax
je 0x50c031
mov dword [eax], edi
mov eax, ebx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x10
Function at 0x50c040
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push esi
push edi
mov edi, ecx
mov ecx, 0
push 0
test byte [edi + 4], 8
lea eax, [edi + 8]
cmove eax, ecx
push eax
push dword [ebp + 8]
lea eax, [ebp - 0xc]
push edx
push eax
push ecx
push ecx
push ecx
push dword [edi]
call dword [sym.imp.ntdll.dll_NtWriteFile]
mov ecx, eax
cmp ecx, 0x103
jne 0x50c08d
push 0
push 0
push dword [edi]
call dword [sym.imp.ntdll.dll_NtWaitForSingleObject]
test eax, eax
js 0x50c0a4
mov ecx, dword [ebp - 0xc]
test ecx, ecx
js 0x50c0a2
mov eax, dword [ebp - 8]
add dword [edi + 8], eax
adc dword [edi + 0xc], 0
or dword [edi + 4], 0x80000000
mov eax, ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret 4

Function at 0x50c220
Capabilities:
Set file attributes

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x14
push esi
mov esi, ecx
xor ecx, ecx
mov eax, dword [esi + 0x1c]
mov edx, dword [esi + 0x18]
sub eax, edx
je 0x50c27e
sub edx, dword [esi + 0x1c]
mov eax, edx
cdq
add eax, dword [esi + 8]
mov dword [esi + 8], eax
adc edx, dword [esi + 0xc]
test byte [esi + 4], 8
mov dword [esi + 0xc], edx
jne 0x50c270
push 0xe
mov dword [esp + 0xc], eax
lea eax, [esp + 0xc]
push 8
push eax
lea eax, [esp + 0x1c]
mov dword [esp + 0x18], edx
push eax
push dword [esi]
call dword [sym.imp.ntdll.dll_NtSetInformationFile]
mov ecx, eax
test ecx, ecx
jns 0x50c27e
lfence
mov eax, ecx
pop esi
mov esp, ebp
pop ebp
ret
mov dword [esi + 0x18], 0
mov eax, ecx
mov dword [esi + 0x1c], 0
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x50c340
Capabilities:
Get file attributes
Set file attributes

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x4c
mov eax, dword [0x62d040]
xor eax, esp
mov dword [esp + 0x48], eax
mov eax, dword [ebp + 8]
push ebx
push esi
push edi
xor edi, edi
mov ebx, edx
mov esi, ecx
sub eax, edi
je 0x50c3be
sub eax, 1
je 0x50c39a
sub eax, 1
jne 0x50c3c9
push 5
push 0x18
lea eax, [esp + 0x40]
push eax
lea eax, [esp + 0x1c]
push eax
push dword [esi]
call dword [sym.imp.ntdll.dll_NtQueryInformationFile]
mov edi, eax
test edi, edi
js 0x50c3a7
mov edx, dword [esp + 0x40]
mov ecx, dword [esp + 0x44]
mov dword [esi + 8], edx
mov dword [esi + 0xc], ecx
mov eax, dword [ebx]
add dword [esi + 8], eax
mov eax, dword [ebx + 4]
adc dword [esi + 0xc], eax
jmp 0x50c3c9
lfence
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x48]
xor ecx, esp
call fcn.0057ee0f
mov esp, ebp
pop ebp
ret 4
mov eax, dword [ebx]
mov ecx, dword [ebx + 4]
mov dword [esi + 8], eax
mov dword [esi + 0xc], ecx
test byte [esi + 4], 8
jne 0x50c3fc
mov eax, dword [esi + 8]
mov ecx, dword [esi + 0xc]
push 0xe
mov dword [esp + 0x14], eax
lea eax, [esp + 0x14]
push 8
push eax
lea eax, [esp + 0x3c]
mov dword [esp + 0x20], ecx
push eax
push dword [esi]
call dword [sym.imp.ntdll.dll_NtSetInformationFile]
mov edi, eax
test edi, edi
jns 0x50c3fc
lfence
mov ecx, dword [esp + 0x54]
mov eax, edi
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.0057ee0f
mov esp, ebp
pop ebp
ret 4
Function at 0x5123c0
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
cmp dword [0x635f50], 5
push edi
jne 0x51247a
push esi
push 0x635f38
call dword [sym.imp.ntdll.dll_RtlInterlockedPopEntrySList]
mov esi, eax
test esi, esi
je 0x5123ed
lock dec dword [0x635f40]
jmp 0x512408
mov eax, dword [0x635f48]
add eax, 8
push eax
push 4
push dword [0x633f94]
call dword [sym.imp.ntdll.dll_RtlAllocateHeap]
mov esi, eax
push ebx
mov edx, 6
lea ecx, [esi + 8]
call fcn.005723a0
mov eax, dword [ebp + 8]
lea ecx, [esi + 8]
mov dword [esi + 0x1c], eax
mov eax, dword [ebp + 0xc]
mov dword [esi + 0x20], eax
call fcn.00538b00
mov edi, eax
test edi, edi
js 0x512436
lfence
mov edi, dword [esi + 0x18]
mov eax, dword [0x635f40]
pop ebx
push esi
cmp eax, dword [0x635f44]
jae 0x51245c
push 0x635f38
call dword [sym.imp.ntdll.dll_RtlInterlockedPushEntrySList]
lock inc dword [0x635f40]
jmp 0x51246a
push 0
push dword [0x633f94]
call dword [sym.imp.ntdll.dll_RtlFreeHeap]
pop esi
cmp edi, 0xc00000bb
je 0x51247a
mov eax, edi
pop edi
pop ebp
ret 8
pop edi
pop ebp
jmp dword [sym.imp.ntdll.dll_NtTerminateProcess]

Function at 0x5126e0
Capabilities:
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
push esi
push edi
push 0x100
push 4
push dword [0x633f94]
call dword [sym.imp.ntdll.dll_RtlAllocateHeap]
mov ecx, dword [ebp + 8]
mov esi, eax
push 0
push 0xc
lea eax, [ebp - 0x14]
mov dword [ebp - 0x14], ecx
push eax
push 0x58
mov dword [ebp - 0x10], 0x1000000
mov dword [ebp - 0xc], esi
call dword [sym.imp.ntdll.dll_NtQuerySystemInformation]
mov edi, eax
cmp edi, 0xc0000004
jne 0x512761
push esi
push 0
push dword [0x633f94]
call dword [sym.imp.ntdll.dll_RtlFreeHeap]
movzx eax, word [ebp - 0xe]
push eax
push 4
push dword [0x633f94]
call dword [sym.imp.ntdll.dll_RtlAllocateHeap]
push 0
mov esi, eax
lea eax, [ebp - 0x14]
push 0xc
push eax
push 0x58
mov dword [ebp - 0xc], esi
call dword [sym.imp.ntdll.dll_NtQuerySystemInformation]
mov edi, eax
test edi, edi
jns 0x51276a
lfence
jmp 0x5127b4
mov cx, word [ebp - 0x10]
test cx, cx
jne 0x512793
push esi
push 0
push dword [0x633f94]
call dword [sym.imp.ntdll.dll_RtlFreeHeap]
mov eax, 0xc0000001
pop edi
pop esi
mov esp, ebp
pop ebp
ret 8
lfence
mov eax, dword [ebp - 0xc]
mov dword [ebp - 4], eax
movzx eax, cx
push 0
mov dword [ebp - 8], eax
lea eax, [ebp - 8]
push 0
push eax
call sym.SystemInformer.exe_PhCreateString3
mov ecx, dword [ebp + 0xc]
mov dword [ecx], eax
push esi
push 0
push dword [0x633f94]
call dword [sym.imp.ntdll.dll_RtlFreeHeap]
mov eax, edi
pop edi
pop esi
mov esp, ebp
pop ebp
ret 8
Function at 0x5127e0
Capabilities:
Check processdebugport

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
lea eax, [ebp - 4]
push esi
push edi
push 0
push 4
push eax
mov edi, ecx
mov esi, edx
push 7
push edi
call dword [sym.imp.ntdll.dll_NtQueryInformationProcess]
mov edx, eax
lfence
test edx, edx
js 0x512815
cmp dword [ebp - 4], 0
pop edi
setne cl
mov byte [esi], cl
pop esi
mov esp, ebp
pop ebp
ret
cmp dword [0x635f50], 2
jl 0x512843
push ecx
push 4
lea eax, [ebp - 8]
mov edx, 1
push eax
mov ecx, edi
call fcn.005242a0
mov edx, eax
test edx, edx
js 0x512843
mov eax, dword [ebp - 8]
shr eax, 8
not al
and al, 1
mov byte [esi], al
pop edi
mov eax, edx
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x514c40
Capabilities:
Get file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
push ebx
push esi
push edi
mov edi, 0x200
mov dword [ebp - 8], ecx
push edi
push 4
push dword [0x633f94]
mov esi, edx
mov dword [ebp - 0xc], esi
call dword [sym.imp.ntdll.dll_RtlAllocateHeap]
push esi
push edi
mov ebx, eax
lea eax, [ebp - 0x14]
push ebx
push eax
push dword [ebp - 8]
call dword [sym.imp.ntdll.dll_NtQueryInformationFile]
mov esi, eax
cmp esi, 0x80000005
je 0x514c98
cmp esi, 0xc0000023
je 0x514c98
cmp esi, 0xc0000004
jne 0x514cbd
push ebx
push 0
push dword [0x633f94]
call dword [sym.imp.ntdll.dll_RtlFreeHeap]
add edi, edi
push edi
push 4
push dword [0x633f94]
call dword [sym.imp.ntdll.dll_RtlAllocateHeap]
mov esi, dword [ebp - 0xc]
jmp 0x514c66
lea ecx, [ecx]
test esi, esi
js 0x514cd4
mov eax, dword [ebp + 8]
mov dword [eax], ebx
mov eax, esi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
push ebx
push 0
push dword [0x633f94]
call dword [sym.imp.ntdll.dll_RtlFreeHeap]
pop edi
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x514d00
Capabilities:
Get file attributes

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x48
mov eax, dword [0x62d040]
xor eax, esp
mov dword [esp + 0x44], eax
mov eax, dword [ebp + 8]
lea ecx, [esp + 8]
push esi
push edi
mov edi, dword [ebp + 0xc]
push 0x22
push 0x38
push ecx
lea ecx, [esp + 0x14]
push ecx
push eax
call dword [sym.imp.ntdll.dll_NtQueryInformationFile]
test eax, eax
js 0x514d40
mov ecx, 0xe
lea esi, [esp + 0x10]
rep movsd dword es:[edi], dword [esi]
mov ecx, dword [esp + 0x4c]
pop edi
pop esi
xor ecx, esp
call fcn.0057ee0f
mov esp, ebp
pop ebp
ret 8

Function at 0x514d60
Capabilities:
Get file attributes

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x40
mov eax, dword [0x62d040]
xor eax, esp
mov dword [esp + 0x3c], eax
mov eax, dword [ebp + 8]
lea ecx, [esp + 0x20]
push esi
push edi
mov edi, dword [ebp + 0xc]
push 5
push 0x18
push ecx
lea ecx, [esp + 0x2c]
push ecx
push eax
call dword [sym.imp.ntdll.dll_NtQueryInformationFile]
mov esi, eax
test esi, esi
js 0x514da4
mov edx, dword [esp + 0x30]
mov ecx, dword [esp + 0x34]
mov dword [edi], edx
mov dword [edi + 4], ecx
mov ecx, dword [esp + 0x44]
pop edi
pop esi
xor ecx, esp
call fcn.0057ee0f
mov esp, ebp
pop ebp
ret 8

Function at 0x514dc0
Capabilities:
Set file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov eax, dword [ebp + 0xc]
push 0x14
push 8
mov ecx, dword [eax]
mov eax, dword [eax + 4]
mov dword [ebp - 4], eax
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x10]
mov dword [ebp - 8], ecx
push eax
push dword [ebp + 8]
call dword [sym.imp.ntdll.dll_NtSetInformationFile]
mov esp, ebp
pop ebp
ret 8
Function at 0x514df0
Capabilities:
Get file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
lea eax, [ebp - 8]
push esi
push 0xe
push 8
push eax
lea eax, [ebp - 0x10]
push eax
push dword [ebp + 8]
call dword [sym.imp.ntdll.dll_NtQueryInformationFile]
mov esi, eax
lfence
test esi, esi
js 0x514e25
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp - 8]
mov edx, dword [ebp - 4]
mov dword [eax], ecx
mov dword [eax + 4], edx
mov eax, esi
pop esi
mov esp, ebp
pop ebp
ret 8

Function at 0x514e40
Capabilities:
Set file attributes

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 0xc]
sub esp, 0x10
test eax, eax
je 0x514e54
mov ecx, dword [eax]
mov eax, dword [eax + 4]
jmp 0x514e58
xor ecx, ecx
xor eax, eax
push 0xe
mov dword [ebp - 4], eax
lea eax, [ebp - 8]
push 8
push eax
lea eax, [ebp - 0x10]
mov dword [ebp - 8], ecx
push eax
push dword [ebp + 8]
call dword [sym.imp.ntdll.dll_NtSetInformationFile]
mov esp, ebp
pop ebp
ret 8

Function at 0x514e80
Capabilities:
Set file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov eax, dword [ebp + 0xc]
push 0x13
push 8
mov ecx, dword [eax]
mov eax, dword [eax + 4]
mov dword [ebp - 4], eax
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x10]
mov dword [ebp - 8], ecx
push eax
push dword [ebp + 8]
call dword [sym.imp.ntdll.dll_NtSetInformationFile]
mov esp, ebp
pop ebp
ret 8

Function at 0x514ec0
Capabilities:
Set file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
cmp dword [0x62dbb0], 0x6a
push esi
push edi
mov edi, ecx
jb 0x514ef1
push 0x40
push 4
lea eax, [ebp - 8]
mov dword [ebp - 8], 0x13
push eax
lea eax, [ebp - 0x10]
push eax
push edi
call dword [sym.imp.ntdll.dll_NtSetInformationFile]
test eax, eax
jns 0x514f41
push 0xd
push 1
lea eax, [ebp - 1]
push eax
lea eax, [ebp - 0x10]
push eax
lfence
push edi
mov byte [ebp - 1], 1
call dword [sym.imp.ntdll.dll_NtSetInformationFile]
mov esi, eax
test esi, esi
jns 0x514f3f
push 0x1000
push 4
push 0x10000
mov edx, edi
lea ecx, [ebp - 8]
lfence
call fcn.0051ad40
test eax, eax
js 0x514f3f
push dword [ebp - 8]
call dword [sym.imp.ntdll.dll_NtClose]
xor eax, eax
pop edi
pop esi
mov esp, ebp
pop ebp
ret
mov eax, esi
pop edi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x515760
Capabilities:
Delete registry key
Persist via windows service
Set registry value
Unload driver

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push esi
mov esi, ecx
mov dword [ebp - 0x10], 0
push edi
push 0
push 0
mov eax, dword [esi]
add eax, dword [0x630eb4]
mov dword [ebp - 0x14], eax
lea eax, [ebp - 0x14]
push eax
call sym.SystemInformer.exe_PhCreateString3
push dword [0x630eb4]
mov edi, eax
push dword [0x630eb8]
push dword [edi + 4]
call fcn.00581150
mov eax, dword [edi + 4]
add esp, 0xc
add eax, dword [0x630eb4]
push dword [esi]
push dword [esi + 4]
push eax
call fcn.00581150
movzx eax, word [edi]
add esp, 0xc
mov word [ebp - 0x1c], ax
movzx eax, word [edi]
add ax, 2
mov word [ebp - 0x1a], ax
mov eax, dword [edi + 4]
mov dword [ebp - 0x18], eax
cmp dword [edi], 0xfffe
jbe 0x5157f7
lea ecx, [edi - 8]
or eax, 0xffffffff
lock xadd dword [ecx + 4], eax
dec eax
jne 0x5157ec
call fcn.004fbe40
mov eax, 0xc0000106
pop edi
pop esi
mov esp, ebp
pop ebp
ret
lea eax, [ebp - 0xc]
push eax
push 0
push 0
push edi
push 0
push 0x30006
lea eax, [ebp - 4]
push eax
call sym.SystemInformer.exe_PhCreateKey
mov esi, eax
test esi, esi
js 0x5158ef
cmp dword ds:[ebp - 0xc], 1
jne 0x5158ca
push 4
lea eax, [ebp - 8]
mov dword [ebp - 8], 1
push eax
push 4
push 0
lea eax, [ebp - 0x14]
mov dword [ebp - 0x14], 0x1a0018
push eax
push dword [ebp - 4]
mov dword [ebp - 0x10], str.ErrorControl
call dword [sym.imp.ntdll.dll_NtSetValueKey]
push 4
lea eax, [ebp - 8]
mov dword [ebp - 0x14], 0xc000a
push eax
push 4
push 0
lea eax, [ebp - 0x14]
mov dword [ebp - 0x10], 0x6064ec
push eax
push dword [ebp - 4]
call dword [sym.imp.ntdll.dll_NtSetValueKey]
push 4
lea eax, [ebp - 8]
mov dword [ebp - 0x14], 0xa0008
push eax
push 4
push 0
lea eax, [ebp - 0x14]
mov dword [ebp - 0x10], str.Type
push eax
push dword [ebp - 4]
call dword [sym.imp.ntdll.dll_NtSetValueKey]
mov eax, dword [0x630f2c]
add eax, 2
mov dword [ebp - 0x14], 0x140012
push eax
push dword [0x630f30]
lea eax, [ebp - 0x14]
mov dword [ebp - 0x10], str.ImagePath
push 1
push 0
push eax
push dword [ebp - 4]
call dword [sym.imp.ntdll.dll_NtSetValueKey]
lea eax, [ebp - 0x1c]
push eax
call dword [sym.imp.ntdll.dll_NtUnloadDriver]
cmp dword [ebp - 0xc], 1
mov esi, eax
jne 0x5158e6
push dword ds:[ebp - 4]
call dword [sym.imp.ntdll.dll_NtDeleteKey]
push dword [ebp - 4]
call dword [sym.imp.ntdll.dll_NtClose]
lea ecx, [edi - 8]
or eax, 0xffffffff
lock xadd dword [ecx + 4], eax
dec eax
jne 0x515905
lea ecx, [ecx]
call fcn.004fbe40
pop edi
mov eax, esi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x516820
Capabilities:
Get system information on windows
Make suspicious ntquerysysteminformation call

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
push 0x800
push 4
push dword [0x633f94]
mov dword [ebp - 4], 0x800
call dword [sym.imp.ntdll.dll_RtlAllocateHeap]
mov esi, eax
lea eax, [ebp - 4]
push eax
push dword [ebp - 4]
push esi
push 0xb
call dword [sym.imp.ntdll.dll_NtQuerySystemInformation]
mov ecx, eax
cmp ecx, 0xc0000004
jne 0x51688f
push esi
push 0
push dword [0x633f94]
call dword [sym.imp.ntdll.dll_RtlFreeHeap]
push dword [ebp - 4]
push 4
push dword [0x633f94]
call dword [sym.imp.ntdll.dll_RtlAllocateHeap]
mov esi, eax
lea eax, [ebp - 4]
push eax
push dword [ebp - 4]
push esi
push 0xb
call dword [sym.imp.ntdll.dll_NtQuerySystemInformation]
mov ecx, eax
lfence
test ecx, ecx
js 0x51689b
mov eax, dword [ebp + 8]
mov dword [eax], esi
mov eax, ecx
pop esi
mov esp, ebp
pop ebp
ret 4

Function at 0x5168c0
Capabilities:
Get system information on windows
Make suspicious ntquerysysteminformation call

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x130
mov eax, dword [0x62d040]
xor eax, ebp
mov dword [ebp - 4], eax
push 0x120
lea eax, [ebp - 0x128]
push 0
push eax
call fcn.00580ff0
add esp, 0xc
mov dword [ebp - 0x12c], 0x120
lea eax, [ebp - 0x12c]
push eax
push 0x120
lea eax, [ebp - 0x128]
push eax
push 0xb
call dword [sym.imp.ntdll.dll_NtQuerySystemInformation]
test eax, eax
je 0x516954
cmp eax, 0xc0000004
jne 0x516954
cmp dword [ebp - 0x128], 1
jb 0x516954
lea ecx, [ebp - 0x108]
lea edx, [ecx + 1]
jmp 0x516930
mov al, byte [ecx]
inc ecx
test al, al
jne 0x516930
sub ecx, edx
lea eax, [ebp - 0x108]
push ecx
push eax
call sym.SystemInformer.exe_PhConvertUtf8ToUtf16Ex
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0057ee0f
mov esp, ebp
pop ebp
ret
mov ecx, dword ds:[ebp - 4]
xor eax, eax
xor ecx, ebp
call fcn.0057ee0f
mov esp, ebp
pop ebp
ret