joyce8/EMBER2024-capa huggingface dataset:
Function at 0x52b360
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 [0x6350c8]
mov ebx, ecx
test edi, edi
je 0x52b388
mov eax, dword [0x6350c4]
lea ecx, [ecx]
test eax, eax
jne 0x52b445
call fcn.0052b220
mov esi, eax
test esi, esi
je 0x52b4ce
mov eax, 0x5a4d
cmp word [esi], ax
jne 0x52b3e3
mov eax, dword [esi + 0x3c]
test eax, eax
je 0x52b3e3
cmp eax, 0x7fffffff
jae 0x52b3e3
cmp dword [eax + esi], 0x4550
jne 0x52b3e3
lea edx, [eax + 0x78]
mov eax, dword [edx + esi]
add edx, esi
test eax, eax
je 0x52b3e3
cmp dword [edx + 4], 0
je 0x52b3e3
push 0
add eax, esi
mov ecx, esi
push str.PowerGetActiveScheme
push eax
call fcn.00528e20
mov edi, eax
jmp 0x52b3e5
xor edi, edi
mov edx, 0x5a4d
mov dword [0x6350c8], edi
mov eax, esi
mov ecx, 0x3c
cmp word [esi], dx
jne 0x52b43e
mov eax, dword ds:[ecx + eax]
test eax, eax
je 0x52b43e
cmp eax, 0x7fffffff
jae 0x52b43e
cmp dword [eax + esi], 0x4550
jne 0x52b43e
lea edx, [esi + 0x78]
add edx, eax
mov eax, dword [edx]
test eax, eax
je 0x52b43e
cmp dword [edx + 4], 0
je 0x52b43e
push 0
add eax, esi
mov ecx, esi
push str.PowerReadSecurityDescriptor
push eax
call fcn.00528e20
mov edi, dword [0x6350c8]
jmp 0x52b440
xor eax, eax
mov dword [0x6350c4], eax
test edi, edi
je 0x52b4c2
test eax, eax
je 0x52b4c2
lea eax, [esp + 0x14]
mov ecx, edi
push eax
push 0
call dword [0x5a38f4]
call edi
mov edi, edi
test eax, eax
je 0x52b471
push eax
call sym.SystemInformer.exe_PhDosErrorToNtStatus
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov esi, dword [0x6350c4]
lea eax, [esp + 0x10]
push eax
push dword [esp + 0x18]
mov ecx, esi
push 0xe
call dword [0x5a38f4]
call esi
mov esi, eax
test esi, esi
jne 0x52b4ab
test ebx, ebx
je 0x52b4a1
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 0x52b4e0
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push ecx
push ebx
push esi
push edi
mov edi, dword [0x6350c8]
mov ebx, ecx
test edi, edi
je 0x52b508
mov eax, dword [0x6350d0]
jmp 0x52b500
test eax, eax
jne 0x52b5c5
call fcn.0052b220
mov esi, eax
test esi, esi
je 0x52b638
mov eax, 0x5a4d
cmp word [esi], ax
jne 0x52b563
mov eax, dword [esi + 0x3c]
test eax, eax
je 0x52b563
cmp eax, 0x7fffffff
jae 0x52b563
cmp dword [eax + esi], 0x4550
jne 0x52b563
lea edx, [eax + 0x78]
mov eax, dword [edx + esi]
add edx, esi
test eax, eax
je 0x52b563
cmp dword [edx + 4], 0
je 0x52b563
push 0
add eax, esi
mov ecx, esi
push str.PowerGetActiveScheme
push eax
call fcn.00528e20
mov edi, eax
jmp 0x52b565
xor edi, edi
mov edx, 0x5a4d
mov dword [0x6350c8], edi
mov eax, esi
mov ecx, 0x3c
cmp word [esi], dx
jne 0x52b5be
mov eax, dword ds:[eax + ecx]
test eax, eax
je 0x52b5be
cmp eax, 0x7fffffff
jae 0x52b5be
cmp dword [eax + esi], 0x4550
jne 0x52b5be
lea edx, [esi + 0x78]
add edx, eax
mov eax, dword [edx]
test eax, eax
je 0x52b5be
cmp dword [edx + 4], 0
je 0x52b5be
push 0
add eax, esi
mov ecx, esi
push str.PowerWriteSecurityDescriptor
push eax
call fcn.00528e20
mov edi, dword [0x6350c8]
jmp 0x52b5c0
xor eax, eax
mov dword [0x6350d0], eax
test edi, edi
je 0x52b62c
test eax, eax
je 0x52b62c
lea eax, [esp + 0xc]
mov ecx, edi
push eax
push 0
call dword [0x5a38f4]
call edi
mov edi, edi
test eax, eax
je 0x52b5f1
push eax
call sym.SystemInformer.exe_PhDosErrorToNtStatus
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
test ebx, ebx
je 0x52b5fa
mov eax, dword [ebx + 4]
jmp 0x52b5fc
xor eax, eax
mov esi, dword [0x6350d0]
mov ecx, esi
push eax
push dword [esp + 0x10]
push 0xe
call dword [0x5a38f4]
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 0x52d1a0
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 0x52d1e1
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 0x52faa0
Capabilities:
Get thread local storage value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
push esi
push edi
push dword [0x634ef4]
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 0x52fbef
mov ecx, dword [ebp + 8]
lea eax, [ecx*4]
mov dword [ebp - 4], eax
jmp 0x52faf0
push dword [0x634ef4]
push eax
call sym.SystemInformer.exe_PhCreateObject
cmp dword [0x62ebb0], 0xffffffff
mov edi, eax
mov eax, dword [0x636b4c]
jae 0x52fb24
cmp eax, 0x40
jae 0x52fb24
lfence
mov esi, dword fs:[0x18]
mov esi, dword [esi + eax*4 + 0xe10]
jmp 0x52fb2d
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov esi, eax
test edi, edi
je 0x52fbce
mov eax, dword [esi]
cmp eax, 0x40
jae 0x52fb47
mov dword [esi + eax*4 + 4], edi
inc dword [esi]
jmp 0x52fbce
mov ecx, dword [esi + 0x10c]
test ecx, ecx
jne 0x52fb76
push 0x100
push 4
push dword [0x635044]
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 0x52fbbf
add eax, eax
mov dword [esi + 0x108], eax
shl eax, 2
push eax
test ecx, ecx
jne 0x52fba8
push 4
push dword [0x635044]
call dword [sym.imp.ntdll.dll_RtlAllocateHeap]
jmp 0x52fbb7
push ecx
push 4
push dword [0x635044]
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.00582250
mov eax, dword [ebp - 4]
inc ebx
add esp, 0xc
cmp ebx, dword [ebp - 0x10]
jb 0x52faf0
mov eax, dword [ebp - 8]
pop edi
mov dword [eax], esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x531500
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 0x53153c
mov eax, 0xc0000106
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x10
lea esp, [esp]
call fcn.005311e0
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 0x531644
mov edx, dword [ecx]
cmp edx, 7
je 0x53163f
cmp edx, 8
je 0x53163f
cmp dword [ebp + 0xc], 0
je 0x5315d9
mov ebx, dword [ecx + 4]
movzx eax, byte [ebx + 1]
lea edi, [eax*4 + 8]
push edi
push 4
push dword [0x635044]
call dword [sym.imp.ntdll.dll_RtlAllocateHeap]
push edi
mov esi, eax
push ebx
push esi
call fcn.005823b0
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 0x531632
mov eax, dword [ecx + 8]
test eax, eax
js 0x531627
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 0x531627
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 0x53162c
call sym.SystemInformer.exe_PhReferenceEmptyString
mov ecx, dword [esp + 0x10]
mov dword [esi], eax
mov edx, dword [ebp + 0x14]
test edx, edx
je 0x531644
mov eax, dword [ecx]
mov dword [edx], eax
jmp 0x531644
mov ebx, 0xc0000073
mov eax, dword [esp + 0x14]
test eax, eax
je 0x531657
push eax
call dword [sym.imp.ADVAPI32.dll_LsaFreeMemory]
mov ecx, dword [esp + 0x10]
test ecx, ecx
je 0x531666
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 0x532620
Capabilities:
Enumerate pe sections

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x20
mov eax, dword [0x62e040]
xor eax, esp
mov dword [esp + 0x1c], eax
push esi
push edi
mov esi, ecx
call fcn.00531120
mov ecx, dword [esi + 2]
mov edx, eax
cmp ecx, dword [edx + 2]
jne 0x5326d8
movzx eax, word [esi + 6]
cmp ax, word [edx + 6]
jne 0x5326d8
cmp dword [esi + 8], 1
jne 0x5326d8
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 0x5326d8
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 0x5326c5
nop
call fcn.004fc020
mov eax, edi
pop edi
pop esi
mov ecx, dword [esp + 0x1c]
xor ecx, esp
call fcn.005802ef
mov esp, ebp
pop ebp
ret
mov ecx, dword [esp + 0x24]
xor eax, eax
pop edi
pop esi
xor ecx, esp
call fcn.005802ef
mov esp, ebp
pop ebp
ret

