joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40a560
Capabilities:
Read .ini file

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x42c046
push eax
mov dword fs:[0], esp
sub esp, 0x114
push esi
mov esi, ecx
call fcn.00409e50
mov eax, dword [0x43c820]
test eax, eax
jne 0x40a658
mov ecx, dword [esi + 0x9c]
lea eax, [esi + 0x9c]
mov edx, dword [ecx - 8]
test edx, edx
je 0x40a658
push ebx
push edi
mov edi, dword [esi + 0xa0]
push str.Download
lea edx, [esp + 0x18]
push eax
push edx
call fcn.00424506
mov eax, dword [eax]
push edi
lea ecx, [esp + 0x1c]
push 0x104
push ecx
push eax
push str.Download_Directory
push str.USER_PREFS
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
test eax, eax
lea ecx, [esp + 0x14]
seta bl
call fcn.004242bd
pop edi
test bl, bl
pop ebx
je 0x40a658
push 0x4392d0
lea ecx, [esp + 8]
call fcn.0042432b
lea edx, [esp + 0x10]
lea ecx, [esp + 8]
push edx
mov dword [esp + 0x124], 0
call fcn.0042432b
lea eax, [esp + 4]
push 1
lea ecx, [esp + 0xc]
push eax
push ecx
mov ecx, esi
mov byte [esp + 0x12c], 1
call fcn.00401e50
lea ecx, [esp + 8]
mov byte [esp + 0x120], 0
call fcn.004242bd
lea ecx, [esp + 4]
mov dword [esp + 0x120], 0xffffffff
call fcn.004242bd
mov ecx, dword [esp + 0x118]
pop esi
mov dword fs:[0], ecx
add esp, 0x120
ret

Function at 0x40a57b
Capabilities:
Read .ini file

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x42c046
push eax
mov dword fs:[0], esp
sub esp, 0x114
push esi
mov esi, ecx
call fcn.00409e50
mov eax, dword [0x43c820]
test eax, eax
jne 0x40a658
mov ecx, dword [esi + 0x9c]
lea eax, [esi + 0x9c]
mov edx, dword [ecx - 8]
test edx, edx
je 0x40a658
push ebx
push edi
mov edi, dword [esi + 0xa0]
push str.Download
lea edx, [esp + 0x18]
push eax
push edx
call fcn.00424506
mov eax, dword [eax]
push edi
lea ecx, [esp + 0x1c]
push 0x104
push ecx
push eax
push str.Download_Directory
push str.USER_PREFS
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
test eax, eax
lea ecx, [esp + 0x14]
seta bl
call fcn.004242bd
pop edi
test bl, bl
pop ebx
je 0x40a658
push 0x4392d0
lea ecx, [esp + 8]
call fcn.0042432b
lea edx, [esp + 0x10]
lea ecx, [esp + 8]
push edx
mov dword [esp + 0x124], 0
call fcn.0042432b
lea eax, [esp + 4]
push 1
lea ecx, [esp + 0xc]
push eax
push ecx
mov ecx, esi
mov byte [esp + 0x12c], 1
call fcn.00401e50
lea ecx, [esp + 8]
mov byte [esp + 0x120], 0
call fcn.004242bd
lea ecx, [esp + 4]
mov dword [esp + 0x120], 0xffffffff
call fcn.004242bd
mov ecx, dword [esp + 0x118]
pop esi
mov dword fs:[0], ecx
add esp, 0x120
ret
Function at 0x40a670
Capabilities:
Read .ini file

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x42c066
push eax
mov dword fs:[0], esp
sub esp, 0x140
push esi
mov esi, ecx
call fcn.00409fe0
mov eax, dword [esi + 0xa0]
push eax
lea eax, [esp + 0x40]
push 0x104
push eax
push 0x43c824
push str.HOT_LIST_FILE_VER2
push str.USER_PREFS
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
test eax, eax
jbe 0x40a750
lea ecx, [esp + 0x3c]
push edi
push ecx
lea ecx, [esp + 0xc]
call fcn.0042432b
lea edx, [esp + 8]
mov ecx, esi
push edx
mov dword [esp + 0x154], 0
call fcn.004018e0
lea ecx, [esp + 8]
mov dword [esp + 0x150], 0xffffffff
call fcn.004242bd
mov ecx, 7
mov esi, str.Opera_Hotlist_version_2.0_n_n__n
lea edi, [esp + 0x20]
lea eax, [esp + 0x40]
rep movsd dword es:[edi], dword [esi]
push 0x1011
push eax
lea ecx, [esp + 0x14]
movsw word es:[edi], word [esi]
call fcn.00426111
lea ecx, [esp + 0x20]
push 0x1e
push ecx
lea ecx, [esp + 0x14]
mov dword [esp + 0x158], 1
call fcn.0042632d
lea ecx, [esp + 0xc]
mov dword [esp + 0x150], 0xffffffff
call fcn.004261aa
pop edi
mov ecx, dword [esp + 0x144]
pop esi
mov dword fs:[0], ecx
add esp, 0x14c
ret

Function at 0x40a68b
Capabilities:
Read .ini file

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x42c066
push eax
mov dword fs:[0], esp
sub esp, 0x140
push esi
mov esi, ecx
call fcn.00409fe0
mov eax, dword [esi + 0xa0]
push eax
lea eax, [esp + 0x40]
push 0x104
push eax
push 0x43c824
push str.HOT_LIST_FILE_VER2
push str.USER_PREFS
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
test eax, eax
jbe 0x40a750
lea ecx, [esp + 0x3c]
push edi
push ecx
lea ecx, [esp + 0xc]
call fcn.0042432b
lea edx, [esp + 8]
mov ecx, esi
push edx
mov dword [esp + 0x154], 0
call fcn.004018e0
lea ecx, [esp + 8]
mov dword [esp + 0x150], 0xffffffff
call fcn.004242bd
mov ecx, 7
mov esi, str.Opera_Hotlist_version_2.0_n_n__n
lea edi, [esp + 0x20]
lea eax, [esp + 0x40]
rep movsd dword es:[edi], dword [esi]
push 0x1011
push eax
lea ecx, [esp + 0x14]
movsw word es:[edi], word [esi]
call fcn.00426111
lea ecx, [esp + 0x20]
push 0x1e
push ecx
lea ecx, [esp + 0x14]
mov dword [esp + 0x158], 1
call fcn.0042632d
lea ecx, [esp + 0xc]
mov dword [esp + 0x150], 0xffffffff
call fcn.004261aa
pop edi
mov ecx, dword [esp + 0x144]
pop esi
mov dword fs:[0], ecx
add esp, 0x14c
ret
Function at 0x40a770
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x42c088
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x124
push ebx
push esi
push edi
mov esi, ecx
mov dword [ebp - 0x10], esp
call fcn.0040a0f0
mov eax, dword [esi + 0x9c]
lea edi, [esi + 0x9c]
mov ecx, dword [eax - 8]
test ecx, ecx
je 0x40a8aa
push str.global.dat
lea ecx, [ebp - 0x14]
push edi
push ecx
call fcn.00424506
push eax
mov ecx, esi
mov dword [ebp - 4], 0
call fcn.004018e0
lea ecx, [ebp - 0x14]
mov dword [ebp - 4], 0xffffffff
call fcn.004242bd
mov ebx, dword [esi + 0xa0]
push str.Opera.win
lea edx, [ebp - 0x14]
push edi
push edx
call fcn.00424506
mov eax, dword [eax]
push ebx
lea ecx, [ebp - 0x130]
push 0x104
push ecx
push eax
push str.WINDOWS_STORAGE_FILE
push str.USER_PREFS
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
test eax, eax
lea ecx, [ebp - 0x14]
seta bl
call fcn.004242bd
test bl, bl
je 0x40a8aa
lea edx, [ebp - 0x130]
lea ecx, [ebp - 0x14]
push edx
call fcn.0042432b
lea eax, [ebp - 0x14]
mov ecx, esi
push eax
mov dword [ebp - 4], 1
call fcn.004018e0
lea ecx, [ebp - 0x14]
mov dword [ebp - 4], 0xffffffff
call fcn.004242bd
lea ecx, [ebp - 0x130]
push 0x9011
mov bl, 3
push ecx
lea ecx, [ebp - 0x28]
mov dword [ebp - 4], 2
mov byte [ebp - 0x14], bl
mov byte [ebp - 0x13], 0xf5
mov byte [ebp - 0x12], 0
mov byte [ebp - 0x11], 0
call fcn.00425212
lea edx, [ebp - 0x14]
push 4
push edx
lea ecx, [ebp - 0x28]
mov byte [ebp - 4], bl
call fcn.004254c6
lea ecx, [ebp - 0x28]
call fcn.0042558a
lea ecx, [ebp - 0x28]
mov byte [ebp - 4], 2
call fcn.004252b2
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x40c820
Capabilities:
Get number of processors

Disassembly:
push 0xffffffffffffffff
push 0x42c428
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x10
mov eax, dword [0x43b340]
push ebx
push ebp
push esi
push edi
mov esi, ecx
mov dword [esp + 0x14], eax
xor ebp, ebp
mov dword [esp + 0x10], eax
mov dword [esp + 0x28], ebp
push ebp
mov bl, 1
push str.FileCount
push str.DeleteOnWindowsRestart
mov ecx, 0x43c830
mov byte [esp + 0x34], bl
call fcn.004293ac
xor edi, edi
cmp eax, ebp
mov dword [esi + 0x68], eax
jle 0x40c93b
mov eax, dword [esi + 0x68]
lea ecx, [esp + 0x14]
push eax
push str.File__d
push ecx
call fcn.0041f536
mov edx, dword [esp + 0x20]
add esp, 0xc
lea eax, [esp + 0x1c]
mov ecx, 0x43c830
push 0x43c824
push edx
push str.DeleteOnWindowsRestart
push eax
call fcn.00429418
push eax
lea ecx, [esp + 0x14]
mov byte [esp + 0x2c], 2
call fcn.004243aa
lea ecx, [esp + 0x1c]
mov byte [esp + 0x28], bl
call fcn.004242bd
mov ecx, dword [esp + 0x10]
mov eax, dword [ecx - 8]
test eax, eax
je 0x40c8e0
lea edx, [esp + 0x10]
mov ecx, esi
push edx
call fcn.004018e0
mov eax, dword [esp + 0x14]
push 0x43c824
push eax
push str.DeleteOnWindowsRestart
mov ecx, 0x43c830
call fcn.00428363
push 0x43c824
lea ecx, [esp + 0x1c]
call fcn.0042432b
mov eax, ebp
lea ecx, [esp + 0x18]
cdq
idiv dword [esi + 0x68]
mov byte [esp + 0x28], 3
push eax
push ecx
mov ecx, esi
call fcn.00402b50
lea ecx, [esp + 0x18]
mov byte [esp + 0x28], bl
call fcn.004242bd
mov eax, dword [esi + 0x68]
inc edi
add ebp, 0x64
cmp edi, eax
jl 0x40c879
push 0
push str.WorkToBeDone
push 0x43c824
mov ecx, 0x43c830
call fcn.004282ee
push str.Software_stevengould.orgCleanUp_DeleteOnWindowsRestart
lea ecx, [esp + 0x1c]
call fcn.0042432b
lea edx, [esp + 0x18]
mov ecx, esi
push edx
push 0x80000001
mov byte [esp + 0x30], 4
call fcn.004029c0
lea ecx, [esp + 0x18]
mov byte [esp + 0x28], bl
call fcn.004242bd
push 0
push 0
mov ecx, esi
call fcn.00402b90
lea ecx, [esp + 0x10]
mov byte [esp + 0x28], 0
call fcn.004242bd
lea ecx, [esp + 0x14]
mov dword [esp + 0x28], 0xffffffff
call fcn.004242bd
mov ecx, dword [esp + 0x20]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x1c
ret
Function at 0x40d370
Capabilities:
Get common file path
Query environment variable

Disassembly:
push 0xffffffffffffffff
push 0x42c573
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x214
push ebp
push edi
mov edi, ecx
mov dword [esp + 0x10], edi
call fcn.00401750
mov eax, dword [0x43b340]
mov dword [esp + 0x224], 0
mov dword [edi + 0x9c], eax
mov ecx, dword [0x43b340]
lea ebp, [edi + 0xa0]
mov dword [ebp], ecx
mov edx, dword [esp + 0x22c]
push 0x43c824
mov ecx, ebp
mov byte [esp + 0x228], 2
mov dword [edi + 0xa4], edx
mov dword [edi], 0x42f308
call fcn.004243fa
lea eax, [esp + 0x14]
push 0x104
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
test eax, eax
je 0x40d427
lea ecx, [esp + 0x14]
push ecx
lea ecx, [esp + 0xc]
call fcn.0042432b
push eax
mov ecx, ebp
mov byte [esp + 0x228], 3
call fcn.004243aa
lea ecx, [esp + 8]
mov byte [esp + 0x224], 2
call fcn.004242bd
push ebx
push esi
push 1
push 0x5c
lea ecx, [esp + 0x18]
call fcn.0041ef90
lea edx, [esp + 0x14]
push 1
push edx
mov ecx, ebp
mov byte [esp + 0x234], 4
call fcn.0041f0df
mov esi, dword [esp + 0x10]
mov eax, dword [eax]
mov dl, byte [eax]
mov bl, byte [esi]
mov cl, dl
cmp dl, bl
jne 0x40d47a
test cl, cl
je 0x40d476
mov dl, byte [eax + 1]
mov bl, byte [esi + 1]
mov cl, dl
cmp dl, bl
jne 0x40d47a
add eax, 2
add esi, 2
test cl, cl
jne 0x40d452
xor eax, eax
jmp 0x40d47f
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
lea ecx, [esp + 0x14]
setne bl
call fcn.004242bd
lea ecx, [esp + 0x10]
mov byte [esp + 0x22c], 2
call fcn.004242bd
pop esi
test bl, bl
pop ebx
je 0x40d4b0
push 0x4392c8
mov ecx, ebp
call fcn.0042464d
lea eax, [esp + 0x118]
push 0x104
push eax
push str.USERPROFILE
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableA]
test eax, eax
jbe 0x40d4df
lea ecx, [esp + 0x118]
push ecx
lea ecx, [edi + 0x9c]
call fcn.004243fa
mov ecx, dword [esp + 0x21c]
mov eax, edi
pop edi
pop ebp
mov dword fs:[0], ecx
add esp, 0x220
ret 4
Function at 0x40d590
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x42c5c0
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x10
push ebx
push ebp
push esi
mov esi, ecx
push edi
push str.Cleaning_up_custom_directories
lea ecx, [esp + 0x1c]
call fcn.0042432b
lea eax, [esp + 0x18]
xor edi, edi
push 0xffffffffffffffff
push eax
mov ecx, esi
mov dword [esp + 0x30], edi
call fcn.00402b50
lea ecx, [esp + 0x18]
mov dword [esp + 0x28], 0xffffffff
call fcn.004242bd
mov ecx, dword [esi + 0xa4]
add ecx, 0xc
call fcn.00404b50
mov ebp, eax
cmp ebp, edi
jle 0x40d6d5
mov ebx, 1
lea ecx, [esp + 0x14]
push edi
push ecx
mov ecx, dword [esi + 0xa4]
add ecx, 0xc
call fcn.00404b90
mov ecx, dword [esi + 0xa4]
lea edx, [esp + 0x10]
push edi
push edx
add ecx, 0xc
mov dword [esp + 0x30], ebx
call fcn.00404c90
mov eax, dword [esp + 0x14]
mov byte [esp + 0x28], 2
mov ecx, dword [eax - 8]
test ecx, ecx
je 0x40d67c
mov ecx, dword [esp + 0x10]
mov eax, dword [ecx - 8]
test eax, eax
je 0x40d67c
mov dl, byte [0x42ea3c]
lea eax, [esp + 0x14]
push edx
lea ecx, [esp + 0x20]
push eax
push ecx
call fcn.0041efc4
lea edx, [esp + 0x10]
push ebx
push edx
push eax
mov ecx, esi
mov byte [esp + 0x34], 3
call fcn.00401e50
lea ecx, [esp + 0x1c]
mov byte [esp + 0x28], 2
call fcn.004242bd
mov eax, dword [0x43c820]
mov byte [esp + 0x28], bl
test eax, eax
lea ecx, [esp + 0x10]
jne 0x40d6bf
call fcn.004242bd
lea ecx, [esp + 0x14]
mov dword [esp + 0x28], 0xffffffff
call fcn.004242bd
inc edi
cmp edi, ebp
jl 0x40d5fe
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x10]
mov dword fs:[0], ecx
add esp, 0x1c
ret
call fcn.004242bd
lea ecx, [esp + 0x14]
mov dword [esp + 0x28], 0xffffffff
call fcn.004242bd
mov ecx, dword [esp + 0x20]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x1c
ret
Function at 0x40d6f0
Capabilities:
Persist via run registry key

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x42c620
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x30
push ebx
push esi
push edi
mov edi, ecx
mov dword [ebp - 0x10], esp
push 0x4392d0
lea ecx, [ebp - 0x18]
mov dword [ebp - 0x24], edi
mov dword [ebp - 4], 0
call fcn.0042432b
lea eax, [edi + 0x9c]
push str.Recent_
lea ecx, [ebp - 0x1c]
push eax
push ecx
mov byte [ebp - 4], 1
call fcn.00424506
lea edx, [ebp - 0x18]
push 1
push edx
push eax
mov ecx, edi
mov byte [ebp - 4], 2
call fcn.00401e50
lea ecx, [ebp - 0x1c]
mov byte [ebp - 4], 1
call fcn.004242bd
lea ecx, [ebp - 0x18]
mov byte [ebp - 4], 0
call fcn.004242bd
push str.Recent
lea ecx, [ebp - 0x1c]
call fcn.0042432b
push str.SOFTWAREMicrosoftWindowsCurrentVersionExplorerShell_Folders
lea ecx, [ebp - 0x18]
mov byte [ebp - 4], 3
call fcn.0042432b
lea eax, [ebp - 0x1c]
lea ecx, [ebp - 0x18]
push eax
push ecx
lea edx, [ebp - 0x14]
push 0x80000001
push edx
mov ecx, edi
mov byte [ebp - 4], 4
call fcn.00402740
lea ecx, [ebp - 0x18]
mov byte [ebp - 4], 7
call fcn.004242bd
mov bl, 6
lea ecx, [ebp - 0x1c]
mov byte [ebp - 4], bl
call fcn.004242bd
mov eax, dword [ebp - 0x14]
mov ecx, dword [eax - 8]
test ecx, ecx
je 0x40d81d
push str.Deleting_recent_Documents_folder
lea ecx, [ebp - 0x20]
call fcn.0042432b
push 0xffffffffffffffff
push eax
mov ecx, edi
mov byte [ebp - 4], 8
call fcn.00402b50
lea ecx, [ebp - 0x20]
mov byte [ebp - 4], bl
call fcn.004242bd
push 0x4392d0
lea ecx, [ebp - 0x20]
call fcn.0042432b
lea ecx, [ebp - 0x20]
push 0
lea edx, [ebp - 0x14]
push ecx
push edx
mov ecx, edi
mov byte [ebp - 4], 9
call fcn.00401e50
lea ecx, [ebp - 0x20]
mov byte [ebp - 4], bl
call fcn.004242bd
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], 0
call fcn.004242bd
jmp 0x40d834
mov eax, dword [edi + 0xa4]
mov dword [ebp - 4], 0xffffffff
mov cl, byte [eax + 7]
test cl, cl
je 0x40d8d2
lea ecx, [ebp - 0x3c]
call fcn.0041fe34
lea ecx, [ebp - 0x3c]
mov dword [ebp - 4], 0xb
push ecx
mov ecx, edi
call fcn.0040f4a0
mov edx, dword [ebp - 0x34]
lea esi, [edx - 1]
test esi, esi
jl 0x40d8c3
mov bl, 0xc
push 0x4392d0
lea ecx, [ebp - 0x20]
call fcn.0042432b
mov eax, dword [ebp - 0x38]
push str.Recent_
lea edx, [ebp - 0x28]
mov byte [ebp - 4], bl
lea ecx, [eax + esi*4]
push ecx
push edx
call fcn.00424506
lea ecx, [ebp - 0x20]
push 1
push ecx
push eax
mov ecx, edi
mov byte [ebp - 4], 0xd
call fcn.00401e50
lea ecx, [ebp - 0x28]
mov byte [ebp - 4], bl
call fcn.004242bd
lea ecx, [ebp - 0x20]
mov byte [ebp - 4], 0xb
call fcn.004242bd
dec esi
jns 0x40d872
lea ecx, [ebp - 0x3c]
mov dword [ebp - 4], 0xffffffff
call fcn.0041fe67
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4173c9
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1a4
mov edx, dword [ebp + 8]
xor ecx, ecx
mov eax, 0x43c068
cmp edx, dword [eax]
je 0x4173eb
add eax, 8
inc ecx
cmp eax, 0x43c0f8
jl 0x4173dc
push esi
mov esi, ecx
shl esi, 3
cmp edx, dword [esi + 0x43c068]
jne 0x417519
mov eax, dword [0x43e920]
cmp eax, 1
je 0x4174f3
test eax, eax
jne 0x41741c
cmp dword [0x43b808], 1
je 0x4174f3
cmp edx, 0xfc
je 0x417519
lea eax, [ebp - 0x1a4]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x417453
lea eax, [ebp - 0x1a4]
push str._program_name_unknown_
push eax
call fcn.00418660
pop ecx
pop ecx
lea eax, [ebp - 0x1a4]
push edi
push eax
lea edi, [ebp - 0x1a4]
call fcn.004157d0
inc eax
pop ecx
cmp eax, 0x3c
jbe 0x417496
lea eax, [ebp - 0x1a4]
push eax
call fcn.004157d0
mov edi, eax
lea eax, [ebp - 0x1a4]
sub eax, 0x3b
push 3
add edi, eax
push 0x431118
push edi
call fcn.004193e0
add esp, 0x10
lea eax, [ebp - 0xa0]
push str.Runtime_Error__n_nProgram:
push eax
call fcn.00418660
lea eax, [ebp - 0xa0]
push edi
push eax
call fcn.00418670
lea eax, [ebp - 0xa0]
push 0x4310f8
push eax
call fcn.00418670
push dword [esi + 0x43c06c]
lea eax, [ebp - 0xa0]
push eax
call fcn.00418670
push 0x12010
lea eax, [ebp - 0xa0]
push str.Microsoft_Visual_C_Runtime_Library
push eax
call fcn.0041a484
add esp, 0x2c
pop edi
jmp 0x417519
lea eax, [ebp + 8]
lea esi, [esi + 0x43c06c]
push 0
push eax
push dword [esi]
call fcn.004157d0
pop ecx
push eax
push dword [esi]
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop esi
leave
ret
Function at 0x41e850
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.00411420
mov dword [ebp - 4], esp
cmp dword [ebp - 4], 0
je 0x41e91b
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 0x41e91b
mov bx, 0x140
mov edi, dword [ebp + 0x14]
mov eax, edi
and al, 0xf
cmp al, 0xc
je 0x41e8ce
mov ebx, edi
and bx, 0xf
or bx, 0x150
test edi, 0x80
je 0x41e8d9
or bh, 8
and edi, 0x8000000
je 0x41e8f4
mov eax, dword [0x4400dc]
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 0x41e91b
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 0x41ecf0
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 0x41ed1b
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 0x41ed3f
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 0x41ed5a
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 0x421c93
Capabilities:
Get graphical window text

Disassembly:
push esi
mov esi, ecx
mov ecx, dword [esi + 0x38]
test ecx, ecx
jne 0x421ccb
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.00424718
push eax
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextA]
mov ecx, dword [esp + 8]
push 0xffffffffffffffff
call fcn.004246f0
jmp 0x421cd7
mov eax, dword [ecx]
push dword [esp + 8]
call dword [eax + 0x88]
pop esi
ret 4
Function at 0x4231e0
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 0x423222
call fcn.00428e51
mov esi, dword [eax + 0xc]
push 0xf0
push dword [esp + 0x14]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
cmp eax, edi
je 0x423222
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, edi
jne 0x423219
xor eax, eax
jmp 0x42322a
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
push edi
mov ecx, ebx
call fcn.00423230
pop edi
pop esi
pop ebx
ret 4

Function at 0x425c39
Capabilities:
Check if file exists
Get file attributes
Set file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
push ebx
push edi
push dword [ebp + 8]
xor edi, edi
mov dword [ebp - 0xc], edi
mov dword [ebp - 8], edi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
mov ebx, dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xffffffff
mov dword [ebp - 4], eax
jne 0x425c69
push edi
call ebx
push eax
call fcn.00426c7b
push esi
mov esi, dword [ebp + 0xc]
movzx eax, byte [esi + 0x10]
cmp eax, dword [ebp - 4]
je 0x425c93
test byte [ebp - 4], 1
je 0x425c93
push eax
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
test eax, eax
jne 0x425c93
push edi
call ebx
push eax
call fcn.00426c7b
cmp dword [esi + 4], edi
lea eax, [esi + 4]
je 0x425d39
lea ecx, [ebp - 0x24]
push ecx
push eax
call fcn.00425b86
cmp dword [esi + 8], edi
lea eax, [esi + 8]
pop ecx
pop ecx
je 0x425cc5
lea ecx, [ebp - 0x14]
push ecx
push eax
call fcn.00425b86
pop ecx
lea eax, [ebp - 0x14]
pop ecx
mov dword [ebp - 8], eax
cmp dword [esi], edi
je 0x425cdb
lea eax, [ebp - 0x1c]
push eax
push esi
call fcn.00425b86
pop ecx
lea eax, [ebp - 0x1c]
pop ecx
mov dword [ebp - 0xc], eax
push edi
push 0x80
push 3
push edi
push 1
push 0xc0000000
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov edi, eax
cmp edi, 0xffffffff
jne 0x425d05
push 0
call ebx
push eax
call fcn.00426c7b
lea eax, [ebp - 0x24]
push eax
push dword [ebp - 8]
push dword [ebp - 0xc]
push edi
call dword [sym.imp.KERNEL32.dll_SetFileTime]
test eax, eax
jne 0x425d23
push eax
call ebx
push eax
call fcn.00426c7b
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
test eax, eax
jne 0x425d37
push eax
call ebx
push eax
call fcn.00426c7b
xor edi, edi
movzx eax, byte [esi + 0x10]
cmp eax, dword [ebp - 4]
pop esi
je 0x425d60
test byte [ebp - 4], 1
jne 0x425d60
push eax
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
test eax, eax
jne 0x425d60
push edi
call ebx
push eax
call fcn.00426c7b
pop edi
pop ebx
leave
ret 8