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

Disassembly:
push ebp
mov ebp, esp
cmp dword [0x632e50], 5
push edi
jne 0x51067a
push esi
push 0x632e38
call dword [sym.imp.ntdll.dll_RtlInterlockedPopEntrySList]
mov esi, eax
test esi, esi
je 0x5105ed
lock dec dword [0x632e40]
jmp 0x510608
mov eax, dword [0x632e48]
add eax, 8
push eax
push 4
push dword [0x631034]
call dword [sym.imp.ntdll.dll_RtlAllocateHeap]
mov esi, eax
push ebx
mov edx, 6
lea ecx, [esi + 8]
call fcn.0056dc40
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.00535f60
mov edi, eax
test edi, edi
js 0x510636
lfence
mov edi, dword [esi + 0x18]
mov eax, dword [0x632e40]
pop ebx
push esi
cmp eax, dword [0x632e44]
jae 0x51065c
push 0x632e38
call dword [sym.imp.ntdll.dll_RtlInterlockedPushEntrySList]
lock inc dword [0x632e40]
jmp 0x51066a
push 0
push dword [0x631034]
call dword [sym.imp.ntdll.dll_RtlFreeHeap]
pop esi
cmp edi, 0xc00000bb
je 0x51067a
mov eax, edi
pop edi
pop ebp
ret 8
pop edi
pop ebp
jmp dword [sym.imp.ntdll.dll_NtTerminateProcess]

Function at 0x5108e0
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 [0x631034]
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 0x510961
push esi
push 0
push dword [0x631034]
call dword [sym.imp.ntdll.dll_RtlFreeHeap]
movzx eax, word [ebp - 0xe]
push eax
push 4
push dword [0x631034]
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 0x51096a
lfence
jmp 0x5109b4
mov cx, word [ebp - 0x10]
test cx, cx
jne 0x510993
push esi
push 0
push dword [0x631034]
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 [0x631034]
call dword [sym.imp.ntdll.dll_RtlFreeHeap]
mov eax, edi
pop edi
pop esi
mov esp, ebp
pop ebp
ret 8
Function at 0x5109e0
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 0x510a15
cmp dword [ebp - 4], 0
pop edi
setne cl
mov byte [esi], cl
pop esi
mov esp, ebp
pop ebp
ret
cmp dword [0x632e50], 2
jl 0x510a43
push ecx
push 4
lea eax, [ebp - 8]
mov edx, 1
push eax
mov ecx, edi
call fcn.00521520
mov edx, eax
test edx, edx
js 0x510a43
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 0x512e40
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 [0x631034]
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 0x512e98
cmp esi, 0xc0000023
je 0x512e98
cmp esi, 0xc0000004
jne 0x512ebd
push ebx
push 0
push dword [0x631034]
call dword [sym.imp.ntdll.dll_RtlFreeHeap]
add edi, edi
push edi
push 4
push dword [0x631034]
call dword [sym.imp.ntdll.dll_RtlAllocateHeap]
mov esi, dword [ebp - 0xc]
jmp 0x512e66
lea ecx, [ecx]
test esi, esi
js 0x512ed4
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 [0x631034]
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 0x512f00
Capabilities:
Get file attributes

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x48
mov eax, dword [0x62a040]
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 0x512f40
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.0057c26f
mov esp, ebp
pop ebp
ret 8

Function at 0x512f60
Capabilities:
Get file attributes

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x40
mov eax, dword [0x62a040]
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 0x512fa4
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.0057c26f
mov esp, ebp
pop ebp
ret 8

