joyce8/EMBER2024-capa huggingface dataset:
Function at 0x5090e0
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.005823b0
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 0x509157
call dword [sym.imp.USER32.dll_EmptyClipboard]
test eax, eax
je 0x509157
push ebx
push 0xd
call dword [sym.imp.USER32.dll_SetClipboardData]
test eax, eax
je 0x509157
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 0x50ada0
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 0x50bd80
Capabilities:
Get file attributes
Set file attributes

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x4c
mov eax, dword [0x62e040]
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 0x50bdeb
lfence
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x48]
xor ecx, esp
call fcn.005802ef
mov esp, ebp
pop ebp
ret 0x18
test byte [0x631cdc], 1
jne 0x50be1b
mov esi, 0x631cdc
lock bts dword [esi], 0x1f
setb al
test al, al
je 0x50bef1
test byte [0x631cdc], 1
jne 0x50be1b
xor edx, edx
mov ecx, esi
call sym.SystemInformer.exe_PhfWaitForEvent
push dword [0x635070]
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 0x50bf75
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 0x50bed1
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 0x50bf75
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 0x50bf75
lfence
lea ecx, [esi - 8]
or eax, 0xffffffff
lock xadd dword [ecx + 4], eax
dec eax
jne 0x50bf7a
call fcn.004fc020
jmp 0x50bf7a
push dword [0x634efc]
push 0x28
call sym.SystemInformer.exe_PhCreateObject
mov edx, eax
mov ecx, 1
mov word [edx], cx
lock xadd dword [0x634ef8], ecx
inc ecx
dec cl
mov dword [edx + 4], 0
movzx eax, cl
mov byte [edx + 2], cl
mov dword [edx + 8], 0x50c0c0
mov dword [edx + 0xc], 0x616cc4
mov dword [eax*4 + 0x6374c0], edx
lea eax, [edx + 0x10]
test al, 7
jne 0x50bf6a
xor ecx, ecx
mov dword [0x635070], 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 0x50be1b
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.005802ef
mov esp, ebp
pop ebp
ret 0x18
Function at 0x50c140
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 0x50c190
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 0x50c174
push eax
lfence
call dword [sym.imp.ntdll.dll_RtlRaiseStatus]
mov eax, dword [esi + 8]
cmp eax, dword [ebp - 8]
jne 0x50c185
mov eax, dword ds:[esi + 0xc]
cmp eax, dword [ebp - 4]
je 0x50c190
push 0xc00000e5
call dword [sym.imp.ntdll.dll_RtlRaiseStatus]
pop esi
mov esp, ebp
pop ebp
ret 4

