joyce8/EMBER2024-capa huggingface dataset:
Function at 0x529300
Capabilities:
Map section object
Parse pe header

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x4c
lea eax, [ebp - 0xc]
push ebx
push esi
push edi
push 0x60
push 1
push 1
push 0x80
push 0x100021
push ecx
push eax
call sym.SystemInformer.exe_PhCreateFile
mov ebx, eax
test ebx, ebx
js 0x52941b
mov esi, dword [ebp - 0xc]
lea eax, [ebp - 4]
push esi
push 0x1000000
push 0x10
push 0
push 0
push 0xd
push eax
call dword [sym.imp.ntdll.dll_NtCreateSection]
push esi
mov ebx, eax
call dword [sym.imp.ntdll.dll_NtClose]
test ebx, ebx
js 0x52941b
push 0x30
lea eax, [ebp - 0x48]
push 0
push eax
call fcn.00580ff0
add esp, 0xc
lea eax, [ebp - 0x48]
push 0
push 0x30
push eax
push 1
push dword [ebp - 4]
call dword [sym.imp.ntdll.dll_NtQuerySection]
mov ebx, eax
test ebx, ebx
js 0x529398
cmp dword [ebp - 0x38], 2
jne 0x529393
test dword [ebp - 0x2c], 0x2002
jne 0x5293b2
mov ebx, 0xc000036f
push dword ds:[ebp - 4]
call dword [sym.imp.ntdll.dll_NtClose]
lfence
mov eax, ebx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push 0x10
push 0
push 2
lea eax, [ebp - 0x10]
mov dword [ebp - 8], 0
push eax
push 0
push 0
push 0
lea eax, [ebp - 8]
mov dword [ebp - 0x10], 0
push eax
push 0xffffffffffffffff
push dword [ebp - 4]
call dword [sym.imp.ntdll.dll_NtMapViewOfSection]
push dword [ebp - 4]
mov ebx, eax
call dword [sym.imp.ntdll.dll_NtClose]
cmp ebx, 0x40000003
jne 0x5293fc
mov ecx, dword [ebp - 8]
call fcn.005290a0
mov ebx, eax
lea esp, [esp]
test ebx, ebx
js 0x529409
mov edi, dword [ebp - 8]
jmp 0x529417
push dword [ebp - 8]
push 0xffffffffffffffff
call dword [sym.imp.ntdll.dll_NtUnmapViewOfSection]
mov edi, dword [ebp - 0x18]
test ebx, ebx
jns 0x529427
lfence
mov eax, ebx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov ebx, 0x5a4d
cmp word [edi], bx
je 0x52943b
mov ebx, 0xc000012f
jmp 0x5294bd
mov eax, dword ds:[edi + 0x3c]
test eax, eax
je 0x5294b8
cmp eax, 0x7fffffff
jae 0x5294b8
add eax, edi
mov dword [ebp - 0xc], eax
cmp dword [eax], 0x4550
jne 0x5294b8
mov esi, edi
mov edx, eax
push ecx
mov ecx, esi
mov dword [ebp - 0x14], esi
call fcn.00528ae0
mov ebx, eax
test ebx, ebx
js 0x5294bd
lfence
mov edx, dword [ebp - 0xc]
push ecx
mov ecx, esi
call fcn.00528d60
mov ebx, eax
test ebx, ebx
js 0x5294bd
mov eax, dword [ebp - 0xc]
mov eax, dword [eax + 0x28]
test eax, eax
jne 0x529495
mov ebx, 0xc0000139
jmp 0x5294bd
mov edi, dword [ebp - 0x14]
xor ebx, ebx
push ebx
add esi, eax
push 1
push edi
mov ecx, esi
lfence
call dword [0x5a28f0]
call esi
test al, al
jne 0x529508
mov ebx, 0xc0000142
jmp 0x5294bd
mov ebx, 0xc000007b
mov eax, 0x5a4d
cmp word [edi], ax
jne 0x529508
lfence
mov eax, dword [edi + 0x3c]
test eax, eax
je 0x529508
cmp eax, 0x7fffffff
jae 0x529508
cmp dword ds:[eax + edi], 0x4550
jne 0x529508
mov eax, dword [eax + edi + 0x28]
test eax, eax
je 0x529508
push 0
lea esi, [eax + edi]
push 0
push edi
mov ecx, esi
lfence
call dword [0x5a28f0]
call esi
push edi
push 0xffffffffffffffff
call dword [sym.imp.ntdll.dll_NtUnmapViewOfSection]
pop edi
pop esi
mov eax, ebx
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x52a6e0
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0xc
push ebx
push esi
push edi
mov edi, dword [0x634134]
mov ebx, ecx
test edi, edi
je 0x52a708
mov eax, dword [0x634130]
lea ecx, [ecx]
test eax, eax
jne 0x52a7c5
call fcn.0052a5a0
mov esi, eax
test esi, esi
je 0x52a84e
mov eax, 0x5a4d
cmp word [esi], ax
jne 0x52a763
mov eax, dword [esi + 0x3c]
test eax, eax
je 0x52a763
cmp eax, 0x7fffffff
jae 0x52a763
cmp dword [eax + esi], 0x4550
jne 0x52a763
lea edx, [eax + 0x78]
mov eax, dword [edx + esi]
add edx, esi
test eax, eax
je 0x52a763
cmp dword [edx + 4], 0
je 0x52a763
push 0
add eax, esi
mov ecx, esi
push str.PowerGetActiveScheme
push eax
call fcn.005281c0
mov edi, eax
jmp 0x52a765
xor edi, edi
mov edx, 0x5a4d
mov dword [0x634134], edi
mov eax, esi
mov ecx, 0x3c
cmp word [esi], dx
jne 0x52a7be
mov eax, dword ds:[ecx + eax]
test eax, eax
je 0x52a7be
cmp eax, 0x7fffffff
jae 0x52a7be
cmp dword [eax + esi], 0x4550
jne 0x52a7be
lea edx, [esi + 0x78]
add edx, eax
mov eax, dword [edx]
test eax, eax
je 0x52a7be
cmp dword [edx + 4], 0
je 0x52a7be
push 0
add eax, esi
mov ecx, esi
push str.PowerReadSecurityDescriptor
push eax
call fcn.005281c0
mov edi, dword [0x634134]
jmp 0x52a7c0
xor eax, eax
mov dword [0x634130], eax
test edi, edi
je 0x52a842
test eax, eax
je 0x52a842
lea eax, [esp + 0x14]
mov ecx, edi
push eax
push 0
call dword [0x5a28f0]
call edi
mov edi, edi
test eax, eax
je 0x52a7f1
push eax
call sym.SystemInformer.exe_PhDosErrorToNtStatus
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov esi, dword [0x634130]
lea eax, [esp + 0x10]
push eax
push dword [esp + 0x18]
mov ecx, esi
push 0xe
call dword [0x5a28f0]
call esi
mov esi, eax
test esi, esi
jne 0x52a82b
test ebx, ebx
je 0x52a821
push dword [esp + 0x10]
call sym.SystemInformer.exe_PhCreateString
mov dword [ebx], eax
push dword [esp + 0x10]
call dword [sym.imp.KERNEL32.dll_LocalFree]
push dword [esp + 0x14]
call dword [sym.imp.KERNEL32.dll_LocalFree]
push esi
call sym.SystemInformer.exe_PhDosErrorToNtStatus
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, 0xc000007a
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
pop edi
pop esi
mov eax, 0xc0000135
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x52a860
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push ecx
push ebx
push esi
push edi
mov edi, dword [0x634134]
mov ebx, ecx
test edi, edi
je 0x52a888
mov eax, dword [0x63413c]
jmp 0x52a880
test eax, eax
jne 0x52a945
call fcn.0052a5a0
mov esi, eax
test esi, esi
je 0x52a9b8
mov eax, 0x5a4d
cmp word [esi], ax
jne 0x52a8e3
mov eax, dword [esi + 0x3c]
test eax, eax
je 0x52a8e3
cmp eax, 0x7fffffff
jae 0x52a8e3
cmp dword [eax + esi], 0x4550
jne 0x52a8e3
lea edx, [eax + 0x78]
mov eax, dword [edx + esi]
add edx, esi
test eax, eax
je 0x52a8e3
cmp dword [edx + 4], 0
je 0x52a8e3
push 0
add eax, esi
mov ecx, esi
push str.PowerGetActiveScheme
push eax
call fcn.005281c0
mov edi, eax
jmp 0x52a8e5
xor edi, edi
mov edx, 0x5a4d
mov dword [0x634134], edi
mov eax, esi
mov ecx, 0x3c
cmp word [esi], dx
jne 0x52a93e
mov eax, dword ds:[eax + ecx]
test eax, eax
je 0x52a93e
cmp eax, 0x7fffffff
jae 0x52a93e
cmp dword [eax + esi], 0x4550
jne 0x52a93e
lea edx, [esi + 0x78]
add edx, eax
mov eax, dword [edx]
test eax, eax
je 0x52a93e
cmp dword [edx + 4], 0
je 0x52a93e
push 0
add eax, esi
mov ecx, esi
push str.PowerWriteSecurityDescriptor
push eax
call fcn.005281c0
mov edi, dword [0x634134]
jmp 0x52a940
xor eax, eax
mov dword [0x63413c], eax
test edi, edi
je 0x52a9ac
test eax, eax
je 0x52a9ac
lea eax, [esp + 0xc]
mov ecx, edi
push eax
push 0
call dword [0x5a28f0]
call edi
mov edi, edi
test eax, eax
je 0x52a971
push eax
call sym.SystemInformer.exe_PhDosErrorToNtStatus
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
test ebx, ebx
je 0x52a97a
mov eax, dword [ebx + 4]
jmp 0x52a97c
xor eax, eax
mov esi, dword [0x63413c]
mov ecx, esi
push eax
push dword [esp + 0x10]
push 0xe
call dword [0x5a28f0]
call esi
push dword [esp + 0xc]
mov esi, eax
call dword [sym.imp.KERNEL32.dll_LocalFree]
push esi
call sym.SystemInformer.exe_PhDosErrorToNtStatus
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, 0xc000007a
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
pop edi
pop esi
mov eax, 0xc0000135
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x52c520
Capabilities:
Map section object

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push esi
push 2
push 0
push 2
lea eax, [ebp - 8]
mov dword [ebp - 8], 1
push eax
push 0
push 0
push 0
lea eax, [ebp - 4]
mov dword [ebp - 4], 0
push eax
push 0xffffffffffffffff
push ecx
mov esi, edx
call dword [sym.imp.ntdll.dll_NtMapViewOfSection]
test eax, eax
jns 0x52c561
lfence
pop esi
mov esp, ebp
pop ebp
ret
push esi
push dword [ebp - 4]
push 0xffffffffffffffff
call sym.SystemInformer.exe_PhGetProcessMappedFileName
push dword [ebp - 4]
mov esi, eax
push 0xffffffffffffffff
call dword [sym.imp.ntdll.dll_NtUnmapViewOfSection]
mov eax, esi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x52ee20
Capabilities:
Get thread local storage value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
push esi
push edi
push dword [0x633f60]
mov edi, edx
mov dword [ebp - 8], ecx
mov dword [ebp - 0x10], edi
lea eax, [edi*4]
push eax
call sym.SystemInformer.exe_PhCreateObject
push eax
call sym.SystemInformer.exe_PhAutoDereferenceObject
mov esi, eax
xor ebx, ebx
mov dword [ebp - 0xc], esi
test edi, edi
je 0x52ef6f
mov ecx, dword [ebp + 8]
lea eax, [ecx*4]
mov dword [ebp - 4], eax
jmp 0x52ee70
push dword [0x633f60]
push eax
call sym.SystemInformer.exe_PhCreateObject
cmp dword [0x62dbb0], 0xffffffff
mov edi, eax
mov eax, dword [0x635c08]
jae 0x52eea4
cmp eax, 0x40
jae 0x52eea4
lfence
mov esi, dword fs:[0x18]
mov esi, dword [esi + eax*4 + 0xe10]
jmp 0x52eead
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov esi, eax
test edi, edi
je 0x52ef4e
mov eax, dword [esi]
cmp eax, 0x40
jae 0x52eec7
mov dword [esi + eax*4 + 4], edi
inc dword [esi]
jmp 0x52ef4e
mov ecx, dword [esi + 0x10c]
test ecx, ecx
jne 0x52eef6
push 0x100
push 4
push dword [0x633f94]
mov dword [esi + 0x108], 0x40
call dword [sym.imp.ntdll.dll_RtlAllocateHeap]
mov ecx, eax
mov dword [esi + 0x10c], ecx
mov eax, dword ds:[esi + 0x108]
cmp dword [esi + 0x104], eax
jne 0x52ef3f
add eax, eax
mov dword [esi + 0x108], eax
shl eax, 2
push eax
test ecx, ecx
jne 0x52ef28
push 4
push dword [0x633f94]
call dword [sym.imp.ntdll.dll_RtlAllocateHeap]
jmp 0x52ef37
push ecx
push 4
push dword [0x633f94]
call dword [sym.imp.ntdll.dll_RtlReAllocateHeap]
mov ecx, eax
mov dword [esi + 0x10c], ecx
mov eax, dword [esi + 0x104]
mov dword [ecx + eax*4], edi
inc dword [esi + 0x104]
push dword [ebp - 4]
mov esi, dword [ebp - 0xc]
push 0
push edi
mov dword [esi + ebx*4], edi
call fcn.00580ff0
mov eax, dword [ebp - 4]
inc ebx
add esp, 0xc
cmp ebx, dword [ebp - 0x10]
jb 0x52ee70
mov eax, dword [ebp - 8]
pop edi
mov dword [eax], esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x530880
Capabilities:
Get user security identifier

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x1c
mov ecx, dword [ebp + 8]
push ebx
push esi
push edi
movzx eax, word [ecx]
mov word [esp + 0x20], ax
add eax, 2
cmp dword [ecx], 0xfffe
mov word [esp + 0x22], ax
mov eax, dword [ecx + 4]
mov dword [esp + 0x24], eax
jbe 0x5308bc
mov eax, 0xc0000106
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x10
lea esp, [esp]
call fcn.00530560
lea ecx, [esp + 0x10]
mov dword [esp + 0x14], 0
push ecx
lea ecx, [esp + 0x18]
mov dword [esp + 0x14], 0
push ecx
lea ecx, [esp + 0x28]
push ecx
push 1
push 0
push eax
call dword [sym.imp.ADVAPI32.dll_LsaLookupNames2]
mov ecx, dword ds:[esp + 0x10]
mov ebx, eax
mov dword [esp + 0x18], ebx
test ebx, ebx
js 0x5309c4
mov edx, dword [ecx]
cmp edx, 7
je 0x5309bf
cmp edx, 8
je 0x5309bf
cmp dword [ebp + 0xc], 0
je 0x530959
mov ebx, dword [ecx + 4]
movzx eax, byte [ebx + 1]
lea edi, [eax*4 + 8]
push edi
push 4
push dword [0x633f94]
call dword [sym.imp.ntdll.dll_RtlAllocateHeap]
push edi
mov esi, eax
push ebx
push esi
call fcn.00581150
mov eax, dword [ebp + 0xc]
add esp, 0xc
mov ecx, dword [esp + 0x10]
mov ebx, dword [esp + 0x18]
mov dword [eax], esi
mov esi, dword ds:[ebp + 0x10]
test esi, esi
je 0x5309b2
mov eax, dword [ecx + 8]
test eax, eax
js 0x5309a7
lea ecx, ds:[eax + eax*2]
mov eax, dword [esp + 0x14]
mov eax, dword [eax + 4]
lea eax, [eax + ecx*4]
movzx ecx, word [eax]
test cx, cx
je 0x5309a7
mov eax, dword ds:[eax + 4]
mov dword [esp + 0x1c], eax
mov eax, ecx
push 0
mov dword [esp + 0x1c], eax
lea eax, [esp + 0x1c]
push 0
push eax
call sym.SystemInformer.exe_PhCreateString3
jmp 0x5309ac
call sym.SystemInformer.exe_PhReferenceEmptyString
mov ecx, dword [esp + 0x10]
mov dword [esi], eax
mov edx, dword [ebp + 0x14]
test edx, edx
je 0x5309c4
mov eax, dword [ecx]
mov dword [edx], eax
jmp 0x5309c4
mov ebx, 0xc0000073
mov eax, dword [esp + 0x14]
test eax, eax
je 0x5309d7
push eax
call dword [sym.imp.ADVAPI32.dll_LsaFreeMemory]
mov ecx, dword [esp + 0x10]
test ecx, ecx
je 0x5309e6
push ecx
call dword [sym.imp.ADVAPI32.dll_LsaFreeMemory]
pop edi
pop esi
mov eax, ebx
pop ebx
mov esp, ebp
pop ebp
ret 0x10
Function at 0x5319a0
Capabilities:
Enumerate pe sections

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x20
mov eax, dword [0x62d040]
xor eax, esp
mov dword [esp + 0x1c], eax
push esi
push edi
mov esi, ecx
call fcn.005304a0
mov ecx, dword [esi + 2]
mov edx, eax
cmp ecx, dword [edx + 2]
jne 0x531a58
movzx eax, word [esi + 6]
cmp ax, word [edx + 6]
jne 0x531a58
cmp dword [esi + 8], 1
jne 0x531a58
mov eax, dword [esi + 0xc]
mov dword [esp + 0x14], eax
mov eax, dword [esi + 0x10]
mov dword [esp + 0x18], eax
mov eax, dword [esi + 0x14]
mov dword [esp + 0x1c], eax
mov eax, dword [esi + 0x18]
mov dword [esp + 0x20], eax
lea eax, [esp + 0x14]
push eax
call sym.SystemInformer.exe_PhFormatGuid
mov esi, eax
test esi, esi
je 0x531a58
mov ecx, dword [esi + 4]
lea eax, [esp + 0xc]
add ecx, 2
mov dword [esp + 0x10], ecx
mov ecx, dword [esi]
push 0
and ecx, 0xfffffffe
push 0
sub ecx, 4
push eax
mov dword [esp + 0x18], ecx
call sym.SystemInformer.exe_PhCreateString3
mov edi, eax
lea ecx, [esi - 8]
or edx, 0xffffffff
lock xadd dword [ecx + 4], edx
dec edx
jne 0x531a45
nop
call fcn.004fbe40
mov eax, edi
pop edi
pop esi
mov ecx, dword [esp + 0x1c]
xor ecx, esp
call fcn.0057ee0f
mov esp, ebp
pop ebp
ret
mov ecx, dword [esp + 0x24]
xor eax, eax
pop edi
pop esi
xor ecx, esp
call fcn.0057ee0f
mov esp, ebp
pop ebp
ret

