Function at 0x180038f80
Capabilities:
Check os version
Encode data using xor

Disassembly:
mov rax, rsp
mov word [rax + 0x18], r8w
mov qword [rax + 0x10], rdx
push rbp
push rbx
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x48]
sub rsp, 0x148
movaps xmmword [rax - 0x58], xmm6
movaps xmmword [rax - 0x68], xmm7
movzx r13d, r8w
mov rbx, rcx
mov edx, dword [rcx + 0xd4]
mov r15d, 4
test dl, 0x10
je 0x180038ff4
mov eax, dword [rcx + 0xf0]
cmp eax, 3
jne 0x180038fd9
mov edx, 8
or edx, 0x10
jmp 0x180038ffe
cmp eax, r15d
jne 0x180038fe8
mov edx, 2
or edx, 0x10
jmp 0x180038ffe
cmp eax, 5
cmove edx, r15d
or edx, 0x10
jmp 0x180038ffe
mov eax, 0x400
test eax, edx
cmovne edx, eax
mov r8, r9
lea rcx, [rsp + 0x30]
call fcn.18002e450
nop
lea rax, [rbx + 0x260]
mov qword [rbp - 0x68], rax
mov rcx, qword [rbx + 0x260]
mov rax, qword [rcx + 8]
mov r14, rcx
cmp byte [rax + 0x19], 0
jne 0x1800391c3
nop
cmp word [rax + 0x20], r13w
jae 0x18003903d
mov rax, qword [rax + 0x10]
jmp 0x180039043
mov r14, rax
mov rax, qword [rax]
cmp byte [rax + 0x19], 0
je 0x180039030
cmp r14, rcx
je 0x1800391c3
cmp r13w, word [r14 + 0x20]
jb 0x1800391c3
cmp qword [rsp + 0x40], 0
je 0x180039155
cmp byte [0x18010a364], 0
je 0x180039147
lea rsi, [rsp + 0x30]
cmp qword [rsp + 0x48], 0x10
cmovae rsi, qword [rsp + 0x30]
movdqa xmm6, xmmword [0x1800ec810]
movdqa xmm7, xmmword [0x1800ec260]
mov dword [rsp + 0x70], 0x7fef8d42
mov dword [rsp + 0x74], 0xfcb39dd4
mov word [rsp + 0x78], 0xe35e
mov rdx, qword gs:[0x58]
mov eax, dword [0x18010bb98]
mov ecx, 4
mov rax, qword [rdx + rax*8]
mov eax, dword [rcx + rax]
cmp dword [0x18010d288], eax
jg 0x18003977b
lea rdx, [0x1801066f0]
cmp byte [0x18010671a], 0
je 0x18003913c
xor edi, edi
mov ebx, 1
sub rbx, rdx
movabs r11, 0xd993efbb19cfe32d
nop dword [rax]
lea r10, [rdi + rdx]
movzx ecx, dil
and cl, 7
shl cl, 3
mov rax, r11
shr rax, cl
xor byte [r10], al
lea ecx, [r10 + rbx]
and cl, 7
shl cl, 3
mov r9, r11
shr r9, cl
xor byte [r10 + 1], r9b
add rdi, 2
cmp rdi, 0x2a
jb 0x180039100
mov byte [0x18010671a], 0
mov r8, rsi
mov ecx, r15d
call fcn.18006a848
lea rdx, [rsp + 0x30]
mov rcx, qword [r14 + 0x28]
call fcn.18002e320
mov rdi, qword [rbp + 0x98]
mov qword [rdi], r14
mov rdx, qword [rsp + 0x48]
cmp rdx, 0x10
jb 0x18003919c
inc rdx
mov rcx, qword [rsp + 0x30]
mov rax, rcx
cmp rdx, 0x1000
jb 0x180039197
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x180039775
call fcn.18009d1f4
mov rax, rdi
movaps xmm6, xmmword [rsp + 0x130]
movaps xmm7, xmmword [rsp + 0x120]
add rsp, 0x148
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbx
pop rbp
ret
xorps xmm0, xmm0
movdqa xmmword [rbp - 0x40], xmm0
xor edi, edi
cmp byte [0x18010a364], dil
je 0x18003928f
lea rbx, [rsp + 0x30]
cmp qword [rsp + 0x48], 0x10
cmovae rbx, qword [rsp + 0x30]
movdqa xmm6, xmmword [0x1800ec810]
movdqu xmmword [rsp + 0x50], xmm6
movdqa xmm7, xmmword [0x1800ec9b0]
movdqu xmmword [rsp + 0x60], xmm7
mov dword [rsp + 0x70], 0x39bd8c4b
mov word [rsp + 0x74], 0x9c9e
mov byte [rsp + 0x76], 0x93
mov rdx, qword gs:[0x58]
mov eax, dword [0x18010bb98]
mov ecx, 4
mov rax, qword [rdx + rax*8]
mov eax, dword [rcx + rax]
cmp dword [0x18010d284], eax
jg 0x1800397e0
lea rdx, [0x1801066c0]
cmp byte [0x1801066e7], dil
je 0x180039284
mov r9, rdi
movabs r11, 0xd993efbb19cfe32d
nop
movzx ecx, r9b
and cl, 7
shl cl, 3
mov rax, r11
shr rax, cl
xor byte [r9 + rdx], al
inc r9
cmp r9, 0x27
jb 0x180039260
mov byte [0x1801066e7], dil
mov r8, rbx
mov ecx, r15d
call fcn.18006a848
mov qword [rsp + 0x20], r14
mov ecx, 0x50
call fcn.18009d1b8
mov rsi, rax
mov qword [rbp + 0x90], rax
lea rax, vtable.IMSession.0
mov qword [rsi], rax
lea rbx, [rsi + 8]
mov qword [rbx], rdi
mov qword [rbx + 0x10], rdi
mov qword [rbx + 0x18], reloc.WS2_32.dll_ntohs
mov byte [rbx], 0
mov word [rsi + 0x28], r13w
lea r15, [rsi + 0x30]
mov qword [r15], rdi
mov qword [r15 + 0x10], rdi
mov qword [r15 + 0x18], reloc.WS2_32.dll_ntohs
mov byte [r15], 0
mov r12, qword [rsp + 0x40]
test r12, r12
je 0x18003954e
lea rdx, [rsp + 0x30]
cmp qword [rsp + 0x48], 0x10
setae r10b
mov byte [rbp + 0xb0], r10b
mov r9, qword [rsp + 0x30]
cmovae rdx, r9
mov rcx, rbx
mov r13, qword [rbx + 0x18]
cmp r13, 0x10
jb 0x180039321
mov rcx, qword [rbx]
mov r8, qword [rbx + 0x10]
cmp r8, r12
jne 0x180039344
call fcn.18009fb20
test eax, eax
je 0x180039546
mov r9, qword [rsp + 0x30]
movzx r10d, byte [rbp + 0xb0]
lea rax, [rsp + 0x30]
cmp rbx, rax
je 0x180039486
lea rax, [rsp + 0x30]
test r10b, r10b
cmovne rax, r9
mov qword [rbp + 0xa8], rax
cmp r12, r13
ja 0x180039392
mov rsi, rbx
cmp r13, 0x10
jb 0x180039376
mov rsi, qword [rbx]
mov qword [rbx + 0x10], r12
mov r8, r12
mov rdx, rax
mov rcx, rsi
call fcn.18009fc20
mov byte [rsi + r12], 0
jmp 0x18003947f
movabs rsi, 0x7fffffffffffffff
cmp r12, rsi
ja 0x180039843
mov rdx, r12
or rdx, 0xf
cmp rdx, rsi
ja 0x1800393eb
mov rcx, r13
shr rcx, 1
mov rax, rsi
sub rax, rcx
cmp r13, rax
ja 0x1800393eb
lea rax, [rcx + r13]
mov rsi, rdx
cmp rdx, rax
cmovb rsi, rax
lea rax, [rsi + 1]
cmp rax, 0x1000
jb 0x180039411
lea rcx, [rax + 0x27]
cmp rcx, rax
jbe 0x18003976f
jmp 0x1800393f5
movabs rcx, 0x8000000000000027
call fcn.18009d1b8
test rax, rax
je 0x18003984f
lea r14, [rax + 0x27]
and r14, 0xffffffffffffffe0
mov qword [r14 - 8], rax
jmp 0x180039426
test rax, rax
je 0x180039423
mov rcx, rax
call fcn.18009d1b8
mov r14, rax
jmp 0x180039426
mov r14, rdi
mov qword [rbx + 0x10], r12
mov qword [rbx + 0x18], rsi
mov r8, r12
mov rdx, qword [rbp + 0xa8]
mov rcx, r14
call fcn.18009fc20
mov byte [r14 + r12], 0
cmp r13, 0x10
jb 0x18003947c
mov rcx, qword [rbx]
lea rdx, [r13 + 1]
cmp rdx, 0x1000
jb 0x180039477
add rdx, 0x27
mov r8, qword [rcx - 8]
sub rcx, r8
lea rax, [rcx - 8]
cmp rax, 0x1f
ja 0x18003984f
mov rcx, r8
call fcn.18009d1f4
mov qword [rbx], r14
mov rsi, qword [rbp + 0x90]
mov rdx, rbx
lea rcx, [rbp - 0x20]
call fcn.180030ca0
mov rbx, rax
cmp r15, rax
je 0x180039503
mov rdx, qword [r15 + 0x18]
cmp rdx, 0x10
jb 0x1800394d4
mov rcx, qword [r15]
inc rdx
cmp rdx, 0x1000
jb 0x1800394cf
add rdx, 0x27
mov r8, qword [rcx - 8]
sub rcx, r8
lea rax, [rcx - 8]
cmp rax, 0x1f
ja 0x180039849
mov rcx, r8
call fcn.18009d1f4
mov qword [r15 + 0x10], rdi
mov qword [r15 + 0x18], reloc.WS2_32.dll_ntohs
mov byte [r15], 0
movups xmm0, xmmword [rbx]
movups xmmword [r15], xmm0
movups xmm1, xmmword [rbx + 0x10]
movups xmmword [r15 + 0x10], xmm1
mov qword [rbx + 0x10], rdi
mov qword [rbx + 0x18], reloc.WS2_32.dll_ntohs
mov byte [rbx], 0
mov rbx, qword [rsp + 0x20]
mov r14, rbx
mov rdx, qword [rbp - 8]
cmp rdx, 0x10
jb 0x180039546
inc rdx
mov rcx, qword [rbp - 0x20]
mov rax, rcx
cmp rdx, 0x1000
jb 0x180039541
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x180039849
call fcn.18009d1f4
movzx r13d, word [rbp + 0xa0]
mov qword [rsp + 0x20], rsi
mov qword [rsp + 0x28], rdi
mov rdx, rsi
lea rcx, [rbp + 0x90]
call fcn.18003a720
mov rdx, qword [rsp + 0x28]
mov rcx, qword [rax]
mov qword [rsp + 0x28], rcx
mov qword [rax], rdx
mov r15d, 0xffffffff
mov rbx, qword [rbp + 0x90]
test rbx, rbx
je 0x1800395b5
mov eax, r15d
lock xadd dword [rbx + 8], eax
cmp eax, 1
jne 0x1800395b5
mov rax, qword [rbx]
mov rcx, rbx
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
mov eax, r15d
lock xadd dword [rbx + 0xc], eax
cmp eax, 1
jne 0x1800395b5
mov rax, qword [rbx]
mov rcx, rbx
call qword [rax + reloc.WS2_32.dll_recv]
mov r8, rsi
mov rdx, rsi
lea rcx, [rsp + 0x20]
call fcn.180019460
nop
movaps xmm0, xmmword [rsp + 0x20]
movdqa xmmword [rbp - 0x40], xmm0
mov word [rbp - 0x80], r13w
movq r13, xmm0
mov qword [rbp - 0x78], r13
psrldq xmm0, 8
movq rsi, xmm0
mov r12, rsi
mov qword [rbp - 0x70], rsi
test rsi, rsi
je 0x18003960c
mov ebx, 1
lock xadd dword [rsi + 8], ebx
mov r12, qword [rbp - 0x70]
mov rsi, qword [rsp + 0x28]
mov r13, qword [rsp + 0x20]
lea r9, [rbp - 0x80]
mov r8, r14
lea rdx, [rbp]
mov r14, qword [rbp - 0x68]
mov rcx, r14
call fcn.18003a250
movups xmm6, xmmword [rax]
movups xmmword [rbp - 0x58], xmm6
movsd xmm0, qword [rax + 0x10]
movsd qword [rbp - 0x48], xmm0
cmp byte [rbp - 0x48], 0
je 0x180039640
mov rax, qword [rbp - 0x58]
jmp 0x1800396a9
movabs rax, 0x492492492492492
cmp qword [r14 + 8], rax
je 0x180039769
mov rbx, qword [r14]
mov qword [rbp - 0x68], r14
mov qword [rbp - 0x60], rdi
mov ecx, 0x38
call fcn.18009d1b8
mov qword [rbp - 0x60], rax
movzx ecx, word [rbp + 0xa0]
mov word [rax + 0x20], cx
mov qword [rax + 0x28], r13
mov r12, rdi
mov qword [rbp - 0x70], rdi
mov qword [rax + 0x30], rsi
mov qword [rax], rbx
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rbx
mov word [rax + 0x18], di
movaps xmmword [rbp - 0x30], xmm6
mov r8, rax
lea rdx, [rbp - 0x30]
mov rcx, r14
call fcn.1800215d0
mov rdi, qword [rbp + 0x98]
mov qword [rdi], rax
test r12, r12
je 0x1800396f0
mov eax, r15d
lock xadd dword [r12 + 8], eax
cmp eax, 1
jne 0x1800396eb
mov rbx, qword [rbp - 0x70]
mov rax, qword [rbx]
mov rcx, rbx
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
mov eax, r15d
lock xadd dword [rbx + 0xc], eax
cmp eax, 1
jne 0x1800396eb
mov rcx, qword [rbp - 0x70]
mov rax, qword [rcx]
call qword [rax + reloc.WS2_32.dll_recv]
mov rsi, qword [rsp + 0x28]
test rsi, rsi
je 0x180039728
mov eax, r15d
lock xadd dword [rsi + 8], eax
cmp eax, 1
jne 0x180039728
mov rbx, qword [rsp + 0x28]
mov rax, qword [rbx]
mov rcx, rbx
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
lock xadd dword [rbx + 0xc], r15d
cmp r15d, 1
jne 0x180039728
mov rcx, qword [rsp + 0x28]
mov rax, qword [rcx]
call qword [rax + reloc.WS2_32.dll_recv]
nop
mov rdx, qword [rsp + 0x48]
cmp rdx, 0x10
jb 0x18003919c
inc rdx
mov rcx, qword [rsp + 0x30]
mov rax, rcx
cmp rdx, 0x1000
jb 0x180039197
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x180039775
jmp 0x180039197
call fcn.1800048d0
nop
call fcn.180001df0
nop
call fcn.1800a45b8
nop
lea rcx, [0x18010d288]
call fcn.18009d704
cmp dword [0x18010d288], 0xffffffff
jne 0x1800390d5
mov byte [0x18010671a], 1
movaps xmmword [0x1801066f0], xmm6
movaps xmmword [0x180106700], xmm7
movsd xmm0, qword [rsp + 0x70]
movsd qword [0x180106710], xmm0
movzx eax, word [rsp + 0x78]
mov word [0x180106718], ax
lea rcx, [0x1800ce600]
call fcn.18009d564
lea rcx, [0x18010d288]
call fcn.18009d6a4
jmp 0x1800390d5
lea rcx, [0x18010d284]
call fcn.18009d704
cmp dword [0x18010d284], 0xffffffff
jne 0x180039242
mov word [0x1801066e6], 0x193
movaps xmmword [0x1801066c0], xmm6
movaps xmmword [0x1801066d0], xmm7
mov eax, dword [rsp + 0x70]
mov dword [0x1801066e0], eax
movzx eax, word [rsp + 0x74]
mov word [0x1801066e4], ax
lea rcx, [0x1800ce5d0]
call fcn.18009d564
lea rcx, [0x18010d284]
call fcn.18009d6a4
jmp 0x180039242
call fcn.180001e88
int3
call fcn.1800a45b8
int3
call fcn.1800a45b8
int3