Function at 0x140059c60
Capabilities:
Encode data using xor
Generate random numbers using a mersenne twister

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rsi
push rdi
push r14
push r15
lea rbp, [rsp - 0x1360]
mov eax, 0x1460
call fcn.140094c20
sub rsp, rax
mov rax, qword [0x1400c6048]
xor rax, rsp
mov qword [rbp + 0x1350], rax
mov rsi, rdx
mov rdi, rcx
movzx eax, byte [rdx]
dec eax
cmp eax, 0x19
ja case.0x140059cb9.2
cdqe
lea rdx, sym.MZ__40Qs__h_kogsa4_oN_ysU_uly8_qT_:_._Wgzmn_8__I
mov ecx, dword [rdx + rax*4 + 0x5a320]
add rcx, rdx
jmp rcx
cmp byte [rdi + 0x328], 0
je case.0x140059cb9.2
mov rbx, qword [rdi + 0x338]
movss xmm4, dword [rbx]
movaps xmm0, xmm4
mulss xmm0, dword [0x1400acbe4]
addss xmm0, dword [0x1400acbe8]
cvttss2si edx, xmm0
movss xmm3, dword [rbx + 4]
movaps xmm0, xmm3
mulss xmm0, dword [0x1400acbe4]
addss xmm0, dword [0x1400acbe8]
cvttss2si ecx, xmm0
mov word [rsp + 0x41], 0
mov byte [rsp + 0x43], 0
xor r14d, r14d
mov qword [rsp + 0x44], r14
mov qword [rsp + 0x4c], r14
mov qword [rsp + 0x60], r14
mov dword [rsp + 0x68], r14d
xor esi, esi
mov dword [rsp + 0x74], esi
mov byte [rsp + 0x40], 3
movzx eax, word [rdi + 0x32a]
mov dword [rsp + 0x54], eax
movss dword [rsp + 0x58], xmm4
movss dword [rsp + 0x5c], xmm3
mov dword [rsp + 0x6c], edx
mov dword [rsp + 0x70], ecx
xorps xmm0, xmm0
movups xmmword [rbp - 0x80], xmm0
xorps xmm1, xmm1
movdqu xmmword [rbp - 0x70], xmm1
lea r8d, [r14 + 0xb]
lea rdx, str.Using_bait_
lea rcx, [rbp - 0x80]
call fcn.140001e10
nop
lea rdx, [rbp - 0x80]
mov rcx, rbx
call fcn.140080980
nop
lea rcx, [rbp - 0x80]
call fcn.1400040d0
mov r15, qword [rdi + 0x10]
cmp qword [r15], rsi
je 0x140059de6
lea edx, [rsi + 0x3d]
xor ecx, ecx
lea r8d, [r14 + 1]
call fcn.1400924b0
mov rsi, rax
mov rax, qword [rax + 0x10]
mov dword [rax], 4
mov rax, qword [rsi + 0x10]
movups xmm0, xmmword [rsp + 0x40]
movups xmmword [rax + 4], xmm0
movups xmm1, xmmword [rsp + 0x50]
movups xmmword [rax + 0x14], xmm1
movups xmm0, xmmword [rsp + 0x60]
movups xmmword [rax + 0x24], xmm0
movsd xmm1, qword [rsp + 0x70]
movsd qword [rax + 0x34], xmm1
mov rdx, rsi
mov rcx, r15
call fcn.14008a9b0
mov rax, qword [0x1400cf098]
add rax, 0x3e8
mov qword [rdi + 0x330], rax
jmp case.0x140059cb9.2
mov rax, qword [rdi + 0x338]
test rax, rax
je 0x140059e24
mov rcx, qword [rax + 8]
test rcx, rcx
je 0x140059e24
mov rcx, qword [rcx]
cmp dword [rcx + 0x38], 5
jne 0x140059e24
xor edx, edx
call fcn.14008f3f0
mov rax, qword [rdi + 0x10]
test rax, rax
je case.0x140059cb9.2
mov rcx, qword [rax]
cmp dword [rcx + 0x38], 5
jne case.0x140059cb9.2
xor edx, edx
call fcn.14008f3f0
jmp case.0x140059cb9.2
test byte [rsi + 0xc], 8
lea rax, [rsi + 0x38]
mov r14d, 0
mov ebx, r14d
cmovne rbx, rax
xor edx, edx
mov r8d, 0x360
lea rcx, [rbp - 0x40]
call fcn.140094aba
lea r15, [fcn.14008acc0]
mov qword [rsp + 0x20], r15
lea r9, [0x140001bd0]
lea edx, [r14 + 0x48]
lea r8d, [r14 + 0xc]
lea rcx, [rbp - 0x40]
call fcn.140093228
nop
mov rdx, rbx
lea rcx, [rbp - 0x40]
call fcn.14008b3c0
lea rdx, [rsp + 0x40]
lea rcx, [rbp - 0x40]
call fcn.14008b7a0
mov rbx, rax
call qword [sym.imp.spdlog.dll_class_spdlog::logger____ptr64___cdecl_spdlog::default_logger_raw_void_]
mov qword [rbp - 0x58], r14
mov qword [rbp - 0x60], r14
mov qword [rbp - 0x50], r14
lea rcx, str.Incoming_VariantList:_n
mov qword [rsp + 0x30], rcx
mov qword [rsp + 0x38], 0x18
movups xmm0, xmmword [rbp - 0x60]
movaps xmmword [rbp - 0x80], xmm0
movsd xmm1, qword [rbp - 0x50]
movsd qword [rbp - 0x70], xmm1
mov qword [rsp + 0x20], rbx
lea r9, [rsp + 0x30]
lea r8d, [r14 + 2]
lea rdx, [rbp - 0x80]
mov rcx, rax
call fcn.140004d30
nop
lea rcx, [rsp + 0x40]
call fcn.1400040d0
lea r8, [rbp - 0x40]
mov rdx, rsi
mov rcx, rdi
call fcn.14005aa70
movzx ebx, al
mov r9, r15
lea edx, [r14 + 0x48]
lea r8d, [r14 + 0xc]
lea rcx, [rbp - 0x40]
call fcn.140092ecc
nop
movzx eax, bl
jmp 0x14005a2f7
mov ecx, dword [0x1400cf098]
call qword [sym.imp.api_ms_win_crt_utility_l1_1_0.dll_srand]
call qword [sym.imp.MSVCP140.dll_unsigned_int___cdecl_std::_Random_device_void_]
mov dword [rbp + 0x1344], 0xffffffff
mov dword [rbp - 0x3c], eax
mov r8d, 1
mov r9d, 0x270
nop word [rax + rax]
mov ecx, eax
shr ecx, 0x1e
xor ecx, eax
imul eax, ecx, 0x6c078965
add eax, r8d
mov dword [rbp + r8*4 - 0x3c], eax
inc r8
cmp r8, r9
jb 0x140059f70
mov dword [rbp - 0x40], r9d
movups xmm0, xmmword [rsi]
movups xmmword [rsp + 0x40], xmm0
movups xmm1, xmmword [rsi + 0x10]
movups xmmword [rsp + 0x50], xmm1
movups xmm0, xmmword [rsi + 0x20]
movups xmmword [rsp + 0x60], xmm0
movsd xmm1, qword [rsi + 0x30]
movsd qword [rsp + 0x70], xmm1
mov byte [rsp + 0x40], reloc.WS2_32.dll_setsockopt
lea r8, [rbp - 0x38]
nop
mov edx, dword [r8 - 4]
xor edx, dword [r8]
btr edx, 0x1f
xor edx, dword [r8 - 4]
mov eax, edx
and al, 1
neg al
sbb ecx, ecx
and ecx, 0x9908b0df
xor ecx, dword [r8 + 0x630]
shr edx, 1
xor ecx, edx
mov dword [r8 + 0x9bc], ecx
lea r8, [r8 + 4]
sub r9, 1
jne 0x140059fc0
mov eax, dword [rbp - 0x40]
mov ecx, dword [rbp + rax*4 - 0x3c]
mov eax, ecx
shr eax, 0xb
and eax, dword [rbp + 0x1344]
xor ecx, eax
mov eax, ecx
and eax, 0xff3a58ad
shl eax, 7
xor ecx, eax
mov eax, ecx
and eax, 0xffffdf8c
shl eax, 0xf
xor ecx, eax
mov edx, ecx
shr edx, 0x12
xor edx, ecx
mov r8d, 0x80000000
lea eax, [rdx + r8]
lea ecx, [rdx - 0x80000000]
cmp edx, r8d
cmovae ecx, eax
mov dword [rsp + 0x48], ecx
movaps xmm0, xmmword [0x1400acd10]
movups xmmword [rsp + 0x58], xmm0
xor r14d, r14d
mov qword [rsp + 0x20], r14
lea r8, [rsp + 0x40]
mov rcx, qword [rdi + 0x10]
call fcn.14008aa30
call qword [sym.imp.spdlog.dll_class_spdlog::logger____ptr64___cdecl_spdlog::default_logger_raw_void_]
lea rcx, str.Sending_ping_reponse_
mov qword [rsp + 0x38], reloc.WS2_32.dll_setsockopt
jmp 0x14005a257
mov eax, dword [rdi + 0x260]
cmp dword [rsi + 4], eax
jne case.0x140059cb9.2
mov rcx, qword [rdi + 0x338]
call fcn.140081080
xor al, al
jmp 0x14005a2f7
test byte [rsi + 0xc], 8
jne 0x14005a0c2
xor r14d, r14d
lea rcx, [rdi + 0x300]
mov edx, r14d
call fcn.140056540
jmp case.0x140059cb9.2
lea r14, [rsi + 0x38]
lea rcx, [rdi + 0x300]
mov rdx, r14
call fcn.140056540
jmp case.0x140059cb9.2
mov ecx, dword [rdi + 0xe0]
imul ecx, dword [rsi + 0x30]
add ecx, dword [rsi + 0x2c]
mov r8d, dword [rsi + 0x14]
cmp r8d, 0x12
jne 0x14005a117
mov eax, ecx
imul rbx, rax, 0x13
mov rax, qword [rdi + 0xec]
xor r14d, r14d
cmp word [rbx + rax], r14w
jne 0x14005a2bf
mov word [rbx + rax + 2], r14w
jmp case.0x140059cb9.2
mov eax, dword [rdi + 0x260]
cmp dword [rsi + 4], eax
jne 0x14005a149
mov rax, qword [rdi + 0x309]
mov rdx, qword [rdi + 0x311]
cmp rax, rdx
je 0x14005a149
cmp word [rax], r8w
je 0x14005a146
add rax, 4
cmp rax, rdx
jne 0x14005a135
jmp 0x14005a149
dec byte [rax + 2]
movsxd r8, dword [rsi + 0x14]
mov eax, ecx
imul rdx, rax, 0x13
add rdx, qword [rdi + 0xec]
imul rcx, r8, 0x210
mov rax, qword [0x1400cf0b8]
cmp byte [rcx + rax + 0xa], 0x12
jne 0x14005a179
mov word [rdx + 2], r8w
jmp case.0x140059cb9.2
mov word [rdx], r8w
jmp case.0x140059cb9.2
mov rdx, rsi
mov rcx, rdi
call fcn.14005f5e0
jmp case.0x140059cb9.2
mov rdx, rsi
mov rcx, rdi
call fcn.14005f6d0
jmp case.0x140059cb9.2
test byte [rsi + 0xc], 8
je case.0x140059cb9.2
lea rcx, [rsi + 0x38]
test rcx, rcx
je case.0x140059cb9.2
mov eax, dword [rdi + 0xe0]
imul eax, dword [rsi + 0x30]
add eax, dword [rsi + 0x2c]
imul rbx, rax, 0x13
add rbx, qword [rdi + 0xec]
xor r14d, r14d
mov qword [rbp - 0x50], r14
mov qword [rbp - 0x60], rcx
mov qword [rbp - 0x58], r14
mov rcx, qword [rbx + 0xb]
movzx eax, byte [rbx + 0xa]
test rcx, rcx
je 0x14005a205
cmp al, 4
jne 0x14005a1f7
lea edx, [r14 + 5]
jmp 0x14005a200
cmp al, 0x18
jne 0x14005a205
mov edx, 8
call fcn.1400931f4
movzx r8d, word [rdi + 0xb8]
lea rdx, [rbp - 0x60]
mov rcx, rbx
call fcn.140055de0
jmp case.0x140059cb9.2
mov eax, dword [rdi + 0xe0]
imul eax, dword [rsi + 0x30]
add eax, dword [rsi + 0x2c]
imul rdx, rax, 0x13
mov rcx, qword [rdi + 0xec]
movzx eax, word [rsi + 0x14]
mov word [rdx + rcx], ax
call qword [sym.imp.spdlog.dll_class_spdlog::logger____ptr64___cdecl_spdlog::default_logger_raw_void_]
lea rcx, str.implemeted_
mov qword [rsp + 0x38], select
xor r14d, r14d
mov qword [rsp + 0x30], rcx
mov qword [rbp - 0x58], r14
mov qword [rbp - 0x60], r14
mov qword [rbp - 0x50], r14
movaps xmm0, xmmword [rsp + 0x30]
movdqa xmmword [rsp + 0x30], xmm0
movups xmm1, xmmword [rbp - 0x60]
movaps xmmword [rbp - 0x80], xmm1
movsd xmm0, qword [rbp - 0x50]
movsd qword [rbp - 0x70], xmm0
lea r9, [rsp + 0x30]
mov r8d, 2
lea rdx, [rbp - 0x80]
mov rcx, rax
call fcn.140042260
jmp case.0x140059cb9.2
cmp dword [rsi + 8], 0xffffffff
jne case.0x140059cb9.2
mov eax, dword [rdi + 0xe0]
imul eax, dword [rsi + 0x30]
add eax, dword [rsi + 0x2c]
imul rbx, rax, 0x13
mov rax, qword [rdi + 0xec]
xor r14d, r14d
mov word [rbx + rax], r14w
mov rax, qword [rdi + 0xec]
mov rcx, qword [rbx + rax + 0xb]
test rcx, rcx
je case.0x140059cb9.2
xor edx, edx
call fcn.1400931f4
mov rax, qword [rdi + 0xec]
mov qword [rbx + rax + 0xb], r14
jmp case.0x140059cb9.2
mov rdx, rsi
mov rcx, rdi
call fcn.14005fa00
mov al, 1
mov rcx, qword [rbp + 0x1350]
xor rcx, rsp
call fcn.140092d50
mov rbx, qword [rsp + 0x14a0]
add rsp, 0x1460
pop r15
pop r14
pop rdi
pop rsi
pop rbp
ret