joyce8/EMBER2024-capa huggingface dataset:
Function at 0x51e820
Capabilities:
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov dword [ebp - 0x10], edx
mov dword [ebp - 0xc], ecx
cmp ecx, 4
jg 0x51e866
je 0x51e858
test ecx, ecx
je 0x51e84a
cmp ecx, 3
jne 0x51e86e
mov eax, dword [0x631d94]
mov dword [ebp - 8], 0x631d94
jmp 0x51e885
mov eax, dword [0x631d90]
mov dword [ebp - 8], 0x631d90
jmp 0x51e885
mov eax, dword [0x631d98]
mov dword [ebp - 8], 0x631d98
jmp 0x51e885
cmp ecx, 0xffff
je 0x51e879
mov eax, 0xc0000003
mov esp, ebp
pop ebp
ret 4
mov eax, dword [0x631d9c]
mov dword [ebp - 8], 0x631d9c
push ebx
push esi
push edi
push eax
push 4
push dword [0x635044]
mov dword [ebp - 4], eax
call dword [sym.imp.ntdll.dll_RtlAllocateHeap]
mov ebx, eax
lea eax, [ebp - 4]
push eax
push dword [ebp - 4]
lea eax, [ebp - 0xc]
push ebx
push 4
push eax
push 0x6b
call dword [sym.imp.ntdll.dll_NtQuerySystemInformationEx]
mov edi, eax
xor esi, esi
cmp edi, 0xc0000004
jne 0x51e909
mov edi, edi
cmp esi, 8
jae 0x51e90d
push ebx
push 0
push dword [0x635044]
call dword [sym.imp.ntdll.dll_RtlFreeHeap]
push dword ds:[ebp - 4]
push 4
push dword [0x635044]
call dword [sym.imp.ntdll.dll_RtlAllocateHeap]
mov ebx, eax
lea eax, [ebp - 4]
push eax
push dword [ebp - 4]
lea eax, [ebp - 0xc]
push ebx
push 4
push eax
push 0x6b
call dword [sym.imp.ntdll.dll_NtQuerySystemInformationEx]
mov edi, eax
inc esi
cmp edi, 0xc0000004
je 0x51e8c0
test edi, edi
jns 0x51e92a
push ebx
push 0
lfence
push dword [0x635044]
call dword [sym.imp.ntdll.dll_RtlFreeHeap]
mov eax, edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
lfence
mov ecx, dword [ebp - 4]
cmp ecx, 0x100000
ja 0x51e93d
mov eax, dword [ebp - 8]
mov dword [eax], ecx
mov eax, dword [ebp - 0x10]
mov dword [eax], ebx
mov eax, dword [ebp + 8]
mov dword [eax], ecx
mov eax, edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x51ed40
Capabilities:
Resume thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x44
push ebx
push esi
push edi
xor edi, edi
mov dword [ebp - 0x14], edx
push edi
lea eax, [ebp - 8]
mov dword [ebp - 8], 0
push eax
push edi
push str.RtlExitUserThread
mov ebx, ecx
mov dword [ebp - 0x10], 0
push 0x631dd4
push ebx
mov dword [ebp - 0xc], 0
mov dword [ebp - 4], edi
call sym.SystemInformer.exe_PhGetProcedureAddressRemote
mov edi, edi
test eax, eax
js 0x51ee88
push edi
lea eax, [ebp - 0x10]
push eax
push edi
push str.RtlFlushHeaps
push 0x631dd4
push ebx
lfence
call sym.SystemInformer.exe_PhGetProcedureAddressRemote
test eax, eax
js 0x51ee88
cmp dword [0x62ebb0], 0x3e
jb 0x51edd2
lea edx, ds:[ebp - 4]
mov ecx, ebx
lfence
call fcn.0051e460
mov edi, dword [ebp - 4]
mov esi, eax
test esi, esi
js 0x51ee52
push 0
lea eax, [ebp - 0xc]
push eax
push 0
lfence
push dword [ebp - 8]
push 0
push 0
push ecx
push 1
mov ecx, ebx
call fcn.004fc7a0
mov ebx, dword [ebp - 0xc]
mov esi, eax
test esi, esi
js 0x51ee47
push 0
push 0
push 0
push dword [ebp - 0x10]
push ebx
call dword [sym.imp.ntdll.dll_NtQueueApcThread]
mov esi, eax
test esi, esi
js 0x51ee47
push 0
push ebx
call dword [sym.imp.ntdll.dll_NtResumeThread]
mov esi, eax
test esi, esi
js 0x51ee47
push dword [ebp - 0x14]
push 0
push ebx
call dword [sym.imp.ntdll.dll_NtWaitForSingleObject]
mov esi, eax
test esi, esi
js 0x51ee47
push 0
push 0x1c
lea eax, [ebp - 0x40]
push eax
push 0
push ebx
call dword [sym.imp.ntdll.dll_NtQueryInformationThread]
mov esi, eax
test esi, esi
cmovns esi, dword [ebp - 0x40]
test ebx, ebx
je 0x51ee52
push ebx
call dword [sym.imp.ntdll.dll_NtClose]
test edi, edi
je 0x51ee86
xor eax, eax
mov dword [ebp - 0x24], edi
push eax
push eax
mov dword [ebp - 0x1c], eax
mov byte [ebp - 0x1c], al
mov dword [ebp - 0x18], eax
lea eax, [ebp - 0x24]
push 0x10
push eax
push 0x2c
mov dword [ebp - 0x20], 3
call dword [sym.imp.ntdll.dll_NtPowerInformation]
push edi
call dword [sym.imp.ntdll.dll_NtClose]
mov eax, esi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x5225c0
Capabilities:
Enumerate services

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [0x62ebb0]
mov dword [ebp - 0x18], edx
mov dword [ebp - 0x14], ecx
push ebx
push esi
push edi
cmp eax, 0x66
jb 0x5225e2
mov edi, 0x3ff
jmp 0x5225f3
cmp eax, 0x64
sbb edi, edi
and edi, 0xfffffe3c
add edi, 0x1ff
xor ecx, ecx
mov ebx, 0x636e6c
xor eax, eax
lock cmpxchg dword [ebx], ecx
mov esi, eax
mov dword [ebp - 8], esi
test esi, esi
jne 0x522638
push 5
push eax
push eax
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov edx, eax
test edx, edx
je 0x522638
mov ecx, edx
xor eax, eax
lock cmpxchg dword [ebx], ecx
mov esi, eax
mov dword [ebp - 8], esi
test esi, esi
jne 0x522631
mov esi, edx
mov dword [ebp - 8], esi
jmp 0x522638
push edx
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov ebx, dword [0x630288]
push ebx
push 4
push dword [0x635044]
call dword [sym.imp.ntdll.dll_RtlAllocateHeap]
push 0
push 0
lea ecx, [ebp - 0x10]
mov dword [ebp - 4], eax
push ecx
lea ecx, [ebp - 0xc]
push ecx
push ebx
push eax
push 3
push edi
push 0
push esi
call dword [sym.imp.ADVAPI32.dll_EnumServicesStatusExW]
test eax, eax
jne 0x522730
cmp dword [0x62ebb0], 0xffffffff
jae 0x522686
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x34]
jmp 0x52268c
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call sym.SystemInformer.exe_PhDosErrorToNtStatus
mov esi, eax
cmp esi, 0x105
jne 0x52270e
mov eax, dword [ebp - 4]
push eax
push 0
push dword [0x635044]
call dword [sym.imp.ntdll.dll_RtlFreeHeap]
add ebx, dword ds:[ebp - 0xc]
push ebx
push 4
push dword [0x635044]
call dword [sym.imp.ntdll.dll_RtlAllocateHeap]
push 0
push 0
lea ecx, [ebp - 0x10]
mov dword [ebp - 4], eax
push ecx
lea ecx, [ebp - 0xc]
push ecx
push ebx
push eax
push 3
push edi
push 0
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_EnumServicesStatusExW]
test eax, eax
jne 0x522730
cmp dword [0x62ebb0], 0xffffffff
jae 0x5226fe
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x34]
jmp 0x522706
mov edi, edi
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call sym.SystemInformer.exe_PhDosErrorToNtStatus
mov esi, eax
test esi, esi
jns 0x522732
mov eax, dword [ebp - 4]
push eax
push 0
lfence
push dword [0x635044]
call dword [sym.imp.ntdll.dll_RtlFreeHeap]
pop edi
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
xor esi, esi
lfence
cmp ebx, 0x20000
ja 0x522743
mov dword [0x630288], ebx
mov ecx, dword [ebp - 0x14]
mov eax, dword [ebp - 4]
pop edi
mov dword [ecx], eax
mov ecx, dword [ebp - 0x18]
mov eax, dword [ebp - 0x10]
mov dword [ecx], eax
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x522a20
Capabilities:
Create service

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
push 2
push 0
push 0
mov ebx, edx
mov edi, ecx
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov esi, eax
test esi, esi
jne 0x522a67
cmp dword [0x62ebb0], 0xffffffff
jae 0x522a51
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x34]
jmp 0x522a57
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call sym.SystemInformer.exe_PhDosErrorToNtStatus
lea ecx, [ecx]
test eax, eax
js 0x522ad7
mov esi, dword [ebp - 4]
push dword [ebp + 0x24]
push dword [ebp + 0x20]
push 0
push 0
push 0
push dword [ebp + 0x1c]
push dword [ebp + 0x18]
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push ebx
push esi
call dword [sym.imp.ADVAPI32.dll_CreateServiceW]
test eax, eax
je 0x522aa7
mov dword [edi], eax
xor edi, edi
push esi
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov eax, edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x20
cmp dword [0x62ebb0], 0xffffffff
jae 0x522abb
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x34]
jmp 0x522ac6
jmp 0x522ac0
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call sym.SystemInformer.exe_PhDosErrorToNtStatus
push esi
mov edi, eax
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov eax, edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x20

