joyce8/EMBER2024-capa huggingface dataset:
Function at 0x50a540
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x5c
mov eax, dword [0x62d040]
xor eax, esp
mov dword [esp + 0x58], eax
push ebx
mov ebx, dword [ebp + 0xc]
push esi
mov esi, dword [ebp + 0x10]
push edi
mov edi, dword [ebp + 8]
mov dword [esp + 0xc], edi
test bl, 1
je 0x50a5f9
test bl, 2
je 0x50a59b
push 0x20
lea eax, [esp + 0x24]
push eax
push edi
call dword [sym.imp.USER32.dll_InternalGetWindowText]
mov edi, eax
test esi, esi
je 0x50a6ab
mov dword [esi], 0
jmp 0x50a6ab
push 0
push 0
lea eax, [esp + 0x14]
mov dword [esp + 0x18], 0
push eax
mov dword [esp + 0x18], 0x200
call sym.SystemInformer.exe_Ordinal_1331
mov ebx, eax
mov ecx, dword [ebx]
shr ecx, 1
inc ecx
push ecx
push dword [ebx + 4]
push edi
call dword [sym.imp.USER32.dll_InternalGetWindowText]
mov edi, eax
lea eax, [edi + edi]
mov dword [ebx], eax
test esi, esi
je 0x50a5dd
mov dword [esi], ebx
jmp 0x50a6ab
lea ecx, [ebx - 8]
or eax, 0xffffffff
lock xadd dword [ecx + 4], eax
dec eax
jne 0x50a6ab
call fcn.004fe0c0
jmp 0x50a6ab
push edi
call dword [sym.imp.USER32.dll_GetWindowTextLengthW]
mov edi, eax
mov dword [esp + 0x14], edi
test edi, edi
je 0x50a69f
test bl, 2
jne 0x50a69f
push 0
push 0
lea eax, [esp + 0x20]
mov dword [esp + 0x24], 0
lea ecx, [edi + edi]
push eax
mov dword [esp + 0x24], ecx
call sym.SystemInformer.exe_Ordinal_1331
mov edi, eax
mov ecx, dword [edi]
shr ecx, 1
inc ecx
push ecx
push dword [edi + 4]
push dword [esp + 0x14]
call dword [sym.imp.USER32.dll_GetWindowTextW]
test eax, eax
je 0x50a66b
test esi, esi
je 0x50a65f
mov dword [esi], edi
mov edi, dword [esp + 0x14]
jmp 0x50a6ab
push edi
call sym.SystemInformer.exe_Ordinal_1244
mov edi, dword [esp + 0x14]
jmp 0x50a6ab
test esi, esi
je 0x50a676
call sym.SystemInformer.exe_Ordinal_1430
mov dword [esi], eax
lea ecx, [edi - 8]
or eax, 0xffffffff
lock xadd dword [ecx + 4], eax
dec eax
jne 0x50a689
call fcn.004fe0c0
xor eax, eax
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x58]
xor ecx, esp
call fcn.00583f7f
mov esp, ebp
pop ebp
ret 0xc
nop
test esi, esi
je 0x50a6ab
call sym.SystemInformer.exe_Ordinal_1430
mov dword [esi], eax
mov ecx, dword [esp + 0x64]
mov eax, edi
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.00583f7f
mov esp, ebp
pop ebp
ret 0xc
Function at 0x50b100
Capabilities:
Open clipboard
Write clipboard data

Disassembly:
push ebx
push esi
push edi
mov edi, dword [esp + 0x14]
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.00586310
mov ecx, dword [edi]
add esp, 0xc
xor eax, eax
push esi
mov word [esi + ecx], ax
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
push dword [esp + 0x10]
call dword [sym.imp.USER32.dll_OpenClipboard]
test eax, eax
je 0x50b170
call dword [sym.imp.USER32.dll_EmptyClipboard]
test eax, eax
je 0x50b170
push ebx
push 0xd
call dword [sym.imp.USER32.dll_SetClipboardData]
nop
test eax, eax
je 0x50b170
call dword [sym.imp.USER32.dll_CloseClipboard]
pop edi
pop esi
pop ebx
ret 8
push ebx
call dword [sym.imp.KERNEL32.dll_GlobalFree]
pop edi
pop esi
pop ebx
ret 8

