joyce8/EMBER2024-capa huggingface dataset:
Function at 0x401a20
Capabilities:
Read file on windows
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x472588
mov eax, dword fs:[0]
push eax
sub esp, 0x78
mov eax, dword [0x49e850]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
push 1
lea eax, [ebp - 0x71]
push eax
push ecx
lea ecx, [ebp - 0x40]
call fcn.004025e0
lea ecx, [ebp - 0x70]
mov dword [ebp - 4], 0
call fcn.00401670
add eax, 4
cmp dword [eax + 0x14], 8
jb 0x401a73
mov eax, dword [eax]
push 0
push 0x80
push 4
push 0
push 1
push 0xc0000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
mov eax, dword [ebp - 0x48]
lea edi, [ebp - 0x48]
mov eax, dword [eax + 4]
add edi, eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [edi], eax
push dword [ebp - 0x54]
call fcn.0044333d
mov edi, dword [sym.imp.OLEAUT32.dll_SysStringLen]
add esp, 4
push dword [ebp - 0x4c]
call edi
cmp dword [ebp - 0x58], 8
jb 0x401ac2
push dword [ebp - 0x6c]
call edi
xor eax, eax
mov word [ebp - 0x6c], ax
mov eax, dword [ebp - 0x70]
mov dword [ebp - 0x58], 7
mov dword [ebp - 0x5c], 0
mov eax, dword [eax + 4]
push dword [ebp + eax - 0x70]
call dword [sym.imp.KERNEL32.dll_SetLastError]
cmp byte [0x4a7931], 0
mov eax, dword [sym.imp.KERNEL32.dll_SetFilePointer]
jne 0x401b6d
push 0
push 0
push 0
push esi
mov dword [ebp - 0x78], 0
mov dword [ebp - 0x7c], 0
call eax
push 0
lea eax, [ebp - 0x7c]
push eax
push 2
lea eax, [ebp - 0x78]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x401b3b
cmp dword [ebp - 0x7c], 2
jne 0x401b3b
mov eax, 0xfeff
cmp word [ebp - 0x78], ax
sete al
mov byte [0x4a7931], al
jmp 0x401b40
mov al, byte [0x4a7931]
test al, al
jne 0x401b61
push 0
lea eax, [ebp - 0x84]
push eax
push 2
lea eax, [ebp - 0x80]
push eax
push esi
mov dword [ebp - 0x80], 0xfeff
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov eax, dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov byte [0x4a7931], 1
push 2
push 0
push 0
push esi
call eax
cmp dword [ebp - 0x28], 8
push 0
lea eax, [ebp - 0x84]
push eax
mov eax, dword [ebp - 0x2c]
lea ecx, [ebp - 0x3c]
cmovae ecx, dword [ebp - 0x3c]
add eax, eax
push eax
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
test esi, esi
je 0x401ba8
mov eax, dword [sym.imp.KERNEL32.dll_CloseHandle]
test eax, eax
je 0x401ba8
push esi
call eax
mov eax, dword [ebp - 0x18]
lea esi, [ebp - 0x18]
mov eax, dword [eax + 4]
add esi, eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esi], eax
push dword [ebp - 0x24]
call fcn.0044333d
add esp, 4
push dword [ebp - 0x1c]
call edi
cmp dword [ebp - 0x28], 8
jb 0x401bd6
push dword [ebp - 0x3c]
call edi
xor eax, eax
mov word [ebp - 0x3c], ax
mov eax, dword [ebp - 0x40]
mov dword [ebp - 0x28], 7
mov dword [ebp - 0x2c], 0
mov eax, dword [eax + 4]
push dword [ebp + eax - 0x40]
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004423a3
mov esp, ebp
pop ebp
ret
Function at 0x40bd9e
Capabilities:
Get file size

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
xor esi, esi
push esi
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetFileSize]
push esi
push esi
push esi
push 4
push esi
push dword [ebp + 8]
mov dword [ebp - 4], eax
call dword [sym.imp.KERNEL32.dll_CreateFileMappingW]
mov ebx, eax
test ebx, ebx
je 0x40bdfb
push edi
push esi
push esi
push esi
push 2
push ebx
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov edi, eax
test edi, edi
je 0x40bdf3
push dword [ebp + 0xc]
push dword [ebp - 4]
push edi
call fcn.0040bd10
add esp, 0xc
mov esi, eax
push edi
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret

Function at 0x40be42
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
mov esi, dword [ebp + 8]
push esi
mov dword [ebp - 4], 0x7863513
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov ebx, eax
push ebx
call fcn.0044203b
mov edx, eax
pop ecx
test edx, edx
je 0x40be88
push edi
xor edi, edi
test ebx, ebx
je 0x40be87
sub esi, edx
mov eax, edi
and eax, 3
lea ecx, [edi + edx]
mov al, byte [ebp + eax - 4]
xor al, byte [esi + ecx]
inc edi
mov byte [ecx], al
cmp edi, ebx
jb 0x40be71
pop edi
pop esi
mov eax, edx
pop ebx
leave
ret

Function at 0x40e850
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 0xc]
cmp dword [esi + 0x14], 8
jb 0x40e85f
mov esi, dword [esi]
push esi
call fcn.00443324
pop ecx
push 0
push dword [ebp + 0x10]
add eax, eax
push eax
push esi
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop esi
pop ebp
ret 0x10
Function at 0x415b92
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
push dword [ebp + 0x10]
mov esi, ecx
push dword [ebp + 0xc]
xor ebx, ebx
push dword [ebp + 8]
mov dword [esi + 8], ebx
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov edi, eax
test edi, edi
je 0x415c15
push edi
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov ebx, eax
test ebx, ebx
jne 0x415bca
push 0
push 0
jmp 0x415c17
push edi
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov dword [esi + 4], eax
test eax, eax
je 0x415bc4
lea edi, [eax + 0x40]
push edi
call fcn.0044203b
pop ecx
mov dword [esi], eax
test eax, eax
je 0x415bc4
push edi
push 0
push eax
call fcn.004423c0
add esp, 0xc
push dword [esi + 4]
push ebx
call dword [sym.imp.KERNEL32.dll_LockResource]
push eax
push dword [esi]
call fcn.00442690
add esp, 0xc
mov eax, esi
pop edi
pop esi
pop ebx
pop ebp
ret 0xc
push ebx
push ebx
call fcn.00443342
int3
Function at 0x4162ad
Capabilities:
Copy file
Create thread

Disassembly:
push 0x830
mov eax, 0x464701
call fcn.00443402
mov esi, ecx
mov edi, dword [ebp + 8]
mov ebx, dword [ebp + 0xc]
push edi
call fcn.00416568
test al, al
je 0x4162dd
push 0
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_CopyFileW]
jmp 0x416474
xor eax, eax
push 0x7fe
push eax
mov word [ebp - 0x810], ax
lea eax, [ebp - 0x80e]
push eax
call fcn.004423c0
add esp, 0xc
lea eax, [ebp - 0x810]
push eax
push edi
mov ecx, esi
call fcn.0041647c
lea ecx, [ebp - 0x810]
push ecx
lea ecx, [esi + 0xf4]
call fcn.004044b0
mov eax, 0x484fc8
test ebx, ebx
cmovne eax, ebx
lea ecx, [esi + 0x124]
push eax
call fcn.004044b0
push 0x2c
call fcn.00443e61
mov edi, eax
pop ecx
mov dword [ebp - 0x81c], edi
xor ebx, ebx
mov dword [ebp - 4], ebx
test edi, edi
je 0x416364
lea ecx, [esi + 0xf4]
call fcn.004035c0
push 4
push esi
push dword [eax]
mov ecx, edi
call fcn.00415fb4
jmp 0x416366
mov eax, ebx
or dword [ebp - 4], 0xffffffff
mov dword [esi + 0x154], eax
lea eax, [ebp - 0x820]
push eax
push ebx
push esi
push 0x416735
push ebx
push ebx
mov dword [ebp - 0x820], ebx
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov ebx, eax
push 4
mov dword [ebp - 0x81c], ebx
call fcn.0044203b
mov dword [esp], 0x4ff
push 0xffffffffffffffff
push 0
push eax
push 1
mov dword [ebp - 0x818], eax
mov dword [eax], ebx
call dword [sym.imp.USER32.dll_MsgWaitForMultipleObjects]
mov edi, eax
cmp edi, 1
jne 0x416420
mov ebx, dword [ebp - 0x818]
xor edi, edi
jmp 0x4163ec
cmp dword [ebp - 0x838], 0x8032
jne 0x4163df
mov ecx, dword [esi + 0x154]
call fcn.00416f2a
lea eax, [ebp - 0x83c]
push eax
call dword [sym.imp.USER32.dll_DispatchMessageW]
push 1
push edi
push edi
push edi
lea eax, [ebp - 0x83c]
push eax
call dword [sym.imp.USER32.dll_PeekMessageW]
test eax, eax
jne 0x4163c8
push 0x4ff
push 0xffffffffffffffff
push edi
push ebx
push 1
call dword [sym.imp.USER32.dll_MsgWaitForMultipleObjects]
mov edi, eax
cmp edi, 1
je 0x4163c4
mov ebx, dword [ebp - 0x81c]
push dword [ebp - 0x818]
call fcn.0044333d
mov esi, dword [esi + 0x154]
pop ecx
test esi, esi
je 0x416444
mov ecx, esi
call fcn.0041619e
push esi
call fcn.0044212c
pop ecx
cmp edi, 0xffffffff
jne 0x41644d
xor eax, eax
jmp 0x416474
and dword [ebp - 0x814], 0
lea eax, [ebp - 0x814]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_GetExitCodeThread]
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
cmp dword [ebp - 0x814], eax
setge al
call fcn.004433b1
ret 8