Function at 0x522d00
Capabilities:
Query service status

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [ebp + 0xc]
xor ecx, ecx
mov dword [ebp - 4], 0
mov dword [eax], ecx
mov dword [eax + 4], ecx
mov dword [eax + 8], ecx
mov dword [eax + 0xc], ecx
mov dword [eax + 0x10], ecx
mov dword [eax + 0x14], ecx
mov dword [eax + 0x18], ecx
mov dword [eax + 0x1c], ecx
mov dword [eax + 0x20], ecx
lea ecx, [ebp - 4]
push ecx
push 0x24
push eax
push 0
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_QueryServiceStatusEx]
lea esp, [esp]
test eax, eax
je 0x522d4c
xor eax, eax
mov esp, ebp
pop ebp
ret 8
cmp dword [0x62ebb0], 0xffffffff
jae 0x522d6b
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x34]
push eax
call sym.SystemInformer.exe_PhDosErrorToNtStatus
mov esp, ebp
pop ebp
ret 8
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call sym.SystemInformer.exe_PhDosErrorToNtStatus
mov esp, ebp
pop ebp
ret 8

Function at 0x522ea0
Capabilities:
Continue service

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
mov eax, dword [0x62e040]
xor eax, ebp
mov dword [ebp - 4], eax
lea eax, [ebp - 0x20]
push eax
push 3
push ecx
call dword [sym.imp.ADVAPI32.dll_ControlService]
lea ecx, [ecx]
test eax, eax
je 0x522ed4
xor eax, eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.005802ef
mov esp, ebp
pop ebp
ret
cmp dword [0x62ebb0], 0xffffffff
jae 0x522efa
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x34]
push eax
call sym.SystemInformer.exe_PhDosErrorToNtStatus
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.005802ef
mov esp, ebp
pop ebp
ret
lea ebx, [ebx]
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call sym.SystemInformer.exe_PhDosErrorToNtStatus
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.005802ef
mov esp, ebp
pop ebp
ret
Function at 0x522f20
Capabilities:
Pause service

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
mov eax, dword [0x62e040]
xor eax, ebp
mov dword [ebp - 4], eax
lea eax, [ebp - 0x20]
push eax
push 2
push ecx
call dword [sym.imp.ADVAPI32.dll_ControlService]
lea ecx, [ecx]
test eax, eax
je 0x522f54
xor eax, eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.005802ef
mov esp, ebp
pop ebp
ret
cmp dword [0x62ebb0], 0xffffffff
jae 0x522f7a
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x34]
push eax
call sym.SystemInformer.exe_PhDosErrorToNtStatus
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.005802ef
mov esp, ebp
pop ebp
ret
lea ebx, [ebx]
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call sym.SystemInformer.exe_PhDosErrorToNtStatus
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.005802ef
mov esp, ebp
pop ebp
ret

