joyce8/EMBER2024-capa huggingface dataset:
Function at 0x44ac30
Capabilities:
Access peb ldr_data
Get kernel32 base address

Disassembly:
push 0xffffffffffffffff
push 0x48bb68
mov eax, dword fs:[0]
push eax
push esi
mov eax, dword [0x4bb028]
xor eax, esp
push eax
lea eax, [esp + 8]
mov dword fs:[0], eax
mov esi, dword [esp + 0x18]
mov eax, dword [edi]
mov dword [esi], eax
mov ecx, dword [edi + 4]
mov dword [esi + 4], ecx
mov edx, dword [edi + 8]
mov dword [esi + 8], edx
mov eax, dword [edi + 0xc]
mov dword [esi + 0xc], eax
mov ecx, dword [edi + 0x10]
mov dword [esi + 0x10], ecx
mov edx, dword [edi + 0x14]
mov dword [esi + 0x14], edx
mov eax, dword [edi + 0x18]
mov dword [esi + 0x18], eax
mov ecx, dword [edi + 0x1c]
mov dword [esi + 0x1c], ecx
mov edx, dword [edi + 0x20]
mov dword [esi + 0x20], edx
mov eax, dword [edi + 0x24]
mov dword [esi + 0x24], eax
mov ecx, dword [edi + 0x28]
mov dword [esi + 0x28], ecx
mov edx, dword [edi + 0x2c]
mov dword [esi + 0x2c], edx
mov eax, dword [edi + 0x30]
mov dword [esi + 0x30], eax
mov ecx, dword [edi + 0x34]
mov dword [esi + 0x34], ecx
mov edx, dword [edi + 0x38]
lea eax, [edi + 0x3c]
push eax
lea ecx, [esi + 0x3c]
mov dword [esi + 0x38], edx
call dword [sym.imp.mfc90u.dll_ATL::CStringT_wchar_t_class_StrTraitMFC_DLL_wchar_t_class_ATL::ChTraitsCRT_wchar_t_____::CStringT_wchar_t_class]
lea ecx, [edi + 0x40]
push ecx
lea ecx, [esi + 0x40]
mov dword [esp + 0x14], 0
call dword [sym.imp.mfc90u.dll_ATL::CStringT_wchar_t_class_StrTraitMFC_DLL_wchar_t_class_ATL::ChTraitsCRT_wchar_t_____::CStringT_wchar_t_class]
lea edx, [edi + 0x44]
push edx
lea ecx, [esi + 0x44]
mov byte [esp + 0x14], 1
call dword [sym.imp.mfc90u.dll_ATL::CStringT_wchar_t_class_StrTraitMFC_DLL_wchar_t_class_ATL::ChTraitsCRT_wchar_t_____::CStringT_wchar_t_class]
mov eax, dword [edi + 0x48]
mov dword [esi + 0x48], eax
mov ecx, dword [edi + 0x50]
mov dword [esi + 0x50], ecx
mov edx, dword [edi + 0x54]
mov dword [esi + 0x54], edx
mov eax, esi
mov ecx, dword [esp + 8]
mov dword fs:[0], ecx
pop ecx
pop esi
add esp, 0xc
ret 4
Function at 0x454f70
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x48ba39
mov eax, dword fs:[0]
push eax
sub esp, 0x28
mov eax, dword [0x4bb028]
xor eax, esp
mov dword [esp + 0x24], eax
push edi
mov eax, dword [0x4bb028]
xor eax, esp
push eax
lea eax, [esp + 0x30]
mov dword fs:[0], eax
mov edi, ecx
lea ecx, [esp + 0x10]
call dword [sym.imp.MSVCP90.dll_public:_void___thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::constructor_void_]
push edi
push 0
lea ecx, [esp + 0x18]
mov dword [esp + 0x40], 0
call dword [sym.imp.MSVCP90.dll_public:_class_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t______thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::insert_unsigned_int__wchar_t_const__]
push 0
push 0x4a3aa8
lea ecx, [esp + 0x18]
call dword [sym.imp.MSVCP90.dll_public:_unsigned_int___thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::find_first_not_of_wchar_t_const___unsigned_int_const]
push eax
push 0
lea ecx, [esp + 0x18]
call dword [sym.imp.MSVCP90.dll_public:_class_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t______thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::erase_unsigned_int__unsigned_int_]
cmp dword [esp + 0x28], 8
mov eax, dword [esp + 0x14]
mov dword [esp + 0xc], 0
jae 0x454ff5
lea eax, [esp + 0x14]
lea ecx, [esp + 0xc]
push ecx
lea edx, [esp + 0xc]
push edx
push 0
push 0xf003f
push 0
push 0
push 0
push eax
push ebx
call dword [sym.imp.Config.dll_Ordinal_20]
add esp, 0x24
mov edi, eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esi], eax
test edi, edi
jne 0x455067
mov eax, dword [esi + 0x20]
test eax, eax
je 0x455039
push eax
call dword [sym.imp.Config.dll_Ordinal_1_4]
add esp, 4
mov dword [esi + 0x20], edi
mov eax, dword [esp + 8]
lea ecx, [esp + 0x10]
push ecx
lea ecx, [esi + 4]
mov dword [esi + 0x20], eax
call dword [sym.imp.MSVCP90.dll_public:_class_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t______thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::operator_class_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t___const__]
lea ecx, [esp + 0x10]
mov dword [esp + 0x38], 0xffffffff
call dword [sym.imp.MSVCP90.dll_public:_void___thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::destructor_void_]
mov eax, 1
jmp 0x45507b
lea ecx, [esp + 0x10]
mov dword [esp + 0x38], 0xffffffff
call dword [sym.imp.MSVCP90.dll_public:_void___thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::destructor_void_]
xor eax, eax
mov ecx, dword [esp + 0x30]
mov dword fs:[0], ecx
pop ecx
pop edi
mov ecx, dword [esp + 0x24]
xor ecx, esp
call fcn.0048a3f6
add esp, 0x34
ret
Function at 0x455f50
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x48e1b8
mov eax, dword fs:[0]
push eax
sub esp, 0x28
push edi
mov eax, dword [0x4bb028]
xor eax, esp
push eax
lea eax, [esp + 0x30]
mov dword fs:[0], eax
mov edi, ecx
mov dword [esp + 0xc], 0
mov dword [esp + 8], vtable.CBitmap.0
lea eax, [esp + 0x10]
mov dword [esp + 0x38], 0
mov ecx, dword [esi + 0x20]
push eax
push ecx
call dword [sym.imp.USER32.dll_GetClientRect]
mov eax, dword [esi + 0x20]
lea edx, [esp + 0x20]
push edx
push eax
call dword [sym.imp.USER32.dll_GetWindowRect]
mov edx, dword [esi + 0x20]
lea ecx, [esp + 0x20]
push ecx
push edx
call dword [sym.imp.USER32.dll_GetParent]
push eax
call sub.mfc90u.dll_CWnd::FromHandle
mov ecx, eax
call sub.mfc90u.dll_CWnd::ScreenToClient
cmp dword [esi + 0x78], 0
je 0x455fd6
lea ecx, [esi + 0x74]
call sub.mfc90u.dll_CDC::DeleteDC
test edi, edi
jne 0x455fde
xor eax, eax
jmp 0x455fe1
mov eax, dword [edi + 4]
push eax
call dword [sym.imp.GDI32.dll_CreateCompatibleDC]
push eax
lea ecx, [esi + 0x74]
call sub.mfc90u.dll_CDC::Attach
mov eax, dword [esp + 0x1c]
sub eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x18]
sub ecx, dword [esp + 0x10]
push eax
mov eax, dword [edi + 4]
push ecx
push eax
call dword [sym.imp.GDI32.dll_CreateCompatibleBitmap]
push eax
lea ecx, [esp + 0xc]
call sub.mfc90u.dll_CGdiObject::Attach
mov ecx, dword [esp + 0xc]
mov edx, dword [esi + 0x78]
push ecx
push edx
call sub.mfc90u.dll_CDC::SelectGdiObject
mov edx, dword [esp + 0x24]
mov eax, dword [esp + 0x1c]
sub eax, dword [esp + 0x14]
mov edi, dword [edi + 4]
mov ecx, dword [esp + 0x18]
sub ecx, dword [esp + 0x10]
push 0xcc0020
push edx
mov edx, dword [esp + 0x28]
push edx
push edi
push eax
mov eax, dword [esi + 0x78]
push ecx
push 0
push 0
push eax
call dword [sym.imp.GDI32.dll_BitBlt]
lea ecx, [esp + 8]
call sub.mfc90u.dll_CGdiObject::DeleteObject
mov ecx, dword [esi + 0x20]
push 1
push 0
push ecx
call dword [sym.imp.USER32.dll_InvalidateRect]
mov dword [esp + 0x38], 0xffffffff
lea ecx, [esp + 8]
mov dword [esp + 8], vtable.CBitmap.0
call fcn.004066b0
mov ecx, dword [esp + 0x30]
mov dword fs:[0], ecx
pop ecx
pop edi
add esp, 0x34
ret
Function at 0x4568f0
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push 0xffffffffffffffff
push 0x48b9fc
mov eax, dword fs:[0]
push eax
sub esp, 0x228
mov eax, dword [0x4bb028]
xor eax, esp
mov dword [esp + 0x224], eax
push esi
mov eax, dword [0x4bb028]
xor eax, esp
push eax
lea eax, [esp + 0x230]
mov dword fs:[0], eax
xor eax, eax
push 0x206
mov esi, ecx
push eax
lea ecx, [esp + 0x2e]
push ecx
mov word [esp + 0x30], ax
call sub.MSVCR90.dll_memset
add esp, 0xc
push 0x104
lea edx, [esp + 0x28]
push edx
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
lea eax, [esp + 0x24]
add esi, 0xc
push eax
mov ecx, esi
call dword [sym.imp.MSVCP90.dll_public:_class_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t______thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::operator_wchar_t_const__]
mov ecx, dword [sym.imp.MSVCP90.dll_unsigned_int_const_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::npos]
mov edx, dword [ecx]
push edx
push 0x4984d4
mov ecx, esi
call dword [sym.imp.MSVCP90.dll_public:_unsigned_int___thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::rfind_wchar_t_const___unsigned_int_const]
inc eax
push eax
push 0
lea eax, [esp + 0x10]
push eax
mov ecx, esi
call dword [sym.imp.MSVCP90.dll_public:_class_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t_____thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::substr_unsigned_int__unsigned_int_]
push eax
mov ecx, esi
mov dword [esp + 0x23c], 0
call dword [sym.imp.MSVCP90.dll_public:_class_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t______thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::operator_class_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t___const__]
lea ecx, [esp + 8]
mov dword [esp + 0x238], 0xffffffff
call dword [sym.imp.MSVCP90.dll_public:_void___thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::destructor_void_]
cmp dword [esi + 0x18], 8
jb 0x4569c1
mov eax, dword [esi + 4]
jmp 0x4569c4
lea eax, [esi + 4]
mov ecx, dword [esp + 0x230]
mov dword fs:[0], ecx
pop ecx
pop esi
mov ecx, dword [esp + 0x224]
xor ecx, esp
call fcn.0048a3f6
add esp, 0x234
ret
Function at 0x457c50
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x4958b9
mov eax, dword fs:[0]
push eax
sub esp, 0x24
mov eax, dword [0x4bb028]
xor eax, esp
mov dword [esp + 0x20], eax
mov eax, dword [0x4bb028]
xor eax, esp
push eax
lea eax, [esp + 0x28]
mov dword fs:[0], eax
lea ecx, [esp + 8]
call dword [sym.imp.MSVCP90.dll_public:_void___thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::constructor_void_]
mov ecx, esi
mov dword [esp + 0x30], 0
call fcn.004568f0
push eax
lea ecx, [esp + 0xc]
call dword [sym.imp.MSVCP90.dll_public:_class_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t______thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::operator_wchar_t_const__]
push str.skinsdefault_skin.ini
lea ecx, [esp + 0xc]
call dword [0x497354]
cmp dword [esp + 0x20], 8
mov edx, dword [esp + 0xc]
jae 0x457cc0
lea edx, [esp + 0xc]
push edi
mov ecx, esi
call fcn.00456af0
test eax, eax
jne 0x457ce2
lea ecx, [esp + 8]
mov dword [esp + 0x30], 0xffffffff
call dword [sym.imp.MSVCP90.dll_public:_void___thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::destructor_void_]
xor eax, eax
jmp 0x457d00
mov ecx, esi
call fcn.00457b20
lea ecx, [esp + 8]
mov dword [esp + 0x30], 0xffffffff
call dword [sym.imp.MSVCP90.dll_public:_void___thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::destructor_void_]
mov eax, 1
mov ecx, dword [esp + 0x28]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [esp + 0x20]
xor ecx, esp
call fcn.0048a3f6
add esp, 0x30
ret
Function at 0x458390
Capabilities:
Check if file exists

Disassembly:
push ecx
mov eax, dword [edi + 4]
cmp dword [eax - 0xc], 0
push esi
lea esi, [edi + 4]
mov dword [esp + 4], 0
je 0x4583b1
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x4583c8
mov ecx, edi
call fcn.004568f0
push eax
push str._sskinsdefaultimages_
push esi
call dword [sym.imp.mfc90u.dll_ATL::CStringT_wchar_t_class_StrTraitMFC_DLL_wchar_t_class_ATL::ChTraitsCRT_wchar_t_____::Format]
add esp, 0xc
push esi
mov ecx, ebx
call dword [sym.imp.mfc90u.dll_ATL::CStringT_wchar_t_class_StrTraitMFC_DLL_wchar_t_class_ATL::ChTraitsCRT_wchar_t_____::CStringT_wchar_t_class]
mov eax, ebx
pop esi
pop ecx
ret

Function at 0x4583e0
Capabilities:
Check if file exists

Disassembly:
push ecx
mov eax, dword [edi + 8]
cmp dword [eax - 0xc], 0
push esi
lea esi, [edi + 8]
mov dword [esp + 4], 0
je 0x458401
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x458418
mov ecx, edi
call fcn.004568f0
push eax
push str._sskinsdefault_backimages_
push esi
call dword [sym.imp.mfc90u.dll_ATL::CStringT_wchar_t_class_StrTraitMFC_DLL_wchar_t_class_ATL::ChTraitsCRT_wchar_t_____::Format]
add esp, 0xc
push esi
mov ecx, ebx
call dword [sym.imp.mfc90u.dll_ATL::CStringT_wchar_t_class_StrTraitMFC_DLL_wchar_t_class_ATL::ChTraitsCRT_wchar_t_____::CStringT_wchar_t_class]
mov eax, ebx
pop esi
pop ecx
ret
Function at 0x45a9d0
Capabilities:
Check os version
Get common file path

Disassembly:
push 0xffffffffffffffff
push 0x48c6ec
mov eax, dword fs:[0]
push eax
sub esp, 0x344
mov eax, dword [0x4bb028]
xor eax, esp
mov dword [esp + 0x340], eax
push ebx
push esi
push edi
mov eax, dword [0x4bb028]
xor eax, esp
push eax
lea eax, [esp + 0x354]
mov dword fs:[0], eax
mov esi, ecx
lea ecx, [esp + 0x10]
mov ebx, edx
call dword [sym.imp.MSVCP90.dll_public:_void___thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::constructor_void_]
lea eax, [esp + 0x2c]
mov dword [esp + 0x35c], 0
push eax
mov dword [esp + 0x30], 0x11c
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
je 0x45aaa5
cmp dword [esp + 0x30], 5
ja 0x45aa78
test esi, esi
je 0x45aa48
mov esi, dword [esi + 0x20]
push 0
push 0x36
lea ecx, [esp + 0x150]
push ecx
push esi
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
test eax, eax
je 0x45aaa5
lea edx, [esp + 0x148]
push edx
push str._sSample_Pictures
push ebx
call dword [sym.imp.mfc90u.dll_ATL::CStringT_wchar_t_class_StrTraitMFC_DLL_wchar_t_class_ATL::ChTraitsCRT_wchar_t_____::Format]
add esp, 0xc
jmp 0x45aaa5
lea edi, [esp + 0x10]
mov edx, str._PUBLIC_PicturesSample_Pictures
call fcn.0045b720
cmp dword [esp + 0x24], 0
je 0x45aaa5
cmp dword [esp + 0x28], 8
mov eax, dword [esp + 0x14]
jae 0x45aa9c
lea eax, [esp + 0x14]
push eax
mov ecx, ebx
call dword [sym.imp.mfc90u.dll_ATL::CStringT_wchar_t_class_StrTraitMFC_DLL_wchar_t_class_ATL::ChTraitsCRT_wchar_t_____::operator_3]
mov ebx, dword [ebx]
lea ecx, [esp + 0x10]
mov dword [esp + 0x35c], 0xffffffff
call dword [sym.imp.MSVCP90.dll_public:_void___thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::destructor_void_]
mov eax, ebx
mov ecx, dword [esp + 0x354]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x340]
xor ecx, esp
call fcn.0048a3f6
add esp, 0x350
ret
Function at 0x45ad70
Capabilities:
Check if file exists

