joyce8/EMBER2024-capa huggingface dataset:
Function at 0x519260
Capabilities:
Get system information on windows
Make suspicious ntquerysysteminformation call

Disassembly:
push ecx
push ebx
push esi
push edi
push 0x100
push 4
push dword [0x633a54]
mov dword [esp + 0x18], 0x100
call dword [sym.imp.ntdll.dll_RtlAllocateHeap]
mov ebx, eax
lea eax, [esp + 0xc]
push eax
push 0x100
push ebx
push 0x42
call dword [sym.imp.ntdll.dll_NtQuerySystemInformation]
mov edi, eax
xor esi, esi
cmp edi, 0xc0000004
jne 0x5192f1
cmp esi, 8
jae 0x519304
push ebx
push 0
push dword [0x633a54]
call dword [sym.imp.ntdll.dll_RtlFreeHeap]
push dword [esp + 0xc]
push 4
push dword [0x633a54]
call dword [sym.imp.ntdll.dll_RtlAllocateHeap]
mov ebx, eax
lea eax, [esp + 0xc]
push eax
push dword [esp + 0x10]
push ebx
push 0x42
call dword [sym.imp.ntdll.dll_NtQuerySystemInformation]
mov edi, eax
inc esi
cmp edi, 0xc0000004
je 0x5192a8
test edi, edi
js 0x519304
mov eax, dword [esp + 0x14]
mov dword [eax], ebx
mov eax, edi
pop edi
pop esi
pop ebx
pop ecx
ret 4
push ebx
push 0
lfence
push dword [0x633a54]
call dword [sym.imp.ntdll.dll_RtlFreeHeap]
mov eax, edi
pop edi
pop esi
pop ebx
pop ecx
ret 4

Function at 0x519c60
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 [0x633a54]
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 0x519cd4
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 0x519ce8
nop dword [eax]
cmp esi, 0xc0000004
jne 0x519d0e
push edi
push 0
push dword [0x633a54]
call dword [sym.imp.ntdll.dll_RtlFreeHeap]
add ebx, ebx
push ebx
push 4
push dword [0x633a54]
call dword [sym.imp.ntdll.dll_RtlAllocateHeap]
mov esi, dword [esp + 0xc]
jmp 0x519c8f
mov dword [esp + 0x18], ebx
cmp esi, 0x80000006
je 0x519d85
test esi, esi
js 0x519d87
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 [0x5a9914]
call dword [ebp + 0x10]
nop
test al, al
je 0x519d87
mov eax, dword [ebx]
test eax, eax
je 0x519d71
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 [0x5a9914]
call dword [ebp + 0x10]
test al, al
jne 0x519d44
jmp 0x519d87
mov ebx, dword ds:[esp + 0x18]
mov esi, dword [esp + 0xc]
mov byte [esp + 0x14], 0
jmp 0x519c91
xor esi, esi
push edi
push 0
push dword [0x633a54]
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 0x519dc0
Capabilities:
Get file attributes

Disassembly:
sub esp, 0xc
push ebx
push ebp
push esi
push edi
push 0x2000
push 4
push dword [0x633a54]
mov byte [esp + 0x1c], 1
call dword [sym.imp.ntdll.dll_RtlAllocateHeap]
mov ebp, dword [esp + 0x24]
mov ebx, eax
mov edi, dword [esp + 0x20]
nop dword [eax]
push dword [esp + 0x10]
lea eax, [esp + 0x18]
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 0x519e30
push 0
push 0
push edi
call dword [sym.imp.ntdll.dll_NtWaitForSingleObject]
mov esi, eax
test esi, esi
cmovns esi, dword [esp + 0x14]
cmp esi, 0x80000006
je 0x519e6b
test esi, esi
js 0x519e6d
push dword [esp + 0x28]
lfence
push dword [esp + 0x1c]
mov ecx, ebp
push ebx
push edi
call dword [0x5a9914]
call ebp
mov esi, eax
cmp esi, 0x80000006
je 0x519e6b
nop dword [eax]
test esi, esi
js 0x519e6d
mov byte [esp + 0x10], 0
jmp 0x519df0
xor esi, esi
push ebx
push 0
push dword [0x633a54]
call dword [sym.imp.ntdll.dll_RtlFreeHeap]
pop edi
mov eax, esi
pop esi
pop ebp
pop ebx
add esp, 0xc
ret 0xc