Function at 0x50bdc0
Capabilities:
Enumerate gui resources

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff0
sub esp, 0x1c
push esi
mov esi, edx
mov dword [esp + 0xc], 0
xorps xmm0, xmm0
movaps xmmword [esp + 0x10], xmm0
mov dword [esp + 0x18], ecx
mov byte [esp + 0x1d], 1
test esi, esi
je 0x50bdf1
mov ecx, esi
mov dword [esp + 0xc], ecx
jmp 0x50be09
push ecx
push 0x1000
lea eax, [esp + 0x14]
push eax
call sym.SystemInformer.exe_Ordinal_1560
mov ecx, dword [esp + 0xc]
test ecx, ecx
je 0x50be1f
cmp dword [0x62db64], 0x3e
jb 0x50be1f
call fcn.0050c160
mov byte [esp + 0x1c], al
lea eax, [esp + 0x10]
push eax
push 0x50bd00
call dword [sym.imp.USER32.dll_EnumWindows]
test esi, esi
jne 0x50be46
mov eax, dword [esp + 0xc]
test eax, eax
je 0x50be46
push eax
call dword [sym.imp.ntdll.dll_NtClose]
mov ecx, dword [esp + 0x14]
test ecx, ecx
mov eax, dword [esp + 0x10]
cmovne eax, ecx
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x50cf40
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 0x50dfa0
Capabilities:
Set file attributes

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x14
push ebx
mov ebx, dword [ebp + 0x1c]
push esi
push edi
push 0
lea eax, [ebx*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 dword [ebp + 0xc]
push eax
call sym.SystemInformer.exe_Ordinal_1469
nop
test eax, eax
jns 0x50dff0
lfence
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x18
test byte [0x630904], 1
jne 0x50e025
mov esi, 0x630904
lock bts dword [esi], 0x1f
setb al
test al, al
je 0x50e0f9
test byte [0x630904], 1
jne 0x50e025
xor edx, edx
mov ecx, esi
call sym.SystemInformer.exe_Ordinal_1388
push dword [0x633bbc]
push 0x28
call sym.SystemInformer.exe_Ordinal_1240
mov ecx, dword ds:[esp + 0x10]
mov esi, eax
mov eax, ebx
mov dword [esi + 8], 0
shl eax, 0xb
lea edi, [esi + 8]
not eax
mov dword [edi + 4], 0
mov dword [esi], ecx
and eax, 0x1000
mov dword [esi + 4], ebx
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 ebx, 0x10000
je 0x50e17d
push edi
push ecx
call sym.SystemInformer.exe_Ordinal_1511
test eax, eax
js 0x50e0d4
test byte ds:[esi + 4], 8
jne 0x50e17d
lfence
mov eax, dword [edi]
mov ecx, dword [edi + 4]
push 0xe
mov dword [esp + 0x14], eax
lea eax, [esp + 0x14]
push 8
push eax
lea eax, [esp + 0x24]
mov dword [esp + 0x20], ecx
push eax
push dword [esi]
call dword [sym.imp.ntdll.dll_NtSetInformationFile]
test eax, eax
jns 0x50e17d
lfence
lea ecx, [esi - 8]
or eax, 0xffffffff
lock xadd dword [ecx + 4], eax
dec eax
jne 0x50e185
call fcn.004fe0c0
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x18
push dword [0x633a48]
push 0x28
call sym.SystemInformer.exe_Ordinal_1240
mov edx, eax
mov ecx, 1
mov word [edx], cx
lock xadd dword [0x633a44], ecx
inc ecx
dec cl
mov dword [edx + 4], 0
movzx eax, cl
mov byte [edx + 2], cl
mov dword [edx + 8], 0x50e2c0
mov dword [edx + 0xc], 0x61d5b4
mov dword [eax*4 + 0x6360e0], edx
lea eax, [edx + 0x10]
test al, 7
jne 0x50e172
xorps xmm0, xmm0
mov dword [0x633bbc], edx
movq qword [eax], xmm0
mov ecx, esi
mov dword [eax + 8], 0
mov dword [eax + 0xc], 0x10
mov dword [eax + 0x10], 0x30
call sym.SystemInformer.exe_Ordinal_1358
jmp 0x50e025
push 0x80000002
call dword [sym.imp.ntdll.dll_RtlRaiseStatus]
mov eax, dword [ebp + 8]
lfence
mov dword [eax], esi
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret 0x18

Function at 0x50e340
Capabilities:
Get file attributes

Disassembly:
sub esp, 0x10
push esi
mov esi, dword [esp + 0x18]
test byte [esi + 4], 0xc
jne 0x50e391
push 0xe
push 8
lea eax, [esp + 0xc]
push eax
lea eax, [esp + 0x18]
push eax
push dword [esi]
call dword [sym.imp.ntdll.dll_NtQueryInformationFile]
test eax, eax
jns 0x50e374
push eax
lfence
call dword [sym.imp.ntdll.dll_RtlRaiseStatus]
mov eax, dword [esi + 8]
cmp eax, dword [esp + 4]
jne 0x50e386
mov eax, dword [esi + 0xc]
cmp eax, dword [esp + 8]
je 0x50e391
push 0xc00000e5
call dword [sym.imp.ntdll.dll_RtlRaiseStatus]
pop esi
add esp, 0x10
ret 4
Function at 0x50e400
Capabilities:
Read file on windows

Disassembly:
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 [esp + 0x1c]
lea eax, [esp + 0x14]
push edx
push eax
push ecx
push ecx
push ecx
push dword [edi]
call dword [sym.imp.ntdll.dll_NtReadFile]
cmp eax, 0x103
jne 0x50e44e
push 0
push 0
push dword [edi]
call dword [sym.imp.ntdll.dll_NtWaitForSingleObject]
test eax, eax
js 0x50e467
mov eax, dword [esp + 8]
test eax, eax
js 0x50e467
mov ecx, dword [esp + 0xc]
add dword [edi + 8], ecx
mov edx, dword [esp + 0x18]
adc dword [edi + 0xc], 0
test edx, edx
je 0x50e467
mov dword [edx], ecx
pop edi
pop esi
add esp, 8
ret 8
Function at 0x50e480
Capabilities:
Read file on windows

Disassembly:
sub esp, 0xc
push ebx
push esi
mov esi, dword [esp + 0x18]
xor ebx, ebx
push edi
mov eax, dword [esi + 4]
test al, 2
je 0x50e4fd
push ebx
test al, 8
mov ecx, ebx
lea eax, [esi + 8]
cmove eax, ecx
push eax
push dword [esp + 0x2c]
lea eax, [esp + 0x1c]
push dword [esp + 0x2c]
push eax
push ebx
push ebx
push ebx
push dword [esi]
call dword [sym.imp.ntdll.dll_NtReadFile]
cmp eax, 0x103
jne 0x50e4d4
push ebx
push ebx
push dword [esi]
call dword [sym.imp.ntdll.dll_NtWaitForSingleObject]
test eax, eax
js 0x50e643
mov eax, dword [esp + 0x10]
test eax, eax
js 0x50e643
mov ecx, dword [esp + 0x14]
add dword [esi + 8], ecx
mov edx, dword [esp + 0x28]
adc dword [esi + 0xc], ebx
test edx, edx
je 0x50e643
pop edi
pop esi
mov dword [edx], ecx
pop ebx
add esp, 0xc
ret 0x10
mov edi, dword [esi + 0x1c]
mov ecx, dword [esi + 0x18]
push ebp
mov ebp, dword [esp + 0x28]
sub edi, ecx
jne 0x50e5da
mov eax, dword [esi + 0x20]
lea edi, [esi + 0x10]
test eax, eax
je 0x50e52c
mov edx, dword ds:[edi]
mov ecx, esi
push eax
call fcn.0050e660
test eax, eax
js 0x50e569
mov dword [esi + 0x20], ebx
cmp ebp, dword [esi + 0x14]
jb 0x50e554
push dword [esp + 0x2c]
mov edx, dword [esp + 0x28]
mov ecx, esi
lfence
push ebp
mov dword [esi + 0x18], ebx
mov dword [esi + 0x1c], ebx
call fcn.0050e400
pop ebp
pop edi
pop esi
pop ebx
add esp, 0xc
ret 0x10
mov dword [esp + 0x10], edi
cmp dword [edi], ebx
jne 0x50e57d
mov ecx, esi
call fcn.0050e3a0
test eax, eax
jns 0x50e576
pop ebp
pop edi
pop esi
lfence
pop ebx
add esp, 0xc
ret 0x10
lea eax, [esi + 0x10]
mov dword [esp + 0x10], eax
mov edx, dword [edi]
lea eax, [esp + 0x14]
push eax
push dword [esi + 0x14]
mov ecx, esi
call fcn.0050e400
mov ebx, eax
test ebx, ebx
jns 0x50e5a3
pop ebp
pop edi
pop esi
lfence
pop ebx
add esp, 0xc
ret 0x10
mov edi, dword [esp + 0x14]
test edi, edi
jne 0x50e5c8
mov eax, dword [esp + 0x2c]
lfence
test eax, eax
je 0x50e640
pop ebp
mov dword [eax], edi
mov eax, ebx
pop edi
pop esi
pop ebx
add esp, 0xc
ret 0x10
mov eax, dword [esp + 0x10]
xor ecx, ecx
mov dword [esi + 0x18], 0
mov dword [esi + 0x1c], edi
jmp 0x50e5dd
lea eax, [esi + 0x10]
mov eax, dword [eax]
cmp edi, ebp
cmova edi, ebp
add eax, ecx
push edi
push eax
push dword [esp + 0x2c]
call fcn.00586310
add dword [esi + 0x18], edi
add esp, 0xc
cmp edi, ebp
jae 0x50e636
mov eax, dword ds:[esi + 0x1c]
cmp eax, dword [esi + 0x14]
jne 0x50e636
mov edx, dword [esp + 0x24]
lea eax, [esp + 0x14]
push eax
sub ebp, edi
mov ecx, esi
push ebp
lea edx, [edi + edx]
lfence
call fcn.0050e400
mov ebx, eax
test ebx, ebx
js 0x50e640
add edi, dword [esp + 0x14]
mov dword [esi + 0x18], 0
mov dword [esi + 0x1c], 0
mov eax, dword [esp + 0x2c]
test eax, eax
je 0x50e640
mov dword [eax], edi
mov eax, ebx
pop ebp
pop edi
pop esi
pop ebx
add esp, 0xc
ret 0x10
Function at 0x50e660
Capabilities:
Write file on windows

Disassembly:
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 [esp + 0x1c]
lea eax, [esp + 0x14]
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 0x50e6ae
push 0
push 0
push dword [edi]
call dword [sym.imp.ntdll.dll_NtWaitForSingleObject]
test eax, eax
js 0x50e6c6
mov ecx, dword [esp + 8]
test ecx, ecx
js 0x50e6c4
mov eax, dword [esp + 0xc]
add dword [edi + 8], eax
adc dword [edi + 0xc], 0
or dword [edi + 4], 0x80000000
mov eax, ecx
pop edi
pop esi
add esp, 8
ret 4

Function at 0x50e840
Capabilities:
Set file attributes

Disassembly:
sub esp, 0x18
push esi
mov esi, ecx
xor ecx, ecx
mov eax, dword [esi + 0x1c]
mov edx, dword [esi + 0x18]
sub eax, edx
je 0x50e898
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 0x50e88a
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 0x50e898
lfence
mov eax, ecx
pop esi
add esp, 0x18
ret
mov dword [esi + 0x18], 0
mov eax, ecx
mov dword [esi + 0x1c], 0
pop esi
add esp, 0x18
ret

Function at 0x50e960
Capabilities:
Set file attributes

Disassembly:
mov eax, dword [esp + 4]
sub esp, 0x10
push ebx
push ebp
push esi
push edi
xor edi, edi
mov ebx, edx
mov esi, ecx
sub eax, edi
je 0x50e9b7
sub eax, 1
je 0x50e9aa
sub eax, 1
jne 0x50e9c2
lea ebp, [esi + 8]
push ebp
push dword [esi]
call sym.SystemInformer.exe_Ordinal_1511
mov edi, eax
test edi, edi
jns 0x50e99d
lfence
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x10
ret 4
mov eax, dword [ebx]
add dword [ebp], eax
mov eax, dword [ebx + 4]
adc dword [ebp + 4], eax
jmp 0x50e9c2
mov eax, dword [ebx]
add dword [esi + 8], eax
mov eax, dword [ebx + 4]
adc dword [esi + 0xc], eax
jmp 0x50e9c2
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 0x50e9f5
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 + 0x24]
mov dword [esp + 0x20], ecx
push eax
push dword [esi]
call dword [sym.imp.ntdll.dll_NtSetInformationFile]
mov edi, eax
test edi, edi
jns 0x50e9f5
lfence
mov eax, edi
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x10
ret 4
Function at 0x514a80
Capabilities:
Terminate process

