Function at 0x180055254
Capabilities:
Encode data using xor

Disassembly:
push rbp
push rbx
push rsi
push rdi
push r12
push r14
push r15
lea rbp, [rsp - 0xf0]
sub rsp, 0x1f0
mov rax, qword [0x1802c0758]
xor rax, rsp
mov qword [rbp + 0xe0], rax
mov rdi, r8
mov rsi, rdx
mov r14, rcx
mov qword [rsp + 0x68], rcx
mov qword [rbp - 0x50], rdx
mov qword [rbp - 0x48], r8
xor r12d, r12d
mov dword [rsp + 0x40], r12d
mov r8b, r12b
lea rcx, [rsp + 0x48]
call fcn.180049cd0
nop
lea rcx, [rsp + 0x48]
call fcn.180058b78
mov bl, al
lea rcx, [rsp + 0x48]
call fcn.180057818
test bl, bl
jne 0x1800553e9
movsd xmm0, qword [str.u_YS]
movsd qword [rsp + 0x30], xmm0
mov eax, dword [0x1800a9ce0]
mov dword [rsp + 0x38], eax
movzx eax, word [0x1800a9ce4]
mov word [rsp + 0x3c], ax
mov al, byte [0x1800a9ce6]
mov byte [rsp + 0x3e], al
mov r8d, r12d
lea r9, [rsp + 0x30]
lea ebx, [r12 + 0xf]
mov eax, 0x1f7047dd
mul r8d
mov eax, r8d
sub eax, edx
shr eax, 1
add eax, edx
shr eax, 5
movsx eax, al
imul ecx, eax, 0x39
mov al, r8b
sub al, cl
add al, 0x33
xor byte [r9], al
inc r8d
inc r9
cmp r8d, ebx
jl 0x180055304
xorps xmm0, xmm0
movups xmmword [r14], xmm0
mov qword [r14 + 0x10], r12
mov qword [r14 + 0x18], r12
lea rax, [rsp + 0x30]
or r8, 0xffffffffffffffff
inc r8
cmp byte [rax + r8], r12b
jne 0x18005534b
lea rdx, [rsp + 0x30]
mov rcx, r14
call fcn.180034f40
nop
mov rdx, qword [rsi + 0x18]
mov r15d, 0x1000
cmp rdx, 0x10
jb 0x18005539a
mov rcx, qword [rsi]
inc rdx
cmp rdx, r15
jb 0x180055395
add rdx, 0x27
mov r8, qword [rcx - 8]
sub rcx, r8
lea rax, [rcx - 8]
cmp rax, 0x1f
ja 0x1800553e2
mov rcx, r8
call fcn.180097778
mov qword [rsi + 0x10], r12
mov qword [rsi + 0x18], rbx
mov byte [rsi], r12b
mov rdx, qword [rdi + 0x18]
cmp rdx, 0x10
jb 0x18005555a
inc rdx
mov rcx, qword [rdi]
cmp rdx, r15
jb 0x180055555
add rdx, 0x27
mov r8, qword [rcx - 8]
sub rcx, r8
lea rax, [rcx - 8]
cmp rax, 0x1f
jbe 0x180055552
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
nop
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
nop
xor edx, edx
mov r8d, pe_nt_image_headers64
lea rcx, [rbp - 0x30]
call sub.VCRUNTIME140.dll_memset
mov rdx, rsi
cmp qword [rsi + 0x18], 0x10
jb 0x180055407
mov rdx, qword [rsi]
mov dword [rsp + 0x20], 1
mov r9d, 0x40
lea r8d, [r9 - 0x3f]
lea rcx, [rbp - 0x30]
call fcn.180051d18
mov rax, qword [rbp - 0x30]
movsxd rcx, dword [rax + 4]
lea rax, vtable.std::basic_ifstream_char__struct_std::char_traits_char__.0
mov qword [rbp + rcx - 0x30], rax
mov rax, qword [rbp - 0x30]
movsxd rcx, dword [rax + 4]
lea edx, [rcx - 0xb0]
mov dword [rbp + rcx - 0x34], edx
mov qword [rbp - 0x58], r12
mov byte [rsp + 0x20], r12b
mov r9b, 1
lea r8, [rsp + 0x70]
lea rdx, [rbp - 0x30]
lea rcx, [rbp - 0x40]
call fcn.18004fb38
nop
xorps xmm0, xmm0
movups xmmword [rsp + 0x48], xmm0
mov qword [rsp + 0x58], r12
mov qword [rsp + 0x60], r12
mov rdx, rdi
cmp qword [rdi + 0x18], 0x10
jb 0x180055486
mov rdx, qword [rdi]
mov r8, qword [rdi + 0x10]
lea rcx, [rsp + 0x48]
call fcn.1800452b4
lea rdx, [rsp + 0x48]
lea rcx, [rbp - 0x40]
call fcn.1800533e0
nop
xorps xmm0, xmm0
movups xmmword [r14], xmm0
mov qword [r14 + 0x10], r12
mov ebx, reloc.WS2_32.dll_ntohs
mov qword [r14 + 0x18], rbx
mov byte [r14], r12b
mov dword [rsp + 0x40], 8
mov rdx, r14
mov rcx, rax
call fcn.18004dd6c
nop
mov dl, byte [rbp - 0x40]
lea rcx, [rbp - 0x38]
call fcn.180057f50
nop
lea rcx, [rbp - 0x30]
call fcn.180053608
nop
mov rdx, qword [rsi + 0x18]
mov r15d, 0x1000
cmp rdx, 0x10
jb 0x18005551d
mov rcx, qword [rsi]
inc rdx
cmp rdx, r15
jb 0x180055518
add rdx, 0x27
mov r8, qword [rcx - 8]
sub rcx, r8
lea rax, [rcx - 8]
cmp rax, 0x1f
ja 0x180055589
mov rcx, r8
call fcn.180097778
mov qword [rsi + 0x10], r12
mov qword [rsi + 0x18], rbx
mov byte [rsi], r12b
mov rdx, qword [rdi + 0x18]
cmp rdx, 0x10
jb 0x18005555a
inc rdx
mov rcx, qword [rdi]
cmp rdx, r15
jb 0x180055555
add rdx, 0x27
mov r8, qword [rcx - 8]
sub rcx, r8
lea rax, [rcx - 8]
cmp rax, 0x1f
ja 0x180055590
mov rcx, r8
call fcn.180097778
mov rax, r14
mov byte [rdi], r12b
mov qword [rdi + 0x18], rbx
mov qword [rdi + 0x10], r12
mov rcx, qword [rbp + 0xe0]
xor rcx, rsp
call fcn.180097d30
add rsp, 0x1f0
pop r15
pop r14
pop r12
pop rdi
pop rsi
pop rbx
pop rbp
ret
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
nop
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3