Function at 0x40d140
Capabilities:
Create process on windows

Disassembly:
push 0xffffffffffffffff
push 0x4c62f9
mov eax, dword fs:[0]
push eax
sub esp, 0x104
mov eax, dword [0x519b14]
xor eax, esp
mov dword [esp + 0x100], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x519b14]
xor eax, esp
push eax
lea eax, [esp + 0x118]
mov dword fs:[0], eax
mov eax, dword [esp + 0x128]
xor edi, edi
mov dword [esp + 0x1c], edi
cmp dword [eax + 0x14], edi
mov dword [esp + 0x24], eax
je 0x40d773
push 0x17
mov ebx, 7
push str.http_shellopencommand
lea ecx, [esp + 0x90]
mov dword [esp + 0xa8], ebx
mov dword [esp + 0xa4], edi
mov word [esp + 0x94], di
call fcn.00405350
mov dword [esp + 0x120], edi
mov eax, dword [esp + 0x8c]
mov ebp, 8
cmp dword [esp + 0xa0], ebp
mov dword [esp + 0x18], edi
jae 0x40d1ea
lea eax, [esp + 0x8c]
push edi
lea ecx, [esp + 0x1c]
push ecx
push edi
push 0xf003f
push edi
push edi
push edi
push eax
push 0x80000000
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
mov byte [esp + 0x120], 2
cmp dword [esp + 0xa0], ebp
jb 0x40d226
mov edx, dword [esp + 0x8c]
push edx
call fcn.0048c112
add esp, 4
push edi
push 0x4e5fd8
lea ecx, [esp + 0x30]
mov dword [esp + 0xa8], ebx
mov dword [esp + 0xa4], edi
mov word [esp + 0x94], di
mov dword [esp + 0x48], ebx
mov dword [esp + 0x44], edi
mov word [esp + 0x34], di
call fcn.00405350
mov byte [esp + 0x120], 3
lea eax, [esp + 0x18]
push eax
lea ecx, [esp + 0x2c]
lea esi, [esp + 0xc4]
call fcn.004139a0
mov byte [esp + 0x120], 5
cmp dword [esp + 0x40], ebp
jb 0x40d290
mov ecx, dword [esp + 0x2c]
push ecx
call fcn.0048c112
add esp, 4
cmp dword [esp + 0xd8], ebp
mov eax, dword [esp + 0xc4]
mov dword [esp + 0x40], ebx
mov dword [esp + 0x3c], edi
mov word [esp + 0x2c], di
jae 0x40d2b4
lea eax, [esp + 0xc4]
push eax
call dword [sym.imp.SHLWAPI.dll_PathGetArgsW]
mov ecx, eax
mov dword [esp + 0x110], ebx
mov dword [esp + 0x10c], edi
mov word [esp + 0xfc], di
lea esi, [ecx + 2]
mov dx, word [ecx]
add ecx, 2
cmp dx, di
jne 0x40d2d6
sub ecx, esi
sar ecx, 1
push ecx
push eax
lea ecx, [esp + 0x100]
call fcn.00405350
mov byte [esp + 0x120], 6
mov edx, dword [esp + 0xd4]
sub edx, dword [esp + 0x10c]
lea eax, [esp + 0xdc]
push edx
push eax
xor ecx, ecx
lea edx, [esp + 0xc8]
call fcn.0040cfb0
mov byte [esp + 0x120], bl
push 1
push edi
lea ecx, [esp + 0x28]
push ecx
mov esi, 0x22
lea ecx, [esp + 0xe8]
mov dword [esp + 0x2c], esi
call fcn.0040e350
lea edi, [esp + 0x20]
lea ebx, [esp + 0xdc]
mov ebp, eax
mov dword [esp + 0x20], esi
call fcn.0040e430
xor ebx, ebx
push 0xffffffffffffffff
push ebx
lea edx, [esp + 0xe4]
push edx
lea ecx, [esp + 0xb0]
mov esi, eax
mov dword [esp + 0xc8], 7
mov dword [esp + 0xc4], ebx
mov word [esp + 0xb4], bx
call fcn.00405dc0
mov byte [esp + 0x120], 8
cmp esi, 0xffffffff
je 0x40d3ee
cmp ebp, 0xffffffff
je 0x40d3ee
cmp ebp, esi
je 0x40d3ee
sub esi, ebp
sub esi, 1
push esi
lea eax, [esp + 0x8c]
lea ecx, [ebp + 1]
push eax
lea edx, [esp + 0xe4]
call fcn.0040cfb0
mov byte [esp + 0x120], 9
push 0xffffffffffffffff
push ebx
push eax
lea ecx, [esp + 0xb0]
call fcn.00405dc0
mov byte [esp + 0x120], 8
lea ecx, [esp + 0x88]
call fcn.004052d0
cmp dword [esp + 0xb8], ebx
mov esi, 8
je 0x40d446
cmp dword [esp + 0xbc], esi
mov eax, dword [esp + 0xa8]
jae 0x40d413
lea eax, [esp + 0xa8]
push eax
lea ecx, [esp + 0x8c]
call fcn.00405260
mov byte [esp + 0x120], 0xa
lea edi, [esp + 0x88]
mov dword [esp + 0x1c], 1
call fcn.00412060
cmp eax, 1
mov byte [esp + 0x17], 1
je 0x40d44a
mov byte [esp + 0x17], bl
mov dword [esp + 0x120], esi
test byte [esp + 0x1c], 1
je 0x40d490
and dword [esp + 0x1c], 0xfffffffe
cmp dword [esp + 0xa0], esi
jb 0x40d476
mov ecx, dword [esp + 0x8c]
push ecx
call fcn.0048c112
add esp, 4
mov dword [esp + 0xa0], 7
mov dword [esp + 0x9c], ebx
mov word [esp + 0x8c], bx
cmp byte [esp + 0x17], bl
mov edi, dword [sym.imp.KERNEL32.dll_GetLastError]
je 0x40d631
push 0x4e629c
lea edx, [esp + 0xa8]
push edx
lea eax, [esp + 0x90]
push eax
call fcn.00408f50
add esp, 0xc
mov byte [esp + 0x120], 0xb
mov ebp, dword [esp + 0x24]
push 0xffffffffffffffff
push ebx
push ebp
lea ecx, [esp + 0x94]
call fcn.004097e0
push 0x44
lea ecx, [esp + 0x48]
push ebx
push ecx
mov dword [esp + 0x34], ebx
mov dword [esp + 0x38], ebx
mov dword [esp + 0x3c], ebx
mov dword [esp + 0x40], ebx
call fcn.0048d180
mov eax, dword [esp + 0x98]
add esp, 0xc
cmp dword [esp + 0xa0], esi
mov dword [esp + 0x44], 0x44
jae 0x40d518
lea eax, [esp + 0x8c]
lea edx, [esp + 0x28]
push edx
lea ecx, [esp + 0x48]
push ecx
push ebx
push ebx
push 0x20
push ebx
push ebx
push ebx
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
cmp eax, ebx
je 0x40d5af
mov edx, dword [esp + 0x28]
mov ebp, dword [sym.imp.KERNEL32.dll_CloseHandle]
push edx
call ebp
mov eax, dword [esp + 0x2c]
push eax
call ebp
mov byte [esp + 0x120], 8
cmp dword [esp + 0xa0], esi
jb 0x40d56a
mov ecx, dword [esp + 0x8c]
push ecx
call fcn.0048c112
add esp, 4
mov edi, 7
mov dword [esp + 0xa0], edi
mov dword [esp + 0x9c], ebx
mov word [esp + 0x8c], bx
mov byte [esp + 0x120], 7
cmp dword [esp + 0xbc], esi
jb 0x40d7a0
mov edx, dword [esp + 0xa8]
push edx
call fcn.0048c112
add esp, 4
jmp 0x40d7a0
cmp dword [esp + 0xa0], esi
mov eax, dword [esp + 0x8c]
jae 0x40d5c6
lea eax, [esp + 0x8c]
push eax
push 0x4e62a0
push str.LibUtils
push 1
push ebx
call fcn.0040f560
add esp, 0x14
call edi
push eax
push str.OpenUrl_By_Default_Browser_Failed__Error_code__d
push str.LibUtils
push 1
push ebx
call fcn.0040f560
add esp, 0x14
mov byte [esp + 0x120], 8
cmp dword [esp + 0xa0], esi
jb 0x40d615
mov eax, dword [esp + 0x8c]
push eax
call fcn.0048c112
add esp, 4
mov dword [esp + 0xa0], 7
mov dword [esp + 0x9c], ebx
mov word [esp + 0x8c], bx
jmp 0x40d635
mov ebp, dword [esp + 0x24]
cmp dword [ebp + 0x18], esi
jb 0x40d63f
mov eax, dword [ebp + 4]
jmp 0x40d642
lea eax, [ebp + 4]
push 5
push ebx
push eax
push str.iexplore
push 0x4e5e5c
push ebx
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
cmp eax, 0x20
jg 0x40d77a
call edi
push eax
push str.Open_Url_By_IE_Failed__Error_code__d
push str.LibUtils
push 1
push ebx
call fcn.0040f560
add esp, 0x14
mov byte [esp + 0x120], 7
cmp dword [esp + 0xbc], esi
jb 0x40d699
mov ecx, dword [esp + 0xa8]
push ecx
call fcn.0048c112
add esp, 4
mov edi, 7
mov dword [esp + 0xbc], edi
mov dword [esp + 0xb8], ebx
mov word [esp + 0xa8], bx
mov byte [esp + 0x120], 6
cmp dword [esp + 0xf4], esi
jb 0x40d6d5
mov edx, dword [esp + 0xe0]
push edx
call fcn.0048c112
add esp, 4
mov dword [esp + 0xf4], edi
mov dword [esp + 0xf0], ebx
mov word [esp + 0xe0], bx
mov byte [esp + 0x120], 5
cmp dword [esp + 0x110], esi
jb 0x40d70c
mov eax, dword [esp + 0xfc]
push eax
call fcn.0048c112
add esp, 4
mov dword [esp + 0x110], edi
mov dword [esp + 0x10c], ebx
mov word [esp + 0xfc], bx
mov byte [esp + 0x120], 2
cmp dword [esp + 0xd8], esi
jb 0x40d743
mov ecx, dword [esp + 0xc4]
push ecx
call fcn.0048c112
add esp, 4
mov dword [esp + 0xd8], edi
mov dword [esp + 0xd4], ebx
mov word [esp + 0xc4], bx
mov dword [esp + 0x120], 0xffffffff
mov eax, dword [esp + 0x18]
cmp eax, ebx
je 0x40d773
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor al, al
jmp 0x40d877
mov byte [esp + 0x120], 7
cmp dword [esp + 0xbc], esi
jb 0x40d79b
mov edx, dword [esp + 0xa8]
push edx
call fcn.0048c112
add esp, 4
mov edi, 7
mov dword [esp + 0xbc], edi
mov dword [esp + 0xb8], ebx
mov word [esp + 0xa8], bx
mov byte [esp + 0x120], 6
cmp dword [esp + 0xf4], esi
jb 0x40d7d7
mov eax, dword [esp + 0xe0]
push eax
call fcn.0048c112
add esp, 4
mov dword [esp + 0xf4], edi
mov dword [esp + 0xf0], ebx
mov word [esp + 0xe0], bx
mov byte [esp + 0x120], 5
cmp dword [esp + 0x110], esi
jb 0x40d80e
mov ecx, dword [esp + 0xfc]
push ecx
call fcn.0048c112
add esp, 4
mov dword [esp + 0x110], edi
mov dword [esp + 0x10c], ebx
mov word [esp + 0xfc], bx
mov byte [esp + 0x120], 2
cmp dword [esp + 0xd8], esi
jb 0x40d845
mov edx, dword [esp + 0xc4]
push edx
call fcn.0048c112
add esp, 4
mov dword [esp + 0xd8], edi
mov dword [esp + 0xd4], ebx
mov word [esp + 0xc4], bx
mov dword [esp + 0x120], 0xffffffff
mov eax, dword [esp + 0x18]
cmp eax, ebx
je 0x40d875
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov al, 1
mov ecx, dword [esp + 0x118]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x100]
xor ecx, esp
call fcn.0048cb7d
add esp, 0x110
ret