joyce8/EMBER2024-capa huggingface dataset:
Function at 0x523380
Capabilities:
Pause service

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
mov eax, dword [0x62f040]
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 0x5233b4
xor eax, eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0058078f
mov esp, ebp
pop ebp
ret
cmp dword [0x62fbb0], 0xffffffff
jae 0x5233da
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.0058078f
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.0058078f
mov esp, ebp
pop ebp
ret

Function at 0x5234a0
Capabilities:
Stop service

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
mov eax, dword [0x62f040]
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 0x5234dc
xor eax, eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0058078f
mov esp, ebp
pop ebp
ret 4
cmp dword [0x62fbb0], 0xffffffff
jae 0x5234f0
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x34]
jmp 0x5234f6
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call sym.SystemInformer.exe_PhDosErrorToNtStatus
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0058078f
mov esp, ebp
pop ebp
ret 4

Function at 0x528600
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 0x5286be
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 0x52865d
mov ecx, dword [esp + 0x14]
cmp dword [esi + 0x18], ecx
mov ecx, dword [esp + 0x10]
jne 0x5286b4
lea ecx, [ecx]
test ebx, ebx
je 0x528687
mov dword [esp + 0x24], eax
mov eax, dword [ebx]
mov dword [esp + 0x20], eax
cmp edx, eax
jb 0x5286b4
push 1
push ebx
lea eax, [esp + 0x28]
push eax
call sym.SystemInformer.exe_PhEqualStringRef
mov ecx, dword [esp + 0x10]
test al, al
je 0x5286b4
test edi, edi
je 0x5286c9
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 0x5286b4
push 1
push edi
lea eax, [esp + 0x30]
push eax
call sym.SystemInformer.exe_PhEqualStringRef
test al, al
jne 0x5286c9
mov ecx, dword [esp + 0x10]
mov esi, dword [esi]
cmp esi, ecx
jne 0x528630
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 0x528760
Capabilities:
Map section object

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

Function at 0x528960
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 0x5289b6
mov eax, dword [ecx + 0x3c]
test eax, eax
je 0x5289b6
lea ebx, [ebx]
cmp eax, 0x7fffffff
jae 0x5289b6
cmp dword [eax + ecx], 0x4550
jne 0x5289b6
lea edx, [ecx + 0x78]
add edx, eax
mov eax, dword [edx]
test eax, eax
je 0x5289b6
cmp dword ds:[edx + 4], 0
je 0x5289b6
push dword [ebp + 0x10]
add eax, ecx
push dword [ebp + 0xc]
push eax
call fcn.00529280
mov esp, ebp
pop ebp
ret 0xc
xor eax, eax
mov esp, ebp
pop ebp
ret 0xc
Function at 0x528ee0
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 0x528f2f
mov ecx, dword ds:[ebp + 8]
test ecx, ecx
je 0x528f54
cmp dword [edx + 0x18], ecx
je 0x528f54
mov edx, dword [edx]
cmp edx, eax
jne 0x528f24
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 0x528f8b
xor eax, eax
pop edi
pop esi
mov esp, ebp
pop ebp
ret 8
test edx, edx
je 0x528f2f
movzx eax, word ds:[edx + 0x24]
mov ecx, eax
test ax, ax
jne 0x528f6e
call sym.SystemInformer.exe_PhReferenceEmptyString
mov esi, eax
jmp 0x528f31
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 0x528f31
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 0x528fa8
call fcn.004fc420
mov esi, dword [ebp + 0xc]
test esi, esi
je 0x528fc6
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 0x529000
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 [0x62fbb0], 0x3e
jb 0x529092
test esi, esi
jne 0x529092
test edi, edi
je 0x529092
mov eax, dword [edi]
test eax, eax
je 0x529064
mov edi, dword [edi + 4]
shr eax, 1
lea ebx, [edi + eax*2]
cmp edi, ebx
je 0x529064
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 0x529040
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 0x52908e
lea ebx, [ebx]
cmp dword [eax + 0x90], esi
je 0x52909c
mov eax, dword [eax]
cmp eax, ecx
jne 0x529080
xor eax, eax
jmp 0x52909c
push edi
mov edx, esi
xor ecx, ecx
call fcn.00528600
lea esp, [esp]
test eax, eax
je 0x5290a9
mov esi, dword [eax + 0x18]
jmp 0x5290ab
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 0x5290e0
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 0x529135
mov eax, dword [ecx + 0x3c]
test eax, eax
je 0x529135
jmp 0x529100
cmp eax, 0x7fffffff
jae 0x529135
cmp dword [eax + ecx], 0x4550
jne 0x529135
lea edx, [ecx + 0x78]
add edx, eax
mov eax, dword [edx]
test eax, eax
je 0x529135
cmp dword ds:[edx + 4], 0
je 0x529135
push dword [ebp + 8]
add eax, ecx
push esi
push eax
call fcn.00529280
pop esi
mov esp, ebp
pop ebp
ret 4
xor eax, eax
pop esi
mov esp, ebp
pop ebp
ret 4