Function at 0x533800
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 0x53386c
mov ecx, dword [ebp - 0x18]
mov eax, 0x5a4d
cmp word [ecx], ax
jne 0x53386c
mov eax, dword [ecx + 0x3c]
add eax, ecx
cmp dword [eax], 0x4550
jne 0x53386c
mov edx, dword [eax + 0xd8]
mov edi, dword [eax + 0xdc]
test edx, edx
je 0x53386c
test edi, edi
je 0x53386c
lea eax, [edx + ecx]
cmp esi, eax
jb 0x53386c
lea eax, ds:[edi + edx]
add eax, ecx
cmp esi, eax
jae 0x53386c
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 0x533bc0
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 0x533ca8
jmp 0x533bf0
lea eax, [edi - 0x70000000]
cmp eax, 0x10000000
ja 0x533c08
sub edi, 0x8000000
jmp 0x533c92
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 0x533ca8
cmp dword [ebp - 0x14], 0x10000
jne 0x533c7d
cmp dword [ebp - 0x18], 0x10000
jb 0x533c7d
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 0x533c9c
cmp eax, 0xc0000604
je 0x533ca8
sub edi, 0x10000
jmp 0x533c92
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 0x533bf0
jmp 0x533ca8
mov eax, dword ds:[ebp - 4]
test eax, eax
jne 0x533d81
movzx eax, si
test eax, eax
je 0x533cb7
sub esi, eax
add esi, 0x10000
mov edi, dword ds:[ebp + 8]
cmp esi, edi
jae 0x533d7f
jmp 0x533cd0
lea eax, [esi - 0x70000000]
cmp eax, 0x10000000
ja 0x533ce8
add esi, 0x8000000
jmp 0x533d77
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 0x533d7f
cmp dword ds:[ebp - 0x14], 0x10000
mov ecx, dword [ebp - 0x18]
jne 0x533d62
cmp ecx, 0x10000
jb 0x533d62
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 0x533d8a
cmp eax, 0xc0000604
je 0x533d7f
add esi, 0x10000
jmp 0x533d77
mov esi, dword [ebp - 0x24]
add esi, ecx
movzx ecx, si
test ecx, ecx
je 0x533d77
mov eax, 0x10000
sub eax, ecx
add esi, eax
cmp esi, edi
jb 0x533cd0
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 0x537b00
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 0x537b43
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 0x537b5e
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 0x537b5e
or esi, 2
mov eax, ebx
and eax, 4
mov dword [ebp - 0x1c], eax
je 0x537b88
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 0x537b88
cmp byte [ebp - 2], 0
je 0x537b88
or esi, 4
and ebx, 8
je 0x537bb3
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 0x537bb3
cmp byte [ebp - 2], 0
je 0x537bb3
or esi, 8
cmp dword [ebp + 0xc], 1
jne 0x537c15
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 0x537c15
cmp dword [ebp - 0x1c], 0
mov cx, word [ebp - 8]
je 0x537bf5
movzx eax, cx
test eax, 0x1000
je 0x537bef
or esi, 0x80000000
jmp 0x537bf5
or esi, 0x20000000
test ebx, ebx
je 0x537c15
movzx eax, cx
test eax, 0x2000
je 0x537c0f
or esi, 0x40000000
jmp 0x537c15
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 0x537c43
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 0x538700
Capabilities:
Get file attributes

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x44
mov eax, dword [0x62e040]
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 0x538753
lfence
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x40]
xor ecx, esp
call fcn.005802ef
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 0x53879f
mov ecx, dword [esp + 0x38]
or ecx, dword [esp + 0x3c]
jne 0x53879f
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.005802ef
mov esp, ebp
pop ebp
ret 8
push ecx
mov edx, edi
call fcn.00578280
push edi
mov esi, eax
call dword [sym.imp.ntdll.dll_NtClose]
test esi, esi
je 0x5387dc
cmp dword [esi], 0
jne 0x5387d5
test ebx, ebx
je 0x5387bf
mov dword [ebx], esi
xor eax, eax
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x40]
xor ecx, esp
call fcn.005802ef
mov esp, ebp
pop ebp
ret 8
mov ecx, esi
call fcn.00577c80
mov ecx, dword [esp + 0x4c]
mov eax, 0xc0000102
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.005802ef
mov esp, ebp
pop ebp
ret 8
Function at 0x539840
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
push 0xfffffffffffffffe
push 0x6207c8
push 0x5813c0
mov eax, dword fs:[0]
push eax
sub esp, 0x14
push ebx
push esi
push edi
mov eax, dword [0x62e040]
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 0x53989e
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 0x539a38
cmp edx, 0xffffffff
je 0x539a38
mov dword ds:[ebp - 4], 0
lea esi, [edx + 0x40]
cmp esi, edx
jb 0x5399b2
lea ecx, [edx + eax]
mov dword [ebp - 0x1c], ecx
cmp esi, ecx
ja 0x5399b2
mov dword [ebp - 4], 0xfffffffe
mov ecx, 0x5a4d
cmp word [edx], cx
je 0x539903
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 0x5399ee
cmp ecx, 0x10000000
jae 0x5399ee
lea esi, [ecx + edx]
mov dword [ebp - 4], 1
lea ebx, [esi + 0x18]
cmp ebx, esi
jb 0x5399b2
cmp esi, edx
jb 0x5399b2
mov edx, dword [ebp - 0x1c]
cmp ebx, edx
ja 0x5399b2
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 0x5399b2
cmp eax, edx
ja 0x5399b2
mov dword [ebp - 4], 0xfffffffe
cmp dword [esi], 0x4550
jne 0x5399ee
movzx eax, word [ebx]
mov word [edi + 0x18], ax
mov ecx, 0x10b
cmp ax, cx
je 0x539986
mov ecx, 0x20b
cmp ax, cx
jne 0x5399ee
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
Function at 0x539b60
Capabilities:
Map section object

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
mov eax, dword [ebp + 8]
sub esp, 0x2c
push ebx
push esi
mov esi, dword [ebp + 0xc]
xor bl, bl
push edi
test esi, esi
jne 0x539bba
test eax, eax
jne 0x539b8a
mov eax, 0xc0000030
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
push 0x60
push 1
push 1
push 0x80
push 0x100081
push eax
lea eax, [ebp + 0xc]
push eax
call sym.SystemInformer.exe_PhCreateFile
test eax, eax
jns 0x539bb5
lfence
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
mov esi, dword [ebp + 0xc]
mov bl, 1
push esi
push 0x8000000
push 2
lea eax, [esp + 0x24]
mov dword [esp + 0x2c], 0x18
push eax
lea eax, [esp + 0x30]
mov dword [esp + 0x34], 0
push eax
push 5
lea eax, [esp + 0x24]
mov dword [esp + 0x44], 0
push eax
mov dword [esp + 0x44], 0
mov dword [esp + 0x4c], 0
mov dword [esp + 0x50], 0
mov dword [esp + 0x34], 0x1000
mov dword [esp + 0x38], 0
call dword [sym.imp.ntdll.dll_NtCreateSection]
mov edi, eax
test bl, bl
je 0x539c26
push esi
call dword [sym.imp.ntdll.dll_NtClose]
test edi, edi
jns 0x539c38
lfence
mov eax, edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
push 2
push 0
push 2
lea eax, [esp + 0x1c]
mov dword [esp + 0x1c], 0x1000
push eax
push 0
push 0
push 0
lea eax, [esp + 0x30]
mov dword [esp + 0x30], 0
push eax
push 0xffffffffffffffff
push dword [esp + 0x30]
call dword [sym.imp.ntdll.dll_NtMapViewOfSection]
push dword [esp + 0xc]
mov esi, eax
call dword [sym.imp.ntdll.dll_NtClose]
test esi, esi
jns 0x539c88
lfence
mov eax, esi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
push dword [esp + 0x10]
mov edx, dword [esp + 0x18]
mov ecx, dword [ebp + 0x10]
call fcn.00539840
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
Function at 0x539ce0
Capabilities:
Get file attributes
Map section object

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x7c
mov eax, dword [0x62e040]
xor eax, esp
mov dword [esp + 0x78], eax
mov eax, dword [ebp + 8]
push ebx
push esi
mov esi, edx
mov dword [esp + 0x2c], eax
mov eax, dword [ebp + 0xc]
xor bl, bl
mov dword [esp + 0x20], esi
mov dword [esp + 0x30], eax
push edi
test esi, esi
jne 0x539d71
test ecx, ecx
jne 0x539d2e
mov eax, 0xc0000030
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x78]
xor ecx, esp
call fcn.005802ef
mov esp, ebp
pop ebp
ret 8
push 0
push 0x60
push 1
push 1
push 0x80
push 0
push 0x100081
push ecx
lea eax, [esp + 0x44]
push eax
call sym.SystemInformer.exe_PhCreateFileWin32Ex
test eax, eax
jns 0x539d6b
lfence
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x78]
xor ecx, esp
call fcn.005802ef
mov esp, ebp
pop ebp
ret 8
mov esi, dword [esp + 0x24]
mov bl, 1
push 5
push 0x18
lea eax, [esp + 0x70]
push eax
lea eax, [esp + 0x30]
push eax
push esi
call dword [sym.imp.ntdll.dll_NtQueryInformationFile]
mov edi, eax
test edi, edi
js 0x539e4b
mov edx, dword [esp + 0x70]
lea eax, [esp + 0x18]
mov ecx, dword [esp + 0x74]
push esi
push 0x8000000
push 2
push eax
lea eax, [esp + 0x48]
mov dword [esp + 0x28], edx
push eax
push 5
lea eax, [esp + 0x28]
mov dword [esp + 0x34], ecx
push eax
mov dword [esp + 0x54], 0x18
mov dword [esp + 0x58], 0
mov dword [esp + 0x60], 0
mov dword [esp + 0x5c], 0
mov dword [esp + 0x64], 0
mov dword [esp + 0x68], 0
call dword [sym.imp.ntdll.dll_NtCreateSection]
mov edi, eax
test edi, edi
js 0x539e4b
mov eax, dword [esp + 0x18]
push 2
push 0
push 2
mov dword [esp + 0x38], eax
lea eax, [esp + 0x38]
push eax
push 0
push 0
push 0
lea eax, [esp + 0x30]
mov dword [esp + 0x30], 0
push eax
push 0xffffffffffffffff
push dword [esp + 0x34]
call dword [sym.imp.ntdll.dll_NtMapViewOfSection]
push dword [esp + 0x10]
mov edi, eax
call dword [sym.imp.ntdll.dll_NtClose]
test edi, edi
js 0x539e4b
mov ecx, dword [esp + 0x30]
mov eax, dword [esp + 0x14]
mov dword [ecx], eax
mov ecx, dword [esp + 0x34]
mov eax, dword [esp + 0x18]
mov dword [ecx], eax
test bl, bl
je 0x539e56
push esi
call dword [sym.imp.ntdll.dll_NtClose]
mov ecx, dword [esp + 0x84]
mov eax, edi
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.005802ef
mov esp, ebp
pop ebp
ret 8