Function at 0x40b8c0
Capabilities:
Check if file exists
Create process on windows
Get file attributes
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x4346a8
mov eax, dword fs:[0]
push eax
sub esp, 0x78
push ebx
push esi
push edi
mov eax, dword [0x443d44]
xor eax, esp
push eax
lea eax, [esp + 0x88]
mov dword fs:[0], eax
mov edi, dword [ebp + 0x10]
xor esi, esi
push esi
push 0x43ad34
mov ecx, edi
call fcn.004024e0
push str.C:Program_FilesInternet_Exploreriexplore.exe
lea ecx, [esp + 0x1c]
call fcn.004023a0
xor eax, eax
mov dword [esp + 0x90], esi
push 0x44
mov dword [esp + 0x34], eax
mov dword [esp + 0x38], eax
mov dword [esp + 0x3c], eax
lea eax, [esp + 0x40]
push esi
push eax
mov dword [esp + 0x38], esi
call fcn.00420c40
add esp, 0xc
lea ecx, [esp + 0x20]
push ecx
push 0xf003f
push esi
push str.http_shellopencommand
mov ebx, 1
push SysReAllocString
mov dword [esp + 0x50], 0x44
mov dword [esp + 0x38], ebx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
cmp eax, esi
jne 0x40bcf8
mov ecx, dword [esp + 0x20]
mov edi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
lea edx, [esp + 0x1c]
push edx
push esi
lea eax, [esp + 0x2c]
push eax
push esi
push esi
push ecx
call edi
mov edx, dword [esp + 0x1c]
push edx
call fcn.0040ca83
mov esi, eax
mov eax, dword [esp + 0x20]
push eax
push 0
push esi
call fcn.00420c40
mov eax, dword [esp + 0x30]
add esp, 0x10
lea ecx, [esp + 0x1c]
push ecx
push esi
lea edx, [esp + 0x2c]
push edx
push 0
push 0
push eax
call edi
push esi
lea ecx, [esp + 0x18]
call fcn.004023a0
push esi
mov byte [esp + 0x94], bl
call fcn.0040ca7e
mov ecx, dword [esp + 0x24]
add esp, 4
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov edx, dword [esp + 0x14]
mov eax, dword [edx - 0xc]
add eax, 0xffffffff
push eax
lea eax, [esp + 0x2c]
push eax
lea ecx, [esp + 0x1c]
call fcn.00403b00
push eax
lea ecx, [esp + 0x18]
mov byte [esp + 0x94], 2
call fcn.004026b0
mov byte [esp + 0x90], bl
mov eax, dword [esp + 0x28]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40ba2f
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esp + 0x14]
cmp dword [eax - 0xc], 0
jge 0x40ba3e
or eax, 0xffffffff
jmp 0x40ba59
push 0x43bb74
push eax
call fcn.0041ef6b
add esp, 8
test eax, eax
jne 0x40ba55
or eax, 0xffffffff
jmp 0x40ba59
sub eax, dword [esp + 0x14]
push eax
lea ecx, [esp + 0x2c]
push ecx
lea ecx, [esp + 0x1c]
call fcn.00401c20
push eax
lea ecx, [esp + 0x18]
mov byte [esp + 0x94], 3
call fcn.004026b0
mov byte [esp + 0x90], bl
mov eax, dword [esp + 0x28]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x40baa1
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esp + 0x14]
cmp dword [eax - 0xc], 0
mov esi, dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
jle 0x40bc4d
push eax
call esi
cmp eax, 0xffffffff
je 0x40bc4d
mov ecx, dword [esp + 0x18]
mov edx, dword [esp + 0x14]
push ecx
push edx
call fcn.0041ee19
add esp, 8
test eax, eax
je 0x40bc4d
mov eax, dword [esp + 0x14]
mov esi, dword [eax - 0xc]
push 0x5c
push eax
call fcn.0041f9d3
add esp, 8
test eax, eax
jne 0x40baf6
or eax, 0xffffffff
jmp 0x40bafa
sub eax, dword [esp + 0x14]
sub esi, eax
sub esi, ebx
push esi
lea eax, [esp + 0x2c]
push eax
lea ecx, [esp + 0x1c]
call fcn.00403b00
push 0x43bb78
lea ecx, [esp + 0x18]
mov byte [esp + 0x94], 4
call fcn.0040bfb0
mov esi, dword [ebp + 8]
push esi
lea ecx, [esp + 0x18]
call fcn.0040bfb0
lea edi, [esp + 0x14]
call fcn.0040c010
cmp dword [ebp + 0x14], 0
je 0x40bbec
mov ecx, dword [esp + 0x14]
cmp dword [ecx - 0xc], 0
jl 0x40bb91
push str.360se
push ecx
call fcn.0041ef6b
mov ecx, dword [esp + 0x1c]
add esp, 8
test eax, eax
je 0x40bb6e
sub eax, ecx
cmp eax, 0xffffffff
jne 0x40bbf0
cmp dword [ecx - 0xc], 0
jl 0x40bb91
push str.sogouexplorer
push ecx
call fcn.0041ef6b
add esp, 8
test eax, eax
je 0x40bb91
mov ecx, dword [esp + 0x14]
sub eax, ecx
cmp eax, 0xffffffff
jne 0x40bbf0
mov eax, dword [esp + 0x18]
call fcn.0040bde0
test eax, eax
je 0x40bbec
push 0x43bb78
lea ecx, [esp + 0x1c]
call fcn.0040bfb0
push esi
lea ecx, [esp + 0x1c]
call fcn.0040bfb0
mov eax, dword [esp + 0x18]
lea ecx, [esp + 0x2c]
push ecx
lea edx, [esp + 0x40]
push edx
push 0
push 0
push 0
push 0
push 0
push 0
push eax
push 0
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
test eax, eax
je 0x40bc20
mov ecx, dword [ebp + 0x10]
push str.iexplore.exe
call fcn.00402460
jmp 0x40bc20
mov ecx, dword [esp + 0x14]
lea edx, [esp + 0x2c]
push edx
lea eax, [esp + 0x40]
push eax
push 0
push 0
push 0
push 0
push 0
push 0
push ecx
push 0
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
test eax, eax
je 0x40bc20
lea ecx, [esp + 0x28]
push ecx
mov ecx, dword [ebp + 0x10]
call fcn.004026b0
mov byte [esp + 0x90], bl
mov eax, dword [esp + 0x28]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x40bcca
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
jmp 0x40bcca
mov ecx, dword [esp + 0x18]
push ecx
call esi
cmp eax, 0xffffffff
je 0x40bcca
push 2
push 0x43bb78
lea ecx, [esp + 0x20]
call fcn.0040c0b0
mov esi, dword [ebp + 8]
test esi, esi
jne 0x40bc74
xor eax, eax
jmp 0x40bc8b
mov eax, esi
lea edx, [eax + 1]
lea esp, [esp]
mov cl, byte [eax]
add eax, 1
test cl, cl
jne 0x40bc80
sub eax, edx
push eax
push esi
lea ecx, [esp + 0x20]
call fcn.0040c0b0
mov ecx, dword [esp + 0x18]
lea edx, [esp + 0x2c]
push edx
lea eax, [esp + 0x40]
push eax
push 0
push 0
push 0
push 0
push 0
push 0
push ecx
push 0
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
test eax, eax
je 0x40bcca
mov ecx, dword [ebp + 0x10]
push str.iexplore.exe
call fcn.00402460
mov byte [esp + 0x90], 0
mov eax, dword [esp + 0x14]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x40bd71
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
jmp 0x40bd71
mov ecx, dword [esp + 0x18]
push ecx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x40bd71
push 2
push 0x43bb78
lea ecx, [esp + 0x20]
call fcn.0040c0b0
mov esi, dword [ebp + 8]
test esi, esi
jne 0x40bd23
xor eax, eax
jmp 0x40bd33
mov eax, esi
lea edx, [eax + 1]
mov cl, byte [eax]
add eax, 1
test cl, cl
jne 0x40bd28
sub eax, edx
push eax
push esi
lea ecx, [esp + 0x20]
call fcn.0040c0b0
mov ecx, dword [esp + 0x18]
lea edx, [esp + 0x2c]
push edx
lea eax, [esp + 0x40]
push eax
push 0
push 0
push 0
push 0
push 0
push 0
push ecx
push 0
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
test eax, eax
je 0x40bd71
push str.iexplore.exe
mov ecx, edi
call fcn.00402460
mov eax, dword [esp + 0x30]
test eax, eax
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
je 0x40bd82
push eax
call esi
mov eax, dword [esp + 0x2c]
test eax, eax
je 0x40bd96
mov edx, dword [esp + 0x34]
mov ecx, dword [ebp + 0xc]
push eax
mov dword [ecx], edx
call esi
mov dword [esp + 0x90], 0xffffffff
mov eax, dword [esp + 0x18]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x40bdc1
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [esp + 0x88]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret