joyce8/EMBER2024-capa huggingface dataset:
Function at 0x459fe0
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push ebx
push esi
push edi
mov esi, dword [ebp + 0x10]
push 0xf00021
mov edx, dword [esi + 4]
mov ecx, dword [esi]
mov eax, dword [esi + 0xc]
sub eax, edx
push eax
mov eax, dword [esi + 8]
sub eax, ecx
push eax
push edx
push ecx
mov ecx, dword [ebp + 0xc]
push ecx
call dword [sym.imp.GDI32.dll_PatBlt]
mov edi, dword [ebp + 8]
push edi
call dword [sym.imp.USER32.dll_GetWindowTextLengthA]
mov ebx, eax
lea eax, [eax + 5]
add eax, 3
and eax, 0xfffffffc
call fcn.00448e60
mov dword [ebp - 4], esp
cmp dword [ebp - 4], 0
je 0x45a0ab
add ebx, 2
mov eax, dword [ebp - 4]
push ebx
push eax
push edi
call dword [sym.imp.USER32.dll_GetWindowTextA]
test eax, eax
je 0x45a0ab
mov bx, 0x140
mov edi, dword [ebp + 0x14]
mov eax, edi
and al, 0xf
cmp al, 0xc
je 0x45a05e
mov ebx, edi
and bx, 0xf
or bx, 0x150
test edi, 0x80
je 0x45a069
or bh, 8
and edi, 0x8000000
je 0x45a084
mov eax, dword [0x4aa5dc]
mov ecx, dword [ebp + 0xc]
push eax
push ecx
call dword [sym.imp.GDI32.dll_SetTextColor]
mov dword [ebp - 8], eax
mov ecx, dword [ebp - 4]
mov edx, dword [ebp + 0xc]
movzx eax, bx
push eax
push esi
push 0xffffffffffffffff
push ecx
push edx
call dword [sym.imp.USER32.dll_DrawTextA]
test edi, edi
je 0x45a0ab
mov eax, dword [ebp - 8]
mov ecx, dword [ebp + 0xc]
push eax
push ecx
call dword [sym.imp.GDI32.dll_SetTextColor]
lea esp, [ebp - 0x14]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x45a480
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov eax, dword [esp + 8]
sub esp, 4
push ebx
push esi
mov esi, dword [esp + 0x10]
push edi
push ebp
push 2
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov edi, eax
test edi, edi
jne 0x45a4ab
xor eax, eax
pop ebp
pop edi
pop esi
pop ebx
add esp, 4
ret 0x20
push edi
push esi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ebx, eax
push edi
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov esi, eax
test esi, esi
jne 0x45a4cf
xor eax, eax
pop ebp
pop edi
pop esi
pop ebx
add esp, 4
ret 0x20
push ebx
push 0x40
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov ebp, eax
test ebp, ebp
jne 0x45a4ea
xor eax, eax
pop ebp
pop edi
pop esi
pop ebx
add esp, 4
ret 0x20
mov edi, ebp
mov ecx, ebx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov eax, dword [esp + 0x20]
xor ecx, ecx
mov cl, ah
mov edx, eax
mov dword [esp + 0x10], 0
shl ecx, 8
shr edx, 0x10
mov byte [esp + 0x10], dl
xor edx, edx
or ecx, dword [esp + 0x10]
mov dl, al
shl edx, 0x10
mov eax, dword [esp + 0x28]
or ecx, edx
mov edx, eax
shr edx, 0x10
mov dword [ebp + 0x28], ecx
mov dword [esp + 0x10], 0
xor ecx, ecx
mov byte [esp + 0x10], dl
mov cl, ah
xor edx, edx
shl ecx, 8
mov dl, al
shl edx, 0x10
or ecx, dword [esp + 0x10]
or ecx, edx
mov eax, dword [esp + 0x24]
mov edx, eax
mov dword [ebp + 0x44], ecx
shr edx, 0x10
xor ecx, ecx
mov dword [esp + 0x10], 0
mov cl, ah
mov byte [esp + 0x10], dl
shl ecx, 8
xor edx, edx
or ecx, dword [esp + 0x10]
mov dl, al
shl edx, 0x10
mov eax, dword [esp + 0x2c]
or ecx, edx
xor edx, edx
mov dl, al
mov dword [ebp + 0x48], ecx
shl edx, 0x10
xor ecx, ecx
mov cl, ah
shl ecx, 8
shr eax, 0x10
or ecx, edx
xor edx, edx
mov dl, al
mov eax, dword [esp + 0x30]
or ecx, edx
xor edx, edx
mov dl, al
mov dword [ebp + 0x64], ecx
shl edx, 0x10
xor ecx, ecx
mov cl, ah
shl ecx, 8
shr eax, 0x10
or ecx, edx
xor edx, edx
mov dl, al
mov eax, dword [esp + 0x34]
or ecx, edx
xor edx, edx
mov dl, al
mov dword [ebp + 0x54], ecx
shl edx, 0x10
xor ecx, ecx
mov cl, ah
shl ecx, 8
push 0
shr eax, 0x10
or ecx, edx
xor edx, edx
mov dl, al
or ecx, edx
mov dword [ebp + 0x50], ecx
call dword [sym.imp.USER32.dll_GetDC]
mov edi, eax
push 0
push ebp
lea ecx, [ebp + 0x68]
push ecx
push 4
push ebp
push edi
call dword [sym.imp.GDI32.dll_CreateDIBitmap]
mov esi, eax
push edi
push 0
call dword [sym.imp.USER32.dll_ReleaseDC]
push ebp
call dword [sym.imp.KERNEL32.dll_GlobalFree]
mov eax, esi
pop ebp
pop edi
pop esi
pop ebx
add esp, 4
ret 0x20

