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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1008c2ed
mov eax, dword fs:[0]
push eax
sub esp, 0x48
mov eax, dword [0x100d7010]
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
call fcn.100645a0
call fcn.10064810
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_v
push 0
call dword [sym.imp.urlmon.dll_URLOpenBlockingStreamA]
test eax, eax
je 0x100643b5
xor al, al
jmp 0x10064552
mov ebx, dword [ebp - 0x38]
lea ecx, [ebp - 0x50]
push 0
push 0x10098bdb
call fcn.10053430
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 0x10064517
test edi, edi
js 0x1006456e
mov edx, dword [ebp - 0x40]
lea ecx, [ebp - 0x50]
mov esi, dword [ebp - 0x3c]
cmp edx, esi
jae 0x10064415
cmp esi, 0x10
lea eax, [edx + 1]
mov dword [ebp - 0x40], eax
cmovae ecx, dword [ebp - 0x50]
mov al, byte [ebp - 0x34]
mov byte [ecx + edx], al
mov byte [ecx + edx + 1], 0
jmp 0x10064420
push dword [ebp - 0x34]
push ebx
push 1
call fcn.10053d20
cmp byte [ebp - 0x34], 0xa
jne 0x100643c7
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 fcn.10067c30
add esp, 0xc
mov byte [ebp - 0x20], 0
lea edx, [ebp - 0x1c]
lea ecx, [ebp - 0x30]
call fcn.10064970
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 0x1006447c
dec ecx
or ecx, 0xffffff80
inc ecx
mov al, byte [edx + 1]
inc edx
add cl, 0x11
add bl, cl
test al, al
jne 0x10064465
xor eax, eax
nop dword [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 0x10064490
lea ecx, [ebp - 0x1c]
mov eax, dword [ecx]
cmp eax, dword [0x100d9354]
jne 0x100644cf
mov eax, dword [ecx + 4]
cmp eax, dword [0x100d9358]
jne 0x100644cf
mov eax, dword [ecx + 8]
cmp eax, dword [0x100d935c]
je 0x100644e3
cmp edi, 1
jne 0x100643b5
mov eax, dword [ebp - 0x54]
push eax
mov ecx, dword [eax]
call dword [ecx + 8]
jmp 0x100644ea
mov byte [0x100d931e], 1
mov eax, dword [ebp - 0x3c]
cmp eax, 0x10
jb 0x10064550
lea ecx, [eax + 1]
mov eax, esi
cmp ecx, 0x1000
jb 0x10064513
mov esi, dword [esi - 4]
add ecx, 0x23
sub eax, esi
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x10064592
push ecx
push esi
jmp 0x10064548
mov eax, dword [ebp - 0x54]
push eax
mov ecx, dword [eax]
call dword [ecx + 8]
mov edx, dword [ebp - 0x3c]
cmp edx, 0x10
jb 0x10064550
mov ecx, dword [ebp - 0x50]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x10064546
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x10064592
push edx
push ecx
call fcn.10065334
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.10064b15
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.10054420
push 0x100d593c
lea eax, [ebp - 0x1c]
push eax
call fcn.10067b4a
call fcn.10073817
int3