joyce8/EMBER2024-capa huggingface dataset:
Function at 0x51dca0
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 0x51dce6
je 0x51dcd8
test ecx, ecx
je 0x51dcca
cmp ecx, 3
jne 0x51dcee
mov eax, dword [0x630df4]
mov dword [ebp - 8], 0x630df4
jmp 0x51dd05
mov eax, dword [0x630df0]
mov dword [ebp - 8], 0x630df0
jmp 0x51dd05
mov eax, dword [0x630df8]
mov dword [ebp - 8], 0x630df8
jmp 0x51dd05
cmp ecx, 0xffff
je 0x51dcf9
mov eax, 0xc0000003
mov esp, ebp
pop ebp
ret 4
mov eax, dword [0x630dfc]
mov dword [ebp - 8], 0x630dfc
push ebx
push esi
push edi
push eax
push 4
push dword [0x633f94]
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 0x51dd89
mov edi, edi
cmp esi, 8
jae 0x51dd8d
push ebx
push 0
push dword [0x633f94]
call dword [sym.imp.ntdll.dll_RtlFreeHeap]
push dword ds:[ebp - 4]
push 4
push dword [0x633f94]
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 0x51dd40
test edi, edi
jns 0x51ddaa
push ebx
push 0
lfence
push dword [0x633f94]
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 0x51ddbd
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 0x51e1c0
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 0x630e34
push ebx
mov dword [ebp - 0xc], 0
mov dword [ebp - 4], edi
call sym.SystemInformer.exe_PhGetProcedureAddressRemote
mov edi, edi
test eax, eax
js 0x51e308
push edi
lea eax, [ebp - 0x10]
push eax
push edi
push str.RtlFlushHeaps
push 0x630e34
push ebx
lfence
call sym.SystemInformer.exe_PhGetProcedureAddressRemote
test eax, eax
js 0x51e308
cmp dword [0x62dbb0], 0x3e
jb 0x51e252
lea edx, ds:[ebp - 4]
mov ecx, ebx
lfence
call fcn.0051d8e0
mov edi, dword [ebp - 4]
mov esi, eax
test esi, esi
js 0x51e2d2
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.004fc5c0
mov ebx, dword [ebp - 0xc]
mov esi, eax
test esi, esi
js 0x51e2c7
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 0x51e2c7
push 0
push ebx
call dword [sym.imp.ntdll.dll_NtResumeThread]
mov esi, eax
test esi, esi
js 0x51e2c7
push dword [ebp - 0x14]
push 0
push ebx
call dword [sym.imp.ntdll.dll_NtWaitForSingleObject]
mov esi, eax
test esi, esi
js 0x51e2c7
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 0x51e2d2
push ebx
call dword [sym.imp.ntdll.dll_NtClose]
test edi, edi
je 0x51e306
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 0x521a40
Capabilities:
Enumerate services

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [0x62dbb0]
mov dword [ebp - 0x18], edx
mov dword [ebp - 0x14], ecx
push ebx
push esi
push edi
cmp eax, 0x66
jb 0x521a62
mov edi, 0x3ff
jmp 0x521a73
cmp eax, 0x64
sbb edi, edi
and edi, 0xfffffe3c
add edi, 0x1ff
xor ecx, ecx
mov ebx, 0x635f34
xor eax, eax
lock cmpxchg dword [ebx], ecx
mov esi, eax
mov dword [ebp - 8], esi
test esi, esi
jne 0x521ab8
push 5
push eax
push eax
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov edx, eax
test edx, edx
je 0x521ab8
mov ecx, edx
xor eax, eax
lock cmpxchg dword [ebx], ecx
mov esi, eax
mov dword [ebp - 8], esi
test esi, esi
jne 0x521ab1
mov esi, edx
mov dword [ebp - 8], esi
jmp 0x521ab8
push edx
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov ebx, dword [0x62f298]
push ebx
push 4
push dword [0x633f94]
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 0x521bb0
cmp dword [0x62dbb0], 0xffffffff
jae 0x521b06
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x34]
jmp 0x521b0c
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call sym.SystemInformer.exe_PhDosErrorToNtStatus
mov esi, eax
cmp esi, 0x105
jne 0x521b8e
mov eax, dword [ebp - 4]
push eax
push 0
push dword [0x633f94]
call dword [sym.imp.ntdll.dll_RtlFreeHeap]
add ebx, dword ds:[ebp - 0xc]
push ebx
push 4
push dword [0x633f94]
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 0x521bb0
cmp dword [0x62dbb0], 0xffffffff
jae 0x521b7e
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x34]
jmp 0x521b86
mov edi, edi
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call sym.SystemInformer.exe_PhDosErrorToNtStatus
mov esi, eax
test esi, esi
jns 0x521bb2
mov eax, dword [ebp - 4]
push eax
push 0
lfence
push dword [0x633f94]
call dword [sym.imp.ntdll.dll_RtlFreeHeap]
pop edi
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
xor esi, esi
lfence
cmp ebx, 0x20000
ja 0x521bc3
mov dword [0x62f298], 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 0x521ea0
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 0x521ee7
cmp dword [0x62dbb0], 0xffffffff
jae 0x521ed1
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x34]
jmp 0x521ed7
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call sym.SystemInformer.exe_PhDosErrorToNtStatus
lea ecx, [ecx]
test eax, eax
js 0x521f57
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 0x521f27
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 [0x62dbb0], 0xffffffff
jae 0x521f3b
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x34]
jmp 0x521f46
jmp 0x521f40
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 0x5221a0
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 0x5221ec
xor eax, eax
mov esp, ebp
pop ebp
ret 8
cmp dword [0x62dbb0], 0xffffffff
jae 0x52220b
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 0x522340
Capabilities:
Continue service

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
mov eax, dword [0x62d040]
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 0x522374
xor eax, eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0057ee0f
mov esp, ebp
pop ebp
ret
cmp dword [0x62dbb0], 0xffffffff
jae 0x52239a
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.0057ee0f
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.0057ee0f
mov esp, ebp
pop ebp
ret
Function at 0x5223c0
Capabilities:
Pause service

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
mov eax, dword [0x62d040]
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 0x5223f4
xor eax, eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0057ee0f
mov esp, ebp
pop ebp
ret
cmp dword [0x62dbb0], 0xffffffff
jae 0x52241a
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.0057ee0f
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.0057ee0f
mov esp, ebp
pop ebp
ret

Function at 0x5224e0
Capabilities:
Stop service

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
mov eax, dword [0x62d040]
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 0x52251c
xor eax, eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0057ee0f
mov esp, ebp
pop ebp
ret 4
cmp dword [0x62dbb0], 0xffffffff
jae 0x522530
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x34]
jmp 0x522536
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call sym.SystemInformer.exe_PhDosErrorToNtStatus
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0057ee0f
mov esp, ebp
pop ebp
ret 4

Function at 0x5275a0
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 0x52765e
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 0x5275fd
mov ecx, dword [esp + 0x14]
cmp dword [esi + 0x18], ecx
mov ecx, dword [esp + 0x10]
jne 0x527654
lea ecx, [ecx]
test ebx, ebx
je 0x527627
mov dword [esp + 0x24], eax
mov eax, dword [ebx]
mov dword [esp + 0x20], eax
cmp edx, eax
jb 0x527654
push 1
push ebx
lea eax, [esp + 0x28]
push eax
call sym.SystemInformer.exe_PhEqualStringRef
mov ecx, dword [esp + 0x10]
test al, al
je 0x527654
test edi, edi
je 0x527669
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 0x527654
push 1
push edi
lea eax, [esp + 0x30]
push eax
call sym.SystemInformer.exe_PhEqualStringRef
test al, al
jne 0x527669
mov ecx, dword [esp + 0x10]
mov esi, dword [esi]
cmp esi, ecx
jne 0x5275d0
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 0x527700
Capabilities:
Map section object

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
cmp byte [ebp + 0xc], 0
push esi
je 0x52772b
push 0x60
push 1
push 5
push 0x80
push 0x100081
push dword [ebp + 8]
lea eax, [ebp - 4]
push eax
call sym.SystemInformer.exe_PhCreateFile
jmp 0x52774e
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, [ebp - 4]
push eax
call sym.SystemInformer.exe_PhCreateFileWin32Ex
test eax, eax
jns 0x52775c
lfence
pop esi
mov esp, ebp
pop ebp
ret 0xc
cmp dword [0x62dbb0], 0x3e
push dword ds:[ebp - 4]
sbb eax, eax
and eax, 0xf0000000
add eax, 0x11000000
push eax
push 2
push 0
push 0
push 5
lea eax, [ebp - 8]
push eax
call dword [sym.imp.ntdll.dll_NtCreateSection]
mov esi, eax
test esi, esi
js 0x5277f3
cmp dword [0x62dbb0], 0x67
push 2
sbb eax, eax
mov dword [ebp - 0xc], 0
and eax, 0xfffc0000
mov dword [ebp - 0x10], 0
add eax, 0x40000
push eax
push 2
lea eax, [ebp - 0x10]
push eax
push 0
push 0
push 0
lea eax, [ebp - 0xc]
push eax
push 0xffffffffffffffff
push dword [ebp - 8]
call dword [sym.imp.ntdll.dll_NtMapViewOfSection]
push dword [ebp - 8]
xor esi, esi
cmp eax, 0x40000003
cmovne esi, eax
call dword [sym.imp.ntdll.dll_NtClose]
mov edi, edi
test esi, esi
js 0x5277f3
mov eax, dword [ebp + 0x10]
test eax, eax
je 0x5277f3
mov ecx, dword [ebp - 0xc]
or ecx, 2
mov dword [eax], ecx
push dword [ebp - 4]
call dword [sym.imp.ntdll.dll_NtClose]
mov eax, esi
pop esi
mov esp, ebp
pop ebp
ret 0xc