Disassembly:
cmp dword [0x635a90], 5
push ebp
mov ebp, dword [esp + 0xc]
push edi
jne 0x514b39
push esi
push 0x635a78
call dword [sym.imp.ntdll.dll_RtlInterlockedPopEntrySList]
mov esi, eax
test esi, esi
je 0x514aae
lock dec dword [0x635a80]
jmp 0x514ac8
mov eax, dword [0x635a88]
add eax, 8
push eax
push 4
push dword [0x633a74]
call dword [sym.imp.ntdll.dll_RtlAllocateHeap]
mov esi, eax
push ebx
mov edx, 6
lea ecx, [esi + 8]
call fcn.00577760
mov eax, dword [esp + 0x14]
lea ecx, [esi + 8]
mov dword [esi + 0x1c], eax
mov dword [esi + 0x20], ebp
call fcn.0053ac80
mov edi, eax
test edi, edi
js 0x514af1
mov edi, dword [esi + 0x18]
mov eax, dword [0x635a80]
pop ebx
push esi
cmp eax, dword [0x635a84]
jae 0x514b1c
push 0x635a78
call dword [sym.imp.ntdll.dll_RtlInterlockedPushEntrySList]
lock inc dword [0x635a80]
jmp 0x514b2a
push 0
push dword [0x633a74]
call dword [sym.imp.ntdll.dll_RtlFreeHeap]
pop esi
test edi, edi
js 0x514b39
mov eax, edi
pop edi
lfence
pop ebp
ret 8
push ebp
push dword [esp + 0x10]
call dword [sym.imp.ntdll.dll_NtTerminateProcess]
pop edi
pop ebp
ret 8

Function at 0x514da0
Capabilities:
Get system information on windows

Disassembly:
sub esp, 0x1c
push esi
push edi
push 0x100
push 4
push dword [0x633a74]
call dword [sym.imp.ntdll.dll_RtlAllocateHeap]
mov ecx, dword [esp + 0x28]
mov esi, eax
push 0
push 0xc
lea eax, [esp + 0x1c]
mov dword [esp + 0x1c], ecx
push eax
push 0x58
mov dword [esp + 0x28], 0x1000000
mov dword [esp + 0x2c], esi
call dword [sym.imp.ntdll.dll_NtQuerySystemInformation]
mov edi, eax
cmp edi, 0xc0000004
jne 0x514e28
push esi
push 0
push dword [0x633a74]
call dword [sym.imp.ntdll.dll_RtlFreeHeap]
movzx eax, word [esp + 0x1a]
push eax
push 4
push dword [0x633a74]
call dword [sym.imp.ntdll.dll_RtlAllocateHeap]
push 0
mov esi, eax
lea eax, [esp + 0x18]
push 0xc
push eax
push 0x58
mov dword [esp + 0x2c], esi
call dword [sym.imp.ntdll.dll_NtQuerySystemInformation]
mov edi, eax
test edi, edi
jns 0x514e31
lfence
jmp 0x514e7d
mov cx, word [esp + 0x18]
test cx, cx
jne 0x514e57
push esi
push 0
push dword [0x633a74]
call dword [sym.imp.ntdll.dll_RtlFreeHeap]
mov eax, 0xc0000001
pop edi
pop esi
add esp, 0x1c
ret 8
lfence
mov eax, dword [esp + 0x1c]
mov dword [esp + 0x10], eax
movzx eax, cx
push 0
mov dword [esp + 0x10], eax
lea eax, [esp + 0x10]
push 0
push eax
call sym.SystemInformer.exe_Ordinal_1331
mov ecx, dword [esp + 0x2c]
mov dword [ecx], eax
push esi
push 0
push dword [0x633a74]
call dword [sym.imp.ntdll.dll_RtlFreeHeap]
mov eax, edi
pop edi
pop esi
add esp, 0x1c
ret 8
Function at 0x514ea0
Capabilities:
Check processdebugport