Function at 0x523060
Capabilities:
Stop service

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
mov eax, dword [0x62e040]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
lea ecx, [ebp - 0x20]
push ecx
push 1
push eax
call dword [sym.imp.ADVAPI32.dll_ControlService]
test eax, eax
je 0x52309c
xor eax, eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.005802ef
mov esp, ebp
pop ebp
ret 4
cmp dword [0x62ebb0], 0xffffffff
jae 0x5230b0
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x34]
jmp 0x5230b6
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call sym.SystemInformer.exe_PhDosErrorToNtStatus
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.005802ef
mov esp, ebp
pop ebp
ret 4

Function at 0x5281c0
Capabilities:
Access peb ldr_data
Get process heap flags

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x24
mov eax, dword fs:[0x18]
mov dword [esp + 8], ecx
push ebx
push esi
mov eax, dword [eax + 0x30]
mov ebx, edx
push edi
mov ecx, dword [eax + 0xc]
add ecx, 0xc
mov dword [esp + 0x10], ecx
mov esi, dword [ecx]
cmp esi, ecx
je 0x52827e
nop
cmp dword [esp + 0x14], 0
movzx edi, word [esi + 0x2c]
movzx edx, word [esi + 0x24]
mov eax, dword [esi + 0x28]
mov dword [esp + 0x1c], edi
mov edi, dword [esi + 0x30]
mov dword [esp + 0x18], edi
mov edi, dword [ebp + 8]
je 0x52821d
mov ecx, dword [esp + 0x14]
cmp dword [esi + 0x18], ecx
mov ecx, dword [esp + 0x10]
jne 0x528274
lea ecx, [ecx]
test ebx, ebx
je 0x528247
mov dword [esp + 0x24], eax
mov eax, dword [ebx]
mov dword [esp + 0x20], eax
cmp edx, eax
jb 0x528274
push 1
push ebx
lea eax, [esp + 0x28]
push eax
call sym.SystemInformer.exe_PhEqualStringRef
mov ecx, dword [esp + 0x10]
test al, al
je 0x528274
test edi, edi
je 0x528289
mov eax, dword [esp + 0x18]
mov dword [esp + 0x2c], eax
mov eax, dword [edi]
mov dword [esp + 0x28], eax
cmp dword [esp + 0x1c], eax
jb 0x528274
push 1
push edi
lea eax, [esp + 0x30]
push eax
call sym.SystemInformer.exe_PhEqualStringRef
test al, al
jne 0x528289
mov ecx, dword [esp + 0x10]
mov esi, dword [esi]
cmp esi, ecx
jne 0x5281f0
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
pop edi
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x528320
Capabilities:
Map section object

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x2c
cmp byte [ebp + 0xc], 0
push esi
je 0x52834f
push 0x60
push 1
push 5
push 0x80
push 0x100081
push dword [ebp + 8]
lea eax, [esp + 0x20]
push eax
call sym.SystemInformer.exe_PhCreateFile
jmp 0x528373
mov eax, dword [ebp + 8]
push 0
push 0x60
push 1
push 5
push 0x80
push 0
push 0x100081
push dword [eax + 4]
lea eax, [esp + 0x28]
push eax
call sym.SystemInformer.exe_PhCreateFileWin32Ex
test eax, eax
jns 0x528383
lfence
pop esi
mov esp, ebp
pop ebp
ret 0xc
cmp dword [0x62ebb0], 0x3e
push dword ds:[esp + 8]
sbb eax, eax
mov dword [esp + 0x1c], 0x18
and eax, 0xf0000000
mov dword [esp + 0x20], 0
add eax, 0x11000000
mov dword [esp + 0x28], 0
push eax
push 2
push 0
lea eax, [esp + 0x28]
mov dword [esp + 0x30], 0
push eax
push 5
lea eax, [esp + 0x24]
mov dword [esp + 0x40], 0
push eax
mov dword [esp + 0x48], 0
call dword [sym.imp.ntdll.dll_NtCreateSection]
mov esi, eax
test esi, esi
js 0x52845a
cmp dword [0x62ebb0], 0x67
push 2
sbb eax, eax
mov dword [esp + 0x14], 0
and eax, 0xfffc0000
mov dword [esp + 0x18], 0
add eax, 0x40000
push eax
push 2
lea eax, [esp + 0x20]
push eax
push 0
push 0
push 0
lea eax, [esp + 0x2c]
push eax
push 0xffffffffffffffff
push dword [esp + 0x30]
call dword [sym.imp.ntdll.dll_NtMapViewOfSection]
push dword ds:[esp + 0xc]
xor esi, esi
cmp eax, 0x40000003
cmovne esi, eax
call dword [sym.imp.ntdll.dll_NtClose]
test esi, esi
js 0x52845a
mov eax, dword [ebp + 0x10]
test eax, eax
je 0x52845a
mov ecx, dword [esp + 0x10]
or ecx, 2
mov dword [eax], ecx
push dword ds:[esp + 8]
call dword [sym.imp.ntdll.dll_NtClose]
mov eax, esi
pop esi
mov esp, ebp
pop ebp
ret 0xc