Function at 0x45a75a
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push dword [esp + 4]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x45a77a
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.0044a445
pop ecx
or eax, 0xffffffff
ret
test al, 1
je 0x45a79d
test byte [esp + 8], 2
je 0x45a79d
call fcn.0044a4b8
mov dword [eax], 0xd
call fcn.0044a4c1
mov dword [eax], 5
jmp 0x45a776
xor eax, eax
ret
Function at 0x45de2a
Capabilities:
Get graphical window text

Disassembly:
push esi
mov esi, ecx
mov ecx, dword [esi + 0x38]
test ecx, ecx
jne 0x45de62
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextLengthA]
lea ecx, [eax + 1]
push ecx
mov ecx, dword [esp + 0xc]
push eax
call fcn.0046185f
push eax
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextA]
mov ecx, dword [esp + 8]
push 0xffffffffffffffff
call fcn.00461837
jmp 0x45de6e
mov eax, dword [ecx]
push dword [esp + 8]
call dword [eax + 0x88]
pop esi
ret 4

Function at 0x45f7ca
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
push esi
push edi
xor edi, edi
cmp dword [esp + 0x10], edi
mov ebx, ecx
je 0x45f80c
call fcn.004749ef
mov esi, dword [eax + 0xc]
push 0xf0
push dword [esp + 0x14]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
cmp eax, edi
je 0x45f80c
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, edi
jne 0x45f803
xor eax, eax
jmp 0x45f814
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
push edi
mov ecx, ebx
call fcn.0045f81a
pop edi
pop esi
pop ebx
ret 4

Function at 0x473e18
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push esi
mov dword [ebp - 8], ecx
call fcn.004749ef
mov esi, dword [eax + 0xc]
push 0xf1
push dword [ebp + 8]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
test eax, eax
je 0x473e55
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x473e55
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
jne 0x473e59
xor eax, eax
jmp 0x473ed7
movzx eax, word [esi + 6]
push ebx
push edi
shl eax, 2
push eax
call fcn.0045cf19
and dword [ebp - 4], 0
cmp word [esi + 6], 0
pop ecx
mov ebx, eax
jbe 0x473e91
mov ecx, ebx
lea eax, [esi + 8]
movzx edx, word [eax]
inc dword [ebp - 4]
mov dword [ecx], edx
movzx edx, word [esi + 6]
inc eax
add ecx, 4
inc eax
cmp dword [ebp - 4], edx
jl 0x473e7b
movzx eax, word [esi + 6]
mov ecx, dword [ebp - 8]
push eax
push ebx
call fcn.00473fc8
push ebx
mov edi, eax
call fcn.0045cf42
test edi, edi
pop ecx
je 0x473ed3
movzx ecx, word [esi + 4]
movzx eax, word [esi + 2]
lea esi, [ecx + 7]
push ecx
mov ecx, dword [ebp - 8]
lea edx, [eax + 7]
push eax
push esi
push edx
call fcn.00473d91
push dword [ebp + 8]
mov ecx, dword [ebp - 8]
call fcn.00473edc
mov edi, eax
mov eax, edi
pop edi
pop ebx
pop esi
leave
ret 4
Function at 0x476278
Capabilities:
Get thread local storage value

Disassembly:
push ebx
push esi
mov esi, ecx
lea ebx, [esi + 0x1c]
push ebx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp dword [esp + 0x10], 0
jne 0x4762a6
push dword [esi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x4762c4
push dword [esp + 0xc]
mov ecx, esi
push eax
call fcn.004761de
jmp 0x4762c4
mov eax, dword [esi + 0x14]
test eax, eax
je 0x4762c4
push edi
push dword [esp + 0x10]
mov edi, dword [eax + 4]
mov ecx, esi
push eax
call fcn.004761de
test edi, edi
mov eax, edi
jne 0x4762ae
pop edi
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop esi
pop ebx
ret 8
Function at 0x47d1a0
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 0x10
push ebx
push ebp
push esi
lea eax, [esp + 0xc]
push edi
push eax
xor ebp, ebp
xor ebx, ebx
push str.SystemCurrentControlSetControlProductOptions
push reloc.OLEAUT32.dll_SysReAllocString
mov dword [esp + 0x28], ebx
mov dword [esp + 0x1c], ebp
mov dword [esp + 0x24], ebp
mov dword [esp + 0x20], ebp
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
test eax, eax
jne 0x47d275
mov eax, dword [esp + 0x10]
mov esi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
lea ecx, [esp + 0x14]
lea edx, [esp + 0x18]
push ecx
push ebp
push edx
push ebp
push str.ProductSuite
push eax
call esi
test eax, eax
jne 0x47d275
mov eax, dword [esp + 0x14]
cmp eax, ebp
je 0x47d275
push eax
push 0x40
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
mov edi, eax
cmp edi, ebp
je 0x47d275
mov eax, dword [esp + 0x10]
lea ecx, [esp + 0x14]
push ecx
lea edx, [esp + 0x1c]
push edi
push edx
push ebp
push str.ProductSuite
push eax
call esi
test eax, eax
jne 0x47d268
cmp dword [esp + 0x18], 7
jne 0x47d268
mov al, byte [edi]
mov esi, edi
test al, al
je 0x47d268
mov ebp, dword [esp + 0x24]
mov ebx, dword [sym.imp.KERNEL32.dll_lstrcmpA]
push ebp
push esi
call ebx
test eax, eax
je 0x47d260
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenA]
lea esi, [esi + eax + 1]
cmp byte [esi], 0
jne 0x47d246
jmp 0x47d268
mov dword [esp + 0x1c], 1
push edi
call dword [sym.imp.KERNEL32.dll_LocalFree]
mov ebx, dword [esp + 0x1c]
xor ebp, ebp
mov eax, dword [esp + 0x10]
cmp eax, ebp
je 0x47d284
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
pop esi
mov eax, ebx
pop ebp
pop ebx
add esp, 0x10
ret
Function at 0x47d290
Capabilities:
Check os version
Query or enumerate registry value

Disassembly:
sub esp, 0xf4
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_GetVersionExA]
push esi
push edi
mov ecx, 0x27
xor eax, eax
lea edi, [esp + 0x14]
xor esi, esi
rep stosd dword es:[edi], eax
lea eax, [esp + 0x14]
mov dword [esp + 0x14], 0x9c
push eax
call ebx
mov edi, eax
test edi, edi
jne 0x47d2e0
lea ecx, [esp + 0x14]
mov dword [esp + 0x14], 0x94
push ecx
call ebx
test eax, eax
jne 0x47d2e0
pop edi
pop esi
pop ebx
add esp, 0xf4
ret
mov eax, dword [esp + 0x24]
sub eax, 0
je 0x47d3d0
dec eax
je 0x47d3b7
dec eax
jne 0x47d3d2
test edi, edi
je 0x47d31b
mov al, byte [esp + 0xae]
xor edx, edx
cmp al, 1
pop edi
setne dl
mov esi, edx
mov eax, esi
pop esi
pop ebx
add esp, 0xf4
ret
lea eax, [esp + 0xc]
push eax
push 1
push 0
push str.SYSTEMCurrentControlSetControlProductOptions
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov eax, dword [esp + 0xc]
lea ecx, [esp + 0x10]
lea edx, [esp + 0xb0]
push ecx
push edx
push 0
push 0
push str.ProductType
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov ecx, dword [esp + 0xc]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov edi, dword [sym.imp.KERNEL32.dll_lstrcmpiA]
lea edx, [esp + 0xb0]
push edx
push str.WINNT
call edi
test eax, eax
jne 0x47d37b
xor esi, esi
lea eax, [esp + 0xb0]
push eax
push str.LANMANNT
call edi
test eax, eax
jne 0x47d393
mov esi, 1
lea ecx, [esp + 0xb0]
push ecx
push str.SERVERNT
call edi
test eax, eax
jne 0x47d3d2
mov esi, 1
pop edi
mov eax, esi
pop esi
pop ebx
add esp, 0xf4
ret
cmp dword [esp + 0x18], 4
jne 0x47d3d2
mov eax, dword [esp + 0x1c]
test eax, eax
je 0x47d3d0
cmp eax, 0xa
je 0x47d3d0
cmp eax, 0x5a
jne 0x47d3d2
xor esi, esi
mov eax, esi
pop edi
pop esi
pop ebx
add esp, 0xf4
ret
Function at 0x4017e0
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x452f33
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push ebx
push esi
push edi
mov esi, ecx
xor edi, edi
mov dword [esp + 0xc], esi
mov dword [esi], vtable.CMenu.0
mov dword [esi + 4], edi
lea ebx, [esi + 8]
mov dword [esp + 0x18], edi
mov ecx, ebx
call fcn.004405b7
mov dword [ebx], method.CPtrArray.virtual_0
lea ebx, [esi + 0x1c]
mov byte [esp + 0x18], 1
mov ecx, ebx
call fcn.004405b7
or eax, 0xffffffff
push 0x471e38
mov dword [ebx], method.CPtrArray.virtual_0
push edi
mov dword [esi], 0x4587dc
mov dword [esi + 0x54], edi
mov dword [esi + 0x40], edi
mov dword [esi + 0x30], 0x10
mov dword [esi + 0x34], 0xf
mov dword [esi + 0x4c], eax
mov dword [esi + 0x50], eax
mov dword [esi + 0x44], edi
mov dword [esi + 0x48], edi
mov dword [esi + 0x38], 0xc0c0c0
mov dword [esi + 0x3c], edi
call dword [sym.imp.KERNEL32.dll_GetCPInfo]
mov ecx, dword [esp + 0x10]
mov dword [esi + 0x58], edi
mov eax, esi
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0x10
ret
Function at 0x404e30
Capabilities:
Check for peb beingdebugged flag

Disassembly:
push 0xffffffffffffffff
push 0x453380
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x10
push ebx
push ebp
xor eax, eax
push esi
push edi
mov dword [esp + 0x14], eax
mov dword [esp + 0x10], vtable.CPen.0
mov ecx, dword [esp + 0x3c]
mov dword [esp + 0x28], eax
push ecx
push eax
push eax
call dword [sym.imp.GDI32.dll_CreatePen]
push eax
lea ecx, [esp + 0x14]
call fcn.0044839f
mov esi, dword [esp + 0x30]
lea edx, [esp + 0x10]
push edx
mov ecx, esi
call fcn.00447a1b
mov edi, dword [esp + 0x38]
mov ebx, dword [esp + 0x34]
mov dword [esp + 0x3c], eax
mov ecx, esi
lea eax, [edi + 2]
push eax
lea eax, [esp + 0x1c]
push ebx
push eax
call fcn.00447eb0
lea eax, [edi + 5]
mov ecx, esi
push eax
push ebx
call fcn.00447efc
lea ebp, [edi + 3]
lea eax, [ebx + 1]
push ebp
lea ecx, [esp + 0x1c]
push eax
push ecx
mov ecx, esi
call fcn.00447eb0
lea eax, [edi + 6]
mov ecx, esi
push eax
lea eax, [ebx + 1]
push eax
call fcn.00447efc
lea eax, [edi + 4]
lea ecx, [ebx + 2]
push eax
lea edx, [esp + 0x1c]
push ecx
push edx
mov ecx, esi
call fcn.00447eb0
lea eax, [edi + 7]
mov ecx, esi
push eax
lea eax, [ebx + 2]
push eax
call fcn.00447efc
lea eax, [ebx + 3]
push ebp
lea ecx, [esp + 0x1c]
push eax
push ecx
mov ecx, esi
call fcn.00447eb0
lea eax, [edi + 6]
mov ecx, esi
push eax
lea eax, [ebx + 3]
push eax
call fcn.00447efc
lea eax, [edi + 2]
lea ecx, [ebx + 4]
push eax
lea edx, [esp + 0x1c]
push ecx
push edx
mov ecx, esi
call fcn.00447eb0
lea eax, [edi + 5]
mov ecx, esi
push eax
lea eax, [ebx + 4]
push eax
call fcn.00447efc
lea ecx, [edi + 1]
lea eax, [ebx + 5]
push ecx
lea edx, [esp + 0x1c]
push eax
push edx
mov ecx, esi
call fcn.00447eb0
lea eax, [edi + 4]
mov ecx, esi
push eax
lea eax, [ebx + 5]
push eax
call fcn.00447efc
add ebx, 6
push edi
lea eax, [esp + 0x1c]
push ebx
push eax
mov ecx, esi
call fcn.00447eb0
push ebp
push ebx
mov ecx, esi
call fcn.00447efc
mov ecx, dword [esp + 0x3c]
push ecx
mov ecx, esi
call fcn.00447a1b
lea ecx, [esp + 0x10]
call fcn.004483f6
mov dword [esp + 0x10], vtable.CGdiObject.0
lea ecx, [esp + 0x10]
mov dword [esp + 0x28], 1
call fcn.004483f6
mov ecx, dword [esp + 0x20]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x1c
ret 0x10
Function at 0x405f80
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push 0xffffffffffffffff
push 0x453510
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x18
push ebx
push ebp
push esi
mov esi, dword [esp + 0x38]
mov eax, esi
mov ebp, ecx
push edi
xor edi, edi
mov ecx, dword [eax]
mov dword [esp + 0x14], edi
mov dword [esp + 0x18], ecx
mov dword [esp + 0x10], vtable.CBrush.0
mov edx, dword [eax + 4]
mov dword [esp + 0x1c], edx
mov ecx, dword [eax + 8]
mov dword [esp + 0x20], ecx
mov edx, dword [eax + 0xc]
mov dword [esp + 0x24], edx
mov dword [esp + 0x30], edi
call fcn.00401940
test eax, eax
je 0x405fde
push 0xf
jmp 0x405fe0
push 4
mov ebx, dword [sym.imp.USER32.dll_GetSysColor]
call ebx
cmp dword [esp + 0x40], edi
jne 0x406001
push 0x3fe33333
push 0x33333333
push eax
call fcn.00402850
add esp, 0xc
push eax
call dword [sym.imp.GDI32.dll_CreateSolidBrush]
push eax
lea ecx, [esp + 0x14]
call fcn.0044839f
mov edi, dword [esp + 0x14]
lea eax, [esp + 0x10]
neg eax
sbb eax, eax
and eax, edi
mov edi, dword [esp + 0x38]
push eax
lea eax, [esp + 0x1c]
mov ecx, dword [edi + 4]
push eax
push ecx
call dword [sym.imp.USER32.dll_FillRect]
lea ecx, [esp + 0x10]
call fcn.004483f6
call fcn.00401930
test eax, eax
je 0x406059
mov eax, dword [edi + 4]
push 0xf
lea edx, [esp + 0x1c]
push 2
push edx
push eax
call dword [sym.imp.USER32.dll_DrawEdge]
mov eax, dword [esp + 0x44]
push 7
test eax, eax
jne 0x40607d
call ebx
mov ecx, dword [esi + 4]
mov edx, dword [esi]
add ecx, 4
push eax
add edx, 4
push ecx
push edx
push edi
mov ecx, ebp
call fcn.00404e30
jmp 0x406095
call ebx
mov ecx, dword [esi]
push eax
mov eax, dword [esi + 4]
add ecx, 5
add eax, 4
push eax
push ecx
push edi
mov ecx, ebp
call fcn.00404d10
mov dword [esp + 0x10], vtable.CGdiObject.0
lea ecx, [esp + 0x10]
mov dword [esp + 0x30], 1
call fcn.004483f6
mov ecx, dword [esp + 0x28]
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
mov dword fs:[0], ecx
add esp, 0x24
ret 0x10

Function at 0x4065e0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
push ebp
push esi
push edi
call fcn.0044f02d
mov edi, dword [esp + 0x14]
mov ebx, dword [eax + 0xc]
mov ebp, dword [sym.imp.KERNEL32.dll_FindResourceA]
and edi, 0xffff
push 2
push edi
push ebx
call ebp
mov esi, eax
test esi, esi
jne 0x40661b
xor ebx, ebx
push 2
push edi
push ebx
call ebp
mov esi, eax
test esi, esi
jne 0x40661b
pop edi
pop esi
pop ebp
pop ebx
ret
push esi
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
jne 0x40662c
pop edi
pop esi
pop ebp
pop ebx
ret
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
test eax, eax
jne 0x40663c
pop edi
pop esi
pop ebp
pop ebx
ret
push eax
call fcn.004065a0
add esp, 4
cmp ax, 0x10
je 0x406652
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
ret
push 0
push esi
push ebx
call fcn.004490ae
pop edi
pop esi
pop ebp
pop ebx
ret
Function at 0x406810
Capabilities:
Query or enumerate registry value

Disassembly:
mov eax, dword [0x471e58]
sub esp, 0x134
test eax, eax
jne 0x4068e5
lea eax, [esp]
mov dword [0x471e58], 1
push eax
push 0x20019
push 0
push str.SoftwareMicrosoftPlus_ThemesCurrent
push SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x4068e5
push esi
lea ecx, [esp + 0xc]
push edi
lea edx, [esp + 0x2c]
push ecx
mov ecx, dword [esp + 0xc]
lea eax, [esp + 0x10]
push edx
push eax
push 0
push 0
push ecx
mov dword [esp + 0x28], 0x104
mov dword [esp + 0x24], 1
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x4068d8
mov ecx, 5
mov esi, str.Windows_Classic.theme
lea edi, [esp + 0x14]
lea edx, [esp + 0x2c]
rep movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
mov edi, dword [sym.imp.KERNEL32.dll_lstrlenA]
push edx
call edi
mov esi, eax
lea eax, [esp + 0x14]
push eax
call edi
cmp esi, eax
jl 0x4068d8
lea ecx, [esp + 0x14]
lea edx, [esp + 0x14]
push ecx
push edx
call edi
sub esi, eax
lea eax, [esp + esi + 0x30]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpiA]
test eax, eax
jne 0x4068d8
mov dword [0x471e54], 1
mov ecx, dword [esp + 8]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
pop esi
mov eax, dword [0x471e54]
add esp, 0x134
ret
Function at 0x40d930
Capabilities:
Copy file

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x453d20
push eax
mov eax, dword [esp + 0x10]
mov dword fs:[0], esp
sub esp, 0x58
push ebx
or ebx, 0xffffffff
push esi
mov esi, ecx
test eax, eax
je 0x40d989
push edi
lea edi, [esi + 4]
push str..bak
lea eax, [esp + 0x78]
push edi
push eax
call fcn.00444e22
mov ecx, dword [esp + 0x74]
mov edi, dword [edi]
push 1
push ecx
push edi
call dword [sym.imp.KERNEL32.dll_CopyFileA]
lea ecx, [esp + 0x74]
mov dword [esp + 0x6c], ebx
call fcn.00444b8d
pop edi
push 1
lea ecx, [esp + 0xc]
call fcn.00435aa4
mov edx, dword [0x45f10c]
mov eax, dword [esi + 4]
push edx
push 0x82
push eax
lea ecx, [esp + 0x14]
mov dword [esp + 0x74], 1
call fcn.00435b96
mov eax, dword [esp + 8]
mov ecx, dword [eax + 4]
mov eax, dword [esp + ecx + 0xc]
cmp dword [eax + 0x4c], ebx
je 0x40da0d
mov eax, dword [esi + 0xc]
mov esi, dword [esi + 0x20]
push eax
push esi
lea ecx, [esp + 0x10]
call fcn.00436359
lea ecx, [esp + 8]
call fcn.00435bd8
lea ecx, [esp + 0x10]
mov dword [esp + 0x68], ebx
call fcn.00435b55
lea ecx, [esp + 0x10]
call fcn.00435ef8
pop esi
mov eax, 1
pop ebx
mov ecx, dword [esp + 0x58]
mov dword fs:[0], ecx
add esp, 0x64
ret 4
lea ecx, [esp + 0x10]
mov dword [esp + 0x68], ebx
call fcn.00435b55
lea ecx, [esp + 0x10]
call fcn.00435ef8
mov ecx, dword [esp + 0x60]
pop esi
xor eax, eax
pop ebx
mov dword fs:[0], ecx
add esp, 0x64
ret 4

Function at 0x40dd18
Capabilities:
Access peb ldr_data

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x453d58
push eax
mov dword fs:[0], esp
sub esp, 0x1c
push esi
mov esi, ecx
call fcn.0044f02d
mov ecx, dword [esp + 0x30]
mov eax, dword [eax + 8]
push 0x10
push 0
push 0
push 0
push ecx
push eax
call dword [sym.imp.USER32.dll_LoadImageA]
test eax, eax
jne 0x40dd4d
pop esi
mov ecx, dword [esp + 0x1c]
mov dword fs:[0], ecx
add esp, 0x28
ret 4
mov dword [esp + 8], 0
mov dword [esp + 4], 0x458808
push eax
lea ecx, [esp + 8]
mov dword [esp + 0x2c], 0
call fcn.0044839f
call dword [sym.imp.USER32.dll_GetDesktopWindow]
push eax
call fcn.004416d9
push eax
lea ecx, [esp + 0x10]
call fcn.004480f7
lea edx, [esp + 4]
lea eax, [esp + 0xc]
push edx
push eax
mov ecx, esi
mov byte [esp + 0x30], 1
call fcn.0040dab0
lea ecx, [esp + 4]
mov esi, eax
call fcn.004483f6
lea ecx, [esp + 0xc]
mov byte [esp + 0x28], 0
call fcn.00448169
mov dword [esp + 4], vtable.CGdiObject.0
lea ecx, [esp + 4]
mov dword [esp + 0x28], 2
call fcn.004483f6
mov ecx, dword [esp + 0x20]
mov eax, esi
pop esi
mov dword fs:[0], ecx
add esp, 0x28
ret 4
Function at 0x40de2e
Capabilities:
Access peb ldr_data

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x453d88
push eax
mov eax, dword [esp + 0x14]
mov dword fs:[0], esp
sub esp, 0x1c
test eax, eax
push esi
mov esi, ecx
jne 0x40de68
call fcn.0044f02d
mov ecx, dword [esp + 0x30]
mov eax, dword [eax + 8]
push 0x2000
push 0
push 0
push 0
push ecx
push eax
call dword [sym.imp.USER32.dll_LoadImageA]
test eax, eax
jne 0x40de68
pop esi
mov ecx, dword [esp + 0x1c]
mov dword fs:[0], ecx
add esp, 0x28
ret 8
mov dword [esp + 8], 0
mov dword [esp + 4], 0x458808
push eax
lea ecx, [esp + 8]
mov dword [esp + 0x2c], 0
call fcn.0044839f
call dword [sym.imp.USER32.dll_GetDesktopWindow]
push eax
call fcn.004416d9
push eax
lea ecx, [esp + 0x10]
call fcn.004480f7
lea edx, [esp + 4]
lea eax, [esp + 0xc]
push edx
push eax
mov ecx, esi
mov byte [esp + 0x30], 1
call fcn.0040dab0
lea ecx, [esp + 4]
mov esi, eax
call fcn.004483f6
lea ecx, [esp + 0xc]
mov byte [esp + 0x28], 0
call fcn.00448169
mov dword [esp + 4], vtable.CGdiObject.0
lea ecx, [esp + 4]
mov dword [esp + 0x28], 2
call fcn.004483f6
mov ecx, dword [esp + 0x20]
mov eax, esi
pop esi
mov dword fs:[0], ecx
add esp, 0x28
ret 8

Function at 0x40ecf0
Capabilities:
Create thread
Resume thread

Disassembly:
mov eax, dword [esp + 4]
push ebx
push ebp
push esi
test eax, eax
push edi
mov esi, ecx
je 0x40ed40
mov eax, dword [esi + 0x2a4]
xor edi, edi
test eax, eax
jle 0x40ed74
mov ebp, dword [sym.imp.KERNEL32.dll_CreateThread]
lea ebx, [esi + 0x114]
lea eax, [esp + 0x14]
push eax
push 0
push esi
push 0x40fce0
push 0
push 0
call ebp
mov dword [ebx], eax
mov eax, dword [esi + 0x2a4]
inc edi
add ebx, 4
cmp edi, eax
jl 0x40ed16
pop edi
pop esi
pop ebp
pop ebx
ret 4
mov eax, dword [esi + 0x2a4]
xor ebx, ebx
test eax, eax
jle 0x40ed74
mov ebp, dword [sym.imp.KERNEL32.dll_ResumeThread]
lea edi, [esi + 0x114]
mov ecx, dword [edi]
push ecx
call ebp
mov edx, dword [edi]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [esi + 0x2a4]
inc ebx
add edi, 4
cmp ebx, eax
jl 0x40ed58
pop edi
pop esi
pop ebp
pop ebx
ret 4