Function at 0x519ea0
Capabilities:
Get file attributes

Disassembly:
sub esp, 0xc
push ebx
push ebp
push esi
push edi
push 0x2400
push 4
push dword [0x633a54]
mov byte [esp + 0x1c], 1
call dword [sym.imp.ntdll.dll_RtlAllocateHeap]
mov ebp, dword [esp + 0x24]
mov ebx, eax
mov edi, dword [esp + 0x20]
nop dword [eax]
push dword [esp + 0x10]
lea eax, [esp + 0x18]
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 0x519f10
push 0
push 0
push edi
call dword [sym.imp.ntdll.dll_NtWaitForSingleObject]
mov esi, eax
test esi, esi
cmovns esi, dword [esp + 0x14]
cmp esi, 0x80000006
je 0x519f4b
test esi, esi
js 0x519f4d
push dword [esp + 0x28]
lfence
push dword [esp + 0x1c]
mov ecx, ebp
push ebx
push edi
call dword [0x5a9914]
call ebp
mov esi, eax
cmp esi, 0x80000006
je 0x519f4b
nop dword [eax]
test esi, esi
js 0x519f4d
mov byte [esp + 0x10], 0
jmp 0x519ed0
xor esi, esi
push ebx
push 0
push dword [0x633a54]
call dword [sym.imp.ntdll.dll_RtlFreeHeap]
pop edi
mov eax, esi
pop esi
pop ebp
pop ebx
add esp, 0xc
ret 0xc
Function at 0x51b7a0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
mov ecx, dword [ebp + 0xc]
sub esp, 0xc
push ebx
mov ebx, 0x10
push esi
push edi
test ecx, ecx
je 0x51b7eb
mov edx, dword [ecx]
test edx, edx
je 0x51b7eb
movzx eax, dx
mov word [esp + 0x10], ax
add eax, 2
mov word [esp + 0x12], ax
mov eax, dword [ecx + 4]
mov dword [esp + 0x14], eax
cmp edx, 0xfffe
jbe 0x51b7f4
mov eax, 0xc0000106
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x10
xorps xmm0, xmm0
movlpd qword [esp + 0x10], xmm0
mov esi, 0x100
push esi
push 4
push dword [0x633a54]
mov dword [esp + 0x18], esi
call dword [sym.imp.ntdll.dll_RtlAllocateHeap]
mov edi, eax
nop
lea eax, [esp + 0xc]
push eax
push esi
push edi
push dword [ebp + 0x10]
lea eax, [esp + 0x20]
push eax
push dword [ebp + 8]
call dword [sym.imp.ntdll.dll_NtQueryValueKey]
mov esi, eax
test esi, esi
jns 0x51b87f
push edi
push 0
cmp esi, 0x80000005
jne 0x51b865
push dword [0x633a54]
nop
call dword [sym.imp.ntdll.dll_RtlFreeHeap]
push dword [esp + 0xc]
push 4
push dword [0x633a54]
call dword [sym.imp.ntdll.dll_RtlAllocateHeap]
mov edi, eax
sub ebx, 1
je 0x51b87f
mov esi, dword [esp + 0xc]
jmp 0x51b810
lfence
push dword [0x633a54]
call dword [sym.imp.ntdll.dll_RtlFreeHeap]
mov eax, esi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x10
mov eax, dword [ebp + 0x14]
mov dword [eax], edi
mov eax, esi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x10

Function at 0x51b890
Capabilities:
Set registry value

Disassembly:
mov ecx, dword [esp + 8]
sub esp, 8
test ecx, ecx
je 0x51b8c4
movzx eax, word [ecx]
mov word [esp], ax
add eax, 2
cmp dword [ecx], 0xfffe
mov word [esp + 2], ax
mov eax, dword [ecx + 4]
mov dword [esp + 4], eax
jbe 0x51b8cc
mov eax, 0xc0000106
add esp, 8
ret 0x14
xorps xmm0, xmm0
movlpd qword [esp], xmm0
push dword [esp + 0x1c]
lea eax, [esp + 4]
push dword [esp + 0x1c]
push dword [esp + 0x1c]
push 0
push eax
push dword [esp + 0x20]
call dword [sym.imp.ntdll.dll_NtSetValueKey]
add esp, 8
ret 0x14

Function at 0x51b900
Capabilities:
Delete registry value

