joyce8/EMBER2024-capa huggingface dataset:
Function at 0x100d7de0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1024f603
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x218
mov dword [ebp - 0x14], 0
xor eax, eax
push esi
mov esi, dword [ebp + 8]
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 7
mov word [esi], ax
push 0x20a
mov dword [ebp - 4], eax
push eax
lea eax, [ebp - 0x224]
mov dword [ebp - 0x14], 1
push eax
call sub.VCRUNTIME140.dll_memset
mov eax, dword [ebp + 0x10]
add esp, 0xc
mov dword [ebp - 0x10], 0x208
mov dword [ebp - 0x18], 1
cmp dword [eax + 0x14], 8
jb 0x100d7e54
mov eax, dword [eax]
lea ecx, [ebp - 0x10]
push ecx
lea ecx, [ebp - 0x224]
push ecx
lea ecx, [ebp - 0x18]
push ecx
push 0
push eax
push dword [ebp + 0xc]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x100d7ebe
mov eax, dword [ebp - 0x10]
cmp eax, 0x104
ja 0x100d7e89
xor ecx, ecx
mov word [ebp + eax*2 - 0x224], cx
jmp 0x100d7e8f
xor eax, eax
mov word [ebp - 0x1c], ax
lea ecx, [ebp - 0x224]
lea edx, [ecx + 2]
nop dword [eax + eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x100d7ea0
sub ecx, edx
lea eax, [ebp - 0x224]
sar ecx, 1
push ecx
push eax
mov ecx, esi
call fcn.1001a600
mov ecx, dword [ebp - 0xc]
mov eax, esi
pop esi
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret 0xc
Function at 0x100dcfb0
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1024fd87
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0xc0
push ebx
push 0
push 0
call dword [sym.imp.ole32.dll_CoInitializeEx]
test eax, eax
setns byte [ebp - 0xd]
lea eax, [ebp - 0x68]
mov dword [ebp - 4], 0
push eax
push str.msxml2.DOMDocument.4.0
call dword [sym.imp.ole32.dll_CLSIDFromProgID]
test eax, eax
js 0x100dd16b
lea eax, [ebp - 0x18]
push eax
push 0x10255ec0
push 1
push 0
lea eax, [ebp - 0x68]
push eax
call dword [sym.imp.ole32.dll_CoCreateInstance]
test eax, eax
js 0x100dd16b
mov eax, dword [ebp - 0x18]
push esi
push edi
push eax
mov ecx, dword [eax]
call dword [ecx + 8]
xor eax, eax
mov dword [ebp - 0x14], 0
mov dword [ebp - 0x48], 0
mov dword [ebp - 0x44], 7
mov word [ebp - 0x58], ax
lea eax, [ebp - 0x58]
mov byte [ebp - 4], 1
push eax
call sym.WMCommon.dll_public:_static_bool___cdecl_WM::GMFileSystemUtils::MyGetSystemDirectory_class_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t____
push str.msxml4.dll
lea edx, [ebp - 0x58]
lea ecx, [ebp - 0x40]
call fcn.1001e9d0
add esp, 8
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x14]
cmp dword [ebp - 0x2c], 8
lea eax, [ebp - 0x40]
push ecx
cmovae eax, dword [ebp - 0x40]
push eax
call dword [sym.imp.VERSION.dll_GetFileVersionInfoSizeW]
mov esi, eax
push esi
call fcn.1006e70d
add esp, 4
lea ecx, [ebp - 0x40]
cmp dword [ebp - 0x2c], 8
mov edi, eax
cmovae ecx, dword [ebp - 0x40]
push edi
push esi
push dword [ebp - 0x14]
push ecx
call dword [sym.imp.VERSION.dll_GetFileVersionInfoW]
test eax, eax
jne 0x100dd0c6
push edi
call fcn.1006e708
add esp, 4
xor bl, bl
lea ecx, [ebp - 0x40]
call fcn.1001a5a0
lea ecx, [ebp - 0x58]
call fcn.1001a5a0
pop edi
pop esi
jmp 0x100dd16d
mov esi, dword [sym.imp.VERSION.dll_VerQueryValueW]
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp - 0x20]
mov dword [ebp - 0x1c], 4
push eax
push str.VarFileInfoTranslation
push edi
call esi
mov ecx, dword [ebp - 0x20]
movzx eax, word [ecx + 2]
push eax
movzx eax, word [ecx]
push eax
lea eax, [ebp - 0xcc]
push str.StringFileInfo_04x_04xFileDescription
push eax
call fcn.1002eb30
add esp, 0x10
test eax, eax
js 0x100dd0ad
lea eax, [ebp - 0x24]
mov dword [ebp - 0x24], 0
push eax
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 0xcc]
push eax
push edi
call esi
mov eax, dword [ebp - 0x28]
mov ecx, str.MSXML_4.0_SP3
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x100dd14e
test dx, dx
je 0x100dd14a
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x100dd14e
add eax, 4
add ecx, 4
test dx, dx
jne 0x100dd128
xor eax, eax
jmp 0x100dd153
sbb eax, eax
or eax, 1
test eax, eax
jne 0x100dd0ad
push edi
call fcn.1006e708
add esp, 4
mov bl, 1
jmp 0x100dd0af
xor bl, bl
cmp byte [ebp - 0xd], 0
je 0x100dd179
call dword [sym.imp.ole32.dll_CoUninitialize]
mov ecx, dword [ebp - 0xc]
mov al, bl
pop ebx
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret
Function at 0x100e2a90
Capabilities:
Open clipboard
Write clipboard data