Function at 0x5278c0
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 0x527916
mov eax, dword [ecx + 0x3c]
test eax, eax
je 0x527916
lea ebx, [ebx]
cmp eax, 0x7fffffff
jae 0x527916
cmp dword [eax + ecx], 0x4550
jne 0x527916
lea edx, [ecx + 0x78]
add edx, eax
mov eax, dword [edx]
test eax, eax
je 0x527916
cmp dword ds:[edx + 4], 0
je 0x527916
push dword [ebp + 0x10]
add eax, ecx
push dword [ebp + 0xc]
push eax
call fcn.005281c0
mov esp, ebp
pop ebp
ret 0xc
xor eax, eax
mov esp, ebp
pop ebp
ret 0xc
Function at 0x527e40
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 0x527e8f
mov ecx, dword ds:[ebp + 8]
test ecx, ecx
je 0x527eb4
cmp dword [edx + 0x18], ecx
je 0x527eb4
mov edx, dword [edx]
cmp edx, eax
jne 0x527e84
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 0x527eeb
xor eax, eax
pop edi
pop esi
mov esp, ebp
pop ebp
ret 8
test edx, edx
je 0x527e8f
movzx eax, word ds:[edx + 0x24]
mov ecx, eax
test ax, ax
jne 0x527ece
call sym.SystemInformer.exe_PhReferenceEmptyString
mov esi, eax
jmp 0x527e91
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 0x527e91
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 0x527f08
call fcn.004fbe40
mov esi, dword [ebp + 0xc]
test esi, esi
je 0x527f26
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 0x527f40
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 [0x62dbb0], 0x3e
jb 0x527fd2
test esi, esi
jne 0x527fd2
test edi, edi
je 0x527fd2
mov eax, dword [edi]
test eax, eax
je 0x527fa4
mov edi, dword [edi + 4]
shr eax, 1
lea ebx, [edi + eax*2]
cmp edi, ebx
je 0x527fa4
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 0x527f80
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 0x527fce
lea ebx, [ebx]
cmp dword [eax + 0x90], esi
je 0x527fdc
mov eax, dword [eax]
cmp eax, ecx
jne 0x527fc0
xor eax, eax
jmp 0x527fdc
push edi
mov edx, esi
xor ecx, ecx
call fcn.005275a0
lea esp, [esp]
test eax, eax
je 0x527fe9
mov esi, dword [eax + 0x18]
jmp 0x527feb
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 0x528020
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 0x528075
mov eax, dword [ecx + 0x3c]
test eax, eax
je 0x528075
jmp 0x528040
cmp eax, 0x7fffffff
jae 0x528075
cmp dword [eax + ecx], 0x4550
jne 0x528075
lea edx, [ecx + 0x78]
add edx, eax
mov eax, dword [edx]
test eax, eax
je 0x528075
cmp dword ds:[edx + 4], 0
je 0x528075
push dword [ebp + 8]
add eax, ecx
push esi
push eax
call fcn.005281c0
pop esi
mov esp, ebp
pop ebp
ret 4
xor eax, eax
pop esi
mov esp, ebp
pop ebp
ret 4

