joyce8/EMBER2024-capa huggingface dataset:
Function at 0x449870
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4bbf73
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x414
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 0x10], esp
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 4], ebx
mov dword [ebp - 0x14], ecx
mov dword [ebp - 0x18], ebx
mov dword [ebp - 0x420], ebx
mov eax, dword [ebp + 8]
push 2
push ebx
push eax
mov byte [ebp - 4], 1
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov edi, eax
mov dword [ebp + 8], edi
cmp edi, ebx
jne 0x4498ce
call fcn.00442d20
mov esi, eax
jmp 0x4499a4
mov ecx, dword [ebp + 0x10]
mov edx, dword [ebp + 0xc]
push ecx
push edx
push edi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov esi, eax
cmp esi, ebx
jne 0x4498ed
call fcn.00442d20
jmp 0x44999b
push esi
push edi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov ebx, eax
mov dword [ebp + 0x10], ebx
test ebx, ebx
jne 0x449908
call fcn.00442d20
jmp 0x44999b
push esi
push edi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov esi, eax
lea eax, [esi + 1]
mov dword [ebp + 0xc], esi
cmp eax, esi
jae 0x449923
mov esi, 0x8007000e
jmp 0x44999d
push eax
lea ecx, [ebp - 0x420]
mov byte [ebp - 4], 2
call fcn.004441b0
mov dword [ebp - 4], 1
jmp 0x449952
mov eax, dword [ebp - 0x420]
test eax, eax
jne 0x449963
mov esi, 0x8007000e
jmp 0x44999d
push esi
push eax
push esi
push ebx
push 0
push 3
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
test eax, eax
jne 0x44997c
call fcn.00442d20
jmp 0x44999b
mov edx, dword [ebp - 0x420]
xor ecx, ecx
mov word [edx + eax*2], cx
mov eax, dword [ebp + 0x14]
mov ecx, dword [ebp - 0x420]
push eax
push ecx
lea ecx, [ebp - 0x18]
call fcn.00446e00
mov esi, eax
push edi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
lea edx, [ebp - 0x41c]
cmp dword [ebp - 0x420], edx
je 0x4499c0
lea ecx, [ebp - 0x420]
call fcn.00443780
lea ecx, [ecx]
mov ecx, dword [ebp - 0xc]
pop edi
mov eax, esi
pop esi
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret 0x10

Function at 0x44aa20
Capabilities:
Check os version