Disassembly:
mov ecx, dword [esp + 8]
sub esp, 0xc
test ecx, ecx
je 0x51b934
movzx eax, word [ecx]
mov word [esp], ax
add eax, 2
cmp dword [ecx], 0xfffe
mov word [esp + 2], ax
mov eax, dword [ecx + 4]
mov dword [esp + 4], eax
jbe 0x51b93c
mov eax, 0xc0000106
add esp, 0xc
ret 8
xorps xmm0, xmm0
movlpd qword [esp], xmm0
lea eax, [esp]
push eax
push dword [esp + 0x14]
call dword [sym.imp.ntdll.dll_NtDeleteValueKey]
add esp, 0xc
ret 8

Function at 0x51c160
Capabilities:
Write file on windows

Disassembly:
sub esp, 8
lea eax, [esp]
push 0
push dword [esp + 0x1c]
push dword [esp + 0x1c]
push dword [esp + 0x1c]
push eax
push 0
push 0
push 0
push dword [esp + 0x2c]
call dword [sym.imp.ntdll.dll_NtWriteFile]
mov ecx, eax
cmp ecx, 0x103
jne 0x51c1a7
push 0
push 0
push dword [esp + 0x14]
call dword [sym.imp.ntdll.dll_NtWaitForSingleObject]
nop
test eax, eax
js 0x51c1bb
mov ecx, dword [esp]
test ecx, ecx
js 0x51c1b9
mov edx, dword [esp + 0x1c]
test edx, edx
je 0x51c1b9
mov eax, dword [esp + 4]
mov dword [edx], eax
mov eax, ecx
add esp, 8
ret 0x14
Function at 0x51d260
Capabilities:
Get file attributes
Read file on windows
Set file attributes
Write file on windows

Disassembly:
sub esp, 0x50
mov eax, dword [0x62d040]
xor eax, esp
mov dword [esp + 0x4c], eax
push ebx
push ebp
push esi
push edi
push 0
push 0x64
push 1
push 7
push 0x80
push 0
push 0x100081
push ecx
lea eax, [esp + 0x30]
mov esi, edx
push eax
call sym.SystemInformer.exe_Ordinal_1469
test eax, eax
jns 0x51d2af
lfence
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x4c]
xor ecx, esp
call fcn.00583f9f
add esp, 0x50
ret 4
mov ebx, dword [esp + 0x10]
lea eax, [esp + 0x30]
push 4
push 0x28
push eax
lea eax, [esp + 0x2c]
push eax
push ebx
call dword [sym.imp.ntdll.dll_NtQueryInformationFile]
mov edi, eax
test edi, edi
js 0x51d424
lea eax, [esp + 0x28]
push eax
push ebx
call sym.SystemInformer.exe_Ordinal_1511
mov edi, eax
test edi, edi
js 0x51d424
push 0
push 0x64
push 2
push 1
push 0x80
lea eax, [esp + 0x3c]
push eax
push 0x120116
push esi
lea eax, [esp + 0x40]
push eax
call sym.SystemInformer.exe_Ordinal_1469
mov edi, eax
test edi, edi
js 0x51d424
push 4
push 0x1000
lea eax, [esp + 0x24]
mov dword [esp + 0x24], 0x2000
push eax
push 0
lea eax, [esp + 0x20]
mov dword [esp + 0x20], 0
push eax
push 0xffffffffffffffff
call dword [sym.imp.ntdll.dll_NtAllocateVirtualMemory]
nop
test eax, eax
js 0x51d41f
mov edi, dword [esp + 0x10]
test edi, edi
je 0x51d41f
push 0
push 0
push 0x2000
push edi
lea eax, [esp + 0x24]
push eax
push 0
push 0
push 0
push ebx
call dword [sym.imp.ntdll.dll_NtReadFile]
mov ebp, dword [esp + 0x20]
mov esi, eax
test esi, esi
js 0x51d3d8
lfence
nop dword [eax]
mov eax, dword [esp + 0x18]
test eax, eax
je 0x51d3d8
push 0
push 0
push eax
push edi
lea eax, [esp + 0x24]
push eax
push 0
push 0
push 0
push ebp
call dword [sym.imp.ntdll.dll_NtWriteFile]
mov esi, eax
test esi, esi
js 0x51d3d8
cmp dword [esp + 0x18], 0
je 0x51d3d8
push 0
push 0
push 0x2000
push edi
lea eax, [esp + 0x24]
push eax
push 0
push 0
push 0
push ebx
lfence
call dword [sym.imp.ntdll.dll_NtReadFile]
mov esi, eax
test esi, esi
jns 0x51d380
push edi
call sym.SystemInformer.exe_Ordinal_1382
xor edi, edi
cmp esi, 0xc0000011
cmovne edi, esi
test edi, edi
js 0x51d40f
push 4
push 0x28
lea eax, [esp + 0x38]
push eax
lea eax, [esp + 0x2c]
push eax
push ebp
call dword [sym.imp.ntdll.dll_NtSetInformationFile]
push ebp
call dword [sym.imp.ntdll.dll_NtClose]
jmp 0x51d424
mov ecx, ebp
call fcn.00517600
push ebp
call dword [sym.imp.ntdll.dll_NtClose]
jmp 0x51d424
mov edi, 0xc0000017
push ebx
call dword [sym.imp.ntdll.dll_NtClose]
mov ecx, dword [esp + 0x5c]
mov eax, edi
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.00583f9f
add esp, 0x50
ret 4
Function at 0x51db20
Capabilities:
Get system information on windows