Function at 0x529140
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.00529000
mov ecx, eax
test ecx, ecx
je 0x5291be
mov eax, 0x5a4d
cmp word [ecx], ax
jne 0x5291be
mov eax, dword ds:[ecx + 0x3c]
test eax, eax
je 0x5291be
cmp eax, 0x7fffffff
jae 0x5291be
cmp dword [eax + ecx], 0x4550
jne 0x5291be
lea edx, ds:[eax + 0x78]
mov eax, dword [edx + ecx]
add edx, ecx
test eax, eax
je 0x5291be
cmp dword [edx + 4], 0
je 0x5291be
push dword [ebp + 8]
add eax, ecx
push edi
push eax
call fcn.00529280
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 0x529960
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 0x529986
mov eax, 0xc000012f
lfence
mov esp, ebp
pop ebp
ret 0xc
mov eax, dword [edx + 0x3c]
test eax, eax
je 0x529adc
cmp eax, 0x7fffffff
jae 0x529adc
cmp dword [eax + edx], 0x4550
jne 0x529adc
mov ecx, dword [eax + edx + 0x80]
test ecx, ecx
je 0x529ace
cmp dword [eax + edx + 0x84], 0
je 0x529ace
push ebx
lea ebx, [edx + 0xc]
add ebx, ecx
push edi
mov edi, 0xc0000001
mov dword [ebp - 4], edi
cmp dword [ebx], 0
je 0x529a87
push esi
nop
mov ecx, dword [ebx - 0xc]
test ecx, ecx
je 0x529a86
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.0058a91d
add esp, 8
test eax, eax
jne 0x529a71
mov eax, dword [edi]
test eax, eax
je 0x529a71
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 0x529a64
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 0x529a5a
lea esp, [esp]
test dl, dl
je 0x529a56
mov dl, byte [ecx + 1]
cmp dl, byte [eax + 1]
jne 0x529a5a
add ecx, 2
add eax, 2
test dl, dl
jne 0x529a36
xor eax, eax
jmp 0x529a5f
sbb eax, eax
or eax, 1
nop
test eax, eax
je 0x529a91
mov eax, dword [edi + esi + 4]
add esi, 4
mov ecx, eax
test eax, eax
jne 0x529a24
mov edi, dword [ebp - 4]
mov edx, dword ds:[ebp - 0x14]
add ebx, 0x14
cmp dword [ebx], 0
jne 0x5299e0
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 0x529a74
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 0x529a74
mov eax, 0xc0000020
lfence
mov esp, ebp
pop ebp
ret 0xc
mov eax, 0xc000007b
lfence
mov esp, ebp
pop ebp
ret 0xc
Function at 0x529b00
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 0x529b6c
mov eax, 0x5a4d
movzx ecx, dx
cmp word [esi], ax
jne 0x529b92
mov eax, dword [esi + 0x3c]
test eax, eax
je 0x529b92
cmp eax, 0x7fffffff
jae 0x529b92
cmp dword [eax + esi], 0x4550
jne 0x529b92
lea edx, [esi + 0x78]
add edx, eax
mov eax, dword [edx]
test eax, eax
je 0x529b92
cmp dword [edx + 4], 0
je 0x529b92
push ecx
add eax, esi
mov ecx, esi
push 0
push eax
call fcn.00529280
test eax, eax
je 0x529b92
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.00529600
lea ecx, [ecx]
test eax, eax
je 0x529b92
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 0x52b7c0
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 [0x6360c8]
mov ebx, ecx
test edi, edi
je 0x52b7e8
mov eax, dword [0x6360c4]
lea ecx, [ecx]
test eax, eax
jne 0x52b8a5
call fcn.0052b680
mov esi, eax
test esi, esi
je 0x52b92e
mov eax, 0x5a4d
cmp word [esi], ax
jne 0x52b843
mov eax, dword [esi + 0x3c]
test eax, eax
je 0x52b843
cmp eax, 0x7fffffff
jae 0x52b843
cmp dword [eax + esi], 0x4550
jne 0x52b843
lea edx, [eax + 0x78]
mov eax, dword [edx + esi]
add edx, esi
test eax, eax
je 0x52b843
cmp dword [edx + 4], 0
je 0x52b843
push 0
add eax, esi
mov ecx, esi
push str.PowerGetActiveScheme
push eax
call fcn.00529280
mov edi, eax
jmp 0x52b845
xor edi, edi
mov edx, 0x5a4d
mov dword [0x6360c8], edi
mov eax, esi
mov ecx, 0x3c
cmp word [esi], dx
jne 0x52b89e
mov eax, dword ds:[ecx + eax]
test eax, eax
je 0x52b89e
cmp eax, 0x7fffffff
jae 0x52b89e
cmp dword [eax + esi], 0x4550
jne 0x52b89e
lea edx, [esi + 0x78]
add edx, eax
mov eax, dword [edx]
test eax, eax
je 0x52b89e
cmp dword [edx + 4], 0
je 0x52b89e
push 0
add eax, esi
mov ecx, esi
push str.PowerReadSecurityDescriptor
push eax
call fcn.00529280
mov edi, dword [0x6360c8]
jmp 0x52b8a0
xor eax, eax
mov dword [0x6360c4], eax
test edi, edi
je 0x52b922
test eax, eax
je 0x52b922
lea eax, [esp + 0x14]
mov ecx, edi
push eax
push 0
call dword [0x5a48f4]
call edi
mov edi, edi
test eax, eax
je 0x52b8d1
push eax
call sym.SystemInformer.exe_PhDosErrorToNtStatus
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov esi, dword [0x6360c4]
lea eax, [esp + 0x10]
push eax
push dword [esp + 0x18]
mov ecx, esi
push 0xe
call dword [0x5a48f4]
call esi
mov esi, eax
test esi, esi
jne 0x52b90b
test ebx, ebx
je 0x52b901
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 0x52b940
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push ecx
push ebx
push esi
push edi
mov edi, dword [0x6360c8]
mov ebx, ecx
test edi, edi
je 0x52b968
mov eax, dword [0x6360d0]
jmp 0x52b960
test eax, eax
jne 0x52ba25
call fcn.0052b680
mov esi, eax
test esi, esi
je 0x52ba98
mov eax, 0x5a4d
cmp word [esi], ax
jne 0x52b9c3
mov eax, dword [esi + 0x3c]
test eax, eax
je 0x52b9c3
cmp eax, 0x7fffffff
jae 0x52b9c3
cmp dword [eax + esi], 0x4550
jne 0x52b9c3
lea edx, [eax + 0x78]
mov eax, dword [edx + esi]
add edx, esi
test eax, eax
je 0x52b9c3
cmp dword [edx + 4], 0
je 0x52b9c3
push 0
add eax, esi
mov ecx, esi
push str.PowerGetActiveScheme
push eax
call fcn.00529280
mov edi, eax
jmp 0x52b9c5
xor edi, edi
mov edx, 0x5a4d
mov dword [0x6360c8], edi
mov eax, esi
mov ecx, 0x3c
cmp word [esi], dx
jne 0x52ba1e
mov eax, dword ds:[eax + ecx]
test eax, eax
je 0x52ba1e
cmp eax, 0x7fffffff
jae 0x52ba1e
cmp dword [eax + esi], 0x4550
jne 0x52ba1e
lea edx, [esi + 0x78]
add edx, eax
mov eax, dword [edx]
test eax, eax
je 0x52ba1e
cmp dword [edx + 4], 0
je 0x52ba1e
push 0
add eax, esi
mov ecx, esi
push str.PowerWriteSecurityDescriptor
push eax
call fcn.00529280
mov edi, dword [0x6360c8]
jmp 0x52ba20
xor eax, eax
mov dword [0x6360d0], eax
test edi, edi
je 0x52ba8c
test eax, eax
je 0x52ba8c
lea eax, [esp + 0xc]
mov ecx, edi
push eax
push 0
call dword [0x5a48f4]
call edi
mov edi, edi
test eax, eax
je 0x52ba51
push eax
call sym.SystemInformer.exe_PhDosErrorToNtStatus
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
test ebx, ebx
je 0x52ba5a
mov eax, dword [ebx + 4]
jmp 0x52ba5c
xor eax, eax
mov esi, dword [0x6360d0]
mov ecx, esi
push eax
push dword [esp + 0x10]
push 0xe
call dword [0x5a48f4]
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 0x52d600
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 0x52d641
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 0x52ff00
Capabilities:
Get thread local storage value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
push esi
push edi
push dword [0x635ef4]
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 0x53004f
mov ecx, dword [ebp + 8]
lea eax, [ecx*4]
mov dword [ebp - 4], eax
jmp 0x52ff50
push dword [0x635ef4]
push eax
call sym.SystemInformer.exe_PhCreateObject
cmp dword [0x62fbb0], 0xffffffff
mov edi, eax
mov eax, dword [0x637b4c]
jae 0x52ff84
cmp eax, 0x40
jae 0x52ff84
lfence
mov esi, dword fs:[0x18]
mov esi, dword [esi + eax*4 + 0xe10]
jmp 0x52ff8d
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov esi, eax
test edi, edi
je 0x53002e
mov eax, dword [esi]
cmp eax, 0x40
jae 0x52ffa7
mov dword [esi + eax*4 + 4], edi
inc dword [esi]
jmp 0x53002e
mov ecx, dword [esi + 0x10c]
test ecx, ecx
jne 0x52ffd6
push 0x100
push 4
push dword [0x636044]
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 0x53001f
add eax, eax
mov dword [esi + 0x108], eax
shl eax, 2
push eax
test ecx, ecx
jne 0x530008
push 4
push dword [0x636044]
call dword [sym.imp.ntdll.dll_RtlAllocateHeap]
jmp 0x530017
push ecx
push 4
push dword [0x636044]
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.005826f0
mov eax, dword [ebp - 4]
inc ebx
add esp, 0xc
cmp ebx, dword [ebp - 0x10]
jb 0x52ff50
mov eax, dword [ebp - 8]
pop edi
mov dword [eax], esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x531960
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 0x53199c
mov eax, 0xc0000106
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x10
lea esp, [esp]
call fcn.00531640
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 0x531aa4
mov edx, dword [ecx]
cmp edx, 7
je 0x531a9f
cmp edx, 8
je 0x531a9f
cmp dword [ebp + 0xc], 0
je 0x531a39
mov ebx, dword [ecx + 4]
movzx eax, byte [ebx + 1]
lea edi, [eax*4 + 8]
push edi
push 4
push dword [0x636044]
call dword [sym.imp.ntdll.dll_RtlAllocateHeap]
push edi
mov esi, eax
push ebx
push esi
call fcn.00582850
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 0x531a92
mov eax, dword [ecx + 8]
test eax, eax
js 0x531a87
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 0x531a87
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 0x531a8c
call sym.SystemInformer.exe_PhReferenceEmptyString
mov ecx, dword [esp + 0x10]
mov dword [esi], eax
mov edx, dword [ebp + 0x14]
test edx, edx
je 0x531aa4
mov eax, dword [ecx]
mov dword [edx], eax
jmp 0x531aa4
mov ebx, 0xc0000073
mov eax, dword [esp + 0x14]
test eax, eax
je 0x531ab7
push eax
call dword [sym.imp.ADVAPI32.dll_LsaFreeMemory]
mov ecx, dword [esp + 0x10]
test ecx, ecx
je 0x531ac6
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 0x532a80
Capabilities:
Enumerate pe sections

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x20
mov eax, dword [0x62f040]
xor eax, esp
mov dword [esp + 0x1c], eax
push esi
push edi
mov esi, ecx
call fcn.00531580
mov ecx, dword [esi + 2]
mov edx, eax
cmp ecx, dword [edx + 2]
jne 0x532b38
movzx eax, word [esi + 6]
cmp ax, word [edx + 6]
jne 0x532b38
cmp dword [esi + 8], 1
jne 0x532b38
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 0x532b38
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 0x532b25
nop
call fcn.004fc420
mov eax, edi
pop edi
pop esi
mov ecx, dword [esp + 0x1c]
xor ecx, esp
call fcn.0058078f
mov esp, ebp
pop ebp
ret
mov ecx, dword [esp + 0x24]
xor eax, eax
pop edi
pop esi
xor ecx, esp
call fcn.0058078f
mov esp, ebp
pop ebp
ret

Function at 0x533c60
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 0x533ccc
mov ecx, dword [ebp - 0x18]
mov eax, 0x5a4d
cmp word [ecx], ax
jne 0x533ccc
mov eax, dword [ecx + 0x3c]
add eax, ecx
cmp dword [eax], 0x4550
jne 0x533ccc
mov edx, dword [eax + 0xd8]
mov edi, dword [eax + 0xdc]
test edx, edx
je 0x533ccc
test edi, edi
je 0x533ccc
lea eax, [edx + ecx]
cmp esi, eax
jb 0x533ccc
lea eax, ds:[edi + edx]
add eax, ecx
cmp esi, eax
jae 0x533ccc
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