Function at 0x40c396
Capabilities:
Create process on windows
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x490
push ebx
push esi
push edi
mov dword [ebp - 0x24], ecx
call fcn.0040c1f3
test eax, eax
je 0x40c5e4
push dword [ebp + 8]
mov ecx, dword [ebp - 0x24]
call fcn.0040c1d1
test eax, eax
je 0x40c5e4
lea ecx, [ebp - 0x14]
call fcn.004035b4
lea ecx, [ebp - 0x20]
call fcn.004035b4
mov edx, 0x81
xor esi, esi
mov ecx, edx
xor eax, eax
lea edi, [ebp - 0x48e]
mov word [ebp - 0x490], si
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
mov ecx, edx
xor eax, eax
lea edi, [ebp - 0x286]
mov word [ebp - 0x288], si
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
mov eax, 0x104
mov edi, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov dword [ebp - 0x28], eax
mov dword [ebp - 0x2c], eax
lea eax, [ebp - 8]
mov ebx, 0x80000002
push eax
push 1
push esi
push str.SOFTWAREFeiTianInterPass3000_HXB
push ebx
call edi
test eax, eax
jne 0x40c473
lea eax, [ebp - 0x2c]
push eax
lea eax, [ebp - 0x288]
push eax
push esi
push esi
push str.http_Address
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x40c473
lea eax, [ebp - 0x288]
push eax
call dword [sym.imp.MSVCRT.dll_wcslen]
pop ecx
lea eax, [ebp + eax*2 - 0x288]
push eax
lea eax, [ebp - 0x288]
push eax
lea ecx, [ebp - 0x20]
call fcn.00403495
mov eax, dword [ebp - 0x20]
push dword [ebp - 8]
cmp eax, dword [ebp - 0x1c]
jne 0x40c486
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x40c4f9
mov esi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
call esi
lea eax, [ebp - 8]
push eax
push 1
push 0
push str.SoftwareMicrosoftWindowsCurrentVersion
push ebx
call edi
test eax, eax
jne 0x40c4ea
lea eax, [ebp - 0x28]
xor edi, edi
push eax
lea eax, [ebp - 0x490]
push eax
push edi
push edi
push str.ProgramFilesDir
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x40c4ec
lea eax, [ebp - 0x490]
push eax
call dword [sym.imp.MSVCRT.dll_wcslen]
pop ecx
lea eax, [ebp + eax*2 - 0x490]
push eax
lea eax, [ebp - 0x490]
push eax
lea ecx, [ebp - 0x14]
call fcn.00403495
jmp 0x40c4ec
xor edi, edi
mov eax, dword [ebp - 0x14]
push dword [ebp - 8]
cmp eax, dword [ebp - 0x10]
jne 0x40c50e
call esi
lea ecx, [ebp - 0x20]
call fcn.00403592
lea ecx, [ebp - 0x14]
call fcn.00403592
jmp 0x40c5e4
call esi
push 0x44
lea eax, [ebp - 0x80]
pop esi
push esi
push edi
push eax
call sub.MSVCRT.dll_memset
push 0x10
lea eax, [ebp - 0x3c]
push edi
push eax
mov dword [ebp - 0x80], esi
call sub.MSVCRT.dll_memset
mov esi, str.Internet_ExplorerIEXPLORE.EXE
push esi
call dword [sym.imp.MSVCRT.dll_wcslen]
add esp, 0x1c
lea ecx, [ebp - 1]
lea eax, [eax*2 + str.Internet_ExplorerIEXPLORE.EXE]
push ecx
push eax
push esi
lea ecx, [ebp - 0x14]
call fcn.00403d63
lea eax, [ebp - 0x14]
mov esi, 0x41f6d8
push eax
push esi
call fcn.00403d2d
pop ecx
test al, al
pop ecx
jne 0x40c5ce
lea eax, [ebp - 0x20]
push eax
push esi
call fcn.00403d2d
pop ecx
test al, al
pop ecx
jne 0x40c5ce
mov al, byte [ebp + 0xb]
lea ecx, [ebp - 0x14]
mov byte [ebp - 1], al
lea eax, [ebp - 1]
push eax
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
call fcn.00401d4c
lea eax, [ebp - 0x3c]
push eax
lea eax, [ebp - 0x80]
push eax
push edi
push edi
push edi
push edi
push edi
push edi
push dword [ebp - 0x14]
push edi
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
je 0x40c5ce
mov eax, dword [ebp - 0x24]
mov ecx, dword [eax + 0x3c]
mov eax, dword [ecx]
cmp eax, ecx
je 0x40c5ce
mov edx, dword [ebp + 8]
cmp dword [eax + 8], edx
je 0x40c5c2
mov eax, dword [eax]
jmp 0x40c5b2
mov ecx, dword [ebp - 0x3c]
mov dword [eax + 0x38], ecx
mov ecx, dword [ebp - 0x30]
mov dword [eax + 0x3c], ecx
lea ecx, [ebp - 0x20]
call fcn.00403592
cmp dword [ebp - 0x14], edi
je 0x40c5e4
push dword [ebp - 0x14]
call sub.MFC42u.DLL_operatordelete
pop ecx
pop edi
pop esi
pop ebx
leave
ret 4