Function at 0x4138d0
Capabilities:
Delete file
Download url
Get common file path
Receive data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4496c0
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
mov eax, 0x3630
call fcn.004213b0
mov eax, dword [0x4668f4]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
mov dword [ebp - 0x10], esp
mov ecx, dword [ebp + 0x18]
mov ebx, dword [ebp + 8]
mov eax, dword [ebp + 0x14]
mov esi, dword [ebp + 0xc]
lea edx, [ebp - 0x3614]
mov dword [ebp - 0x361c], ecx
mov dword [ebp - 0x3624], eax
xor eax, eax
mov ecx, 0x400
mov edi, edx
mov dword [ebp - 0x3630], 0x1000
mov dword [ebp - 0x3618], edx
rep stosd dword es:[edi], eax
mov edi, dword [ebp + 0x10]
cmp edi, 0x50
mov dword [ebp - 4], 0
push ebx
jne 0x413975
push esi
lea eax, [ebp - 0x2614]
push str.http:___s_s
push eax
call fcn.004217f1
push esi
lea ecx, [ebp - 0x1614]
push str.http:___s
push ecx
call fcn.004217f1
add esp, 0x1c
jmp 0x4139cf
cmp edi, 0x1bb
jne 0x4139a6
push esi
lea edx, [ebp - 0x2614]
push str.https:___s_s
push edx
call fcn.004217f1
push esi
lea eax, [ebp - 0x1614]
push str.https:___s
push eax
call fcn.004217f1
add esp, 0x1c
jmp 0x4139cf
push edi
push esi
lea ecx, [ebp - 0x2614]
push str.http:___s:_d_s
push ecx
call fcn.004217f1
push edi
push esi
lea edx, [ebp - 0x1614]
push str.http:___s:_d
push edx
call fcn.004217f1
add esp, 0x24
mov ecx, 6
mov esi, str.https:__www.microsoft.com
lea edi, [ebp - 0x1614]
rep movsd dword es:[edi], dword [esi]
push ebx
lea eax, [ebp - 0x1614]
push eax
lea ecx, [ebp - 0x2614]
push str._s_s
push ecx
movsw word es:[edi], word [esi]
call fcn.004217f1
add esp, 0x10
lea edx, [ebp - 0x3640]
push str.jsproxy.dll
mov dword [ebp - 0x3640], 0x4137c0
mov dword [ebp - 0x363c], 0x4137e0
mov dword [ebp - 0x3638], 0x413770
mov dword [ebp - 0x3634], 0x413880
mov dword [ebp - 0x362c], edx
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov esi, eax
test esi, esi
jne 0x413aa5
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
mov eax, dword [0x467980]
push str.Failed_to_111_LoadLibrary__d
push 0x147
push str..HLib.cpp
push esi
push str.HR::Detect
push eax
call fcn.0040ebc0
mov ecx, dword [ebp - 0x3618]
mov edx, dword [ebp - 0x361c]
add esp, 0x1c
lea ebx, [ebx]
mov al, byte [ecx]
inc ecx
mov byte [edx], al
inc edx
test al, al
jne 0x413a80
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov ecx, dword [ebp - 0x14]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004205fd
mov esp, ebp
pop ebp
ret
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.InternetInitializeAutoProxyDll
push esi
call edi
mov ebx, eax
test ebx, ebx
je 0x413dbf
push str.InternetDeInitializeAutoProxyDll
push esi
call edi
test eax, eax
mov dword [ebp - 0x3620], eax
je 0x413dbf
push str.InternetGetProxyInfo
push esi
call edi
mov edi, eax
test edi, edi
mov dword [ebp - 0x3628], edi
je 0x413dbf
mov esi, dword [ebp - 0x3624]
cmp byte [esi], 0
jne 0x413b4f
push 3
push 4
push esi
call dword [sym.imp.WININET.dll_DetectAutoProxyUrl]
test eax, eax
jne 0x413b4f
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [0x467980]
push eax
push str.Failed_to_Detect_333__d
push 0x15e
push str..HLib.cpp
push 0
push str.HR::Detect
push ecx
call fcn.0040ebc0
mov ecx, dword [ebp - 0x3618]
mov edx, dword [ebp - 0x361c]
add esp, 0x1c
lea ecx, [ecx]
mov al, byte [ecx]
inc ecx
mov byte [edx], al
inc edx
test al, al
jne 0x413b40
jmp 0x413a8a
lea edx, [ebp - 0x414]
push edx
push 0x200
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
lea eax, [ebp - 0x214]
push eax
push 0
push 0
lea ecx, [ebp - 0x414]
push ecx
call dword [sym.imp.KERNEL32.dll_GetTempFileNameA]
push 0
push 0
lea edx, [ebp - 0x214]
push edx
push esi
push 0
call sub.urlmon.dll_URLDownloadToFileA
push 0
lea eax, [ebp - 0x362c]
push eax
push 0
lea ecx, [ebp - 0x214]
push ecx
push 0
call ebx
test eax, eax
jne 0x413bef
push eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, dword [0x467980]
push eax
push str.Failed_to_444_error__d_return_value__d
push 0x16d
push str..HLib.cpp
push 0
push str.HR::Detect
push edx
call fcn.0040ebc0
mov ecx, dword [ebp - 0x3618]
mov edx, dword [ebp - 0x361c]
add esp, 0x20
nop
mov al, byte [ecx]
inc ecx
mov byte [edx], al
inc edx
test al, al
jne 0x413be0
jmp 0x413a8a
push 0x200
lea eax, [ebp - 0x614]
push eax
lea ecx, [ebp - 0x214]
push ecx
call fcn.00405790
add esp, 0xc
lea edx, [ebp - 0x614]
push 0x44ebac
push edx
call fcn.00423a98
mov esi, eax
add esp, 8
test esi, esi
je 0x413c91
push 2
push 0
push esi
call fcn.0042265a
push esi
call fcn.0042258a
push 0
push 0
push esi
mov ebx, eax
call fcn.0042265a
lea eax, [ebx + 1]
push eax
call fcn.0043beea
add esp, 0x20
push esi
push ebx
mov edi, eax
push 1
push edi
call fcn.00421932
push edi
push str.The_script:__s
push 0x184
push str..HLib.cpp
push 0
mov byte [edi + ebx], 0
mov ecx, dword [0x467980]
push str.HR::Detect
push ecx
call fcn.0040ebc0
add esp, 0x2c
push edi
call fcn.0043beef
mov edi, dword [ebp - 0x3628]
add esp, 4
push esi
call fcn.00421dd7
lea eax, [ebp - 0x1614]
add esp, 4
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x413ca3
sub eax, edx
mov edx, eax
lea eax, [ebp - 0x2614]
lea esi, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x413cb7
lea ecx, [ebp - 0x3630]
push ecx
lea ecx, [ebp - 0x3618]
push ecx
push edx
lea edx, [ebp - 0x1614]
sub eax, esi
push edx
push eax
lea eax, [ebp - 0x2614]
push eax
call edi
test eax, eax
jne 0x413d32
mov ecx, dword [ebp - 0x3618]
push ecx
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, dword [0x467980]
push eax
push str.Failed_to_555_error__d___s
push 0x193
push str..HLib.cpp
push 0
push str.HR::Detect
push edx
call fcn.0040ebc0
mov ecx, dword [ebp - 0x3618]
mov edx, dword [ebp - 0x361c]
add esp, 0x20
mov al, byte [ecx]
inc ecx
mov byte [edx], al
inc edx
test al, al
jne 0x413d23
jmp 0x413a8a
lea eax, [ebp - 0x214]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
mov ecx, dword [ebp - 0x3618]
mov edx, dword [0x467980]
push ecx
push str.666__s
push 0x19b
push str..HLib.cpp
push 0
push str.HR::Detect
push edx
call fcn.0040ebc0
add esp, 0x1c
push 0
push 0
call dword [ebp - 0x3620]
test eax, eax
jne 0x413da4
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
mov eax, dword [0x467980]
push str.Failed_to_777_error__d
push 0x19f
push str..HLib.cpp
push 0
push str.HR::Detect
push eax
call fcn.0040ebc0
add esp, 0x1c
mov ecx, dword [ebp - 0x3618]
mov edx, dword [ebp - 0x361c]
mov al, byte [ecx]
inc ecx
mov byte [edx], al
inc edx
test al, al
jne 0x413db0
jmp 0x413a8a
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [0x467980]
push eax
push str.Failed_to_222_GetProcAddress__d
push 0x153
push str..HLib.cpp
push 0
push str.HR::Detect
push ecx
call fcn.0040ebc0
mov ecx, dword [ebp - 0x3618]
mov edx, dword [ebp - 0x361c]
add esp, 0x1c
mov al, byte [ecx]
inc ecx
mov byte [edx], al
inc edx
test al, al
jne 0x413df7
jmp 0x413a8a