joyce8/EMBER2024-capa huggingface dataset:
Function at 0x511f00
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
cmp dword [0x635f50], 5
push edi
jne 0x511fba
push esi
push 0x635f38
call dword [sym.imp.ntdll.dll_RtlInterlockedPopEntrySList]
mov esi, eax
test esi, esi
je 0x511f2d
lock dec dword [0x635f40]
jmp 0x511f48
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.00571ec0
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.00538620
mov edi, eax
test edi, edi
js 0x511f76
lfence
mov edi, dword [esi + 0x18]
mov eax, dword [0x635f40]
pop ebx
push esi
cmp eax, dword [0x635f44]
jae 0x511f9c
push 0x635f38
call dword [sym.imp.ntdll.dll_RtlInterlockedPushEntrySList]
lock inc dword [0x635f40]
jmp 0x511faa
push 0
push dword [0x633f94]
call dword [sym.imp.ntdll.dll_RtlFreeHeap]
pop esi
cmp edi, 0xc00000bb
je 0x511fba
mov eax, edi
pop edi
pop ebp
ret 8
pop edi
pop ebp
jmp dword [sym.imp.ntdll.dll_NtTerminateProcess]

Function at 0x512220
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 0x5122a1
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 0x5122aa
lfence
jmp 0x5122f4
mov cx, word [ebp - 0x10]
test cx, cx
jne 0x5122d3
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 0x512320
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 0x512355
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 0x512383
push ecx
push 4
lea eax, [ebp - 8]
mov edx, 1
push eax
mov ecx, edi
call fcn.00523d60
mov edx, eax
test edx, edx
js 0x512383
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 0x514780
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 0x5147d8
cmp esi, 0xc0000023
je 0x5147d8
cmp esi, 0xc0000004
jne 0x5147fd
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 0x5147a6
lea ecx, [ecx]
test esi, esi
js 0x514814
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 0x514840
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 0x514880
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.0057e94f
mov esp, ebp
pop ebp
ret 8

Function at 0x5148a0
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 0x5148e4
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.0057e94f
mov esp, ebp
pop ebp
ret 8

Function at 0x514900
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 0x514930
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 0x514965
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 0x514980
Capabilities:
Set file attributes

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 0xc]
sub esp, 0x10
test eax, eax
je 0x514994
mov ecx, dword [eax]
mov eax, dword [eax + 4]
jmp 0x514998
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 0x5149c0
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 0x514a00
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 0x514a31
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 0x514a81
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 0x514a7f
push 0x1000
push 4
push 0x10000
mov edx, edi
lea ecx, [ebp - 8]
lfence
call fcn.0051a8a0
test eax, eax
js 0x514a7f
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 0x5152a0
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 [0x630ea4]
mov dword [ebp - 0x14], eax
lea eax, [ebp - 0x14]
push eax
call sym.SystemInformer.exe_PhCreateString3
push dword [0x630ea4]
mov edi, eax
push dword [0x630ea8]
push dword [edi + 4]
call fcn.00580c90
mov eax, dword [edi + 4]
add esp, 0xc
add eax, dword [0x630ea4]
push dword [esi]
push dword [esi + 4]
push eax
call fcn.00580c90
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 0x515337
lea ecx, [edi - 8]
or eax, 0xffffffff
lock xadd dword [ecx + 4], eax
dec eax
jne 0x51532c
call fcn.004fbd80
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 0x51542f
cmp dword ds:[ebp - 0xc], 1
jne 0x51540a
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], 0x606534
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 [0x630f1c]
add eax, 2
mov dword [ebp - 0x14], 0x140012
push eax
push dword [0x630f20]
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 0x515426
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 0x515445
lea ecx, [ecx]
call fcn.004fbd80
pop edi
mov eax, esi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x516360
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 0x5163cf
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 0x5163db
mov eax, dword [ebp + 8]
mov dword [eax], esi
mov eax, ecx
pop esi
mov esp, ebp
pop ebp
ret 4

Function at 0x516400
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.00580b30
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 0x516494
cmp eax, 0xc0000004
jne 0x516494
cmp dword [ebp - 0x128], 1
jb 0x516494
lea ecx, [ebp - 0x108]
lea edx, [ecx + 1]
jmp 0x516470
mov al, byte [ecx]
inc ecx
test al, al
jne 0x516470
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.0057e94f
mov esp, ebp
pop ebp
ret
mov ecx, dword ds:[ebp - 4]
xor eax, eax
xor ecx, ebp
call fcn.0057e94f
mov esp, ebp
pop ebp
ret
Function at 0x5164c0
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
cmp dword [0x62dbb0], 0x64
jb 0x516529
mov ecx, dword [0x630f14]
test ecx, ecx
jne 0x5164f9
call sym.SystemInformer.exe_PhReferenceEmptyString
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0057e94f
mov esp, ebp
pop ebp
ret
mov eax, dword [str.SystemRootSystem32_ntoskrnl.exe]
push 0
mov dword [ebp - 0x12c], eax
lea eax, [ebp - 0x130]
push 0
push eax
mov dword [ebp - 0x130], ecx
call sym.SystemInformer.exe_PhCreateString3
mov ecx, dword ds:[ebp - 4]
xor ecx, ebp
call fcn.0057e94f
mov esp, ebp
pop ebp
ret
push 0x120
lea eax, [ebp - 0x128]
push 0
push eax
call fcn.00580b30
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 0x5165a9
cmp eax, 0xc0000004
jne 0x5165a9
cmp dword [ebp - 0x128], 1
jb 0x5165a9
lea ecx, [ebp - 0x108]
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x516583
sub ecx, edx
lea eax, [ebp - 0x108]
push ecx
push eax
call sym.SystemInformer.exe_PhConvertUtf8ToUtf16Ex
mov ecx, dword ds:[ebp - 4]
xor ecx, ebp
call fcn.0057e94f
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
xor eax, eax
xor ecx, ebp
call fcn.0057e94f
mov esp, ebp
pop ebp
ret

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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x138
mov eax, dword [0x62d040]
xor eax, ebp
mov dword [ebp - 8], eax
push ebx
mov ebx, dword [ebp + 8]
lea eax, [ebp - 0x12c]
push esi
push edi
push 0x120
push 0
push eax
mov edi, edx
mov esi, ecx
call fcn.00580b30
add esp, 0xc
mov dword [ebp - 0x130], 0x120
lea eax, [ebp - 0x130]
push eax
push 0x120
lea eax, [ebp - 0x12c]
push eax
push 0xb
call dword [sym.imp.ntdll.dll_NtQuerySystemInformation]
jmp 0x516620
test eax, eax
je 0x5166cf
cmp eax, 0xc0000004
jne 0x5166d4
cmp dword ds:[ebp - 0x12c], 1
jb 0x5166cf
test esi, esi
je 0x516698
cmp dword [0x62dbb0], 0x64
jb 0x51668a
mov ecx, dword [0x630e14]
test ecx, ecx
jne 0x516667
lea ecx, [ecx]
call sym.SystemInformer.exe_PhReferenceEmptyString
jmp 0x516696
mov eax, dword [str.SystemRootSystem32_ntoskrnl.exe]
push 0
mov dword [ebp - 0x134], eax
lea eax, [ebp - 0x138]
push 0
push eax
mov dword [ebp - 0x138], ecx
call sym.SystemInformer.exe_PhCreateString3
jmp 0x516696
lea eax, [ebp - 0x10c]
push eax
call sym.SystemInformer.exe_PhConvertUtf8ToUtf16
mov dword [esi], eax
cmp dword [0x62dbb0], 0x71
mov eax, dword [ebp - 0x120]
jb 0x5166b0
test eax, eax
jne 0x5166b0
mov eax, 0xfffffffe
mov dword [edi], eax
mov eax, dword [ebp - 0x11c]
mov dword [ebx], eax
xor eax, eax
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 8]
xor ecx, ebp
call fcn.0057e94f
mov esp, ebp
pop ebp
ret 4
mov eax, 0xc0000001
mov ecx, dword ds:[ebp - 8]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0057e94f
mov esp, ebp
pop ebp
ret 4
Function at 0x516b20
Capabilities:
Get system information on windows
Make suspicious ntquerysysteminformation call

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push esi
mov esi, dword [0x62f148]
push edi
push esi
push 4
push dword [0x633f94]
mov dword [ebp - 0xc], ecx
mov dword [ebp - 4], 0
mov dword [ebp - 8], 0
call dword [sym.imp.ntdll.dll_RtlAllocateHeap]
mov edi, eax
lea eax, [ebp - 4]
push eax
push esi
push edi
push 0x40
call dword [sym.imp.ntdll.dll_NtQuerySystemInformation]
mov ebx, eax
cmp ebx, 0xc0000004
jne 0x516bb9
xor eax, eax
jmp 0x516b70
cmp eax, 0xa
jae 0x516bc8
push edi
push 0
push dword [0x633f94]
call dword [sym.imp.ntdll.dll_RtlFreeHeap]
mov esi, dword [ebp - 4]
push esi
push 4
push dword [0x633f94]
call dword [sym.imp.ntdll.dll_RtlAllocateHeap]
mov edi, eax
lea eax, [ebp - 4]
push eax
push esi
push edi
push 0x40
call dword [sym.imp.ntdll.dll_NtQuerySystemInformation]
mov ebx, eax
mov eax, dword [ebp - 8]
inc eax
mov dword [ebp - 8], eax
cmp ebx, 0xc0000004
je 0x516b70
lea esp, [esp]
test ebx, ebx
jns 0x516c6b
mov esi, dword [0x62f148]
push esi
push 4
push dword [0x633f94]
call dword [sym.imp.ntdll.dll_RtlAllocateHeap]
push 0
push esi
mov edi, eax
push edi
push 0x40
call dword [sym.imp.ntdll.dll_NtQuerySystemInformation]
mov ebx, eax
cmp ebx, 0xc0000004
jne 0x516c3e
push edi
push 0
push dword [0x633f94]
call dword [sym.imp.ntdll.dll_RtlFreeHeap]
add esi, esi
cmp esi, 0x10000000
ja 0x516c5f
push esi
push 4
lfence
push dword [0x633f94]
call dword [sym.imp.ntdll.dll_RtlAllocateHeap]
push 0
push esi
mov edi, eax
push edi
push 0x40
call dword [sym.imp.ntdll.dll_NtQuerySystemInformation]
mov ebx, eax
cmp ebx, 0xc0000004
je 0x516bf5
mov edi, edi
test ebx, ebx
jns 0x516c6b
push edi
push 0
lfence
push dword [0x633f94]
call dword [sym.imp.ntdll.dll_RtlFreeHeap]
pop edi
pop esi
mov eax, ebx
pop ebx
mov esp, ebp
pop ebp
ret
pop edi
pop esi
mov eax, 0xc000009a
pop ebx
mov esp, ebp
pop ebp
ret
lfence
cmp esi, 0x200000
ja 0x516c7c
mov dword [0x62f148], esi
mov eax, dword [ebp - 0xc]
mov dword [eax], edi
mov eax, ebx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x516f60
Capabilities:
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov esi, 0x200
push esi
push 4
push dword [0x633f94]
call dword [sym.imp.ntdll.dll_RtlAllocateHeap]
push 0
push esi
mov edi, eax
push edi
push 0x12
call dword [sym.imp.ntdll.dll_NtQuerySystemInformation]
mov ebx, eax
cmp ebx, 0xc0000004
jne 0x516fde
push edi
push 0
push dword [0x633f94]
call dword [sym.imp.ntdll.dll_RtlFreeHeap]
add esi, esi
cmp esi, 0x10000000
ja 0x516ffd
push esi
push 4
lfence
push dword [0x633f94]
call dword [sym.imp.ntdll.dll_RtlAllocateHeap]
push 0
push esi
mov edi, eax
push edi
push 0x12
call dword [sym.imp.ntdll.dll_NtQuerySystemInformation]
mov ebx, eax
cmp ebx, 0xc0000004
je 0x516f92
lfence
test ebx, ebx
jns 0x517009
push edi
push 0
push dword [0x633f94]
call dword [sym.imp.ntdll.dll_RtlFreeHeap]
pop edi
pop esi
mov eax, ebx
pop ebx
pop ebp
ret 4
pop edi
pop esi
mov eax, 0xc000009a
pop ebx
pop ebp
ret 4
mov eax, dword [ebp + 8]
mov dword [eax], edi
mov eax, ebx
pop edi
pop esi
pop ebx
pop ebp
ret 4
Function at 0x517020
Capabilities:
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov esi, 0x200
mov dword [ebp - 4], ecx
push esi
push 4
push dword [0x633f94]
call dword [sym.imp.ntdll.dll_RtlAllocateHeap]
push 0
push esi
mov edi, eax
push edi
push 0x90
call dword [sym.imp.ntdll.dll_NtQuerySystemInformation]
mov ebx, eax
cmp ebx, 0xc0000004
jne 0x5170a8
lea esp, [esp]
push edi
push 0
push dword [0x633f94]
call dword [sym.imp.ntdll.dll_RtlFreeHeap]
add esi, esi
cmp esi, 0x10000000
ja 0x5170c7
push esi
push 4
lfence
push dword [0x633f94]
call dword [sym.imp.ntdll.dll_RtlAllocateHeap]
push 0
push esi
mov edi, eax
push edi
push 0x90
call dword [sym.imp.ntdll.dll_NtQuerySystemInformation]
mov ebx, eax
cmp ebx, 0xc0000004
je 0x517060
lfence
test ebx, ebx
jns 0x5170d3
push edi
push 0
push dword [0x633f94]
call dword [sym.imp.ntdll.dll_RtlFreeHeap]
pop edi
pop esi
mov eax, ebx
pop ebx
mov esp, ebp
pop ebp
ret
pop edi
pop esi
mov eax, 0xc000009a
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp - 4]
mov dword [eax], edi
mov eax, ebx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x5179a0
Capabilities:
Get file attributes

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x1c
push ebx
push esi
push edi
mov ebx, 0x400
mov dword [esp + 0x1c], edx
push ebx
push 4
push dword [0x633f94]
mov esi, ecx
mov byte [esp + 0x20], 1
mov dword [esp + 0x18], esi
call dword [sym.imp.ntdll.dll_RtlAllocateHeap]
mov edi, eax
push dword [esp + 0x14]
lea eax, [esp + 0x24]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [esp + 0x28]
push ebx
push edi
push eax
push 0
push 0
push 0
push esi
call dword [sym.imp.ntdll.dll_NtQueryDirectoryFile]
mov esi, eax
cmp esi, 0x103
jne 0x517a14
push 0
push 0
push dword [esp + 0x14]
call dword [sym.imp.ntdll.dll_NtWaitForSingleObject]
mov esi, eax
test esi, esi
cmovns esi, dword [esp + 0x20]
cmp esi, 0x80000005
je 0x517a28
lea esp, [esp]
cmp esi, 0xc0000004
jne 0x517a4e
push edi
push 0
push dword [0x633f94]
call dword [sym.imp.ntdll.dll_RtlFreeHeap]
add ebx, ebx
push ebx
push 4
push dword [0x633f94]
call dword [sym.imp.ntdll.dll_RtlAllocateHeap]
mov esi, dword [esp + 0xc]
jmp 0x5179cf
mov dword [esp + 0x18], ebx
cmp esi, 0x80000006
je 0x517ac5
test esi, esi
js 0x517ac7
push dword [ebp + 0x14]
mov ecx, dword [ebp + 0x10]
mov ebx, edi
push edi
push dword [esp + 0x14]
lfence
mov dword [esp + 0x1c], 0
call dword [0x5a28f0]
call dword [ebp + 0x10]
nop
test al, al
je 0x517ac7
mov eax, dword [ebx]
test eax, eax
je 0x517ab1
mov ecx, dword [esp + 0x10]
push dword [ebp + 0x14]
add ecx, eax
mov dword [esp + 0x14], ecx
lea ebx, [ecx + edi]
mov ecx, dword [ebp + 0x10]
push ebx
push dword [esp + 0x14]
call dword [0x5a28f0]
call dword [ebp + 0x10]
test al, al
jne 0x517a84
jmp 0x517ac7
mov ebx, dword ds:[esp + 0x18]
mov esi, dword [esp + 0xc]
mov byte [esp + 0x14], 0
jmp 0x5179d1
xor esi, esi
push edi
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 0x10
Function at 0x517b00
Capabilities:
Get file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push esi
push edi
push 0x2000
push 4
push dword [0x633f94]
mov byte [ebp - 4], 1
call dword [sym.imp.ntdll.dll_RtlAllocateHeap]
mov edi, dword [ebp + 8]
mov ebx, eax
jmp 0x517b30
push dword [ebp - 4]
lea eax, [ebp - 0xc]
push 0
push 0
push 0x21
push 0x2000
push ebx
push eax
push 0
push 0
push 0
push edi
call dword [sym.imp.ntdll.dll_NtQueryDirectoryFile]
mov esi, eax
cmp esi, 0x103
jne 0x517b6e
push 0
push 0
push edi
call dword [sym.imp.ntdll.dll_NtWaitForSingleObject]
mov esi, eax
test esi, esi
cmovns esi, dword [ebp - 0xc]
cmp esi, 0x80000006
je 0x517baa
test esi, esi
js 0x517bac
push dword [ebp + 0x10]
mov esi, dword [ebp + 0xc]
mov ecx, esi
lfence
push dword [ebp - 8]
push ebx
push edi
call dword [0x5a28f0]
call esi
mov esi, eax
cmp esi, 0x80000006
je 0x517baa
lea esp, [esp]
test esi, esi
js 0x517bac
mov byte [ebp - 4], 0
jmp 0x517b30
xor esi, esi
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 0xc

Function at 0x517be0
Capabilities:
Get file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push esi
push edi
push 0x2400
push 4
push dword [0x633f94]
mov byte [ebp - 4], 1
call dword [sym.imp.ntdll.dll_RtlAllocateHeap]
mov edi, dword [ebp + 8]
mov ebx, eax
jmp 0x517c10
push dword [ebp - 4]
lea eax, [ebp - 0xc]
push 0
push 0
push 0x1d
push 0x2400
push ebx
push eax
push 0
push 0
push 0
push edi
call dword [sym.imp.ntdll.dll_NtQueryDirectoryFile]
mov esi, eax
cmp esi, 0x103
jne 0x517c4e
push 0
push 0
push edi
call dword [sym.imp.ntdll.dll_NtWaitForSingleObject]
mov esi, eax
test esi, esi
cmovns esi, dword [ebp - 0xc]
cmp esi, 0x80000006
je 0x517c8a
test esi, esi
js 0x517c8c
push dword [ebp + 0x10]
mov esi, dword [ebp + 0xc]
mov ecx, esi
lfence
push dword [ebp - 8]
push ebx
push edi
call dword [0x5a28f0]
call esi
mov esi, eax
cmp esi, 0x80000006
je 0x517c8a
lea esp, [esp]
test esi, esi
js 0x517c8c
mov byte [ebp - 4], 0
jmp 0x517c10
xor esi, esi
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 0xc