joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4c1980
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
push 0xfffffffffffffffe
push 0x5cebf0
push 0x56f180
mov eax, dword fs:[0]
push eax
sub esp, 0x30
mov eax, dword [0x5e173c]
xor dword [ebp - 8], eax
xor eax, ebp
mov dword [ebp - 0x1c], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0x10]
mov dword fs:[0], eax
mov eax, dword [ebp + 8]
mov dword [ebp - 0x38], eax
mov dword [ebp - 0x28], 0
xor esi, esi
mov dword [ebp - 0x3c], esi
mov dword [ebp - 0x2c], esi
xor ebx, ebx
mov dword [ebp - 0x34], ebx
mov dword [ebp - 0x24], ebx
mov word [ebp - 0x20], 0x100
mov eax, dword [ecx]
mov edi, dword [eax + 0x28]
mov dword [ebp - 0x40], edi
test edi, edi
jne 0x4c19e9
xor eax, eax
jmp 0x4c1b5f
mov dword [ebp - 4], ebx
push str.InitializeSecurityDescriptor
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x4c1b2a
push 1
push dword [ebp - 0x38]
call eax
test eax, eax
je 0x4c1b2a
push 0x5ba71c
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x4c1b2a
lea ecx, [ebp - 0x28]
push ecx
push 0
push 0
push 0
push 0
push 0
push 0
push 0
push 0
push 1
lea ecx, [ebp - 0x24]
push ecx
call eax
test eax, eax
je 0x4c1b2a
push str.GetLengthSid
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x4c1b2a
push dword [ebp - 0x28]
call eax
add eax, 0x10
mov dword [ebp - 0x30], eax
push eax
push 8
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov esi, eax
mov dword [ebp - 0x3c], esi
test esi, esi
je 0x4c1b2a
push str.InitializeAcl
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x4c1b2a
push 2
push dword [ebp - 0x30]
push esi
call eax
test eax, eax
je 0x4c1b2a
push str.AddAccessAllowedAce
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x4c1b2a
push dword [ebp - 0x28]
push 0x10000000
push 2
push esi
call eax
test eax, eax
je 0x4c1b2a
push str.SetSecurityDescriptorDacl
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [ebp - 0x30], eax
test eax, eax
je 0x4c1b2a
mov ecx, dword [ebp - 0x2c]
test ecx, ecx
je 0x4c1b13
push 0
push ecx
push 1
push dword [ebp - 0x38]
call eax
test eax, eax
je 0x4c1b00
mov ebx, 1
mov dword [ebp - 0x34], ebx
cmp dword [ebp - 0x2c], 0
je 0x4c1b10
jmp 0x4c1b2a
push dword [ebp - 0x2c]
call dword [sym.imp.KERNEL32.dll_LocalFree]
mov dword [ebp - 0x2c], 0
mov eax, dword [ebp - 0x30]
push 0
push esi
push 1
push dword [ebp - 0x38]
call eax
mov ecx, 1
test eax, eax
cmovne ebx, ecx
mov dword [ebp - 0x34], ebx
mov dword [ebp - 4], 0xfffffffe
call fcn.004c1b86
test ebx, ebx
jne 0x4c1b5d
test esi, esi
je 0x4c1b4f
push esi
push ebx
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
xor esi, esi
mov eax, dword [ebp - 0x2c]
test eax, eax
je 0x4c1b5d
push eax
call dword [sym.imp.KERNEL32.dll_LocalFree]
mov eax, esi
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x1c]
xor ecx, ebp
call fcn.00564de8
mov esp, ebp
pop ebp
ret 0xc
Function at 0x4c28a0
Capabilities:
Check os version

