Function at 0x412e40
Capabilities:
Check http status code
Create http request
Read data from internet
Receive data
Reference http user-agent string

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x469ab0
mov eax, dword fs:[0]
push eax
mov eax, 0x1050
call fcn.00444d50
mov eax, dword [0x4ca578]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, ecx
mov dword [ebp - 0x1058], ebx
mov eax, dword [ebp + 8]
mov dword [ebp - 0x1044], eax
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x105c], eax
xor eax, eax
mov dword [ebp - 0x1040], 0
mov dword [ebp - 0x1048], 0
mov dword [ebp - 0x104c], 4
mov dword [ebp - 0x1030], 0
mov dword [ebp - 0x102c], 7
mov word [ebp - 0x1040], ax
mov dword [ebp - 4], eax
lea eax, [ebp - 0x28]
push 5
push eax
push dword [0x50c274]
call fcn.00454d08
push 5
lea eax, [ebp - 0x18]
push eax
push dword [0x50ce78]
call fcn.00454d08
push 5
lea eax, [ebp - 0x20]
push eax
push dword [0x50ce7c]
call fcn.00454d08
add esp, 0x24
lea esi, [ebp - 0x18]
cmp dword [ebx + 0x454], 0
lea ecx, [ebx + 0x2ec4]
lea edx, [ebx + 0xb0d4]
lea eax, [ebx + 0x463c]
push esi
lea esi, [ebp - 0x20]
push esi
lea esi, [ebp - 0x28]
push esi
mov esi, dword [sym.imp.USER32.dll_wsprintfA]
lea edi, [ebx + 0x3e3c]
push 0x506018
push 0x506040
jne 0x412f71
lea edi, [ebx + 0x1cc0]
push edi
push str.WINCSECB
push ecx
push edx
push 0x505c18
push str.Mozilla_5.0___s__AppleWebKit_537.36_Chrome_84.0.4147.30_Edg__s__SecureBrowser__s__s__s_s__s__DKM:_s._s._s
push eax
call esi
push edi
push str.WINCSECB
lea eax, [ebx + 0x3e3c]
push str._s__s
push eax
call esi
add esp, 0x40
jmp 0x412f95
push str.WINCSECB
push ecx
push edx
push 0x505c18
push str.Mozilla_5.0___s__AppleWebKit_537.36_Chrome_84.0.4147.30_Edg__s__SecureBrowser__s__s_s__s__DKM:_s._s._s
push eax
call esi
push str.WINCSECB
push 0x46d888
push edi
call esi
add esp, 0x38
mov edi, dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
push 0
push 0
push 0xffffffffffffffff
push 0x51622c
push 0
push 0xfde9
call edi
mov esi, eax
lea eax, [esi + esi]
push eax
push 0x40
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
push esi
push eax
push 0xffffffffffffffff
lea esi, [ebx + 0x463c]
mov dword [ebx + 0xb0e8], eax
push esi
push 0
push 0xfde9
call edi
push 0
push 0
push 0
push 0
push esi
call dword [sym.imp.WININET.dll_InternetOpenA]
mov esi, eax
test esi, esi
je 0x41340d
push dword [ebp - 0x1044]
lea eax, [ebp - 0x828]
push 0x800
push eax
call fcn.0044a958
add esp, 0xc
mov dword [ebp - 0x1054], 0x800
lea eax, [ebp - 0x1054]
push 0x2000000
push eax
lea eax, [ebp - 0x1028]
push eax
lea eax, [ebp - 0x828]
push eax
call dword [sym.imp.WININET.dll_InternetCanonicalizeUrlA]
push 0
push 0x84000c00
push 0
push 0
lea eax, [ebp - 0x1028]
push eax
push esi
call dword [sym.imp.WININET.dll_InternetOpenUrlA]
mov edi, eax
mov dword [ebp - 0x1044], edi
test edi, edi
je 0x4133ea
mov esi, dword [sym.imp.WININET.dll_HttpQueryInfoA]
lea eax, [ebp - 0x104c]
push 0
push eax
lea eax, [ebp - 0x1048]
push eax
push 0x20000013
push edi
call esi
test eax, eax
je 0x4133ea
cmp dword [ebp - 0x104c], 4
jne 0x4133ea
cmp dword [ebp - 0x1048], 0xc8
jne 0x4133ea
push 0
lea eax, [ebp - 0x20]
mov dword [ebp - 0x20], 0
push eax
push 0
push 0x16
push edi
call esi
mov eax, dword [ebp - 0x20]
inc eax
push eax
push 0x40
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
push 0
lea ecx, [ebp - 0x20]
mov dword [ebp - 0x18], eax
push ecx
push eax
push 0x16
push edi
call esi
test eax, eax
je 0x413225
mov eax, dword [ebp - 0x20]
mov esi, dword [ebp - 0x18]
push 0xc00
push 1
mov byte [esi + eax], 0
call fcn.0044aad9
add esp, 8
mov dword [ebx + 0x2da04], eax
mov ecx, ebx
push 0
push 0
push 0x470a28
push str.X_ITS_Hash:
push esi
push 0xc00
push eax
call fcn.00413d00
mov edx, dword [ebx + 0x2da04]
mov ecx, edx
lea eax, [ecx + 1]
mov dword [ebp - 0x18], eax
mov al, byte [ecx]
inc ecx
test al, al
jne 0x413121
sub ecx, dword [ebp - 0x18]
push 0xc00
push 1
mov byte [edx + ecx - 1], al
call fcn.0044aad9
add esp, 8
mov dword [ebx + 0x2da14], eax
mov ecx, ebx
push 0
push 0
push 0x470a28
push str.X_ITS_Content_Length:
push esi
push 0xc00
push eax
call fcn.00413d00
mov edx, dword [ebx + 0x2da14]
mov ecx, edx
lea eax, [ecx + 1]
mov dword [ebp - 0x18], eax
nop
mov al, byte [ecx]
inc ecx
test al, al
jne 0x413170
sub ecx, dword [ebp - 0x18]
push 0xc00
push 1
mov byte [edx + ecx - 1], al
call fcn.0044aad9
add esp, 8
mov dword [ebx + 0x2da18], eax
mov ecx, ebx
push 0
push 0
push 0x470a28
push str.x_public_keys_size:
push esi
push 0xc00
push eax
call fcn.00413d00
mov edx, dword [ebx + 0x2da18]
mov ecx, edx
lea eax, [ecx + 1]
mov dword [ebp - 0x18], eax
nop dword [eax]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x4131c0
sub ecx, dword [ebp - 0x18]
push 0xc00
push 1
mov byte [edx + ecx - 1], al
call fcn.0044aad9
add esp, 8
mov dword [ebx + 0x2e808], eax
mov ecx, ebx
push 0
push 0
push 0x470a28
push str.x_multi_public_keys_size:
push esi
push 0xc00
push eax
call fcn.00413d00
mov edx, dword [ebx + 0x2e808]
mov ecx, edx
lea eax, [ecx + 1]
mov dword [ebp - 0x18], eax
nop dword [eax]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x413210
sub ecx, dword [ebp - 0x18]
push esi
mov byte [edx + ecx - 1], al
call dword [sym.imp.KERNEL32.dll_GlobalFree]
push dword [ebx + 0x2da14]
call fcn.004554d0
push dword [ebx + 0x2da18]
mov dword [ebx + 0x2da1c], eax
call fcn.004554d0
push dword [ebx + 0x2e808]
mov dword [ebx + 0x2da0c], eax
call fcn.004554d0
mov dword [ebx + 0x2e80c], eax
add esp, 0xc
mov eax, dword [ebx + 0x2da1c]
test eax, eax
jne 0x413274
mov dword [ebx + 0x2da1c], 0x18c00
mov eax, 0x18c00
add eax, eax
push eax
push 0x40
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov dword [ebx + 0x2da10], eax
mov dword [eax], 0
lea eax, [ebp - 0x1050]
mov esi, dword [ebx + 0x2da10]
push eax
push 0x800
push esi
push edi
mov edi, dword [sym.imp.WININET.dll_InternetReadFile]
call edi
cmp eax, 1
jne 0x4132d9
mov ebx, dword [ebp - 0x1044]
mov eax, dword [ebp - 0x1050]
test eax, eax
je 0x4132d3
add esi, eax
lea eax, [ebp - 0x1050]
push eax
push 0x800
push esi
push ebx
call edi
cmp eax, 1
je 0x4132b2
mov ebx, dword [ebp - 0x1058]
mov byte [esi], 0
mov edx, dword [ebx + 0x2da10]
mov ecx, edx
lea esi, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x4132e7
push 0
push 0x46d9ec
sub ecx, esi
push ecx
push edx
push 0
push 0xfde9
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
mov dword [ebx + 0x2da08], eax
test eax, eax
je 0x4133cb
lea eax, [eax*2 + 2]
push eax
push 0x40
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov edx, dword [ebx + 0x2da10]
mov esi, eax
mov ecx, edx
lea edi, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x413331
push dword [ebx + 0x2da08]
sub ecx, edi
push esi
push ecx
push edx
push 0
push 0xfde9
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
push dword [ebx + 0x2da10]
call dword [sym.imp.KERNEL32.dll_GlobalFree]
mov eax, dword [ebx + 0x2da08]
xor ecx, ecx
mov word [esi + eax*2], cx
mov ecx, esi
lea edx, [ecx + 2]
nop dword [eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x413370
sub ecx, edx
sar ecx, 1
lea eax, [ecx*2 + 2]
push eax
push 0x40
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov ecx, esi
mov edx, eax
mov dword [ebx + 0x2d9fc], edx
lea edi, [ecx + 2]
nop dword [eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4133a0
sub ecx, edi
sar ecx, 1
push esi
lea eax, [ecx + 1]
push eax
push edx
call fcn.004539f4
add esp, 0xc
push esi
call dword [sym.imp.KERNEL32.dll_GlobalFree]
push str.Downloading_successful
jmp 0x4133d0
push str.Downloading_failed
push dword [0x504e50]
call fcn.00440eb0
add esp, 8
push dword [ebp - 0x1044]
call dword [sym.imp.WININET.dll_InternetCloseHandle]
push dword [ebp - 0x1048]
push 0x470ab4
push 5
push dword [ebp - 0x105c]
call fcn.00407d80
add esp, 0x10
call dword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x41340f
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00444ab5
mov esp, ebp
pop ebp
ret 8