Function at 0x140047100
Capabilities:
Encode data using xor

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
mov qword [rax + 0x18], rdi
push rbp
push r14
push r15
lea rbp, [rax - 0x158]
sub rsp, 0x240
movaps xmmword [rax - 0x28], xmm6
mov rax, qword [0x140cf0080]
xor rax, rsp
mov qword [rbp + 0x120], rax
mov edi, dword [0x1411def3c]
mov esi, reloc.WLDAP32.dll_Ordinal_32
mov r14d, dword [0x1411def40]
mov ecx, esi
mov r15, qword [0x1411def20]
call qword [sym.imp.d3d9.dll_Direct3DCreate9]
mov qword [0x1411de2c0], rax
mov rcx, rax
test rax, rax
jne 0x140047364
mov eax, dword [0x140ccf5d8]
lea rdx, [rsp + 0x60]
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cout]
mov dword [rsp + 0x60], eax
movzx eax, word [0x140ccf5dc]
xor byte [rsp + 0x61], 0x34
xor byte [rsp + 0x62], 0x35
xor byte [rsp + 0x63], 0x36
mov word [rsp + 0x64], ax
xor al, 0x37
xor byte [rsp + 0x65], 0x38
mov byte [rsp + 0x64], al
mov byte [rsp + 0x60], 0xe2
call fcn.14000cfe0
mov eax, dword [0x140ccf640]
xor ebx, ebx
cmp dword [reloc.WS2_32.dll_accept], 2
movups xmm0, xmmword [0x140ccf630]
mov dword [rbp - 0x70], eax
movzx eax, word [0x140ccf644]
mov word [rbp - 0x6c], ax
movzx eax, byte [0x140ccf646]
mov byte [rbp - 0x6a], al
movups xmmword [rbp - 0x80], xmm0
jl 0x140047304
movdqa xmm0, xmmword [0x140cd4050]
lea rcx, [rbp - 0x7c]
movdqa xmm4, xmmword [0x140cd2450]
movdqa xmm3, xmmword [0x140cd4840]
movdqa xmm5, xmmword [0x140cd24b0]
movdqa xmm6, xmmword [0x140cd2530]
movdqa xmmword [rsp + 0x70], xmm0
mov edx, dword [rsp + 0x70]
nop
movd xmm2, ebx
lea eax, [rbx + 4]
pshufd xmm2, xmm2, 0
lea rcx, [rcx + 8]
paddd xmm2, xmm4
add ebx, 8
movdqa xmm1, xmm2
movdqa xmm0, xmm2
punpckhdq xmm0, xmm2
punpckldq xmm1, xmm2
pmuldq xmm0, xmm3
pmuldq xmm1, xmm3
shufps xmm1, xmm0, 0xdd
psrad xmm1, 4
movdqa xmm0, xmm1
psrld xmm0, 0x1f
paddd xmm0, xmm1
pmulld xmm0, xmm5
psubd xmm2, xmm0
movd xmm0, edx
andps xmm2, xmm6
packuswb xmm2, xmm2
packuswb xmm2, xmm2
paddb xmm2, xmm0
movd xmm0, dword [rcx - 0xc]
xorps xmm2, xmm0
movd dword [rcx - 0xc], xmm2
movd xmm2, eax
pshufd xmm2, xmm2, 0
paddd xmm2, xmm4
movdqa xmm1, xmm2
movdqa xmm0, xmm2
punpckhdq xmm0, xmm2
punpckldq xmm1, xmm2
pmuldq xmm0, xmm3
pmuldq xmm1, xmm3
shufps xmm1, xmm0, 0xdd
psrad xmm1, 4
movdqa xmm0, xmm1
psrld xmm0, 0x1f
paddd xmm0, xmm1
pmulld xmm0, xmm5
psubd xmm2, xmm0
movd xmm0, edx
andps xmm2, xmm6
packuswb xmm2, xmm2
packuswb xmm2, xmm2
paddb xmm2, xmm0
movd xmm0, dword [rcx - 8]
xorps xmm2, xmm0
movd dword [rcx - 8], xmm2
cmp ebx, 0x10
jl 0x140047220
cmp ebx, 0x17
jge 0x14004733d
movsxd rax, ebx
lea r8, [rbp - 0x80]
add r8, rax
nop
mov eax, 0x4bda12f7
lea r8, [r8 + 1]
imul ebx
sar edx, 4
mov eax, edx
shr eax, 0x1f
add edx, eax
movsx eax, dl
imul ecx, eax, 0x36
movzx eax, bl
inc ebx
sub al, cl
add al, 0x33
xor byte [r8 - 1], al
cmp ebx, 0x17
jl 0x140047310
lea rdx, [rbp - 0x80]
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cout]
call fcn.14000cfe0
lea rdx, [0x14000d1c0]
mov rcx, rax
call qword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______ptr64___cdecl_std::basic_ostream_char__struct_std::char_traits_char__::operator___class_std::basic_ostream_char__struct_std::char_traits_char______ptr64____cdecl___class_std::basic_ostream_char__struct_std::char_traits_char______ptr64_____ptr64]
xor eax, eax
jmp 0x140047c1f
xor ebx, ebx
mov qword [0x1411de3a8], 0x15
mov qword [0x1411de3b0], rbx
lea r9, [rbp - 0x10]
mov dword [0x1411de3d8], ebx
xor edx, edx
mov qword [0x1411de3b8], 1
mov r8d, 1
mov qword [0x1411de3d0], 0x50
mov dword [0x1411de3c8], 1
mov qword [0x1411de3c0], r15
mov dword [0x1411de3a0], r14d
mov dword [0x1411de3a4], edi
mov dword [0x1411de3cc], 1
mov dword [0x1411de3dc], 0x80000000
mov rax, qword [rax]
call qword [rax + reloc.WS2_32.dll_WSASetLastError]
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cout]
lea rdx, [rsp + 0x60]
test eax, eax
jns 0x1400475b6
mov eax, dword [0x140ccf5d8]
mov dword [rsp + 0x60], eax
movzx eax, word [0x140ccf5dc]
xor byte [rsp + 0x61], 0x34
xor byte [rsp + 0x62], 0x35
xor byte [rsp + 0x63], 0x36
mov word [rsp + 0x64], ax
xor al, 0x37
xor byte [rsp + 0x65], 0x38
mov byte [rsp + 0x64], al
mov byte [rsp + 0x60], 0xe2
call fcn.14000cfe0
cmp dword [reloc.WS2_32.dll_accept], 2
mov eax, dword [0x140ccf5f0]
movups xmm0, xmmword [0x140ccf5e0]
mov dword [rbp - 0x70], eax
movzx eax, byte [0x140ccf5f4]
movups xmmword [rbp - 0x80], xmm0
mov byte [rbp - 0x6c], al
jl 0x140047574
movdqa xmm0, xmmword [0x140cd4050]
lea rcx, [rbp - 0x7c]
movdqa xmm4, xmmword [0x140cd2450]
movdqa xmm3, xmmword [0x140cd4840]
movdqa xmm5, xmmword [0x140cd24b0]
movdqa xmm6, xmmword [0x140cd2530]
movdqa xmmword [rsp + 0x70], xmm0
mov edx, dword [rsp + 0x70]
nop word [rax + rax]
movd xmm2, ebx
lea eax, [rbx + 4]
pshufd xmm2, xmm2, 0
lea rcx, [rcx + 8]
paddd xmm2, xmm4
add ebx, 8
movdqa xmm1, xmm2
movdqa xmm0, xmm2
punpckhdq xmm0, xmm2
punpckldq xmm1, xmm2
pmuldq xmm0, xmm3
pmuldq xmm1, xmm3
shufps xmm1, xmm0, 0xdd
psrad xmm1, 4
movdqa xmm0, xmm1
psrld xmm0, 0x1f
paddd xmm0, xmm1
pmulld xmm0, xmm5
psubd xmm2, xmm0
movd xmm0, edx
andps xmm2, xmm6
packuswb xmm2, xmm2
packuswb xmm2, xmm2
paddb xmm2, xmm0
movd xmm0, dword [rcx - 0xc]
xorps xmm2, xmm0
movd dword [rcx - 0xc], xmm2
movd xmm2, eax
pshufd xmm2, xmm2, 0
paddd xmm2, xmm4
movdqa xmm1, xmm2
movdqa xmm0, xmm2
punpckhdq xmm0, xmm2
punpckldq xmm1, xmm2
pmuldq xmm0, xmm3
pmuldq xmm1, xmm3
shufps xmm1, xmm0, 0xdd
psrad xmm1, 4
movdqa xmm0, xmm1
psrld xmm0, 0x1f
paddd xmm0, xmm1
pmulld xmm0, xmm5
psubd xmm2, xmm0
movd xmm0, edx
andps xmm2, xmm6
packuswb xmm2, xmm2
packuswb xmm2, xmm2
paddb xmm2, xmm0
movd xmm0, dword [rcx - 8]
xorps xmm2, xmm0
movd dword [rcx - 8], xmm2
cmp ebx, 0x10
jl 0x140047490
cmp ebx, 0x15
jge 0x1400475ad
movsxd rax, ebx
lea r8, [rbp - 0x80]
add r8, rax
nop
mov eax, 0x4bda12f7
lea r8, [r8 + 1]
imul ebx
sar edx, 4
mov eax, edx
shr eax, 0x1f
add edx, eax
movsx eax, dl
imul edx, eax, 0x36
movzx eax, bl
inc ebx
sub al, dl
add al, 0x33
xor byte [r8 - 1], al
cmp ebx, 0x15
jl 0x140047580
lea rdx, [rbp - 0x80]
jmp 0x140047341
test dword [rbp + 0xc], 0x10000
je 0x1400477a6
mov eax, dword [0x140ccf5d8]
mov esi, 0x40
mov dword [rsp + 0x60], eax
movzx eax, word [0x140ccf5dc]
xor byte [rsp + 0x61], 0x34
xor byte [rsp + 0x62], 0x35
xor byte [rsp + 0x63], 0x36
mov word [rsp + 0x64], ax
xor al, 0x37
xor byte [rsp + 0x65], 0x38
mov byte [rsp + 0x64], al
mov byte [rsp + 0x60], 0xe2
call fcn.14000cfe0
movups xmm0, xmmword [0x140ccf5f8]
movzx eax, word [0x140ccf628]
mov ecx, ebx
movups xmm1, xmmword [0x140ccf608]
mov edi, dword [reloc.WS2_32.dll_accept]
movdqa xmm6, xmmword [0x140cd2530]
mov word [rbp - 0x50], ax
movzx eax, byte [0x140ccf62a]
mov byte [rbp - 0x4e], al
movups xmmword [rbp - 0x80], xmm0
movups xmm0, xmmword [0x140ccf618]
movups xmmword [rbp - 0x70], xmm1
movups xmmword [rbp - 0x60], xmm0
cmp edi, 2
jl 0x140047766
movdqa xmm0, xmmword [0x140cd4050]
lea rdx, [rbp - 0x7c]
movdqa xmm4, xmmword [0x140cd2450]
movdqa xmm3, xmmword [0x140cd4840]
movdqa xmm5, xmmword [0x140cd24b0]
movdqa xmmword [rsp + 0x70], xmm0
mov r8d, dword [rsp + 0x70]
movd xmm2, ecx
lea eax, [rcx + 4]
pshufd xmm2, xmm2, 0
lea rdx, [rdx + 8]
paddd xmm2, xmm4
add ecx, 8
movdqa xmm1, xmm2
movdqa xmm0, xmm2
punpckhdq xmm0, xmm2
punpckldq xmm1, xmm2
pmuldq xmm0, xmm3
pmuldq xmm1, xmm3
shufps xmm1, xmm0, 0xdd
psrad xmm1, 4
movdqa xmm0, xmm1
psrld xmm0, 0x1f
paddd xmm0, xmm1
pmulld xmm0, xmm5
psubd xmm2, xmm0
movd xmm0, r8d
andps xmm2, xmm6
packuswb xmm2, xmm2
packuswb xmm2, xmm2
paddb xmm2, xmm0
movd xmm0, dword [rdx - 0xc]
xorps xmm2, xmm0
movd dword [rdx - 0xc], xmm2
movd xmm2, eax
pshufd xmm2, xmm2, 0
paddd xmm2, xmm4
movdqa xmm1, xmm2
movdqa xmm0, xmm2
punpckhdq xmm0, xmm2
punpckldq xmm1, xmm2
pmuldq xmm0, xmm3
pmuldq xmm1, xmm3
shufps xmm1, xmm0, 0xdd
psrad xmm1, 4
movdqa xmm0, xmm1
psrld xmm0, 0x1f
paddd xmm0, xmm1
pmulld xmm0, xmm5
psubd xmm2, xmm0
movd xmm0, r8d
andps xmm2, xmm6
packuswb xmm2, xmm2
packuswb xmm2, xmm2
paddb xmm2, xmm0
movd xmm0, dword [rdx - 8]
xorps xmm2, xmm0
movd dword [rdx - 8], xmm2
cmp ecx, 0x30
jl 0x140047680
cmp ecx, 0x33
jge 0x14004779d
movsxd rax, ecx
lea r8, [rbp - 0x80]
add r8, rax
mov eax, 0x4bda12f7
lea r8, [r8 + 1]
imul ecx
sar edx, 4
mov eax, edx
shr eax, 0x1f
add edx, eax
movsx eax, dl
imul edx, eax, 0x36
movzx eax, cl
inc ecx
sub al, dl
add al, 0x33
xor byte [r8 - 1], al
cmp ecx, 0x33
jl 0x140047770
lea rdx, [rbp - 0x80]
jmp 0x140047981
mov eax, dword [0x140ccf5d8]
mov dword [rsp + 0x60], eax
movzx eax, word [0x140ccf5dc]
xor byte [rsp + 0x61], 0x34
xor byte [rsp + 0x62], 0x35
xor byte [rsp + 0x63], 0x36
mov word [rsp + 0x64], ax
xor al, 0x37
xor byte [rsp + 0x65], 0x38
mov byte [rsp + 0x64], al
mov byte [rsp + 0x60], 0xe2
call fcn.14000cfe0
movups xmm0, xmmword [0x140ccf668]
movzx eax, word [0x140ccf698]
mov ecx, ebx
movups xmm1, xmmword [0x140ccf678]
mov edi, dword [reloc.WS2_32.dll_accept]
movdqa xmm6, xmmword [0x140cd2530]
mov word [rbp - 0x18], ax
movzx eax, byte [0x140ccf69a]
mov byte [rbp - 0x16], al
movups xmmword [rbp - 0x48], xmm0
movups xmm0, xmmword [0x140ccf688]
movups xmmword [rbp - 0x38], xmm1
movups xmmword [rbp - 0x28], xmm0
cmp edi, 2
jl 0x140047946
movdqa xmm0, xmmword [0x140cd4050]
lea rdx, [rbp - 0x44]
movdqa xmm4, xmmword [0x140cd2450]
movdqa xmm3, xmmword [0x140cd4840]
movdqa xmm5, xmmword [0x140cd24b0]
movdqa xmmword [rsp + 0x70], xmm0
mov r8d, dword [rsp + 0x70]
nop
movd xmm2, ecx
lea eax, [rcx + 4]
pshufd xmm2, xmm2, 0
lea rdx, [rdx + 8]
paddd xmm2, xmm4
add ecx, 8
movdqa xmm1, xmm2
movdqa xmm0, xmm2
punpckhdq xmm0, xmm2
punpckldq xmm1, xmm2
pmuldq xmm0, xmm3
pmuldq xmm1, xmm3
shufps xmm1, xmm0, 0xdd
psrad xmm1, 4
movdqa xmm0, xmm1
psrld xmm0, 0x1f
paddd xmm0, xmm1
pmulld xmm0, xmm5
psubd xmm2, xmm0
movd xmm0, r8d
andps xmm2, xmm6
packuswb xmm2, xmm2
packuswb xmm2, xmm2
paddb xmm2, xmm0
movd xmm0, dword [rdx - 0xc]
xorps xmm2, xmm0
movd dword [rdx - 0xc], xmm2
movd xmm2, eax
pshufd xmm2, xmm2, 0
paddd xmm2, xmm4
movdqa xmm1, xmm2
movdqa xmm0, xmm2
punpckhdq xmm0, xmm2
punpckldq xmm1, xmm2
pmuldq xmm0, xmm3
pmuldq xmm1, xmm3
shufps xmm1, xmm0, 0xdd
psrad xmm1, 4
movdqa xmm0, xmm1
psrld xmm0, 0x1f
paddd xmm0, xmm1
pmulld xmm0, xmm5
psubd xmm2, xmm0
movd xmm0, r8d
andps xmm2, xmm6
packuswb xmm2, xmm2
packuswb xmm2, xmm2
paddb xmm2, xmm0
movd xmm0, dword [rdx - 8]
xorps xmm2, xmm0
movd dword [rdx - 8], xmm2
cmp ecx, 0x30
jl 0x140047860
cmp ecx, 0x33
jge 0x14004797d
movsxd rax, ecx
lea r8, [rbp - 0x48]
add r8, rax
mov eax, 0x4bda12f7
lea r8, [r8 + 1]
imul ecx
sar edx, 4
mov eax, edx
shr eax, 0x1f
add edx, eax
movsx eax, dl
imul edx, eax, 0x36
movzx eax, cl
inc ecx
sub al, dl
add al, 0x33
xor byte [r8 - 1], al
cmp ecx, 0x33
jl 0x140047950
lea rdx, [rbp - 0x48]
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cout]
call fcn.14000cfe0
lea rdx, [0x14000d1c0]
mov rcx, rax
call qword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______ptr64___cdecl_std::basic_ostream_char__struct_std::char_traits_char__::operator___class_std::basic_ostream_char__struct_std::char_traits_char______ptr64____cdecl___class_std::basic_ostream_char__struct_std::char_traits_char______ptr64_____ptr64]
mov rcx, qword [0x1411de2c0]
lea rdx, [0x1411de700]
mov qword [rsp + 0x30], rdx
mov r9, r15
lea rdx, [0x1411de3a0]
mov r8d, 1
mov qword [rsp + 0x28], rdx
xor edx, edx
mov rax, qword [rcx]
mov dword [rsp + 0x20], esi
call qword [rax + 0x80]
test eax, eax
jns 0x140047bb6
mov eax, dword [0x140ccf5d8]
lea rdx, [rsp + 0x60]
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cout]
mov dword [rsp + 0x60], eax
movzx eax, word [0x140ccf5dc]
xor byte [rsp + 0x61], 0x34
xor byte [rsp + 0x62], 0x35
xor byte [rsp + 0x63], 0x36
mov word [rsp + 0x64], ax
xor al, 0x37
xor byte [rsp + 0x65], 0x38
mov byte [rsp + 0x64], al
mov byte [rsp + 0x60], 0xe2
call fcn.14000cfe0
movzx eax, word [0x140ccf660]
mov word [rbp - 0x68], ax
movzx eax, byte [0x140ccf662]
mov byte [rbp - 0x66], al
movups xmm0, xmmword [0x140ccf648]
movups xmmword [rbp - 0x80], xmm0
movsd xmm0, qword [0x140ccf658]
movsd qword [rbp - 0x70], xmm0
cmp edi, 2
jl 0x140047b74
movdqa xmm0, xmmword [0x140cd4050]
lea rcx, [rbp - 0x7c]
movdqa xmm4, xmmword [0x140cd2450]
movdqa xmm3, xmmword [0x140cd4840]
movdqa xmm5, xmmword [0x140cd24b0]
movdqa xmmword [rsp + 0x70], xmm0
mov edx, dword [rsp + 0x70]
nop word [rax + rax]
movd xmm2, ebx
lea eax, [rbx + 4]
pshufd xmm2, xmm2, 0
lea rcx, [rcx + 8]
paddd xmm2, xmm4
add ebx, 8
movdqa xmm1, xmm2
movdqa xmm0, xmm2
punpckhdq xmm0, xmm2
punpckldq xmm1, xmm2
pmuldq xmm0, xmm3
pmuldq xmm1, xmm3
shufps xmm1, xmm0, 0xdd
psrad xmm1, 4
movdqa xmm0, xmm1
psrld xmm0, 0x1f
paddd xmm0, xmm1
pmulld xmm0, xmm5
psubd xmm2, xmm0
movd xmm0, edx
andps xmm2, xmm6
packuswb xmm2, xmm2
packuswb xmm2, xmm2
paddb xmm2, xmm0
movd xmm0, dword [rcx - 0xc]
xorps xmm2, xmm0
movd dword [rcx - 0xc], xmm2
movd xmm2, eax
pshufd xmm2, xmm2, 0
paddd xmm2, xmm4
movdqa xmm1, xmm2
movdqa xmm0, xmm2
punpckhdq xmm0, xmm2
punpckldq xmm1, xmm2
pmuldq xmm0, xmm3
pmuldq xmm1, xmm3
shufps xmm1, xmm0, 0xdd
psrad xmm1, 4
movdqa xmm0, xmm1
psrld xmm0, 0x1f
paddd xmm0, xmm1
pmulld xmm0, xmm5
psubd xmm2, xmm0
movd xmm0, edx
andps xmm2, xmm6
packuswb xmm2, xmm2
packuswb xmm2, xmm2
paddb xmm2, xmm0
movd xmm0, dword [rcx - 8]
xorps xmm2, xmm0
movd dword [rcx - 8], xmm2
cmp ebx, 0x18
jl 0x140047a90
cmp ebx, 0x1b
jge 0x140047bad
movsxd rax, ebx
lea r8, [rbp - 0x80]
add r8, rax
nop
mov eax, 0x4bda12f7
lea r8, [r8 + 1]
imul ebx
sar edx, 4
mov eax, edx
shr eax, 0x1f
add edx, eax
movsx eax, dl
imul edx, eax, 0x36
movzx eax, bl
inc ebx
sub al, dl
add al, 0x33
xor byte [r8 - 1], al
cmp ebx, 0x1b
jl 0x140047b80
lea rdx, [rbp - 0x80]
jmp 0x140047341
mov rcx, qword [0x1411de700]
lea rax, [0x1411de2c8]
mov qword [rsp + 0x58], rax
mov r9d, 0x190
lea rax, [0x140ccf5c0]
xor r8d, r8d
mov qword [rsp + 0x50], rax
mov edx, reloc.WS2_32.dll_listen
mov dword [rsp + 0x48], 1
mov dword [rsp + 0x40], 6
mov dword [rsp + 0x38], ebx
mov dword [rsp + 0x30], 1
mov dword [rsp + 0x28], ebx
mov dword [rsp + 0x20], ebx
call qword [sym.imp.d3dx9_43.dll_D3DXCreateFontW]
mov rcx, qword [0x1411de2c0]
mov rdx, qword [rcx]
call qword [rdx + reloc.WS2_32.dll_recv]
mov eax, 1
mov rcx, qword [rbp + 0x120]
xor rcx, rsp
call fcn.14013f230
lea r11, [rsp + 0x240]
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rdi, qword [r11 + 0x30]
movaps xmm6, xmmword [r11 - 0x10]
mov rsp, r11
pop r15
pop r14
pop rbp
ret