Function at 0x528080
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.00527f40
mov ecx, eax
test ecx, ecx
je 0x5280fe
mov eax, 0x5a4d
cmp word [ecx], ax
jne 0x5280fe
mov eax, dword ds:[ecx + 0x3c]
test eax, eax
je 0x5280fe
cmp eax, 0x7fffffff
jae 0x5280fe
cmp dword [eax + ecx], 0x4550
jne 0x5280fe
lea edx, ds:[eax + 0x78]
mov eax, dword [edx + ecx]
add edx, ecx
test eax, eax
je 0x5280fe
cmp dword [edx + 4], 0
je 0x5280fe
push dword [ebp + 8]
add eax, ecx
push edi
push eax
call fcn.005281c0
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 0x5288a0
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 0x5288c6
mov eax, 0xc000012f
lfence
mov esp, ebp
pop ebp
ret 0xc
mov eax, dword [edx + 0x3c]
test eax, eax
je 0x528a1c
cmp eax, 0x7fffffff
jae 0x528a1c
cmp dword [eax + edx], 0x4550
jne 0x528a1c
mov ecx, dword [eax + edx + 0x80]
test ecx, ecx
je 0x528a0e
cmp dword [eax + edx + 0x84], 0
je 0x528a0e
push ebx
lea ebx, [edx + 0xc]
add ebx, ecx
push edi
mov edi, 0xc0000001
mov dword [ebp - 4], edi
cmp dword [ebx], 0
je 0x5289c7
push esi
nop
mov ecx, dword [ebx - 0xc]
test ecx, ecx
je 0x5289c6
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.0058945a
add esp, 8
test eax, eax
jne 0x5289b1
mov eax, dword [edi]
test eax, eax
je 0x5289b1
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 0x5289a4
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 0x52899a
lea esp, [esp]
test dl, dl
je 0x528996
mov dl, byte [ecx + 1]
cmp dl, byte [eax + 1]
jne 0x52899a
add ecx, 2
add eax, 2
test dl, dl
jne 0x528976
xor eax, eax
jmp 0x52899f
sbb eax, eax
or eax, 1
nop
test eax, eax
je 0x5289d1
mov eax, dword [edi + esi + 4]
add esi, 4
mov ecx, eax
test eax, eax
jne 0x528964
mov edi, dword [ebp - 4]
mov edx, dword ds:[ebp - 0x14]
add ebx, 0x14
cmp dword [ebx], 0
jne 0x528920
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 0x5289b4
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 0x5289b4
mov eax, 0xc0000020
lfence
mov esp, ebp
pop ebp
ret 0xc
mov eax, 0xc000007b
lfence
mov esp, ebp
pop ebp
ret 0xc
Function at 0x528a40
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 0x528aac
mov eax, 0x5a4d
movzx ecx, dx
cmp word [esi], ax
jne 0x528ad2
mov eax, dword [esi + 0x3c]
test eax, eax
je 0x528ad2
cmp eax, 0x7fffffff
jae 0x528ad2
cmp dword [eax + esi], 0x4550
jne 0x528ad2
lea edx, [esi + 0x78]
add edx, eax
mov eax, dword [edx]
test eax, eax
je 0x528ad2
cmp dword [edx + 4], 0
je 0x528ad2
push ecx
add eax, esi
mov ecx, esi
push 0
push eax
call fcn.005281c0
test eax, eax
je 0x528ad2
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.00528540
lea ecx, [ecx]
test eax, eax
je 0x528ad2
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