Disassembly:
sub esp, 0x24
mov eax, dword [0x62d040]
xor eax, esp
mov dword [esp + 0x20], eax
push esi
push edi
lea eax, [esp + 0xc]
mov dword [esp + 8], ecx
push eax
push 0x18
lea eax, [esp + 0x18]
mov edi, edx
push eax
push 4
lea eax, [esp + 0x18]
push eax
push 0xe6
call dword [sym.imp.ntdll.dll_NtQuerySystemInformationEx]
test eax, eax
js 0x51db89
mov edx, dword [esp + 0xc]
xor eax, eax
shr edx, 2
test edx, edx
je 0x51db84
nop word [eax + eax]
mov ecx, dword [esp + eax*4 + 0x10]
movzx esi, cx
test ecx, 0x80000
jne 0x51db9a
inc eax
cmp eax, edx
jb 0x51db70
mov eax, 0xc0000225
pop edi
pop esi
mov ecx, dword [esp + 0x20]
xor ecx, esp
call fcn.00583f9f
add esp, 0x24
ret
mov ecx, dword [esp + 0x28]
xor eax, eax
mov word [edi], si
pop edi
pop esi
xor ecx, esp
call fcn.00583f9f
add esp, 0x24
ret

Function at 0x51dbb0
Capabilities:
Get uefi variable

