Function at 0x140009890
Capabilities:
Encode data using xor
Get file size

Disassembly:
push rbp
push rsi
push rdi
push r14
push r15
lea rbp, [rsp - 0x90]
sub rsp, 0x190
mov qword [rsp + 0x40], 0xfffffffffffffffe
mov qword [rsp + 0x1d0], rbx
mov rax, qword [0x1401150f8]
xor rax, rsp
mov qword [rbp + 0x80], rax
mov r14, rdx
mov r15, rcx
xor ebx, ebx
mov qword [rsp + 0x30], rbx
mov dword [rsp + 0x28], 0x80
mov dword [rsp + 0x20], 3
xor r9d, r9d
mov edx, 0x80000000
lea r8d, [rbx + 1]
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov rdi, rax
cmp rax, 0xffffffffffffffff
je 0x140009b41
mov dword [rsp + 0x68], ebx
lea rdx, [rsp + 0x68]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetFileSize]
mov esi, eax
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
lea ecx, [rsi - 1]
cmp ecx, 0x9fffff
ja 0x140009b41
mov qword [rsp + 0x60], socket
mov qword [rsp + 0x58], rbx
mov byte [rsp + 0x48], bl
xor edx, edx
mov r8d, 0x110
lea rcx, [rsp + 0x70]
call fcn.1400c1990
mov rdx, r14
lea rcx, [rsp + 0x70]
call fcn.140009f40
nop
mov rax, qword [rsp + 0x58]
cmp rsi, rax
ja 0x14000998b
mov qword [rsp + 0x58], rsi
lea rax, [rsp + 0x48]
cmp qword [rsp + 0x60], 0x10
cmovae rax, qword [rsp + 0x48]
mov byte [rax + rsi], bl
jmp 0x14000999e
mov rdx, rsi
sub rdx, rax
xor r8d, r8d
lea rcx, [rsp + 0x48]
call fcn.14000b170
lea rdx, [rsp + 0x48]
cmp qword [rsp + 0x60], 0x10
cmovae rdx, qword [rsp + 0x48]
mov r8, rsi
lea rcx, [rsp + 0x70]
call fcn.14000ab60
lea rdi, [rbp - 0x80]
cmp qword [rbp], 0
jne 0x1400099cc
mov rdi, rbx
jmp 0x1400099ea
lea rcx, [rbp - 0x80]
call fcn.14000b360
test al, al
cmove rdi, rbx
mov rcx, qword [rbp]
call fcn.1400c6d14
test eax, eax
cmovne rdi, rbx
xor edx, edx
lea r8d, [rdx + 2]
lea rcx, [rbp - 0x80]
call fcn.14000b530
test rdi, rdi
jne 0x140009a29
mov rax, qword [rsp + 0x70]
movsxd rcx, dword [rax + 4]
lea r9, [rsp + 0x70]
add rcx, r9
mov eax, dword [rcx + 0x10]
or eax, 2
mov edx, eax
or edx, 4
cmp qword [rcx + 0x48], rdi
cmovne edx, eax
xor r8d, r8d
call fcn.140005c10
mov rax, qword [rsp + 0x58]
test rax, rax
jne 0x140009a3a
xor bl, bl
jmp 0x140009b13
cmp rax, 0x160
jne 0x140009a33
lea rdx, [rsp + 0x48]
cmp qword [rsp + 0x60], 0x10
cmovae rdx, qword [rsp + 0x48]
lea r8, [rdx + 0xc]
mov r9d, dword [r8]
mov eax, dword [rdx]
xor eax, 0x100198c
cmp r9d, eax
jne 0x140009a33
mov ecx, 4
movd xmm2, r9d
pshufd xmm2, xmm2, 0
lea rax, [rdx + 0x10]
lea r9, [rdx + 0x15c]
cmp rax, r8
ja 0x140009a90
cmp r9, r8
jae 0x140009ad0
nop word [rax + rax]
movdqu xmm0, xmmword [rdx + rcx*4]
movdqa xmm1, xmm2
pxor xmm1, xmm0
movdqu xmmword [rdx + rcx*4], xmm1
movdqu xmm0, xmmword [rax + rcx*4]
movdqa xmm1, xmm2
pxor xmm1, xmm0
movdqu xmmword [rax + rcx*4], xmm1
add rcx, 8
cmp rcx, 0x54
jb 0x140009a90
cmp rcx, 0x58
jae 0x140009adf
nop dword [rax]
nop dword [rax + rax]
mov eax, dword [r8]
xor dword [rdx + rcx*4], eax
inc rcx
cmp rcx, 0x58
jb 0x140009ad0
add rdx, 0x5c
cmp word [rdx], 0
je 0x140009afa
or rbx, 0xffffffffffffffff
nop dword [rax]
inc rbx
cmp word [rdx + rbx*2], 0
jne 0x140009af0
mov r8, rbx
mov rcx, r15
call fcn.140003290
mov rcx, r15
call fcn.140009bb0
mov dword [r15 + 0x20], eax
mov bl, 1
lea rcx, [rbp + 0x20]
call fcn.140009ec0
nop
lea rax, vtable.std::ios_base.0
mov qword [rbp + 0x20], rax
lea rcx, [rbp + 0x20]
call fcn.1400becb0
nop
lea rcx, [rsp + 0x48]
call fcn.1400014a0
movzx eax, bl
jmp 0x140009b43
xor al, al
mov rcx, qword [rbp + 0x80]
xor rcx, rsp
call fcn.1400c0280
mov rbx, qword [rsp + 0x1d0]
add rsp, 0x190
pop r15
pop r14
pop rdi
pop rsi
pop rbp
ret