Function at 0x528520
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
mov ecx, dword [ebp + 8]
mov eax, 0x5a4d
cmp word [ecx], ax
jne 0x528576
mov eax, dword [ecx + 0x3c]
test eax, eax
je 0x528576
lea ebx, [ebx]
cmp eax, 0x7fffffff
jae 0x528576
cmp dword [eax + ecx], 0x4550
jne 0x528576
lea edx, [ecx + 0x78]
add edx, eax
mov eax, dword [edx]
test eax, eax
je 0x528576
cmp dword ds:[edx + 4], 0
je 0x528576
push dword [ebp + 0x10]
add eax, ecx
push dword [ebp + 0xc]
push eax
call fcn.00528e20
mov esp, ebp
pop ebp
ret 0xc
xor eax, eax
mov esp, ebp
pop ebp
ret 0xc
Function at 0x528aa0
Capabilities:
Access peb ldr_data
Get process heap flags

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
mov eax, dword fs:[0x18]
sub esp, 8
mov eax, dword [eax + 0x30]
push esi
push edi
push dword [eax + 0xa0]
call dword [sym.imp.ntdll.dll_RtlEnterCriticalSection]
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x30]
mov eax, dword [eax + 0xc]
add eax, 0xc
mov edx, dword [eax]
cmp edx, eax
je 0x528aef
mov ecx, dword ds:[ebp + 8]
test ecx, ecx
je 0x528b14
cmp dword [edx + 0x18], ecx
je 0x528b14
mov edx, dword [edx]
cmp edx, eax
jne 0x528ae4
xor esi, esi
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x30]
push dword [eax + 0xa0]
call dword [sym.imp.ntdll.dll_RtlLeaveCriticalSection]
test esi, esi
jne 0x528b4b
xor eax, eax
pop edi
pop esi
mov esp, ebp
pop ebp
ret 8
test edx, edx
je 0x528aef
movzx eax, word ds:[edx + 0x24]
mov ecx, eax
test ax, ax
jne 0x528b2e
call sym.SystemInformer.exe_PhReferenceEmptyString
mov esi, eax
jmp 0x528af1
mov eax, dword [edx + 0x28]
push 0
mov dword [esp + 0x10], eax
lea eax, [esp + 0xc]
push 0
push eax
mov dword [esp + 0x14], ecx
call sym.SystemInformer.exe_PhCreateString3
mov esi, eax
jmp 0x528af1
push esi
call sym.SystemInformer.exe_PhGetFileName
mov edi, eax
lea ecx, [esi - 8]
or edx, 0xffffffff
lock xadd dword [ecx + 4], edx
dec edx
jne 0x528b68
call fcn.004fc020
mov esi, dword [ebp + 0xc]
test esi, esi
je 0x528b86
push 0
push 0x5c
push edi
call sym.SystemInformer.exe_PhFindLastCharInStringRef
xor edx, edx
cmp eax, 0xffffffff
lea ecx, [eax + 1]
cmove ecx, edx
mov dword [esi], ecx
mov eax, edi
pop edi
pop esi
mov esp, ebp
pop ebp
ret 8

