joyce8/EMBER2024-capa huggingface dataset:
Function at 0x522760
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 0x5227af
mov ecx, dword ds:[ebp + 8]
test ecx, ecx
je 0x5227d4
cmp dword [edx + 0x18], ecx
je 0x5227d4
mov edx, dword [edx]
cmp edx, eax
jne 0x5227a4
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 0x52280b
xor eax, eax
pop edi
pop esi
mov esp, ebp
pop ebp
ret 8
test edx, edx
je 0x5227af
movzx eax, word ds:[edx + 0x24]
mov ecx, eax
test ax, ax
jne 0x5227ee
call sym.SystemInformer.exe_PhReferenceEmptyString
mov esi, eax
jmp 0x5227b1
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 0x5227b1
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 0x522828
call fcn.004f9e40
mov esi, dword [ebp + 0xc]
test esi, esi
je 0x522846
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 0x522860
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 [0x62abb0], 0x3e
jb 0x5228f2
test esi, esi
jne 0x5228f2
test edi, edi
je 0x5228f2
mov eax, dword [edi]
test eax, eax
je 0x5228c4
mov edi, dword [edi + 4]
shr eax, 1
lea ebx, [edi + eax*2]
cmp edi, ebx
je 0x5228c4
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 0x5228a0
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 0x5228ee
lea ebx, [ebx]
cmp dword [eax + 0x90], esi
je 0x5228fc
mov eax, dword [eax]
cmp eax, ecx
jne 0x5228e0
xor eax, eax
jmp 0x5228fc
push edi
mov edx, esi
xor ecx, ecx
call fcn.00521ec0
lea esp, [esp]
test eax, eax
je 0x522909
mov esi, dword [eax + 0x18]
jmp 0x52290b
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 0x522940
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 0x522995
mov eax, dword [ecx + 0x3c]
test eax, eax
je 0x522995
jmp 0x522960
cmp eax, 0x7fffffff
jae 0x522995
cmp dword [eax + ecx], 0x4550
jne 0x522995
lea edx, [ecx + 0x78]
add edx, eax
mov eax, dword [edx]
test eax, eax
je 0x522995
cmp dword ds:[edx + 4], 0
je 0x522995
push dword [ebp + 8]
add eax, ecx
push esi
push eax
call fcn.00522ae0
pop esi
mov esp, ebp
pop ebp
ret 4
xor eax, eax
pop esi
mov esp, ebp
pop ebp
ret 4

Function at 0x5229a0
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.00522860
mov ecx, eax
test ecx, ecx
je 0x522a1e
mov eax, 0x5a4d
cmp word [ecx], ax
jne 0x522a1e
mov eax, dword ds:[ecx + 0x3c]
test eax, eax
je 0x522a1e
cmp eax, 0x7fffffff
jae 0x522a1e
cmp dword [eax + ecx], 0x4550
jne 0x522a1e
lea edx, ds:[eax + 0x78]
mov eax, dword [edx + ecx]
add edx, ecx
test eax, eax
je 0x522a1e
cmp dword [edx + 4], 0
je 0x522a1e
push dword [ebp + 8]
add eax, ecx
push edi
push eax
call fcn.00522ae0
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 0x5231c0
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 0x5231e6
mov eax, 0xc000012f
lfence
mov esp, ebp
pop ebp
ret 0xc
mov eax, dword [edx + 0x3c]
test eax, eax
je 0x52333c
cmp eax, 0x7fffffff
jae 0x52333c
cmp dword [eax + edx], 0x4550
jne 0x52333c
mov ecx, dword [eax + edx + 0x80]
test ecx, ecx
je 0x52332e
cmp dword [eax + edx + 0x84], 0
je 0x52332e
push ebx
lea ebx, [edx + 0xc]
add ebx, ecx
push edi
mov edi, 0xc0000001
mov dword [ebp - 4], edi
cmp dword [ebx], 0
je 0x5232e7
push esi
nop
mov ecx, dword [ebx - 0xc]
test ecx, ecx
je 0x5232e6
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.005868ba
add esp, 8
test eax, eax
jne 0x5232d1
mov eax, dword [edi]
test eax, eax
je 0x5232d1
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 0x5232c4
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 0x5232ba
lea esp, [esp]
test dl, dl
je 0x5232b6
mov dl, byte [ecx + 1]
cmp dl, byte [eax + 1]
jne 0x5232ba
add ecx, 2
add eax, 2
test dl, dl
jne 0x523296
xor eax, eax
jmp 0x5232bf
sbb eax, eax
or eax, 1
nop
test eax, eax
je 0x5232f1
mov eax, dword [edi + esi + 4]
add esi, 4
mov ecx, eax
test eax, eax
jne 0x523284
mov edi, dword [ebp - 4]
mov edx, dword ds:[ebp - 0x14]
add ebx, 0x14
cmp dword [ebx], 0
jne 0x523240
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 0x5232d4
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 0x5232d4
mov eax, 0xc0000020
lfence
mov esp, ebp
pop ebp
ret 0xc
mov eax, 0xc000007b
lfence
mov esp, ebp
pop ebp
ret 0xc
Function at 0x523360
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 0x5233cc
mov eax, 0x5a4d
movzx ecx, dx
cmp word [esi], ax
jne 0x5233f2
mov eax, dword [esi + 0x3c]
test eax, eax
je 0x5233f2
cmp eax, 0x7fffffff
jae 0x5233f2
cmp dword [eax + esi], 0x4550
jne 0x5233f2
lea edx, [esi + 0x78]
add edx, eax
mov eax, dword [edx]
test eax, eax
je 0x5233f2
cmp dword [edx + 4], 0
je 0x5233f2
push ecx
add eax, esi
mov ecx, esi
push 0
push eax
call fcn.00522ae0
test eax, eax
je 0x5233f2
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.00522e60
lea ecx, [ecx]
test eax, eax
je 0x5233f2
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 0x523c00
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 0x523d1b
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 0x523d1b
push 0x30
lea eax, [ebp - 0x48]
push 0
push eax
call fcn.0057e450
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 0x523c98
cmp dword [ebp - 0x38], 2
jne 0x523c93
test dword [ebp - 0x2c], 0x2002
jne 0x523cb2
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 0x523cfc
mov ecx, dword [ebp - 8]
call fcn.005239a0
mov ebx, eax
lea esp, [esp]
test ebx, ebx
js 0x523d09
mov edi, dword [ebp - 8]
jmp 0x523d17
push dword [ebp - 8]
push 0xffffffffffffffff
call dword [sym.imp.ntdll.dll_NtUnmapViewOfSection]
mov edi, dword [ebp - 0x18]
test ebx, ebx
jns 0x523d27
lfence
mov eax, ebx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov ebx, 0x5a4d
cmp word [edi], bx
je 0x523d3b
mov ebx, 0xc000012f
jmp 0x523dbd
mov eax, dword ds:[edi + 0x3c]
test eax, eax
je 0x523db8
cmp eax, 0x7fffffff
jae 0x523db8
add eax, edi
mov dword [ebp - 0xc], eax
cmp dword [eax], 0x4550
jne 0x523db8
mov esi, edi
mov edx, eax
mov ecx, esi
mov dword [ebp - 0x14], esi
call fcn.00523400
mov ebx, eax
test ebx, ebx
js 0x523dbd
lfence
mov edx, dword [ebp - 0xc]
push ecx
mov ecx, esi
call fcn.00523680
mov ebx, eax
test ebx, ebx
js 0x523dbd
mov eax, dword [ebp - 0xc]
mov eax, dword [eax + 0x28]
test eax, eax
jne 0x523d95
mov ebx, 0xc0000139
jmp 0x523dbd
mov edi, dword [ebp - 0x14]
xor ebx, ebx
push ebx
add esi, eax
push 1
push edi
mov ecx, esi
lfence
call dword [0x5a08ec]
call esi
test al, al
jne 0x523e08
mov ebx, 0xc0000142
jmp 0x523dbd
mov ebx, 0xc000007b
mov eax, 0x5a4d
cmp word [edi], ax
jne 0x523e08
lfence
mov eax, dword [edi + 0x3c]
test eax, eax
je 0x523e08
cmp eax, 0x7fffffff
jae 0x523e08
cmp dword ds:[eax + edi], 0x4550
jne 0x523e08
mov eax, dword [eax + edi + 0x28]
test eax, eax
je 0x523e08
push 0
lea esi, [eax + edi]
push 0
push edi
mov ecx, esi
lfence
call dword [0x5a08ec]
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 0x527660
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 [0x6310b8]
mov ebx, ecx
test edi, edi
je 0x527688
mov eax, dword [0x6310b4]
lea ecx, [ecx]
test eax, eax
jne 0x527745
call fcn.00527520
mov esi, eax
test esi, esi
je 0x5277ce
mov eax, 0x5a4d
cmp word [esi], ax
jne 0x5276e3
mov eax, dword [esi + 0x3c]
test eax, eax
je 0x5276e3
cmp eax, 0x7fffffff
jae 0x5276e3
cmp dword [eax + esi], 0x4550
jne 0x5276e3
lea edx, [eax + 0x78]
mov eax, dword [edx + esi]
add edx, esi
test eax, eax
je 0x5276e3
cmp dword [edx + 4], 0
je 0x5276e3
push 0
add eax, esi
mov ecx, esi
push str.PowerGetActiveScheme
push eax
call fcn.00522ae0
mov edi, eax
jmp 0x5276e5
xor edi, edi
mov edx, 0x5a4d
mov dword [0x6310b8], edi
mov eax, esi
mov ecx, 0x3c
cmp word [esi], dx
jne 0x52773e
mov eax, dword ds:[ecx + eax]
test eax, eax
je 0x52773e
cmp eax, 0x7fffffff
jae 0x52773e
cmp dword [eax + esi], 0x4550
jne 0x52773e
lea edx, [esi + 0x78]
add edx, eax
mov eax, dword [edx]
test eax, eax
je 0x52773e
cmp dword [edx + 4], 0
je 0x52773e
push 0
add eax, esi
mov ecx, esi
push str.PowerReadSecurityDescriptor
push eax
call fcn.00522ae0
mov edi, dword [0x6310b8]
jmp 0x527740
xor eax, eax
mov dword [0x6310b4], eax
test edi, edi
je 0x5277c2
test eax, eax
je 0x5277c2
lea eax, [esp + 0x14]
mov ecx, edi
push eax
push 0
call dword [0x5a08ec]
call edi
mov edi, edi
test eax, eax
je 0x527771
push eax
call sym.SystemInformer.exe_PhDosErrorToNtStatus
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov esi, dword [0x6310b4]
lea eax, [esp + 0x10]
push eax
push dword [esp + 0x18]
mov ecx, esi
push 0xe
call dword [0x5a08ec]
call esi
mov esi, eax
test esi, esi
jne 0x5277ab
test ebx, ebx
je 0x5277a1
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 0x5277e0
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push ecx
push ebx
push esi
push edi
mov edi, dword [0x6310b8]
mov ebx, ecx
test edi, edi
je 0x527808
mov eax, dword [0x6310c0]
jmp 0x527800
test eax, eax
jne 0x5278c5
call fcn.00527520
mov esi, eax
test esi, esi
je 0x527938
mov eax, 0x5a4d
cmp word [esi], ax
jne 0x527863
mov eax, dword [esi + 0x3c]
test eax, eax
je 0x527863
cmp eax, 0x7fffffff
jae 0x527863
cmp dword [eax + esi], 0x4550
jne 0x527863
lea edx, [eax + 0x78]
mov eax, dword [edx + esi]
add edx, esi
test eax, eax
je 0x527863
cmp dword [edx + 4], 0
je 0x527863
push 0
add eax, esi
mov ecx, esi
push str.PowerGetActiveScheme
push eax
call fcn.00522ae0
mov edi, eax
jmp 0x527865
xor edi, edi
mov edx, 0x5a4d
mov dword [0x6310b8], edi
mov eax, esi
mov ecx, 0x3c
cmp word [esi], dx
jne 0x5278be
mov eax, dword ds:[eax + ecx]
test eax, eax
je 0x5278be
cmp eax, 0x7fffffff
jae 0x5278be
cmp dword [eax + esi], 0x4550
jne 0x5278be
lea edx, [esi + 0x78]
add edx, eax
mov eax, dword [edx]
test eax, eax
je 0x5278be
cmp dword [edx + 4], 0
je 0x5278be
push 0
add eax, esi
mov ecx, esi
push str.PowerWriteSecurityDescriptor
push eax
call fcn.00522ae0
mov edi, dword [0x6310b8]
jmp 0x5278c0
xor eax, eax
mov dword [0x6310c0], eax
test edi, edi
je 0x52792c
test eax, eax
je 0x52792c
lea eax, [esp + 0xc]
mov ecx, edi
push eax
push 0
call dword [0x5a08ec]
call edi
mov edi, edi
test eax, eax
je 0x5278f1
push eax
call sym.SystemInformer.exe_PhDosErrorToNtStatus
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
test ebx, ebx
je 0x5278fa
mov eax, dword [ebx + 4]
jmp 0x5278fc
xor eax, eax
mov esi, dword [0x6310c0]
mov ecx, esi
push eax
push dword [esp + 0x10]
push 0xe
call dword [0x5a08ec]
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 0x529a20
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 0x529a61
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 0x52c300
Capabilities:
Get thread local storage value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
push esi
push edi
push dword [0x630ee4]
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 0x52c44f
mov ecx, dword [ebp + 8]
lea eax, [ecx*4]
mov dword [ebp - 4], eax
jmp 0x52c350
push dword [0x630ee4]
push eax
call sym.SystemInformer.exe_PhCreateObject
cmp dword [0x62abb0], 0xffffffff
mov edi, eax
mov eax, dword [0x632b1c]
jae 0x52c384
cmp eax, 0x40
jae 0x52c384
lfence
mov esi, dword fs:[0x18]
mov esi, dword [esi + eax*4 + 0xe10]
jmp 0x52c38d
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov esi, eax
test edi, edi
je 0x52c42e
mov eax, dword [esi]
cmp eax, 0x40
jae 0x52c3a7
mov dword [esi + eax*4 + 4], edi
inc dword [esi]
jmp 0x52c42e
mov ecx, dword [esi + 0x10c]
test ecx, ecx
jne 0x52c3d6
push 0x100
push 4
push dword [0x631034]
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 0x52c41f
add eax, eax
mov dword [esi + 0x108], eax
shl eax, 2
push eax
test ecx, ecx
jne 0x52c408
push 4
push dword [0x631034]
call dword [sym.imp.ntdll.dll_RtlAllocateHeap]
jmp 0x52c417
push ecx
push 4
push dword [0x631034]
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.0057e450
mov eax, dword [ebp - 4]
inc ebx
add esp, 0xc
cmp ebx, dword [ebp - 0x10]
jb 0x52c350
mov eax, dword [ebp - 8]
pop edi
mov dword [eax], esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x52dd60
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 0x52dd9c
mov eax, 0xc0000106
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x10
lea esp, [esp]
call fcn.0052da40
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 0x52dea4
mov edx, dword [ecx]
cmp edx, 7
je 0x52de9f
cmp edx, 8
je 0x52de9f
cmp dword [ebp + 0xc], 0
je 0x52de39
mov ebx, dword [ecx + 4]
movzx eax, byte [ebx + 1]
lea edi, [eax*4 + 8]
push edi
push 4
push dword [0x631034]
call dword [sym.imp.ntdll.dll_RtlAllocateHeap]
push edi
mov esi, eax
push ebx
push esi
call fcn.0057e5b0
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 0x52de92
mov eax, dword [ecx + 8]
test eax, eax
js 0x52de87
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 0x52de87
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 0x52de8c
call sym.SystemInformer.exe_PhReferenceEmptyString
mov ecx, dword [esp + 0x10]
mov dword [esi], eax
mov edx, dword [ebp + 0x14]
test edx, edx
je 0x52dea4
mov eax, dword [ecx]
mov dword [edx], eax
jmp 0x52dea4
mov ebx, 0xc0000073
mov eax, dword [esp + 0x14]
test eax, eax
je 0x52deb7
push eax
call dword [sym.imp.ADVAPI32.dll_LsaFreeMemory]
mov ecx, dword [esp + 0x10]
test ecx, ecx
je 0x52dec6
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 0x52ee80
Capabilities:
Enumerate pe sections

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x20
mov eax, dword [0x62a040]
xor eax, esp
mov dword [esp + 0x1c], eax
push esi
push edi
mov esi, ecx
call fcn.0052d980
mov ecx, dword [esi + 2]
mov edx, eax
cmp ecx, dword [edx + 2]
jne 0x52ef38
movzx eax, word [esi + 6]
cmp ax, word [edx + 6]
jne 0x52ef38
cmp dword [esi + 8], 1
jne 0x52ef38
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 0x52ef38
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 0x52ef25
nop
call fcn.004f9e40
mov eax, edi
pop edi
pop esi
mov ecx, dword [esp + 0x1c]
xor ecx, esp
call fcn.0057c26f
mov esp, ebp
pop ebp
ret
mov ecx, dword [esp + 0x24]
xor eax, eax
pop edi
pop esi
xor ecx, esp
call fcn.0057c26f
mov esp, ebp
pop ebp
ret

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