Function at 0x10010ed0
Capabilities:
Initialize winhttp library
Prepare http request
Receive http response
Reference http user-agent string
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1004cc40
mov eax, dword fs:[0]
push eax
sub esp, 0x84
mov eax, dword [0x10063058]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x5c], edx
movzx eax, cx
mov dword [ebp - 0x58], eax
movzx eax, cx
push dword [ebp - 0x60]
xor ecx, ecx
mov dword [ebp - 4], 2
mov esi, dword [ebp + 0x48]
mov edx, 0x1bb
cmp ax, dx
mov dword [ebp - 0x30], 0
mov edi, 0x800000
mov edx, esi
cmovne edi, ecx
lea ecx, [ebp + 0x38]
cmp dword [ebp + 0x4c], 8
push 1
cmovae ecx, dword [ebp + 0x38]
push 0x1005b8d4
push ecx
call fcn.100061b0
add esp, 0x10
mov dword [ebp - 0x4c], 0
mov dword [ebp - 0x3c], 0
mov dword [ebp - 0x38], 7
lea edx, [eax + 1]
xor eax, eax
mov word [ebp - 0x4c], ax
cmp esi, edx
jb 0x10011499
sub esi, edx
lea eax, [ebp + 0x38]
or ecx, 0xffffffff
cmp esi, 0xffffffff
cmovb ecx, esi
cmp dword [ebp + 0x4c], 8
push ecx
cmovae eax, dword [ebp + 0x38]
lea ecx, [ebp - 0x4c]
lea eax, [eax + edx*2]
push eax
call fcn.10007770
push 0
push 0
push 0
push 1
push str.Mozilla_5.0__Windows_NT_6.1__Win64__x64__rv:108.0__Gecko_20100101_Firefox_108.0
mov byte [ebp - 4], 3
call dword [sym.imp.WINHTTP.dll_WinHttpOpen]
mov esi, eax
mov dword [ebp - 0x60], esi
test esi, esi
jne 0x10010fc2
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
jmp 0x10011374
cmp dword [ebp + 0x1c], 8
lea eax, [ebp + 8]
push 0
push dword [ebp - 0x58]
cmovae eax, dword [ebp + 8]
push eax
push esi
call dword [sym.imp.WINHTTP.dll_WinHttpConnect]
mov ecx, eax
mov dword [ebp - 0x58], ecx
test ecx, ecx
jne 0x10010ff7
push esi
call dword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
jmp 0x10011374
cmp dword [ebp + 0x34], 8
lea eax, [ebp + 0x20]
push edi
cmovae eax, dword [ebp + 0x20]
push 0
push 0
push 0
push eax
push 0
push ecx
call dword [sym.imp.WINHTTP.dll_WinHttpOpenRequest]
mov edi, eax
test edi, edi
jne 0x10011034
push esi
mov esi, dword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
call esi
push dword [ebp - 0x58]
call esi
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
jmp 0x10011374
push 4
lea eax, [ebp - 0x2c]
mov dword [ebp - 0x2c], 0x3300
push eax
push 0x1f
push edi
call dword [sym.imp.WINHTTP.dll_WinHttpSetOption]
xor eax, eax
mov dword [ebp - 0x28], 0
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 7
mov word [ebp - 0x28], ax
cmp dword [ebp - 0x5c], 1
lea ecx, [ebp - 0x28]
mov byte [ebp - 4], 4
jne 0x1001108d
cmp dword [0x10063ae8], 8
mov eax, 0x10063ad4
push dword [0x10063ae4]
cmovae eax, dword [0x10063ad4]
jmp 0x100110a6
cmp dword [0x10063b60], 8
mov eax, 0x10063b4c
push dword [0x10063b5c]
cmovae eax, dword [0x10063b4c]
push eax
call fcn.10007770
push 0x1005baf4
lea edx, [ebp - 0x28]
lea ecx, [ebp - 0x90]
call fcn.10002330
lea ecx, [ebp - 0x4c]
mov byte [ebp - 4], 5
push ecx
mov edx, eax
lea ecx, [ebp - 0x78]
call fcn.10009ec0
mov esi, eax
add esp, 8
lea eax, [ebp - 0x28]
cmp eax, esi
je 0x10011149
mov edx, dword [ebp - 0x14]
cmp edx, 8
jb 0x10011117
mov ecx, dword [ebp - 0x28]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x1001110d
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x1001149e
push edx
push ecx
call fcn.10028ef0
add esp, 8
mov dword [ebp - 0x18], 0
xor eax, eax
mov dword [ebp - 0x14], 7
mov word [ebp - 0x28], ax
movups xmm0, xmmword [esi]
movups xmmword [ebp - 0x28], xmm0
movq xmm0, qword [esi + 0x10]
movq qword [ebp - 0x18], xmm0
mov dword [esi + 0x10], eax
mov dword [esi + 0x14], 7
mov word [esi], ax
mov edx, dword [ebp - 0x64]
cmp edx, 8
jb 0x10011183
mov ecx, dword [ebp - 0x78]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x10011179
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x1001149e
push edx
push ecx
call fcn.10028ef0
add esp, 8
xor eax, eax
mov byte [ebp - 4], 4
mov edx, dword [ebp - 0x7c]
mov dword [ebp - 0x68], 0
mov dword [ebp - 0x64], 7
mov word [ebp - 0x78], ax
cmp edx, 8
jb 0x100111d8
mov ecx, dword [ebp - 0x90]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x100111ce
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x1001149e
push edx
push ecx
call fcn.10028ef0
add esp, 8
cmp dword [ebp - 0x14], 8
lea eax, [ebp - 0x28]
push 0x1005bff4
cmovae eax, dword [ebp - 0x28]
push eax
lea eax, [ebp - 0x54]
push eax
call fcn.1002e63a
add esp, 0xc
cmp dword [ebp - 0x54], 0
je 0x10011315
lea eax, [ebp - 0x30]
push eax
push 0
push 0
push 0
push 0
push 0
push edi
call dword [sym.imp.WINHTTP.dll_WinHttpSendRequest]
cmp eax, 1
je 0x10011229
push dword [ebp - 0x54]
call fcn.1002f471
add esp, 4
jmp 0x10011315
push 0
push edi
call dword [sym.imp.WINHTTP.dll_WinHttpReceiveResponse]
test eax, eax
jne 0x10011246
push dword [ebp - 0x54]
call fcn.1002f471
add esp, 4
jmp 0x10011315
lea eax, [ebp - 0x50]
push eax
push edi
call dword [sym.imp.WINHTTP.dll_WinHttpQueryDataAvailable]
test eax, eax
je 0x100112be
mov eax, dword [ebp - 0x50]
xor ecx, ecx
add eax, 1
setb cl
neg ecx
or ecx, eax
push ecx
call fcn.1002e3d0
mov esi, eax
add esp, 4
test esi, esi
je 0x100112be
mov ecx, dword [ebp - 0x50]
inc ecx
push ecx
push 0
push esi
call fcn.1002ad20
add esp, 0xc
lea eax, [ebp - 0x34]
push eax
push dword [ebp - 0x50]
push esi
push edi
call dword [sym.imp.WINHTTP.dll_WinHttpReadData]
cmp eax, 1
jne 0x100112b5
push dword [ebp - 0x54]
push dword [ebp - 0x50]
push eax
push esi
call fcn.10031b10
push esi
call fcn.1002e3b5
add esp, 0x14
cmp dword [ebp - 0x50], 0
ja 0x10011246
jmp 0x100112be
push esi
call fcn.1002e3b5
add esp, 4
push dword [ebp - 0x54]
call fcn.1002f471
add esp, 4
cmp dword [ebp - 0x5c], 1
jne 0x10011315
sub esp, 0x18
mov ecx, esp
mov dword [ebp - 0x34], esp
push 0
push 0x1005b88c
mov dword [ecx], 0
mov dword [ecx + 0x10], 0
mov dword [ecx + 0x14], 7
call fcn.10007770
sub esp, 0x18
mov byte [ebp - 4], 6
lea eax, [ebp - 0x28]
mov ecx, esp
push eax
call fcn.100058a0
mov byte [ebp - 4], 4
call fcn.1000b600
add esp, 0x30
push dword [ebp - 0x60]
mov esi, dword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
call esi
push dword [ebp - 0x58]
call esi
push edi
call esi
mov edx, dword [ebp - 0x14]
xor esi, esi
cmp edx, 8
jb 0x10011364
mov ecx, dword [ebp - 0x28]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x1001135a
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x100114a3
push edx
push ecx
call fcn.10028ef0
add esp, 8
xor eax, eax
mov dword [ebp - 0x18], esi
mov dword [ebp - 0x14], 7
mov word [ebp - 0x28], ax
mov edx, dword [ebp - 0x38]
cmp edx, 8
jb 0x100113ae
mov ecx, dword [ebp - 0x4c]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x100113a4
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x100114a3
push edx
push ecx
call fcn.10028ef0
add esp, 8
mov edx, dword [ebp + 0x1c]
cmp edx, 8
jb 0x100113e8
mov ecx, dword [ebp + 8]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x100113de
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x100114a3
push edx
push ecx
call fcn.10028ef0
add esp, 8
mov edx, dword [ebp + 0x34]
xor eax, eax
mov dword [ebp + 0x18], 0
mov dword [ebp + 0x1c], 7
mov word [ebp + 8], ax
cmp edx, 8
jb 0x10011432
mov ecx, dword [ebp + 0x20]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x10011428
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x100114a3
push edx
push ecx
call fcn.10028ef0
add esp, 8
mov edx, dword [ebp + 0x4c]
xor eax, eax
mov dword [ebp + 0x30], 0
mov dword [ebp + 0x34], 7
mov word [ebp + 0x20], ax
cmp edx, 8
jb 0x1001147c
mov ecx, dword [ebp + 0x38]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x10011472
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x100114a3
push edx
push ecx
call fcn.10028ef0
add esp, 8
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.10028ebf
mov esp, ebp
pop ebp
ret
call fcn.10001350
call fcn.1002d5ef
call fcn.1002d5ef
int3