Disassembly:
push ebx
push 0
xor bl, bl
call dword [sym.imp.USER32.dll_OpenClipboard]
test eax, eax
je 0x100e2b35
call dword [sym.imp.USER32.dll_EmptyClipboard]
test eax, eax
je 0x100e2b35
mov eax, dword [esp + 0x18]
push esi
push edi
lea esi, [eax*2 + 2]
push esi
push 2
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov edi, eax
test edi, edi
je 0x100e2b2d
push edi
call dword [sym.imp.KERNEL32.dll_GlobalLock]
cmp dword [esp + 0x24], 8
lea ecx, [esp + 0x10]
cmovae ecx, dword [esp + 0x10]
test esi, esi
je 0x100e2b18
test eax, eax
je 0x100e2b06
push esi
test ecx, ecx
je 0x100e2afb
push ecx
push eax
call sub.VCRUNTIME140.dll_memcpy
add esp, 0xc
jmp 0x100e2b18
push 0
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__errno]
mov dword [eax], 0x16
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo]
push edi
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
push edi
push 0xd
call dword [sym.imp.USER32.dll_SetClipboardData]
test eax, eax
setne bl
call dword [sym.imp.USER32.dll_CloseClipboard]
pop edi
pop esi
lea ecx, [esp + 8]
call fcn.1001a5a0
mov al, bl
pop ebx
ret
Function at 0x100e3b20
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x102508f4
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push esi
mov esi, ecx
xor eax, eax
mov dword [ebp - 0x10], esi
mov dword [esi], vtable.WM::GMTaskList.0
mov byte [esi + 4], 0
mov dword [esi + 0x1c], 0
mov dword [esi + 0x20], 7
mov word [esi + 0xc], ax
mov dword [esi + 8], eax
mov dword [esi + 0x24], eax
mov dword [esi + 0x28], eax
mov dword [esi + 0x2c], eax
mov dword [esi + 0x30], eax
mov dword [esi + 0x34], eax
mov eax, dword [ebp + 8]
push 0
push 0
push 1
push 0
mov dword [esi + 0x38], eax
call dword [sym.imp.KERNEL32.dll_CreateEventW]
mov dword [esi + 8], eax
test eax, eax
je 0x100e3ba4
cmp dword [esi + 0x20], 8
lea ecx, [esi + 0xc]
jb 0x100e3b96
mov ecx, dword [esi + 0xc]
xor eax, eax
mov dword [esi + 0x1c], 0
mov word [ecx], ax
jmp 0x100e3baa
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 0
push 0x40
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateSemaphoreW]
mov ecx, dword [ebp - 0xc]
mov dword [esi + 0x24], eax
mov eax, esi
pop esi
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret 4

Function at 0x100e3e80
Capabilities:
Create thread
Resume thread

Disassembly:
push esi
mov esi, ecx
mov ecx, dword [esi]
test ecx, ecx
je 0x100e3edf
cmp dword [ecx + 4], 0
je 0x100e3edf
lea eax, [ecx + 0xc]
push eax
push 4
push ecx
push 0x10049aa0
push 0
push 0
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__beginthreadex]
mov ecx, dword [esi]
add esp, 0x18
mov dword [ecx + 0x10], eax
mov eax, dword [esi]
cmp dword [eax + 0x10], 0
jne 0x100e3ee3
mov dword [eax + 0x10], 0xffffffff
mov esi, dword [esi]
mov eax, dword [esi + 0x10]
cmp eax, 0xffffffff
je 0x100e3ed4
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [esi + 0x10], 0xffffffff
mov byte [esi + 8], 0
mov dword [esi + 0xc], 0
xor al, al
pop esi
ret
mov byte [eax + 8], 1
mov eax, dword [esi]
push dword [eax + 0x10]
call dword [sym.imp.KERNEL32.dll_ResumeThread]
cmp eax, 0xffffffff
jne 0x100e3f04
mov ecx, dword [esi]
call fcn.10049b30
mov eax, dword [esi]
mov byte [eax + 8], 0
mov al, 1
pop esi
ret
Function at 0x100e4140
Capabilities:
Print debug messages

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10250940
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x7e0
push esi
lea eax, [ebp - 0x14]
mov esi, ecx
push eax
call dword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
mov edx, dword [ebp - 0x10]
mov ecx, dword [ebp - 0x14]
call fcn.102476a0
movsd qword [esi + 0x30], xmm0
lea eax, [ebp - 0x7ec]
subsd xmm0, qword [esi + 0x28]
push 0x7d0
push 0
push eax
divsd xmm0, qword [esi + 0x20]
movsd qword [ebp - 0x1c], xmm0
call sub.VCRUNTIME140.dll_memset
movzx eax, byte [esi]
add esp, 0xc
sub eax, 0
je 0x100e41fe
sub eax, 2
jne 0x100e4238
cmp dword [esi + 0x18], 8
lea eax, [esi + 4]
jb 0x100e41bc
mov eax, dword [eax]
movsd xmm0, qword [ebp - 0x1c]
sub esp, 8
movsd qword [esp], xmm0
push eax
lea eax, [ebp - 0x7ec]
push str._s_used__f_s._n
push eax
call fcn.1002eb30
mov ecx, dword [sym.imp.MSVCP140.dll_class_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t___std::wcout]
lea edx, [ebp - 0x7ec]
add esp, 0x14
call fcn.10049ce0
push 0x10049f20
mov ecx, eax
call dword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t______thiscall_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t__::operator___class_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t_______cdecl___class_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t_____]
jmp 0x100e4238
cmp dword [esi + 0x18], 8
lea eax, [esi + 4]
jb 0x100e4209
mov eax, dword [eax]
movsd xmm0, qword [ebp - 0x1c]
sub esp, 8
movsd qword [esp], xmm0
push eax
lea eax, [ebp - 0x7ec]
push str._s_used__f_s._n
push eax
call fcn.1002eb30
add esp, 0x14
lea eax, [ebp - 0x7ec]
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
lea ecx, [esi + 4]
call fcn.1001a5a0
mov ecx, dword [ebp - 0xc]
pop esi
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret
Function at 0x100e4a60
Capabilities:
Enumerate devices by category

Disassembly:
push ebp
mov ebp, esp
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x10250a13
push eax
mov dword fs:[0], esp
lea eax, [ebp - 0x24]
sub esp, 0x7c
push eax
push 0x1026f570
push 1
push 0
push 0x1026f500
call dword [sym.imp.ole32.dll_CoCreateInstance]
test eax, eax
je 0x100e4aa7
xor al, al
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret
mov dword [ebp - 0x14], 0
mov dword [ebp - 4], 0
lea edx, [ebp - 0x14]
mov ecx, dword [ebp - 0x24]
push 0
push edx
push 0x1026f4dc
mov eax, dword [ecx]
push ecx
call dword [eax + 0xc]
test eax, eax
je 0x100e4ad6
mov byte [ebp - 0xd], 0
jmp 0x100e4c35
mov eax, dword [ebp - 0x14]
push eax
mov ecx, dword [eax]
call dword [ecx + 0x14]
mov eax, dword [ebp - 0x14]
lea edx, [ebp - 0x20]
push edx
lea edx, [ebp - 0x18]
push edx
mov ecx, dword [eax]
push 1
push eax
call dword [ecx + 0xc]
test eax, eax
jne 0x100e4c31
push esi
push edi
mov edi, dword [ebp + 8]
lea esi, [eax + 8]
mov ecx, dword [ebp - 0x18]
lea edx, [ebp - 0x1c]
push edx
push 0x10255e80
push 0
mov eax, dword [ecx]
push 0
push ecx
call dword [eax + 0x24]
test eax, eax
js 0x100e4c0b
mov ecx, dword [ebp - 0x1c]
test ecx, ecx
je 0x100e4c0b
push 0
lea edx, [ebp - 0x3c]
mov word [ebp - 0x3c], si
mov eax, dword [ecx]
push edx
push str.FriendlyName
push ecx
call dword [eax + 0xc]
test eax, eax
jne 0x100e4c02
mov edx, dword [ebp - 0x34]
mov dword [ebp - 0x5c], eax
mov word [ebp - 0x6c], ax
mov eax, edx
mov dword [ebp - 0x58], 7
lea esi, [eax + 2]
nop
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x100e4b60
sub eax, esi
lea ecx, [ebp - 0x6c]
sar eax, 1
push eax
push edx
call fcn.1001a600
lea eax, [ebp - 0x6c]
mov byte [ebp - 4], 2
push eax
lea ecx, [ebp - 0x54]
call fcn.1001a380
movups xmm0, xmmword [ebp - 0x54]
mov eax, dword [ebp - 0x20]
mov dword [ebp - 0x88], eax
xor eax, eax
movups xmmword [ebp - 0x84], xmm0
mov word [ebp - 0x54], ax
movq xmm0, qword [ebp - 0x44]
movq qword [ebp - 0x74], xmm0
mov dword [ebp - 0x44], 0
mov dword [ebp - 0x40], 7
lea eax, [ebp - 0x88]
mov byte [ebp - 4], 4
push eax
mov ecx, edi
call fcn.1004acc0
push eax
add eax, 0x10
push eax
push ecx
lea eax, [ebp - 0x2c]
mov ecx, edi
push eax
call fcn.1004ad10
lea ecx, [ebp - 0x84]
call fcn.1001a5a0
lea ecx, [ebp - 0x54]
call fcn.1001a5a0
lea ecx, [ebp - 0x6c]
mov byte [ebp - 4], 0
call fcn.1001a5a0
mov esi, 8
mov eax, dword [ebp - 0x1c]
push eax
mov ecx, dword [eax]
call dword [ecx + 8]
mov eax, dword [ebp - 0x18]
push eax
mov ecx, dword [eax]
call dword [ecx + 8]
mov eax, dword [ebp - 0x14]
lea edx, [ebp - 0x20]
push edx
lea edx, [ebp - 0x18]
push edx
mov ecx, dword [eax]
push 1
push eax
call dword [ecx + 0xc]
test eax, eax
je 0x100e4b02
pop edi
pop esi
mov byte [ebp - 0xd], 1
mov dword [ebp - 4], 5
mov ecx, dword [ebp - 0x14]
test ecx, ecx
je 0x100e4c49
mov edx, dword [ecx]
push ecx
call dword [edx + 8]
mov ecx, dword [ebp - 0xc]
mov al, byte [ebp - 0xd]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret
Function at 0x100e67c0
Capabilities:
Enumerate devices by category

Disassembly:
push ebp
mov ebp, esp
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x10250c37
push eax
mov dword fs:[0], esp
lea eax, [ebp - 0x24]
sub esp, 0x7c
push edi
push eax
push 0x1026f570
push 1
push 0
push 0x1026f500
mov edi, ecx
call dword [sym.imp.ole32.dll_CoCreateInstance]
test eax, eax
je 0x100e680b
xor al, al
pop edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret
mov dword [ebp - 0x14], 0
mov dword [ebp - 4], 0
lea edx, [ebp - 0x14]
mov ecx, dword [ebp - 0x24]
push 0
push edx
push 0x1026f4dc
mov eax, dword [ecx]
push ecx
call dword [eax + 0xc]
test eax, eax
je 0x100e683a
mov byte [ebp - 0xd], 0
jmp 0x100e6994
mov eax, dword [ebp - 0x14]
push eax
mov ecx, dword [eax]
call dword [ecx + 0x14]
mov eax, dword [ebp - 0x14]
lea edx, [ebp - 0x20]
push edx
lea edx, [ebp - 0x18]
push edx
mov ecx, dword [eax]
push 1
push eax
call dword [ecx + 0xc]
test eax, eax
jne 0x100e6990
push esi
lea esi, [eax + 8]
mov ecx, dword [ebp - 0x18]
lea edx, [ebp - 0x1c]
push edx
push 0x10255e80
push 0
mov eax, dword [ecx]
push 0
push ecx
call dword [eax + 0x24]
test eax, eax
js 0x100e696b
mov ecx, dword [ebp - 0x1c]
test ecx, ecx
je 0x100e696b
push 0
lea edx, [ebp - 0x3c]
mov word [ebp - 0x3c], si
mov eax, dword [ecx]
push edx
push str.FriendlyName
push ecx
call dword [eax + 0xc]
test eax, eax
jne 0x100e6962
mov edx, dword [ebp - 0x34]
mov dword [ebp - 0x5c], eax
mov word [ebp - 0x6c], ax
mov eax, edx
mov dword [ebp - 0x58], 7
lea esi, [eax + 2]
nop
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x100e68c0
sub eax, esi
lea ecx, [ebp - 0x6c]
sar eax, 1
push eax
push edx
call fcn.1001a600
lea eax, [ebp - 0x6c]
mov byte [ebp - 4], 2
push eax
lea ecx, [ebp - 0x54]
call fcn.1001a380
movups xmm0, xmmword [ebp - 0x54]
mov eax, dword [ebp - 0x20]
mov dword [ebp - 0x88], eax
xor eax, eax
movups xmmword [ebp - 0x84], xmm0
mov word [ebp - 0x54], ax
movq xmm0, qword [ebp - 0x44]
movq qword [ebp - 0x74], xmm0
mov dword [ebp - 0x44], 0
mov dword [ebp - 0x40], 7
lea eax, [ebp - 0x88]
mov byte [ebp - 4], 4
push eax
mov ecx, edi
call fcn.1004acc0
push eax
add eax, 0x10
push eax
push ecx
lea eax, [ebp - 0x2c]
mov ecx, edi
push eax
call fcn.1004ad10
lea ecx, [ebp - 0x84]
call fcn.1001a5a0
lea ecx, [ebp - 0x54]
call fcn.1001a5a0
lea ecx, [ebp - 0x6c]
mov byte [ebp - 4], 0
call fcn.1001a5a0
mov esi, 8
mov eax, dword [ebp - 0x1c]
push eax
mov ecx, dword [eax]
call dword [ecx + 8]
mov eax, dword [ebp - 0x18]
push eax
mov ecx, dword [eax]
call dword [ecx + 8]
mov eax, dword [ebp - 0x14]
lea edx, [ebp - 0x20]
push edx
lea edx, [ebp - 0x18]
push edx
mov ecx, dword [eax]
push 1
push eax
call dword [ecx + 0xc]
test eax, eax
je 0x100e6862
pop esi
mov byte [ebp - 0xd], 1
mov dword [ebp - 4], 5
mov ecx, dword [ebp - 0x14]
test ecx, ecx
je 0x100e69a8
mov edx, dword [ecx]
push ecx
call dword [edx + 8]
mov ecx, dword [ebp - 0xc]
mov al, byte [ebp - 0xd]
pop edi
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret
Function at 0x100e7190
Capabilities:
Query environment variable

Disassembly:
push ebp
push esi
push 0
push 0
push dword [esp + 0x18]
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
mov esi, eax
xor ecx, ecx
mov edx, 2
lea eax, [esi + 1]
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.1006e70d
add esp, 4
mov ebp, eax
push esi
push ebp
push dword [esp + 0x18]
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
mov esi, dword [esp + 0xc]
mov ecx, ebp
xor eax, eax
mov dword [esi + 0x10], 0
lea edx, [ecx + 2]
mov dword [esi + 0x14], 7
mov word [esi], ax
nop dword [eax + eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x100e71f0
sub ecx, edx
sar ecx, 1
push ecx
push ebp
mov ecx, esi
call fcn.1001a600
push ebp
call fcn.1006e708
add esp, 4
mov eax, esi
pop esi
pop ebp
ret
Function at 0x100e7220
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10250d01
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x26c
mov dword [ebp - 0x10], 0
xor eax, eax
push esi
push edi
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 7
mov word [ebp - 0x28], ax
mov dword [ebp - 4], 1
mov edi, dword [ebp + 8]
mov dword [edi + 0x10], eax
mov dword [edi + 0x14], 7
mov word [edi], ax
push 0x208
push eax
lea eax, [ebp - 0x278]
mov dword [ebp - 0x10], 1
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
lea eax, [ebp - 0x278]
push 0x104
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryW]
push 5
xor eax, eax
mov dword [ebp - 0x48], 0
push str.Fonts
lea ecx, [ebp - 0x58]
mov dword [ebp - 0x44], 7
mov word [ebp - 0x58], ax
call fcn.1001a600
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x278]
xor eax, eax
mov dword [ebp - 0x30], 0
mov dword [ebp - 0x2c], 7
lea edx, [ecx + 2]
mov word [ebp - 0x40], ax
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x100e72e4
sub ecx, edx
lea eax, [ebp - 0x278]
sar ecx, 1
push ecx
push eax
lea ecx, [ebp - 0x40]
call fcn.1001a600
lea eax, [ebp - 0x58]
mov byte [ebp - 4], 3
push eax
lea eax, [ebp - 0x40]
push eax
lea eax, [ebp - 0x70]
push eax
call sym.WMCommon.dll_public:_static_class_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t_____cdecl_WM::GMFileName::JoinFileName_class_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t___const___class_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t___const__
mov esi, eax
add esp, 0xc
lea eax, [ebp - 0x28]
cmp eax, esi
je 0x100e734f
mov ecx, eax
call fcn.1001a5a0
movups xmm0, xmmword [esi]
xor eax, eax
movups xmmword [ebp - 0x28], xmm0
movq xmm0, qword [esi + 0x10]
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 7
movq qword [ebp - 0x18], xmm0
mov word [esi], ax
lea ecx, [ebp - 0x70]
call fcn.1001a5a0
lea ecx, [ebp - 0x40]
call fcn.1001a5a0
lea ecx, [ebp - 0x58]
mov byte [ebp - 4], 1
call fcn.1001a5a0
push dword [ebp + 0xc]
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 0x70]
push eax
call sym.WMCommon.dll_public:_static_class_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t_____cdecl_WM::GMFileName::JoinFileName_class_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t___const___class_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t___const__
mov esi, eax
add esp, 0xc
cmp edi, esi
je 0x100e73ae
mov ecx, edi
call fcn.1001a5a0
movups xmm0, xmmword [esi]
xor eax, eax
movups xmmword [edi], xmm0
movq xmm0, qword [esi + 0x10]
movq qword [edi + 0x10], xmm0
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 7
mov word [esi], ax
lea ecx, [ebp - 0x70]
call fcn.1001a5a0
lea ecx, [ebp - 0x28]
call fcn.1001a5a0
mov ecx, dword [ebp - 0xc]
mov eax, edi
pop edi
pop esi
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret 8
Function at 0x100e73e0
Capabilities:
Set registry value

Disassembly:
push ecx
push ebx
lea eax, [esp + 4]
xor bl, bl
push eax
push 0x103
push 0
push str.SOFTWAREMicrosoftWindows_NTCurrentVersionFonts
push reloc.WS2_32.dll_bind
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x100e743f
mov eax, dword [esp + 0x10]
mov edx, dword [eax + 0x10]
add edx, edx
cmp dword [eax + 0x14], 8
jb 0x100e7415
mov eax, dword [eax]
mov ecx, dword [esp + 0xc]
cmp dword [ecx + 0x14], 8
jb 0x100e7421
mov ecx, dword [ecx]
push edx
push eax
push 1
push 0
push ecx
push dword [esp + 0x18]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test eax, eax
movzx ebx, bl
mov ecx, 1
cmove ebx, ecx
mov eax, dword [esp + 4]
test eax, eax
je 0x100e744e
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov al, bl
pop ebx
pop ecx
ret 8
Function at 0x100e8dc0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
sub esp, 0x1c
push ebx
push ebp
push esi
mov esi, ecx
push edi
mov dword [esp + 0x14], esi
mov eax, dword [esi + 0x30]
test eax, eax
je 0x100e8f42
mov ebp, dword [esp + 0x30]
mov ebx, dword [sym.imp.KERNEL32.dll_FindResourceW]
push 0xe
push ebp
push eax
call ebx
test eax, eax
je 0x100e8f42
push eax
push dword [esi + 0x30]
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x100e8f42
mov edi, dword [sym.imp.KERNEL32.dll_LockResource]
push eax
call edi
mov dword [esp + 0x28], eax
test eax, eax
je 0x100e8f42
xor edx, edx
xor ecx, ecx
mov dword [esp + 0x10], edx
mov dword [esp + 0x18], edx
mov dword [esp + 0x1c], edx
mov dword [esp + 0x20], edx
mov dword [esp + 0x24], edx
cmp cx, word [eax + 4]
jae 0x100e8f28
lea ebp, [eax + 0x12]
nop dword [eax]
movzx eax, word [ebp]
push 3
push eax
push dword [esi + 0x30]
call ebx
mov ebx, eax
test ebx, ebx
je 0x100e8f42
push ebx
push dword [esi + 0x30]
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x100e8f42
push eax
call edi
mov esi, eax
test esi, esi
je 0x100e8f42
mov eax, dword [esi + 8]
movzx ecx, word [esi + 0xc]
movzx edi, word [esi + 0xe]
cdq
sub eax, edx
imul edi, ecx
mov ecx, dword [esi + 4]
sar eax, 1
cmp ecx, dword [esp + 0x34]
jne 0x100e8e9d
cmp eax, dword [esp + 0x38]
jne 0x100e8e9d
cmp edi, dword [esp + 0x3c]
je 0x100e8efd
cmp byte [esp + 0x40], 0
jne 0x100e8ecc
cmp ecx, dword [esp + 0x18]
jl 0x100e8ecc
cmp eax, dword [esp + 0x1c]
jl 0x100e8ecc
cmp edi, dword [esp + 0x20]
jbe 0x100e8ecc
movzx edx, word [ebp]
mov dword [esp + 0x10], edx
mov dword [esp + 0x18], ecx
mov dword [esp + 0x1c], eax
mov dword [esp + 0x20], edi
jmp 0x100e8ed0
mov edx, dword [esp + 0x10]
mov eax, dword [esp + 0x28]
add ebp, 0xe
mov edi, dword [esp + 0x24]
mov esi, dword [esp + 0x14]
inc edi
mov dword [esp + 0x24], edi
movzx eax, word [eax + 4]
cmp edi, eax
jae 0x100e8f24
mov ebx, dword [sym.imp.KERNEL32.dll_FindResourceW]
mov edi, dword [sym.imp.KERNEL32.dll_LockResource]
jmp 0x100e8e40
mov eax, dword [esp + 0x14]
push 0x30000
push 1
push ebx
push dword [eax + 0x30]
call dword [sym.imp.KERNEL32.dll_SizeofResource]
push eax
push esi
call dword [sym.imp.USER32.dll_CreateIconFromResource]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x1c
ret 0x14
mov ebp, dword [esp + 0x30]
cmp byte [esp + 0x40], 0
jne 0x100e8f42
push edx
push ebp
mov ecx, esi
call sym.WMCommon.dll_public:_struct_HICON______thiscall_WM::GMIconExtract::GetIcon_wchar_t_const___unsigned_int_
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x1c
ret 0x14
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x1c
ret 0x14
Function at 0x100ea070
Capabilities:
Shutdown system

Disassembly:
sub esp, 0x14
lea eax, [esp]
push eax
push 0x28
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
je 0x100ea0e0
lea eax, [esp + 8]
push eax
push str.SeShutdownPrivilege
push 0
call dword [sym.imp.ADVAPI32.dll_LookupPrivilegeValueW]
test eax, eax
je 0x100ea0e0
push 0
push 0
push 0
lea eax, [esp + 0x10]
mov dword [esp + 0x10], 1
push eax
push 0
push dword [esp + 0x14]
mov dword [esp + 0x28], 2
call dword [sym.imp.ADVAPI32.dll_AdjustTokenPrivileges]
test eax, eax
je 0x100ea0e0
push 0
push dword [esp + 0x1c]
call dword [sym.imp.USER32.dll_ExitWindowsEx]
test eax, eax
setne al
add esp, 0x14
ret
xor al, al
add esp, 0x14
ret