Function at 0x1002a0c0
Capabilities:
Check http status code
Connect to http server
Create http request
Delete file
Download and write a file
Read data from internet
Receive and write data from server to client
Receive data
Reference http user-agent string
Send data
Send http request
Write file on windows

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x3eb0
call fcn.10033810
mov eax, dword [0x10042074]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
lea edx, [ebp - 0xe54]
movups xmm0, xmmword [str.Content_Type:_application_x_www_form_urlencoded]
mov dword [ebp - 0x3e98], eax
mov eax, dword [ebp + 0x18]
mov dword [ebp - 0x3e9c], eax
mov eax, dword [ebp + 0x1c]
mov dword [ebp - 0x3ea8], eax
mov eax, dword [ebp + 0x24]
mov dword [ebp - 0x3ea4], eax
mov eax, dword [ebp + 0x28]
movups xmmword [ebp - 0x34], xmm0
mov dword [ebp - 0x3e90], eax
movups xmm0, xmmword [0x10039408]
mov eax, dword [ebp + 0x2c]
push ebx
mov dword [ebp - 0x3e60], ecx
xor ebx, ebx
xor ecx, ecx
mov dword [ebp - 0x3e8c], eax
mov eax, dword [ebp + 0x30]
movups xmmword [ebp - 0x24], xmm0
push esi
movups xmm0, xmmword [0x10039418]
mov esi, dword [ebp + 0x20]
sub edx, esi
mov dword [ebp - 0x3e70], eax
mov eax, dword [ebp + 0x38]
push edi
mov edi, dword [ebp + 0x10]
mov dword [ebp - 0x3e78], ecx
mov dword [ebp - 0x3e6c], ecx
mov dword [ebp - 0x3e84], ecx
mov dword [ebp - 0x3e80], ecx
mov dword [ebp - 0x3eac], ecx
mov dword [ebp - 0x3e94], ecx
mov ecx, esi
mov dword [ebp - 0x3e64], eax
mov dword [ebp - 0x3e74], 0
mov dword [ebp - 0x3e5c], 0
mov dword [ebp - 0x3e68], 0
mov dword [ebp - 0x3e7c], 0x4000100
mov dword [ebp - 0x3ea0], 0x544547
mov dword [ebp - 0x3eb0], 0x100393f4
movups xmmword [ebp - 0x14], xmm0
nop dword [eax]
mov al, byte [ecx]
lea ecx, [ecx + 1]
mov byte [edx + ecx - 1], al
test al, al
jne 0x1002a1c0
lea eax, [ebp - 0xe54]
push eax
call dword [sym.imp.api_ms_win_crt_multibyte_l1_1_0.dll__mbsupr]
push 4
lea eax, [ebp - 0xe54]
push str.HTTP
push eax
call dword [sym.imp.api_ms_win_crt_multibyte_l1_1_0.dll__mbsncmp]
add esp, 0x10
test eax, eax
je 0x1002a20c
push esi
lea eax, [ebp - 0xa54]
push str.http:___s
push eax
call fcn.1001a8c0
add esp, 0xc
jmp 0x1002a221
lea ecx, [ebp - 0xa54]
sub ecx, esi
mov al, byte [esi]
lea esi, [esi + 1]
mov byte [ecx + esi - 1], al
test al, al
jne 0x1002a214
mov ecx, dword [ebp - 0x3e60]
lea eax, [ebp - 0x3e88]
push eax
lea eax, [ebp - 0x3e54]
push eax
push 0
push 0
lea eax, [ebp - 0x3654]
push eax
lea eax, [ebp - 0x154]
push eax
lea eax, [ebp - 0x54]
push eax
lea eax, [ebp - 0xa54]
push eax
call fcn.1002d8b0
test eax, eax
je 0x1002a74f
cmp byte [edi], bl
je 0x1002a288
push dword [ebp + 0x14]
lea eax, [ebp - 0x254]
push edi
push str.http:___s:_d
push eax
call fcn.1001a8c0
mov eax, 3
add esp, 0x10
mov dword [ebp - 0x3e64], eax
jmp 0x1002a28e
mov eax, dword [ebp - 0x3e64]
mov esi, dword [sym.imp.WININET.dll_InternetSetOptionA]
mov edx, dword [sym.imp.WININET.dll_InternetOpenA]
nop word [eax + eax]
push 0
push 0
cmp eax, 3
jne 0x1002a2c3
lea eax, [ebp - 0x254]
push eax
push 3
push str.Mozilla_5.0__Windows_NT_10.0__Trident_7.0__rv:11.0__like_Gecko
call edx
mov edi, eax
mov dword [ebp - 0x3e58], edi
jmp 0x1002a2d5
push 0
push eax
push str.Mozilla_5.0__Windows_NT_10.0__Trident_7.0__rv:11.0__like_Gecko
call edx
mov edi, eax
mov dword [ebp - 0x3e58], eax
test edi, edi
je 0x1002a74f
push 4
lea eax, [ebp + 0x3c]
push eax
push 2
push edi
call esi
push 4
lea eax, [ebp + 0x3c]
push eax
push 5
push edi
call esi
push 4
lea eax, [ebp + 0x3c]
push eax
push 6
push edi
call esi
push 4
lea eax, [ebp + 0x3c]
push eax
push 7
push edi
call esi
push 4
lea eax, [ebp + 0x3c]
push eax
push 8
push edi
call esi
push 0
push 0
push 3
push 0
push 0
push dword [ebp - 0x3e88]
lea eax, [ebp - 0x154]
push eax
push edi
call dword [sym.imp.WININET.dll_InternetConnectA]
mov dword [ebp - 0x3e60], eax
test eax, eax
je 0x1002a715
lea eax, [ebp - 0x3e54]
push eax
lea eax, [ebp - 0x3654]
push eax
lea eax, [ebp - 0x2e54]
push str._s_s
push eax
call fcn.1001a8c0
push dword [ebp - 0x3ea4]
lea eax, [ebp - 0x2e54]
push eax
lea eax, [ebp - 0x1e54]
push str._s_s
push eax
call fcn.1001a8c0
lea eax, [ebp - 0x54]
push eax
call dword [sym.imp.api_ms_win_crt_multibyte_l1_1_0.dll__mbslwr]
push str.https
push eax
call dword [sym.imp.api_ms_win_crt_multibyte_l1_1_0.dll__mbscmp]
add esp, 0x2c
test eax, eax
je 0x1002a3a6
cmp dword [ebp - 0x3e88], 0x1bb
jne 0x1002a3b3
mov eax, dword [ebp - 0x3e7c]
or eax, 0x803000
jmp 0x1002a3b9
mov eax, dword [ebp - 0x3e7c]
push 0
or eax, 0x400000
push eax
mov dword [ebp - 0x3e7c], eax
lea eax, [ebp - 0x3eb0]
push eax
push 0
push 0
lea eax, [ebp - 0x1e54]
push eax
lea eax, [ebp - 0x3ea0]
push eax
push dword [ebp - 0x3e60]
call dword [sym.imp.WININET.dll_HttpOpenRequestA]
mov edi, eax
mov dword [ebp - 0x3e74], edi
test edi, edi
je 0x1002a70f
push 4
lea eax, [ebp + 0x3c]
push eax
push 2
push edi
call esi
push 4
lea eax, [ebp + 0x3c]
push eax
push 5
push edi
call esi
push 4
lea eax, [ebp + 0x3c]
push eax
push 6
push edi
call esi
push 4
lea eax, [ebp + 0x3c]
push eax
push 7
push edi
call esi
push 4
lea eax, [ebp + 0x3c]
push eax
push 8
push edi
call esi
mov ebx, dword [ebp - 0x3e9c]
cmp byte [ebx], 0
je 0x1002a456
mov ecx, ebx
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x1002a443
sub ecx, edx
lea eax, [ecx + 1]
push eax
push ebx
push 0x2b
push edi
call esi
mov ebx, dword [ebp - 0x3ea8]
cmp byte [ebx], 0
je 0x1002a480
mov ecx, ebx
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x1002a466
sub ecx, edx
lea eax, [ecx + 1]
push eax
push ebx
push 0x2c
push edi
call esi
nop dword [eax]
lea eax, [ebp - 0x34]
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x1002a486
push 0
push 0
sub eax, edx
push eax
lea eax, [ebp - 0x34]
push eax
push edi
call dword [sym.imp.WININET.dll_HttpSendRequestA]
mov ebx, eax
test ebx, ebx
jne 0x1002a56c
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x2f0d
je 0x1002a4c4
cmp eax, 0x2f19
je 0x1002a4c4
cmp eax, 0x2f07
jne 0x1002a4ff
lea eax, [ebp - 0x3e5c]
mov dword [ebp - 0x3e5c], 4
push eax
lea eax, [ebp - 0x3e68]
push eax
push 0x1f
push edi
call dword [sym.imp.WININET.dll_InternetQueryOptionA]
or dword [ebp - 0x3e68], 0x180
lea eax, [ebp - 0x3e68]
push 4
push eax
push 0x1f
jmp 0x1002a476
cmp eax, 0x2ee2
je 0x1002a74f
mov eax, dword [ebp - 0x3e64]
test eax, eax
jne 0x1002a53d
push edi
mov edi, dword [sym.imp.WININET.dll_InternetCloseHandle]
call edi
push dword [ebp - 0x3e60]
call edi
push dword [ebp - 0x3e58]
call edi
mov eax, 1
mov dword [ebp - 0x3e64], eax
jmp 0x1002a294
cmp eax, 3
jne 0x1002a74f
push edi
mov edi, dword [sym.imp.WININET.dll_InternetCloseHandle]
call edi
push dword [ebp - 0x3e60]
call edi
push dword [ebp - 0x3e58]
call edi
xor eax, eax
mov dword [ebp - 0x3e64], eax
jmp 0x1002a294
mov esi, dword [sym.imp.WININET.dll_HttpQueryInfoA]
lea eax, [ebp - 0x3e5c]
push 0
push eax
lea eax, [ebp - 0x3e84]
mov dword [ebp - 0x3e5c], 4
push eax
push 0x20000013
push edi
call esi
mov ecx, dword [ebp - 0x3e8c]
mov ebx, eax
mov eax, dword [ebp - 0x3e84]
mov dword [ecx], eax
test ebx, ebx
je 0x1002a70f
test eax, eax
je 0x1002a5be
cmp eax, 0xc8
je 0x1002a5be
xor ebx, ebx
jmp 0x1002a70f
push 0
lea eax, [ebp - 0x3e5c]
mov dword [ebp - 0x3e5c], 4
push eax
lea eax, [ebp - 0x3e80]
push eax
push 5
push edi
call esi
mov ebx, eax
test ebx, ebx
jne 0x1002a5f1
cmp dword [ebp - 0x3e80], ebx
mov eax, 1
cmove ebx, eax
mov esi, dword [ebp - 0x3e90]
push esi
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
push 0
push 0x80
push 2
push 0
push 0
push 0xc0000000
push esi
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov ecx, dword [ebp - 0x3e70]
push 0x400
push 0
mov dword [ecx], eax
lea eax, [ebp - 0x654]
push eax
call sub.VCRUNTIME140.dll_memset
mov esi, dword [ebp + 0xc]
mov edi, dword [sym.imp.USER32.dll_SendMessageA]
add esp, 0xc
nop
lea eax, [ebp - 0x3e6c]
push eax
push 0x400
lea eax, [ebp - 0x654]
push eax
push dword [ebp - 0x3e74]
call dword [sym.imp.WININET.dll_InternetReadFile]
test eax, eax
jne 0x1002a67e
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x3e5
jne 0x1002a701
push 0x64
call dword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x1002a640
mov eax, dword [ebp - 0x3e6c]
test eax, eax
je 0x1002a6fc
add dword [ebp - 0x3e78], eax
lea ecx, [ebp - 0x3e94]
push 0
push ecx
push eax
lea eax, [ebp - 0x654]
push eax
mov eax, dword [ebp - 0x3e70]
push dword [eax]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x1002a6f8
mov eax, dword [ebp - 0x3e98]
test eax, eax
je 0x1002a6d6
cmp dword [ebp + 0x34], 1
push 0
jne 0x1002a6cb
push dword [ebp - 0x3e6c]
jmp 0x1002a6d2
mov ecx, dword [ebp - 0x3e78]
push ecx
push esi
push eax
call edi
push 0x400
lea eax, [ebp - 0x654]
mov dword [ebp - 0x3e6c], 0
push 0
push eax
call sub.VCRUNTIME140.dll_memset
jmp 0x1002a63b
xor ebx, ebx
jmp 0x1002a701
mov ebx, 1
mov eax, dword [ebp - 0x3e70]
push dword [eax]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov edi, dword [ebp - 0x3e58]
push dword [ebp - 0x3e74]
mov esi, dword [sym.imp.WININET.dll_InternetCloseHandle]
call esi
push dword [ebp - 0x3e60]
call esi
push edi
call esi
mov eax, dword [ebp - 0x3e70]
pop edi
pop esi
mov dword [eax], 0
mov eax, ebx
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.100337f6
mov esp, ebp
pop ebp
ret 0x38
mov ecx, dword [ebp - 4]
xor eax, eax
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.100337f6
mov esp, ebp
pop ebp
ret 0x38