Disassembly:
sub esp, 0x24
mov eax, dword [0x62d040]
xor eax, esp
mov dword [esp + 0x1c], eax
push 0
lea eax, [esp + 4]
mov dword [esp + 8], 0x40002
push eax
push 0
lea eax, [esp + 0x18]
mov dword [esp + 0x14], 0x5d397c
push eax
lea eax, [esp + 0x14]
mov dword [esp + 0x10], 0
xorps xmm0, xmm0
push eax
movups xmmword [esp + 0x20], xmm0
call dword [sym.imp.ntdll.dll_NtQuerySystemEnvironmentValueEx]
mov ecx, dword [esp + 0x1c]
cmp eax, 0xc0000100
sete al
xor ecx, esp
call fcn.00583f9f
add esp, 0x24
ret
Function at 0x51dc20
Capabilities:
Get uefi variable

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x34
mov eax, dword [0x62d040]
xor eax, esp
mov dword [esp + 0x30], eax
mov ecx, dword [ebp + 8]
mov eax, dword [ebp + 0x10]
mov dword [esp + 0x1c], eax
push ebx
movzx eax, word [ecx]
mov ebx, dword [ebp + 0x14]
mov word [esp + 0x18], ax
add eax, 2
mov word [esp + 0x1a], ax
mov eax, dword [ecx + 4]
mov ecx, dword [ebp + 0xc]
mov dword [esp + 0x1c], eax
push esi
push edi
movzx eax, word [ecx]
mov edi, dword [ebp + 0x18]
mov word [esp + 0x18], ax
add eax, 2
cmp dword [ecx], 0xfffe
mov word [esp + 0x1a], ax
mov eax, dword [ecx + 4]
mov dword [esp + 0x10], 0
mov dword [esp + 0x14], 0
mov dword [esp + 0x1c], eax
jbe 0x51dcac
mov eax, 0x80000005
lfence
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x30]
xor ecx, esp
call fcn.00583f9f
mov esp, ebp
pop ebp
ret 0x14
lea eax, [esp + 0x2c]
push eax
lea eax, [esp + 0x1c]
push eax
call dword [sym.imp.ntdll.dll_RtlGUIDFromString]
nop dword [eax]
test eax, eax
jns 0x51dcdb
lfence
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x30]
xor ecx, esp
call fcn.00583f9f
mov esp, ebp
pop ebp
ret 0x14
lea eax, [esp + 0x14]
push eax
lea eax, [esp + 0x14]
push eax
push 0
lea eax, [esp + 0x38]
push eax
lea eax, [esp + 0x30]
push eax
call dword [sym.imp.ntdll.dll_NtQuerySystemEnvironmentValueEx]
cmp eax, 0xc0000023
je 0x51dd17
mov eax, 0xc0000001
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x30]
xor ecx, esp
call fcn.00583f9f
mov esp, ebp
pop ebp
ret 0x14
push dword [esp + 0x10]
push 4
push dword [0x633a54]
call dword [sym.imp.ntdll.dll_RtlAllocateHeap]
push dword [esp + 0x10]
mov esi, eax
push 0
push esi
call fcn.005861d0
add esp, 0xc
lea eax, [esp + 0x14]
push eax
lea eax, [esp + 0x14]
push eax
push esi
lea eax, [esp + 0x38]
push eax
lea eax, [esp + 0x30]
push eax
call dword [sym.imp.ntdll.dll_NtQuerySystemEnvironmentValueEx]
mov dword [esp + 0x18], eax
test eax, eax
js 0x51dd91
mov eax, dword [esp + 0x28]
test eax, eax
je 0x51dd69
mov dword [eax], esi
jmp 0x51dd7b
push esi
push 0
lfence
push dword [0x633a54]
call dword [sym.imp.ntdll.dll_RtlFreeHeap]
test ebx, ebx
je 0x51dd85
mov eax, dword [esp + 0x10]
mov dword [ebx], eax
test edi, edi
je 0x51dda6
mov eax, dword [esp + 0x14]
mov dword [edi], eax
jmp 0x51dda6
push esi
push 0
lfence
push dword [0x633a54]
call dword [sym.imp.ntdll.dll_RtlFreeHeap]
mov ecx, dword [esp + 0x3c]
mov eax, dword [esp + 0x18]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.00583f9f
mov esp, ebp
pop ebp
ret 0x14
Function at 0x51dea0
Capabilities:
Get uefi variable

Disassembly:
push ecx
push ebx
push esi
push edi
push 0x1000
push 4
push dword [0x633a54]
mov dword [esp + 0x18], 0x1000
call dword [sym.imp.ntdll.dll_RtlAllocateHeap]
mov ebx, dword [esp + 0x14]
mov edi, eax
lea eax, [esp + 0xc]
push eax
push edi
push ebx
call dword [sym.imp.ntdll.dll_NtEnumerateSystemEnvironmentValuesEx]
mov esi, eax
cmp esi, 0xc0000023
je 0x51dee8
nop dword [eax]
cmp esi, 0xc0000004
jne 0x51df0b
push edi
push 0
push dword [0x633a54]
call dword [sym.imp.ntdll.dll_RtlFreeHeap]
push dword [esp + 0xc]
push 4
push dword [0x633a54]
call dword [sym.imp.ntdll.dll_RtlAllocateHeap]
jmp 0x51dec3
test esi, esi
js 0x51df1e
mov eax, dword [esp + 0x18]
mov dword [eax], edi
mov eax, esi
pop edi
pop esi
pop ebx
pop ecx
ret 8
push edi
push 0
push dword [0x633a54]
call dword [sym.imp.ntdll.dll_RtlFreeHeap]
pop edi
mov eax, esi
pop esi
pop ebx
pop ecx
ret 8

Function at 0x51e300
Capabilities:
Get system information on windows