Disassembly:
push 0xffffffffffffffff
push 0x48dff9
mov eax, dword fs:[0]
push eax
sub esp, 8
push ebx
push ebp
push esi
mov eax, dword [0x4bb028]
xor eax, esp
push eax
lea eax, [esp + 0x18]
mov dword fs:[0], eax
mov esi, ecx
lea ecx, [esp + 0x10]
call dword [0x497e20]
mov dword [esp + 0x20], 0
test esi, esi
je 0x45ae7e
mov eax, esi
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x45adb7
sub eax, edx
sar eax, 1
je 0x45ae7e
mov ebp, dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
push esi
call ebp
test eax, eax
je 0x45ae07
push 1
push ecx
mov ecx, esp
mov dword [esp + 0x1c], esp
push esi
call dword [0x497c80]
mov esi, dword [esp + 0x30]
lea ebx, [esi + 0x210]
call fcn.0047f390
push 0xffffffffffffffff
lea ebx, [esi + 0x178]
call fcn.0047da60
jmp 0x45ae7e
push esi
lea ecx, [esp + 0x14]
call dword [sym.imp.mfc90u.dll_ATL::CStringT_wchar_t_class_StrTraitMFC_DLL_wchar_t_class_ATL::ChTraitsCRT_wchar_t_____::operator_3]
push 0
push 0x23
lea ecx, [esp + 0x18]
call dword [sym.imp.mfc90u.dll_ATL::CStringT_wchar_t_class_StrTraitMFC_DLL_wchar_t_class_ATL::ChTraitsCRT_wchar_t_____::Replace]
mov eax, dword [esp + 0x10]
push eax
call dword [sym.imp.MSVCR90.dll__wtol]
mov esi, dword [esp + 0x2c]
add esp, 4
push eax
lea ebx, [esi + 0x178]
call fcn.0047da60
test edi, edi
je 0x45ae7e
mov eax, edi
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x45ae47
sub eax, edx
sar eax, 1
je 0x45ae7e
push edi
call ebp
test eax, eax
je 0x45ae7e
push 1
push ecx
mov ecx, esp
mov dword [esp + 0x30], esp
push 0x4987c8
call dword [0x497c80]
lea ebx, [esi + 0x210]
call fcn.0047f390
lea ecx, [esp + 0x10]
call dword [sym.imp.mfc90u.dll_ATL::CStringT_wchar_t_class_StrTraitMFC_DLL_wchar_t_class_ATL::ChTraitsCRT_wchar_t_____::CStringT_wchar_t_clas]
mov ecx, dword [esp + 0x18]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebp
pop ebx
add esp, 0x14
ret 4

