joyce8/EMBER2024-capa huggingface dataset:
Function at 0x521e80
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 0x521eb4
xor eax, eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0057e94f
mov esp, ebp
pop ebp
ret
cmp dword [0x62dbb0], 0xffffffff
jae 0x521eda
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.0057e94f
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.0057e94f
mov esp, ebp
pop ebp
ret

Function at 0x521fa0
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 0x521fdc
xor eax, eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0057e94f
mov esp, ebp
pop ebp
ret 4
cmp dword [0x62dbb0], 0xffffffff
jae 0x521ff0
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x34]
jmp 0x521ff6
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call sym.SystemInformer.exe_PhDosErrorToNtStatus
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0057e94f
mov esp, ebp
pop ebp
ret 4

Function at 0x527060
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 0x52711e
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 0x5270bd
mov ecx, dword [esp + 0x14]
cmp dword [esi + 0x18], ecx
mov ecx, dword [esp + 0x10]
jne 0x527114
lea ecx, [ecx]
test ebx, ebx
je 0x5270e7
mov dword [esp + 0x24], eax
mov eax, dword [ebx]
mov dword [esp + 0x20], eax
cmp edx, eax
jb 0x527114
push 1
push ebx
lea eax, [esp + 0x28]
push eax
call sym.SystemInformer.exe_PhEqualStringRef
mov ecx, dword [esp + 0x10]
test al, al
je 0x527114
test edi, edi
je 0x527129
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 0x527114
push 1
push edi
lea eax, [esp + 0x30]
push eax
call sym.SystemInformer.exe_PhEqualStringRef
test al, al
jne 0x527129
mov ecx, dword [esp + 0x10]
mov esi, dword [esi]
cmp esi, ecx
jne 0x527090
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 0x5271c0
Capabilities:
Map section object

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
cmp byte [ebp + 0xc], 0
push esi
je 0x5271eb
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 0x52720e
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 0x52721c
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 0x5272b3
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 0x5272b3
mov eax, dword [ebp + 0x10]
test eax, eax
je 0x5272b3
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 0x527380
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 0x5273d6
mov eax, dword [ecx + 0x3c]
test eax, eax
je 0x5273d6
lea ebx, [ebx]
cmp eax, 0x7fffffff
jae 0x5273d6
cmp dword [eax + ecx], 0x4550
jne 0x5273d6
lea edx, [ecx + 0x78]
add edx, eax
mov eax, dword [edx]
test eax, eax
je 0x5273d6
cmp dword ds:[edx + 4], 0
je 0x5273d6
push dword [ebp + 0x10]
add eax, ecx
push dword [ebp + 0xc]
push eax
call fcn.00527c80
mov esp, ebp
pop ebp
ret 0xc
xor eax, eax
mov esp, ebp
pop ebp
ret 0xc
Function at 0x527900
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 0x52794f
mov ecx, dword ds:[ebp + 8]
test ecx, ecx
je 0x527974
cmp dword [edx + 0x18], ecx
je 0x527974
mov edx, dword [edx]
cmp edx, eax
jne 0x527944
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 0x5279ab
xor eax, eax
pop edi
pop esi
mov esp, ebp
pop ebp
ret 8
test edx, edx
je 0x52794f
movzx eax, word ds:[edx + 0x24]
mov ecx, eax
test ax, ax
jne 0x52798e
call sym.SystemInformer.exe_PhReferenceEmptyString
mov esi, eax
jmp 0x527951
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 0x527951
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 0x5279c8
call fcn.004fbd80
mov esi, dword [ebp + 0xc]
test esi, esi
je 0x5279e6
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 0x527a00
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 0x527a92
test esi, esi
jne 0x527a92
test edi, edi
je 0x527a92
mov eax, dword [edi]
test eax, eax
je 0x527a64
mov edi, dword [edi + 4]
shr eax, 1
lea ebx, [edi + eax*2]
cmp edi, ebx
je 0x527a64
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 0x527a40
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 0x527a8e
lea ebx, [ebx]
cmp dword [eax + 0x90], esi
je 0x527a9c
mov eax, dword [eax]
cmp eax, ecx
jne 0x527a80
xor eax, eax
jmp 0x527a9c
push edi
mov edx, esi
xor ecx, ecx
call fcn.00527060
lea esp, [esp]
test eax, eax
je 0x527aa9
mov esi, dword [eax + 0x18]
jmp 0x527aab
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 0x527ae0
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 0x527b35
mov eax, dword [ecx + 0x3c]
test eax, eax
je 0x527b35
jmp 0x527b00
cmp eax, 0x7fffffff
jae 0x527b35
cmp dword [eax + ecx], 0x4550
jne 0x527b35
lea edx, [ecx + 0x78]
add edx, eax
mov eax, dword [edx]
test eax, eax
je 0x527b35
cmp dword ds:[edx + 4], 0
je 0x527b35
push dword [ebp + 8]
add eax, ecx
push esi
push eax
call fcn.00527c80
pop esi
mov esp, ebp
pop ebp
ret 4
xor eax, eax
pop esi
mov esp, ebp
pop ebp
ret 4

