Function at 0x1006d5c0
Capabilities:
Download url
Encode data using xor
Receive data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1007102d
mov eax, dword fs:[0]
push eax
sub esp, 0x4c
mov eax, dword [0x100af010]
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 byte [ebp - 0x34], 0
mov dword [ebp - 0x50], 0
mov dword [ebp - 0x40], 0
mov dword [ebp - 0x3c], 0xf
mov byte [ebp - 0x50], 0
push 0
push 0
lea eax, [ebp - 0x54]
mov dword [ebp - 4], 1
push eax
push str.https:__raw.githubusercontent.com_casulguy_rl_main_s
push 0
call dword [sym.imp.urlmon.dll_URLOpenBlockingStreamA]
test eax, eax
je 0x1006d62f
xor al, al
jmp 0x1006d7cb
mov ebx, dword [ebp - 0x38]
lea ecx, [ebp - 0x50]
push 0
push 0x100726df
call fcn.100558c0
mov ecx, dword [ebp - 0x54]
lea edx, [ebp - 0x38]
push edx
push 1
lea edx, [ebp - 0x34]
mov eax, dword [ecx]
push edx
push ecx
call dword [eax + 0xc]
cmp dword [ebp - 0x38], 0
mov edi, eax
je 0x1006d78a
test edi, edi
js 0x1006d7e7
mov edx, dword [ebp - 0x40]
mov esi, dword [ebp - 0x3c]
cmp edx, esi
jae 0x1006d68f
cmp esi, 0x10
lea ecx, [ebp - 0x50]
lea eax, [edx + 1]
cmovae ecx, dword [ebp - 0x50]
mov dword [ebp - 0x40], eax
mov al, byte [ebp - 0x34]
mov byte [ecx + edx], al
mov byte [ecx + edx + 1], 0
jmp 0x1006d69c
push dword [ebp - 0x34]
push ebx
push ecx
lea ecx, [ebp - 0x50]
call fcn.1005be60
cmp byte [ebp - 0x34], 0xa
jne 0x1006d641
mov esi, dword [ebp - 0x50]
lea eax, [ebp - 0x50]
mov ecx, 0x10
cmp dword [ebp - 0x40], ecx
cmovb ecx, dword [ebp - 0x40]
cmp dword [ebp - 0x3c], 0x10
push ecx
cmovae eax, esi
push eax
lea eax, [ebp - 0x30]
push eax
call sub.VCRUNTIME140.dll_memcpy
add esp, 0xc
mov byte [ebp - 0x20], 0
lea edx, [ebp - 0x1c]
lea ecx, [ebp - 0x30]
call fcn.1006d410
xor bl, bl
mov al, 0x5a
mov edx, str.ZnVjayB5b3UgYml0Y2g
movsx eax, al
mov ecx, eax
shl ecx, 4
sub ecx, eax
and ecx, 0x8000007f
jns 0x1006d6f8
dec ecx
or ecx, 0xffffff80
inc ecx
mov al, byte [edx + 1]
inc edx
add cl, 0x11
add bl, cl
test al, al
jne 0x1006d6e1
xor eax, eax
movsx ecx, bl
movsx edx, al
imul edx, ecx
mov cl, byte [ebp + eax - 0x1c]
xor cl, 0xaa
add dl, cl
mov byte [ebp + eax - 0x1c], dl
inc eax
cmp eax, 0xc
jl 0x1006d707
lea ecx, [ebp - 0x1c]
mov eax, dword [ecx]
cmp eax, dword [0x100b03fc]
jne 0x1006d746
mov eax, dword [ecx + 4]
cmp eax, dword [0x100b0400]
jne 0x1006d746
mov eax, dword [ecx + 8]
cmp eax, dword [0x100b0404]
je 0x1006d75a
cmp edi, 1
jne 0x1006d62f
mov eax, dword [ebp - 0x54]
push eax
mov ecx, dword [eax]
call dword [ecx + 8]
jmp 0x1006d761
mov byte [0x100b03e1], 1
mov eax, dword [ebp - 0x3c]
cmp eax, 0x10
jb 0x1006d7c9
lea ecx, [eax + 1]
mov eax, esi
cmp ecx, 0x1000
jb 0x1006d786
mov esi, dword [esi - 4]
add ecx, 0x23
sub eax, esi
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x1006d7b9
push ecx
push esi
jmp 0x1006d7c1
mov eax, dword [ebp - 0x54]
push eax
mov ecx, dword [eax]
call dword [ecx + 8]
mov edx, dword [ebp - 0x3c]
cmp edx, 0x10
jb 0x1006d7c9
mov ecx, dword [ebp - 0x50]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x1006d7bf
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x1006d7bf
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push edx
push ecx
call fcn.1006e2ca
add esp, 8
mov al, 1
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.1006db86
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp - 0x54]
push eax
mov ecx, dword [eax]
call dword [ecx + 8]
push str.Read_failed
lea ecx, [ebp - 0x1c]
call fcn.10056180
push 0x100acce4
lea eax, [ebp - 0x1c]
push eax
call sub.VCRUNTIME140.dll__CxxThrowException
int3