Function at 0x4183f0
Capabilities:
Contain obfuscated stackstrings

Disassembly:
push 0x28
mov eax, 0x464eef
call fcn.00443402
mov esi, dword [ebp + 8]
xor ebx, ebx
mov dword [ebp - 0x30], ebx
mov dword [ebp - 0x34], esi
mov dword [ebp - 0x28], 0x74736e49
mov dword [ebp - 0x24], 0x536c6c61
mov dword [ebp - 0x20], 0x6c656968
mov word [ebp - 0x1c], 0x64
cmp byte [ebp + 0xc], bl
je 0x418435
mov dword [ebp - 0x1b], 0x7a695720
mov dword [ebp - 0x17], 0x647261
push 1
lea eax, [ebp - 0x29]
push eax
lea eax, [ebp - 0x28]
push eax
mov ecx, esi
call fcn.0040caac
mov dword [ebp - 4], ebx
mov dword [ebp - 0x30], 1
mov eax, esi
call fcn.004433b1
ret 8
Function at 0x418a36
Capabilities:
Get file size
Read file on windows

Disassembly:
push 0x5c
mov eax, 0x465105
call fcn.0044346e
mov eax, dword [ebp + 8]
mov dword [ebp - 0x50], eax
mov esi, dword [ebp + 0xc]
xor ebx, ebx
mov dword [ebp - 4], ebx
push 1
lea eax, [ebp - 0x49]
push eax
lea ecx, [ebp - 0x44]
call fcn.00402580
mov byte [ebp - 4], 1
mov ecx, 0x484fc8
mov eax, ecx
test esi, esi
cmovne eax, esi
test eax, eax
cmovne ecx, eax
push ecx
lea ecx, [ebp - 0x40]
call fcn.00405190
lea eax, [ebp - 0x40]
cmp dword [ebp - 0x2c], 8
cmovae eax, dword [ebp - 0x40]
push ebx
push 0x80
push 3
push ebx
push ebx
push SysReAllocString
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [ebp - 0x48], eax
mov byte [ebp - 4], 2
test eax, eax
jne 0x418ac8
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x48]
call fcn.00403440
mov byte [ebp - 4], 3
mov byte [ebp - 4], bl
lea ecx, [ebp - 0x44]
call fcn.00401580
jmp 0x418bfb
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov edi, eax
lea ecx, [edi + 1]
push ecx
call fcn.0044203b
pop ecx
mov esi, eax
xor ebx, ebx
test esi, esi
setne bl
mov byte [ebp - 0x64], bl
mov dword [ebp - 0x60], esi
mov byte [ebp - 4], 4
push 0
lea eax, [ebp - 0x68]
push eax
push edi
push esi
push dword [ebp - 0x48]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x418b29
mov byte [ebp - 4], 2
test bl, bl
je 0x418b13
push esi
call fcn.0044212c
pop ecx
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x48]
call fcn.00403440
mov byte [ebp - 4], 5
mov byte [ebp - 4], 0
jmp 0x418abb
xor ecx, ecx
mov dword [ebp - 0x58], ecx
mov byte [ebp - 4], 6
mov eax, dword [sym.imp.CRYPT32.dll_CertFreeCertificateContext]
mov dword [ebp - 0x54], eax
mov byte [ebp - 4], 7
lea eax, [ebp - 0x58]
push eax
lea eax, [ebp - 0x5c]
push eax
push 0xffffffffffffffff
push ecx
push 4
push edi
push esi
push ecx
call dword [sym.imp.CRYPT32.dll_CertAddSerializedElementToStore]
test eax, eax
jne 0x418b7d
mov byte [ebp - 4], 8
mov byte [ebp - 4], 2
test bl, bl
je 0x418b6b
push esi
call fcn.0044212c
pop ecx
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x48]
call fcn.00403440
mov byte [ebp - 4], 9
jmp 0x418b23
cmp dword [ebp - 0x5c], 0
jne 0x418bab
mov byte [ebp - 4], 0xa
mov byte [ebp - 4], 2
test bl, bl
je 0x418b96
push esi
call fcn.0044212c
pop ecx
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x48]
call fcn.00403440
mov byte [ebp - 4], 0xb
jmp 0x418b23
push dword [ebp - 0x50]
mov eax, dword [ebp - 0x58]
push dword [eax + 0xc]
push 1
call dword [sym.imp.CRYPT32.dll_CertCompareCertificate]
mov edi, eax
mov byte [ebp - 4], 0xc
mov byte [ebp - 4], 2
test bl, bl
je 0x418bd1
push esi
call fcn.0044212c
pop ecx
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x48]
call fcn.00403440
mov byte [ebp - 4], 0xd
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x44]
call fcn.00401580
mov eax, edi
jmp 0x418bfd
xor eax, eax
call fcn.004433c0
ret 8
Function at 0x41a10e
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x408
mov eax, dword [0x49e850]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, dword [ebp + 8]
xor bl, bl
test esi, esi
je 0x41a188
push 0
lea eax, [ebp - 0x408]
push eax
push 0x400
lea eax, [ebp - 0x404]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov ecx, dword [ebp - 0x408]
cmp ecx, 2
jb 0x41a16f
movzx eax, byte [ebp - 0x404]
cmp eax, 0xffffffff
jne 0x41a16f
movzx eax, byte [ebp - 0x403]
cmp eax, 0xfffffffe
jne 0x41a16f
inc bl
jmp 0x41a188
xor eax, eax
test ecx, ecx
je 0x41a188
test bl, bl
jne 0x41a188
cmp byte [ebp + eax - 0x404], bl
sete bl
inc eax
cmp eax, ecx
jb 0x41a175
push 0
push 0
push 0
push esi
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov ecx, dword [ebp - 4]
pop esi
mov al, bl
xor ecx, ebp
pop ebx
call fcn.004423a3
leave
ret 4

