Function at 0x180058580
Capabilities:
Encode data using xor

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x460
mov rax, qword [0x1801be118]
xor rax, rsp
mov qword [rsp + 0x450], rax
mov rbx, rdx
mov r15, rcx
mov qword [rsp + 0x38], rdx
xor r12d, r12d
mov dword [rsp + 0x20], r12d
call fcn.180059ca0
mov r8, rbx
lea rdx, str.Loading__s_translations.
mov rcx, qword [0x1801dc8e0]
call fcn.1800558f0
nop
xorps xmm0, xmm0
xor eax, eax
movups xmmword [rsp + 0x3e0], xmm0
movups xmmword [rsp + 0x3f0], xmm0
movups xmmword [rsp + 0x400], xmm0
movups xmmword [rsp + 0x410], xmm0
movups xmmword [rsp + 0x420], xmm0
movups xmmword [rsp + 0x430], xmm0
mov dword [rsp + 0x440], eax
mov r9, rbx
lea r8, str._s.json
lea edx, [rax + 0x63]
lea rcx, [rsp + 0x3e0]
call fcn.18000c040
lea rcx, [r15 + 0x40]
mov qword [rsp + 0x250], rcx
mov rdi, 0xffffffffffffffff
mov rax, rdi
inc rax
cmp byte [rcx + rax], 0
jne 0x180058647
mov qword [rsp + 0x258], rax
call fcn.1800f1950
movaps xmm0, xmmword [rsp + 0x250]
movdqa xmmword [rsp + 0xb0], xmm0
lea r8, [rsp + 0xb0]
mov edx, eax
lea rcx, [rsp + 0x90]
call fcn.180056440
nop
lea rax, [rsp + 0x3e0]
mov qword [rsp + 0x250], rax
lea rcx, [rsp + 0x3e0]
mov rax, rdi
inc rax
cmp byte [rcx + rax], 0
jne 0x1800586a1
mov qword [rsp + 0x258], rax
call fcn.1800f1950
movaps xmm0, xmmword [rsp + 0x250]
movdqa xmmword [rsp + 0x60], xmm0
lea r8, [rsp + 0x60]
mov edx, eax
lea rcx, [rsp + 0x70]
call fcn.180056440
nop
lea rdx, [rsp + 0x70]
lea rcx, [rsp + 0x90]
call fcn.180056a60
mov rbx, rax
lea rcx, [rsp + 0x70]
call fcn.180057ce0
mov rdx, rbx
lea rcx, [rsp + 0x280]
call fcn.180057900
nop
lea rcx, [rsp + 0x90]
call fcn.180057ce0
xor edx, edx
mov r8d, 0x110
lea rcx, [rsp + 0x140]
call sub.VCRUNTIME140.dll_memset
lea rbx, [rsp + 0x280]
cmp qword [rsp + 0x298], 8
cmovae rbx, qword [rsp + 0x280]
lea rax, [0x18015ae60]
mov qword [rsp + 0x140], rax
lea rcx, [rsp + 0x1f0]
call qword [sym.imp.MSVCP140.dll_protected:_void___cdecl_std::basic_ios_char__struct_std::char_traits_char__::constructor_void____ptr64]
nop
mov r14d, 0x3e
mov dword [rsp + 0x20], r14d
xor r9d, r9d
xor r8d, r8d
lea rdx, [rsp + 0x150]
lea rcx, [rsp + 0x140]
call qword [sym.imp.MSVCP140.dll_public:_void___cdecl_std::basic_istream_char__struct_std::char_traits_char__::constructor_class_std::basic_streambuf_char__struct_std::char_traits_char______ptr64__bool____ptr64]
nop
mov rax, qword [rsp + 0x140]
movsxd rcx, dword [rax + 4]
lea r13, vtable.std::basic_ifstream_char__struct_std::char_traits_char__.0
mov qword [rsp + rcx + 0x140], r13
mov rax, qword [rsp + 0x140]
movsxd rcx, dword [rax + 4]
lea edx, [rcx - 0xb0]
mov dword [rsp + rcx + 0x13c], edx
lea rcx, [rsp + 0x150]
call qword [sym.imp.MSVCP140.dll_protected:_void___cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::constructor_void____ptr64]
lea rax, vtable.std::basic_filebuf_char__struct_std::char_traits_char__.0
mov qword [rsp + 0x150], rax
mov byte [rsp + 0x1cc], 0
mov byte [rsp + 0x1c1], 0
lea rcx, [rsp + 0x150]
call qword [sym.imp.MSVCP140.dll_protected:_void___cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::_Init_void____ptr64]
mov qword [rsp + 0x1d0], r12
mov rax, qword [0x180258cd0]
mov qword [rsp + 0x1c4], rax
mov qword [rsp + 0x1b8], r12
lea r8d, [r14 - 0x3d]
mov rdx, rbx
lea rcx, [rsp + 0x150]
call fcn.180055f40
test rax, rax
jne 0x180058855
mov rax, qword [rsp + 0x140]
movsxd rcx, dword [rax + 4]
lea rax, [rsp + 0x140]
add rcx, rax
xor r8d, r8d
lea edx, [r14 - 0x3c]
call qword [sym.imp.MSVCP140.dll_public:_void___cdecl_std::basic_ios_char__struct_std::char_traits_char__::setstate_int__bool____ptr64]
nop
mov rax, qword [rsp + 0x140]
movsxd rcx, dword [rax + 4]
mov qword [rsp + rcx + 0x140], r13
mov rax, qword [rsp + 0x140]
movsxd rcx, dword [rax + 4]
lea edx, [rcx - 0xb0]
mov dword [rsp + rcx + 0x13c], edx
mov rax, qword [rsp + 0x140]
movsxd rcx, dword [rax + 4]
lea rax, [rsp + 0x140]
add rcx, rax
call qword [sym.imp.MSVCP140.dll_public:_bool___cdecl_std::ios_base::good_void_const___ptr64]
test al, al
je 0x180058c69
xor edx, edx
mov r8d, 0xf8
lea rcx, [rsp + 0x2e0]
call sub.VCRUNTIME140.dll_memset
lea rcx, [rsp + 0x2e0]
call fcn.180059be0
nop
xorps xmm0, xmm0
movups xmmword [rsp + 0x260], xmm0
mov qword [rsp + 0x270], r12
mov qword [rsp + 0x278], reloc.WS2_32.dll_ntohs
mov byte [rsp + 0x260], 0
mov rax, qword [rsp + 0x140]
movsxd rcx, dword [rax + 4]
lea rax, [rsp + 0x140]
add rcx, rax
mov dl, 0xa
call qword [sym.imp.MSVCP140.dll_public:_char___cdecl_std::basic_ios_char__struct_std::char_traits_char__::widen_char_const___ptr64]
movzx r8d, al
lea rdx, [rsp + 0x260]
lea rcx, [rsp + 0x140]
call fcn.18005c200
mov rcx, qword [rax]
movsxd rcx, dword [rcx + 4]
add rcx, rax
call qword [sym.imp.MSVCP140.dll_public:_bool___cdecl_std::ios_base::operator_bool_void_const___ptr64]
test al, al
je 0x18005897b
lea rdx, [rsp + 0x260]
cmp qword [rsp + 0x278], 0x10
cmovae rdx, qword [rsp + 0x260]
mov r8, qword [rsp + 0x270]
lea rcx, [rsp + 0x2f0]
call fcn.180019c20
mov dl, 0xa
mov rcx, rax
call fcn.18005a5c0
jmp 0x1800588f1
lea rax, [rsp + 0xc0]
mov qword [rsp + 0x28], rax
mov qword [rsp + 0xf8], r12
mov ecx, Ordinal_41
call fcn.1801324e8
mov r9, rax
mov dword [rax + 8], 1
mov dword [rax + 0xc], 1
lea rax, vtable.std::_Ref_count_obj2_class_nlohmann::detail::input_stream_adapter_.0
mov qword [r9], rax
lea r8, [r9 + 0x10]
lea rax, vtable.nlohmann::detail::input_stream_adapter.0
mov qword [r8], rax
lea rax, [rsp + 0x2e0]
mov qword [r8 + 8], rax
mov rcx, qword [rsp + 0x2e0]
movsxd rdx, dword [rcx + 4]
mov rax, qword [rsp + rdx + 0x328]
mov qword [r8 + 0x10], rax
or r14d, 0x40
mov dword [rsp + 0x20], r14d
mov qword [rsp + 0x28], r8
mov qword [rsp + 0x30], r9
lea r8, [rsp + 0xc0]
lea rdx, [rsp + 0x28]
lea rcx, [rsp + 0x250]
call fcn.180001620
nop
mov rcx, qword [rsp + 0x30]
test rcx, rcx
je 0x180058a52
mov eax, edi
lock xadd dword [rcx + 8], eax
cmp eax, 1
jne 0x180058a4d
mov rbx, qword [rsp + 0x30]
mov rax, qword [rbx]
mov rcx, rbx
call qword [rax]
lock xadd dword [rbx + 0xc], edi
cmp edi, 1
jne 0x180058a4d
mov rcx, qword [rsp + 0x30]
mov rax, qword [rcx]
call qword [rax + reloc.WS2_32.dll_htonl]
mov r14d, dword [rsp + 0x20]
xorps xmm0, xmm0
movups xmmword [rsp + 0x2a0], xmm0
movups xmmword [rsp + 0x2b0], xmm0
movups xmmword [rsp + 0x2c0], xmm0
movups xmmword [rsp + 0x2d0], xmm0
lea rdx, [rsp + 0x2a0]
lea rcx, [rsp + 0x250]
call fcn.18005a790
nop
mov rdi, qword [rsp + 0x2a8]
mov rbx, qword [rdi]
cmp rbx, rdi
je 0x180058b8d
lea rsi, [rbx + 0x10]
xorps xmm0, xmm0
movups xmmword [rsp + 0x40], xmm0
mov qword [rsp + 0x50], r12
mov qword [rsp + 0x58], reloc.WS2_32.dll_ntohs
mov byte [rsp + 0x40], 0
or r14d, 1
mov dword [rsp + 0x20], r14d
cmp byte [rsi + 0x20], 3
jne 0x180058cfb
mov rdx, qword [rsi + 0x28]
lea rax, [rsp + 0x40]
cmp rax, rdx
je 0x180058af7
mov r8, qword [rdx + 0x10]
cmp qword [rdx + 0x18], 0x10
jb 0x180058aed
mov rdx, qword [rdx]
lea rcx, [rsp + 0x40]
call fcn.1800017a0
cmp qword [rsi + 0x18], 0x10
jb 0x180058b01
mov rsi, qword [rsi]
mov r9d, r12d
movzx r8d, byte [rsi]
test r8b, r8b
je 0x180058b4b
nop dword [rax]
lea rsi, [rsi + 1]
movsx edx, r8b
sub r8b, 0x41
lea eax, [rdx + 0x20]
movzx ecx, al
movzx eax, dl
cmp r8b, 0x19
cmova ecx, eax
movsx eax, cl
add eax, r9d
imul r9d, eax, 0x401
mov eax, r9d
shr eax, 6
xor r9d, eax
movzx r8d, byte [rsi]
test r8b, r8b
jne 0x180058b10
lea ecx, [r9 + r9*8]
mov eax, ecx
shr eax, 0xb
xor ecx, eax
imul eax, ecx, 0x8001
mov dword [rsp + 0x28], eax
lea r9, [rsp + 0x40]
lea r8, [rsp + 0x28]
lea rdx, [rsp + 0x60]
mov rcx, r15
call fcn.18005a9a0
and r14d, 0xfffffffe
lea rcx, [rsp + 0x40]
call fcn.18000fd50
mov rbx, qword [rbx]
jmp 0x180058a96
lea rcx, [rsp + 0x2a0]
call fcn.180058e50
nop
movzx ecx, byte [rsp + 0x250]
sub ecx, 1
je 0x180058bda
sub ecx, 1
je 0x180058bc6
cmp ecx, 1
jne 0x180058bfd
mov rcx, qword [rsp + 0x258]
call fcn.18000fd50
mov edx, reloc.WLDAP32.dll_Ordinal_32
jmp 0x180058bef
mov rcx, qword [rsp + 0x258]
call fcn.18000e000
mov edx, Ordinal_27
jmp 0x180058bef
mov rcx, qword [rsp + 0x258]
mov rdx, rcx
call fcn.18000ded0
mov edx, reloc.WS2_32.dll_recv
mov rcx, qword [rsp + 0x258]
call fcn.1801324e0
nop
lea rcx, [rsp + 0x260]
call fcn.18000fd50
nop
mov rax, qword [rsp + 0x2e0]
movsxd rcx, dword [rax + 4]
lea rax, vtable.std::basic_stringstream_char__struct_std::char_traits_char___class_std::allocator_char__.0
mov qword [rsp + rcx + 0x2e0], rax
mov rax, qword [rsp + 0x2e0]
movsxd rcx, dword [rax + 4]
lea edx, [rcx - 0x98]
mov dword [rsp + rcx + 0x2dc], edx
lea rcx, [rsp + 0x2f8]
call fcn.180059b20
lea rcx, [rsp + 0x300]
call qword [sym.imp.MSVCP140.dll_public_virtual:_void___cdecl_std::basic_iostream_char__struct_std::char_traits_char__::destructor_void____ptr64]
lea rcx, [rsp + 0x378]
call qword [sym.imp.MSVCP140.dll_public_virtual:_void___cdecl_std::basic_ios_char__struct_std::char_traits_char__::destructor_void____ptr64]
nop
mov rax, qword [rsp + 0x140]
movsxd rcx, dword [rax + 4]
mov qword [rsp + rcx + 0x140], r13
mov rax, qword [rsp + 0x140]
movsxd rcx, dword [rax + 4]
lea edx, [rcx - 0xb0]
mov dword [rsp + rcx + 0x13c], edx
lea rcx, [rsp + 0x150]
call fcn.18000f220
lea rcx, [rsp + 0x158]
call qword [sym.imp.MSVCP140.dll_public_virtual:_void___cdecl_std::basic_istream_char__struct_std::char_traits_char__::destructor_void____ptr64]
lea rcx, [rsp + 0x1f0]
call qword [sym.imp.MSVCP140.dll_public_virtual:_void___cdecl_std::basic_ios_char__struct_std::char_traits_char__::destructor_void____ptr64]
nop
lea rcx, [rsp + 0x280]
call fcn.180057ce0
nop
mov rcx, qword [rsp + 0x450]
xor rcx, rsp
call fcn.180132140
lea r11, [rsp + 0x460]
mov rbx, qword [r11 + 0x40]
mov rsi, qword [r11 + 0x48]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rdi
ret
lea rcx, [rsi + 0x20]
call fcn.18000dc50
mov rdx, rax
lea rcx, [rsp + 0x90]
call fcn.18000f9a0
nop
mov r8, rax
lea rdx, str.type_must_be_string__but_is
lea rcx, [rsp + 0x70]
call fcn.18000db20
nop
mov r8, rax
mov edx, 0x12e
lea rcx, [rsp + 0x100]
call fcn.18000d840
lea rdx, [0x1801b9960]
lea rcx, [rsp + 0x100]
call sub.VCRUNTIME140.dll__CxxThrowException
int3