joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4041f0
Capabilities:
Delete registry value

Disassembly:
mov eax, dword [esp + 4]
test eax, eax
je 0x4042c0
push str.FoxitReader.Document
push 0x57ce60
push 0x543328
push SysReAllocString
call fcn.00403fd0
push str.application_pdf
push str.Content_Type
push 0x543328
push SysReAllocString
call fcn.00403fd0
push 0x5438dc
push str.BrowseInPlace
push str.FoxitReader.Document
push SysReAllocString
call fcn.00403fd0
push str.14E8BBD8_1D1C_4D56_A4DA_D20B75EB814E
push str.CLSID
push str.MIMEDatabaseContent_Type_application_pdf
push SysReAllocString
call fcn.00403fd0
add esp, 0x40
push 0x543328
push str.Extension
push str.MIMEDatabaseContent_Type_application_pdf
push SysReAllocString
call fcn.00403fd0
add esp, 0x10
lea eax, [esp + 4]
push eax
push 2
push 0
push str.SoftwareMicrosoftWindowsCurrentVersionExplorerFileExts.pdf
push SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x4042ac
mov ecx, dword [esp + 4]
push str.Application
push ecx
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueA]
push 0
push 0
push 0x1000
push 0x8000000
call dword [sym.imp.SHELL32.dll_SHChangeNotify]
ret 4

Function at 0x4053f0
Capabilities:
Create process on windows

Disassembly:
push 0xffffffffffffffff
push 0x507508
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x5c
push esi
mov esi, ecx
push edi
push 0x543a1c
mov ecx, dword [esi]
call fcn.00438970
push eax
lea eax, [esp + 0xc]
push eax
mov ecx, esi
call fcn.00405270
mov ecx, dword [esi]
push str._NewWindow
mov dword [esp + 0x70], 0
call fcn.00438840
test eax, eax
je 0x405448
mov ecx, eax
call fcn.00437b30
mov edi, eax
jmp 0x40544a
xor edi, edi
mov ecx, dword [esi]
push str._Win
call fcn.004389d0
test eax, eax
je 0x405564
mov ecx, dword [esi]
push str._Win
call fcn.00438970
mov esi, eax
push 0x543a1c
mov ecx, esi
call fcn.004389d0
test eax, eax
je 0x4054b1
lea ecx, [esp + 0xc]
push ecx
push 0x543a1c
mov ecx, esi
call fcn.00438840
mov ecx, eax
call fcn.00437a00
push eax
lea ecx, [esp + 0xc]
mov byte [esp + 0x70], 1
call fcn.004e0b76
lea ecx, [esp + 0xc]
mov byte [esp + 0x6c], 0
call fcn.004e0a3d
test edi, edi
je 0x40550b
mov edx, dword [esp + 8]
mov ecx, 0x11
xor eax, eax
lea edi, [esp + 0x20]
rep stosd dword es:[edi], eax
mov dword [esp + 0x20], 0x44
mov eax, dword [edx - 8]
lea ecx, [esp + 0x10]
lea edx, [esp + 0x20]
push ecx
push edx
push 0
push 0
push 0
push 0
push 0
push 0
push eax
lea ecx, [esp + 0x2c]
call fcn.004e0e6d
push eax
push 0
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
push 0xffffffffffffffff
lea ecx, [esp + 0xc]
call fcn.004e0ebc
mov eax, dword [esp + 0x10]
jmp 0x405523
mov eax, dword [esp + 8]
push 5
push 0
push 0
push eax
push str.open
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteA]
test eax, eax
jne 0x405564
push 0x57ce60
lea ecx, [esp + 0x10]
call fcn.004e0aab
push 0x7d2
lea ecx, [esp + 0x10]
mov byte [esp + 0x70], 2
call fcn.004e1982
mov ecx, dword [esp + 0xc]
push 0
push 0
push ecx
call fcn.004ebdf1
lea ecx, [esp + 0xc]
mov byte [esp + 0x6c], 0
call fcn.004e0a3d
lea ecx, [esp + 8]
mov dword [esp + 0x6c], 0xffffffff
call fcn.004e0a3d
mov ecx, dword [esp + 0x64]
pop edi
pop esi
mov dword fs:[0], ecx
add esp, 0x68
ret
Function at 0x406d20
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x5077af
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 8
push esi
push 0x57ce60
lea ecx, [esp + 8]
mov dword [esp + 0xc], 0
call fcn.004e0aab
mov eax, dword [esp + 0x20]
lea ecx, [esp + 4]
push eax
push 0x543ff8
push ecx
mov dword [esp + 0x20], 1
call fcn.004d988f
mov edx, dword [esp + 0x30]
add esp, 0xc
lea eax, [esp + 4]
push edx
push ecx
mov ecx, esp
mov dword [esp + 0x28], esp
push eax
call fcn.004e07b2
mov esi, dword [esp + 0x24]
push esi
call fcn.00406dc0
add esp, 0xc
mov dword [esp + 8], 1
lea ecx, [esp + 4]
mov byte [esp + 0x14], 0
call fcn.004e0a3d
mov ecx, dword [esp + 0xc]
mov eax, esi
mov dword fs:[0], ecx
pop esi
add esp, 0x14
ret
Function at 0x40cee0
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x507bf8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x14
push esi
push edi
push 1
lea ecx, [esp + 0xc]
call fcn.00416330
mov esi, dword [esp + 0x2c]
lea ecx, [esp + 8]
push esi
mov dword [esp + 0x28], 0
call fcn.00416380
mov edi, dword [esp + 0x30]
mov ecx, esi
push edi
call fcn.00416420
lea eax, [esp + 8]
mov ecx, edi
push eax
call fcn.00416370
lea ecx, [esp + 8]
mov dword [esp + 0x24], 0xffffffff
call fcn.0044cfc0
mov ecx, dword [esp + 0x1c]
pop edi
pop esi
mov dword fs:[0], ecx
add esp, 0x20
ret 8
Function at 0x40fb45
Capabilities:
Log keystrokes via polling

Disassembly:
push ebx
mov ebx, dword [esp + 8]
push esi
mov esi, ecx
test ebx, ebx
jne 0x40fb53
pop esi
xor eax, eax
pop ebx
ret 0xc
mov eax, dword [esi + 0x1c]
push ebp
push edi
push eax
call dword [sym.imp.USER32.dll_GetDC]
push eax
call fcn.004e3e80
mov edi, eax
mov ecx, esi
push edi
call fcn.0040ea30
push edi
mov ecx, esi
call fcn.0040eac0
mov ecx, dword [edi + 4]
mov edx, dword [esi + 0x1c]
push ecx
push edx
call dword [sym.imp.USER32.dll_ReleaseDC]
mov ecx, dword [ebx + 0x24]
xor edi, edi
test ecx, ecx
je 0x40fb9f
mov eax, dword [esp + 0x1c]
mov edx, dword [esp + 0x18]
push eax
push edx
call fcn.00417bc0
mov edi, eax
push 0x12
call dword [sym.imp.USER32.dll_GetKeyState]
mov edx, dword [esp + 0x1c]
xor ecx, ecx
mov cl, ah
mov eax, dword [esp + 0x18]
and ecx, 0xff
push edx
mov ebp, ecx
push eax
push ebp
push edi
push ebx
mov ecx, esi
call fcn.0040e740
mov ecx, dword [esp + 0x1c]
mov edx, dword [esp + 0x18]
push ebp
push ecx
push edx
push edi
push ebx
mov ecx, esi
call fcn.0040e5e0
test edi, edi
je 0x40fc4f
test ebp, ebp
jne 0x40fc4f
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x1c]
lea ebp, [esi + 0xe4]
push 1
mov dword [esi + 0xe8], ecx
mov ecx, edi
mov dword [ebp], eax
lea eax, [esi + 0xe8]
push eax
push ebp
call fcn.00416560
mov edx, dword [ebx]
push edi
mov ecx, esi
mov dword [esi + 0xf0], edx
call fcn.0040ce30
mov ecx, dword [ebp]
mov edx, dword [esi + 0xf0]
mov dword [esi + 0xec], eax
push eax
mov eax, dword [esi + 0xe8]
mov dword [esi + 0xf4], 1
push eax
push ecx
push edx
mov ecx, esi
call fcn.0040f1d0
mov dword [esi + 0xfc], 2
mov eax, 1
pop edi
mov dword [esi + 0x118], eax
pop ebp
pop esi
pop ebx
ret 0xc
Function at 0x413f50
Capabilities:
Open clipboard
Write clipboard data

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x5082d8
push eax
mov dword fs:[0], esp
push ebx
push ebp
push esi
push edi
push 0
mov dword [esp + 0x1c], 0
call dword [sym.imp.USER32.dll_OpenClipboard]
call dword [sym.imp.USER32.dll_EmptyClipboard]
mov eax, dword [esp + 0x20]
mov esi, dword [eax - 8]
add esi, 0x20
push esi
push 0
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov ebx, eax
push ebx
call dword [sym.imp.KERNEL32.dll_GlobalLock]
mov ecx, esi
mov ebp, eax
mov edx, ecx
xor eax, eax
mov edi, ebp
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, edx
and ecx, 3
test ebp, ebp
rep stosb byte es:[edi], al
jne 0x413fd6
push ebp
push ebp
push 0x544568
call fcn.004ebdf1
lea ecx, [esp + 0x20]
mov dword [esp + 0x18], 0xffffffff
call fcn.004e0a3d
xor eax, eax
jmp 0x414043
mov eax, dword [esp + 0x20]
lea ecx, [esp + 0x20]
mov eax, dword [eax - 8]
push eax
call fcn.004e0e6d
mov edi, eax
or ecx, 0xffffffff
xor eax, eax
push 0xffffffffffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov edx, ecx
mov esi, edi
mov edi, ebp
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 0x24]
call fcn.004e0ebc
push ebx
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
call dword [sym.imp.KERNEL32.dll_GetLastError]
push ebx
push 1
call dword [sym.imp.USER32.dll_SetClipboardData]
call dword [sym.imp.USER32.dll_CloseClipboard]
lea ecx, [esp + 0x20]
mov dword [esp + 0x18], 0xffffffff
call fcn.004e0a3d
mov eax, 1
mov ecx, dword [esp + 0x10]
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
pop ebx
add esp, 0xc
ret 4
Function at 0x41a610
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x508a98
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x34
push ebx
push esi
mov esi, ecx
push edi
mov edi, dword [sym.imp.USER32.dll_GetParent]
mov eax, dword [esi + 0x1c]
push eax
call edi
push eax
call fcn.004dca12
push eax
lea ecx, [esp + 0x30]
call fcn.004e46f5
mov edx, dword [esi + 0x1c]
lea ecx, [esp + 0xc]
push ecx
push edx
mov dword [esp + 0x50], 0
call dword [sym.imp.USER32.dll_GetClientRect]
mov ecx, dword [esi + 0x1c]
lea eax, [esp + 0x1c]
push eax
push ecx
call dword [sym.imp.USER32.dll_GetWindowRect]
mov edx, dword [esi + 0x1c]
push edx
call edi
push eax
call fcn.004dca12
lea ecx, [esp + 0x1c]
push ecx
mov ecx, eax
call fcn.004e45ab
mov eax, dword [esi + 0xf4]
mov ebx, dword [sym.imp.GDI32.dll_BitBlt]
test eax, eax
jne 0x41a746
mov ecx, dword [esp + 0x30]
lea eax, [esp + 0x2c]
neg eax
sbb eax, eax
and eax, ecx
push eax
call dword [sym.imp.GDI32.dll_CreateCompatibleDC]
push eax
lea ecx, [esi + 0xf0]
call fcn.004e3e95
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x10]
mov edi, dword [esp + 0xc]
mov edx, dword [esp + 0x30]
sub eax, ecx
mov ecx, dword [esp + 0x14]
sub ecx, edi
push eax
push ecx
push edx
lea edi, [esi + 0x100]
call dword [sym.imp.GDI32.dll_CreateCompatibleBitmap]
push eax
mov ecx, edi
call fcn.004e499d
test edi, edi
je 0x41a6f2
mov edi, dword [edi + 4]
mov eax, dword [esi + 0xf4]
push edi
push eax
call fcn.004e3fd6
mov ecx, dword [esp + 0x18]
mov edx, dword [esp + 0x10]
mov dword [esi + 0x108], eax
mov eax, dword [esp + 0xc]
sub ecx, edx
mov edx, dword [esp + 0x14]
mov edi, dword [esp + 0x30]
sub edx, eax
lea eax, [esp + 0x2c]
push 0xcc0020
neg eax
sbb eax, eax
and eax, edi
mov edi, dword [esp + 0x24]
push edi
mov edi, dword [esp + 0x24]
push edi
push eax
push ecx
mov ecx, dword [esi + 0xf4]
push edx
push 0
push 0
push ecx
call ebx
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x10]
mov edi, dword [esp + 0xc]
sub eax, ecx
mov ecx, dword [esp + 0x14]
lea edx, [esi + 0xf0]
sub ecx, edi
test edx, edx
je 0x41a767
mov edx, dword [edx + 4]
push 0xcc0020
push 0
push 0
push edx
mov edx, dword [esp + 0x60]
push eax
push ecx
push 0
mov eax, dword [edx + 4]
push 0
push eax
call ebx
lea ecx, [esp + 0x2c]
mov dword [esp + 0x48], 0xffffffff
call fcn.004e4767
mov ecx, dword [esp + 0x40]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0x40
ret 4
Function at 0x4209b0
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x509560
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x1c
mov eax, dword [0x575f54]
push ebx
push esi
push edi
mov edi, ecx
mov dword [esp + 0x10], eax
xor ebx, ebx
mov dword [esp + 0xc], eax
mov dword [esp + 0x30], ebx
mov esi, dword [esp + 0x3c]
lea eax, [esp + 0x10]
push eax
mov ecx, esi
mov byte [esp + 0x34], 1
call fcn.0041ee20
mov ecx, dword [esp + 0x10]
push 0x57ce60
push ecx
call fcn.004a1876
add esp, 8
test eax, eax
je 0x420a64
lea edx, [esp + 0x3c]
lea eax, [esp + 0x14]
push edx
lea ecx, [esp + 0x1c]
push eax
push ecx
mov ecx, esi
call fcn.0041ed60
lea edx, [esp + 0x20]
lea eax, [esp + 0xc]
push edx
push eax
mov ecx, esi
call fcn.0041ede0
push ecx
lea edx, [esp + 0x10]
mov ecx, esp
mov dword [esp + 0x20], esp
push edx
call fcn.004e07b2
mov ecx, edi
call fcn.004216b0
cmp eax, ebx
je 0x420a64
mov ecx, dword [esi + 0x54]
cmp ecx, ebx
je 0x420a64
mov eax, dword [esp + 0x38]
add edi, 0x38
push ebx
push edi
push eax
call fcn.004310d0
lea ecx, [esp + 0xc]
mov byte [esp + 0x30], bl
call fcn.004e0a3d
lea ecx, [esp + 0x10]
mov dword [esp + 0x30], 0xffffffff
call fcn.004e0a3d
mov ecx, dword [esp + 0x28]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
add esp, 0x28
ret 8
Function at 0x42c455
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x50a568
push eax
mov dword fs:[0], esp
push esi
mov esi, ecx
lea eax, [esp + 0x14]
lea ecx, [esi + 0x424]
push eax
mov dword [esp + 0x10], 0
call fcn.004e0b76
mov ecx, dword [esp + 0x18]
mov edx, dword [esp + 0x20]
mov eax, dword [esp + 0x1c]
mov dword [esi + 0x3c], ecx
mov dword [esi + 0x40], edx
mov dword [esi + 0x54], eax
call fcn.00439840
mov ecx, dword [esp + 0x24]
mov edx, dword [esp + 0x28]
mov dword [esi + 0x430], eax
mov eax, dword [esp + 0x2c]
add esi, 0x44
mov dword [esp + 0xc], 0xffffffff
mov dword [esi], ecx
mov ecx, dword [esp + 0x30]
mov dword [esi + 4], edx
mov dword [esi + 8], eax
mov dword [esi + 0xc], ecx
lea ecx, [esp + 0x14]
call fcn.004e0a3d
mov ecx, dword [esp + 4]
pop esi
mov dword fs:[0], ecx
add esp, 0xc
ret 0x20
Function at 0x42fc30
Capabilities:
Access peb ldr_data

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x50a6cb
push eax
mov dword fs:[0], esp
push ebx
push ebp
mov ebx, ecx
push esi
push edi
mov eax, dword [ebx + 0x40]
xor edi, edi
cmp eax, edi
je 0x42fc5d
push eax
call fcn.004dc4d8
add esp, 4
mov eax, dword [ebx + 0x3c]
cmp eax, edi
je 0x42fc81
mov ecx, dword [eax - 4]
lea esi, [eax - 4]
push fcn.004e0a3d
push ecx
push 4
push eax
call fcn.004a270a
push esi
call fcn.004dc4d8
add esp, 4
mov ebp, dword [esp + 0x20]
mov esi, dword [ebp + 0x38]
mov dword [ebx + 0x38], esi
lea edx, [esi*4 + 4]
push edx
call fcn.004dc4af
add esp, 4
mov dword [esp + 0x20], eax
cmp eax, edi
mov dword [esp + 0x18], edi
je 0x42fcbf
push fcn.004e0a3d
push 0x42fd50
lea edi, [eax + 4]
push esi
push 4
push edi
mov dword [eax], esi
call fcn.004a27e8
mov eax, dword [ebx + 0x38]
xor esi, esi
test eax, eax
mov dword [esp + 0x18], 0xffffffff
mov dword [ebx + 0x3c], edi
jle 0x42fcf2
mov eax, dword [ebp + 0x3c]
mov edx, dword [ebx + 0x3c]
lea ecx, [esi*4]
add eax, ecx
add ecx, edx
push eax
call fcn.004e0b76
mov eax, dword [ebx + 0x38]
inc esi
cmp esi, eax
jl 0x42fcd3
mov eax, dword [ebx + 0x38]
cmp eax, 1
jle 0x42fd28
lea ecx, [eax*4]
push ecx
call fcn.004dc4af
mov ecx, dword [ebx + 0x38]
mov dword [ebx + 0x40], eax
mov esi, dword [ebp + 0x40]
mov edi, eax
shl ecx, 2
mov edx, ecx
add esp, 4
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
jmp 0x42fd2f
mov dword [ebx + 0x40], 0
mov eax, dword [ebp + 0x30]
pop edi
mov dword [ebx + 0x30], eax
mov ecx, dword [ebp + 0x34]
mov dword [ebx + 0x34], ecx
mov ecx, dword [esp + 0xc]
pop esi
pop ebp
mov dword fs:[0], ecx
pop ebx
add esp, 0xc
ret 4
Function at 0x446d2a
Capabilities:
Check os version

Disassembly:
sub esp, 0x94
lea eax, [esp]
push esi
mov esi, ecx
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
mov ecx, dword [esp + 8]
mov eax, esi
cmp ecx, 5
sbb ecx, ecx
inc ecx
mov dword [esi], ecx
pop esi
add esp, 0x94
ret
mov ecx, 0x57d350
jmp 0x446d20
Function at 0x455080
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push 0xffffffffffffffff
push 0x50c616
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
mov eax, dword [0x575f54]
push esi
mov esi, ecx
mov dword [esp + 4], esi
mov dword [esi + 0xc], eax
push 0xa
lea ecx, [esi + 0x14]
mov dword [esp + 0x14], 0
call fcn.004dbeb4
lea ecx, [esi + 0x30]
mov byte [esp + 0x10], 1
call fcn.004db07c
mov ecx, dword [esp + 0x18]
mov dword [esi + 4], 0
mov dword [esi], ecx
mov ecx, dword [esp + 8]
mov eax, esi
pop esi
mov dword fs:[0], ecx
add esp, 0x10
ret 4

Function at 0x4550f0
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x50c649
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x10
push ebx
push esi
push edi
mov edi, ecx
mov dword [esp + 0x18], edi
mov eax, dword [edi + 0x20]
mov dword [esp + 0x24], 2
neg eax
sbb eax, eax
test eax, eax
mov dword [esp + 0x10], eax
je 0x455174
lea esi, [edi + 0x14]
mov bl, 3
mov eax, dword [0x575f54]
mov dword [esp + 0xc], eax
lea ecx, [esp + 0x14]
lea edx, [esp + 0xc]
push ecx
lea eax, [esp + 0x14]
push edx
push eax
mov ecx, esi
mov byte [esp + 0x30], bl
call fcn.004dc1a2
mov ecx, dword [esp + 0x14]
test ecx, ecx
je 0x45515e
mov edx, dword [ecx]
push 1
call dword [edx]
lea ecx, [esp + 0xc]
mov byte [esp + 0x24], 2
call fcn.004e0a3d
mov eax, dword [esp + 0x10]
test eax, eax
jne 0x45512d
mov ebx, dword [edi + 0x38]
xor esi, esi
test ebx, ebx
jle 0x455191
mov eax, dword [edi + 0x34]
mov eax, dword [eax + esi*4]
push eax
call fcn.004dc4d8
add esp, 4
inc esi
cmp esi, ebx
jl 0x45517d
lea ecx, [edi + 0x30]
mov byte [esp + 0x24], 1
call fcn.004db0af
lea ecx, [edi + 0x14]
mov byte [esp + 0x24], 0
call fcn.004dbf8e
lea ecx, [edi + 0xc]
mov dword [esp + 0x24], 0xffffffff
call fcn.004e0a3d
mov ecx, dword [esp + 0x1c]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0x1c
ret
Function at 0x4567d0
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x50c908
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x50
push ebx
mov ebx, dword [esp + 0x70]
push ebp
push esi
mov ecx, dword [ebx + 0xc]
mov eax, dword [ebx + 8]
mov ebp, dword [ebx]
push edi
mov edi, dword [ebx + 4]
sub eax, ebp
sub ecx, edi
push 0x18
push ecx
push eax
lea ecx, [esp + 0x28]
call fcn.00442590
mov eax, dword [esp + 0x30]
mov esi, dword [esp + 0x74]
mov dword [esp + 0x10], eax
xor edi, edi
mov eax, dword [esi + 4]
mov dword [esp + 0x68], edi
cmp eax, edi
jne 0x4568ff
mov ecx, dword [esi + 0x2c]
push str._Background
call fcn.00437b70
mov ecx, eax
call fcn.004389d0
test eax, eax
je 0x4568ff
mov ecx, dword [esi + 0x2c]
push str._Background
call fcn.00437b70
mov ecx, eax
call fcn.00438990
mov ebp, eax
cmp dword [ebp + 0x14], edi
jbe 0x456885
lea ecx, [esp + 0x38]
mov dword [esp + 0x7c], ecx
push edi
mov ecx, ebp
call fcn.004386d0
mov eax, dword [esp + 0x7c]
inc edi
fstp dword [eax]
add eax, 4
mov dword [esp + 0x7c], eax
mov eax, dword [ebp + 0x14]
cmp edi, eax
jb 0x456868
lea edx, [esp + 0x74]
lea eax, [esp + 0x14]
push edx
lea ecx, [esp + 0x1c]
push eax
lea edx, [esp + 0x40]
push ecx
mov ecx, dword [esi + 0x28]
push edx
call fcn.004421b0
fld dword [esp + 0x74]
fmul dword [0x515cf0]
push ecx
fstp dword [esp]
call fcn.0042ea80
fld dword [esp + 0x18]
fmul dword [0x515cf0]
add esp, 4
push eax
push ecx
fstp dword [esp]
call fcn.0042ea80
fld dword [esp + 0x20]
fmul dword [0x515cf0]
add esp, 4
push eax
push ecx
fstp dword [esp]
call fcn.0042ea80
add esp, 4
push eax
push 0xff
call fcn.00442530
add esp, 0x10
lea ecx, [esp + 0x1c]
push eax
call fcn.00442e50
jmp 0x456914
mov edx, dword [ebx + 4]
mov ecx, dword [esp + 0x70]
push edx
mov edx, dword [ebx]
mov eax, dword [ecx]
push edx
lea edx, [esp + 0x24]
push edx
call dword [eax + 0x40]
mov ecx, dword [esi + 0x2c]
mov ebp, dword [esi + 0x40]
lea edi, [esi + 0x30]
call fcn.00437b70
mov ecx, dword [esi + 0x28]
mov esi, dword [esi + 0x24]
cmp esi, 2
jne 0x456946
push ecx
mov ecx, dword [esp + 0x14]
push ebp
push edi
push eax
mov eax, dword [esp + 0x88]
push eax
push ebx
push ecx
call fcn.00455e90
jmp 0x45695f
cmp esi, 3
jne 0x456962
mov edx, dword [esp + 0x78]
push ecx
push ebp
push edi
push eax
mov eax, dword [esp + 0x20]
push edx
push ebx
push eax
call fcn.004562b0
add esp, 0x1c
mov eax, dword [ebx + 4]
mov ecx, dword [esp + 0x70]
push eax
mov eax, dword [ebx]
mov edx, dword [ecx]
push eax
lea eax, [esp + 0x24]
push eax
call dword [edx + 0x44]
lea ecx, [esp + 0x1c]
mov dword [esp + 0x68], 0xffffffff
call fcn.00442700
mov ecx, dword [esp + 0x60]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x5c
ret
Function at 0x45b920
Capabilities:
Resolve function by parsing pe exports

Disassembly:
sub esp, 0x88
push ebx
mov ebx, dword [esp + 0x90]
push ebp
push esi
mov eax, dword [ebx]
lea ecx, [esp + 0x54]
push edi
push ecx
mov ecx, dword [esp + 0xb0]
mov dword [esp + 0x18], eax
lea edx, [esp + 0x7c]
lea eax, [esp + 0x3c]
push edx
mov edx, dword [ecx + 0xc]
push eax
mov eax, dword [esp + 0xac]
push edx
push eax
push ebx
mov edi, 2
call fcn.0045cfc0
mov ebp, dword [esp + 0xc0]
add esp, 0x18
xor esi, esi
mov eax, dword [esp + esi + 0x58]
test eax, eax
jne 0x45b9e1
mov eax, dword [esp + esi + 0x38]
mov dword [esp + 0x18], 4
test eax, eax
je 0x45b98e
mov dword [esp + 0x24], eax
jmp 0x45b99c
mov ecx, dword [esp + 0xac]
mov edx, dword [ecx + 0xc]
mov dword [esp + 0x24], edx
lea eax, [esp + 0x10]
lea ecx, [esp + 0x18]
push eax
push ecx
push ebx
call fcn.0045a610
mov edi, eax
add esp, 0xc
test edi, edi
jne 0x45b9e1
mov edx, dword [esp + 0xa4]
mov eax, dword [esp + esi + 0x78]
mov ecx, dword [esp + 0x10]
push ebp
push edx
push eax
push ecx
push ebx
call fcn.0045b200
mov edx, dword [esp + 0x24]
mov edi, eax
push edx
call fcn.00458b00
add esp, 0x18
test edi, edi
je 0x45b9e9
add esi, 4
cmp esi, 0x20
jl 0x45b970
lea esi, [esp + 0x38]
mov ebx, 8
cmp dword [esi], 0
je 0x45ba05
mov eax, dword [esp + 0x14]
push esi
push eax
call fcn.00458970
add esp, 8
add esi, 4
dec ebx
jne 0x45b9f2
test edi, edi
mov eax, 2
jne 0x45ba16
mov eax, edi
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x88
ret
Function at 0x4900b0
Capabilities:
Enumerate pe sections
Extract resource via kernel32 functions

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x50cbd0
push eax
mov dword fs:[0], esp
sub esp, 0x18
push ebx
push ebp
push esi
push edi
mov edi, dword [esp + 0x38]
xor ebp, ebp
and edi, 0xffff
push ebp
mov esi, ecx
push edi
call fcn.00492210
add esp, 8
cmp eax, ebp
je 0x490297
mov dword [esp + 0x24], ebp
mov dword [esp + 0x20], 0x511ef8
push eax
lea ecx, [esp + 0x24]
mov dword [esp + 0x34], ebp
call fcn.004e499d
call fcn.004f81f1
mov ebx, dword [eax + 0xc]
cmp ebx, ebp
je 0x49027e
push 0xf1
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_FindResourceA]
cmp eax, ebp
je 0x49027e
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov ebx, eax
cmp ebx, ebp
je 0x49027e
mov edx, dword [esi + 0xa0]
xor ecx, ecx
mov cx, word [ebx + 4]
xor eax, eax
mov ax, word [ebx + 2]
cmp edx, ebp
jne 0x490258
push 0xa
push ebp
mov dword [esi + 0xa0], eax
lea edi, [eax + 4]
push 1
mov dword [esi + 0xa4], ecx
lea edx, [ecx + 4]
push ecx
mov dword [esi + 0xa8], edi
push eax
lea ecx, [esi + 0x3c]
mov dword [esi + 0xac], edx
call fcn.004dab70
mov eax, dword [esi + 0x40]
push eax
call dword [sym.imp.COMCTL32.dll_ImageList_GetImageCount]
push 0xf
mov dword [esp + 0x14], eax
call dword [sym.imp.USER32.dll_GetSysColor]
mov edi, dword [esp + 0x24]
lea ecx, [esp + 0x20]
neg ecx
sbb ecx, ecx
push eax
and ecx, edi
push ecx
mov ecx, dword [esi + 0x40]
push ecx
call dword [sym.imp.COMCTL32.dll_ImageList_AddMasked]
cmp word [ebx + 6], bp
mov dword [esp + 0x18], ebp
jbe 0x49021e
lea edx, [ebx + 8]
mov dword [esp + 0x14], edx
mov eax, dword [esp + 0x14]
xor edi, edi
mov di, word [eax]
test edi, edi
jbe 0x490200
lea ecx, [esp + 0x1c]
lea ebp, [esi + 0x44]
push ecx
push edi
mov ecx, ebp
call fcn.004dbdcc
test eax, eax
je 0x4901ee
mov eax, dword [esp + 0x1c]
test eax, eax
jge 0x4901fc
push edi
mov ecx, ebp
call fcn.004dbdee
mov edx, dword [esp + 0x10]
mov dword [eax], edx
inc dword [esp + 0x10]
mov eax, dword [esp + 0x18]
mov edi, dword [esp + 0x14]
xor ecx, ecx
inc eax
mov cx, word [ebx + 6]
add edi, 2
cmp eax, ecx
mov dword [esp + 0x18], eax
mov dword [esp + 0x14], edi
jl 0x4901c5
mov edx, dword [esp + 0x38]
mov eax, dword [esi + 0x30]
lea ecx, [esi + 0x28]
push edx
push eax
call fcn.004db90b
lea ecx, [esp + 0x20]
call fcn.004e49ca
mov dword [esp + 0x20], vtable.CGdiObject.0
lea ecx, [esp + 0x20]
mov dword [esp + 0x30], 3
call fcn.004e49f4
mov eax, 1
jmp 0x490299
cmp dword [esi + 0xa0], eax
jne 0x49026c
cmp dword [esi + 0xa4], ecx
je 0x490184
mov dword [esp + 0x20], vtable.CGdiObject.0
mov dword [esp + 0x30], 2
jmp 0x49028e
mov dword [esp + 0x20], vtable.CGdiObject.0
mov dword [esp + 0x30], 1
lea ecx, [esp + 0x20]
call fcn.004e49f4
xor eax, eax
mov ecx, dword [esp + 0x28]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x24
ret 4