Function at 0x45af90
Capabilities:
Create process on windows

Disassembly:
sub esp, 0x3c
push 0x3c
lea eax, [esp + 4]
push 0
push eax
call sub.MSVCR90.dll_memset
mov ecx, dword [esp + 0x4c]
mov edx, dword [esp + 0x50]
add esp, 0xc
lea eax, [esp]
push eax
mov dword [esp + 4], 0x3c
mov dword [esp + 8], 0
mov dword [esp + 0xc], 0
mov dword [esp + 0x10], 0x4a4488
mov dword [esp + 0x14], ecx
mov dword [esp + 0x18], edx
mov dword [esp + 0x1c], 0
mov dword [esp + 0x20], 1
call dword [sym.imp.SHELL32.dll_ShellExecuteExW]
add esp, 0x3c
ret
Function at 0x45b000
Capabilities:
Get token membership

Disassembly:
sub esp, 0x14
mov eax, dword [0x4bb028]
xor eax, esp
mov dword [esp + 0x10], eax
push ebx
xor ebx, ebx
lea eax, [esp + 8]
push eax
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push 0x220
push 0x20
push 2
lea ecx, [esp + 0x34]
push ecx
mov byte [esp + 0x38], bl
mov byte [esp + 0x39], bl
mov byte [esp + 0x3a], bl
mov byte [esp + 0x3b], bl
mov byte [esp + 0x3c], bl
mov byte [esp + 0x3d], 5
call dword [sym.imp.ADVAPI32.dll_AllocateAndInitializeSid]
mov dword [esp + 4], eax
cmp eax, ebx
je 0x45b071
mov eax, dword [esp + 8]
lea edx, [esp + 4]
push edx
push eax
push ebx
call dword [sym.imp.ADVAPI32.dll_CheckTokenMembership]
mov ecx, dword [esp + 8]
push ecx
call dword [sym.imp.ADVAPI32.dll_FreeSid]
mov eax, dword [esp + 4]
mov ecx, dword [esp + 0x14]
xor edx, edx
cmp eax, 1
sete dl
pop ebx
xor ecx, esp
mov eax, edx
call fcn.0048a3f6
add esp, 0x14
ret

Function at 0x45b090
Capabilities:
Check os version
Query or enumerate registry value

Disassembly:
sub esp, 0x128
mov eax, dword [0x4bb028]
xor eax, esp
mov dword [esp + 0x124], eax
push edi
push 0x110
xor edi, edi
lea eax, [esp + 0x1c]
push edi
push eax
call sub.MSVCR90.dll_memset
add esp, 0xc
lea ecx, [esp + 0x14]
push ecx
mov dword [esp + 0x18], 0x114
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
je 0x45b166
cmp dword [esp + 0x18], 5
jbe 0x45b166
lea edx, [esp + 4]
push edx
push 0x20019
push edi
mov eax, 4
push str.SOFTWAREMicrosoftWindowsCurrentVersionPoliciesSystem_
push reloc.OLEAUT32.dll_SysReAllocString
mov dword [esp + 0x18], edi
mov dword [esp + 0x24], eax
mov dword [esp + 0x1c], edi
mov dword [esp + 0x20], eax
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x45b166
push esi
lea eax, [esp + 0x10]
push eax
mov eax, dword [esp + 0xc]
lea ecx, [esp + 0x10]
push ecx
lea edx, [esp + 0x1c]
push edx
push edi
push str.EnableLUA
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov ecx, dword [esp + 8]
push ecx
mov esi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp esi, edi
pop esi
jne 0x45b166
xor eax, eax
cmp dword [esp + 8], edi
pop edi
setne al
mov ecx, dword [esp + 0x124]
xor ecx, esp
call fcn.0048a3f6
add esp, 0x128
ret
mov ecx, dword [esp + 0x128]
mov eax, edi
pop edi
xor ecx, esp
call fcn.0048a3f6
add esp, 0x128
ret

Function at 0x45b180
Capabilities:
Get system information on windows

Disassembly:
lea eax, [esp - 0x24]
sub esp, 0x24
test eax, eax
je 0x45b1b8
push str.GetNativeSystemInfo
push str.kernel32
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x45b1ae
lea ecx, [esp]
push ecx
call eax
jmp 0x45b1b8
lea edx, [esp]
push edx
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov ax, word [esp]
cmp ax, 9
je 0x45b1cd
cmp ax, 6
mov eax, 0x20
jne 0x45b1d2
mov eax, 0x40
add esp, 0x24
ret
Function at 0x45b720
Capabilities:
Query environment variable

Disassembly:
sub esp, 0x210
mov eax, dword [0x4bb028]
xor eax, esp
mov dword [esp + 0x20c], eax
push esi
test edx, edx
je 0x45b789
mov eax, edx
lea esi, [eax + 2]
mov edi, edi
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x45b740
sub eax, esi
sar eax, 1
je 0x45b789
push 0x104
lea eax, [esp + 0xc]
push eax
push edx
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
lea ecx, [esp + 8]
push ecx
mov ecx, edi
mov esi, eax
call dword [sym.imp.MSVCP90.dll_public:_class_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t______thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::operator_wchar_t_const__]
mov eax, esi
pop esi
mov ecx, dword [esp + 0x20c]
xor ecx, esp
call fcn.0048a3f6
add esp, 0x210
ret
mov ecx, dword [esp + 0x210]
pop esi
xor ecx, esp
xor eax, eax
call fcn.0048a3f6
add esp, 0x210
ret

Function at 0x45bc50
Capabilities:
Persist via windows service
Query or enumerate registry value
Set registry value

Disassembly:
sub esp, 0x10
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push esi
xor esi, esi
mov dword [esp + 8], esi
cmp dword [0x4bc810], esi
je 0x45bc92
lea eax, [esp + 8]
push eax
call ebx
push eax
call dword [0x4bc810]
cmp dword [esp + 8], esi
je 0x45bc92
mov eax, dword [0x4bc80c]
test eax, eax
je 0x45bc8d
push reloc.OLEAUT32.dll_SysReAllocString
call eax
mov esi, pe_nt_image_headers32
lea ecx, [esp + 0xc]
push ecx
or esi, 0x2001f
push esi
push 0
push str.SYSTEMCurrentControlSet_servicesSchedule
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov esi, eax
test esi, esi
jne 0x45bd18
lea edx, [esp + 0x10]
push edx
mov edx, dword [esp + 0x10]
lea eax, [esp + 0xc]
push eax
lea ecx, [esp + 0x1c]
push ecx
push esi
push str.Start
push edx
mov dword [esp + 0x28], 4
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x45bd0d
mov eax, 2
cmp dword [esp + 8], eax
je 0x45bd0d
mov ecx, dword [esp + 0xc]
push 4
mov dword [esp + 0xc], eax
lea eax, [esp + 0xc]
push eax
push 4
push esi
push str.Start
push ecx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov esi, eax
mov edx, dword [esp + 0xc]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
call fcn.0045bd70
test eax, eax
jne 0x45bd26
mov esi, 0x80041315
cmp dword [0x4bc810], 0
mov dword [esp + 8], 0
je 0x45bd5c
lea eax, [esp + 8]
push eax
call ebx
push eax
call dword [0x4bc810]
cmp dword [esp + 8], 0
je 0x45bd5c
mov eax, dword [0x4bc808]
test eax, eax
je 0x45bd5c
push reloc.OLEAUT32.dll_SysReAllocString
call eax
xor eax, eax
test esi, esi
pop esi
sete al
pop ebx
add esp, 0x10
ret