Disassembly:
sub esp, 0x118
cmp byte [ecx + 0x7d], 0
mov dword [esp], 0
je 0x44aa8c
push 0x110
lea eax, [esp + 0xc]
push 0
push eax
mov dword [esp + 0x10], 0x114
call fcn.0049e6e0
add esp, 0xc
lea ecx, [esp + 4]
push ecx
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
je 0x44aa8c
cmp dword [esp + 8], 6
jne 0x44aa8c
cmp dword [esp + 0xc], 1
jb 0x44aa8c
lea edx, [esp]
push edx
call dword [sym.imp.dwmapi.dll_DwmIsCompositionEnabled]
test eax, eax
js 0x44aa8c
cmp dword [esp], 0
je 0x44aa8c
mov eax, 1
add esp, 0x118
ret
xor eax, eax
add esp, 0x118
ret
Function at 0x44b7b0
Capabilities:
Hide graphical window

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x4bc040
push eax
mov dword fs:[0], esp
sub esp, 8
push ebx
push esi
mov esi, ecx
test esi, esi
je 0x44b7d5
lea ebx, [esi - 0x24]
jmp 0x44b7d7
xor ebx, ebx
mov eax, dword [esi]
mov dword [esi + 0x10], 1
test eax, eax
je 0x44b825
mov ecx, dword [esp + 0x20]
mov edx, dword [eax + 4]
cmp dword [esi + 0xc], ecx
jne 0x44b818
push edx
call dword [sym.imp.USER32.dll_SetActiveWindow]
mov eax, dword [esi]
mov ecx, dword [eax + 4]
push 5
push ecx
call dword [sym.imp.USER32.dll_ShowWindow]
pop esi
pop ebx
mov ecx, dword [esp + 8]
mov dword fs:[0], ecx
add esp, 0x14
ret 4
push 0
push 0
push 0x10
push edx
call dword [sym.imp.USER32.dll_SendMessageW]
mov eax, dword [0x4da024]
push ebp
mov dword [esp + 0xc], eax
lea edx, [esp + 0xc]
lea ecx, [ebx + 4]
push edx
mov dword [esp + 0x20], 0
call fcn.004481c0
mov ebp, dword [esp + 0xc]
cmp dword [ebp - 8], 0
je 0x44b869
push 0x4be2b8
push ebp
call fcn.0049f301
add esp, 8
test eax, eax
je 0x44b87a
sub eax, ebp
sar eax, 1
cmp eax, 0xffffffff
je 0x44b87a
lea eax, [esi + 4]
push eax
lea ecx, [esp + 0x10]
call fcn.004483c0
mov ebp, dword [esp + 0xc]
push edi
mov edi, dword [esi + 8]
cmp dword [edi - 0xc], 0
jl 0x44b894
lea ecx, [edi - 0xc]
push ecx
mov dword [esp + 0x18], edi
call dword [sym.imp.KERNEL32.dll_InterlockedIncrement]
jmp 0x44b8bc
mov edx, dword [0x4da024]
mov dword [esp + 0x14], edx
test edi, edi
jne 0x44b8a6
xor eax, eax
jmp 0x44b8ad
push edi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
push edi
push eax
lea ecx, [esp + 0x1c]
call fcn.00445c50
mov edi, dword [esp + 0x14]
cmp dword [ebx + 0x40], 0
mov byte [esp + 0x20], 1
mov ecx, 0x10000
je 0x44b8d1
mov ecx, 0x10001
cmp dword [ebx + 0x38], 0
je 0x44b8da
or ecx, 4
mov eax, dword [ebx + 4]
push eax
mov eax, dword [esp + 0x2c]
push ecx
push edi
push ebp
push eax
mov ecx, ebx
call fcn.00448d00
mov dword [esi], eax
test eax, eax
je 0x44b8fa
mov ecx, dword [esp + 0x28]
mov dword [esi + 0xc], ecx
mov ebx, dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
lea edx, [edi - 0xc]
cmp edx, dword [0x4da020]
je 0x44b91e
lea esi, [edi - 0xc]
push esi
call ebx
test eax, eax
jg 0x44b91e
push esi
call fcn.0049e9ee
add esp, 4
lea eax, [ebp - 0xc]
pop edi
cmp eax, dword [0x4da020]
je 0x44b93d
lea esi, [ebp - 0xc]
push esi
call ebx
test eax, eax
jg 0x44b93d
push esi
call fcn.0049e9ee
add esp, 4
mov ecx, dword [esp + 0x14]
pop ebp
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0x14
ret 4

Function at 0x44c6a0
Capabilities:
Check os version

Disassembly:
sub esp, 0x11c
push esi
push 0x110
lea eax, [esp + 0x14]
push 0
push eax
mov esi, 0x64
mov dword [esp + 0x18], 0x114
call fcn.0049e6e0
add esp, 0xc
lea ecx, [esp + 0xc]
push ecx
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
je 0x44c703
cmp dword [esp + 0x10], 6
jb 0x44c703
lea edx, [esp + 8]
push edx
lea eax, [esp + 8]
push eax
mov dword [esp + 0xc], 0
call fcn.0044c5a0
add esp, 8
test eax, eax
js 0x44c703
cmp dword [esp + 4], 6
jae 0x44c710
mov eax, 0x50
pop esi
add esp, 0x11c
ret
mov eax, esi
pop esi
add esp, 0x11c
ret
Function at 0x44cb90
Capabilities:
Check os version

Disassembly:
sub esp, 0x198
mov eax, dword [ecx + 4]
push ebx
push edi
push eax
mov dword [esp + 0xc], ecx
call dword [sym.imp.USER32.dll_GetParent]
push 0
push 0
mov edi, eax
push 0x40c
push edi
mov dword [esp + 0x20], edi
call dword [sym.imp.USER32.dll_SendMessageW]
mov ecx, eax
xor al, al
xor ebx, ebx
mov dword [esp + 0xc], ecx
test ecx, ecx
jle 0x44ccd5
push ebp
push esi
push 0x110
lea ecx, [esp + 0x9c]
push 0
push ecx
mov ebp, 0x64
mov dword [esp + 0xa0], 0x114
call fcn.0049e6e0
add esp, 0xc
lea edx, [esp + 0x94]
push edx
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
je 0x44cc81
cmp dword [esp + 0x98], 6
jb 0x44cc81
xor eax, eax
mov dword [esp + 0x1c], eax
push str.comctl32.dll
mov dword [esp + 0x24], eax
mov dword [esp + 0x28], eax
mov dword [esp + 0x2c], eax
mov dword [esp + 0x30], eax
mov dword [esp + 0x20], 0x14
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov esi, eax
test esi, esi
jne 0x44cc49
call fcn.00442d20
jmp 0x44cc76
push str.DllGetVersion
push esi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
jne 0x44cc60
mov edi, 0x80004001
jmp 0x44cc69
lea ecx, [esp + 0x1c]
push ecx
call eax
mov edi, eax
push esi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov eax, edi
mov edi, dword [esp + 0x18]
test eax, eax
js 0x44cc81
cmp dword [esp + 0x20], 6
jae 0x44cc86
mov ebp, 0x50
push 0x5c
lea edx, [esp + 0x3c]
push 0
push edx
mov dword [esp + 0x3c], ebp
mov dword [esp + 0x40], 0x11
call fcn.0049e6e0
add esp, 0xc
lea eax, [esp + 0x30]
push eax
push ebx
push 0x41c
push edi
call dword [sym.imp.USER32.dll_SendMessageW]
test eax, eax
je 0x44ccc6
mov ecx, dword [esp + 0x50]
mov edx, dword [esp + 0x10]
cmp ecx, dword [edx + 4]
je 0x44ccde
inc ebx
cmp ebx, dword [esp + 0x14]
jl 0x44cbd0
pop esi
xor al, al
pop ebp
pop edi
pop ebx
add esp, 0x198
ret
test dword [esp + 0x38], 0x200
je 0x44ccd1
mov esi, dword [sym.imp.USER32.dll_PostMessageW]
push 0
push ebx
push 0x42b
push edi
call esi
mov eax, dword [esp + 0x10]
mov ecx, dword [eax + 4]
push 0
push 0x28
push pe_nt_image_headers32
push ecx
call esi
pop esi
pop ebp
pop edi
mov al, 1
pop ebx
add esp, 0x198
ret
Function at 0x44d580
Capabilities:
Check os version

Disassembly:
sub esp, 0x144
push ebp
push esi
push edi
mov edi, ecx
mov ebp, dword [edi + 0x44]
xor esi, esi
cmp dword [edi + 0x50], esi
jle 0x44d634
push ebx
mov ebx, dword [sym.imp.USER32.dll_SetMenuItemInfoW]
push 0x30
lea eax, [esp + 0x14]
push 0
push eax
call fcn.0049e6e0
push 0x110
lea ecx, [esp + 0x54]
push 0
push ecx
mov dword [esp + 0x28], 0x30
mov dword [esp + 0x58], 0x114
call fcn.0049e6e0
add esp, 0x18
lea edx, [esp + 0x40]
push edx
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
je 0x44d5f6
mov eax, dword [esp + 0x44]
cmp eax, 5
jae 0x44d5fe
cmp eax, 4
jne 0x44d5f6
cmp dword [esp + 0x48], 0x5a
jae 0x44d5fe
mov dword [esp + 0x10], 0x2c
mov dword [esp + 0x14], 0x80
mov dword [esp + 0x3c], 0
test esi, esi
js 0x44d63e
cmp esi, dword [edi + 0x50]
jge 0x44d63e
mov ecx, dword [edi + 0x4c]
movzx edx, word [ecx + esi*2]
lea eax, [esp + 0x10]
push eax
push 0
push edx
push ebp
call ebx
inc esi
cmp esi, dword [edi + 0x50]
jl 0x44d5a0
pop ebx
pop edi
pop esi
pop ebp
add esp, 0x144
ret
push 0
push 0
push 1
push 0xc000008c
call dword [sym.imp.KERNEL32.dll_RaiseException]
Function at 0x44dd00
Capabilities:
Check os version

Disassembly:
sub esp, 0x148
push ebx
push esi
mov esi, ecx
mov cl, byte [esi + 0x84]
push edi
mov dword [esp + 0xc], esi
test cl, 2
jne 0x44dd92
mov edi, dword [esp + 0x160]
mov ebx, dword [esp + 0x15c]
test edi, edi
je 0x44dd3e
cmp edi, dword [esi + 0x44]
je 0x44dd3e
mov eax, ebx
shr eax, 0x10
test al, 0x10
je 0x44dd3e
mov al, 1
jmp 0x44dd40
xor al, al
add al, al
add al, al
add al, al
xor al, cl
and al, 8
xor al, cl
mov ecx, dword [esi + 0x5c]
push ecx
mov byte [esi + 0x84], al
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x44dd74
mov edx, dword [esp + 0x158]
mov eax, dword [esi + 0x5c]
push edi
push ebx
push edx
push eax
call dword [sym.imp.USER32.dll_SendMessageW]
mov ecx, dword [esp + 0x164]
pop edi
pop esi
mov dword [ecx], 0
mov eax, 1
pop ebx
add esp, 0x148
ret 0x10
mov edx, dword [esp + 0x15c]
shr edx, 0x10
cmp edx, 0xffff
jne 0x44dee4
cmp dword [esp + 0x160], 0
jne 0x44dee4
test cl, 4
je 0x44dee4
push ebp
mov ecx, dword [esi + 0x18]
lea eax, [ecx - 1]
test eax, eax
js 0x44dee3
mov edx, dword [esi + 0x14]
mov ebx, dword [edx + eax*4]
cmp eax, ecx
jge 0x44dee3
mov dword [esi + 0x18], eax
test ebx, ebx
je 0x44dee3
push ebx
xor ebp, ebp
call dword [sym.imp.USER32.dll_GetMenuItemCount]
test eax, eax
jle 0x44ddc0
mov edi, 0x30
push edi
lea eax, [esp + 0x18]
push 0
push eax
call fcn.0049e6e0
push 0x110
lea ecx, [esp + 0x58]
push 0
push ecx
mov dword [esp + 0x2c], edi
mov dword [esp + 0x5c], 0x114
call fcn.0049e6e0
add esp, 0x18
lea edx, [esp + 0x44]
push edx
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
je 0x44de4a
mov eax, dword [esp + 0x48]
cmp eax, 5
jae 0x44de52
cmp eax, 4
jne 0x44de4a
cmp dword [esp + 0x4c], 0x5a
jae 0x44de52
mov dword [esp + 0x14], 0x2c
lea eax, [esp + 0x14]
push eax
push 1
push ebp
push ebx
mov dword [esp + 0x28], edi
call dword [sym.imp.USER32.dll_GetMenuItemInfoW]
mov eax, dword [esp + 0x34]
mov edi, eax
test eax, eax
je 0x44dece
cmp dword [eax], 0x1313
jne 0x44dece
mov dword [esp + 0x18], 0x31
mov ecx, dword [eax + 8]
lea esi, [eax + 4]
mov dword [esp + 0x1c], ecx
mov edx, dword [esi]
mov dword [esp + 0x38], edx
mov eax, dword [esi]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenW]
lea ecx, [esp + 0x14]
push ecx
push 1
push ebp
push ebx
mov dword [esp + 0x4c], eax
mov dword [esp + 0x44], 0
call dword [sym.imp.USER32.dll_SetMenuItemInfoW]
mov edx, dword [esi]
push edx
call fcn.0049e9ee
push edi
mov dword [edi], 0x6666
call fcn.0049e3c8
mov esi, dword [esp + 0x18]
add esp, 8
push ebx
inc ebp
call dword [sym.imp.USER32.dll_GetMenuItemCount]
cmp ebp, eax
jl 0x44ddf4
jmp 0x44ddc0
pop ebp
mov eax, dword [esp + 0x164]
pop edi
pop esi
mov dword [eax], 0
mov eax, 1
pop ebx
add esp, 0x148
ret 0x10
Function at 0x44f570
Capabilities:
Log keystrokes via polling

Disassembly:
push esi
push edi
mov edi, dword [esp + 0x18]
mov esi, ecx
mov dword [edi], 0
mov eax, dword [esi + 0xa8]
cmp eax, 0x12
je 0x44f5a7
cmp eax, 0x79
jne 0x44f59a
push 0x10
call dword [sym.imp.USER32.dll_GetKeyState]
test al, al
jns 0x44f5a7
cmp dword [esi + 0xa8], 0x20
jne 0x44f63d
cmp dword [esp + 0x10], 0xf100
jne 0x44f63d
call dword [sym.imp.USER32.dll_GetFocus]
cmp eax, dword [esi + 4]
jne 0x44f5e8
mov ecx, esi
call fcn.0044e770
mov eax, dword [esi + 4]
push 0
push 0xffffffffffffffff
push 0x448
push eax
call dword [sym.imp.USER32.dll_PostMessageW]
and byte [esi + 0x84], 0xbf
pop edi
xor eax, eax
pop esi
ret 0x10
mov eax, dword [esi + 0xa8]
cmp eax, 0x20
je 0x44f63d
test byte [esi + 0x84], 0x40
jne 0x44f632
mov al, byte [esi + 0x85]
test al, 2
je 0x44f617
test al, 4
jne 0x44f617
test al, 8
je 0x44f617
push 1
mov ecx, esi
call fcn.0044d810
mov ecx, esi
call fcn.0044cd20
mov dword [edi], 1
and byte [esi + 0x84], 0xbf
pop edi
xor eax, eax
pop esi
ret 0x10
cmp eax, 0x20
je 0x44f63d
mov dword [edi], 1
and byte [esi + 0x84], 0xbf
pop edi
xor eax, eax
pop esi
ret 0x10
Function at 0x451070
Capabilities:
Capture webcam image

Disassembly:
push ebx
mov ebx, dword [esp + 0xc]
mov eax, dword [ebx]
push esi
mov esi, ecx
cmp eax, dword [esi + 4]
je 0x451093
mov ecx, dword [esp + 0x14]
pop esi
mov dword [ecx], 0
mov eax, 1
pop ebx
ret 0xc
push edi
mov edi, dword [sym.imp.USER32.dll_GetFocus]
call edi
cmp eax, dword [esi + 4]
je 0x4510c2
test byte [esi + 0x58], 4
je 0x4510b8
cmp dword [esi + 0xac], 0
jne 0x4510b8
call edi
mov dword [esi + 0xac], eax
mov edx, dword [esi + 4]
push edx
call dword [sym.imp.USER32.dll_SetFocus]
mov eax, dword [ebx + 0xc]
push 0
push eax
mov eax, dword [esi + 4]
push 0x419
push eax
call dword [sym.imp.USER32.dll_SendMessageW]
and byte [esi + 0x84], 0xcf
push 1
push eax
mov ecx, esi
call fcn.00450cb0
pop edi
pop esi
xor eax, eax
pop ebx
ret 0xc

Function at 0x451e60
Capabilities:
Log keystrokes via polling

Disassembly:
push esi
mov esi, ecx
push edi
test esi, esi
je 0x451e6d
lea edi, [esi - 0x24]
jmp 0x451e6f
xor edi, edi
push 0x10
call dword [sym.imp.USER32.dll_GetKeyState]
mov ecx, 0x8000
and ax, cx
mov edx, ecx
xor ecx, ecx
cmp ax, dx
setne cl
mov eax, ecx
mov ecx, dword [esi + 4]
mov dword [esi + 0x1c], eax
cmp dword [ecx - 8], 0
jne 0x451ea8
lea ecx, [edi + 0x24]
push 1
call fcn.0044b7b0
pop edi
xor eax, eax
pop esi
ret 0x10
mov edx, dword [esi + 0x18]
push eax
mov eax, dword [esi + 0x14]
push edx
push eax
add edi, 0x24
push ecx
mov ecx, edi
call fcn.00447bd0
test eax, eax
jne 0x451ede
mov esi, dword [esi + 4]
test edi, edi
je 0x451ecc
lea eax, [edi - 0x24]
jmp 0x451ece
xor eax, eax
push esi
lea ecx, [eax + 0x24]
mov dword [edi + 0x10], 1
call fcn.0044c3c0
pop edi
xor eax, eax
pop esi
ret 0x10

Function at 0x452230
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
mov ebx, dword [esp + 8]
push edi
mov edi, dword [esp + 0x10]
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
jne 0x452249
pop edi
pop ebx
ret
push esi
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x452282
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, dword [esp + 0x18]
add eax, esi
and ecx, 0xf
jbe 0x45227e
lea ebx, [ebx]
cmp esi, eax
jae 0x452282
dec ecx
movzx edx, word [esi]
lea esi, [esi + edx*2 + 2]
jne 0x452270
cmp esi, eax
jb 0x452288
pop esi
pop edi
xor eax, eax
pop ebx
ret
movzx eax, word [esi]
neg eax
sbb eax, eax
and eax, esi
pop esi
pop edi
pop ebx
ret

Function at 0x452320
Capabilities:
Query or enumerate registry value

Disassembly:
mov eax, dword [esp + 0xc]
mov edx, dword [esp + 8]
push eax
push edx
mov edx, dword [esp + 0xc]
lea eax, [esp + 0x14]
push eax
mov eax, dword [ecx]
push 0
push edx
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x452351
mov eax, dword [esp + 0xc]
sub eax, 3
neg eax
sbb eax, eax
and eax, 0xd
ret 0xc
Function at 0x452360
Capabilities:
Query or enumerate registry value

Disassembly:
push esi
mov esi, dword [esp + 0xc]
push edi
mov edi, dword [esp + 0x14]
mov eax, dword [edi]
add eax, eax
lea edx, [esp + 0x14]
push edx
mov edx, dword [esp + 0x10]
push esi
mov dword [esp + 0x1c], eax
lea eax, [esp + 0x18]
push eax
push 0
mov dword [edi], 0
mov eax, dword [ecx]
push edx
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x4523d6
mov eax, dword [esp + 0x10]
cmp eax, 1
je 0x4523a5
cmp eax, 2
jne 0x4523c1
mov eax, dword [esp + 0x14]
test esi, esi
je 0x4523d0
test eax, eax
je 0x4523cb
test al, 1
jne 0x4523c1
mov ecx, eax
shr ecx, 1
cmp word [esi + ecx*2 - 2], 0
je 0x4523d0
pop edi
mov eax, 0xd
pop esi
ret 0xc
xor edx, edx
mov word [esi], dx
shr eax, 1
mov dword [edi], eax
xor eax, eax
pop edi
pop esi
ret 0xc

Function at 0x452400
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov ecx, dword [esp + 4]
mov eax, dword [0x4de188]
push esi
push 2
push ecx
push eax
mov esi, eax
call dword [sym.imp.KERNEL32.dll_FindResourceW]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
xor edx, edx
cmp word [eax + 0xe], 0x20
pop esi
sete al
ret
Function at 0x453090
Capabilities:
Check os version

Disassembly:
mov eax, dword [esp + 0x10]
sub esp, 0x174
push ebp
mov ebp, dword [esp + 0x180]
mov dword [eax], 0
test ebp, ebp
jne 0x4530b9
lea eax, [ebp + 1]
pop ebp
add esp, 0x174
ret 0x10
push esi
mov esi, dword [ecx + 0x10]
test esi, esi
jne 0x4530cf
lea eax, [esi + 1]
pop esi
pop ebp
add esp, 0x174
ret 0x10
push ebx
mov ebx, dword [ecx + 0xc]
movzx eax, word [ebx]
mov ecx, 0xffff
cmp ax, cx
je 0x45323b
push edi
test byte [ebx + 2], 1
je 0x453222
mov edx, 0x4000
movzx edi, ax
test word [esi], dx
je 0x45310f
push 0
push 0xffffffffffffffff
push ebp
call dword [sym.imp.USER32.dll_SetMenuDefaultItem]
mov eax, 0xbfff
and word [esi], ax
push 0x30
lea ecx, [esp + 0x14]
push 0
push ecx
call fcn.0049e6e0
push 0x110
lea edx, [esp + 0x84]
push 0
push edx
mov dword [esp + 0x28], 0x30
mov dword [esp + 0x88], 0x114
call fcn.0049e6e0
add esp, 0x18
lea eax, [esp + 0x70]
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
je 0x45316b
mov eax, dword [esp + 0x74]
cmp eax, 5
jae 0x453173
cmp eax, 4
jne 0x45316b
cmp dword [esp + 0x78], 0x5a
jae 0x453173
mov dword [esp + 0x10], 0x2c
movzx eax, word [esi]
mov dword [esp + 0x14], 1
mov dword [esp + 0x20], edi
test eax, 0x100
je 0x45318e
or dword [esp + 0x1c], 3
test eax, 0x200
je 0x45319a
or dword [esp + 0x1c], 8
test eax, 0x1000
je 0x4531a9
or dword [esp + 0x1c], 0x1000
test eax, 0x2000
je 0x4531f2
lea ecx, [esp + 0x40]
call fcn.004417d0
lea ecx, [esp + 0x40]
push ecx
push 0
push edi
push ebp
mov dword [esp + 0x54], 0x10
mov dword [esp + 0x60], edi
call dword [sym.imp.USER32.dll_GetMenuItemInfoW]
test eax, eax
je 0x4531f2
mov edx, dword [esp + 0x48]
mov eax, dword [esi + 4]
or dword [esp + 0x14], 0x10
and edx, 0xfffff7fb
or dword [esp + 0x18], edx
mov dword [esp + 0x34], eax
lea ecx, [esp + 0x10]
push ecx
push 0
push edi
push ebp
call dword [sym.imp.USER32.dll_SetMenuItemInfoW]
mov edx, 0x800
test word [esi], dx
je 0x453222
movzx eax, word [ebx]
movzx ecx, word [esi + 6]
movzx edx, word [esi + 4]
push 0
push eax
push ecx
push edx
push ebp
call dword [sym.imp.USER32.dll_CheckMenuRadioItem]
movzx eax, word [ebx + 4]
add ebx, 4
mov ecx, 0xffff
add esi, 8
cmp ax, cx
jne 0x4530e5
pop edi
pop ebx
pop esi
xor eax, eax
pop ebp
add esp, 0x174
ret 0x10
Function at 0x4532b0
Capabilities:
Set registry value

Disassembly:
sub esp, 0xc
mov ecx, dword [ecx]
push ebx
push esi
movzx esi, byte [esp + 0x18]
push edi
xor ebx, ebx
push ebx
push ebx
push 0x2001f
push ebx
push ebx
push str.Ribbon
push ecx
lea ecx, [esp + 0x28]
mov dword [esp + 0x28], ebx
mov dword [esp + 0x2c], ebx
mov dword [esp + 0x30], ebx
call fcn.00443020
mov edi, eax
cmp edi, ebx
je 0x453307
mov eax, dword [esp + 0xc]
cmp eax, ebx
je 0x453377
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, edi
pop edi
pop esi
pop ebx
add esp, 0xc
ret 8
push ebp
mov ebp, dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
push 4
lea eax, [esp + 0x24]
push eax
push 4
push ebx
mov ebx, dword [esp + 0x20]
push 0x4be678
push ebx
mov dword [esp + 0x38], esi
call ebp
mov edi, eax
test edi, edi
jne 0x45336b
mov esi, dword [esp + 0x24]
test esi, esi
je 0x45336b
push esi
call dword [sym.imp.KERNEL32.dll_GlobalLock]
mov edi, eax
test edi, edi
je 0x453363
push esi
call dword [sym.imp.KERNEL32.dll_GlobalSize]
push eax
push edi
push 3
push 0
push str.Settings
push ebx
call ebp
push esi
mov edi, eax
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
jmp 0x45336b
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
test ebx, ebx
je 0x453376
push ebx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop ebp
mov eax, edi
pop edi
pop esi
pop ebx
add esp, 0xc
ret 8
Function at 0x453390
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 0x1c
mov ecx, dword [ecx]
push ebp
push esi
push 0x2001f
push str.Ribbon
xor ebp, ebp
push ecx
lea ecx, [esp + 0x24]
mov dword [esp + 0x24], ebp
mov dword [esp + 0x28], ebp
mov dword [esp + 0x2c], ebp
call fcn.004430d0
mov esi, eax
cmp esi, ebp
je 0x4533dc
mov eax, dword [esp + 0x18]
cmp eax, ebp
je 0x4534c1
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
pop esi
pop ebp
add esp, 0x1c
ret 8
mov esi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push ebx
mov ebx, dword [esp + 0x1c]
push edi
lea eax, [esp + 0x18]
push eax
lea ecx, [esp + 0x18]
push ecx
lea edx, [esp + 0x24]
push edx
push ebp
push 0x4be678
mov edi, 4
push ebx
mov dword [esp + 0x2c], 0xffff
mov dword [esp + 0x30], edi
call esi
cmp eax, ebp
jne 0x4534b2
cmp dword [esp + 0x1c], edi
je 0x453427
lea esi, [edi + 9]
jmp 0x4534b4
cmp dword [esp + 0x14], 1
mov ecx, dword [esp + 0x30]
sete al
lea edx, [esp + 0x10]
push edx
push ebp
mov byte [ecx], al
lea eax, [esp + 0x38]
push eax
push ebp
push str.Settings
push ebx
mov dword [esp + 0x28], ebp
call esi
cmp eax, ebp
jne 0x4534b2
cmp dword [esp + 0x30], 3
je 0x45345f
mov esi, 0xd
jmp 0x4534b4
mov ecx, dword [esp + 0x10]
push ecx
push 0x42
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov edi, dword [esp + 0x34]
mov dword [edi], eax
cmp eax, ebp
je 0x4534ac
push eax
call dword [sym.imp.KERNEL32.dll_GlobalLock]
cmp eax, ebp
je 0x453497
lea edx, [esp + 0x10]
push edx
push eax
push str.Settings
lea ecx, [esp + 0x2c]
call fcn.00452320
jmp 0x4534b2
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
mov eax, dword [edi]
push eax
call dword [sym.imp.KERNEL32.dll_GlobalFree]
mov dword [edi], ebp
jmp 0x4534b4
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
cmp ebx, ebp
je 0x4534bf
push ebx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
pop ebx
mov eax, esi
pop esi
pop ebp
add esp, 0x1c
ret 8

Function at 0x453d20
Capabilities:
Check os version

Disassembly:
sub esp, 0x114
push esi
push edi
test ecx, ecx
je 0x453d31
lea edi, [ecx - 0x34]
jmp 0x453d33
xor edi, edi
mov eax, dword [ecx + 0x3c]
mov ecx, dword [eax]
mov edx, dword [ecx + 0x10]
push eax
call edx
push 0x110
mov esi, eax
lea eax, [esp + 0x10]
push 0
push eax
mov dword [esp + 0x14], 0x114
call fcn.0049e6e0
add esp, 0xc
lea ecx, [esp + 8]
push ecx
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
je 0x453d79
cmp dword [esp + 0xc], 6
jne 0x453d79
cmp dword [esp + 0x10], 1
jae 0x453d87
mov edx, dword [edi + 4]
push 1
push 0
push edx
call dword [sym.imp.USER32.dll_SetWindowRgn]
pop edi
mov eax, esi
pop esi
add esp, 0x114
ret