Function at 0x140018090
Capabilities:
Check if file exists
Encode data using xor
Read file on windows

Disassembly:
push rbp
push rbx
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x398]
sub rsp, 0x498
mov rax, qword [0x140317e98]
xor rax, rsp
mov qword [rbp + 0x380], rax
mov rbx, r9
mov qword [rsp + 0x78], rbx
mov rax, r8
mov qword [rsp + 0x70], rax
mov qword [rsp + 0x68], rdx
mov r14, rcx
mov qword [rsp + 0x50], rcx
xor r8d, r8d
lea rdx, [0x1402413a8]
mov rcx, rax
call fcn.140007850
xor r8d, r8d
lea rdx, [0x1402413a8]
mov rcx, rbx
call fcn.140007850
mov r12, 0xffffffffffffffff
mov dword [rbp - 0x40], r12d
xor r15d, r15d
mov qword [rbp - 0x38], r15
mov qword [rbp - 0x20], 0xf
mov qword [rbp - 0x28], r15
mov byte [rbp - 0x38], r15b
mov dword [rbp - 0x18], r15d
mov qword [rbp - 0x10], r15
mov qword [rbp + 8], 0xf
mov qword [rbp], r15
mov byte [rbp - 0x10], r15b
mov qword [rbp + 0x10], r15
mov qword [rbp + 0x28], 0xf
mov qword [rbp + 0x20], r15
mov byte [rbp + 0x10], r15b
mov qword [rbp + 0x30], r15
mov qword [rbp + 0x48], 0xf
mov qword [rbp + 0x40], r15
mov byte [rbp + 0x30], r15b
mov qword [rbp + 0x50], r15
movdqa xmm0, xmmword [0x140247bd0]
movdqa xmmword [rbp + 0x60], xmm0
mov byte [rbp + 0x50], r15b
mov qword [rbp + 0x70], r15
mov qword [rbp + 0x88], 0xf
mov qword [rbp + 0x80], r15
mov byte [rbp + 0x70], r15b
mov dword [rbp + 0x90], r15d
lea rcx, [rsp + 0x60]
call fcn.140029d60
nop
lea r8, str.proxyproxy.cfg
mov rdx, rax
lea rcx, [rsp + 0x38]
call fcn.14000bd80
nop
mov rdx, qword [rsp + 0x60]
add rdx, 0xffffffffffffffe8
mov eax, r12d
lock xadd dword [rdx + 0x10], eax
sub eax, 1
jg 0x1400181d5
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + 8]
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.SHLWAPI.dll_PathFileExistsW]
mov r13d, 1
test eax, eax
jne 0x14001825f
call fcn.140004b20
mov rcx, rax
test rax, rax
je 0x140018aa1
mov rax, qword [rax]
call qword [rax + 0x18]
add rax, 0x18
mov qword [rsp + 0x40], rax
mov r8, qword [rsp + 0x38]
lea rdx, str.Cant_find___s___so_use_browser_proxy_
lea rcx, [rsp + 0x40]
call fcn.14000c550
lea r8, [0x140241920]
lea rdx, str.GetCurrentProxy
mov rbx, qword [rsp + 0x40]
mov rcx, rbx
call fcn.14002c680
nop
lea rdx, [rbx - 0x18]
mov eax, r12d
lock xadd dword [rdx + 0x10], eax
sub eax, r13d
jg 0x1400185f8
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + 8]
jmp 0x1400185f8
lea rax, [rbp + 0x108]
mov qword [rbp + 0x100], rax
mov r8d, 3
mov rdx, qword [rsp + 0x38]
lea rcx, [rbp + 0x100]
call fcn.140005270
nop
mov qword [rbp + 0xa0], r15
mov qword [rbp + 0xb0], r15
mov qword [rbp + 0xb8], 0xf
mov byte [rbp + 0xa0], 0
mov rdx, qword [rbp + 0x100]
mov r8, r12
nop
inc r8
cmp byte [rdx + r8], 0
jne 0x1400182b0
lea rcx, [rbp + 0xa0]
call fcn.140007850
nop
lea rax, [rbp + 0x108]
mov rcx, qword [rbp + 0x100]
cmp rcx, rax
je 0x1400182df
call fcn.1400e9e10
mov qword [rbp - 0x60], r15
mov qword [rbp - 0x50], r15
mov qword [rbp - 0x48], 0xf
mov byte [rbp - 0x60], 0
mov qword [rsp + 0x30], r15
lea rdx, [rbp + 0xa0]
cmp qword [rbp + 0xb8], 0x10
cmovae rdx, qword [rbp + 0xa0]
lea r8, [0x140245be0]
lea rcx, [rsp + 0x30]
call fcn.1400eb8dc
mov rcx, qword [rsp + 0x30]
test rcx, rcx
je 0x14001887c
xor edx, edx
lea r8d, [rdx + 2]
call fcn.1400ec4a8
mov rcx, qword [rsp + 0x30]
call fcn.1400eca00
movsxd rbx, eax
xor r8d, r8d
xor edx, edx
mov rcx, qword [rsp + 0x30]
call fcn.1400ec4a8
mov rcx, rbx
call fcn.1400d7860
mov rdi, rax
mov r9, qword [rsp + 0x30]
mov r8, rbx
mov rdx, r13
mov rcx, rax
call fcn.1400ec198
mov r8, rbx
mov rdx, rdi
lea rcx, [rbp - 0x60]
call fcn.140007850
mov rcx, rdi
call fcn.1400d7558
mov rcx, qword [rsp + 0x30]
call fcn.1400eb9e0
mov rsi, qword [rbp - 0x50]
test rsi, rsi
je 0x14001887c
mov qword [rbp - 0x80], r15
mov qword [rbp - 0x70], r15
mov qword [rbp - 0x68], r15
lea r14, [rbp - 0x60]
mov rdi, qword [rbp - 0x60]
mov r15, qword [rbp - 0x48]
cmp r15, 0x10
cmovae r14, rdi
cmp rsi, 0x10
jae 0x1400183d9
movups xmm0, xmmword [r14]
movups xmmword [rbp - 0x80], xmm0
mov qword [rbp - 0x68], 0xf
jmp 0x140018452
mov rbx, rsi
or rbx, 0xf
movabs rax, 0x7fffffffffffffff
cmp rbx, rax
cmova rbx, rax
lea rcx, [rbx + 1]
cmp rcx, 0x1000
jb 0x14001842d
lea rax, [rcx + 0x27]
cmp rax, rcx
jbe 0x140018aac
mov rcx, rax
call fcn.1400d7034
mov rcx, rax
test rax, rax
je 0x140018ab2
add rax, 0x27
and rax, 0xffffffffffffffe0
mov qword [rax - 8], rcx
jmp 0x14001843b
test rcx, rcx
je 0x140018439
call fcn.1400d7034
jmp 0x14001843b
xor eax, eax
mov qword [rbp - 0x80], rax
lea r8, [rsi + 1]
mov rdx, r14
mov rcx, rax
call fcn.1400d9910
mov qword [rbp - 0x68], rbx
mov qword [rbp - 0x70], rsi
mov ecx, 0x40
call fcn.1400d7034
mov r10, rax
movups xmm0, xmmword [str.PROXY_SETTING_KEY_5D95F5F8_8C42_427D_A0A1_79016036E373]
movups xmmword [rax], xmm0
movups xmm1, xmmword [0x140246da0]
movups xmmword [rax + 0x10], xmm1
movups xmm0, xmmword [0x140246db0]
movups xmmword [rax + 0x20], xmm0
mov ecx, dword [0x140246dc0]
mov dword [rax + 0x30], ecx
movzx ecx, word [0x140246dc4]
mov word [rax + 0x34], cx
mov byte [rax + 0x36], 0
mov r11, qword [rbp - 0x70]
xor r9d, r9d
test r11, r11
je 0x1400184e4
movabs rbx, 0x97b425ed097b425f
mov rax, rbx
mul r9
shr rdx, 5
imul rax, rdx, 0x36
mov rcx, r9
sub rcx, rax
movzx r8d, byte [rcx + r10]
lea rax, [rbp - 0x80]
cmp qword [rbp - 0x68], 0x10
cmovae rax, qword [rbp - 0x80]
xor byte [rax + r9], r8b
inc r9
cmp r9, r11
jne 0x1400184b1
mov edx, 0x40
mov rcx, r10
call fcn.1400d7558
lea rdx, [rbp - 0x80]
lea rcx, [rbp - 0x40]
call fcn.140005c10
lea rcx, [rbp - 0x40]
call fcn.1400054e0
test al, al
je 0x140018516
cmp dword [rbp - 0x40], 3
jne 0x140018530
mov sil, 1
jmp 0x140018533
lea r8, [0x140241920]
lea rdx, str.GetCurrentProxy
lea rcx, str.proxySetting_is_not_valid
call fcn.14002c680
xor sil, sil
mov rdx, qword [rbp - 0x68]
cmp rdx, 0x10
jb 0x14001856e
inc rdx
mov rcx, qword [rbp - 0x80]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140018569
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140018ab2
call fcn.1400d7558
mov r14, qword [rsp + 0x50]
cmp r15, 0x10
jb 0x1400185ab
lea rdx, [r15 + 1]
mov rax, rdi
cmp rdx, 0x1000
jb 0x1400185a2
add rdx, 0x27
mov rdi, qword [rdi - 8]
sub rax, rdi
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140018ab8
mov rcx, rdi
call fcn.1400d7558
nop
mov rdx, qword [rbp + 0xb8]
cmp rdx, 0x10
jb 0x1400185ec
inc rdx
mov rcx, qword [rbp + 0xa0]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400185e7
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140018ac9
call fcn.1400d7558
test sil, sil
je 0x140018850
xor r15d, r15d
lea rdx, [rbp + 0x2a0]
mov rcx, r14
call fcn.140017d90
mov rbx, rax
mov ecx, dword [rax]
mov dword [rbp - 0x40], ecx
lea rdi, [rax + 8]
lea rax, [rbp - 0x38]
cmp rax, rdi
je 0x140018685
mov rdx, qword [rbp - 0x20]
cmp rdx, 0x10
jb 0x140018657
inc rdx
mov rcx, qword [rbp - 0x38]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140018652
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140018acf
call fcn.1400d7558
mov qword [rbp - 0x28], r15
mov qword [rbp - 0x20], 0xf
mov byte [rbp - 0x38], 0
movups xmm0, xmmword [rdi]
movups xmmword [rbp - 0x38], xmm0
movups xmm1, xmmword [rdi + 0x10]
movups xmmword [rbp - 0x28], xmm1
mov qword [rdi + 0x10], r15
mov qword [rdi + 0x18], 0xf
mov byte [rdi], 0
mov eax, dword [rbx + 0x28]
mov dword [rbp - 0x18], eax
lea rdi, [rbx + 0x30]
lea rax, [rbp - 0x10]
cmp rax, rdi
je 0x140018702
mov rdx, qword [rbp + 8]
cmp rdx, 0x10
jb 0x1400186d3
inc rdx
mov rcx, qword [rbp - 0x10]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400186ce
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140018acf
call fcn.1400d7558
movdqa xmm0, xmmword [0x140247bd0]
movdqa xmmword [rbp], xmm0
mov byte [rbp - 0x10], 0
movups xmm0, xmmword [rdi]
movaps xmmword [rbp - 0x10], xmm0
movups xmm1, xmmword [rdi + 0x10]
movaps xmmword [rbp], xmm1
mov qword [rdi + 0x10], r15
mov qword [rdi + 0x18], 0xf
mov byte [rdi], 0
lea rdi, [rbx + 0x50]
lea rax, [rbp + 0x10]
cmp rax, rdi
je 0x140018779
mov rdx, qword [rbp + 0x28]
cmp rdx, 0x10
jb 0x14001874a
inc rdx
mov rcx, qword [rbp + 0x10]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140018745
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140018acf
call fcn.1400d7558
movdqa xmm0, xmmword [0x140247bd0]
movdqa xmmword [rbp + 0x20], xmm0
mov byte [rbp + 0x10], 0
movups xmm0, xmmword [rdi]
movaps xmmword [rbp + 0x10], xmm0
movups xmm1, xmmword [rdi + 0x10]
movaps xmmword [rbp + 0x20], xmm1
mov qword [rdi + 0x10], r15
mov qword [rdi + 0x18], 0xf
mov byte [rdi], 0
lea rdi, [rbx + 0x70]
lea rax, [rbp + 0x30]
cmp rax, rdi
je 0x1400187f0
mov rdx, qword [rbp + 0x48]
cmp rdx, 0x10
jb 0x1400187c1
inc rdx
mov rcx, qword [rbp + 0x30]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400187bc
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140018acf
call fcn.1400d7558
movdqa xmm0, xmmword [0x140247bd0]
movdqa xmmword [rbp + 0x40], xmm0
mov byte [rbp + 0x30], 0
movups xmm0, xmmword [rdi]
movaps xmmword [rbp + 0x30], xmm0
movups xmm1, xmmword [rdi + 0x10]
movaps xmmword [rbp + 0x40], xmm1
mov qword [rdi + 0x10], r15
mov qword [rdi + 0x18], 0xf
mov byte [rdi], 0
lea rdx, [rbx + 0x90]
lea rcx, [rbp + 0x50]
call fcn.140014b00
lea rdx, [rbx + 0xb0]
lea rcx, [rbp + 0x70]
call fcn.140014b00
movzx eax, byte [rbx + 0xd0]
mov byte [rbp + 0x90], al
movzx eax, byte [rbx + 0xd1]
mov byte [rbp + 0x91], al
movzx eax, byte [rbx + 0xd2]
mov byte [rbp + 0x92], al
movzx eax, byte [rbx + 0xd3]
mov byte [rbp + 0x93], al
lea rcx, [rbp + 0x2a0]
call fcn.1400146e0
cmp dword [rbp - 0x40], 0
jne 0x140018901
lea r8, [0x140241920]
lea rdx, str.GetCurrentProxy
lea rcx, str.No_proxy_detected_
call fcn.14002c680
xor r13d, r13d
jmp 0x140018a47
mov sil, 1
call fcn.140004b20
mov rcx, rax
test rax, rax
je 0x140018abe
mov rax, qword [rax]
call qword [rax + 0x18]
add rax, 0x18
mov qword [rsp + 0x48], rax
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov r9d, eax
mov r8, qword [rsp + 0x38]
lea rdx, str.Open_file___s__failed__last_error___d
lea rcx, [rsp + 0x48]
call fcn.14000c550
lea r8, [0x140241920]
lea rdx, str.GetCurrentProxy
mov rbx, qword [rsp + 0x48]
mov rcx, rbx
call fcn.14002c680
nop
lea rdx, [rbx - 0x18]
mov eax, r12d
lock xadd dword [rdx + 0x10], eax
sub eax, 1
jg 0x1400188f4
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + 8]
mov r15, qword [rbp - 0x48]
mov rdi, qword [rbp - 0x60]
jmp 0x140018573
lea rcx, [rbp - 0x40]
call fcn.140005260
test al, al
je 0x140018982
lea rcx, [rbp - 0x40]
call fcn.1400054c0
test al, al
je 0x140018982
lea rcx, [rbp - 0x40]
call fcn.140004c40
mov rcx, qword [rsp + 0x68]
mov dword [rcx], eax
lea rdx, [rbp + 0xc0]
lea rcx, [rbp - 0x40]
call fcn.140005980
mov rdx, rax
mov rcx, qword [rsp + 0x70]
call fcn.140014b00
lea rcx, [rbp + 0xc0]
call fcn.140003e80
lea rdx, [rbp + 0xe0]
lea rcx, [rbp - 0x40]
call fcn.140005a30
mov rdx, rax
mov rcx, qword [rsp + 0x78]
call fcn.140014b00
lea rcx, [rbp + 0xe0]
call fcn.140003e80
jmp 0x140018a47
call fcn.140004b20
mov rcx, rax
test rax, rax
je 0x140018a96
mov rax, qword [rax]
call qword [rax + 0x18]
add rax, 0x18
mov qword [rsp + 0x58], rax
lea rdx, [rbp - 0x38]
cmp qword [rbp - 0x20], 0x10
cmovae rdx, qword [rbp - 0x38]
lea rax, [rbp + 0x198]
mov qword [rbp + 0x190], rax
mov r8d, 0xfde9
lea rcx, [rbp + 0x190]
call fcn.14000aa00
nop
mov eax, dword [rbp - 0x18]
mov dword [rsp + 0x20], eax
mov r9, qword [rbp + 0x190]
mov r8d, dword [rbp - 0x40]
lea rdx, str.Invalid_proxy__type_d__proxy_s__port_d
lea rcx, [rsp + 0x58]
call fcn.14000c550
nop
lea rax, [rbp + 0x198]
mov rcx, qword [rbp + 0x190]
cmp rcx, rax
je 0x140018a0d
call fcn.1400e9e10
lea r8, [0x140241920]
lea rdx, str.GetCurrentProxy
mov rbx, qword [rsp + 0x58]
mov rcx, rbx
call fcn.14002c680
nop
lea rdx, [rbx - 0x18]
xor r13d, r13d
mov eax, r12d
lock xadd dword [rdx + 0x10], eax
sub eax, 1
jg 0x140018a47
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + 8]
nop
mov rdx, qword [rsp + 0x38]
add rdx, 0xffffffffffffffe8
lock xadd dword [rdx + 0x10], r12d
sub r12d, 1
jg 0x140018a67
mov rcx, qword [rdx]
mov r8, qword [rcx]
call qword [r8 + 8]
nop
lea rcx, [rbp - 0x40]
call fcn.1400146e0
mov eax, r13d
mov rcx, qword [rbp + 0x380]
xor rcx, rsp
call fcn.1400d7670
add rsp, 0x498
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbx
pop rbp
ret
mov ecx, 0x80004005
call fcn.1400049a0
nop
mov ecx, 0x80004005
call fcn.1400049a0
nop
call fcn.1400076e0
int3
call fcn.1400de97c
nop
call fcn.1400de97c
nop
mov ecx, 0x80004005
call fcn.1400049a0
nop
call fcn.1400de97c
int3
call fcn.1400de97c
int3