Disassembly:
sub esp, 0x10
push esi
push 0x11c
mov esi, ecx
push 0
push esi
call fcn.0056cbb0
add esp, 0xc
mov dword [esi], 0x11c
push esi
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
je 0x4c296d
mov eax, dword [esi + 4]
cmp eax, 6
ja 0x4c28db
jne 0x4c292e
cmp dword [esi + 8], 2
jb 0x4c292e
lea eax, [esp + 0x10]
mov dword [esp + 4], 0
push eax
lea eax, [esp + 0x10]
mov dword [esp + 0xc], 0
push eax
lea edx, [esp + 0x10]
mov dword [esp + 0x14], 0
lea ecx, [esp + 0xc]
mov dword [esp + 0x18], 0
call fcn.004c2d70
add esp, 8
test al, al
je 0x4c292e
mov eax, dword [esp + 4]
mov dword [esi + 4], eax
mov eax, dword [esp + 8]
mov dword [esi + 8], eax
mov eax, dword [esp + 0xc]
mov dword [esi + 0xc], eax
lea eax, [esp + 0xc]
mov dword [esp + 8], 0
push eax
lea edx, [esp + 0x14]
mov dword [esp + 0x14], 0
lea ecx, [esp + 0xc]
mov dword [esp + 0x10], 0
call fcn.004c2780
add esp, 4
test al, al
je 0x4c2966
mov eax, dword [esp + 0xc]
mov dword [esi + 0xc], eax
mov al, 1
pop esi
add esp, 0x10
ret
xor al, al
pop esi
add esp, 0x10
ret

Function at 0x4c2d70
Capabilities:
Extract resource via kernel32 functions

Disassembly:
sub esp, 0x28
mov eax, dword [0x5e173c]
xor eax, esp
mov dword [esp + 0x24], eax
mov eax, dword [esp + 0x30]
push ebx
push ebp
mov ebp, dword [esp + 0x34]
mov ebx, edx
push esi
push edi
push str.kernel32.dll
mov edi, ecx
mov dword [esp + 0x14], eax
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov esi, eax
test esi, esi
je 0x4c2e3a
push 0x10
push 1
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
test eax, eax
je 0x4c2e3a
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x4c2e3a
movdqu xmm0, xmmword [str.VS_VERSION_INFO]
push eax
movdqu xmmword [esp + 0x18], xmm0
movdqu xmm0, xmmword [0x5baafc]
movdqu xmmword [esp + 0x28], xmm0
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x4c2e3a
lea eax, [esp + 0x14]
push eax
lea ecx, [esi + 6]
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
jne 0x4c2e3a
cmp word [esi + 2], ax
jbe 0x4c2e3a
movzx eax, word [esi + 0x32]
mov ecx, dword [esp + 0x10]
mov dword [edi], eax
movzx eax, word [esi + 0x30]
mov dword [ebx], eax
movzx eax, word [esi + 0x36]
mov dword [ebp], eax
movzx eax, word [esi + 0x34]
pop edi
pop esi
pop ebp
mov dword [ecx], eax
mov al, 1
pop ebx
mov ecx, dword [esp + 0x24]
xor ecx, esp
call fcn.00564de8
add esp, 0x28
ret
mov ecx, dword [esp + 0x34]
xor al, al
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.00564de8
add esp, 0x28
ret
Function at 0x4db0b0
Capabilities:
Get session user name

Disassembly:
sub esp, 0x214
mov eax, dword [0x5e173c]
xor eax, esp
mov dword [esp + 0x210], eax
push esi
mov esi, ecx
mov dword [esi], 0
cmp dword [0x5e409c], 0
jne 0x4db143
xor eax, eax
push 0x208
push eax
mov word [esp + 0x10], ax
lea eax, [esp + 0x12]
push eax
call fcn.0056cbb0
add esp, 0xc
mov dword [esp + 4], 0x104
lea eax, [esp + 4]
push eax
lea eax, [esp + 0xc]
push eax
call dword [sym.imp.ADVAPI32.dll_GetUserNameW]
xor eax, eax
mov word [esp + 0x20e], ax
cmp word [esp + 8], ax
jne 0x4db11d
xor ecx, ecx
jmp 0x4db133
lea ecx, [esp + 8]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4db124
sub ecx, edx
sar ecx, 1
push ecx
lea eax, [esp + 0xc]
mov ecx, 0x5e408c
push eax
call fcn.00404a80
mov ecx, dword [esp + 0x214]
mov eax, esi
pop esi
xor ecx, esp
call fcn.00564de8
add esp, 0x214
ret

Function at 0x4db3a0
Capabilities:
Get session user name