Function at 0x527b40
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.00527a00
mov ecx, eax
test ecx, ecx
je 0x527bbe
mov eax, 0x5a4d
cmp word [ecx], ax
jne 0x527bbe
mov eax, dword ds:[ecx + 0x3c]
test eax, eax
je 0x527bbe
cmp eax, 0x7fffffff
jae 0x527bbe
cmp dword [eax + ecx], 0x4550
jne 0x527bbe
lea edx, ds:[eax + 0x78]
mov eax, dword [edx + ecx]
add edx, ecx
test eax, eax
je 0x527bbe
cmp dword [edx + 4], 0
je 0x527bbe
push dword [ebp + 8]
add eax, ecx
push edi
push eax
call fcn.00527c80
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 0x528360
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 0x528386
mov eax, 0xc000012f
lfence
mov esp, ebp
pop ebp
ret 0xc
mov eax, dword [edx + 0x3c]
test eax, eax
je 0x5284dc
cmp eax, 0x7fffffff
jae 0x5284dc
cmp dword [eax + edx], 0x4550
jne 0x5284dc
mov ecx, dword [eax + edx + 0x80]
test ecx, ecx
je 0x5284ce
cmp dword [eax + edx + 0x84], 0
je 0x5284ce
push ebx
lea ebx, [edx + 0xc]
add ebx, ecx
push edi
mov edi, 0xc0000001
mov dword [ebp - 4], edi
cmp dword [ebx], 0
je 0x528487
push esi
nop
mov ecx, dword [ebx - 0xc]
test ecx, ecx
je 0x528486
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.00588f9a
add esp, 8
test eax, eax
jne 0x528471
mov eax, dword [edi]
test eax, eax
je 0x528471
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 0x528464
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 0x52845a
lea esp, [esp]
test dl, dl
je 0x528456
mov dl, byte [ecx + 1]
cmp dl, byte [eax + 1]
jne 0x52845a
add ecx, 2
add eax, 2
test dl, dl
jne 0x528436
xor eax, eax
jmp 0x52845f
sbb eax, eax
or eax, 1
nop
test eax, eax
je 0x528491
mov eax, dword [edi + esi + 4]
add esi, 4
mov ecx, eax
test eax, eax
jne 0x528424
mov edi, dword [ebp - 4]
mov edx, dword ds:[ebp - 0x14]
add ebx, 0x14
cmp dword [ebx], 0
jne 0x5283e0
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 0x528474
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 0x528474
mov eax, 0xc0000020
lfence
mov esp, ebp
pop ebp
ret 0xc
mov eax, 0xc000007b
lfence
mov esp, ebp
pop ebp
ret 0xc
Function at 0x528500
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 0x52856c
mov eax, 0x5a4d
movzx ecx, dx
cmp word [esi], ax
jne 0x528592
mov eax, dword [esi + 0x3c]
test eax, eax
je 0x528592
cmp eax, 0x7fffffff
jae 0x528592
cmp dword [eax + esi], 0x4550
jne 0x528592
lea edx, [esi + 0x78]
add edx, eax
mov eax, dword [edx]
test eax, eax
je 0x528592
cmp dword [edx + 4], 0
je 0x528592
push ecx
add eax, esi
mov ecx, esi
push 0
push eax
call fcn.00527c80
test eax, eax
je 0x528592
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.00528000
lea ecx, [ecx]
test eax, eax
je 0x528592
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
Function at 0x528dc0
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 0x528edb
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 0x528edb
push 0x30
lea eax, [ebp - 0x48]
push 0
push eax
call fcn.00580b30
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 0x528e58
cmp dword [ebp - 0x38], 2
jne 0x528e53
test dword [ebp - 0x2c], 0x2002
jne 0x528e72
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 0x528ebc
mov ecx, dword [ebp - 8]
call fcn.00528b60
mov ebx, eax
lea esp, [esp]
test ebx, ebx
js 0x528ec9
mov edi, dword [ebp - 8]
jmp 0x528ed7
push dword [ebp - 8]
push 0xffffffffffffffff
call dword [sym.imp.ntdll.dll_NtUnmapViewOfSection]
mov edi, dword [ebp - 0x18]
test ebx, ebx
jns 0x528ee7
lfence
mov eax, ebx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov ebx, 0x5a4d
cmp word [edi], bx
je 0x528efb
mov ebx, 0xc000012f
jmp 0x528f7d
mov eax, dword ds:[edi + 0x3c]
test eax, eax
je 0x528f78
cmp eax, 0x7fffffff
jae 0x528f78
add eax, edi
mov dword [ebp - 0xc], eax
cmp dword [eax], 0x4550
jne 0x528f78
mov esi, edi
mov edx, eax
push ecx
mov ecx, esi
mov dword [ebp - 0x14], esi
call fcn.005285a0
mov ebx, eax
test ebx, ebx
js 0x528f7d
lfence
mov edx, dword [ebp - 0xc]
push ecx
mov ecx, esi
call fcn.00528820
mov ebx, eax
test ebx, ebx
js 0x528f7d
mov eax, dword [ebp - 0xc]
mov eax, dword [eax + 0x28]
test eax, eax
jne 0x528f55
mov ebx, 0xc0000139
jmp 0x528f7d
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 0x528fc8
mov ebx, 0xc0000142
jmp 0x528f7d
mov ebx, 0xc000007b
mov eax, 0x5a4d
cmp word [edi], ax
jne 0x528fc8
lfence
mov eax, dword [edi + 0x3c]
test eax, eax
je 0x528fc8
cmp eax, 0x7fffffff
jae 0x528fc8
cmp dword ds:[eax + edi], 0x4550
jne 0x528fc8
mov eax, dword [eax + edi + 0x28]
test eax, eax
je 0x528fc8
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 0x52a1c0
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 0x52a1e8
mov eax, dword [0x634130]
lea ecx, [ecx]
test eax, eax
jne 0x52a2a5
call fcn.0052a080
mov esi, eax
test esi, esi
je 0x52a32e
mov eax, 0x5a4d
cmp word [esi], ax
jne 0x52a243
mov eax, dword [esi + 0x3c]
test eax, eax
je 0x52a243
cmp eax, 0x7fffffff
jae 0x52a243
cmp dword [eax + esi], 0x4550
jne 0x52a243
lea edx, [eax + 0x78]
mov eax, dword [edx + esi]
add edx, esi
test eax, eax
je 0x52a243
cmp dword [edx + 4], 0
je 0x52a243
push 0
add eax, esi
mov ecx, esi
push str.PowerGetActiveScheme
push eax
call fcn.00527c80
mov edi, eax
jmp 0x52a245
xor edi, edi
mov edx, 0x5a4d
mov dword [0x634134], edi
mov eax, esi
mov ecx, 0x3c
cmp word [esi], dx
jne 0x52a29e
mov eax, dword ds:[ecx + eax]
test eax, eax
je 0x52a29e
cmp eax, 0x7fffffff
jae 0x52a29e
cmp dword [eax + esi], 0x4550
jne 0x52a29e
lea edx, [esi + 0x78]
add edx, eax
mov eax, dword [edx]
test eax, eax
je 0x52a29e
cmp dword [edx + 4], 0
je 0x52a29e
push 0
add eax, esi
mov ecx, esi
push str.PowerReadSecurityDescriptor
push eax
call fcn.00527c80
mov edi, dword [0x634134]
jmp 0x52a2a0
xor eax, eax
mov dword [0x634130], eax
test edi, edi
je 0x52a322
test eax, eax
je 0x52a322
lea eax, [esp + 0x14]
mov ecx, edi
push eax
push 0
call dword [0x5a28f0]
call edi
mov edi, edi
test eax, eax
je 0x52a2d1
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 0x52a30b
test ebx, ebx
je 0x52a301
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 0x52a340
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 0x52a368
mov eax, dword [0x63413c]
jmp 0x52a360
test eax, eax
jne 0x52a425
call fcn.0052a080
mov esi, eax
test esi, esi
je 0x52a498
mov eax, 0x5a4d
cmp word [esi], ax
jne 0x52a3c3
mov eax, dword [esi + 0x3c]
test eax, eax
je 0x52a3c3
cmp eax, 0x7fffffff
jae 0x52a3c3
cmp dword [eax + esi], 0x4550
jne 0x52a3c3
lea edx, [eax + 0x78]
mov eax, dword [edx + esi]
add edx, esi
test eax, eax
je 0x52a3c3
cmp dword [edx + 4], 0
je 0x52a3c3
push 0
add eax, esi
mov ecx, esi
push str.PowerGetActiveScheme
push eax
call fcn.00527c80
mov edi, eax
jmp 0x52a3c5
xor edi, edi
mov edx, 0x5a4d
mov dword [0x634134], edi
mov eax, esi
mov ecx, 0x3c
cmp word [esi], dx
jne 0x52a41e
mov eax, dword ds:[eax + ecx]
test eax, eax
je 0x52a41e
cmp eax, 0x7fffffff
jae 0x52a41e
cmp dword [eax + esi], 0x4550
jne 0x52a41e
lea edx, [esi + 0x78]
add edx, eax
mov eax, dword [edx]
test eax, eax
je 0x52a41e
cmp dword [edx + 4], 0
je 0x52a41e
push 0
add eax, esi
mov ecx, esi
push str.PowerWriteSecurityDescriptor
push eax
call fcn.00527c80
mov edi, dword [0x634134]
jmp 0x52a420
xor eax, eax
mov dword [0x63413c], eax
test edi, edi
je 0x52a48c
test eax, eax
je 0x52a48c
lea eax, [esp + 0xc]
mov ecx, edi
push eax
push 0
call dword [0x5a28f0]
call edi
mov edi, edi
test eax, eax
je 0x52a451
push eax
call sym.SystemInformer.exe_PhDosErrorToNtStatus
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
test ebx, ebx
je 0x52a45a
mov eax, dword [ebx + 4]
jmp 0x52a45c
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 0x52c060
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 0x52c0a1
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 0x52e9e0
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 0x52eb2f
mov ecx, dword [ebp + 8]
lea eax, [ecx*4]
mov dword [ebp - 4], eax
jmp 0x52ea30
push dword [0x633f60]
push eax
call sym.SystemInformer.exe_PhCreateObject
cmp dword [0x62dbb0], 0xffffffff
mov edi, eax
mov eax, dword [0x635c08]
jae 0x52ea64
cmp eax, 0x40
jae 0x52ea64
lfence
mov esi, dword fs:[0x18]
mov esi, dword [esi + eax*4 + 0xe10]
jmp 0x52ea6d
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov esi, eax
test edi, edi
je 0x52eb0e
mov eax, dword [esi]
cmp eax, 0x40
jae 0x52ea87
mov dword [esi + eax*4 + 4], edi
inc dword [esi]
jmp 0x52eb0e
mov ecx, dword [esi + 0x10c]
test ecx, ecx
jne 0x52eab6
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 0x52eaff
add eax, eax
mov dword [esi + 0x108], eax
shl eax, 2
push eax
test ecx, ecx
jne 0x52eae8
push 4
push dword [0x633f94]
call dword [sym.imp.ntdll.dll_RtlAllocateHeap]
jmp 0x52eaf7
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.00580b30
mov eax, dword [ebp - 4]
inc ebx
add esp, 0xc
cmp ebx, dword [ebp - 0x10]
jb 0x52ea30
mov eax, dword [ebp - 8]
pop edi
mov dword [eax], esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4