Function at 0x41a3de
Capabilities:
Get file size
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
mov eax, dword [0x49e850]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
push 0
push dword [ebx]
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov edi, eax
cmp edi, 0xffffffff
je 0x41a4e4
cmp byte [ebp + 0xc], 0
jne 0x41a492
lea eax, [edi + 1]
push eax
push 8
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov esi, eax
test esi, esi
je 0x41a4e4
and dword [ebp - 8], 0
push 0
lea eax, [ebp - 8]
push eax
push edi
push esi
push dword [ebx]
call dword [sym.imp.KERNEL32.dll_ReadFile]
push esi
test eax, eax
je 0x41a4d5
call fcn.00443930
lea edi, [eax + 1]
pop ecx
cmp edi, 0x3fffffff
jle 0x41a461
xor eax, eax
jmp 0x41a475
lea eax, [edi + edi]
call fcn.00444240
mov eax, esp
push 3
push edi
push esi
push eax
call fcn.0040d15d
mov ecx, dword [ebp + 0x10]
push eax
call fcn.0040f219
push esi
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
mov al, 1
jmp 0x41a4e6
lea eax, [edi + 3]
push eax
push 8
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov esi, eax
test esi, esi
je 0x41a4e4
and dword [ebp - 8], 0
push 0
lea eax, [ebp - 8]
push eax
push edi
push esi
push dword [ebx]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x41a4d4
mov ecx, 0xfeff
mov eax, esi
cmp word [esi], cx
jne 0x41a475
lea eax, [esi + 2]
jmp 0x41a475
push esi
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
xor al, al
lea esp, [ebp - 0x14]
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004423a3
leave
ret 0xc
Function at 0x421e1b
Capabilities:
Persist via run registry key
Query or enumerate registry value

Disassembly:
push 0x434
mov eax, 0x468ccb
call fcn.00443402
mov edi, ecx
xor ebx, ebx
mov dword [ebp - 0x43c], ebx
mov dword [ebp - 0x438], ebx
mov dword [ebp - 0x434], ebx
mov dword [ebp - 4], ebx
push 0x2001f
push str.SOFTWAREMicrosoftWindowsCurrentVersionInstallerRunOnceEntries
push reloc.OLEAUT32.dll_SysReAllocString
lea ecx, [ebp - 0x43c]
call fcn.00401410
test eax, eax
jne 0x421f7e
push 0x40e
mov word [ebp - 0x420], ax
lea eax, [ebp - 0x41e]
push ebx
push eax
mov esi, ebx
call fcn.004423c0
add esp, 0xc
lea eax, [ebp - 0x440]
push ebx
push ebx
push eax
push ebx
lea eax, [ebp - 0x430]
push eax
lea eax, [ebp - 0x420]
push eax
mov dword [ebp - 0x430], 0x208
push ebx
jmp 0x421f57
inc esi
mov dword [ebp - 0x42c], ebx
mov dword [ebp - 0x428], ebx
mov dword [ebp - 0x424], ebx
mov byte [ebp - 4], 1
push 0x2001f
push str.SoftwareMicrosoftWindowsCurrentVersionRunOnce
push reloc.OLEAUT32.dll_SysReAllocString
lea ecx, [ebp - 0x42c]
call fcn.00401410
test eax, eax
jne 0x421ef9
lea eax, [ebp - 0x420]
push eax
lea eax, [ebp - 0x42c]
push eax
mov ecx, edi
call fcn.0042af89
test eax, eax
jne 0x421f6d
push 0x2001f
push str.SoftwareMicrosoftWindowsCurrentVersionRunOnceEx
push reloc.OLEAUT32.dll_SysReAllocString
lea ecx, [ebp - 0x42c]
call fcn.00401410
test eax, eax
jne 0x421f30
lea eax, [ebp - 0x420]
push eax
lea eax, [ebp - 0x42c]
push eax
mov ecx, edi
call fcn.0042af89
test eax, eax
jne 0x421f6d
mov byte [ebp - 4], bl
lea ecx, [ebp - 0x42c]
call fcn.004013e0
push ebx
push ebx
lea eax, [ebp - 0x440]
push eax
push ebx
lea eax, [ebp - 0x430]
push eax
lea eax, [ebp - 0x420]
push eax
push esi
push dword [ebp - 0x43c]
call dword [sym.imp.ADVAPI32.dll_RegEnumValueW]
test eax, eax
je 0x421eab
jmp 0x421f7e
mov byte [ebp - 4], bl
lea ecx, [ebp - 0x42c]
call fcn.004013e0
xor ebx, ebx
inc ebx
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x43c]
call fcn.004013e0
mov eax, ebx
call fcn.004433b1
ret 4
Function at 0x42454e
Capabilities:
Check os version

Disassembly:
push 0x1fc
mov eax, 0x469686
call fcn.00443402
mov ebx, ecx
mov dword [ebp - 0x1f8], ebx
mov edi, dword [ebp + 8]
lea eax, [ebp - 0x1ec]
push eax
mov dword [ebp - 0x1ec], 0x11c
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
cmp dword [ebp - 0x1e8], 5
jne 0x4246fe
cmp dword [ebp - 0x1e4], 2
jne 0x4246fe
cmp byte [ebp - 0xd2], 1
je 0x4246fe
push 0x478344
push edi
call fcn.00443f79
pop ecx
pop ecx
test eax, eax
jne 0x4245bd
inc eax
jmp 0x424796
xor ebx, ebx
inc ebx
push ebx
lea eax, [ebp - 0x1ed]
push eax
push edi
lea ecx, [ebp - 0xa0]
call fcn.0040cbc2
mov dword [ebp - 4], 6
cmp dword [ebp - 0x8c], 0
je 0x4246e8
xor esi, esi
mov dword [ebp - 0x208], esi
mov dword [ebp - 0x204], esi
mov dword [ebp - 0x200], esi
mov byte [ebp - 4], 7
push ebx
lea eax, [ebp - 0x208]
push eax
push esi
push 0x2c
lea ecx, [ebp - 0xa0]
call fcn.00411b57
push esi
lea eax, [ebp - 0x1ed]
push eax
lea ecx, [ebp - 0x40]
mov dword [ebp - 0x40], 0x47d68c
mov dword [ebp - 0x18], 0x484b70
call fcn.00402580
mov byte [ebp - 4], 9
mov ecx, dword [ebp - 0x208]
mov eax, dword [ebp - 0x204]
sub eax, ecx
push 0x30
mov dword [ebp - 0x1f4], ecx
cdq
pop ecx
idiv ecx
mov dword [ebp - 0x1fc], eax
test eax, eax
je 0x4246cd
mov edi, dword [ebp - 0x1f8]
push ebx
lea eax, [ebp - 0x1ed]
push eax
push str.dotnetfxsp1.exe
lea ecx, [ebp - 0xd0]
call fcn.0040cbc2
mov byte [ebp - 4], 0xa
push eax
push dword [ebp - 0x1f4]
lea eax, [ebp - 0x70]
push eax
call fcn.0041b715
add esp, 0xc
mov byte [ebp - 4], 0xb
push esi
push esi
lea ecx, [ebp - 0x40]
push ecx
push eax
mov ecx, edi
call fcn.004263d8
mov byte [ebp - 4], 0xa
lea ecx, [ebp - 0x70]
call fcn.00401580
mov byte [ebp - 4], 9
lea ecx, [ebp - 0xd0]
call fcn.00401580
add dword [ebp - 0x1f4], 0x30
dec dword [ebp - 0x1fc]
jne 0x424662
mov byte [ebp - 4], 7
lea ecx, [ebp - 0x40]
call fcn.00401580
mov byte [ebp - 4], 6
lea ecx, [ebp - 0x208]
call fcn.0042c53d
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0xa0]
call fcn.00401580
mov eax, ebx
jmp 0x424796
xor esi, esi
push esi
lea eax, [ebp - 0x1ed]
push eax
lea ecx, [ebp - 0x40]
mov dword [ebp - 0x40], 0x47d68c
mov dword [ebp - 0x18], 0x484b70
call fcn.00402580
mov dword [ebp - 4], 1
push 0x478344
push edi
call fcn.00443f79
pop ecx
pop ecx
test eax, eax
jne 0x424785
push 1
lea eax, [ebp - 0x1ed]
push eax
push str.dotnetfxsp1.exe
lea ecx, [ebp - 0x70]
call fcn.0040cbc2
mov byte [ebp - 4], 2
push esi
push 1
lea eax, [ebp - 0x40]
push eax
lea eax, [ebp - 0x70]
push eax
mov ecx, ebx
call fcn.004263d8
mov ebx, eax
neg ebx
sbb bl, bl
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x70]
call fcn.00401580
inc bl
je 0x424785
mov ecx, dword [ebp - 0x1f8]
call fcn.00422023
jmp 0x424788
xor esi, esi
inc esi
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x40]
call fcn.00401580
mov eax, esi
call fcn.004433b1
ret 4
Function at 0x428c4c
Capabilities:
Set current directory