Disassembly:
sub esp, 0xc
mov dword [esp + 8], edx
mov dword [esp + 4], ecx
push ebp
push esi
cmp ecx, 4
jg 0x51e344
je 0x51e337
test ecx, ecx
je 0x51e32a
cmp ecx, 3
jne 0x51e34c
mov esi, dword [0x6309c4]
mov ebp, 0x6309c4
jmp 0x51e364
mov esi, dword [0x6309c0]
mov ebp, 0x6309c0
jmp 0x51e364
mov esi, dword [0x6309c8]
mov ebp, 0x6309c8
jmp 0x51e364
cmp ecx, 0xffff
je 0x51e359
pop esi
mov eax, 0xc0000003
pop ebp
add esp, 0xc
ret 4
mov esi, dword [0x6309cc]
mov ebp, 0x6309cc
push ebx
push edi
push esi
push 4
push dword [0x633a54]
mov dword [esp + 0x1c], esi
call dword [sym.imp.ntdll.dll_RtlAllocateHeap]
mov ebx, eax
lea eax, [esp + 0x10]
push eax
push esi
push ebx
push 4
lea eax, [esp + 0x24]
push eax
push 0x6b
call dword [sym.imp.ntdll.dll_NtQuerySystemInformationEx]
mov edi, eax
xor esi, esi
cmp edi, 0xc0000004
jne 0x51e3f1
nop dword [eax]
cmp esi, 8
jae 0x51e3f5
push ebx
push 0
push dword [0x633a54]
call dword [sym.imp.ntdll.dll_RtlFreeHeap]
push dword [esp + 0x10]
push 4
push dword [0x633a54]
call dword [sym.imp.ntdll.dll_RtlAllocateHeap]
mov ebx, eax
lea eax, [esp + 0x10]
push eax
push dword [esp + 0x14]
lea eax, [esp + 0x1c]
push ebx
push 4
push eax
push 0x6b
call dword [sym.imp.ntdll.dll_NtQuerySystemInformationEx]
mov edi, eax
inc esi
cmp edi, 0xc0000004
je 0x51e3a0
test edi, edi
jns 0x51e413
push ebx
push 0
lfence
push dword [0x633a54]
call dword [sym.imp.ntdll.dll_RtlFreeHeap]
mov eax, edi
pop edi
pop ebx
pop esi
pop ebp
add esp, 0xc
ret 4
lfence
mov ecx, dword [esp + 0x10]
cmp ecx, 0x100000
ja 0x51e42b
mov dword [ebp], ecx
mov eax, dword [esp + 0x18]
mov dword [eax], ebx
mov eax, dword [esp + 0x20]
mov dword [eax], ecx
mov eax, edi
pop edi
pop ebx
pop esi
pop ebp
add esp, 0xc
ret 4

Function at 0x51e6e0
Capabilities:
Check for peb beingdebugged flag

Disassembly:
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x30]
mov al, byte [eax + 2]
ret
Function at 0x51e940
Capabilities:
Resume thread

Disassembly:
sub esp, 0x44
push ebx
push ebp
push esi
push edi
xor ebx, ebx
mov dword [esp + 0x18], 0
push ebx
lea eax, [esp + 0x1c]
mov dword [esp + 0x24], 0
push eax
push ebx
push str.RtlExitUserThread
mov edi, ecx
mov dword [esp + 0x2c], 0
push 0x6309f4
push edi
mov ebp, edx
mov dword [esp + 0x2c], ebx
call sym.SystemInformer.exe_Ordinal_1525
test eax, eax
js 0x51ea9b
push ebx
lea eax, [esp + 0x24]
push eax
push ebx
push str.RtlFlushHeaps
push 0x6309f4
push edi
lfence
call sym.SystemInformer.exe_Ordinal_1525
test eax, eax
js 0x51ea9b
cmp dword [0x62db64], 0x3e
jb 0x51e9d4
lea edx, [esp + 0x14]
mov ecx, edi
lfence
call fcn.0051df40
mov ebx, dword [esp + 0x14]
mov esi, eax
test esi, esi
js 0x51ea5a
push 0
lea eax, [esp + 0x20]
push eax
push 0
lfence
push dword [esp + 0x24]
push 0
push 0
push ecx
push 1
mov ecx, edi
call fcn.004fe940
mov edi, dword [esp + 0x1c]
mov esi, eax
test esi, esi
js 0x51ea4f
push 0
push 0
push 0
push dword [esp + 0x2c]
push edi
call dword [sym.imp.ntdll.dll_NtQueueApcThread]
mov esi, eax
test esi, esi
js 0x51ea4f
push 0
push edi
call dword [sym.imp.ntdll.dll_NtResumeThread]
mov esi, eax
test esi, esi
js 0x51ea4f
push ebp
push 0
push edi
call dword [sym.imp.ntdll.dll_NtWaitForSingleObject]
mov esi, eax
test esi, esi
js 0x51ea4f
push 0
push 0x1c
lea eax, [esp + 0x3c]
push eax
push 0
push edi
call dword [sym.imp.ntdll.dll_NtQueryInformationThread]
mov esi, eax
test esi, esi
cmovns esi, dword [esp + 0x34]
test edi, edi
je 0x51ea5a
push edi
call dword [sym.imp.ntdll.dll_NtClose]
test ebx, ebx
je 0x51ea99
push 0
push 0
push 0x10
lea eax, [esp + 0x30]
xorps xmm0, xmm0
movups xmmword [esp + 0x30], xmm0
push eax
push 0x2c
mov dword [esp + 0x38], ebx
mov dword [esp + 0x3c], 3
mov byte [esp + 0x40], 0
mov dword [esp + 0x44], 0
call dword [sym.imp.ntdll.dll_NtPowerInformation]
push ebx
call dword [sym.imp.ntdll.dll_NtClose]
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x44
ret
Function at 0x5222c0
Capabilities:
Enumerate services

