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

Disassembly:
push ebp
mov ebp, esp
cmp dword [0x637e88], 5
push edi
jne 0x51341a
push esi
push 0x637e70
call dword [sym.imp.ntdll.dll_RtlInterlockedPopEntrySList]
mov esi, eax
test esi, esi
je 0x51338d
lock dec dword [0x637e78]
jmp 0x5133a8
mov eax, dword [0x637e80]
add eax, 8
push eax
push 4
push dword [0x636044]
call dword [sym.imp.ntdll.dll_RtlAllocateHeap]
mov esi, eax
push ebx
mov edx, 6
lea ecx, [esi + 8]
call fcn.00573d00
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.00539be0
mov edi, eax
test edi, edi
js 0x5133d6
lfence
mov edi, dword [esi + 0x18]
mov eax, dword [0x637e78]
pop ebx
push esi
cmp eax, dword [0x637e7c]
jae 0x5133fc
push 0x637e70
call dword [sym.imp.ntdll.dll_RtlInterlockedPushEntrySList]
lock inc dword [0x637e78]
jmp 0x51340a
push 0
push dword [0x636044]
call dword [sym.imp.ntdll.dll_RtlFreeHeap]
pop esi
cmp edi, 0xc00000bb
je 0x51341a
mov eax, edi
pop edi
pop ebp
ret 8
pop edi
pop ebp
jmp dword [sym.imp.ntdll.dll_NtTerminateProcess]

Function at 0x513680
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 [0x636044]
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 0x513701
push esi
push 0
push dword [0x636044]
call dword [sym.imp.ntdll.dll_RtlFreeHeap]
movzx eax, word [ebp - 0xe]
push eax
push 4
push dword [0x636044]
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 0x51370a
lfence
jmp 0x513754
mov cx, word [ebp - 0x10]
test cx, cx
jne 0x513733
push esi
push 0
push dword [0x636044]
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 [0x636044]
call dword [sym.imp.ntdll.dll_RtlFreeHeap]
mov eax, edi
pop edi
pop esi
mov esp, ebp
pop ebp
ret 8
Function at 0x513780
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 0x5137b5
cmp dword [ebp - 4], 0
pop edi
setne cl
mov byte [esi], cl
pop esi
mov esp, ebp
pop ebp
ret
cmp dword [0x637e88], 2
jl 0x5137e3
push ecx
push 4
lea eax, [ebp - 8]
mov edx, 1
push eax
mov ecx, edi
call fcn.00525260
mov edx, eax
test edx, edx
js 0x5137e3
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 0x515be0
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 [0x636044]
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 0x515c38
cmp esi, 0xc0000023
je 0x515c38
cmp esi, 0xc0000004
jne 0x515c5d
push ebx
push 0
push dword [0x636044]
call dword [sym.imp.ntdll.dll_RtlFreeHeap]
add edi, edi
push edi
push 4
push dword [0x636044]
call dword [sym.imp.ntdll.dll_RtlAllocateHeap]
mov esi, dword [ebp - 0xc]
jmp 0x515c06
lea ecx, [ecx]
test esi, esi
js 0x515c74
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 [0x636044]
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 0x515ca0
Capabilities:
Get file attributes

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x48
mov eax, dword [0x62f040]
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 0x515ce0
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.0058078f
mov esp, ebp
pop ebp
ret 8

Function at 0x515d00
Capabilities:
Get file attributes

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x40
mov eax, dword [0x62f040]
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 0x515d44
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.0058078f
mov esp, ebp
pop ebp
ret 8