Function at 0x50c200
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 0x50c24d
push 0
push 0
push dword [edi]
call dword [sym.imp.ntdll.dll_NtWaitForSingleObject]
test eax, eax
js 0x50c266
mov eax, dword [ebp - 8]
test eax, eax
js 0x50c266
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 0x50c266
mov dword [edx], ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret 8
Function at 0x50c280
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 0x50c2f9
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 0x50c2d2
push ebx
push ebx
push dword [esi]
call dword [sym.imp.ntdll.dll_NtWaitForSingleObject]
test eax, eax
js 0x50c433
mov eax, dword [ebp - 0xc]
test eax, eax
js 0x50c433
mov ecx, dword [ebp - 8]
add dword [esi + 8], ecx
mov edx, dword [ebp + 0x14]
adc dword [esi + 0xc], ebx
test edx, edx
je 0x50c433
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 0x50c3cd
mov ecx, dword [esi + 0x20]
lea edi, [esi + 0x10]
test ecx, ecx
je 0x50c32a
mov edx, dword [edi]
push ecx
mov ecx, esi
call fcn.0050c440
mov edi, edi
test eax, eax
js 0x50c34f
mov eax, dword [ebp + 0x10]
mov dword [esi + 0x20], ebx
cmp eax, dword [esi + 0x14]
jb 0x50c35b
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.0050c200
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 0x50c375
mov ecx, esi
call fcn.0050c1a0
test eax, eax
js 0x50c34f
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.0050c200
mov ebx, eax
test ebx, ebx
jns 0x50c397
pop edi
pop esi
lfence
pop ebx
mov esp, ebp
pop ebp
ret 0x10
mov edi, dword [ebp - 8]
test edi, edi
jne 0x50c3b9
mov eax, dword [ebp + 0x14]
lfence
test eax, eax
je 0x50c431
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 0x50c3d0
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.005823b0
add dword [esi + 0x18], edi
add esp, 0xc
mov ecx, dword [ebp + 0x10]
cmp edi, ecx
jae 0x50c428
mov eax, dword [esi + 0x1c]
cmp eax, dword [esi + 0x14]
jne 0x50c428
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.0050c200
mov ebx, eax
test ebx, ebx
js 0x50c431
add edi, dword [ebp - 8]
mov dword [esi + 0x18], 0
mov dword [esi + 0x1c], 0
mov eax, dword [ebp + 0x14]
test eax, eax
je 0x50c431
mov dword [eax], edi
mov eax, ebx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x10
Function at 0x50c440
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 0x50c48d
push 0
push 0
push dword [edi]
call dword [sym.imp.ntdll.dll_NtWaitForSingleObject]
test eax, eax
js 0x50c4a4
mov ecx, dword [ebp - 0xc]
test ecx, ecx
js 0x50c4a2
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 0x50c620
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 0x50c67e
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 0x50c670
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 0x50c67e
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 0x50c740
Capabilities:
Get file attributes
Set file attributes

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x4c
mov eax, dword [0x62e040]
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 0x50c7be
sub eax, 1
je 0x50c79a
sub eax, 1
jne 0x50c7c9
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 0x50c7a7
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 0x50c7c9
lfence
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x48]
xor ecx, esp
call fcn.005802ef
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 0x50c7fc
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 0x50c7fc
lfence
mov ecx, dword [esp + 0x54]
mov eax, edi
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.005802ef
mov esp, ebp
pop ebp
ret 4
Function at 0x512f20
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
cmp dword [0x636e88], 5
push edi
jne 0x512fda
push esi
push 0x636e70
call dword [sym.imp.ntdll.dll_RtlInterlockedPopEntrySList]
mov esi, eax
test esi, esi
je 0x512f4d
lock dec dword [0x636e78]
jmp 0x512f68
mov eax, dword [0x636e80]
add eax, 8
push eax
push 4
push dword [0x635044]
call dword [sym.imp.ntdll.dll_RtlAllocateHeap]
mov esi, eax
push ebx
mov edx, 6
lea ecx, [esi + 8]
call fcn.00573880
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.00539780
mov edi, eax
test edi, edi
js 0x512f96
lfence
mov edi, dword [esi + 0x18]
mov eax, dword [0x636e78]
pop ebx
push esi
cmp eax, dword [0x636e7c]
jae 0x512fbc
push 0x636e70
call dword [sym.imp.ntdll.dll_RtlInterlockedPushEntrySList]
lock inc dword [0x636e78]
jmp 0x512fca
push 0
push dword [0x635044]
call dword [sym.imp.ntdll.dll_RtlFreeHeap]
pop esi
cmp edi, 0xc00000bb
je 0x512fda
mov eax, edi
pop edi
pop ebp
ret 8
pop edi
pop ebp
jmp dword [sym.imp.ntdll.dll_NtTerminateProcess]

Function at 0x513240
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 [0x635044]
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 0x5132c1
push esi
push 0
push dword [0x635044]
call dword [sym.imp.ntdll.dll_RtlFreeHeap]
movzx eax, word [ebp - 0xe]
push eax
push 4
push dword [0x635044]
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 0x5132ca
lfence
jmp 0x513314
mov cx, word [ebp - 0x10]
test cx, cx
jne 0x5132f3
push esi
push 0
push dword [0x635044]
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 [0x635044]
call dword [sym.imp.ntdll.dll_RtlFreeHeap]
mov eax, edi
pop edi
pop esi
mov esp, ebp
pop ebp
ret 8
Function at 0x513340
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 0x513375
cmp dword [ebp - 4], 0
pop edi
setne cl
mov byte [esi], cl
pop esi
mov esp, ebp
pop ebp
ret
cmp dword [0x636e88], 2
jl 0x5133a3
push ecx
push 4
lea eax, [ebp - 8]
mov edx, 1
push eax
mov ecx, edi
call fcn.00524e20
mov edx, eax
test edx, edx
js 0x5133a3
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 0x5157a0
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 [0x635044]
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 0x5157f8
cmp esi, 0xc0000023
je 0x5157f8
cmp esi, 0xc0000004
jne 0x51581d
push ebx
push 0
push dword [0x635044]
call dword [sym.imp.ntdll.dll_RtlFreeHeap]
add edi, edi
push edi
push 4
push dword [0x635044]
call dword [sym.imp.ntdll.dll_RtlAllocateHeap]
mov esi, dword [ebp - 0xc]
jmp 0x5157c6
lea ecx, [ecx]
test esi, esi
js 0x515834
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 [0x635044]
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 0x515860
Capabilities:
Get file attributes

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x48
mov eax, dword [0x62e040]
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 0x5158a0
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.005802ef
mov esp, ebp
pop ebp
ret 8

Function at 0x5158c0
Capabilities:
Get file attributes

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x40
mov eax, dword [0x62e040]
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 0x515904
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.005802ef
mov esp, ebp
pop ebp
ret 8

Function at 0x515920
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 0x515950
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 0x515985
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 0x5159a0
Capabilities:
Set file attributes

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 0xc]
sub esp, 0x10
test eax, eax
je 0x5159b4
mov ecx, dword [eax]
mov eax, dword [eax + 4]
jmp 0x5159b8
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 0x5159e0
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 0x515a20
Capabilities:
Set file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
cmp dword [0x62ebb0], 0x6a
push esi
push edi
mov edi, ecx
jb 0x515a51
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 0x515aa1
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 0x515a9f
push 0x1000
push 4
push 0x10000
mov edx, edi
lea ecx, [ebp - 8]
lfence
call fcn.0051b8c0
test eax, eax
js 0x515a9f
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 0x5162c0
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 [0x631e54]
mov dword [ebp - 0x14], eax
lea eax, [ebp - 0x14]
push eax
call sym.SystemInformer.exe_PhCreateString3
push dword [0x631e54]
mov edi, eax
push dword [0x631e58]
push dword [edi + 4]
call fcn.005823b0
mov eax, dword [edi + 4]
add esp, 0xc
add eax, dword [0x631e54]
push dword [esi]
push dword [esi + 4]
push eax
call fcn.005823b0
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 0x516357
lea ecx, [edi - 8]
or eax, 0xffffffff
lock xadd dword [ecx + 4], eax
dec eax
jne 0x51634c
call fcn.004fc020
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 0x51644f
cmp dword ds:[ebp - 0xc], 1
jne 0x51642a
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], 0x6076d4
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 [0x631ecc]
add eax, 2
mov dword [ebp - 0x14], 0x140012
push eax
push dword [0x631ed0]
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 0x516446
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 0x516465
lea ecx, [ecx]
call fcn.004fc020
pop edi
mov eax, esi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x517380
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 [0x635044]
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 0x5173ef
push esi
push 0
push dword [0x635044]
call dword [sym.imp.ntdll.dll_RtlFreeHeap]
push dword [ebp - 4]
push 4
push dword [0x635044]
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 0x5173fb
mov eax, dword [ebp + 8]
mov dword [eax], esi
mov eax, ecx
pop esi
mov esp, ebp
pop ebp
ret 4

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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x130
mov eax, dword [0x62e040]
xor eax, ebp
mov dword [ebp - 4], eax
push 0x120
lea eax, [ebp - 0x128]
push 0
push eax
call fcn.00582250
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 0x5174b4
cmp eax, 0xc0000004
jne 0x5174b4
cmp dword [ebp - 0x128], 1
jb 0x5174b4
lea ecx, [ebp - 0x108]
lea edx, [ecx + 1]
jmp 0x517490
mov al, byte [ecx]
inc ecx
test al, al
jne 0x517490
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.005802ef
mov esp, ebp
pop ebp
ret
mov ecx, dword ds:[ebp - 4]
xor eax, eax
xor ecx, ebp
call fcn.005802ef
mov esp, ebp
pop ebp
ret