Disassembly:
sub esp, 8
lea eax, [esp]
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 0x514ed4
cmp dword [esp + 8], 0
pop edi
setne cl
mov byte [esi], cl
pop esi
add esp, 8
ret
cmp dword [0x635a90], 2
jl 0x514f04
push ecx
push 4
lea eax, [esp + 0x14]
mov edx, 1
push eax
mov ecx, edi
call fcn.00525000
mov edx, eax
test edx, edx
js 0x514f04
mov eax, dword [esp + 0xc]
shr eax, 8
not al
and al, 1
mov byte [esi], al
pop edi
mov eax, edx
pop esi
add esp, 8
ret
Function at 0x517240
Capabilities:
Get file attributes

Disassembly:
sub esp, 0x10
push ebx
push ebp
push esi
push edi
mov edi, 0x200
mov esi, ecx
push edi
push 4
push dword [0x633a74]
mov ebp, edx
mov dword [esp + 0x20], esi
call dword [sym.imp.ntdll.dll_RtlAllocateHeap]
push ebp
push edi
mov ebx, eax
lea eax, [esp + 0x20]
push ebx
push eax
push esi
call dword [sym.imp.ntdll.dll_NtQueryInformationFile]
mov esi, eax
cmp esi, 0x80000005
je 0x517298
cmp esi, 0xc0000023
je 0x517298
cmp esi, 0xc0000004
jne 0x5172be
push ebx
push 0
push dword [0x633a74]
call dword [sym.imp.ntdll.dll_RtlFreeHeap]
add edi, edi
push edi
push 4
push dword [0x633a74]
call dword [sym.imp.ntdll.dll_RtlAllocateHeap]
mov esi, dword [esp + 0x14]
jmp 0x517266
nop
test esi, esi
js 0x5172d6
mov eax, dword [esp + 0x24]
mov dword [eax], ebx
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x10
ret 4
push ebx
push 0
push dword [0x633a74]
call dword [sym.imp.ntdll.dll_RtlFreeHeap]
pop edi
mov eax, esi
pop esi
pop ebp
pop ebx
add esp, 0x10
ret 4