Disassembly:
sub esp, 0x14
mov eax, dword [0x62db64]
mov dword [esp + 0x10], edx
mov dword [esp + 0xc], ecx
push ebx
push ebp
push esi
push edi
cmp eax, 0x66
jb 0x5222e2
mov edi, 0x3ff
jmp 0x5222f3
cmp eax, 0x64
sbb edi, edi
and edi, 0xfffffe3c
add edi, 0x1ff
mov ebx, dword [0x635a50]
test ebx, ebx
jne 0x52232f
push 5
push ebx
push ebx
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov edx, eax
test edx, edx
je 0x52232f
mov ecx, edx
mov esi, 0x635a50
xor eax, eax
lock cmpxchg dword [esi], ecx
mov ebx, eax
test ebx, ebx
jne 0x522328
mov ebx, edx
jmp 0x52232f
push edx
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov ebp, dword [0x630bf8]
push ebp
push 4
push dword [0x633a54]
call dword [sym.imp.ntdll.dll_RtlAllocateHeap]
push 0
push 0
lea ecx, [esp + 0x20]
mov dword [esp + 0x18], eax
push ecx
lea ecx, [esp + 0x20]
push ecx
push ebp
push eax
push 3
push edi
push 0
push ebx
call dword [sym.imp.ADVAPI32.dll_EnumServicesStatusExW]
test eax, eax
jne 0x522430
cmp dword [0x62db64], 0xffffffff
jae 0x522382
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x34]
jmp 0x522388
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call sym.SystemInformer.exe_Ordinal_1343
mov esi, eax
cmp esi, 0x105
jne 0x522407
mov eax, dword [esp + 0x10]
push eax
push 0
push dword [0x633a54]
call dword [sym.imp.ntdll.dll_RtlFreeHeap]
add ebp, dword [esp + 0x14]
push ebp
push 4
push dword [0x633a54]
call dword [sym.imp.ntdll.dll_RtlAllocateHeap]
push 0
push 0
lea ecx, [esp + 0x20]
mov dword [esp + 0x18], eax
push ecx
lea ecx, [esp + 0x20]
push ecx
push ebp
push eax
push 3
push edi
push 0
push ebx
call dword [sym.imp.ADVAPI32.dll_EnumServicesStatusExW]
nop
test eax, eax
jne 0x522430
cmp dword [0x62db64], 0xffffffff
jae 0x5223f8
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x34]
jmp 0x5223fe
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call sym.SystemInformer.exe_Ordinal_1343
mov esi, eax
test esi, esi
jns 0x522432
mov eax, dword ds:[esp + 0x10]
push eax
push 0
lfence
push dword [0x633a54]
call dword [sym.imp.ntdll.dll_RtlFreeHeap]
pop edi
mov eax, esi
pop esi
pop ebp
pop ebx
add esp, 0x14
ret
xor esi, esi
lfence
cmp ebp, 0x20000
ja 0x522443
mov dword [0x630bf8], ebp
mov ecx, dword [esp + 0x1c]
mov eax, dword [esp + 0x10]
pop edi
mov dword [ecx], eax
mov ecx, dword [esp + 0x1c]
mov eax, dword [esp + 0x14]
mov dword [ecx], eax
mov eax, esi
pop esi
pop ebp
pop ebx
add esp, 0x14
ret