Disassembly:
sub esp, 0x220
mov eax, dword [0x5e173c]
xor eax, esp
mov dword [esp + 0x21c], eax
mov eax, dword [0x7e186c]
push ebx
push esi
mov esi, ecx
push edi
test eax, eax
jle 0x4db3e2
inc eax
mov dword [0x7e186c], eax
mov al, 1
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x21c]
xor ecx, esp
call fcn.00564de8
add esp, 0x220
ret
lea eax, [esp + 0xc]
mov dword [esp + 0xc], 0
push eax
xor bl, bl
call fcn.004db170
test al, al
je 0x4db4ad
push str.advapi32.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov edi, eax
test edi, edi
je 0x4db4ad
push str.ImpersonateLoggedOnUser
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push dword [esp + 0xc]
call eax
test eax, eax
je 0x4db4a6
inc dword [0x7e186c]
mov eax, dword [esi]
test eax, eax
je 0x4db442
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [esi], 0
mov eax, dword [esp + 0xc]
mov bl, 1
mov dword [esi], eax
cmp dword [0x5e40b4], 0
mov dword [esp + 0xc], 0
jne 0x4db4a6
xor eax, eax
push 0x208
push eax
mov word [esp + 0x1c], ax
lea eax, [esp + 0x1e]
push eax
call fcn.0056cbb0
add esp, 0xc
mov dword [esp + 0x10], 0x104
lea eax, [esp + 0x10]
push eax
lea eax, [esp + 0x18]
push eax
call dword [sym.imp.ADVAPI32.dll_GetUserNameW]
xor eax, eax
mov ecx, 0x5e40a4
mov word [esp + 0x21a], ax
lea eax, [esp + 0x14]
push eax
call fcn.0040bc40
push edi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov ecx, dword [esp + 0xc]
test ecx, ecx
je 0x4db4bc
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [esp + 0x228]
mov al, bl
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.00564de8
add esp, 0x220
ret
Function at 0x5073b0
Capabilities:
Check os version

Disassembly:
push 0xffffffffffffffff
push 0x594f84
mov eax, dword fs:[0]
push eax
sub esp, 0x41c
mov eax, dword [0x5e173c]
xor eax, esp
mov dword [esp + 0x418], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x5e173c]
xor eax, esp
push eax
lea eax, [esp + 0x430]
mov dword fs:[0], eax
mov ebp, ecx
push 0xc
xor eax, eax
mov dword [esp + 0x2c], 0
mov dword [esp + 0x30], 0
lea ecx, [esp + 0x1c]
push str.Iphlpapi.dll
mov dword [esp + 0x34], 7
mov dword [esp + 0x30], 0
mov word [esp + 0x20], ax
call fcn.00404a80
mov dword [esp + 0x438], 0
mov eax, dword [0x7e23f4]
test al, 1
jne 0x50746c
or eax, 1
mov dword [0x7e23f4], eax
mov byte [esp + 0x438], 1
mov dword [0x7e23f0], 0
call fcn.004c1de0
push 0x59ffb0
call fcn.00565027
add esp, 4
mov byte [esp + 0x438], 0
lea eax, [esp + 0x18]
mov ecx, 0x7e23f0
push eax
call fcn.004c1fa0
mov edi, eax
mov dword [esp + 0x438], 0xffffffff
cmp dword [esp + 0x2c], 8
jb 0x50749b
push dword [esp + 0x18]
call fcn.00564de3
add esp, 4
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
xor eax, eax
push str.GetIfTable2
push edi
mov dword [esp + 0x34], 7
mov dword [esp + 0x30], 0
mov word [esp + 0x20], ax
call esi
push str.FreeMibTable
push edi
mov ebx, eax
call esi
mov edi, eax
mov dword [esp + 0x14], edi
test ebx, ebx
je 0x5075fb
test edi, edi
je 0x5075fb
lea eax, [esp + 0x30]
mov dword [esp + 0x30], 0
push eax
call ebx
mov esi, dword [esp + 0x30]
test eax, eax
jne 0x50758d
test esi, esi
je 0x507594
xor edi, edi
cmp dword [esi], edi
jbe 0x507589
xor ebx, ebx
nop
cmp dword [ebx + esi + 0x470], 0x83
je 0x50757e
test byte [ebx + esi + 0x488], 1
je 0x50757e
cmp dword [ebx + esi + 0x428], 6
jne 0x50757e
lea ecx, [esp + 0x34]
call fcn.0050fe90
mov dword [esp + 0x438], 2
lea eax, [esi + 0x42c]
add eax, ebx
lea ecx, [esp + 0x34]
push eax
call fcn.005102b0
lea eax, [esp + 0xac]
mov ecx, ebp
push eax
call fcn.0040be40
mov dword [esp + 0x438], 0xffffffff
lea ecx, [esp + 0x34]
call fcn.00510160
mov esi, dword [esp + 0x30]
inc edi
add ebx, 0x548
cmp edi, dword [esi]
jb 0x507510
mov edi, dword [esp + 0x14]
test esi, esi
je 0x507594
push esi
call edi
mov esi, dword [ebp]
mov ecx, dword [ebp + 4]
cmp esi, ecx
je 0x5075fb
mov edx, ecx
mov byte [esp + 0x14], 0
push dword [esp + 0x14]
sub edx, esi
mov eax, 0x2aaaaaab
imul edx
sar edx, 2
mov eax, edx
shr eax, 0x1f
add eax, edx
mov edx, ecx
push eax
mov ecx, esi
call fcn.0050b780
mov edx, dword [ebp + 4]
mov ecx, dword [ebp]
mov byte [esp + 0x1c], 0
push dword [esp + 0x1c]
call fcn.0050b8c0
mov edx, eax
add esp, 0xc
sub edx, dword [ebp]
mov eax, 0x2aaaaaab
imul edx
mov ecx, ebp
sar edx, 2
mov eax, edx
shr eax, 0x1f
add eax, edx
push eax
call fcn.0050a570
mov ecx, dword [esp + 0x430]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x418]
xor ecx, esp
call fcn.00564de8
add esp, 0x428
ret
Function at 0x50fe90
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push 0xffffffffffffffff
push 0x595ebf
mov eax, dword fs:[0]
push eax
push ecx
push esi
mov eax, dword [0x5e173c]
xor eax, esp
push eax
lea eax, [esp + 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [esp + 8], esi
xor eax, eax
mov dword [esi + 0x14], 7
mov dword [esi + 0x10], 0
mov word [esi], ax
mov dword [esp + 0x14], eax
mov dword [esi + 0x2c], 7
mov dword [esi + 0x28], eax
mov word [esi + 0x18], ax
mov byte [esp + 0x14], 1
mov dword [esi + 0x44], 7
mov dword [esi + 0x40], eax
mov word [esi + 0x30], ax
mov byte [esp + 0x14], 2
mov dword [esi + 0x5c], 7
mov dword [esi + 0x58], eax
mov word [esi + 0x48], ax
mov byte [esp + 0x14], 3
mov dword [esi + 0x74], 7
mov dword [esi + 0x70], eax
mov word [esi + 0x60], ax
mov byte [esp + 0x14], 4
mov dword [esi + 0x8c], 7
mov dword [esi + 0x88], eax
mov word [esi + 0x78], ax
mov byte [esp + 0x14], 5
push 0x35c
push eax
lea eax, [esi + 0x98]
push eax
call fcn.0056cbb0
add esp, 0xc
xor eax, eax
mov dword [esi + 0x90], eax
mov word [esi + 0x94], ax
mov dword [esp + 0x14], 0xffffffff
mov eax, esi
mov ecx, dword [esp + 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
add esp, 0x10
ret

Function at 0x5106a0
Capabilities:
Access peb ldr_data
Get process heap flags
Get process heap force flags

Disassembly:
push 0xffffffffffffffff
push 0x596077
mov eax, dword fs:[0]
push eax
sub esp, 8
push esi
push edi
mov eax, dword [0x5e173c]
xor eax, esp
push eax
lea eax, [esp + 0x14]
mov dword fs:[0], eax
mov edi, ecx
mov dword [esp + 0xc], edi
push 0x18
mov byte [edi], 0
call fcn.0056590a
add esp, 4
mov dword [edi + 4], eax
push eax
call dword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
mov dword [esp + 0x1c], 0
lea esi, [edi + 8]
push 0
push 0
mov dword [esp + 0x18], esi
mov dword [esi], 0
mov dword [esi + 4], 0
call fcn.00512440
mov dword [esi], eax
mov byte [esp + 0x1c], 3
lea esi, [edi + 0x10]
push 0
push 0
mov dword [esp + 0x18], esi
mov dword [esi], 0
mov dword [esi + 4], 0
call fcn.00512440
mov dword [esi], eax
mov byte [esp + 0x1c], 6
xor eax, eax
mov dword [edi + 0x18], 0
mov dword [edi + 0x1c], 0
mov dword [edi + 0x34], 7
mov dword [edi + 0x30], 0
mov word [edi + 0x20], ax
mov byte [esp + 0x1c], 7
lea ecx, [edi + 0x38]
call fcn.004c3c20
mov byte [esp + 0x1c], 8
lea eax, [edi + 0xb0]
xor ecx, ecx
mov dword [eax + 0x14], 7
mov dword [eax + 0x10], 0
mov dword [esp + 0x10], eax
mov word [eax], cx
mov byte [esp + 0x1c], 9
mov dword [eax + 0x18], ecx
mov dword [eax + 0x1c], ecx
mov dword [eax + 0x20], ecx
mov dword [eax + 0x24], ecx
mov dword [eax + 0x28], ecx
mov dword [eax + 0x2c], ecx
mov byte [eax + 0x30], cl
mov byte [esp + 0x1c], 0xa
xor eax, eax
mov dword [edi + 0xfc], 7
mov dword [edi + 0xf8], ecx
mov word [edi + 0xe8], ax
mov byte [esp + 0x1c], 0xb
mov dword [edi + 0x114], 0xf
mov dword [edi + 0x110], eax
mov byte [edi + 0x100], al
mov byte [esp + 0x1c], 0xc
mov dword [edi + 0x12c], 0xf
mov dword [edi + 0x128], eax
mov byte [edi + 0x118], al
mov dword [esp + 0x1c], 0xffffffff
mov eax, edi
mov ecx, dword [esp + 0x14]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
add esp, 0x14
ret
Function at 0x510ba0
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x5961b1
mov eax, dword fs:[0]
push eax
sub esp, 0x10
mov eax, dword [0x5e173c]
xor eax, esp
mov dword [esp + 0xc], eax
push ebx
push esi
push edi
mov eax, dword [0x5e173c]
xor eax, esp
push eax
lea eax, [esp + 0x20]
mov dword fs:[0], eax
mov ebx, ecx
mov dword [esp + 0x28], 0
lea esi, [ebx + 4]
mov edi, dword [esp + 0x30]
mov dword [esp + 0x10], 0
mov dword [esp + 0x14], edi
mov dword [esp + 0x18], esi
test esi, esi
je 0x510c03
mov eax, dword [esi]
test eax, eax
je 0x510c03
push eax
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov dword [esp + 0x28], 1
xor eax, eax
push 0xffffffffffffffff
mov dword [edi + 0x14], 7
mov ecx, edi
mov dword [edi + 0x10], 0
push eax
mov word [edi], ax
lea eax, [ebx + 0xe8]
push eax
call fcn.00404960
mov dword [esp + 0x10], 1
mov byte [esp + 0x28], 0
test esi, esi
je 0x510c55
mov eax, dword [esi]
test eax, eax
je 0x510c4d
push eax
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov dword [esp + 0x18], 0
mov eax, edi
mov ecx, dword [esp + 0x20]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0xc]
xor ecx, esp
call fcn.00564de8
add esp, 0x1c
ret 4
Function at 0x514ff0
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x596a48
mov eax, dword fs:[0]
push eax
sub esp, 0x14
mov eax, dword [0x5e173c]
xor eax, esp
mov dword [esp + 0x10], eax
push esi
push edi
mov eax, dword [0x5e173c]
xor eax, esp
push eax
lea eax, [esp + 0x20]
mov dword fs:[0], eax
mov edi, ecx
mov eax, dword [esp + 0x30]
lea esi, [edi + 0x58]
mov dword [esp + 0xc], 0x400
mov dword [esp + 0x10], eax
mov dword [esp + 0x14], 0
mov dword [esp + 0x18], esi
test esi, esi
je 0x515052
mov eax, dword [esi]
test eax, eax
je 0x515052
push eax
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov dword [esp + 0x28], 0
lea eax, [esp + 0xc]
push eax
lea ecx, [edi + 0x5c]
call fcn.005162b0
mov eax, dword [edi + 0x18]
test eax, eax
je 0x515075
push eax
call dword [sym.imp.KERNEL32.dll_SetEvent]
mov dword [esp + 0x28], 0xffffffff
test esi, esi
je 0x515096
mov eax, dword [esi]
test eax, eax
je 0x51508e
push eax
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov dword [esp + 0x18], 0
mov ecx, dword [esp + 0x20]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [esp + 0x10]
xor ecx, esp
call fcn.00564de8
add esp, 0x20
ret 4
Function at 0x518f80
Capabilities:
Get process heap force flags

Disassembly:
push 0xffffffffffffffff
push 0x597423
mov eax, dword fs:[0]
push eax
sub esp, 0xc
push esi
push edi
mov eax, dword [0x5e173c]
xor eax, esp
push eax
lea eax, [esp + 0x18]
mov dword fs:[0], eax
mov edi, ecx
mov dword [esp + 0xc], edi
mov dword [esp + 0x20], 8
cmp dword [edi + 0x8c], 8
jb 0x518fc7
push dword [edi + 0x78]
call fcn.00564de3
add esp, 4
mov dword [edi + 0x8c], 7
xor eax, eax
mov dword [edi + 0x88], 0
mov word [edi + 0x78], ax
mov byte [esp + 0x20], 7
lea esi, [edi + 0x40]
mov dword [esp + 0x10], esi
mov byte [esp + 0x20], 7
cmp dword [esi + 0x14], 8
jb 0x519002
push dword [esi]
call fcn.00564de3
add esp, 4
mov dword [esi + 0x14], 7
xor eax, eax
mov dword [esi + 0x10], 0
mov word [esi], ax
mov byte [esp + 0x20], 6
lea esi, [edi + 0x38]
mov dword [esp + 0x10], esi
mov byte [esp + 0x20], 0xb
mov ecx, esi
call fcn.0051d810
mov byte [esp + 0x20], 6
push dword [esi]
call fcn.00564de3
add esp, 4
mov byte [esp + 0x20], 5
lea esi, [edi + 0x30]
mov dword [esp + 0x10], esi
mov byte [esp + 0x20], 0xd
mov ecx, esi
call fcn.0051d810
mov byte [esp + 0x20], 5
push dword [esi]
call fcn.00564de3
add esp, 4
mov byte [esp + 0x20], 4
lea esi, [edi + 0x28]
mov dword [esp + 0x10], esi
mov byte [esp + 0x20], 0xf
mov ecx, esi
call fcn.0051d6e0
mov byte [esp + 0x20], 4
push dword [esi]
call fcn.00564de3
add esp, 4
mov byte [esp + 0x20], 3
lea esi, [edi + 0x20]
mov dword [esp + 0x10], esi
mov byte [esp + 0x20], 0x12
mov ecx, esi
mov eax, dword [esi]
push eax
push dword [eax]
lea eax, [esp + 0x1c]
push eax
call fcn.0051db00
mov byte [esp + 0x20], 3
push dword [esi]
call fcn.00564de3
add esp, 4
mov byte [esp + 0x20], 2
lea esi, [edi + 0x18]
mov dword [esp + 0x14], esi
mov byte [esp + 0x20], 0x16
mov ecx, esi
mov eax, dword [esi]
push eax
push dword [eax]
lea eax, [esp + 0x18]
push eax
call fcn.0051da40
mov byte [esp + 0x20], 2
push dword [esi]
call fcn.00564de3
add esp, 4
mov byte [esp + 0x20], 1
lea esi, [edi + 0x10]
mov dword [esp + 0x14], esi
mov byte [esp + 0x20], 0x19
mov ecx, esi
call fcn.0051d570
mov byte [esp + 0x20], 1
push dword [esi]
call fcn.00564de3
add esp, 4
mov byte [esp + 0x20], 0
lea esi, [edi + 8]
mov dword [esp + 0x14], esi
mov byte [esp + 0x20], 0x1c
mov ecx, esi
mov eax, dword [esi]
push eax
push dword [eax]
lea eax, [esp + 0x18]
push eax
call fcn.0051da40
mov byte [esp + 0x20], 0
push dword [esi]
call fcn.00564de3
add esp, 4
mov dword [esp + 0x20], 0xffffffff
mov dword [esp + 0x14], edi
mov dword [esp + 0x20], 0x1f
mov ecx, edi
call fcn.005123d0
mov dword [esp + 0x20], 0xffffffff
push dword [edi]
call fcn.00564de3
add esp, 4
mov ecx, dword [esp + 0x18]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
add esp, 0x18
ret
Function at 0x54c020
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push 0xffffffffffffffff
push 0x59df04
mov eax, dword fs:[0]
push eax
sub esp, 0x70
mov eax, dword [0x5e173c]
xor eax, esp
mov dword [esp + 0x68], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x5e173c]
xor eax, esp
push eax
lea eax, [esp + 0x84]
mov dword fs:[0], eax
mov dword [esp + 0x8c], 0
xor eax, eax
mov ebp, dword [esp + 0x94]
lea ecx, [esp + 0x4c]
mov dword [esp + 0x14], 0
push 0x20
mov dword [esp + 0x60], 0
mov dword [esp + 0x64], 0
push str._systemroot_SysWOW64mshtml.dll
mov dword [esp + 0x20], ebp
mov dword [esp + 0x68], 7
mov dword [esp + 0x64], 0
mov word [esp + 0x54], ax
call fcn.00404a80
mov dword [esp + 0x8c], 1
xor eax, eax
push 0x20
mov dword [esp + 0x78], 0
lea ecx, [esp + 0x68]
mov dword [esp + 0x7c], 0
push str._systemroot_System32mshtml.dll
mov dword [esp + 0x80], 7
mov dword [esp + 0x7c], 0
mov word [esp + 0x6c], ax
call fcn.00404a80
mov dword [esp + 0x8c], 2
xor eax, eax
mov dword [esp + 0x44], 0
mov dword [esp + 0x48], 0
mov dword [esp + 0x48], 7
mov dword [esp + 0x44], 0
mov word [esp + 0x34], ax
mov byte [esp + 0x8c], 3
xor edi, edi
lea esi, [esp + 0x4c]
nop
push esi
lea eax, [esp + 0x20]
push eax
call fcn.0054bc00
mov ebx, eax
mov byte [esp + 0x8c], 4
cmp esi, ebx
je 0x54c174
cmp dword [esi + 0x14], 8
jb 0x54c159
push dword [esi]
call fcn.00564de3
add esp, 4
xor eax, eax
mov dword [esi + 0x14], 7
mov dword [esi + 0x10], 0
mov ecx, esi
push ebx
mov word [esi], ax
call fcn.00404150
mov byte [esp + 0x8c], 3
cmp dword [esp + 0x30], 8
jb 0x54c18f
push dword [esp + 0x1c]
call fcn.00564de3
add esp, 4
xor eax, eax
mov dword [esp + 0x30], 7
mov ecx, esi
mov dword [esp + 0x2c], 0
mov word [esp + 0x1c], ax
call fcn.004b2f30
test al, al
jne 0x54c1c0
inc edi
add esi, 0x18
cmp edi, 2
jb 0x54c130
jmp 0x54c1dc
lea ecx, [esp + 0x4c]
lea eax, [edi + edi*2]
lea eax, [ecx + eax*8]
lea ecx, [esp + 0x34]
cmp ecx, eax
je 0x54c1dc
push 0xffffffffffffffff
push 0
push eax
call fcn.00404960
cmp dword [esp + 0x44], 0
jne 0x54c1f3
push 0xa
push str.mshtml.dll
lea ecx, [esp + 0x3c]
call fcn.00404a80
lea edx, [esp + 0x34]
mov ecx, ebp
call fcn.004b8b90
mov dword [esp + 0x14], 1
mov byte [esp + 0x8c], 2
cmp dword [esp + 0x48], 8
jb 0x54c221
push dword [esp + 0x34]
call fcn.00564de3
add esp, 4
xor eax, eax
mov dword [esp + 0x48], 7
mov dword [esp + 0x44], 0
mov word [esp + 0x34], ax
mov byte [esp + 0x8c], al
lea eax, [esp + 0x4c]
push fcn.00403b40
push 2
push 0x18
push eax
call fcn.00564e2f
mov eax, ebp
mov ecx, dword [esp + 0x84]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x68]
xor ecx, esp
call fcn.00564de8
add esp, 0x7c
ret 4