Function at 0x517300
Capabilities:
Get file attributes

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff0
sub esp, 0x5c
mov eax, dword [0x62d040]
xor eax, esp
mov dword [esp + 0x58], eax
mov eax, dword [ebp + 8]
lea ecx, [esp + 0xc]
push esi
mov esi, 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 0x517359
movups xmm0, xmmword [esp + 0x10]
movups xmmword [esi], xmm0
movups xmm0, xmmword [esp + 0x20]
movups xmmword [esi + 0x10], xmm0
movups xmm0, xmmword [esp + 0x30]
movups xmmword [esi + 0x20], xmm0
movq xmm0, qword [esp + 0x40]
movq qword [esi + 0x30], xmm0
mov ecx, dword [esp + 0x5c]
pop esi
xor ecx, esp
call fcn.00583f7f
mov esp, ebp
pop ebp
ret 8

Function at 0x517380
Capabilities:
Get file attributes

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff0
sub esp, 0x3c
mov eax, dword [0x62d040]
xor eax, esp
mov dword [esp + 0x38], eax
mov eax, dword [ebp + 8]
lea ecx, [esp + 0xc]
push esi
mov esi, dword [ebp + 0xc]
push 5
push 0x18
push ecx
lea ecx, [esp + 0x14]
push ecx
push eax
call dword [sym.imp.ntdll.dll_NtQueryInformationFile]
mov edx, eax
test edx, edx
js 0x5173dd
movq xmm0, qword [esp + 0x20]
movaps xmm1, xmmword [esp + 0x10]
movq qword [esp + 0x20], xmm0
movaps xmm0, xmm1
psrldq xmm0, 8
psrldq xmm1, 0xc
movd dword [esi], xmm0
movd dword [esi + 4], xmm1
mov ecx, dword [esp + 0x3c]
pop esi
xor ecx, esp
call fcn.00583f7f
mov esp, ebp
pop ebp
ret 8