Function at 0x532b80
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
lea eax, [ebp - 0x1c]
push esi
push edi
push 0
push 0x1c
push eax
push 0
push ecx
push 0xffffffffffffffff
mov esi, edx
call dword [sym.imp.ntdll.dll_NtQueryVirtualMemory]
lea ecx, [ecx]
test eax, eax
js 0x532bec
mov ecx, dword [ebp - 0x18]
mov eax, 0x5a4d
cmp word [ecx], ax
jne 0x532bec
mov eax, dword [ecx + 0x3c]
add eax, ecx
cmp dword [eax], 0x4550
jne 0x532bec
mov edx, dword [eax + 0xd8]
mov edi, dword [eax + 0xdc]
test edx, edx
je 0x532bec
test edi, edi
je 0x532bec
lea eax, [edx + ecx]
cmp esi, eax
jb 0x532bec
lea eax, ds:[edi + edx]
add eax, ecx
cmp esi, eax
jae 0x532bec
pop edi
mov al, 1
pop esi
mov esp, ebp
pop ebp
ret
pop edi
xor al, al
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x532f40
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
push ebx
push esi
mov esi, ecx
mov ebx, edx
push edi
lea ecx, [esi - 0x10000]
movzx eax, cx
mov edi, ecx
sub edi, eax
test eax, eax
cmove edi, ecx
cmp edi, ebx
jbe 0x533028
jmp 0x532f70
lea eax, [edi - 0x70000000]
cmp eax, 0x10000000
ja 0x532f88
sub edi, 0x8000000
jmp 0x533012
xor eax, eax
push eax
push 0x1c
mov dword [ebp - 0x24], eax
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x10], eax
mov dword [ebp - 0xc], eax
lea eax, [ebp - 0x24]
push eax
push 0
push edi
push 0xffffffffffffffff
call dword [sym.imp.ntdll.dll_NtQueryVirtualMemory]
test eax, eax
js 0x533028
cmp dword [ebp - 0x14], 0x10000
jne 0x532ffd
cmp dword [ebp - 0x18], 0x10000
jb 0x532ffd
push 0x40
push 0x3000
lea eax, [ebp - 8]
mov dword [ebp - 8], 0x10000
push eax
push 0
lea eax, [ebp - 4]
mov dword [ebp - 4], edi
push eax
push 0xffffffffffffffff
call dword [sym.imp.ntdll.dll_NtAllocateVirtualMemory]
test eax, eax
jns 0x53301c
cmp eax, 0xc0000604
je 0x533028
sub edi, 0x10000
jmp 0x533012
mov ecx, dword [ebp - 0x20]
add ecx, 0xffff0000
mov edi, ecx
movzx eax, di
sub edi, eax
test eax, eax
cmove edi, ecx
cmp edi, ebx
ja 0x532f70
jmp 0x533028
mov eax, dword ds:[ebp - 4]
test eax, eax
jne 0x533101
movzx eax, si
test eax, eax
je 0x533037
sub esi, eax
add esi, 0x10000
mov edi, dword ds:[ebp + 8]
cmp esi, edi
jae 0x5330ff
jmp 0x533050
lea eax, [esi - 0x70000000]
cmp eax, 0x10000000
ja 0x533068
add esi, 0x8000000
jmp 0x5330f7
xor eax, eax
push eax
push 0x1c
mov dword [ebp - 0x24], eax
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x10], eax
mov dword [ebp - 0xc], eax
lea eax, [ebp - 0x24]
push eax
push 0
push esi
push 0xffffffffffffffff
call dword [sym.imp.ntdll.dll_NtQueryVirtualMemory]
test eax, eax
js 0x5330ff
cmp dword ds:[ebp - 0x14], 0x10000
mov ecx, dword [ebp - 0x18]
jne 0x5330e2
cmp ecx, 0x10000
jb 0x5330e2
push 0x40
push 0x3000
lea eax, [ebp - 8]
mov dword [ebp - 8], 0x10000
push eax
push 0
lea eax, [ebp - 4]
mov dword [ebp - 4], esi
push eax
push 0xffffffffffffffff
call dword [sym.imp.ntdll.dll_NtAllocateVirtualMemory]
test eax, eax
jns 0x53310a
cmp eax, 0xc0000604
je 0x5330ff
add esi, 0x10000
jmp 0x5330f7
mov esi, dword [ebp - 0x24]
add esi, ecx
movzx ecx, si
test ecx, ecx
je 0x5330f7
mov eax, 0x10000
sub eax, ecx
add esi, eax
cmp esi, edi
jb 0x533050
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
mov eax, dword [ebp - 4]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x536e80
Capabilities:
Inspect section memory permissions

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
mov ebx, dword [ebp + 0x10]
push esi
xor esi, esi
mov byte [ebp - 2], 0
mov byte [ebp - 1], 0
mov dword [ebp - 0x18], esi
mov dword [ebp - 0x14], esi
mov dword [ebp - 0x10], esi
mov dword [ebp - 0xc], esi
push edi
mov edi, dword [ebp + 0x14]
test bl, 1
je 0x536ec3
lea eax, [ebp - 1]
push eax
lea eax, [ebp - 0x18]
push eax
push edi
call dword [sym.imp.ntdll.dll_RtlGetOwnerSecurityDescriptor]
test eax, eax
mov ecx, 1
cmovns esi, ecx
test bl, 2
je 0x536ede
lea eax, [ebp - 1]
push eax
lea eax, [ebp - 0x14]
push eax
push edi
call dword [sym.imp.ntdll.dll_RtlGetGroupSecurityDescriptor]
test eax, eax
js 0x536ede
or esi, 2
mov eax, ebx
and eax, 4
mov dword [ebp - 0x1c], eax
je 0x536f08
lea eax, [ebp - 1]
push eax
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 2]
push eax
push edi
call dword [sym.imp.ntdll.dll_RtlGetDaclSecurityDescriptor]
test eax, eax
js 0x536f08
cmp byte [ebp - 2], 0
je 0x536f08
or esi, 4
and ebx, 8
je 0x536f33
lea eax, ds:[ebp - 1]
push eax
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 2]
push eax
push edi
call dword [sym.imp.ntdll.dll_RtlGetSaclSecurityDescriptor]
test eax, eax
js 0x536f33
cmp byte [ebp - 2], 0
je 0x536f33
or esi, 8
cmp dword [ebp + 0xc], 1
jne 0x536f95
lea eax, [ebp - 0x20]
push eax
lea eax, [ebp - 8]
push eax
push edi
call dword [sym.imp.ntdll.dll_RtlGetControlSecurityDescriptor]
test eax, eax
js 0x536f95
cmp dword [ebp - 0x1c], 0
mov cx, word [ebp - 8]
je 0x536f75
movzx eax, cx
test eax, 0x1000
je 0x536f6f
or esi, 0x80000000
jmp 0x536f75
or esi, 0x20000000
test ebx, ebx
je 0x536f95
movzx eax, cx
test eax, 0x2000
je 0x536f8f
or esi, 0x40000000
jmp 0x536f95
or esi, 0x10000000
push dword [ebp - 0xc]
push dword [ebp - 0x10]
push dword [ebp - 0x14]
push dword [ebp - 0x18]
push esi
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_SetSecurityInfo]
pop edi
pop esi
pop ebx
test eax, eax
je 0x536fc3
push eax
call sym.SystemInformer.exe_PhDosErrorToNtStatus
mov esp, ebp
pop ebp
ret 0x10
xor eax, eax
mov esp, ebp
pop ebp
ret 0x10
Function at 0x537a80
Capabilities:
Get file attributes

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x44
mov eax, dword [0x62d040]
xor eax, esp
mov dword [esp + 0x40], eax
mov eax, dword [ebp + 8]
push ebx
mov ebx, dword [ebp + 0xc]
push esi
push edi
push 0x60
push 1
push 5
push 0x80
push 0x120089
push eax
lea eax, [esp + 0x24]
push eax
call sym.SystemInformer.exe_PhCreateFile
test eax, eax
jns 0x537ad3
lfence
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x40]
xor ecx, esp
call fcn.0057ee0f
mov esp, ebp
pop ebp
ret 8
mov edi, dword [esp + 0xc]
lea eax, [esp + 0x30]
push 5
push 0x18
push eax
lea eax, [esp + 0x34]
push eax
push edi
call dword [sym.imp.ntdll.dll_NtQueryInformationFile]
test eax, eax
js 0x537b1f
mov ecx, dword [esp + 0x38]
or ecx, dword [esp + 0x3c]
jne 0x537b1f
push edi
call dword [sym.imp.ntdll.dll_NtClose]
mov eax, 0xc0000011
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x40]
xor ecx, esp
call fcn.0057ee0f
mov esp, ebp
pop ebp
ret 8
push ecx
mov edx, edi
call fcn.00576da0
push edi
mov esi, eax
call dword [sym.imp.ntdll.dll_NtClose]
test esi, esi
je 0x537b5c
cmp dword [esi], 0
jne 0x537b55
test ebx, ebx
je 0x537b3f
mov dword [ebx], esi
xor eax, eax
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x40]
xor ecx, esp
call fcn.0057ee0f
mov esp, ebp
pop ebp
ret 8
mov ecx, esi
call fcn.005767a0
mov ecx, dword [esp + 0x4c]
mov eax, 0xc0000102
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.0057ee0f
mov esp, ebp
pop ebp
ret 8
Function at 0x538bc0
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
push 0xfffffffffffffffe
push 0x61f588
push 0x57fee0
mov eax, dword fs:[0]
push eax
sub esp, 0x14
push ebx
push esi
push edi
mov eax, dword [0x62d040]
xor dword [ebp - 8], eax
xor eax, ebp
push eax
lea eax, [ebp - 0x10]
mov dword fs:[0], eax
mov dword [ebp - 0x18], esp
mov edi, ecx
mov dword [edi + 4], edx
mov eax, dword [ebp + 8]
mov dword [edi + 8], eax
cmp eax, 0x40
jae 0x538c1e
mov eax, 0xc000001f
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
mov edi, edi
test edx, edx
je 0x538db8
cmp edx, 0xffffffff
je 0x538db8
mov dword ds:[ebp - 4], 0
lea esi, [edx + 0x40]
cmp esi, edx
jb 0x538d32
lea ecx, [edx + eax]
mov dword [ebp - 0x1c], ecx
cmp esi, ecx
ja 0x538d32
mov dword [ebp - 4], 0xfffffffe
mov ecx, 0x5a4d
cmp word [edx], cx
je 0x538c83
mov eax, 0xc000012f
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
lfence
mov ecx, dword [edx + 0x3c]
cmp ecx, eax
jae 0x538d6e
cmp ecx, 0x10000000
jae 0x538d6e
lea esi, [ecx + edx]
mov dword [ebp - 4], 1
lea ebx, [esi + 0x18]
cmp ebx, esi
jb 0x538d32
cmp esi, edx
jb 0x538d32
mov edx, dword [ebp - 0x1c]
cmp ebx, edx
ja 0x538d32
movzx eax, word [esi + 6]
lea ecx, [eax + eax*4]
movzx eax, word [esi + 0x14]
lea eax, [eax + ecx*8]
add eax, 0x18
add eax, esi
cmp eax, esi
jb 0x538d32
cmp eax, edx
ja 0x538d32
mov dword [ebp - 4], 0xfffffffe
cmp dword [esi], 0x4550
jne 0x538d6e
movzx eax, word [ebx]
mov word [edi + 0x18], ax
mov ecx, 0x10b
cmp ax, cx
je 0x538d06
mov ecx, 0x20b
cmp ax, cx
jne 0x538d6e
mov dword [edi + 0xc], esi
movzx eax, word [esi + 6]
mov dword [edi + 0x10], eax
movzx eax, word [esi + 0x14]
add eax, 0x18
add eax, esi
mov dword [edi + 0x14], eax
xor eax, eax
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
push 0xc0000005
call dword [sym.imp.ntdll.dll_RtlRaiseStatus]
mov eax, dword [ebp - 0x14]
mov eax, dword [eax]
mov eax, dword [eax]
mov dword [ebp - 0x20], eax
mov eax, 1
ret
mov eax, 0xc000007b
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
mov eax, 0xc000000d
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4