joyce8/EMBER2024-capa huggingface dataset:
Function at 0x419275
Capabilities:
Enumerate files on windows

Disassembly:
mov eax, 0x4329d0
call fcn.0042f560
sub esp, 0x490
push ebx
push esi
push edi
mov dword [ebp - 0x10], esp
mov ebx, ecx
or dword [ebp - 0x474], 0xffffffff
xor esi, esi
mov word [ebp - 0x220], si
mov ecx, 0x81
xor eax, eax
lea edi, [ebp - 0x21e]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
push 0x44083c
push dword [ebx + 0x34]
push str._sSkin_s
push 0x103
lea eax, [ebp - 0x220]
push eax
call dword [sym.imp.MSVCRT.dll__snwprintf]
add esp, 0x14
mov word [ebp - 0x1a], si
mov dword [ebp - 4], esi
lea eax, [ebp - 0x470]
push eax
lea eax, [ebp - 0x220]
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov edi, eax
mov dword [ebp - 0x474], edi
cmp edi, 0xffffffff
je 0x419396
mov esi, dword [sym.imp.MSVCRT.dll_wcscmp]
push 0x43be74
lea eax, [ebp - 0x444]
push eax
call esi
pop ecx
pop ecx
test eax, eax
je 0x419379
push 0x44081c
lea eax, [ebp - 0x444]
push eax
call esi
pop ecx
pop ecx
test eax, eax
je 0x419379
test byte [ebp - 0x470], 0x10
je 0x419379
push ecx
mov ecx, esp
lea eax, [ebp - 0x444]
push eax
call fcn.00404729
mov ecx, ebx
call fcn.00418d8d
test eax, eax
je 0x419379
lea eax, [ebp - 0x444]
push eax
lea ecx, [ebp - 0x480]
call fcn.00404729
lea eax, [ebp - 0x480]
push eax
mov ecx, dword [ebp + 8]
call fcn.0041a063
lea ecx, [ebp - 0x480]
call fcn.00404c0d
lea eax, [ebp - 0x470]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x419302
push edi
call dword [sym.imp.KERNEL32.dll_FindClose]
or dword [ebp - 0x474], 0xffffffff
or dword [ebp - 4], 0xffffffff
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
leave
ret 4
Function at 0x4195b0
Capabilities:
Check if file exists
Copy file
Delete file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [0x43a50c]
push ebx
push esi
push edi
push dword [ebp + 8]
mov ebx, ecx
mov dword [ebp - 0xc], eax
mov dword [ebp - 4], eax
push dword [ebx + 0x38]
mov dword [ebp - 8], eax
lea eax, [ebp - 0xc]
push 0x43bb44
push eax
call fcn.00409921
add esp, 0x10
lea edi, [ebx + 0x2c]
lea eax, [ebp - 4]
push dword [ebp + 8]
push dword [edi]
push str._sextensionsFavorites_s
push eax
call fcn.00409921
add esp, 0x10
lea eax, [ebp - 8]
push dword [ebp + 8]
push dword [edi]
push str._sextensionsFavorites_s.bak
push eax
call fcn.00409921
mov esi, dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
add esp, 0x10
push dword [ebp - 0xc]
call esi
test eax, eax
je 0x419736
push str.extensionsFavorites_
lea eax, [ebp - 0x10]
push edi
push eax
call fcn.0041a0ea
push dword [ebp - 0x10]
call esi
test eax, eax
jne 0x419643
push dword [ebp - 0x10]
call fcn.00421506
pop ecx
push dword [ebp - 4]
call esi
test eax, eax
je 0x4196f6
push dword [ebp - 8]
call esi
test eax, eax
je 0x419662
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
push dword [ebp - 8]
push dword [ebp - 4]
call fcn.0042190a
mov edi, dword [sym.imp.KERNEL32.dll_GetLastError]
pop ecx
pop ecx
call edi
push dword [ebp - 4]
mov dword [ebp - 0x14], eax
call esi
test eax, eax
je 0x4196a3
push dword [ebp + 0xc]
lea eax, [ebp + 8]
mov dword [ebx + 0x74], 3
push dword [ebp - 0x14]
push ecx
mov ecx, esp
push eax
call fcn.004046e3
mov ecx, ebx
call fcn.004193cd
push 0
push dword [ebp - 4]
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_CopyFileW]
call edi
push dword [ebp - 4]
mov edi, eax
call esi
test eax, eax
jne 0x4196e2
push dword [ebp + 0xc]
lea eax, [ebp + 8]
push edi
push ecx
mov ecx, esp
push eax
call fcn.004046e3
mov ecx, ebx
call fcn.004193cd
push dword [ebp - 4]
push dword [ebp - 8]
call fcn.0042190a
pop ecx
pop ecx
push dword [ebp - 8]
call esi
test eax, eax
je 0x41972c
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
jmp 0x41972c
push 0
push dword [ebp - 4]
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_CopyFileW]
call dword [sym.imp.KERNEL32.dll_GetLastError]
push dword [ebp - 4]
mov edi, eax
call esi
test eax, eax
jne 0x41972c
push dword [ebp + 0xc]
lea eax, [ebp + 8]
push edi
push ecx
mov ecx, esp
push eax
call fcn.004046e3
mov ecx, ebx
call fcn.004193cd
lea ecx, [ebp - 0x10]
call fcn.00404c0d
jmp 0x419753
call dword [sym.imp.KERNEL32.dll_GetLastError]
push dword [ebp + 0xc]
push eax
push ecx
lea eax, [ebp + 8]
mov ecx, esp
push eax
call fcn.004046e3
mov ecx, ebx
call fcn.004193cd
lea ecx, [ebp - 8]
call fcn.00404c0d
lea ecx, [ebp - 4]
call fcn.00404c0d
lea ecx, [ebp - 0xc]
call fcn.00404c0d
lea ecx, [ebp + 8]
call fcn.00404c0d
pop edi
pop esi
pop ebx
leave
ret 8
Function at 0x41977a
Capabilities:
Check if file exists
Copy file
Delete file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [0x43a50c]
push ebx
push esi
push edi
push dword [ebp + 8]
mov edi, ecx
mov dword [ebp - 0xc], eax
mov dword [ebp - 4], eax
push dword [edi + 0x38]
mov dword [ebp - 8], eax
mov esi, 0x43bb44
lea eax, [ebp - 0xc]
push esi
push eax
call fcn.00409921
add esp, 0x10
lea eax, [ebp - 4]
push dword [ebp + 8]
push dword [edi + 0x34]
push esi
push eax
call fcn.00409921
add esp, 0x10
lea eax, [ebp - 8]
push dword [ebp + 8]
push dword [edi + 0x34]
push str._s_s.bak
push eax
call fcn.00409921
mov esi, dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
add esp, 0x10
push dword [ebp - 0xc]
call esi
test eax, eax
je 0x419909
mov eax, dword [0x43a50c]
push dword [edi + 0x34]
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0x10]
push 0x43ab18
push eax
call fcn.00409921
add esp, 0xc
push dword [ebp - 0x10]
call esi
test eax, eax
jne 0x419816
push dword [ebp - 0x10]
call fcn.00421506
pop ecx
push dword [ebp - 4]
call esi
test eax, eax
je 0x4198c9
push dword [ebp - 8]
call esi
test eax, eax
je 0x419835
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
push dword [ebp - 8]
push dword [ebp - 4]
call fcn.0042190a
mov ebx, dword [sym.imp.KERNEL32.dll_GetLastError]
pop ecx
pop ecx
call ebx
push dword [ebp - 4]
mov dword [ebp - 0x14], eax
call esi
test eax, eax
je 0x419876
push dword [ebp + 0xc]
lea eax, [ebp + 8]
mov dword [edi + 0x74], 3
push dword [ebp - 0x14]
push ecx
mov ecx, esp
push eax
call fcn.004046e3
mov ecx, edi
call fcn.004193cd
push 0
push dword [ebp - 4]
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_CopyFileW]
call ebx
push dword [ebp - 4]
mov ebx, eax
call esi
test eax, eax
jne 0x4198b5
push dword [ebp + 0xc]
lea eax, [ebp + 8]
push ebx
push ecx
mov ecx, esp
push eax
call fcn.004046e3
mov ecx, edi
call fcn.004193cd
push dword [ebp - 4]
push dword [ebp - 8]
call fcn.0042190a
pop ecx
pop ecx
push dword [ebp - 8]
call esi
test eax, eax
je 0x4198ff
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
jmp 0x4198ff
push 0
push dword [ebp - 4]
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_CopyFileW]
call dword [sym.imp.KERNEL32.dll_GetLastError]
push dword [ebp - 4]
mov ebx, eax
call esi
test eax, eax
jne 0x4198ff
push dword [ebp + 0xc]
lea eax, [ebp + 8]
push ebx
push ecx
mov ecx, esp
push eax
call fcn.004046e3
mov ecx, edi
call fcn.004193cd
lea ecx, [ebp - 0x10]
call fcn.00404c0d
jmp 0x419926
call dword [sym.imp.KERNEL32.dll_GetLastError]
push dword [ebp + 0xc]
push eax
push ecx
lea eax, [ebp + 8]
mov ecx, esp
push eax
call fcn.004046e3
mov ecx, edi
call fcn.004193cd
lea ecx, [ebp - 8]
call fcn.00404c0d
lea ecx, [ebp - 4]
call fcn.00404c0d
lea ecx, [ebp - 0xc]
call fcn.00404c0d
lea ecx, [ebp + 8]
call fcn.00404c0d
pop edi
pop esi
pop ebx
leave
ret 8
Function at 0x419b8b
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20c
push ebx
push esi
mov ebx, ecx
push edi
xor esi, esi
mov ecx, 0x81
xor eax, eax
lea edi, [ebp - 0x20a]
push dword [ebx + 0x28]
mov word [ebp - 0x20c], si
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
lea eax, [ebp - 0x20c]
push 0x104
push eax
push 0x443154
push 0x440160
push str.Main
mov dword [ebp - 4], esi
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
cmp word [ebp - 0x20c], si
je 0x419c59
push 3
lea eax, [ebp - 0x20c]
push 0x43af68
push eax
call dword [sym.imp.MSVCRT.dll__wcsnicmp]
add esp, 0xc
test eax, eax
jne 0x419c0d
push 1
mov dword [ebx + 0x80], 6
pop eax
jmp 0x419c5c
cmp dword [str.qvod], esi
je 0x419c59
mov eax, 0x43cb04
mov esi, eax
mov eax, dword [eax]
test eax, eax
je 0x419c3c
cmp word [eax], 0
je 0x419c3c
push eax
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.MSVCRT.dll__wcsicmp]
pop ecx
test eax, eax
pop ecx
je 0x419c48
add esi, 4
mov eax, esi
cmp dword [esi], 0
jne 0x419c1c
jmp 0x419c59
mov dword [ebx + 0x80], 6
mov dword [ebp - 4], 1
mov eax, dword [ebp - 4]
pop edi
pop esi
pop ebx
leave
ret
Function at 0x419c61
Capabilities:
Check if file exists
Delete file
Get common file path
Query or enumerate registry value
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x428
push ebx
push esi
xor esi, esi
push edi
cmp dword [0x445310], esi
mov edi, ecx
je 0x419c96
lea ebx, [edi + 8]
mov ecx, ebx
call fcn.0041a925
push 3
push str.Internet_Explorer
push 0x43dea0
mov ecx, ebx
call fcn.0041a95c
cmp dword [edi + 0x5c], esi
je 0x419de1
mov eax, dword [edi + 4]
push str.Internet_Explorer.lnk
add eax, 0x24
push eax
lea eax, [ebp - 4]
push eax
call fcn.0041a0ea
mov edx, 0x81
xor eax, eax
mov ecx, edx
lea edi, [ebp - 0x426]
mov word [ebp - 0x428], si
mov word [ebp - 0x220], si
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
mov ecx, edx
xor eax, eax
lea edi, [ebp - 0x21e]
push esi
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
lea eax, [ebp - 0x428]
push 0x10
push eax
push esi
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
lea eax, [ebp - 0x428]
push eax
push str._sInternet_Explorer.lnk
lea eax, [ebp - 0x220]
push 0x103
push eax
call dword [sym.imp.MSVCRT.dll__snwprintf]
mov edi, dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
add esp, 0x10
push dword [ebp - 4]
call edi
mov ebx, dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
je 0x419d2f
push dword [ebp - 4]
call ebx
lea eax, [ebp - 0x220]
push eax
call edi
test eax, eax
je 0x419d45
lea eax, [ebp - 0x220]
push eax
call ebx
push 4
lea eax, [ebp - 0x14]
pop ebx
mov edi, str.871C5380_42A0_1069_A2EA_08002B30309D
push eax
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x18]
mov dword [ebp - 8], esi
mov dword [ebp - 0xc], esi
push eax
push edi
mov esi, SysReAllocStringLen
push str.SoftwareMicrosoftWindowsCurrentVersionExplorerHideDesktopIconsNewStartPanel
push esi
mov dword [ebp - 0x18], ebx
mov dword [ebp - 0x14], ebx
call dword [sym.imp.SHLWAPI.dll_SHGetValueW]
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 0x18]
push eax
push edi
push str.SoftwareMicrosoftWindowsCurrentVersionExplorerHideDesktopIconsClassicStartMenu
push esi
call dword [sym.imp.SHLWAPI.dll_SHGetValueW]
cmp dword [ebp - 8], 0
je 0x419d9c
cmp dword [ebp - 0xc], 0
jne 0x419dd9
lea eax, [ebp - 0x10]
push ebx
push eax
push ebx
push edi
push str.SoftwareMicrosoftWindowsCurrentVersionExplorerHideDesktopIconsNewStartPanel
push esi
mov dword [ebp - 0x10], 1
call dword [sym.imp.SHLWAPI.dll_SHSetValueW]
lea eax, [ebp - 0x10]
push ebx
push eax
push ebx
push edi
push str.SoftwareMicrosoftWindowsCurrentVersionExplorerHideDesktopIconsClassicStartMenu
push esi
call dword [sym.imp.SHLWAPI.dll_SHSetValueW]
xor eax, eax
push eax
push eax
push eax
push 0x8000000
call dword [sym.imp.SHELL32.dll_SHChangeNotify]
lea ecx, [ebp - 4]
call fcn.00404c0d
pop edi
pop esi
pop ebx
leave
ret
Function at 0x41a4f7
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc34
push ebx
push esi
mov dword [ebp - 4], ecx
push edi
xor ebx, ebx
mov ecx, 0x81
xor eax, eax
lea edi, [ebp - 0x822]
mov word [ebp - 0x824], bx
mov esi, dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
push ebx
lea eax, [ebp - 0x824]
push 0x17
push eax
push ebx
call esi
test eax, eax
je 0x41a557
lea eax, [ebp - 0x824]
push 0x43dea0
push eax
mov eax, dword [ebp - 4]
add eax, 0x1c
push 0x43bb44
push eax
call fcn.00409921
add esp, 0x10
mov ecx, 0x81
xor eax, eax
lea edi, [ebp - 0x61a]
mov word [ebp - 0x61c], bx
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
push ebx
lea eax, [ebp - 0x61c]
push 0x16
push eax
push ebx
call esi
test eax, eax
je 0x41a5ac
mov eax, dword [ebp - 4]
lea edi, [eax + 0x20]
lea eax, [ebp - 0x61c]
test eax, eax
je 0x41a59d
lea eax, [ebp - 0x61c]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenW]
lea ecx, [ebp - 0x61c]
push ecx
push eax
mov ecx, edi
call fcn.00404ce9
mov ecx, 0x81
xor eax, eax
lea edi, [ebp - 0x412]
mov word [ebp - 0x414], bx
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
push ebx
lea eax, [ebp - 0x414]
push 0x19
push eax
push ebx
call esi
test eax, eax
je 0x41a601
mov eax, dword [ebp - 4]
lea edi, [eax + 0x24]
lea eax, [ebp - 0x414]
test eax, eax
je 0x41a5f2
lea eax, [ebp - 0x414]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenW]
lea ecx, [ebp - 0x414]
push ecx
push eax
mov ecx, edi
call fcn.00404ce9
mov ecx, 0x81
xor eax, eax
lea edi, [ebp - 0xa2a]
mov word [ebp - 0xa2c], bx
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
push ebx
lea eax, [ebp - 0xa2c]
push 0x1a
push eax
push ebx
call esi
test eax, eax
je 0x41a64a
lea eax, [ebp - 0xa2c]
push str.MicrosoftInternet_ExplorerQuick_Launch
push eax
mov eax, dword [ebp - 4]
add eax, 0x28
push 0x43bb44
push eax
call fcn.00409921
add esp, 0x10
mov ecx, 0x81
xor eax, eax
lea edi, [ebp - 0x20a]
mov word [ebp - 0x20c], bx
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
push ebx
lea eax, [ebp - 0x20c]
push 6
push eax
push ebx
call esi
test eax, eax
je 0x41a69f
mov eax, dword [ebp - 4]
lea edi, [eax + 0x2c]
lea eax, [ebp - 0x20c]
test eax, eax
je 0x41a690
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenW]
lea ecx, [ebp - 0x20c]
push ecx
push eax
mov ecx, edi
call fcn.00404ce9
mov ecx, 0x81
xor eax, eax
lea edi, [ebp - 0xc32]
mov word [ebp - 0xc34], bx
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
push ebx
lea eax, [ebp - 0xc34]
push 0x1a
push eax
push ebx
call esi
test eax, eax
je 0x41a6e5
mov esi, dword [ebp - 4]
lea eax, [ebp - 0xc34]
push eax
push 0x43ab18
lea eax, [esi + 0x18]
push eax
call fcn.00409921
add esp, 0xc
jmp 0x41a6e8
mov esi, dword [ebp - 4]
push 0xb0
call sub.MSVCRT.dll_void____cdecl_operator_new_unsigned_int_
cmp eax, ebx
pop ecx
je 0x41a701
push esi
mov ecx, eax
call fcn.004129a8
jmp 0x41a703
xor eax, eax
mov ecx, eax
mov dword [esi + 0x30], eax
call fcn.00412c47
pop edi
pop esi
pop ebx
leave
ret
Function at 0x41a712
Capabilities:
Check if file exists
Create directory
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x628
push ebx
push esi
push edi
mov ebx, ecx
call dword [sym.imp.KERNEL32.dll_GetTickCount]
and word [ebp - 0x41c], 0
mov dword [ebp - 4], eax
mov ecx, 0x82
xor eax, eax
lea edi, [ebp - 0x41a]
rep stosd dword es:[edi], eax
lea eax, [ebp - 0x41c]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
test eax, eax
je 0x41a85c
push dword [ebp - 4]
lea eax, [ebp - 0x41c]
lea esi, [ebx + 0xc]
push eax
push str._s_d
push esi
call fcn.00409921
mov eax, dword [esi]
add esp, 0x10
push 0
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
je 0x41a85c
push dword [esi]
and word [ebp - 0x210], 0
mov ecx, 0x82
xor eax, eax
lea edi, [ebp - 0x20e]
push str._smini.exe
rep stosd dword es:[edi], eax
lea eax, [ebp - 0x210]
push 0x104
push eax
call dword [sym.imp.MSVCRT.dll__snwprintf]
push 0xe4
lea eax, [ebp - 0x210]
push 0x440c44
push eax
call fcn.00421c0b
add esp, 0x1c
test al, al
je 0x41a85c
push dword [esi]
add ebx, 0x10
push str._smini
push ebx
call fcn.00409921
mov eax, dword [ebx]
add esp, 0xc
xor esi, esi
push esi
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
je 0x41a85c
push dword [ebx]
mov ecx, 0x82
xor eax, eax
lea edi, [ebp - 0x626]
mov word [ebp - 0x628], si
rep stosd dword es:[edi], eax
lea eax, [ebp - 0x210]
push eax
push str.__s___P_s
lea eax, [ebp - 0x628]
push 0x104
push eax
call dword [sym.imp.MSVCRT.dll__snwprintf]
add esp, 0x14
lea eax, [ebp - 0x210]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x41a85c
push esi
push 0xea60
lea eax, [ebp - 0x628]
push esi
push eax
call fcn.00420ed0
add esp, 0x10
pop edi
pop esi
pop ebx
leave
ret

Function at 0x41a896
Capabilities:
Delete file
Move file

Disassembly:
push 4
push 0
push dword [ecx + 0xc]
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
ret
Function at 0x41b5e7
Capabilities:
Check if file exists
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x214
and word [ebp - 0x214], 0
push ebx
push esi
push edi
mov esi, ecx
and dword [ebp - 4], 0
push str.ie8ver.dll
mov ecx, 0x82
push dword [ebp + 8]
xor eax, eax
lea edi, [ebp - 0x212]
rep stosd dword es:[edi], eax
push 0x43bb44
lea eax, [ebp - 0x214]
push 0x104
push eax
call fcn.0041b709
add esp, 0x14
lea eax, [ebp - 0x214]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x41b6ff
lea eax, [ebp - 0x214]
push eax
call fcn.0042fa78
test eax, eax
pop ecx
je 0x41b6ff
lea eax, [ebp - 0x214]
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov ebx, eax
test ebx, ebx
mov dword [ebp - 8], ebx
je 0x41b6ff
push 0x440dbc
push str.IE8VER.INI
push ebx
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov edi, eax
test edi, edi
je 0x41b6f6
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
push edi
push ebx
mov dword [ebp + 8], eax
call dword [sym.imp.KERNEL32.dll_SizeofResource]
cmp dword [ebp + 8], 0
mov edi, eax
je 0x41b6f6
test edi, edi
je 0x41b6f6
lea ebx, [edi + 1]
push ebx
call sub.MSVCRT.dll_void____cdecl_operator_new_unsigned_int_
test eax, eax
pop ecx
mov dword [esi], eax
je 0x41b6f6
push ebx
push 0
push eax
call sub.MSVCRT.dll_memset
push edi
push dword [ebp + 8]
push dword [esi]
call sub.MSVCRT.dll_memcpy
push 0x1f21bc
push edi
push dword [esi]
call fcn.00425769
push dword [esi]
lea edi, [esi + 4]
push edi
call fcn.00421e31
add esp, 0x2c
cmp dword [edi], 0
je 0x41b6f6
mov dword [ebp - 4], 1
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov eax, dword [ebp - 4]
pop edi
pop esi
pop ebx
leave
ret 4
Function at 0x41c00a
Capabilities:
Get file size

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x630
push ebx
push esi
xor esi, esi
push edi
cmp dword [0x4453b4], esi
mov dword [ebp - 8], ecx
mov dword [ebp - 4], esi
jne 0x41c03e
mov dword [0x4453b4], 1
push dword [ecx]
push 0x4453b0
call fcn.00421e31
pop ecx
pop ecx
cmp dword [0x4453b0], esi
je 0x41c169
push dword [ebp + 0xc]
mov ebx, 0x82
mov ecx, ebx
xor eax, eax
push dword [ebp + 8]
lea edi, [ebp - 0x216]
mov word [ebp - 0x218], si
mov esi, 0x104
rep stosd dword es:[edi], eax
push 0x43bb44
lea eax, [ebp - 0x218]
push esi
push eax
call fcn.0041b709
add esp, 0x14
xor edi, edi
lea eax, [ebp - 0x218]
push edi
push 0x80
push 4
push edi
push 1
push SysReAllocStringLen
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
cmp eax, 0xffffffff
mov dword [ebp - 0xc], eax
je 0x41c169
push edi
push eax
call dword [sym.imp.KERNEL32.dll_GetFileSize]
push dword [ebp - 0xc]
mov dword [ebp + 8], eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [ebp + 8], edi
je 0x41c169
cmp dword [ebp + 8], 0xffffffff
je 0x41c169
push edi
push 0x44149c
push dword [ebp + 0xc]
push dword [0x4453b0]
call fcn.004227aa
add esp, 0x10
cmp dword [ebp + 8], eax
jne 0x41c169
mov word [ebp - 0x630], di
mov ecx, ebx
xor eax, eax
lea edi, [ebp - 0x62e]
and word [ebp - 0x424], ax
push esi
rep stosd dword es:[edi], eax
mov ecx, ebx
lea edi, [ebp - 0x422]
rep stosd dword es:[edi], eax
lea eax, [ebp - 0x424]
push eax
push 0x441494
push dword [ebp + 0xc]
push dword [0x4453b0]
call fcn.00422692
mov ecx, dword [ebp - 8]
add esp, 0x14
lea eax, [ebp - 0x630]
push esi
push eax
lea eax, [ebp - 0x218]
push eax
call fcn.0041c2d6
lea eax, [ebp - 0x424]
push esi
push eax
lea eax, [ebp - 0x630]
push eax
call dword [sym.imp.SHLWAPI.dll_StrCmpNW]
test eax, eax
jne 0x41c169
mov dword [ebp - 4], 1
mov eax, dword [ebp - 4]
pop edi
pop esi
pop ebx
leave
ret 8
Function at 0x41c2d6
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x110
push ebx
push esi
push edi
push 0x4414ac
push dword [ebp + 8]
mov dword [ebp - 8], ecx
call dword [sym.imp.MSVCRT.dll__wfopen]
mov esi, eax
xor ebx, ebx
pop ecx
cmp esi, ebx
pop ecx
mov dword [ebp - 4], esi
je 0x41c3fb
mov edi, dword [sym.imp.MSVCRT.dll_fseek]
push 2
push ebx
push esi
call edi
push esi
call dword [sym.imp.MSVCRT.dll_ftell]
push ebx
push ebx
push dword [ebp - 4]
mov esi, eax
call edi
add esp, 0x1c
cmp esi, ebx
je 0x41c3f1
lea edi, [esi + 1]
push edi
call sub.MSVCRT.dll_void____cdecl_operator_new_unsigned_int_
cmp eax, ebx
pop ecx
mov dword [ebp + 8], eax
je 0x41c3f1
push edi
push ebx
push eax
call sub.MSVCRT.dll_memset
push dword [ebp - 4]
push 1
push esi
push dword [ebp + 8]
call dword [sym.imp.MSVCRT.dll_fread]
add esp, 0x1c
test eax, eax
je 0x41c3e8
push 0x41
xor eax, eax
pop ecx
lea edi, [ebp - 0x10f]
mov byte [ebp - 0x110], bl
push 0x104
rep stosd dword es:[edi], eax
mov ecx, dword [ebp - 8]
lea eax, [ebp - 0x110]
push eax
push esi
push dword [ebp + 8]
call fcn.0041c173
test eax, eax
je 0x41c3e8
lea eax, [ebp - 0x110]
test eax, eax
je 0x41c3d2
lea eax, [ebp - 0x110]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov esi, eax
inc esi
lea eax, [esi + esi]
add eax, 3
and al, 0xfc
call fcn.0042f4a0
mov edi, esp
push esi
push edi
lea eax, [ebp - 0x110]
push 0xffffffffffffffff
push eax
push ebx
push ebx
mov word [edi], bx
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
mov ebx, edi
mov eax, dword [ebp + 0x10]
push ebx
dec eax
push 0x43ab18
push eax
push dword [ebp + 0xc]
call fcn.0041c40b
add esp, 0x10
push dword [ebp + 8]
call fcn.0042f3fe
pop ecx
push dword [ebp - 4]
call dword [sym.imp.MSVCRT.dll_fclose]
pop ecx
push 1
pop eax
lea esp, [ebp - 0x11c]
pop edi
pop esi
pop ebx
leave
ret 0xc

Function at 0x41c9e0
Capabilities:
Create thread
Resume thread

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push esi
push edi
mov esi, ecx
xor edi, edi
cmp dword [esi + 0x58], edi
je 0x41ca1e
call fcn.0041d3ed
test eax, eax
je 0x41ca24
lea eax, [ebp - 8]
push eax
push 4
push esi
push 0x41ce8a
push edi
push edi
call dword [sym.imp.MSVCRT.dll__beginthreadex]
add esp, 0x18
cmp eax, edi
mov dword [esi + 0x74], eax
je 0x41ca1e
push eax
call dword [sym.imp.KERNEL32.dll_ResumeThread]
xor eax, eax
pop edi
pop esi
leave
ret
mov eax, dword [esi + 0x7c]
cmp eax, edi
je 0x41ca1e
mov ecx, dword [eax]
lea edx, [ebp - 8]
push edx
push eax
call dword [ecx + 0x18]
mov eax, dword [esi + 0x7c]
lea edx, [ebp - 4]
push edx
push eax
mov ecx, dword [eax]
call dword [ecx + 0x1c]
mov edx, dword [ebp - 4]
push edi
neg edx
push edx
mov eax, dword [esi + 0x7c]
push dword [ebp - 8]
mov ecx, dword [eax]
push dword [ebp - 4]
push edi
push dword [esi + 0x34]
push dword [esi + 0x30]
push edi
push edi
push dword [esi + 0x5c]
push eax
call dword [ecx + 0x20]
test eax, eax
jne 0x41ca1e
push edi
push edi
push dword [esi + 4]
call dword [sym.imp.USER32.dll_InvalidateRect]
push 1
pop eax
jmp 0x41ca20
Function at 0x41cb36
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
mov eax, dword [0x444638]
push esi
push edi
push dword [ebp + 0xc]
mov dword [ebp - 4], ecx
push dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov esi, eax
test esi, esi
je 0x41cbe8
mov eax, dword [0x444638]
push esi
push eax
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov ebx, eax
test ebx, ebx
je 0x41cbe8
mov eax, dword [0x444638]
push esi
push eax
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov edi, eax
push edi
push 0x22
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov esi, eax
test esi, esi
je 0x41cbe1
push esi
call dword [sym.imp.KERNEL32.dll_GlobalLock]
push ebx
mov dword [ebp + 0xc], eax
call dword [sym.imp.KERNEL32.dll_LockResource]
test eax, eax
je 0x41cbda
cmp dword [ebp + 0xc], 0
je 0x41cbda
push edi
push eax
push dword [ebp + 0xc]
call sub.MSVCRT.dll_memcpy
add esp, 0xc
push ebx
call dword [sym.imp.KERNEL32.dll_FreeResource]
push esi
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
mov ecx, dword [ebp - 4]
push edi
push esi
call fcn.0041c5a0
push esi
mov edi, eax
call dword [sym.imp.KERNEL32.dll_GlobalFree]
mov eax, edi
jmp 0x41cbea
push esi
call dword [sym.imp.KERNEL32.dll_GlobalFree]
push ebx
call dword [sym.imp.KERNEL32.dll_FreeResource]
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret 8