Function at 0x517400
Capabilities:
Set file attributes

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

Disassembly:
sub esp, 0x10
lea eax, [esp]
push esi
push 0xe
push 8
push eax
lea eax, [esp + 0x18]
push eax
push dword [esp + 0x28]
call dword [sym.imp.ntdll.dll_NtQueryInformationFile]
mov esi, eax
lfence
test esi, esi
js 0x517477
mov eax, dword [esp + 0x1c]
mov ecx, dword [esp + 4]
mov edx, dword [esp + 8]
mov dword [eax], ecx
mov dword [eax + 4], edx
mov eax, esi
pop esi
add esp, 0x10
ret 8

Function at 0x517480
Capabilities:
Set file attributes

Disassembly:
mov eax, dword [esp + 8]
sub esp, 0x10
test eax, eax
je 0x517492
mov ecx, dword [eax]
mov eax, dword [eax + 4]
jmp 0x5174a1
xorps xmm0, xmm0
movlpd qword [esp], xmm0
mov eax, dword [esp + 4]
mov ecx, dword [esp]
push 0xe
mov dword [esp + 8], eax
lea eax, [esp + 4]
push 8
push eax
lea eax, [esp + 0x14]
mov dword [esp + 0xc], ecx
push eax
push dword [esp + 0x24]
call dword [sym.imp.ntdll.dll_NtSetInformationFile]
add esp, 0x10
ret 8

Function at 0x5174e0
Capabilities:
Set file attributes

Disassembly:
sub esp, 0x10
mov eax, dword [esp + 0x18]
push 0x13
push 8
mov ecx, dword [eax]
mov eax, dword [eax + 4]
mov dword [esp + 0xc], eax
lea eax, [esp + 8]
push eax
lea eax, [esp + 0x14]
mov dword [esp + 0xc], ecx
push eax
push dword [esp + 0x24]
call dword [sym.imp.ntdll.dll_NtSetInformationFile]
add esp, 0x10
ret 8

Function at 0x517520
Capabilities:
Set file attributes

Disassembly:
sub esp, 0x34
cmp dword [0x62db64], 0x6a
push esi
push edi
mov edi, ecx
jb 0x517555
push 0x40
push 4
lea eax, [esp + 0x14]
mov dword [esp + 0x14], 0x13
push eax
lea eax, [esp + 0x1c]
push eax
push edi
call dword [sym.imp.ntdll.dll_NtSetInformationFile]
test eax, eax
jns 0x5175f8
push 0xd
push 1
lea eax, [esp + 0x13]
push eax
lea eax, [esp + 0x1c]
push eax
lfence
push edi
mov byte [esp + 0x1f], 1
call dword [sym.imp.ntdll.dll_NtSetInformationFile]
mov esi, eax
test esi, esi
jns 0x5175f6
push 0
push 0
push 0x1000
push 1
push 4
push 0
lea eax, [esp + 0x28]
mov dword [esp + 0x38], 0x18
mov dword [esp + 0x40], eax
xorps xmm0, xmm0
push 0
lea eax, [esp + 0x34]
movlpd qword [esp + 0x2c], xmm0
push eax
lea eax, [esp + 0x40]
mov dword [esp + 0x44], edi
push eax
push 0x10000
lea eax, [esp + 0x34]
mov dword [esp + 0x54], 0x40
push eax
mov dword [esp + 0x5c], 0
mov dword [esp + 0x60], 0
call dword [sym.imp.ntdll.dll_NtCreateFile]
cmp eax, 0xc0000043
je 0x5175f6
nop
test eax, eax
js 0x5175f6
push dword [esp + 0xc]
call dword [sym.imp.ntdll.dll_NtClose]
xor eax, eax
pop edi
pop esi
add esp, 0x34
ret
mov eax, esi
pop edi
pop esi
add esp, 0x34
ret