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

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
mov esi, dword [ebp + 0x10]
mov eax, dword [esi]
and dword [esi], 0
push edi
mov edi, dword [ebp + 0xc]
add eax, eax
mov dword [ebp - 4], eax
lea eax, [ebp - 4]
push eax
push edi
lea eax, [ebp + 0x10]
push eax
push 0
push dword [ebp + 8]
push dword [ecx]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x454ff1
cmp dword [ebp + 0x10], 1
je 0x454fc9
cmp dword [ebp + 0x10], 2
je 0x454fc9
push 0xd
pop eax
jmp 0x454ff1
mov eax, dword [ebp - 4]
test edi, edi
je 0x454feb
test eax, eax
je 0x454fe6
test al, 1
jne 0x454fc4
mov ecx, eax
shr ecx, 1
cmp word [edi + ecx*2 - 2], 0
je 0x454feb
jmp 0x454fc4
xor ecx, ecx
mov word [edi], cx
shr eax, 1
mov dword [esi], eax
xor eax, eax
pop edi
pop esi
leave
ret 0xc

Function at 0x4551e3
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
push dword [ebp + 8]
call fcn.00455032
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x455206
push 0
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_ShowWindow]
pop ebp
ret 4

Function at 0x45520a
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
push dword [ebp + 8]
call fcn.004550a3
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x45522d
push 0
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_ShowWindow]
pop ebp
ret 4