Function at 0x512fc0
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 0x512ff0
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 0x513025
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 0x513040
Capabilities:
Set file attributes

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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x30
cmp dword [0x62abb0], 0x6a
push esi
push edi
mov edi, ecx
jb 0x5130f5
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 0x513190
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 0x51318e
push 0
push 0
push 0x1000
push 1
push 4
push 0
lea eax, [ebp - 0x10]
mov dword [ebp - 0x10], 0
mov dword [ebp - 0x28], eax
lea eax, [ebp - 0x18]
push 0
push eax
lea eax, [ebp - 0x30]
mov dword [ebp - 0xc], 0
push eax
push 0x10000
lea eax, [ebp - 8]
mov dword [ebp - 0x30], 0x18
push eax
mov dword [ebp - 0x2c], edi
mov dword [ebp - 0x24], 0x40
mov dword [ebp - 0x20], 0
mov dword [ebp - 0x1c], 0
call dword [sym.imp.ntdll.dll_NtCreateFile]
cmp eax, 0xc0000043
je 0x51318e
test eax, eax
js 0x51318e
push dword ds:[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 0x5139a0
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 [0x62de04]
mov dword [ebp - 0x14], eax
lea eax, [ebp - 0x14]
push eax
call sym.SystemInformer.exe_PhCreateString3
push dword [0x62de04]
mov edi, eax
push dword [0x62de08]
push dword [edi + 4]
call fcn.0057e5b0
mov eax, dword [edi + 4]
add esp, 0xc
add eax, dword [0x62de04]
push dword [esi]
push dword [esi + 4]
push eax
call fcn.0057e5b0
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 0x513a37
lea ecx, [edi - 8]
or eax, 0xffffffff
lock xadd dword [ecx + 4], eax
dec eax
jne 0x513a2c
call fcn.004f9e40
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 0x513b2f
cmp dword ds:[ebp - 0xc], 1
jne 0x513b0a
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], 0x6041ec
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 [0x62de7c]
add eax, 2
mov dword [ebp - 0x14], 0x140012
push eax
push dword [0x62de80]
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 0x513b26
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 0x513b45
lea ecx, [ecx]
call fcn.004f9e40
pop edi
mov eax, esi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x514a60
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 [0x631034]
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 0x514acf
push esi
push 0
push dword [0x631034]
call dword [sym.imp.ntdll.dll_RtlFreeHeap]
push dword [ebp - 4]
push 4
push dword [0x631034]
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 0x514adb
mov eax, dword [ebp + 8]
mov dword [eax], esi
mov eax, ecx
pop esi
mov esp, ebp
pop ebp
ret 4

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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x130
mov eax, dword [0x62a040]
xor eax, ebp
mov dword [ebp - 4], eax
push 0x120
lea eax, [ebp - 0x128]
push 0
push eax
call fcn.0057e450
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 0x514b94
cmp eax, 0xc0000004
jne 0x514b94
cmp dword [ebp - 0x128], 1
jb 0x514b94
lea ecx, [ebp - 0x108]
lea edx, [ecx + 1]
jmp 0x514b70
mov al, byte [ecx]
inc ecx
test al, al
jne 0x514b70
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.0057c26f
mov esp, ebp
pop ebp
ret
mov ecx, dword ds:[ebp - 4]
xor eax, eax
xor ecx, ebp
call fcn.0057c26f
mov esp, ebp
pop ebp
ret
Function at 0x514bc0
Capabilities:
Get system information on windows
Make suspicious ntquerysysteminformation call

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x130
mov eax, dword [0x62a040]
xor eax, ebp
mov dword [ebp - 4], eax
cmp dword [0x62abb0], 0x64
jb 0x514c29
mov ecx, dword [0x62de74]
test ecx, ecx
jne 0x514bf9
call sym.SystemInformer.exe_PhReferenceEmptyString
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0057c26f
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.0057c26f
mov esp, ebp
pop ebp
ret
push 0x120
lea eax, [ebp - 0x128]
push 0
push eax
call fcn.0057e450
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 0x514ca9
cmp eax, 0xc0000004
jne 0x514ca9
cmp dword [ebp - 0x128], 1
jb 0x514ca9
lea ecx, [ebp - 0x108]
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x514c83
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.0057c26f
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
xor eax, eax
xor ecx, ebp
call fcn.0057c26f
mov esp, ebp
pop ebp
ret
Function at 0x5150e0
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 [0x62c228]
push edi
push esi
push 4
push dword [0x631034]
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 0x515179
xor eax, eax
jmp 0x515130
cmp eax, 0xa
jae 0x515188
push edi
push 0
push dword [0x631034]
call dword [sym.imp.ntdll.dll_RtlFreeHeap]
mov esi, dword [ebp - 4]
push esi
push 4
push dword [0x631034]
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 0x515130
lea esp, [esp]
test ebx, ebx
jns 0x51522b
mov esi, dword [0x62c228]
push esi
push 4
push dword [0x631034]
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 0x5151fe
push edi
push 0
push dword [0x631034]
call dword [sym.imp.ntdll.dll_RtlFreeHeap]
add esi, esi
cmp esi, 0x10000000
ja 0x51521f
push esi
push 4
lfence
push dword [0x631034]
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 0x5151b5
mov edi, edi
test ebx, ebx
jns 0x51522b
push edi
push 0
lfence
push dword [0x631034]
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 0x51523c
mov dword [0x62c228], 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 0x515520
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 [0x631034]
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 0x51559e
push edi
push 0
push dword [0x631034]
call dword [sym.imp.ntdll.dll_RtlFreeHeap]
add esi, esi
cmp esi, 0x10000000
ja 0x5155bd
push esi
push 4
lfence
push dword [0x631034]
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 0x515552
lfence
test ebx, ebx
jns 0x5155c9
push edi
push 0
push dword [0x631034]
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 0x5155e0
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 [0x631034]
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 0x515668
lea esp, [esp]
push edi
push 0
push dword [0x631034]
call dword [sym.imp.ntdll.dll_RtlFreeHeap]
add esi, esi
cmp esi, 0x10000000
ja 0x515687
push esi
push 4
lfence
push dword [0x631034]
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 0x515620
lfence
test ebx, ebx
jns 0x515693
push edi
push 0
push dword [0x631034]
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 0x515f80
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 [0x631034]
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 0x515ff4
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 0x516008
lea esp, [esp]
cmp esi, 0xc0000004
jne 0x51602e
push edi
push 0
push dword [0x631034]
call dword [sym.imp.ntdll.dll_RtlFreeHeap]
add ebx, ebx
push ebx
push 4
push dword [0x631034]
call dword [sym.imp.ntdll.dll_RtlAllocateHeap]
mov esi, dword [esp + 0xc]
jmp 0x515faf
mov dword [esp + 0x18], ebx
cmp esi, 0x80000006
je 0x5160a5
test esi, esi
js 0x5160a7
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 [0x5a08ec]
call dword [ebp + 0x10]
nop
test al, al
je 0x5160a7
mov eax, dword [ebx]
test eax, eax
je 0x516091
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 [0x5a08ec]
call dword [ebp + 0x10]
test al, al
jne 0x516064
jmp 0x5160a7
mov ebx, dword ds:[esp + 0x18]
mov esi, dword [esp + 0xc]
mov byte [esp + 0x14], 0
jmp 0x515fb1
xor esi, esi
push edi
push 0
push dword [0x631034]
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 0x5160e0
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 [0x631034]
mov byte [ebp - 4], 1
call dword [sym.imp.ntdll.dll_RtlAllocateHeap]
mov edi, dword [ebp + 8]
mov ebx, eax
jmp 0x516110
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 0x51614e
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 0x51618a
test esi, esi
js 0x51618c
push dword [ebp + 0x10]
mov esi, dword [ebp + 0xc]
mov ecx, esi
lfence
push dword [ebp - 8]
push ebx
push edi
call dword [0x5a08ec]
call esi
mov esi, eax
cmp esi, 0x80000006
je 0x51618a
lea esp, [esp]
test esi, esi
js 0x51618c
mov byte [ebp - 4], 0
jmp 0x516110
xor esi, esi
push ebx
push 0
push dword [0x631034]
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 0x5161c0
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 [0x631034]
mov byte [ebp - 4], 1
call dword [sym.imp.ntdll.dll_RtlAllocateHeap]
mov edi, dword [ebp + 8]
mov ebx, eax
jmp 0x5161f0
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 0x51622e
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 0x51626a
test esi, esi
js 0x51626c
push dword [ebp + 0x10]
mov esi, dword [ebp + 0xc]
mov ecx, esi
lfence
push dword [ebp - 8]
push ebx
push edi
call dword [0x5a08ec]
call esi
mov esi, eax
cmp esi, 0x80000006
je 0x51626a
lea esp, [esp]
test esi, esi
js 0x51626c
mov byte [ebp - 4], 0
jmp 0x5161f0
xor esi, esi
push ebx
push 0
push dword [0x631034]
call dword [sym.imp.ntdll.dll_RtlFreeHeap]
pop edi
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc