joyce8/EMBER2024-capa huggingface dataset:
Function at 0x406275
Capabilities:
Get file size
Write file on windows

Disassembly:
mov eax, 0x4112d0
call fcn.00410d60
sub esp, 0x14
push ebx
push esi
push edi
xor esi, esi
mov dword [ebp - 0x10], esp
push esi
push esi
push 3
push esi
push 3
push 0xc0000000
push 0x41c4f8
mov dword [ebp - 4], esi
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov ebx, eax
cmp ebx, 0xffffffff
mov dword [ebp - 0x1c], ebx
jne 0x4062b6
push 0xfffffffffffffffe
pop eax
jmp 0x4063bb
push dword [ebp + 8]
mov edi, dword [sym.imp.KERNEL32.dll_lstrlenW]
call edi
push dword [ebp + 0xc]
mov edx, eax
mov dword [ebp - 0x18], edx
call edi
mov ecx, dword [ebp - 0x18]
add ecx, eax
lea eax, [ecx + ecx + 2]
push eax
call sub.MSVCRT.dll_void____cdecl_operator_new_unsigned_int_
pop ecx
mov dword [ebp - 0x14], eax
push dword [ebp + 0xc]
mov dword [ebp - 0x18], esi
push dword [ebp + 8]
push 0x4156e4
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0x10
push esi
push ebx
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov edi, eax
cmp edi, esi
jbe 0x406382
push esi
push edi
push esi
push 4
push esi
push ebx
call dword [sym.imp.KERNEL32.dll_CreateFileMappingW]
cmp eax, esi
mov dword [ebp + 8], eax
je 0x406382
push esi
push esi
push esi
push 2
push eax
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
cmp eax, esi
mov dword [ebp + 0xc], eax
je 0x406374
lea eax, [edi + edi + 2]
push eax
call sub.MSVCRT.dll_void____cdecl_operator_new_unsigned_int_
mov ebx, eax
pop ecx
cmp ebx, esi
je 0x406368
push edi
push dword [ebp + 0xc]
push ebx
call sub.MSVCRT.dll_memcpy
push dword [ebp - 0x14]
mov word [ebx + edi*2], si
push ebx
call sub.MSVCRT.dll_wcsstr
add esp, 0x14
test eax, eax
je 0x406361
mov dword [ebp - 0x18], 1
push ebx
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
pop ecx
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
mov ebx, dword [ebp - 0x1c]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [ebp - 0x18], esi
jne 0x4063a8
push 2
push esi
push esi
push ebx
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
lea eax, [ebp - 0x20]
push esi
push eax
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_lstrlenW]
shl eax, 1
push eax
push dword [ebp - 0x14]
push ebx
call dword [sym.imp.KERNEL32.dll_WriteFile]
push dword [ebp - 0x14]
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
pop ecx
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0x20]
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
leave
ret
Function at 0x4063d0
Capabilities:
Write file on windows

Disassembly:
mov eax, 0x4112dc
call fcn.00410d60
sub esp, 0x7f4
push ebx
push esi
push edi
xor edi, edi
cmp dword [ebp + 0xc], edi
mov dword [ebp - 0x10], esp
mov dword [ebp - 4], edi
mov dword [ebp - 0x14], edi
je 0x40640d
push edi
lea eax, [ebp - 0x14]
push edi
push eax
push 0x400
push dword [ebp + 0xc]
push edi
push 0x1300
call dword [sym.imp.KERNEL32.dll_FormatMessageW]
lea eax, [ebp - 0x30]
push 0xa
push eax
push dword [ebp + 0xc]
call sub.MSVCRT.dll__itow
add esp, 0xc
cmp dword [ebp + 0x14], edi
je 0x4064e0
cmp dword [ebp + 0x10], edi
jne 0x40644a
lea eax, [ebp - 0x30]
push eax
lea eax, [ebp - 0x800]
push dword [ebp + 8]
push str._s._Error_ID_s
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0x10
jmp 0x406479
push dword [ebp + 0x10]
call sub.MSVCRT.dll_wcslen
cmp eax, 0x104
pop ecx
ja 0x406479
lea eax, [ebp - 0x30]
push eax
lea eax, [ebp - 0x800]
push dword [ebp + 0x10]
push dword [ebp + 8]
push str._s.__s_Error_ID_s
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0x14
push edi
push edi
push 4
push edi
push 1
push 0x10000000
push 0x41dc44
call dword [sym.imp.KERNEL32.dll_CreateFileW]
push 2
mov ebx, eax
push edi
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
lea eax, [ebp - 0x18]
push edi
push eax
lea eax, [ebp - 0x800]
push eax
call sub.MSVCRT.dll_wcslen
mov esi, dword [sym.imp.KERNEL32.dll_WriteFile]
pop ecx
shl eax, 1
push eax
lea eax, [ebp - 0x800]
push eax
push ebx
call esi
lea eax, [ebp - 0x1c]
push edi
push eax
push dword [ebp + 0x1c]
call sub.MSVCRT.dll_wcslen
pop ecx
shl eax, 1
push eax
push dword [ebp + 0x1c]
push ebx
call esi
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [ebp + 0x18], edi
je 0x40654a
cmp dword [ebp - 0x14], edi
je 0x4064f7
push dword [ebp - 0x14]
call sub.MSVCRT.dll_wcslen
pop ecx
mov esi, eax
jmp 0x4064f9
xor esi, esi
push dword [ebp + 8]
call sub.MSVCRT.dll_wcslen
lea eax, [eax + esi + 0x64]
add eax, eax
push eax
call sub.MSVCRT.dll_void____cdecl_operator_new_unsigned_int_
mov esi, eax
mov eax, dword [ebp - 0x14]
pop ecx
cmp eax, edi
pop ecx
jne 0x40651d
mov eax, 0x41c4f4
lea ecx, [ebp - 0x30]
push ecx
push eax
push dword [ebp + 8]
push str._s_r_n_s_r_nError_ID:__s
push esi
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0x14
push 0x10
push str.Error
push esi
push edi
call dword [sym.imp.USER32.dll_MessageBoxW]
push esi
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
pop ecx
cmp dword [ebp - 0x14], edi
je 0x406558
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_LocalFree]
mov eax, dword [ebp - 0x1c]
mov ecx, dword [ebp - 0x18]
add eax, ecx
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
leave
ret
Function at 0x407f9d
Capabilities:
Query or enumerate registry value
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push esi
push edi
mov esi, ecx
call fcn.00407b1b
mov ecx, esi
mov dword [ebp - 4], eax
call fcn.0040740f
mov edi, dword [ebp + 8]
lea ebx, [esi + 0xc]
push edi
mov ecx, ebx
call fcn.0040754e
push edi
call sub.MSVCRT.dll_wcslen
cmp word [edi + eax*2 - 2], 0x5c
pop ecx
je 0x407fe0
push 0x4150b8
mov ecx, ebx
call fcn.004080f5
push dword [ebp + 0xc]
mov ecx, esi
call fcn.00408d1b
mov eax, dword [esi + 0x3c]
push 1
xor ebx, ebx
pop edi
cmp eax, ebx
mov dword [ebp - 0xc], edi
je 0x40806b
lea ecx, [ebp + 8]
mov edi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push ecx
lea ecx, [ebp - 8]
push ecx
push ebx
push ebx
push str.LanguageID
push eax
mov dword [ebp + 8], 4
call edi
test eax, eax
jne 0x408033
push ebx
mov ecx, esi
push dword [ebp - 8]
call fcn.00407831
cmp dword [ebp + 0xc], ebx
mov dword [ebp - 0xc], ebx
jne 0x408033
mov byte [esi + 0x34], 1
lea eax, [ebp + 8]
mov dword [ebp + 8], 4
push eax
lea eax, [ebp - 8]
push eax
push ebx
push ebx
push str.bShLc2
push dword [esi + 0x3c]
call edi
test eax, eax
jne 0x40805f
push 1
pop eax
cmp dword [ebp - 8], eax
jne 0x40805f
mov dword [0x41d004], eax
cmp dword [ebp - 0xc], ebx
je 0x4080ee
push 1
pop edi
cmp dword [ebp + 0xc], ebx
push ebx
je 0x40807c
push 9
mov ecx, esi
call fcn.00407831
jmp 0x4080ee
push dword [ebp - 4]
mov ecx, esi
call fcn.00407831
cmp dword [0x41de4c], ebx
jne 0x4080ee
cmp word [ebp - 4], 0x13
je 0x4080a0
cmp word [ebp - 4], 0x11
je 0x4080a0
mov eax, edi
jmp 0x4080a2
xor eax, eax
cmp word [esi + 0x18], 9
jne 0x4080b4
cmp word [ebp - 4], 9
je 0x4080ee
cmp eax, ebx
je 0x4080ee
push ebx
push 0x407d48
call dword [sym.imp.USER32.dll_GetDesktopWindow]
push eax
push 0x76
push dword [0x41d420]
call dword [sym.imp.USER32.dll_DialogBoxParamW]
mov esi, dword [esi + 0x3c]
mov dword [ebp + 0xc], edi
cmp esi, ebx
je 0x4080ee
lea eax, [ebp + 0xc]
push 4
push eax
push 4
push ebx
push str.LIDwa
push esi
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
pop edi
pop esi
pop ebx
leave
ret 8
Function at 0x408d1b
Capabilities:
Enumerate files on windows

Disassembly:
mov eax, 0x411440
call fcn.00410d60
sub esp, 0x268
push ebx
push esi
push edi
xor ebx, ebx
mov esi, ecx
push 2
lea eax, [ebp - 0x14]
push ebx
push eax
mov dword [esi + 4], ebx
mov dword [ebp - 0x18], ebx
mov dword [ebp - 0x10], ebx
call sub.MSVCRT.dll_memset
add esp, 0xc
cmp dword [ebp + 8], ebx
mov eax, dword [esi + 0xc]
mov dword [ebp - 4], ebx
je 0x408d64
cmp eax, ebx
jne 0x408d5c
lea eax, [esi + 0x10]
push eax
push str._sLanguagesinst_.lng
jmp 0x408d71
cmp eax, ebx
jne 0x408d6b
lea eax, [esi + 0x10]
push eax
push str._sIDM.
lea ecx, [ebp - 0x18]
call fcn.00408e4c
mov eax, dword [ebp - 0x18]
cmp eax, ebx
jne 0x408d83
lea eax, [ebp - 0x14]
lea ecx, [ebp - 0x274]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov edi, eax
cmp edi, 0xffffffff
je 0x408e2f
push 2
lea eax, [ebp - 0x20]
push ebx
push eax
mov dword [ebp - 0x24], ebx
mov dword [ebp - 0x1c], ebx
call sub.MSVCRT.dll_memset
add esp, 0xc
cmp dword [ebp + 8], ebx
mov eax, dword [esi + 0xc]
mov byte [ebp - 4], 1
je 0x408dd3
cmp eax, ebx
jne 0x408dc4
lea eax, [esi + 0x10]
lea ecx, [ebp - 0x248]
push ecx
push eax
push str._sLanguages_s
jmp 0x408de7
cmp eax, ebx
jne 0x408dda
lea eax, [esi + 0x10]
lea ecx, [ebp - 0x248]
push ecx
push eax
push str._s_s
lea ecx, [ebp - 0x24]
call fcn.00408f4b
mov eax, dword [ebp - 0x24]
cmp eax, ebx
jne 0x408df9
lea eax, [ebp - 0x20]
push eax
mov ecx, esi
call fcn.00408aea
lea eax, [ebp - 0x274]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
mov byte [ebp - 4], bl
lea ecx, [ebp - 0x24]
je 0x408e23
call fcn.0040114f
jmp 0x408d9c
call fcn.0040114f
push edi
call dword [sym.imp.KERNEL32.dll_FindClose]
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x18]
call fcn.0040114f
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret 4
Function at 0x4091da
Capabilities:
Check os version
Persist via run registry key
Query or enumerate registry value

Disassembly:
mov eax, 0x411498
call fcn.00410d60
sub esp, 0xb60
push ebx
push esi
xor ebx, ebx
push edi
cmp dword [ebp + 8], ebx
mov dword [ebp - 0x10], esp
mov dword [ebp - 4], ebx
jne 0x409201
mov al, 1
jmp 0x4093dd
lea eax, [ebp - 0x144]
mov byte [ebp - 0x11], bl
push eax
mov dword [ebp - 0x144], 0x114
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
je 0x4092e6
cmp dword [ebp - 0x134], 2
jne 0x4092e6
cmp dword [ebp - 0x140], 6
jb 0x4092e6
push str.shell32
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov edi, eax
cmp edi, ebx
je 0x4092e6
push str.SHGetKnownFolderPath
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov esi, eax
cmp esi, ebx
je 0x4092da
push ebx
mov dword [ebp - 0x18], ebx
mov dword [ebp - 0x28], 0xb4bfcc3a
mov word [ebp - 0x24], 0xdb2c
mov word [ebp - 0x22], 0x424c
mov byte [ebp - 0x20], 0xb0
mov byte [ebp - 0x1f], 0x29
mov byte [ebp - 0x1e], 0x7f
mov byte [ebp - 0x1d], 0xe9
mov byte [ebp - 0x1c], 0x9a
mov byte [ebp - 0x1b], 0x87
mov byte [ebp - 0x1a], 0xc6
mov byte [ebp - 0x19], 0x41
call dword [sym.imp.ole32.dll_CoInitialize]
lea eax, [ebp - 0x18]
push eax
push ebx
lea eax, [ebp - 0x28]
push ebx
push eax
call esi
cmp eax, ebx
jne 0x4092d4
cmp dword [ebp - 0x18], ebx
je 0x4092d4
push dword [ebp - 0x18]
lea eax, [ebp - 0x75c]
push eax
call sub.MSVCRT.dll_wcscpy
pop ecx
mov byte [ebp - 0x11], 1
pop ecx
push dword [ebp - 0x18]
call dword [sym.imp.ole32.dll_CoTaskMemFree]
call dword [sym.imp.ole32.dll_CoUninitialize]
push edi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
cmp byte [ebp - 0x11], bl
jne 0x409359
lea eax, [ebp - 0x2c]
push eax
push 0xf003f
push ebx
push str.SoftwareMicrosoftWindowsCurrentVersionExplorerShell_Folders_
push 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x4091fa
lea eax, [ebp - 0x30]
mov dword [ebp - 0x30], 0x208
push eax
lea eax, [ebp - 0xb6c]
push eax
push ebx
push ebx
push str.Desktop
push dword [ebp - 0x2c]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x409347
lea eax, [ebp - 0xb6c]
push eax
lea eax, [ebp - 0x75c]
push eax
call sub.MSVCRT.dll_wcscpy
pop ecx
mov byte [ebp - 0x11], 1
pop ecx
push dword [ebp - 0x2c]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp byte [ebp - 0x11], bl
je 0x4091fa
push dword [ebp + 8]
lea eax, [ebp - 0x34c]
push eax
call sub.MSVCRT.dll_wcscpy
lea eax, [ebp - 0x34c]
push eax
call sub.MSVCRT.dll_wcslen
add esp, 0xc
cmp word [ebp + eax*2 - 0x34e], 0x5c
jne 0x409397
lea eax, [ebp - 0x34c]
push eax
call sub.MSVCRT.dll_wcslen
pop ecx
mov word [ebp + eax*2 - 0x34e], bx
lea eax, [ebp - 0x75c]
push eax
call sub.MSVCRT.dll_wcslen
cmp word [ebp + eax*2 - 0x75e], 0x5c
pop ecx
jne 0x4093c4
lea eax, [ebp - 0x75c]
push eax
call sub.MSVCRT.dll_wcslen
pop ecx
mov word [ebp + eax*2 - 0x75e], bx
lea eax, [ebp - 0x75c]
push eax
lea eax, [ebp - 0x34c]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
setne al
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
leave
ret
Function at 0x4093f7
Capabilities:
Delete file
Get common file path
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x41c
push ebx
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
lea eax, [ebp - 4]
push edi
push eax
xor edi, edi
push 0xf003f
push edi
push str.SoftwareDownloadManager
push 0x80000001
call esi
mov ebx, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x4094b0
lea eax, [ebp - 8]
mov dword [ebp - 8], 0x208
push eax
push dword [ebp + 8]
push edi
push edi
push str.ExePath
push dword [ebp - 4]
call ebx
test eax, eax
jne 0x4094b0
push dword [ebp + 8]
lea eax, [ebp - 0x41c]
push eax
call sub.MSVCRT.dll_wcscpy
push 0x5c
push dword [ebp + 8]
call sub.MSVCRT.dll_wcsrchr
add esp, 0x10
cmp eax, edi
je 0x409470
mov word [eax], di
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push 0x7e
push dword [ebp + 8]
call sub.MSVCRT.dll_wcschr
pop ecx
test eax, eax
pop ecx
je 0x409492
push dword [ebp + 8]
call fcn.00409067
pop ecx
push dword [ebp + 8]
call fcn.004091da
test al, al
pop ecx
jne 0x4095a5
lea eax, [ebp - 0x41c]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
lea eax, [ebp - 4]
mov dword [ebp - 8], edi
push eax
push 0x20019
push edi
push str.SOFTWAREMicrosoftWindowsCurrentVersion
push 0x80000002
call esi
test eax, eax
jne 0x40956b
lea eax, [ebp - 0xc]
mov dword [ebp - 0xc], 0x208
push eax
lea eax, [ebp - 0x214]
push eax
push edi
push edi
push str.ProgramFilesDir
push dword [ebp - 4]
call ebx
test eax, eax
jne 0x4094fa
mov dword [ebp - 8], 1
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [ebp - 8], edi
je 0x40956b
lea eax, [ebp - 0x214]
push 0x7e
push eax
call sub.MSVCRT.dll_wcschr
pop ecx
test eax, eax
pop ecx
je 0x409529
lea eax, [ebp - 0x214]
push eax
call fcn.00409067
pop ecx
lea eax, [ebp - 0x214]
push eax
call sub.MSVCRT.dll_wcslen
cmp word [ebp + eax*2 - 0x216], 0x5c
pop ecx
mov eax, 0x4150b8
jne 0x40954b
mov eax, 0x41c4f4
push 0x419058
push eax
lea eax, [ebp - 0x214]
push eax
push str._s_s_s
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0x14
jmp 0x4095a5
lea eax, [ebp - 0x214]
push 0x104
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryW]
test eax, eax
je 0x4095a9
lea eax, [ebp - 0x214]
push 0x419058
push eax
push str._sProgram_Files_s
push dword [ebp + 8]
mov word [ebp - 0x20e], di
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0x10
xor eax, eax
jmp 0x4095ac
or eax, 0xffffffff
pop edi
pop esi
pop ebx
leave
ret
Function at 0x40a84a
Capabilities:
Create process on windows
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x564
mov eax, dword [0x41de74]
push ebx
xor ebx, ebx
push esi
cmp eax, ebx
je 0x40a878
push 0x3e8
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
lea eax, [ebp - 4]
push eax
push dword [0x41de74]
jmp 0x40a898
mov eax, dword [0x41de78]
cmp eax, ebx
je 0x40aa57
push 0xffffffffffffffff
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
lea eax, [ebp - 4]
push eax
push dword [0x41de78]
call dword [sym.imp.KERNEL32.dll_GetExitCodeThread]
cmp dword [ebp - 4], 0xfffffc18
ja 0x40aa57
cmp dword [0x41de50], ebx
jne 0x40aa57
cmp word [0x41c928], bx
je 0x40aa57
cmp dword [0x41e094], ebx
jne 0x40aa57
call fcn.00409ca6
push 0xf003f
call fcn.0040df18
pop ecx
call fcn.00403110
test eax, eax
je 0x40a8f4
push 0xf013f
call fcn.0040df18
pop ecx
lea eax, [ebp - 8]
push eax
push str.IDMan.exe
call fcn.0040bbb0
pop ecx
test eax, eax
pop ecx
je 0x40a929
push dword [ebp - 8]
push ebx
push 1
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov esi, eax
cmp esi, ebx
je 0x40a929
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push edi
push 0x44
pop esi
xor eax, eax
push 0x10
lea edi, [ebp - 0x58]
pop ecx
mov dword [ebp - 0x5c], esi
rep stosd dword es:[edi], eax
push 0x10
lea eax, [ebp - 0x18]
push ebx
push eax
call sub.MSVCRT.dll_memset
add esp, 0xc
cmp byte [0x41cd9c], bl
mov dword [ebp - 0x5c], esi
mov esi, 0x41c4f4
je 0x40a9ca
mov eax, dword [0x41cd90]
mov edi, 0x41cd94
cmp eax, ebx
jne 0x40a969
mov eax, edi
push eax
call sub.MSVCRT.dll_wcslen
test eax, eax
pop ecx
je 0x40a99f
mov eax, dword [0x41cd90]
cmp eax, ebx
jne 0x40a97f
mov eax, edi
push eax
movzx eax, word [0x41cd80]
push eax
lea eax, [ebp - 0x15c]
push str.__setlngid__d__fulllngfile__s
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0x10
jmp 0x40a9bc
movzx eax, word [0x41cd80]
push eax
lea eax, [ebp - 0x15c]
push str.__setlngid__d
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0xc
cmp byte [0x41cd9c], bl
lea edi, [ebp - 0x15c]
jne 0x40a9cc
mov edi, esi
cmp dword [0x41de4c], ebx
mov edx, str.__onsilentsetup
jne 0x40a9db
mov edx, esi
cmp dword [0x41de58], ebx
mov ecx, str.__forcerbt
jne 0x40a9ea
mov ecx, esi
cmp dword [0x41de70], ebx
mov eax, str.__isupdt
jne 0x40a9f9
mov eax, esi
cmp dword [0x41e098], ebx
je 0x40aa06
mov esi, str.__rbmsg
push edi
push edx
push ecx
push eax
push esi
push 0x41c928
lea eax, [ebp - 0x564]
push str.__s___rtr_s_s_s_s_s
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0x20
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x5c]
push eax
push ebx
push ebx
push 0x20
push ebx
push ebx
lea eax, [ebp - 0x564]
push ebx
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
pop edi
je 0x40aa57
push dword [ebp - 0x14]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call esi
push dword [ebp - 0x18]
call esi
pop esi
pop ebx
leave
ret
Function at 0x40aaa2
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
movzx eax, word [ebp + 0xc]
push ebx
push esi
push edi
push str.IMAGE
push eax
mov dword [ebp - 8], ecx
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov esi, eax
test esi, esi
je 0x40ab66
push esi
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_SizeofResource]
push esi
mov dword [ebp + 0xc], eax
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov edi, eax
test edi, edi
je 0x40ab66
push dword [ebp + 0xc]
push 0x22
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov esi, eax
test esi, esi
je 0x40ab5f
push esi
call dword [sym.imp.KERNEL32.dll_GlobalLock]
push edi
mov ebx, eax
call dword [sym.imp.KERNEL32.dll_LockResource]
test eax, eax
je 0x40ab58
test ebx, ebx
je 0x40ab58
push dword [ebp + 0xc]
push eax
push ebx
call sub.MSVCRT.dll_memcpy
add esp, 0xc
push edi
call dword [sym.imp.KERNEL32.dll_FreeResource]
push esi
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
lea eax, [ebp - 4]
xor edi, edi
push eax
push edi
push esi
mov dword [ebp - 4], edi
call dword [sym.imp.ole32.dll_CreateStreamOnHGlobal]
test eax, eax
jne 0x40ab4d
push dword [ebp - 4]
mov ecx, dword [ebp - 8]
call fcn.0040ab6f
mov edi, eax
push esi
call dword [sym.imp.KERNEL32.dll_GlobalFree]
mov eax, edi
jmp 0x40ab68
push esi
call dword [sym.imp.KERNEL32.dll_GlobalFree]
push edi
call dword [sym.imp.KERNEL32.dll_FreeResource]
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret 8
Function at 0x40b7b9
Capabilities:
Create thread
Enumerate files on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x45c
call fcn.0040c04e
mov eax, dword [0x41cdd8]
test eax, eax
jne 0x40b7d5
mov eax, 0x41cddc
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
push 0x40d145
push 0x6b
push eax
push ebx
call fcn.0040bada
add esp, 0x10
lea eax, [ebp - 0x45c]
push 0x41d424
push 0x417374
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0xc
lea eax, [ebp - 0x254]
push eax
lea eax, [ebp - 0x45c]
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov esi, dword [sym.imp.KERNEL32.dll_FindNextFileW]
mov edi, eax
lea eax, [ebp - 0x254]
push eax
push edi
call esi
and dword [0x41de64], 0
lea eax, [ebp - 0x254]
push eax
push edi
call esi
test eax, eax
je 0x40b84f
mov eax, dword [ebp - 0x234]
add dword [0x41de64], eax
jmp 0x40b833
push edi
call dword [sym.imp.KERNEL32.dll_FindClose]
lea eax, [ebp - 4]
xor esi, esi
push eax
push esi
push dword [ebx]
push 0x404512
push esi
push esi
call dword [sym.imp.KERNEL32.dll_CreateThread]
cmp eax, esi
mov dword [0x41de74], eax
jne 0x40b893
push 0x4150b0
push 1
push 1
push esi
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.Could_not_call_CreateThread_in_ShowInstalling
call fcn.004063d0
add esp, 0x18
pop edi
pop esi
xor eax, eax
pop ebx
leave
ret

Function at 0x40b97e
Capabilities:
Hide graphical window

Disassembly:
mov eax, dword [0x41cfd8]
test eax, eax
jne 0x40b98c
mov eax, 0x41cfdc
push ebx
push esi
mov esi, dword [esp + 0xc]
push edi
push 0x40d145
push 0x72
push eax
push esi
call fcn.0040bada
mov edi, dword [sym.imp.USER32.dll_GetDlgItem]
add esp, 0x10
push 0x3f0
push dword [esi]
call edi
mov ebx, dword [sym.imp.USER32.dll_ShowWindow]
push 0
push eax
call ebx
push 0x3f1
push dword [esi]
call edi
push 5
push eax
call ebx
pop edi
pop esi
xor eax, eax
pop ebx
ret
Function at 0x40b9d2
Capabilities:
Create thread
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
push esi
lea eax, [ebp - 4]
push edi
mov edi, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov ebx, 0xf003f
push eax
xor esi, esi
push ebx
push esi
push str.SoftwareDownloadManagerConfigTime
push 0x80000001
call edi
test eax, eax
jne 0x40ba22
lea eax, [ebp - 0xc]
or dword [ebp - 0xc], 0xffffffff
push 4
push eax
push 4
push esi
push 0x41c4f4
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea eax, [ebp - 8]
push eax
push ebx
push esi
push str.SoftwareInternet_Download_Manager
push 0x80000002
call edi
push 1
test eax, eax
pop ebx
jne 0x40ba5e
lea eax, [ebp - 0xc]
push 4
push eax
push 4
push esi
push str.InstallStatus
push dword [ebp - 8]
mov dword [ebp - 0xc], ebx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
call fcn.0040c04e
mov eax, dword [0x41cfd8]
cmp eax, esi
jne 0x40ba71
mov eax, 0x41cfdc
mov edi, dword [ebp + 8]
push 0x40d145
push 0x73
push eax
push edi
call fcn.0040bada
add esp, 0x10
push 0x3ef
push dword [edi]
call dword [sym.imp.USER32.dll_GetDlgItem]
push esi
push eax
call dword [sym.imp.USER32.dll_EnableWindow]
lea eax, [ebp - 0x10]
push eax
push esi
push dword [edi]
push 0x40d710
push esi
push esi
call dword [sym.imp.KERNEL32.dll_CreateThread]
cmp eax, esi
mov dword [0x41de78], eax
jne 0x40bad3
push 0x4150b0
push ebx
push esi
push esi
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.Could_not_call_CreateThread_in_uninstaller
call fcn.004063d0
add esp, 0x18
pop edi
pop esi
xor eax, eax
pop ebx
leave
ret