Disassembly:
push 0x45c
mov eax, 0x46ac21
call fcn.00443402
mov esi, ecx
mov dword [ebp - 0x458], esi
mov ebx, dword [ebp + 0xc]
mov edi, dword [ebp + 8]
xor ecx, ecx
xor eax, eax
push 0x206
mov word [ebp - 0x218], ax
push ecx
lea eax, [ebp - 0x216]
push eax
mov dword [ebx], ecx
mov byte [ebp - 0x451], cl
call fcn.004423c0
add esp, 0xc
lea eax, [ebp - 0x459]
push 1
push eax
push edi
lea ecx, [ebp - 0x450]
call fcn.004025e0
and dword [ebp - 4], 0
add eax, 4
cmp dword [eax + 0x14], 8
jb 0x428cb5
mov eax, dword [eax]
push eax
lea eax, [ebp - 0x464]
push str.Installing_MSI_engine__s
push eax
mov dword [ebp - 0x464], str.msiaction.cpp
mov dword [ebp - 0x460], 0x843
call fcn.00411f5e
add esp, 0xc
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x450]
call fcn.00401580
push 4
lea eax, [ebp - 0x450]
push eax
mov ecx, esi
call fcn.00432691
mov ecx, eax
call fcn.004128ac
mov dword [ebp - 4], 2
add eax, 4
cmp dword [eax + 0x14], 8
jb 0x428d16
mov eax, dword [eax]
push eax
push str.2.0.2600.0
call fcn.0044189f
pop ecx
pop ecx
mov esi, eax
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x450]
call fcn.00401580
test esi, esi
jns 0x428d52
push edi
lea eax, [ebp - 0x218]
push str.__s___q
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
mov esi, 0x47c478
jmp 0x428d9a
mov ecx, dword [ebp - 0x458]
mov byte [ebp - 0x451], 1
call fcn.00432691
mov ecx, eax
call fcn.004378c8
test eax, eax
push edi
lea eax, [ebp - 0x218]
je 0x428d89
push str.__s___quiet__norestart
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
mov esi, str._quiet__norestart
jmp 0x428d9a
push str.__s___c:_msiinst__delayrebootq_
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
mov esi, str._c:_msiinst__delayrebootq_
mov ecx, dword [ebp - 0x458]
add esp, 0xc
call fcn.00432691
mov ecx, eax
call fcn.004378c8
test eax, eax
je 0x428dca
mov ecx, dword [ebp - 0x458]
call fcn.00432691
push eax
push 1
push esi
push edi
call fcn.00441338
jmp 0x428dd8
push 1
lea eax, [ebp - 0x218]
push eax
call fcn.004411ac
mov esi, eax
test esi, esi
je 0x428eb9
cmp esi, 0xbc2
je 0x428e05
push 0
push esi
mov dword [0x4a6674], 0x484
call fcn.0044143d
pop ecx
pop ecx
mov eax, esi
jmp 0x428ebb
cmp byte [ebp - 0x451], 0
je 0x428eb3
mov dword [ebx], 2
xor ebx, ebx
mov dword [ebp - 0x468], ebx
mov dword [ebp - 0x464], ebx
mov dword [ebp - 0x460], ebx
mov dword [ebp - 4], 4
push 0x20019
push str.SoftwareMicrosoftWindowsCurrentVersionInstaller
push reloc.OLEAUT32.dll_SysReAllocString
lea ecx, [ebp - 0x468]
call fcn.00401410
test eax, eax
jne 0x428ea2
push 0x206
mov word [ebp - 0x420], ax
lea eax, [ebp - 0x41e]
push ebx
push eax
call fcn.004423c0
add esp, 0xc
lea eax, [ebp - 0x458]
push eax
lea eax, [ebp - 0x420]
push eax
push str.InstallerLocation
lea ecx, [ebp - 0x468]
mov dword [ebp - 0x458], 0x104
call fcn.00401500
lea eax, [ebp - 0x420]
push eax
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryW]
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x468]
call fcn.004013e0
jmp 0x428eb9
mov dword [ebx], 1
xor eax, eax
call fcn.004433b1
ret 8