Function at 0x528ba0
Capabilities:
Access peb ldr_data
Get process heap flags

Disassembly:
mov eax, dword fs:[0x18]
push ebx
push esi
push edi
mov eax, dword [eax + 0x30]
mov edi, edx
mov esi, ecx
push dword [eax + 0xa0]
call dword [sym.imp.ntdll.dll_RtlEnterCriticalSection]
cmp dword [0x62ebb0], 0x3e
jb 0x528c32
test esi, esi
jne 0x528c32
test edi, edi
je 0x528c32
mov eax, dword [edi]
test eax, eax
je 0x528c04
mov edi, dword [edi + 4]
shr eax, 1
lea ebx, [edi + eax*2]
cmp edi, ebx
je 0x528c04
nop
movzx eax, word ds:[edi]
mov ecx, eax
add eax, 0xffffff9f
cmp ax, 0x19
lea edx, [ecx - 0x20]
cmova edx, ecx
imul esi, esi, 0x1003f
add edi, 2
add esi, edx
cmp edi, ebx
jne 0x528be0
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x30]
mov ecx, dword [eax + 0xc]
mov eax, dword [ecx + 0xc]
add ecx, 0xc
cmp eax, ecx
je 0x528c2e
lea ebx, [ebx]
cmp dword [eax + 0x90], esi
je 0x528c3c
mov eax, dword [eax]
cmp eax, ecx
jne 0x528c20
xor eax, eax
jmp 0x528c3c
push edi
mov edx, esi
xor ecx, ecx
call fcn.005281c0
lea esp, [esp]
test eax, eax
je 0x528c49
mov esi, dword [eax + 0x18]
jmp 0x528c4b
xor esi, esi
mov ecx, dword fs:[0x18]
mov ecx, dword [ecx + 0x30]
push dword [ecx + 0xa0]
call dword [sym.imp.ntdll.dll_RtlLeaveCriticalSection]
pop edi
mov eax, esi
pop esi
pop ebx
ret
Function at 0x528c80
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push ecx
mov eax, 0x5a4d
push esi
mov esi, edx
cmp word [ecx], ax
jne 0x528cd5
mov eax, dword [ecx + 0x3c]
test eax, eax
je 0x528cd5
jmp 0x528ca0
cmp eax, 0x7fffffff
jae 0x528cd5
cmp dword [eax + ecx], 0x4550
jne 0x528cd5
lea edx, [ecx + 0x78]
add edx, eax
mov eax, dword [edx]
test eax, eax
je 0x528cd5
cmp dword ds:[edx + 4], 0
je 0x528cd5
push dword [ebp + 8]
add eax, ecx
push esi
push eax
call fcn.00528e20
pop esi
mov esp, ebp
pop ebp
ret 4
xor eax, eax
pop esi
mov esp, ebp
pop ebp
ret 4

