Function at 0x40c3d2
Capabilities:
Create process on windows
Delete file
Extract resource via kernel32 functions
Terminate process

Disassembly:
push ebp
lea ebp, [esp - 0x370]
sub esp, 0x3f0
mov eax, dword [0x4377f4]
push ebx
push esi
push edi
xor eax, ebp
xor ebx, ebx
mov edi, 0x200
push edi
mov dword [ebp + 0x36c], eax
lea eax, [ebp + 0x16c]
mov esi, ecx
push ebx
push eax
mov dword [ebp + 0x3c], ebx
mov dword [esi + 0x20], ebx
call fcn.0041c310
add esp, 0xc
push edi
lea eax, [ebp + 0x16c]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
lea eax, [ebp + 0x16c]
push eax
lea ecx, [ebp + 0x118]
call fcn.0040299a
push 2
push ebx
lea eax, [ebp + 0x16c]
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryExA]
cmp eax, ebx
mov dword [ebp + 0x38], eax
jne 0x40c45d
push ebx
push 1
lea ecx, [ebp + 0x118]
call fcn.00402285
xor eax, eax
jmp 0x40cf3c
xor edi, edi
inc edi
mov dword [ebp + 0x34], edi
mov dword [ebp + 0x2c], 0x438848
movzx eax, word [ebp + 0x34]
push 3
push eax
push dword [ebp + 0x38]
call dword [sym.imp.KERNEL32.dll_FindResourceA]
push eax
push dword [ebp + 0x38]
mov dword [ebp + 0x28], eax
call dword [sym.imp.KERNEL32.dll_LoadResource]
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
push 0x30000
push edi
push dword [ebp + 0x28]
mov dword [ebp + 0x20], eax
push dword [ebp + 0x38]
call dword [sym.imp.KERNEL32.dll_SizeofResource]
push eax
push dword [ebp + 0x20]
call dword [sym.imp.USER32.dll_CreateIconFromResource]
mov ecx, dword [ebp + 0x2c]
add dword [ebp + 0x2c], 4
inc dword [ebp + 0x34]
cmp dword [ebp + 0x2c], 0x438850
mov dword [ecx], eax
jle 0x40c46a
push dword [ebp + 0x38]
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
push dword [0x43884c]
lea eax, [esi + 4]
push edi
push 0x80
push dword [eax]
mov dword [ebp + 0x2c], eax
call dword [sym.imp.USER32.dll_SendMessageA]
push dword [0x438848]
mov eax, dword [ebp + 0x2c]
push ebx
push 0x80
push dword [eax]
call dword [sym.imp.USER32.dll_SendMessageA]
push 0x42cb70
lea ecx, [ebp + 0x150]
call fcn.0040299a
push 0x42ce70
lea ecx, [ebp + 0x134]
call fcn.0040299a
lea eax, [ebp + 0x150]
push eax
lea eax, [ebp + 0x134]
push eax
push 0x438854
call fcn.00414850
add esp, 0xc
push ebx
push edi
lea ecx, [ebp + 0x134]
call fcn.00402285
push ebx
push edi
lea ecx, [ebp + 0x150]
call fcn.00402285
push 0x42cb70
lea ecx, [ebp + 0x150]
call fcn.0040299a
push 0x42d38c
lea ecx, [ebp + 0x134]
call fcn.0040299a
lea eax, [ebp + 0x150]
push eax
lea eax, [ebp + 0x134]
push eax
push 0x438854
call fcn.00414850
add esp, 0xc
push ebx
push edi
lea ecx, [ebp + 0x134]
call fcn.00402285
push ebx
push edi
lea ecx, [ebp + 0x150]
call fcn.00402285
push 0x42cb70
lea ecx, [ebp + 0x150]
call fcn.0040299a
push 0x42c890
lea ecx, [ebp + 0x134]
call fcn.0040299a
lea eax, [ebp + 0x150]
push eax
lea eax, [ebp + 0x134]
push eax
push 0x438854
call fcn.00414850
add esp, 0xc
push ebx
push edi
lea ecx, [ebp + 0x134]
call fcn.00402285
push ebx
push edi
lea ecx, [ebp + 0x150]
call fcn.00402285
mov dword [ebp + 0x38], 0x434fe6
mov dword [ebp + 0x34], 0x434173
mov dword [ebp + 0x24], 0x14
push dword [ebp + 0x34]
push dword [ebp + 0x38]
call fcn.0041dc60
add dword [ebp + 0x34], 3
add dword [ebp + 0x38], 0x32
dec dword [ebp + 0x24]
pop ecx
pop ecx
jne 0x40c610
push 0x2c
lea eax, [esi + 0x28]
push ebx
push eax
mov dword [esi + 0x24], ebx
call fcn.0041c310
add esp, 0xc
push edi
push 0xffffffffffffffff
lea eax, [ebp + 0x40]
push eax
lea ecx, [ebp + 0x118]
mov byte [ebp + 0x40], 0x5c
call fcn.0040209a
inc eax
push eax
lea ecx, [ebp + 0x118]
call fcn.0040ab1f
cmp byte [eax], 0x5f
lea ecx, [ebp + 0x118]
push edi
lea eax, [ebp + 0x40]
mov byte [ebp + 0x40], 0x5c
jne 0x40c741
or esi, 0xffffffff
push esi
push eax
call fcn.0040209a
inc eax
push eax
push ebx
lea eax, [ebp + 0x118]
push eax
lea ecx, [ebp + 0x150]
call fcn.004028f4
push edi
push esi
lea eax, [ebp + 0x40]
push eax
lea ecx, [ebp + 0x118]
mov byte [ebp + 0x40], 0x5c
call fcn.0040209a
push esi
add eax, 2
push eax
lea eax, [ebp + 0x118]
push eax
lea ecx, [ebp + 0x134]
call fcn.004028f4
lea eax, [ebp + 0x134]
push eax
lea eax, [ebp + 0x150]
push eax
lea eax, [ebp - 0x20]
push eax
call fcn.00402a92
add esp, 0xc
push esi
push ebx
push eax
lea ecx, [ebp + 0x150]
call fcn.004026ab
push ebx
push edi
lea ecx, [ebp - 0x20]
call fcn.00402285
push ebx
push edi
lea ecx, [ebp + 0x134]
call fcn.00402285
lea eax, [ebp + 0x150]
push eax
lea eax, [ebp + 0x118]
push eax
call fcn.004084f1
cmp dword [ebp + 0x168], 0x10
mov eax, dword [ebp + 0x154]
pop ecx
pop ecx
jae 0x40c72a
lea eax, [ebp + 0x154]
push 5
push ebx
push ebx
push eax
push str.open
push ebx
call dword [sym.imp.SHELL32.dll_ShellExecuteA]
push ebx
call fcn.0041dc1a
push 0xffffffffffffffff
push eax
call fcn.0040209a
push 0xffffffffffffffff
inc eax
push eax
lea eax, [ebp + 0x118]
push eax
lea ecx, [ebp + 0x150]
call fcn.004028f4
push edi
push 0xffffffffffffffff
lea eax, [ebp + 0x30]
push eax
lea ecx, [ebp + 0x118]
mov byte [ebp + 0x30], 0x5c
call fcn.0040209a
inc eax
push eax
push ebx
lea eax, [ebp + 0x118]
push eax
lea ecx, [ebp + 0x134]
call fcn.004028f4
lea eax, [ebp + 0x150]
push eax
push 0x42cb70
lea eax, [ebp + 0x134]
push eax
lea eax, [ebp - 0x20]
push eax
call fcn.00402e85
add esp, 0xc
push eax
lea eax, [ebp + 0xe0]
push eax
call fcn.00402a92
add esp, 0xc
push ebx
push edi
lea ecx, [ebp - 0x20]
call fcn.00402285
push ebx
push edi
lea ecx, [ebp + 0x134]
call fcn.00402285
push ebx
push edi
lea ecx, [ebp + 0x150]
call fcn.00402285
mov dword [ebp + 0x34], ebx
lea eax, [ebp + 0xe0]
push eax
call fcn.0040927e
test al, al
pop ecx
je 0x40c821
cmp dword [ebp + 0xf8], 0x10
mov eax, dword [ebp + 0xe4]
jae 0x40c806
lea eax, [ebp + 0xe4]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
push 0x3e8
call dword [sym.imp.KERNEL32.dll_Sleep]
inc dword [ebp + 0x34]
cmp dword [ebp + 0x34], 0x14
jl 0x40c7e0
lea eax, [ebp + 0xe0]
push eax
call fcn.0040927e
test al, al
pop ecx
je 0x40c848
sub esp, 0x1c
mov ecx, esp
push str.Failed_to_delete_old_version_of_the_SmartDownloader
call fcn.0040299a
mov ecx, esi
call fcn.0040ab47
mov ecx, esi
mov dword [0x438844], esi
call fcn.0040a9f1
push ebx
lea ecx, [ebp + 0xfc]
mov dword [ebp + 0x114], 0xf
call fcn.00402121
lea eax, [ebp + 0xfc]
push eax
mov ecx, esi
call fcn.0040b53c
cmp dword [ebp + 0x110], ebx
mov byte [esi + 0x191], bl
mov byte [esi + 0x193], 1
jbe 0x40cca0
push 0x24
call fcn.0041b48d
cmp eax, ebx
pop ecx
mov dword [ebp + 0x28], eax
je 0x40c8c4
mov eax, dword [esi + 0x2c]
imul eax, eax, 0x32
add eax, 0x434756
push eax
lea ecx, [ebp - 0x20]
mov dword [ebp + 0x3c], edi
call fcn.0040299a
mov ecx, dword [ebp + 0x28]
push eax
push edi
call fcn.00412610
jmp 0x40c8c6
xor eax, eax
test byte [ebp + 0x3c], 1
mov dword [esi + 0x24], eax
je 0x40c8dd
and dword [ebp + 0x3c], 0xfffffffe
push ebx
push edi
lea ecx, [ebp - 0x20]
call fcn.00402285
push 0x2f0
call fcn.0041b48d
cmp eax, ebx
pop ecx
je 0x40c8fa
mov ecx, eax
call fcn.00412c90
mov dword [0x4388d4], eax
jmp 0x40c900
mov dword [0x4388d4], ebx
push 0x42d34c
lea ecx, [ebp - 0x20]
call fcn.0040299a
mov ecx, dword [0x4388d4]
push eax
push edi
call fcn.004130b0
push ebx
push edi
lea ecx, [ebp - 0x20]
call fcn.00402285
push 0x42c5d4
lea ecx, [ebp + 0x150]
call fcn.0040299a
push str.LogFile
lea ecx, [ebp + 0x134]
call fcn.0040299a
mov ecx, dword [esi + 0x24]
lea eax, [ebp + 0x150]
push eax
push ebx
push ebx
lea eax, [ebp + 0x134]
push eax
call fcn.004122e0
push ebx
push edi
lea ecx, [ebp + 0x134]
call fcn.00402285
push ebx
push edi
lea ecx, [ebp + 0x150]
call fcn.00402285
push 0x42c5d4
lea ecx, [ebp + 0x150]
call fcn.0040299a
push str.LogFile
lea ecx, [ebp + 0x134]
call fcn.0040299a
mov ecx, dword [esi + 0x24]
push ebx
lea eax, [ebp + 0x150]
push eax
lea eax, [ebp + 0x134]
push eax
call fcn.004123b0
mov ecx, dword [0x4388d4]
push eax
push edi
call fcn.004130e0
push ebx
push edi
lea ecx, [ebp + 0x134]
call fcn.00402285
push ebx
push edi
lea ecx, [ebp + 0x150]
call fcn.00402285
lea eax, [ebp + 0xfc]
push eax
lea ecx, [ebp - 4]
call fcn.004028ce
cmp dword [eax + 0x18], 0x10
jb 0x40c9ee
mov eax, dword [eax + 4]
jmp 0x40c9f1
add eax, 4
push str.myRegKey
lea ecx, [ebp - 0x48]
mov dword [ebp + 0x24], eax
call fcn.0040299a
cmp dword [eax + 0x18], 0x10
jb 0x40ca0c
mov eax, dword [eax + 4]
jmp 0x40ca0f
add eax, 4
push str.BRAND_ID
lea ecx, [ebp - 0x64]
mov dword [ebp + 0x34], eax
call fcn.0040299a
cmp dword [eax + 0x18], 0x10
jb 0x40ca2a
mov eax, dword [eax + 4]
jmp 0x40ca2d
add eax, 4
push str.PRODUCT_ID
lea ecx, [ebp - 0x80]
mov dword [ebp + 0x38], eax
call fcn.0040299a
cmp dword [eax + 0x18], 0x10
jb 0x40ca48
mov eax, dword [eax + 4]
jmp 0x40ca4b
add eax, 4
push 0x438854
lea ecx, [ebp + 0x150]
mov dword [ebp + 0x18], eax
call fcn.004028ce
cmp dword [eax + 0x18], 0x10
jb 0x40ca69
mov eax, dword [eax + 4]
jmp 0x40ca6c
add eax, 4
push str.BuildVersion:
lea ecx, [ebp + 0x134]
mov dword [ebp + 0x1c], eax
call fcn.0040299a
cmp dword [eax + 0x18], 0x10
jb 0x40ca8a
mov eax, dword [eax + 4]
jmp 0x40ca8d
add eax, 4
push str.CMainDlg::OnInitDialog
lea ecx, [ebp - 0x20]
mov dword [ebp + 0x20], eax
call fcn.0040299a
cmp dword [eax + 0x18], 0x10
jb 0x40caa8
mov eax, dword [eax + 4]
jmp 0x40caab
add eax, 4
push ebx
push dword [ebp + 0x24]
mov ecx, 0x42c468
push ecx
push dword [ebp + 0x34]
mov dword [ebp + 0x28], eax
mov eax, 0x42c6e4
push eax
push dword [esi + 0x50]
mov edx, 0x42c718
push edx
push dword [ebp + 0x38]
push eax
push dword [esi + 0x2c]
push edx
push dword [ebp + 0x18]
push eax
push dword [ebp + 0x1c]
push ecx
push dword [ebp + 0x20]
push eax
push dword [ebp + 0x28]
push ecx
push edi
push dword [0x4388d4]
call fcn.004139e0
add esp, 0x54
push ebx
push edi
lea ecx, [ebp - 0x20]
call fcn.00402285
push ebx
push edi
lea ecx, [ebp + 0x134]
call fcn.00402285
push ebx
push edi
lea ecx, [ebp + 0x150]
call fcn.00402285
push ebx
push edi
lea ecx, [ebp - 0x80]
call fcn.00402285
push ebx
push edi
lea ecx, [ebp - 0x64]
call fcn.00402285
push ebx
push edi
lea ecx, [ebp - 0x48]
call fcn.00402285
push ebx
push edi
lea ecx, [ebp - 4]
call fcn.00402285
push 0x42c5d4
lea ecx, [ebp + 0x150]
call fcn.0040299a
or dword [ebp + 0x3c], 6
push ebx
lea eax, [ebp + 0x150]
push eax
push str._ChainStartTime_
lea eax, [ebp + 0xfc]
push eax
lea eax, [ebp - 0x48]
push eax
call fcn.00402e85
mov ecx, dword [esi + 0x24]
add esp, 0xc
push eax
call fcn.004123b0
cmp dword [0x437198], eax
jne 0x40cbcb
push 0x42c5d4
lea ecx, [ebp + 0x134]
call fcn.0040299a
or dword [ebp + 0x3c], 0x18
push ebx
lea eax, [ebp + 0x134]
push eax
push str._ChainStartRandom_
lea eax, [ebp + 0xfc]
push eax
lea eax, [ebp - 4]
push eax
call fcn.00402e85
mov ecx, dword [esi + 0x24]
add esp, 0xc
push eax
call fcn.004123b0
cmp dword [0x43719c], eax
mov byte [ebp + 0x40], 1
je 0x40cbce
mov byte [ebp + 0x40], bl
test byte [ebp + 0x3c], 0x10
je 0x40cbe2
and dword [ebp + 0x3c], 0xffffffef
push ebx
push edi
lea ecx, [ebp - 4]
call fcn.00402285
test byte [ebp + 0x3c], 8
je 0x40cbf9
and dword [ebp + 0x3c], 0xfffffff7
push ebx
push edi
lea ecx, [ebp + 0x134]
call fcn.00402285
test byte [ebp + 0x3c], 4
je 0x40cc0d
and dword [ebp + 0x3c], 0xfffffffb
push ebx
push edi
lea ecx, [ebp - 0x48]
call fcn.00402285
test byte [ebp + 0x3c], 2
je 0x40cc20
push ebx
push edi
lea ecx, [ebp + 0x150]
call fcn.00402285
cmp byte [ebp + 0x40], bl
je 0x40cca0
lea eax, [esi + 0x28]
mov byte [esi + 0x191], 1
mov dword [ebp + 0x38], str._Server_
mov dword [ebp + 0x34], eax
push 0x42c5d4
lea ecx, [ebp + 0x134]
call fcn.0040299a
push ebx
lea eax, [ebp + 0x134]
push eax
push dword [ebp + 0x38]
lea eax, [ebp + 0xfc]
push eax
lea eax, [ebp - 4]
push eax
call fcn.00402e85
mov ecx, dword [esi + 0x24]
add esp, 0xc
push eax
call fcn.004123b0
mov ecx, dword [ebp + 0x34]
push ebx
mov dword [ecx], eax
push edi
lea ecx, [ebp - 4]
call fcn.00402285
push ebx
push edi
lea ecx, [ebp + 0x134]
call fcn.00402285
add dword [ebp + 0x38], 0x42f
add dword [ebp + 0x34], 4
cmp dword [ebp + 0x38], 0x437578
jl 0x40cc39
cmp byte [esi + 0x191], bl
je 0x40ccc2
push 4
call dword [sym.imp.USER32.dll_GetSystemMetrics]
add eax, 0x69
mov dword [ebp + 0x28], eax
mov dword [ebp + 0x38], 0xa
jmp 0x40cddb
push ebx
lea ecx, [ebp + 0x134]
mov dword [ebp + 0x14c], 0xf
call fcn.00402121
push ebx
lea ecx, [ebp + 0x150]
mov dword [ebp + 0x168], 0xf
call fcn.00402121
push ebx
push ebx
push ebx
lea eax, [ebp + 0x134]
push ebx
push eax
call fcn.00418fc0
lea eax, [ebp + 0x44]
push eax
call fcn.00407ced
add esp, 0x18
cmp dword [ebp + 0x48], 6
jb 0x40cdac
lea eax, [ebp + 0x150]
push eax
lea eax, [ebp - 4]
push eax
mov ecx, esi
call fcn.0040bc77
push eax
call fcn.004096b6
pop ecx
pop ecx
push ebx
push edi
lea ecx, [ebp - 4]
call fcn.00402285
push str.SmartDownload.exe
lea eax, [ebp + 0x150]
push eax
lea eax, [ebp - 4]
push eax
call fcn.00402e85
push eax
lea eax, [ebp + 0x134]
push eax
call fcn.004084f1
add esp, 0x14
push ebx
push edi
lea ecx, [ebp - 4]
mov byte [ebp + 0x30], al
call fcn.00402285
cmp byte [ebp + 0x30], bl
jne 0x40cd75
mov byte [esi + 0x193], bl
push str.SmartDownload.exe
lea eax, [ebp + 0x150]
push eax
lea eax, [ebp - 4]
push eax
call fcn.00402e85
add esp, 0xc
cmp dword [eax + 0x18], 0x10
jb 0x40cd98
mov eax, dword [eax + 4]
jmp 0x40cd9b
add eax, 4
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
push ebx
push edi
lea ecx, [ebp - 4]
call fcn.00402285
push 4
call dword [sym.imp.USER32.dll_GetSystemMetrics]
mov ecx, 0x180
add eax, ecx
push ebx
mov dword [ebp + 0x38], ecx
push edi
lea ecx, [ebp + 0x150]
mov dword [ebp + 0x28], eax
call fcn.00402285
push ebx
push edi
lea ecx, [ebp + 0x134]
call fcn.00402285
mov eax, dword [ebp + 0x2c]
push 0x1e
push dword [ebp + 0x28]
push 0x201
push ebx
push ebx
push ebx
push dword [eax]
call dword [sym.imp.USER32.dll_SetWindowPos]
mov dword [ebp - 0x2c], 0x3e8
mov dword [ebp - 0x28], 0x3ea
mov dword [ebp - 0x24], 0x3e9
mov dword [ebp + 0x3c], ebx
mov eax, dword [ebp + 0x3c]
push dword [ebp + eax*4 - 0x2c]
mov eax, dword [ebp + 0x2c]
push dword [eax]
call dword [sym.imp.USER32.dll_GetDlgItem]
lea ecx, [ebp + 0x15c]
push ecx
push eax
mov dword [ebp + 0x28], eax
call dword [sym.imp.USER32.dll_GetClientRect]
mov eax, dword [ebp + 0x15c]
sub eax, dword [ebp + 0x164]
push 0x1d
push ebx
add eax, 0x201
push ebx
push dword [ebp + 0x38]
cdq
sub eax, edx
sar eax, 1
push eax
push ebx
push dword [ebp + 0x28]
call dword [sym.imp.USER32.dll_SetWindowPos]
mov eax, dword [ebp + 0x168]
sub eax, dword [ebp + 0x160]
mov ecx, dword [ebp + 0x38]
inc dword [ebp + 0x3c]
cmp dword [ebp + 0x3c], 3
lea eax, [ecx + eax + 5]
mov dword [ebp + 0x38], eax
jb 0x40ce0b
mov ecx, dword [ebp + 0x2c]
push ebx
call fcn.0040a7d4
cmp byte [esi + 0x191], bl
mov eax, str._Update
jne 0x40ce90
mov eax, str._Installation
push eax
lea eax, [ebp - 0x48]
push eax
mov ecx, esi
call fcn.0040bc77
push eax
lea eax, [ebp - 4]
push eax
call fcn.00402e85
add esp, 0xc
cmp dword [eax + 0x18], 0x10
jb 0x40ceb4
mov eax, dword [eax + 4]
jmp 0x40ceb7
add eax, 4
push eax
mov eax, dword [ebp + 0x2c]
push dword [eax]
call dword [sym.imp.USER32.dll_SetWindowTextA]
push ebx
push edi
lea ecx, [ebp - 4]
call fcn.00402285
push ebx
push edi
lea ecx, [ebp - 0x48]
call fcn.00402285
cmp byte [esi + 0x191], bl
jne 0x40cefb
cmp byte [esi + 0x190], bl
jne 0x40cf03
push ebx
push ebx
push 0x8003
mov eax, dword [ebp + 0x2c]
push dword [eax]
call dword [sym.imp.USER32.dll_PostMessageA]
jmp 0x40cf13
cmp byte [esi + 0x190], bl
je 0x40cf0c
push ebx
push ebx
push 0x8002
jmp 0x40ceee
mov ecx, esi
call fcn.0040c027
push ebx
push edi
lea ecx, [ebp + 0xfc]
call fcn.00402285
push ebx
push edi
lea ecx, [ebp + 0xe0]
call fcn.00402285
push ebx
push edi
lea ecx, [ebp + 0x118]
call fcn.00402285
mov eax, edi
mov ecx, dword [ebp + 0x36c]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0041c2f6
add ebp, 0x370
leave
ret 0x10