Function at 0x455358
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
call fcn.0044e54d
cmp dword [ebp + 0xc], 0
mov ecx, eax
je 0x455374
call fcn.00452190
push 0
push dword [eax + 4]
jmp 0x45537e
call fcn.00452348
push 0
push dword [eax + 0x14]
call dword [sym.imp.USER32.dll_ShowWindow]
call fcn.0042dd92
mov ecx, eax
call fcn.00432d24
test al, al
je 0x4553bf
push dword [ebp + 8]
call fcn.0044e54d
cmp dword [ebp + 0xc], 0
mov ecx, eax
je 0x4553b3
call fcn.00452190
lea ecx, [eax + 0x20]
call fcn.004551e3
jmp 0x4553bf
call fcn.00452348
mov ecx, eax
call fcn.0045520a
xor eax, eax
pop ebp
ret
Function at 0x456f6d
Capabilities:
Delete registry key
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x22c
mov eax, dword [0x4a02f0]
xor eax, ebp
mov dword [ebp - 4], eax
cmp dword [ebp + 8], 0
jne 0x45711c
push ebx
push esi
push edi
mov edi, dword [sym.imp.SHLWAPI.dll_SHSetValueW]
push 0xe
push str.IE.HTTP
push 1
mov ebx, str.Progid
push ebx
push str.SoftwareMicrosoftWindowsShellAssociationsUrlAssociations_ftpUserChoice
mov esi, SysReAllocString
push esi
call edi
push 0xe
push str.IE.HTTP
push 1
push ebx
push str.SoftwareMicrosoftWindowsShellAssociationsUrlAssociationshttpUserChoice
push esi
call edi
push 0xe
push str.IE.HTTP
push 1
push ebx
push str.SoftwareMicrosoftWindowsShellAssociationsUrlAssociationshttpsUserChoice
push esi
call edi
xor eax, eax
push 0x206
push eax
mov word [ebp - 0x20c], ax
lea eax, [ebp - 0x20a]
push eax
call fcn.0046e0e0
add esp, 0xc
lea eax, [ebp - 0x214]
push eax
push 0xf003f
push 0
push str.SoftwareMicrosoftWindowsCurrentVersionExplorerFileExts
push esi
mov dword [ebp - 0x22c], str..htm
mov dword [ebp - 0x228], str..html
mov dword [ebp - 0x224], str..shtm
mov dword [ebp - 0x220], str..shtml
mov dword [ebp - 0x21c], str..mht
mov dword [ebp - 0x218], str..mhtml
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
and dword [ebp - 0x210], 0
mov eax, dword [ebp - 0x210]
push dword [ebp + eax*4 - 0x22c]
lea eax, [ebp - 0x20c]
push str.SoftwareMicrosoftWindowsCurrentVersionExplorerFileExts
push str._s_sUserChoice
push 0x103
push eax
call fcn.0046dffd
add esp, 0x14
lea eax, [ebp - 0x20c]
push eax
push esi
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
push 0x10
push str.htmlfile
push 1
push ebx
lea eax, [ebp - 0x20c]
push eax
push esi
call edi
inc dword [ebp - 0x210]
cmp dword [ebp - 0x210], 4
jl 0x45704e
and dword [ebp - 0x210], 0
mov eax, dword [ebp - 0x210]
push dword [ebp + eax*4 - 0x21c]
lea eax, [ebp - 0x20c]
push str.SoftwareMicrosoftWindowsCurrentVersionExplorerFileExts
push str._s_sUserChoice
push 0x103
push eax
call fcn.0046dffd
add esp, 0x14
lea eax, [ebp - 0x20c]
push eax
push esi
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
push 0x12
push str.mhtmlfile
push 1
push ebx
lea eax, [ebp - 0x20c]
push eax
push esi
call edi
inc dword [ebp - 0x210]
cmp dword [ebp - 0x210], 2
jl 0x4570b1
push dword [ebp - 0x214]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0046e0cd
leave
ret 4
Function at 0x45712a
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x218
mov eax, dword [0x4a02f0]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0x10]
mov ecx, dword [ebp + 0xc]
push ebx
push esi
mov esi, dword [ebp + 8]
mov dword [ebp - 0x210], eax
mov eax, ecx
push edi
mov dword [ebp - 0x218], esi
mov dword [ebp - 0x214], ecx
lea edx, [eax + 2]
mov di, word [eax]
add eax, 2
test di, di
jne 0x457160
mov ebx, dword [sym.imp.SHLWAPI.dll_SHSetValueW]
sub eax, edx
sar eax, 1
add eax, eax
push eax
push ecx
push 1
push 0x49b4f8
push esi
push SysReAllocString
call ebx
lea eax, [ebp - 0x20c]
mov ecx, esi
sub eax, esi
movzx edx, word [ecx]
mov word [eax + ecx], dx
add ecx, 2
test dx, dx
jne 0x457192
lea edi, [ebp - 0x20c]
sub edi, 2
mov ax, word [edi + 2]
add edi, 2
test ax, ax
jne 0x4571aa
mov eax, dword [ebp - 0x210]
push 7
pop ecx
mov esi, str.opencommand
rep movsd dword es:[edi], dword [esi]
lea ecx, [eax + 2]
mov dx, word [eax]
add eax, 2
test dx, dx
jne 0x4571c9
sub eax, ecx
sar eax, 1
add eax, eax
push eax
push dword [ebp - 0x210]
mov edi, 0x49b4f8
push 1
push edi
lea eax, [ebp - 0x20c]
push eax
mov esi, SysReAllocString
push esi
call ebx
push dword [ebp - 0x214]
lea eax, [ebp - 0x20c]
push dword [ebp - 0x218]
push str._s_scommand
push 0x104
push eax
call fcn.0046dffd
mov eax, dword [ebp - 0x210]
add esp, 0x14
lea ecx, [eax + 2]
mov dx, word [eax]
add eax, 2
test dx, dx
jne 0x457226
sub eax, ecx
sar eax, 1
add eax, eax
push eax
push dword [ebp - 0x210]
lea eax, [ebp - 0x20c]
push 1
push edi
push eax
push esi
call ebx
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0046e0cd
leave
ret 0xc

Function at 0x45725c
Capabilities:
Get common file path
Get program files directory

Disassembly:
xor eax, eax
push ebx
mov ebx, 0x56acf8
cmp ax, word [0x56acf8]
jne 0x457295
push esi
push edi
push eax
push 0x26
push ebx
push eax
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
lea edi, [ebx - 2]
mov ax, word [edi + 2]
add edi, 2
test ax, ax
jne 0x45727d
push 0x10
pop ecx
mov esi, str.internet_exploreriexplore.exe
rep movsd dword es:[edi], dword [esi]
pop edi
pop esi
mov eax, ebx
pop ebx
ret
Function at 0x4572b8
Capabilities:
Delete registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x414
mov eax, dword [0x4a02f0]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
mov edi, ecx
call fcn.0045725c
mov ebx, eax
xor eax, eax
mov esi, 0x206
push esi
push eax
mov word [ebp - 0x414], ax
lea eax, [ebp - 0x412]
push eax
call fcn.0046e0e0
xor eax, eax
push esi
push eax
mov word [ebp - 0x20c], ax
lea eax, [ebp - 0x20a]
push eax
call fcn.0046e0e0
push ebx
push str.__s_____1_
lea eax, [ebp - 0x20c]
push 0x104
push eax
call fcn.0046dffd
push str.IEXPLORE.EXE
push str.SOFTWAREClientsStartMenuInternet
push 0x49669c
lea eax, [ebp - 0x414]
push 0x103
push eax
call fcn.0046dffd
add esp, 0x3c
push str.LocalizedString
lea eax, [ebp - 0x414]
push eax
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.SHLWAPI.dll_SHDeleteValueW]
lea eax, [ebp - 0x20c]
push eax
mov esi, str.open
push esi
push str.htmlfile_shell
mov ecx, edi
call fcn.0045712a
lea eax, [ebp - 0x20c]
push eax
push esi
push str.InternetShortcut_shell
mov ecx, edi
call fcn.0045712a
lea eax, [ebp - 0x20c]
push eax
push esi
push str.mhtmlfile_shell
mov ecx, edi
call fcn.0045712a
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0046e0cd
leave
ret

Function at 0x4573ab
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x210
mov eax, dword [0x4a02f0]
xor eax, ebp
mov dword [ebp - 4], eax
cmp dword [ebp + 8], 0
mov dword [ebp - 0x210], ecx
jne 0x457519
push ebx
push esi
push edi
call fcn.0045725c
mov esi, eax
xor eax, eax
push 0x206
push eax
mov word [ebp - 0x20c], ax
lea eax, [ebp - 0x20a]
push eax
call fcn.0046e0e0
push esi
push str.__s_____1_
lea eax, [ebp - 0x20c]
push 0x104
push eax
call fcn.0046dffd
mov eax, esi
add esp, 0x1c
lea ecx, [eax + 2]
mov dx, word [eax]
add eax, 2
test dx, dx
jne 0x457412
sub eax, ecx
sar eax, 1
add eax, eax
push eax
push esi
mov esi, dword [sym.imp.SHLWAPI.dll_SHSetValueW]
push 1
mov ebx, 0x49b4f8
push ebx
push str.CLSID0002DF01_0000_0000_C000_000000000046LocalServer32
mov edi, SysReAllocString
push edi
call esi
mov ecx, dword [ebp - 0x210]
lea eax, [ebp - 0x20c]
push eax
push str.open
push str.http_shell
call fcn.0045712a
mov ecx, dword [ebp - 0x210]
lea eax, [ebp - 0x20c]
push eax
push str.open
push str.https_shell
call fcn.0045712a
mov ecx, dword [ebp - 0x210]
lea eax, [ebp - 0x20c]
push eax
push str.open
push str.file_shell
call fcn.0045712a
push 0x208
lea eax, [ebp - 0x20c]
push 0
push eax
call fcn.0046e0e0
add esp, 0xc
push 0x10
push str.htmlfile
push 1
push ebx
push str..htm
push edi
call esi
push 0x10
push str.htmlfile
push 1
push ebx
push str..html
push edi
call esi
push 0x10
push str.htmlfile
push 1
push ebx
push str..shtm
push edi
call esi
push 0x10
push str.htmlfile
push 1
push ebx
push str..shtml
push edi
call esi
push 0x12
push str.mhtmlfile
push 1
push ebx
push str..mht
push edi
call esi
push 0x12
push str.mhtmlfile
push 1
push ebx
push str..mhtml
push edi
call esi
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0046e0cd
leave
ret 4
Function at 0x457597
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x54
push ebx
push 0x40
xor ebx, ebx
lea eax, [ebp - 0x50]
push ebx
push eax
call fcn.0046e0e0
xor eax, eax
add esp, 0xc
cmp byte [ebp + 0x10], bl
mov dword [ebp - 0x54], 0x44
setne al
mov dword [ebp - 0x28], 1
dec eax
and eax, 5
mov word [ebp - 0x24], ax
mov eax, dword [ebp + 8]
cmp dword [eax + 0x14], 8
jb 0x4575d8
mov eax, dword [eax]
lea ecx, [ebp - 0x10]
push ecx
lea ecx, [ebp - 0x54]
push ecx
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
jne 0x4575f6
xor al, al
jmp 0x45761a
push esi
push dword [ebp - 0xc]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call esi
cmp byte [ebp + 0xc], bl
je 0x457612
push 0xffffffffffffffff
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push dword [ebp - 0x10]
call esi
mov al, 1
pop esi
pop ebx
leave
ret 0xc

Function at 0x457b0d
Capabilities:
Check if file exists
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x644
mov eax, dword [0x4a02f0]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
xor ebx, ebx
mov dword [ebp - 0x63c], ecx
cmp byte [0x56acec], bl
je 0x457c45
xor eax, eax
push 0x206
mov word [ebp - 0x20c], ax
lea eax, [ebp - 0x20a]
push ebx
push eax
call fcn.0046e0e0
add esp, 0xc
lea eax, [ebp - 0x644]
push eax
lea eax, [ebp - 0x20c]
push eax
lea eax, [ebp - 0x640]
push eax
push ebx
push str.SoftwareMicrosoftWindowsCurrentVersionApp_Paths360se_3.exe
push reloc.OLEAUT32.dll_SysReAllocString
mov dword [ebp - 0x640], 1
mov dword [ebp - 0x644], 0x208
call dword [sym.imp.SHLWAPI.dll_SHGetValueW]
test eax, eax
jne 0x457c3a
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x457c3a
xor eax, eax
push 0x40e
mov word [ebp - 0x61c], ax
lea eax, [ebp - 0x61a]
push ebx
push eax
call fcn.0046e0e0
push str._tp:2__v:1
lea eax, [ebp - 0x20c]
push eax
push str._s__s
lea eax, [ebp - 0x61c]
push 0x208
push eax
call fcn.0046dffd
xor eax, eax
mov word [ebp - 0x638], ax
add esp, 0x20
lea eax, [ebp - 0x61c]
push eax
lea ecx, [ebp - 0x638]
mov dword [ebp - 0x624], 7
mov dword [ebp - 0x628], ebx
call fcn.00401fb0
mov ecx, dword [ebp - 0x63c]
push 1
push ebx
lea eax, [ebp - 0x638]
push eax
call fcn.00457597
push ebx
push 1
lea ecx, [ebp - 0x638]
call fcn.00402b70
jmp 0x457c45
mov ecx, dword [ebp - 0x63c]
call fcn.00457568
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop ebx
call fcn.0046e0cd
leave
ret
Function at 0x45831f
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x29c
mov eax, dword [0x4a02f0]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
xor eax, eax
push 0x206
mov word [ebp - 0x234], ax
xor edi, edi
lea eax, [ebp - 0x232]
push edi
push eax
mov esi, ecx
call fcn.0046e0e0
add esp, 0xc
push 0x104
lea eax, [ebp - 0x234]
push eax
push dword [esi + 0x280]
call dword [sym.imp.USER32.dll_GetWindowTextW]
push edi
push edi
mov edi, dword [sym.imp.USER32.dll_SendMessageW]
mov ebx, 0xf0
push ebx
push dword [esi + 0x40]
call edi
push 0
push 0
push ebx
push dword [esi + 0x70]
mov dword [ebp - 0x28c], eax
call edi
push 0
push 0
push ebx
push dword [esi + 0xa0]
mov dword [ebp - 0x290], eax
call edi
push 0
push 0
push ebx
push dword [esi + 0xd0]
mov dword [ebp - 0x298], eax
call edi
push 0
push 0
push ebx
push dword [esi + 0x100]
mov dword [ebp - 0x29c], eax
call edi
push 0
push 0
push ebx
push dword [esi + 0x130]
mov dword [ebp - 0x294], eax
call edi
xor edi, edi
push edi
push edi
push dword [ebp - 0x294]
mov dword [0x56acf0], eax
push dword [ebp - 0x29c]
lea eax, [ebp - 0x2c]
push dword [ebp - 0x298]
push edi
push dword [ebp - 0x290]
push dword [ebp - 0x28c]
push 0x496800
push 0x14
push eax
call fcn.0046dffd
add esp, 0x2c
xor eax, eax
push 7
pop ebx
mov word [ebp - 0x250], ax
lea eax, [ebp - 0x2c]
push eax
lea ecx, [ebp - 0x250]
mov dword [ebp - 0x23c], ebx
mov dword [ebp - 0x240], edi
call fcn.00401fb0
xor eax, eax
mov word [ebp - 0x26c], ax
lea eax, [ebp - 0x234]
push eax
lea ecx, [ebp - 0x26c]
mov dword [ebp - 0x258], ebx
mov dword [ebp - 0x25c], edi
call fcn.00401fb0
mov ecx, dword [esi + 0x284]
lea eax, [ebp - 0x288]
push eax
call fcn.00457c81
lea eax, [ebp - 0x288]
push eax
lea eax, [ebp - 0x26c]
push eax
lea eax, [ebp - 0x250]
push eax
call fcn.00432e49
mov ecx, eax
call fcn.00457881
lea ecx, [esi + 0x34]
call fcn.00457b0d
push edi
push dword [esi + 0x14]
call fcn.00455358
pop ecx
pop ecx
xor esi, esi
push edi
inc esi
push esi
lea ecx, [ebp - 0x288]
call fcn.00402b70
push edi
push esi
lea ecx, [ebp - 0x26c]
call fcn.00402b70
push edi
push esi
lea ecx, [ebp - 0x250]
call fcn.00402b70
mov ecx, dword [ebp - 4]
pop edi
mov eax, esi
pop esi
xor ecx, ebp
pop ebx
call fcn.0046e0cd
leave
ret 0x10
Function at 0x458eae
Capabilities:
Get disk size

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x40
mov eax, dword [0x4a02f0]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
cmp dword [eax + 0x14], 8
push ebx
push esi
push edi
mov ebx, ecx
jb 0x458ece
mov eax, dword [eax]
push eax
lea ecx, [ebp - 0x28]
call fcn.0045591b
xor esi, esi
push esi
push 0x4962e0
lea ecx, [ebp - 0x28]
call fcn.00455154
cmp eax, esi
jg 0x458f06
lea ecx, [ebp - 0x28]
call fcn.0044bec1
mov ecx, dword [ebp - 4]
pop edi
mov eax, esi
pop esi
xor ecx, ebp
pop ebx
call fcn.0046e0cd
leave
ret 4
add eax, 2
push eax
push esi
lea eax, [ebp - 0x24]
push eax
lea ecx, [ebp - 0x28]
call fcn.0045597b
xor eax, eax
mov dword [ebp - 0x38], esi
lea edi, [ebp - 0x34]
stosd dword es:[edi], eax
mov dword [ebp - 0x40], esi
lea edi, [ebp - 0x3c]
stosd dword es:[edi], eax
mov dword [ebp - 0x30], esi
lea edi, [ebp - 0x2c]
stosd dword es:[edi], eax
lea eax, [ebp - 0x30]
push eax
lea eax, [ebp - 0x40]
push eax
lea eax, [ebp - 0x38]
push eax
push dword [ebp - 0x24]
call dword [sym.imp.KERNEL32.dll_GetDiskFreeSpaceExW]
test eax, eax
je 0x458f9d
mov eax, dword [ebp - 0x30]
mov ecx, dword [ebp - 0x2c]
shrd eax, ecx, 0x14
shr ecx, 0x14
cmp eax, 0x190
jb 0x458f68
lea ecx, [ebp - 0x24]
call fcn.0044bec1
xor esi, esi
inc esi
jmp 0x458eeb
mov edi, dword [0x56ab14]
lea eax, [ebp - 0x20]
push 0x1396
push eax
call fcn.0043eee7
cmp dword [eax + 0x14], 8
pop ecx
pop ecx
jb 0x458f86
mov eax, dword [eax]
push esi
push edi
push eax
push dword [ebx + 4]
call dword [sym.imp.USER32.dll_MessageBoxW]
push esi
push 1
lea ecx, [ebp - 0x20]
call fcn.00402b70
lea ecx, [ebp - 0x24]
call fcn.0044bec1
jmp 0x458eeb

Function at 0x459e20
Capabilities:
Hide graphical window

Disassembly:
push esi
mov esi, ecx
push 0
push dword [esi + 4]
call dword [sym.imp.USER32.dll_ShowWindow]
push dword [esi + 4]
call fcn.0044e54d
mov ecx, eax
call fcn.0045215d
lea ecx, [eax + 0x20]
call fcn.004551e3
pop esi
ret

Function at 0x459e52
Capabilities:
Hide graphical window

Disassembly:
push esi
mov esi, ecx
push 0
push dword [esi + 4]
call dword [sym.imp.USER32.dll_ShowWindow]
push dword [esi + 4]
call fcn.0044e54d
mov ecx, eax
call fcn.0045215d
lea ecx, [eax + 0x20]
call fcn.004551e3
xor eax, eax
pop esi
ret 0x10
Function at 0x45a273
Capabilities:
Get graphical window text
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x230
mov eax, dword [0x4a02f0]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, ecx
mov eax, dword [esi + 0x14]
push edi
mov dword [ebp - 0x228], eax
call fcn.0042bf0e
mov ebx, dword [sym.imp.USER32.dll_IsWindow]
xor edi, edi
push edi
mov dword [ebp - 0x220], eax
call ebx
test eax, eax
je 0x45a2b6
mov eax, dword [ebp - 0x220]
mov dword [eax], edi
push dword [ebp - 0x228]
call ebx
test eax, eax
je 0x45a2d1
mov eax, dword [ebp - 0x228]
mov ecx, dword [ebp - 0x220]
mov dword [ecx + 4], eax
push 3
push 0xf060
push edi
push dword [esi + 0x14]
call dword [sym.imp.USER32.dll_GetSystemMenu]
push eax
call dword [sym.imp.USER32.dll_EnableMenuItem]
mov eax, dword [esi + 0x14]
push eax
mov dword [ebp - 0x220], eax
call dword [sym.imp.USER32.dll_GetDC]
mov dword [ebp - 0x224], eax
call fcn.0045afd2
push dword [eax + 0x54]
push dword [ebp - 0x224]
call dword [sym.imp.GDI32.dll_SelectObject]
xor eax, eax
push 0x206
mov word [ebp - 0x20c], ax
lea eax, [ebp - 0x20a]
push edi
push eax
call fcn.0046e0e0
add esp, 0xc
push 0x104
lea eax, [ebp - 0x20c]
push eax
push dword [esi + 0xac]
mov dword [ebp - 0x230], edi
mov dword [ebp - 0x22c], edi
call dword [sym.imp.USER32.dll_GetWindowTextW]
lea eax, [ebp - 0x20c]
lea ecx, [eax + 2]
mov dx, word [eax]
add eax, 2
cmp dx, di
jne 0x45a35e
sub eax, ecx
lea ecx, [ebp - 0x230]
push ecx
sar eax, 1
push eax
lea eax, [ebp - 0x20c]
push eax
push dword [ebp - 0x224]
call dword [sym.imp.GDI32.dll_GetTextExtentPoint32W]
mov eax, dword [ebp - 0x22c]
push 4
add eax, 3
push eax
mov eax, dword [ebp - 0x230]
add eax, 5
push eax
push 0x16
push 0x16
push edi
push dword [esi + 0xac]
mov edi, dword [sym.imp.USER32.dll_SetWindowPos]
call edi
call fcn.0045afd2
mov ebx, dword [sym.imp.USER32.dll_SendMessageW]
push 1
push dword [eax + 0x54]
push 0x30
push dword [esi + 0xac]
call ebx
push 4
push 0x32
push 0x5d
push 0x6e
push 0x2b
push 0
push dword [esi + 0x80]
mov dword [esi + 0xcc], 0x1c782b
call edi
call fcn.0045afd2
push 1
push dword [eax + 0x3c]
push 0x30
push dword [esi + 0x80]
call ebx
lea eax, [ebp - 0x21c]
push eax
push dword [esi + 0x14]
lea ecx, [esi + 0x34]
mov dword [ebp - 0x21c], 0x2b
mov dword [ebp - 0x218], 0x8d
mov dword [ebp - 0x214], 0x1c7
mov dword [ebp - 0x210], 0xa3
call fcn.004529f7
push 5
push dword [esi + 0x38]
call dword [sym.imp.USER32.dll_ShowWindow]
mov edi, dword [sym.imp.USER32.dll_SetTimer]
xor ebx, ebx
push ebx
push 5
push 0x64
push dword [esi + 0x14]
mov dword [esi + 0x78], ebx
mov dword [esi + 0x74], 0xa
mov word [esi + 8], 0x101
call edi
push ebx
push 0x12c
push 0x65
push dword [esi + 0x14]
call edi
lea ecx, [ebp - 0x224]
call fcn.00452a81
mov ecx, dword [ebp - 4]
pop edi
xor eax, eax
pop esi
xor ecx, ebp
inc eax
pop ebx
call fcn.0046e0cd
leave
ret 8
Function at 0x45abea
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
push esi
push 0x14
call fcn.0046e1e3
xor ebx, ebx
pop ecx
cmp eax, ebx
je 0x45ac10
mov dword [eax + 0x10], ebx
mov dword [eax + 8], ebx
mov dword [eax + 0xc], ebx
mov dword [eax], ebx
mov dword [eax + 4], ebx
jmp 0x45ac12
xor eax, eax
mov esi, dword [ebp + 8]
mov dword [esi], eax
cmp eax, ebx
jne 0x45ac22
xor eax, eax
jmp 0x45ad4d
push edi
xor eax, eax
lea edi, [ebp - 0xc]
mov dword [ebp - 0x10], ebx
stosd dword es:[edi], eax
mov edi, dword [0x56d2fc]
cmp dword [ebp + 0xc], ebx
je 0x45ad34
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push edi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov dword [ebp - 8], eax
cmp eax, ebx
je 0x45ad34
push eax
push edi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov dword [ebp - 0xc], eax
cmp eax, ebx
je 0x45ad34
push dword [ebp - 8]
push edi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov edi, eax
push edi
push 0x22
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
push eax
mov dword [ebp - 4], eax
call dword [sym.imp.KERNEL32.dll_GlobalLock]
push dword [ebp - 0xc]
mov dword [ebp + 8], eax
call dword [sym.imp.KERNEL32.dll_LockResource]
cmp dword [ebp + 8], ebx
je 0x45acab
cmp eax, ebx
je 0x45acab
cmp edi, ebx
jbe 0x45acab
push edi
push eax
push dword [ebp + 8]
call fcn.0046d7f0
add esp, 0xc
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_FreeResource]
cmp dword [ebp - 4], ebx
je 0x45ad34
lea eax, [ebp + 8]
push eax
push 1
push dword [ebp - 4]
mov dword [ebp + 8], ebx
call dword [sym.imp.ole32.dll_CreateStreamOnHGlobal]
test eax, eax
jne 0x45ad34
cmp dword [ebp + 8], ebx
je 0x45ad34
push 0x10
call sub.gdiplus.dll_GdipAlloc
mov edi, eax
cmp edi, ebx
je 0x45acfb
mov ecx, dword [ebp + 8]
lea eax, [edi + 4]
push eax
push ecx
mov dword [edi], 0x4961fc
mov dword [eax], ebx
call sub.gdiplus.dll_GdipLoadImageFromStream
mov dword [edi + 8], eax
jmp 0x45acfd
xor edi, edi
cmp edi, ebx
je 0x45ad34
mov ecx, edi
call fcn.0045a625
mov ecx, edi
mov ebx, eax
call fcn.0045a649
mov ecx, dword [esi]
mov edx, dword [ebp - 4]
mov dword [ecx + 0x10], edi
mov ecx, dword [esi]
mov dword [ecx + 8], edx
mov ecx, dword [esi]
mov dword [ecx], ebx
mov dword [ecx + 4], eax
mov eax, dword [esi]
and dword [eax + 0xc], 0
xor eax, eax
test ebx, ebx
setg al
jmp 0x45ad4c
mov edi, dword [esi]
cmp edi, ebx
je 0x45ad48
mov ecx, edi
call fcn.0045a66d
push edi
call fcn.0046d64b
pop ecx
mov dword [esi], ebx
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret