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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x57c74e
mov eax, dword fs:[0]
push eax
mov eax, 0x131c
call fcn.00529dc0
mov eax, dword [0x61b660]
xor eax, ebp
mov dword [ebp - 0x10], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x1304], ecx
mov eax, dword [ebp + 8]
push eax
lea ecx, [ebp - 0x290]
call fcn.00405860
mov dword [ebp - 4], 0
xor ecx, ecx
cmp dword [ebp - 0x280], 0
sete cl
movzx edx, cl
test edx, edx
je 0x40cf90
mov dword [ebp - 4], 1
push 0
push 1
lea ecx, [ebp - 0x290]
call fcn.00406060
mov dword [ebp - 4], 0xffffffff
jmp 0x40d59c
push 0
push 0
push 0x435
mov eax, dword [0x62cb28]
push eax
call dword [sym.imp.USER32.dll_SendMessageA]
mov dword [ebp - 0x29c], 0x100
mov dword [ebp - 0x298], 0x100
lea ecx, [ebp - 0x12bd]
mov dword [ebp - 0x12bc], ecx
lea edx, [ebp - 0x170]
mov dword [ebp - 0x1308], edx
mov byte [ebp - 4], 2
push 0
push 0
lea ecx, [ebp - 0x170]
call fcn.00406060
mov byte [ebp - 4], 3
xor eax, eax
cmp dword [0x62cb4c], 0
sete al
movzx ecx, al
test ecx, ecx
jne 0x40d1c6
mov edx, dword [0x5a6ffc]
push edx
push 0
push 0x62cb3c
lea ecx, [ebp - 0x170]
call fcn.00405c70
lea ecx, [ebp - 0x170]
call fcn.00406100
mov dword [ebp - 0x12c4], eax
push 0x5bf924
mov eax, dword [ebp - 0x12c4]
push eax
call dword [sym.imp.SHLWAPI.dll_StrStrIA]
test eax, eax
je 0x40d133
mov byte [ebp - 0xa9c], 0
push 0x7ff
push 0
lea ecx, [ebp - 0xa9b]
push ecx
call fcn.00529d40
add esp, 0xc
mov edx, dword [ebp - 0x160]
mov dword [ebp - 0x12c8], edx
mov eax, dword [ebp - 0x12c8]
push eax
lea ecx, [ebp - 0x170]
call fcn.00406100
push eax
lea ecx, [ebp - 0xa9c]
push ecx
call fcn.00529940
add esp, 0xc
push 0
lea ecx, [ebp - 0x290]
call fcn.00406100
push eax
push 0x5bf924
lea edx, [ebp - 0xa9c]
push edx
mov ecx, dword [ebp - 0x1304]
call fcn.00421080
lea eax, [ebp - 0xa9c]
push eax
call fcn.005291f0
add esp, 4
mov dword [ebp - 0x12cc], eax
mov ecx, dword [ebp - 0x12cc]
push ecx
lea edx, [ebp - 0xa9c]
push edx
lea ecx, [ebp - 0x170]
call fcn.004064c0
push 1
lea ecx, [ebp - 0x170]
call fcn.00406100
push eax
call dword [sym.imp.KERNEL32.dll_WinExec]
mov byte [ebp - 4], 4
push 0
push 1
lea ecx, [ebp - 0x170]
call fcn.00406060
mov byte [ebp - 4], 0
mov dword [ebp - 4], 5
push 0
push 1
lea ecx, [ebp - 0x290]
call fcn.00406060
mov dword [ebp - 4], 0xffffffff
jmp 0x40d59c
mov ecx, 0x62cb3c
call fcn.00406100
mov dword [ebp - 0x12d0], eax
push 0
mov eax, dword [ebp - 0x12d0]
push eax
call fcn.00529925
add esp, 8
cmp eax, 0xffffffff
je 0x40d1c6
lea ecx, [ebp - 0x290]
call fcn.00406100
mov dword [ebp - 0x12d4], eax
push 1
push 0
mov ecx, dword [ebp - 0x12d4]
push ecx
mov ecx, 0x62cb3c
call fcn.00406100
push eax
push str.open
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteA]
mov byte [ebp - 4], 6
push 0
push 1
lea ecx, [ebp - 0x170]
call fcn.00406060
mov byte [ebp - 4], 0
mov dword [ebp - 4], 7
push 0
push 1
lea ecx, [ebp - 0x290]
call fcn.00406060
mov dword [ebp - 4], 0xffffffff
jmp 0x40d59c
lea edx, [ebp - 0x150]
push edx
push 0
push SysReAllocStringLen
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
test eax, eax
jne 0x40d511
lea eax, [ebp - 0x294]
push eax
push 0xf003f
push 0
push str.http_shellopencommand
mov ecx, dword [ebp - 0x150]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x40d4d2
lea edx, [ebp - 0x298]
push edx
lea eax, [ebp - 0x14c]
push eax
lea ecx, [ebp - 0x154]
push ecx
push 0
lea edx, [ebp - 0x29c]
push edx
lea eax, [ebp - 0x274]
push eax
push 0
mov ecx, dword [ebp - 0x294]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegEnumValueA]
lea edx, [ebp - 0x14c]
push edx
call fcn.005291f0
add esp, 4
mov dword [ebp - 0x12d8], eax
mov eax, dword [ebp - 0x12d8]
push eax
lea ecx, [ebp - 0x14c]
push ecx
lea ecx, [ebp - 0x170]
call fcn.004064c0
mov edx, dword [0x5a6ffc]
mov dword [ebp - 0x12e0], edx
push 0x5bf908
call fcn.005291f0
add esp, 4
mov dword [ebp - 0x12dc], eax
mov eax, dword [ebp - 0x12dc]
push eax
mov ecx, dword [ebp - 0x12e0]
push ecx
push 0x5bf908
lea ecx, [ebp - 0x170]
call fcn.0040e660
mov dword [ebp - 0xaa0], eax
cmp dword [ebp - 0xaa0], 0
jl 0x40d328
mov edx, dword [ebp - 0xaa0]
add edx, 1
push edx
push 0
lea eax, [ebp - 0x2c]
push eax
lea ecx, [ebp - 0x170]
call fcn.004058f0
mov dword [ebp - 0x130c], eax
mov ecx, dword [ebp - 0x130c]
mov dword [ebp - 0x12e4], ecx
mov byte [ebp - 4], 8
mov edx, dword [ebp - 0x12e4]
push edx
lea ecx, [ebp - 0x170]
call fcn.00405ab0
mov byte [ebp - 4], 9
push 0
push 1
lea ecx, [ebp - 0x2c]
call fcn.00406060
mov byte [ebp - 4], 3
mov eax, dword [0x5a6ffc]
push eax
push 0
lea ecx, [ebp - 0x170]
push ecx
mov ecx, 0x62cb3c
call fcn.00405c70
cmp dword [ebp - 0x15c], 0x10
jb 0x40d33f
mov edx, dword [ebp - 0x170]
mov dword [ebp - 0x1310], edx
jmp 0x40d34b
lea eax, [ebp - 0x170]
mov dword [ebp - 0x1310], eax
push 0x5bf924
mov ecx, dword [ebp - 0x1310]
push ecx
call dword [sym.imp.SHLWAPI.dll_StrStrIA]
test eax, eax
je 0x40d441
mov byte [ebp - 0x12a4], 0
push 0x7ff
push 0
lea edx, [ebp - 0x12a3]
push edx
call fcn.00529d40
add esp, 0xc
mov eax, dword [ebp - 0x160]
mov dword [ebp - 0x12e8], eax
cmp dword [ebp - 0x15c], 0x10
jb 0x40d3a5
mov ecx, dword [ebp - 0x170]
mov dword [ebp - 0x1314], ecx
jmp 0x40d3b1
lea edx, [ebp - 0x170]
mov dword [ebp - 0x1314], edx
mov eax, dword [ebp - 0x12e8]
push eax
mov ecx, dword [ebp - 0x1314]
push ecx
lea edx, [ebp - 0x12a4]
push edx
call fcn.00529940
add esp, 0xc
cmp dword [ebp - 0x27c], 0x10
jb 0x40d3e5
mov eax, dword [ebp - 0x290]
mov dword [ebp - 0x1318], eax
jmp 0x40d3f1
lea ecx, [ebp - 0x290]
mov dword [ebp - 0x1318], ecx
push 0
mov edx, dword [ebp - 0x1318]
push edx
push 0x5bf924
lea eax, [ebp - 0x12a4]
push eax
mov ecx, dword [ebp - 0x1304]
call fcn.00421080
lea ecx, [ebp - 0x12a4]
push ecx
call fcn.005291f0
add esp, 4
mov dword [ebp - 0x12ec], eax
mov edx, dword [ebp - 0x12ec]
push edx
lea eax, [ebp - 0x12a4]
push eax
lea ecx, [ebp - 0x170]
call fcn.004064c0
jmp 0x40d49e
lea ecx, [ebp - 0x290]
push ecx
push 0x5a7344
lea edx, [ebp - 0x48]
push edx
call fcn.00407200
add esp, 0xc
mov dword [ebp - 0x131c], eax
mov eax, dword [ebp - 0x131c]
mov dword [ebp - 0x12f0], eax
mov byte [ebp - 4], 0xa
mov ecx, dword [0x5a6ffc]
push ecx
push 0
mov edx, dword [ebp - 0x12f0]
push edx
lea ecx, [ebp - 0x170]
call fcn.00406240
mov byte [ebp - 4], 0xb
push 0
push 1
lea ecx, [ebp - 0x48]
call fcn.00406060
mov byte [ebp - 4], 3
cmp dword [ebp - 0x15c], 0x10
jb 0x40d4b5
mov eax, dword [ebp - 0x170]
mov dword [ebp - 0x1320], eax
jmp 0x40d4c1
lea ecx, [ebp - 0x170]
mov dword [ebp - 0x1320], ecx
push 1
mov edx, dword [ebp - 0x1320]
push edx
call dword [sym.imp.KERNEL32.dll_WinExec]
jmp 0x40d50f
cmp dword [ebp - 0x27c], 0x10
jb 0x40d4e9
mov eax, dword [ebp - 0x290]
mov dword [ebp - 0x1324], eax
jmp 0x40d4f5
lea ecx, [ebp - 0x290]
mov dword [ebp - 0x1324], ecx
push 5
push 0
mov edx, dword [ebp - 0x1324]
push edx
push str.iexplore.exe
push 0
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteA]
jmp 0x40d54e
cmp dword [ebp - 0x27c], 0x10
jb 0x40d528
mov eax, dword [ebp - 0x290]
mov dword [ebp - 0x1328], eax
jmp 0x40d534
lea ecx, [ebp - 0x290]
mov dword [ebp - 0x1328], ecx
push 5
push 0
mov edx, dword [ebp - 0x1328]
push edx
push str.iexplore.exe
push 0
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteA]
mov eax, dword [ebp - 0x294]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp - 0x150]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov byte [ebp - 4], 0xc
push 0
push 1
lea ecx, [ebp - 0x170]
call fcn.00406060
mov byte [ebp - 4], 0
mov dword [ebp - 4], 0xd
push 0
push 1
lea ecx, [ebp - 0x290]
call fcn.00406060
mov dword [ebp - 4], 0xffffffff
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0052927b
mov esp, ebp
pop ebp
ret 4