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

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
push rbp
push r12
push r13
push r14
push r15
mov rbp, rsp
sub rsp, 0x80
mov rax, qword [0x14024b028]
xor rax, rsp
mov qword [rbp - 8], rax
mov r12, rcx
mov qword [rbp - 0x40], rcx
xor r13d, r13d
lea esi, [r13 + 0xf]
mov rax, qword gs:[0x58]
mov r14, qword [rax]
mov r15d, reloc.WS2_32.dll_sendto
mov eax, dword [r15 + r14]
mov edi, reloc.WLDAP32.dll_Ordinal_32
test al, 1
jne 0x140047e2a
or eax, 1
mov dword [r15 + r14], eax
call fcn.14007e080
mov edx, eax
mov dword [r14 + rdi + 0x1384], 0xffffffff
mov dword [r14 + rdi + 4], eax
lea ecx, [rsi - 0xe]
lea r8, [rdi + 8]
add r8, r14
nop word [rax + rax]
mov eax, edx
shr eax, 0x1e
xor eax, edx
imul edx, eax, 0x6c078965
add edx, ecx
mov dword [r8], edx
inc rcx
lea r8, [r8 + 4]
cmp rcx, 0x270
jb 0x140047e00
mov dword [r14 + rdi], 0x270
mov eax, dword [r15 + r14]
mov ebx, 0x13a8
test al, 2
jne 0x140047e4b
or eax, 2
mov dword [r15 + r14], eax
mov qword [r14 + rbx], r13
mov qword [r14 + rbx + 8], Ordinal_27
mov qword [rbp - 0x30], r13
xorps xmm0, xmm0
movups xmmword [rbp - 0x28], xmm0
mov qword [rbp - 0x18], r13
mov qword [rbp - 0x10], r13
mov ecx, reloc.WS2_32.dll_recv
call fcn.140075d20
mov qword [rax + 8], r13
mov qword [rbp - 0x30], rax
lea rcx, [rbp - 0x30]
mov qword [rax], rcx
mov qword [rbp - 0x18], r13
mov qword [rbp - 0x10], reloc.WS2_32.dll_ntohs
mov byte [rbp - 0x28], 0
mov edx, reloc.WS2_32.dll_ntohs
lea rcx, [rbp - 0x30]
call fcn.140058090
lea r15, [r14 + rbx]
add r14, rdi
lea r13, str.QWERTYUIOPASDFGHJKLZXCVBNM
nop dword [rax]
nop word [rax + rax]
dec rsi
mov rdx, qword [r15 + 8]
mov rdi, qword [r15]
mov qword [rbp - 0x40], r14
sub rdx, rdi
cmp rdx, 0xffffffffffffffff
jne 0x140047ee4
mov rcx, r14
call fcn.14006d440
mov ebx, eax
shl rbx, 0x20
mov rcx, r14
call fcn.14006d440
mov eax, eax
or rbx, rax
jmp 0x140047ef3
inc rdx
lea rcx, [rbp - 0x40]
call fcn.14006ab30
mov rbx, rax
lea rax, [rbx + rdi]
movzx r9d, byte [rax + r13]
mov rcx, qword [rbp - 0x18]
mov rdx, qword [rbp - 0x10]
cmp rcx, rdx
jae 0x140047f29
lea rax, [rcx + 1]
mov qword [rbp - 0x18], rax
lea rax, [rbp - 0x28]
cmp rdx, 0x10
cmovae rax, qword [rbp - 0x28]
mov byte [rax + rcx], r9b
mov byte [rax + rcx + 1], 0
jmp 0x140047f39
xor r8d, r8d
lea edx, [r8 + 1]
lea rcx, [rbp - 0x30]
call fcn.14005f800
test rsi, rsi
jne 0x140047eb0
movabs rax, 0x7fffffffffffffff
mov rcx, qword [rbp - 0x18]
sub rax, rcx
cmp rax, 4
mov r13, rsi
jb 0x14004809c
lea r9, [rbp - 0x28]
cmp qword [rbp - 0x10], 0x10
cmovae r9, qword [rbp - 0x28]
mov qword [rsp + 0x30], 4
lea rax, str..exe
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], rcx
mov rcx, r12
call fcn.1400614e0
nop
lea edx, [rsi + 3]
lea rcx, [rbp - 0x40]
call fcn.140078220
mov rcx, qword [rbp - 0x30]
test rcx, rcx
je 0x140047fbf
mov rax, qword [rcx + 8]
mov qword [rcx + 8], rsi
test rax, rax
je 0x140047fbf
mov qword [rax], r13
mov rax, qword [rax + 8]
test rax, rax
jne 0x140047fb3
lea rcx, [rbp - 0x40]
call fcn.140078300
mov rax, qword [rbp - 0x10]
cmp rax, 0x10
jb 0x14004804a
mov rdi, qword [rbp - 0x28]
lea rbx, [rax + 1]
test rdi, rdi
jne 0x14004803f
test rbx, rbx
je 0x14004803f
lea rax, str.null_pointer_cannot_point_to_a_block_of_non_zero_size
mov qword [rsp + 0x28], rax
lea rax, [0x14022b1ec]
mov qword [rsp + 0x20], rax
xor r9d, r9d
mov r8d, 0x3c7
lea rdx, [0x14022b1f0]
lea ecx, [rdi + 2]
call fcn.140188250
cmp eax, 1
jne 0x14004801a
int3
mov qword [rsp + 0x20], r13
mov r9d, 0x3c7
lea r8, str.C:Program_FilesMicrosoft_Visual_Studio2022CommunityVCToolsMSVC14.37.32822includexmemory
lea rdx, [0x14022b324]
lea rcx, str._null_pointer_cannot_point_to_a_block_of_non_zero_size_
call fcn.140188b80
mov rdx, rbx
mov rcx, rdi
call fcn.14005fc70
mov qword [rbp - 0x18], r13
mov qword [rbp - 0x10], reloc.WS2_32.dll_ntohs
mov byte [rbp - 0x28], 0
mov rcx, qword [rbp - 0x30]
mov qword [rbp - 0x30], r13
mov edx, reloc.WS2_32.dll_recv
call fcn.140075c30
mov rax, r12
mov rcx, qword [rbp - 8]
xor rcx, rsp
call fcn.1400753c0
lea r11, [rsp + 0x80]
mov rbx, qword [r11 + 0x38]
mov rsi, qword [r11 + 0x40]
mov rdi, qword [r11 + 0x48]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rbp
ret
call fcn.140038890
nop
int3