Function at 0x528ce0
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 8
push esi
push edi
mov esi, ecx
mov edi, edx
push esi
call sym.SystemInformer.exe_PhCountStringZ
add eax, eax
mov dword [esp + 0xc], esi
lea edx, [esp + 8]
mov dword [esp + 8], eax
xor ecx, ecx
call fcn.00528ba0
mov ecx, eax
test ecx, ecx
je 0x528d5e
mov eax, 0x5a4d
cmp word [ecx], ax
jne 0x528d5e
mov eax, dword ds:[ecx + 0x3c]
test eax, eax
je 0x528d5e
cmp eax, 0x7fffffff
jae 0x528d5e
cmp dword [eax + ecx], 0x4550
jne 0x528d5e
lea edx, ds:[eax + 0x78]
mov eax, dword [edx + ecx]
add edx, ecx
test eax, eax
je 0x528d5e
cmp dword [edx + 4], 0
je 0x528d5e
push dword [ebp + 8]
add eax, ecx
push edi
push eax
call fcn.00528e20
pop edi
pop esi
mov esp, ebp
pop ebp
ret 4
pop edi
xor eax, eax
pop esi
mov esp, ebp
pop ebp
ret 4
Function at 0x529500
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
mov dword [ebp - 0x18], edx
mov eax, 0x5a4d
mov edx, ecx
mov dword [ebp - 0x14], edx
cmp word [edx], ax
je 0x529526
mov eax, 0xc000012f
lfence
mov esp, ebp
pop ebp
ret 0xc
mov eax, dword [edx + 0x3c]
test eax, eax
je 0x52967c
cmp eax, 0x7fffffff
jae 0x52967c
cmp dword [eax + edx], 0x4550
jne 0x52967c
mov ecx, dword [eax + edx + 0x80]
test ecx, ecx
je 0x52966e
cmp dword [eax + edx + 0x84], 0
je 0x52966e
push ebx
lea ebx, [edx + 0xc]
add ebx, ecx
push edi
mov edi, 0xc0000001
mov dword [ebp - 4], edi
cmp dword [ebx], 0
je 0x529627
push esi
nop
mov ecx, dword [ebx - 0xc]
test ecx, ecx
je 0x529626
mov eax, dword ds:[ebx]
lea edi, [ecx + edx]
push dword [ebp - 0x18]
mov esi, dword [ebx + 4]
add eax, edx
push eax
add esi, edx
call fcn.0058a47d
add esp, 8
test eax, eax
jne 0x529611
mov eax, dword [edi]
test eax, eax
je 0x529611
mov dword [ebp - 0xc], 4
sub edi, esi
mov dword [ebp - 8], 0
mov ecx, eax
mov dword [ebp - 0x10], esi
test eax, eax
js 0x529604
mov eax, dword [ebp - 0x14]
add eax, 2
add ecx, eax
mov eax, dword [ebp + 8]
mov dl, byte [ecx]
cmp dl, byte [eax]
jne 0x5295fa
lea esp, [esp]
test dl, dl
je 0x5295f6
mov dl, byte [ecx + 1]
cmp dl, byte [eax + 1]
jne 0x5295fa
add ecx, 2
add eax, 2
test dl, dl
jne 0x5295d6
xor eax, eax
jmp 0x5295ff
sbb eax, eax
or eax, 1
nop
test eax, eax
je 0x529631
mov eax, dword [edi + esi + 4]
add esi, 4
mov ecx, eax
test eax, eax
jne 0x5295c4
mov edi, dword [ebp - 4]
mov edx, dword ds:[ebp - 0x14]
add ebx, 0x14
cmp dword [ebx], 0
jne 0x529580
pop esi
mov eax, edi
pop edi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
lea eax, [ebp - 8]
push eax
push 4
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 0x10]
push eax
push 0xffffffffffffffff
call dword [sym.imp.ntdll.dll_NtProtectVirtualMemory]
mov edi, eax
mov dword [ebp - 4], edi
test edi, edi
js 0x529614
mov eax, dword [ebp + 0xc]
mov dword [esi], eax
lea eax, [ebp - 8]
push eax
push dword [ebp - 8]
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 0x10]
push eax
push 0xffffffffffffffff
call dword [sym.imp.ntdll.dll_NtProtectVirtualMemory]
jmp 0x529614
mov eax, 0xc0000020
lfence
mov esp, ebp
pop ebp
ret 0xc
mov eax, 0xc000007b
lfence
mov esp, ebp
pop ebp
ret 0xc
Function at 0x5296a0
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push ecx
mov eax, dword [ebp + 8]
push esi
mov esi, edx
mov edx, dword [eax]
test edx, edx
jns 0x52970c
mov eax, 0x5a4d
movzx ecx, dx
cmp word [esi], ax
jne 0x529732
mov eax, dword [esi + 0x3c]
test eax, eax
je 0x529732
cmp eax, 0x7fffffff
jae 0x529732
cmp dword [eax + esi], 0x4550
jne 0x529732
lea edx, [esi + 0x78]
add edx, eax
mov eax, dword [edx]
test eax, eax
je 0x529732
cmp dword [edx + 4], 0
je 0x529732
push ecx
add eax, esi
mov ecx, esi
push 0
push eax
call fcn.00528e20
test eax, eax
je 0x529732
mov ecx, dword [ebp + 0xc]
mov dword [ecx], eax
xor eax, eax
pop esi
mov esp, ebp
pop ebp
ret 8
movzx eax, word [edx + ecx]
add ecx, 2
add edx, ecx
mov ecx, esi
push eax
call fcn.005291a0
lea ecx, [ecx]
test eax, eax
je 0x529732
mov ecx, dword [ebp + 0xc]
mov dword [ecx], eax
xor eax, eax
pop esi
mov esp, ebp
pop ebp
ret 8
mov eax, 0xc0000138
pop esi
mov esp, ebp
pop ebp
ret 8