Function at 0x40bc21
Capabilities:
Create process on windows
Create thread

Disassembly:
push ebp
sub esp, 0x5c
push 0x108
mov eax, 0x4299a6
call fcn.00419251
mov dword [ebp + 0x48], ecx
xor esi, esi
mov dword [ebp - 4], esi
lea eax, [ebp + 0x28]
push eax
call dword [sym.imp.OLEAUT32.dll_VariantClear]
mov byte [ebp - 4], 1
lea eax, [ebp + 0x28]
push eax
call dword [sym.imp.OLEAUT32.dll_VariantCopy]
push esi
push esi
lea eax, [ebp + 0x28]
push eax
push eax
call dword [sym.imp.OLEAUT32.dll_VariantTimeToDosDateTime]
mov byte [ebp - 4], 2
push str.setRegistry
push dword [ebp + 0x68]
call fcn.004163bb
pop ecx
pop ecx
mov edi, dword [ebp + 0x6c]
test eax, eax
jne 0x40bde6
cmp dword [edi + 8], 4
jne 0x40bde6
mov eax, dword [edi]
cmp word [eax], 8
jne 0x40bde6
cmp word [eax + 0x10], 8
jne 0x40bde6
cmp word [eax + 0x20], 8
jne 0x40bde6
cmp word [eax + 0x30], 3
jne 0x40bde6
push dword [eax + 0x28]
lea eax, [ebp - 0x114]
call fcn.0041177d
mov byte [ebp - 4], 3
mov ebx, dword [eax]
lea esi, [ebp + 0x50]
call fcn.00413895
mov byte [ebp - 4], 5
lea eax, [ebp - 0x110]
cmp dword [ebp - 0x114], eax
je 0x40bcf0
push dword [ebp - 0x114]
call fcn.00415e8a
pop ecx
mov eax, dword [edi]
push dword [eax + 0x18]
lea eax, [ebp - 0x114]
call fcn.0041177d
mov byte [ebp - 4], 6
mov ebx, dword [eax]
lea esi, [ebp + 0x4c]
call fcn.00413895
mov byte [ebp - 4], 8
lea eax, [ebp - 0x110]
cmp dword [ebp - 0x114], eax
je 0x40bd2c
push dword [ebp - 0x114]
call fcn.00415e8a
pop ecx
mov eax, dword [edi]
push dword [eax + 8]
lea eax, [ebp - 0x114]
call fcn.0041177d
mov byte [ebp - 4], 9
mov ebx, dword [eax]
lea esi, [ebp + 0x54]
call fcn.00413895
mov byte [ebp - 4], 0xb
lea eax, [ebp - 0x110]
cmp dword [ebp - 0x114], eax
je 0x40bd68
push dword [ebp - 0x114]
call fcn.00415e8a
pop ecx
mov eax, SysReAllocString
mov ecx, dword [edi]
cmp dword [ecx + 0x38], 1
jne 0x40bd76
inc eax
xor ebx, ebx
mov dword [ebp + 0x58], ebx
mov dword [ebp + 0x5c], ebx
mov byte [ebp - 4], 0xc
push dword [ebp + 0x50]
push eax
lea eax, [ebp + 0x58]
call fcn.00409291
cmp dword [ebp + 0x58], ebx
je 0x40bdaa
push dword [ebp + 0x54]
push dword [ebp + 0x4c]
lea eax, [ebp + 0x58]
push eax
call fcn.00409377
lea esi, [ebp + 0x58]
call fcn.00409a51
mov byte [ebp - 4], 0xb
cmp dword [ebp + 0x58], ebx
je 0x40bdbf
push dword [ebp + 0x58]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [ebp + 0x58], ebx
mov dword [ebp + 0x5c], ebx
mov byte [ebp - 4], 8
lea esi, [ebp + 0x54]
call fcn.004135bd
mov byte [ebp - 4], 5
lea esi, [ebp + 0x4c]
call fcn.004135bd
mov byte [ebp - 4], 2
lea esi, [ebp + 0x50]
call fcn.004135bd
push str.getRegistry
push dword [ebp + 0x68]
call fcn.004163bb
pop ecx
pop ecx
test eax, eax
jne 0x40bf8b
cmp dword [edi + 8], 3
jne 0x40bf8b
mov eax, dword [edi]
cmp word [eax], 8
jne 0x40bf8b
cmp word [eax + 0x10], 8
jne 0x40bf8b
cmp word [eax + 0x20], 3
jne 0x40bf8b
push dword [eax + 0x18]
lea eax, [ebp - 0x114]
call fcn.0041177d
mov byte [ebp - 4], 0xd
mov ebx, dword [eax]
lea esi, [ebp + 0x5c]
call fcn.00413895
mov byte [ebp - 4], 0xf
lea eax, [ebp - 0x110]
cmp dword [ebp - 0x114], eax
je 0x40be63
push dword [ebp - 0x114]
call fcn.00415e8a
pop ecx
mov eax, dword [edi]
push dword [eax + 8]
lea eax, [ebp - 0x114]
call fcn.0041177d
mov byte [ebp - 4], 0x10
mov ebx, dword [eax]
lea esi, [ebp + 0x54]
call fcn.00413895
mov byte [ebp - 4], 0x12
lea eax, [ebp - 0x110]
cmp dword [ebp - 0x114], eax
je 0x40be9f
push dword [ebp - 0x114]
call fcn.00415e8a
pop ecx
mov eax, SysReAllocString
mov ecx, dword [edi]
cmp dword [ecx + 0x28], 1
jne 0x40bead
inc eax
mov ecx, dword [0x436070]
mov dword [ebp + 0x4c], ecx
mov byte [ebp - 4], 0x13
xor esi, esi
mov dword [ebp + 0x40], esi
mov dword [ebp + 0x44], esi
mov byte [ebp - 4], 0x14
push dword [ebp + 0x5c]
push eax
lea eax, [ebp + 0x40]
call fcn.00409291
cmp dword [ebp + 0x40], esi
je 0x40bf4f
mov eax, 0x200
mov dword [ebp + 0x24], eax
push eax
lea ebx, [ebp + 0x4c]
call fcn.0041365a
push dword [ebp + 0x54]
lea ecx, [ebp + 0x40]
push ecx
lea esi, [ebp + 0x24]
mov edi, eax
call fcn.00411715
mov eax, ebx
call fcn.004136fd
lea esi, [ebp + 0x40]
call fcn.00409a51
and dword [ebp + 0x50], 0
mov byte [ebp - 4], 0x15
push dword [ebp + 0x4c]
lea esi, [ebp + 0x50]
call fcn.004074b4
mov esi, dword [ebp + 0x50]
test esi, esi
jne 0x40bf26
xor eax, eax
jmp 0x40bf35
push esi
call dword [sym.imp.OLEAUT32.dll_SysAllocStringByteLen]
push eax
push esi
call dword [sym.imp.OLEAUT32.dll_DllRegisterServer]
mov dword [ebp + 0x30], eax
push 8
pop eax
mov word [ebp + 0x28], ax
mov byte [ebp - 4], 0x14
push esi
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
xor esi, esi
mov edi, dword [ebp + 0x6c]
mov byte [ebp - 4], 0x13
cmp dword [ebp + 0x40], esi
je 0x40bf64
push dword [ebp + 0x40]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [ebp + 0x40], esi
mov dword [ebp + 0x44], esi
mov byte [ebp - 4], 0x12
lea esi, [ebp + 0x4c]
call fcn.004135bd
mov byte [ebp - 4], 0xf
lea esi, [ebp + 0x54]
call fcn.004135bd
mov byte [ebp - 4], 2
lea esi, [ebp + 0x5c]
call fcn.004135bd
push str.close
push dword [ebp + 0x68]
call fcn.004163bb
pop ecx
pop ecx
test eax, eax
jne 0x40bfa5
push eax
call dword [sym.imp.USER32.dll_PostQuitMessage]
push str.execute
push dword [ebp + 0x68]
call fcn.004163bb
pop ecx
pop ecx
test eax, eax
jne 0x40c082
cmp dword [edi + 8], 2
jne 0x40c082
mov eax, dword [edi]
cmp word [eax], 8
jne 0x40c082
cmp word [eax + 0x10], 8
jne 0x40c082
push dword [eax + 0x18]
lea eax, [ebp - 0x114]
call fcn.0041177d
mov byte [ebp - 4], 0x16
mov ebx, dword [eax]
lea esi, [ebp + 0x5c]
call fcn.00413895
mov byte [ebp - 4], 0x18
lea eax, [ebp - 0x110]
cmp dword [ebp - 0x114], eax
je 0x40c017
push dword [ebp - 0x114]
call fcn.00415e8a
pop ecx
mov eax, dword [edi]
push dword [eax + 8]
lea eax, [ebp - 0x114]
call fcn.0041177d
mov byte [ebp - 4], 0x19
mov ebx, dword [eax]
lea esi, [ebp + 0x6c]
call fcn.00413895
mov byte [ebp - 4], 0x1b
lea eax, [ebp - 0x110]
cmp dword [ebp - 0x114], eax
je 0x40c053
push dword [ebp - 0x114]
call fcn.00415e8a
pop ecx
xor eax, eax
push eax
push eax
push dword [ebp + 0x6c]
push dword [ebp + 0x5c]
push eax
mov eax, dword [ebp + 0x48]
push dword [eax - 0x20]
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
mov byte [ebp - 4], 0x18
lea esi, [ebp + 0x6c]
call fcn.004135bd
mov byte [ebp - 4], 2
lea esi, [ebp + 0x5c]
call fcn.004135bd
push str.killProcess
push dword [ebp + 0x68]
call fcn.004163bb
pop ecx
pop ecx
test eax, eax
jne 0x40c10c
cmp dword [edi + 8], 1
jb 0x40c10c
mov eax, dword [edi]
cmp word [eax], 8
jne 0x40c10c
lea esi, [ebp]
call fcn.0040aa2a
mov byte [ebp - 4], 0x1c
mov eax, dword [edi]
push dword [eax + 8]
lea eax, [ebp - 0x114]
call fcn.0041177d
mov byte [ebp - 4], 0x1d
push dword [eax]
mov eax, esi
call fcn.0040aaf5
mov byte [ebp - 4], 0x1c
lea eax, [ebp - 0x110]
cmp dword [ebp - 0x114], eax
je 0x40c0ea
push dword [ebp - 0x114]
call fcn.00415e8a
pop ecx
mov byte [ebp - 4], 2
cmp dword [ebp + 4], 0
je 0x40c0fd
push dword [ebp + 4]
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
cmp dword [ebp], 0
je 0x40c10c
push dword [ebp]
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
push str.readFile
push dword [ebp + 0x68]
call fcn.004163bb
pop ecx
pop ecx
test eax, eax
jne 0x40c214
cmp dword [edi + 8], 1
jb 0x40c214
and dword [ebp + 0x54], eax
mov byte [ebp - 4], 0x1e
push dword [edi]
lea esi, [ebp + 0x38]
call fcn.004117c1
mov byte [ebp - 4], 0x1f
cmp word [ebp + 0x38], 8
jne 0x40c154
push dword [ebp + 0x40]
lea esi, [ebp + 0x54]
call fcn.004074b4
mov ebx, str.null
lea esi, [ebp + 0x6c]
call fcn.00413895
mov byte [ebp - 4], 0x20
mov ebx, dword [ebp + 0x54]
lea esi, [ebp + 0x5c]
call fcn.00413895
mov byte [ebp - 4], 0x21
push ecx
mov dword [ebp + 0x48], esp
mov ecx, esi
mov esi, esp
call fcn.0041354d
mov byte [ebp - 4], 0x22
mov byte [ebp - 4], 0x21
call fcn.0040b650
pop ecx
mov esi, eax
push esi
lea eax, [ebp + 0x6c]
push eax
call fcn.00413631
push esi
call fcn.0041430e
mov dword [esp], str.null
push dword [ebp + 0x6c]
call fcn.00417790
pop ecx
pop ecx
test eax, eax
je 0x40c1e1
push 8
pop eax
mov word [ebp + 0x28], ax
push dword [ebp + 0x6c]
lea esi, [ebp + 0x48]
call fcn.00407b9f
mov byte [ebp - 4], 0x23
mov ecx, dword [eax]
and dword [eax], 0
mov dword [ebp + 0x30], ecx
mov byte [ebp - 4], 0x21
push dword [ebp + 0x48]
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
mov byte [ebp - 4], 0x20
lea esi, [ebp + 0x5c]
call fcn.004135bd
mov byte [ebp - 4], 0x1f
lea esi, [ebp + 0x6c]
call fcn.004135bd
mov byte [ebp - 4], 0x1e
lea eax, [ebp + 0x38]
push eax
call dword [sym.imp.OLEAUT32.dll_VariantCopy]
mov byte [ebp - 4], 2
push dword [ebp + 0x54]
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
push str.download
push dword [ebp + 0x68]
call fcn.004163bb
pop ecx
pop ecx
test eax, eax
jne 0x40c375
cmp dword [edi + 8], 3
jne 0x40c375
mov eax, dword [edi]
cmp word [eax], 9
jne 0x40c375
cmp word [eax + 0x10], 8
jne 0x40c375
cmp word [eax + 0x20], 8
jne 0x40c375
push dword [eax + 0x28]
lea eax, [ebp - 0x114]
call fcn.0041177d
mov byte [ebp - 4], 0x24
mov ebx, dword [eax]
lea esi, [ebp + 0x50]
call fcn.00413895
mov byte [ebp - 4], 0x26
lea eax, [ebp - 0x110]
cmp dword [ebp - 0x114], eax
je 0x40c291
push dword [ebp - 0x114]
call fcn.00415e8a
pop ecx
mov eax, dword [edi]
push dword [eax + 0x18]
lea eax, [ebp - 0x114]
call fcn.0041177d
mov byte [ebp - 4], 0x27
mov ebx, dword [eax]
lea esi, [ebp + 0x5c]
call fcn.00413895
mov byte [ebp - 4], 0x29
lea eax, [ebp - 0x110]
cmp dword [ebp - 0x114], eax
je 0x40c2cd
push dword [ebp - 0x114]
call fcn.00415e8a
pop ecx
mov eax, dword [edi]
mov eax, dword [eax + 8]
mov dword [ebp + 0x6c], eax
xor ebx, ebx
cmp eax, ebx
je 0x40c2e1
mov ecx, dword [eax]
push eax
call dword [ecx + 4]
mov byte [ebp - 4], 0x2a
mov byte [ebp - 4], 0x2b
push 0xc
call fcn.0041600f
pop ecx
mov esi, eax
cmp esi, ebx
je 0x40c300
xor eax, eax
mov edi, esi
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
jmp 0x40c302
xor esi, esi
push dword [ebp + 0x5c]
mov edi, dword [sym.imp.SHLWAPI.dll_StrDupW]
call edi
mov dword [esi + 4], eax
push dword [ebp + 0x50]
call edi
mov dword [esi], eax
lea eax, [esi + 8]
push eax
push dword [ebp + 0x6c]
push 0x42c0f4
call dword [sym.imp.ole32.dll_CoMarshalInterThreadInterfaceInStream]
cmp eax, ebx
jl 0x40c349
lea eax, [ebp + 0x48]
push eax
push ebx
push esi
push 0x40b850
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_CreateThread]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x40c350
push esi
call fcn.0041430e
pop ecx
mov byte [ebp - 4], 0x29
lea eax, [ebp + 0x6c]
push eax
call fcn.0040693e
mov byte [ebp - 4], 0x26
lea esi, [ebp + 0x5c]
call fcn.004135bd
mov byte [ebp - 4], 2
lea esi, [ebp + 0x50]
call fcn.004135bd
mov dword [ebp - 4], 1
xor edi, edi
cmp word [ebp + 0x28], di
je 0x40c3d9
push 0x10
call fcn.0041600f
pop ecx
mov ecx, eax
test ecx, ecx
je 0x40c3ab
xor eax, eax
mov edi, ecx
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
mov edi, ecx
jmp 0x40c3ad
xor edi, edi
test edi, edi
je 0x40c3d9
push edi
call dword [sym.imp.OLEAUT32.dll_VariantCopy]
test eax, eax
jl 0x40c3d9
push 0x10
lea eax, [ebp + 0x28]
push eax
push 0x10
push edi
call fcn.004143aa
push eax
call fcn.004097bb
add esp, 0x14
xor eax, eax
mov word [ebp + 0x28], ax
mov byte [ebp - 4], 0
lea eax, [ebp + 0x28]
push eax
call dword [sym.imp.OLEAUT32.dll_VariantCopy]
or dword [ebp - 4], 0xffffffff
lea esi, [ebp + 0x68]
call fcn.004135bd
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
add ebp, 0x60
leave
ret 8