Function at 0x515d60
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 0x515d90
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 0x515dc5
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 0x515de0
Capabilities:
Set file attributes

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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
cmp dword [0x62fbb0], 0x6a
push esi
push edi
mov edi, ecx
jb 0x515e91
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 0x515ee1
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 0x515edf
push 0x1000
push 4
push 0x10000
mov edx, edi
lea ecx, [ebp - 8]
lfence
call fcn.0051bd20
test eax, eax
js 0x515edf
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 0x516720
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 [0x632e54]
mov dword [ebp - 0x14], eax
lea eax, [ebp - 0x14]
push eax
call sym.SystemInformer.exe_PhCreateString3
push dword [0x632e54]
mov edi, eax
push dword [0x632e58]
push dword [edi + 4]
call fcn.00582850
mov eax, dword [edi + 4]
add esp, 0xc
add eax, dword [0x632e54]
push dword [esi]
push dword [esi + 4]
push eax
call fcn.00582850
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 0x5167b7
lea ecx, [edi - 8]
or eax, 0xffffffff
lock xadd dword [ecx + 4], eax
dec eax
jne 0x5167ac
call fcn.004fc420
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 0x5168af
cmp dword ds:[ebp - 0xc], 1
jne 0x51688a
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], 0x6086fc
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 [0x632ecc]
add eax, 2
mov dword [ebp - 0x14], 0x140012
push eax
push dword [0x632ed0]
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 0x5168a6
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 0x5168c5
lea ecx, [ecx]
call fcn.004fc420
pop edi
mov eax, esi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x5177e0
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 [0x636044]
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 0x51784f
push esi
push 0
push dword [0x636044]
call dword [sym.imp.ntdll.dll_RtlFreeHeap]
push dword [ebp - 4]
push 4
push dword [0x636044]
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 0x51785b
mov eax, dword [ebp + 8]
mov dword [eax], esi
mov eax, ecx
pop esi
mov esp, ebp
pop ebp
ret 4

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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x130
mov eax, dword [0x62f040]
xor eax, ebp
mov dword [ebp - 4], eax
push 0x120
lea eax, [ebp - 0x128]
push 0
push eax
call fcn.005826f0
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 0x517914
cmp eax, 0xc0000004
jne 0x517914
cmp dword [ebp - 0x128], 1
jb 0x517914
lea ecx, [ebp - 0x108]
lea edx, [ecx + 1]
jmp 0x5178f0
mov al, byte [ecx]
inc ecx
test al, al
jne 0x5178f0
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.0058078f
mov esp, ebp
pop ebp
ret
mov ecx, dword ds:[ebp - 4]
xor eax, eax
xor ecx, ebp
call fcn.0058078f
mov esp, ebp
pop ebp
ret
Function at 0x517940
Capabilities:
Get system information on windows
Make suspicious ntquerysysteminformation call

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x130
mov eax, dword [0x62f040]
xor eax, ebp
mov dword [ebp - 4], eax
cmp dword [0x62fbb0], 0x64
jb 0x5179a9
mov ecx, dword [0x632ec4]
test ecx, ecx
jne 0x517979
call sym.SystemInformer.exe_PhReferenceEmptyString
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0058078f
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.0058078f
mov esp, ebp
pop ebp
ret
push 0x120
lea eax, [ebp - 0x128]
push 0
push eax
call fcn.005826f0
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 0x517a29
cmp eax, 0xc0000004
jne 0x517a29
cmp dword [ebp - 0x128], 1
jb 0x517a29
lea ecx, [ebp - 0x108]
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x517a03
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.0058078f
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
xor eax, eax
xor ecx, ebp
call fcn.0058078f
mov esp, ebp
pop ebp
ret

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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x138
mov eax, dword [0x62f040]
xor eax, ebp
mov dword [ebp - 8], eax
push ebx
mov ebx, dword [ebp + 0x10]
lea eax, [ebp - 0x12c]
push esi
mov esi, dword [ebp + 8]
push edi
mov edi, dword [ebp + 0xc]
push 0x120
push 0
push eax
call fcn.005826f0
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]
lea ebx, [ebx]
test eax, eax
je 0x517b4f
cmp eax, 0xc0000004
jne 0x517b54
cmp dword ds:[ebp - 0x12c], 1
jb 0x517b4f
test esi, esi
je 0x517b18
cmp dword [0x62fbb0], 0x64
jb 0x517b0a
mov ecx, dword [0x632dc4]
test ecx, ecx
jne 0x517ae7
lea ecx, [ecx]
call sym.SystemInformer.exe_PhReferenceEmptyString
jmp 0x517b16
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 0x517b16
lea eax, [ebp - 0x10c]
push eax
call sym.SystemInformer.exe_PhConvertUtf8ToUtf16
mov dword [esi], eax
cmp dword [0x62fbb0], 0x71
mov eax, dword [ebp - 0x120]
jb 0x517b30
test eax, eax
jne 0x517b30
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.0058078f
mov esp, ebp
pop ebp
ret 0xc
mov eax, 0xc0000001
mov ecx, dword ds:[ebp - 8]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0058078f
mov esp, ebp
pop ebp
ret 0xc
Function at 0x517fa0
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 [0x631138]
push edi
push esi
push 4
push dword [0x636044]
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 0x518039
xor eax, eax
jmp 0x517ff0
cmp eax, 0xa
jae 0x518048
push edi
push 0
push dword [0x636044]
call dword [sym.imp.ntdll.dll_RtlFreeHeap]
mov esi, dword [ebp - 4]
push esi
push 4
push dword [0x636044]
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 0x517ff0
lea esp, [esp]
test ebx, ebx
jns 0x5180eb
mov esi, dword [0x631138]
push esi
push 4
push dword [0x636044]
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 0x5180be
push edi
push 0
push dword [0x636044]
call dword [sym.imp.ntdll.dll_RtlFreeHeap]
add esi, esi
cmp esi, 0x10000000
ja 0x5180df
push esi
push 4
lfence
push dword [0x636044]
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 0x518075
mov edi, edi
test ebx, ebx
jns 0x5180eb
push edi
push 0
lfence
push dword [0x636044]
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 0x5180fc
mov dword [0x631138], 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 0x5183e0
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 [0x636044]
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 0x51845e
push edi
push 0
push dword [0x636044]
call dword [sym.imp.ntdll.dll_RtlFreeHeap]
add esi, esi
cmp esi, 0x10000000
ja 0x51847d
push esi
push 4
lfence
push dword [0x636044]
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 0x518412
lfence
test ebx, ebx
jns 0x518489
push edi
push 0
push dword [0x636044]
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 0x5184a0
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 [0x636044]
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 0x518528
lea esp, [esp]
push edi
push 0
push dword [0x636044]
call dword [sym.imp.ntdll.dll_RtlFreeHeap]
add esi, esi
cmp esi, 0x10000000
ja 0x518547
push esi
push 4
lfence
push dword [0x636044]
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 0x5184e0
lfence
test ebx, ebx
jns 0x518553
push edi
push 0
push dword [0x636044]
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 0x518e20
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 [0x636044]
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 0x518e94
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 0x518ea8
lea esp, [esp]
cmp esi, 0xc0000004
jne 0x518ece
push edi
push 0
push dword [0x636044]
call dword [sym.imp.ntdll.dll_RtlFreeHeap]
add ebx, ebx
push ebx
push 4
push dword [0x636044]
call dword [sym.imp.ntdll.dll_RtlAllocateHeap]
mov esi, dword [esp + 0xc]
jmp 0x518e4f
mov dword [esp + 0x18], ebx
cmp esi, 0x80000006
je 0x518f45
test esi, esi
js 0x518f47
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 [0x5a48f4]
call dword [ebp + 0x10]
nop
test al, al
je 0x518f47
mov eax, dword [ebx]
test eax, eax
je 0x518f31
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 [0x5a48f4]
call dword [ebp + 0x10]
test al, al
jne 0x518f04
jmp 0x518f47
mov ebx, dword ds:[esp + 0x18]
mov esi, dword [esp + 0xc]
mov byte [esp + 0x14], 0
jmp 0x518e51
xor esi, esi
push edi
push 0
push dword [0x636044]
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 0x518f80
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 [0x636044]
mov byte [ebp - 4], 1
call dword [sym.imp.ntdll.dll_RtlAllocateHeap]
mov edi, dword [ebp + 8]
mov ebx, eax
jmp 0x518fb0
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 0x518fee
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 0x51902a
test esi, esi
js 0x51902c
push dword [ebp + 0x10]
mov esi, dword [ebp + 0xc]
mov ecx, esi
lfence
push dword [ebp - 8]
push ebx
push edi
call dword [0x5a48f4]
call esi
mov esi, eax
cmp esi, 0x80000006
je 0x51902a
lea esp, [esp]
test esi, esi
js 0x51902c
mov byte [ebp - 4], 0
jmp 0x518fb0
xor esi, esi
push ebx
push 0
push dword [0x636044]
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 0x519060
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 [0x636044]
mov byte [ebp - 4], 1
call dword [sym.imp.ntdll.dll_RtlAllocateHeap]
mov edi, dword [ebp + 8]
mov ebx, eax
jmp 0x519090
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 0x5190ce
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 0x51910a
test esi, esi
js 0x51910c
push dword [ebp + 0x10]
mov esi, dword [ebp + 0xc]
mov ecx, esi
lfence
push dword [ebp - 8]
push ebx
push edi
call dword [0x5a48f4]
call esi
mov esi, eax
cmp esi, 0x80000006
je 0x51910a
lea esp, [esp]
test esi, esi
js 0x51910c
mov byte [ebp - 4], 0
jmp 0x519090
xor esi, esi
push ebx
push 0
push dword [0x636044]
call dword [sym.imp.ntdll.dll_RtlFreeHeap]
pop edi
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc