Function at 0x18003b690
Capabilities:
Encode data using xor

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
mov qword [rsp + 0x18], rdi
push rbp
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x20]
sub rsp, 0x120
mov rax, qword [0x1800a8040]
xor rax, rsp
mov qword [rbp + 0x18], rax
xor r13d, r13d
xor r9d, r9d
lea r8, [rbp - 0x10]
xor edx, edx
lea rbx, [0x1800a9a10]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_InitOnceBeginInitialize]
test eax, eax
jne 0x18003b6e9
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_abort]
int3
cmp dword [rbp - 0x10], r13d
je 0x18003b718
mov qword [rsp + 0x40], rbx
mov dword [rsp + 0x48], 4
call fcn.180041330
nop
xor r8d, r8d
xor edx, edx
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_InitOnceComplete]
test eax, eax
je 0x18003c313
cmp byte [0x1800a99e6], 0
je 0x18003c2e0
mov rax, qword [0x1800a9c50]
sub rax, qword [0x1800a9c48]
sar rax, 3
cmp rax, 1
jae 0x18003b823
call fcn.180040520
mov rbx, rax
lea rcx, [rsp + 0x40]
call fcn.1800403a0
mov rdx, rax
mov rcx, rbx
call fcn.18003d0d0
mov r8, qword [rsp + 0x40]
test r8, r8
je 0x18003b7ba
mov rcx, qword [rsp + 0x50]
sub rcx, r8
sar rcx, 3
lea rdx, [rcx*8]
mov rax, r8
cmp rdx, 0x1000
jb 0x18003b7a4
add rdx, 0x27
mov r8, qword [r8 - 8]
sub rax, r8
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x18003b7a4
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
mov rcx, r8
call fcn.18005161c
mov qword [rsp + 0x40], r13
xorps xmm0, xmm0
movdqu xmmword [rsp + 0x48], xmm0
mov rdx, rbx
lea rcx, [rsp + 0x60]
call fcn.18003d170
lea rdx, [rsp + 0x60]
lea rcx, [0x1800a9c48]
call fcn.18003d0d0
mov rcx, qword [rsp + 0x60]
test rcx, rcx
je 0x18003b823
mov rax, qword [rsp + 0x70]
sub rax, rcx
sar rax, 3
lea rdx, [rax*8]
mov rax, rcx
cmp rdx, 0x1000
jb 0x18003b81e
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x18003b81e
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.18005161c
xor r9d, r9d
lea r8, [rbp - 0x10]
xor edx, edx
lea rcx, [0x1800a9a18]
call qword [sym.imp.KERNEL32.dll_InitOnceBeginInitialize]
test eax, eax
jne 0x18003b844
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_abort]
int3
cmp dword [rbp - 0x10], 0
je 0x18003b8c5
movdqa xmm0, xmmword [0x18009d3d0]
movdqu xmmword [rsp + 0x78], xmm0
movdqa xmm1, xmmword [0x18009d380]
movdqu xmmword [rbp - 0x78], xmm1
movdqa xmm0, xmmword [0x18009d370]
movdqu xmmword [rbp - 0x68], xmm0
mov dword [rbp - 0x58], 0x100e8e2
mov rdx, r13
nop dword [rax]
lea eax, [rdx - 0x70]
xor byte [rsp + rdx + 0x78], al
inc rdx
cmp rdx, 0x32
jb 0x18003b880
mov byte [rbp - 0x55], 0
lea r8, [rsp + 0x78]
mov edx, 0x98967f
lea rcx, [0x1800a9d00]
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_strcpy_s]
xor r8d, r8d
xor edx, edx
lea rcx, [0x1800a9a18]
call qword [sym.imp.KERNEL32.dll_InitOnceComplete]
test eax, eax
je 0x18003c30d
movdqa xmm0, xmmword [0x18009d3c0]
movdqu xmmword [rsp + 0x60], xmm0
mov dword [rsp + 0x70], 0xd1cdd5d5
mov word [rsp + 0x74], 0x100
mov rcx, r13
nop word [rax + rax]
lea eax, [rcx - 0x70]
xor byte [rsp + rcx + 0x60], al
inc rcx
cmp rcx, 0x14
jb 0x18003b8f0
mov byte [rsp + 0x75], 0
xor r8d, r8d
xor edx, edx
lea rcx, [rsp + 0x60]
call fcn.18000dd60
mov r8, qword [0x1800a99f0]
mov rax, qword [r8 + 0x1c10]
movss xmm1, dword [rax + 0x224]
subss xmm1, dword [rax + 0xdc]
subss xmm1, dword [0x18009d0ec]
mov rdx, rax
movss xmm0, dword [rax + 0x220]
cmp qword [rax + 0x178], 0
jne 0x18003b959
cmp qword [r8 + 0x2020], 0
je 0x18003b961
movss xmm0, dword [rax + 0x1f0]
subss xmm0, dword [rax + 0xd8]
cvtps2pd xmm0, xmm0
divsd xmm0, qword [0x18009d0a0]
cvtpd2ps xmm0, xmm0
movss dword [rbp - 0x10], xmm0
movss dword [rbp - 0xc], xmm1
mov dword [rsp + 0x40], 0x8c94d4d5
mov dword [rsp + 0x44], 0x9999a49b
mov dword [rsp + 0x48], 0x736f8b97
mov word [rsp + 0x4c], 0x100
mov rcx, r13
nop dword [rax]
nop dword [rax + rax]
lea eax, [rcx - 0xa]
xor byte [rsp + rcx + 0x40], al
inc rcx
cmp rcx, 0xc
jb 0x18003b9b0
mov byte [rsp + 0x4d], 0
mov byte [rdx + 0x90], 1
lea rdx, [rsp + 0x40]
mov rcx, qword [r8 + 0x1c10]
call fcn.180006a60
mov edx, eax
mov dword [rsp + 0x20], r13d
xor r9d, r9d
lea r8, [rbp - 0x10]
lea rcx, [rsp + 0x40]
call fcn.18000b120
mov rax, qword [0x1800a99f0]
mov rdx, qword [rax + 0x1c10]
movss xmm1, dword [rdx + 0x224]
subss xmm1, dword [rdx + 0xdc]
movss xmm0, dword [rdx + 0x220]
cmp qword [rdx + 0x178], 0
jne 0x18003ba2f
cmp qword [rax + 0x2020], 0
je 0x18003ba37
movss xmm0, dword [rdx + 0x1f0]
subss xmm0, dword [rdx + 0xd8]
movss dword [rbp - 0x10], xmm0
movss dword [rbp - 0xc], xmm1
mov dword [rsp + 0x40], 0x8c94d4d5
mov dword [rsp + 0x44], 0x9999a49b
mov dword [rsp + 0x48], 0x736f8b97
mov word [rsp + 0x4c], 0x100
mov rcx, r13
nop dword [rax + rax]
lea eax, [rcx - 0xa]
xor byte [rsp + rcx + 0x40], al
inc rcx
cmp rcx, 0xc
jb 0x18003ba70
mov byte [rsp + 0x4d], 0
mov qword [rsp + 0x38], r13
mov qword [rsp + 0x30], r13
mov dword [rsp + 0x28], 0x4000000
lea rax, [rbp - 0x10]
mov qword [rsp + 0x20], rax
mov r9d, 0x98967f
lea r8, [0x1800a9d00]
xor edx, edx
lea rcx, [rsp + 0x40]
call fcn.180031080
call fcn.18000b350
movss xmm1, dword [0x18009d134]
xorps xmm0, xmm0
call fcn.180010f00
mov r8, qword [0x1800a99f0]
mov rax, qword [r8 + 0x1c10]
movss xmm1, dword [rax + 0x224]
subss xmm1, dword [rax + 0xdc]
subss xmm1, dword [0x18009d0ec]
mov rdx, rax
movss xmm0, dword [rax + 0x220]
cmp qword [rax + 0x178], 0
jne 0x18003bb13
cmp qword [r8 + 0x2020], 0
je 0x18003bb1b
movss xmm0, dword [rax + 0x1f0]
subss xmm0, dword [rax + 0xd8]
movss dword [rbp - 0x10], xmm0
movss dword [rbp - 0xc], xmm1
mov dword [rsp + 0x40], 0x8c94d4d5
mov dword [rsp + 0x44], 0x929fa49b
mov dword [rsp + 0x48], 0x66699990
mov word [rsp + 0x4c], 0x100
mov rcx, r13
nop
lea eax, [rcx - 0xa]
xor byte [rsp + rcx + 0x40], al
inc rcx
cmp rcx, 0xc
jb 0x18003bb50
mov byte [rsp + 0x4d], 0
mov byte [rdx + 0x90], 1
lea rdx, [rsp + 0x40]
mov rcx, qword [r8 + 0x1c10]
call fcn.180006a60
mov edx, eax
mov dword [rsp + 0x20], r13d
xor r9d, r9d
lea r8, [rbp - 0x10]
lea rcx, [rsp + 0x40]
call fcn.18000b120
mov rax, qword [0x1800a99f0]
mov rdx, qword [rax + 0x1c10]
movss xmm0, dword [rdx + 0x220]
cmp qword [rdx + 0x178], 0
jne 0x18003bbbf
cmp qword [rax + 0x2020], 0
je 0x18003bbc7
movss xmm0, dword [rdx + 0x1f0]
subss xmm0, dword [rdx + 0xd8]
movss dword [rsp + 0x60], xmm0
mov dword [rsp + 0x64], 0x42000000
mov dword [rbp - 0x10], 0xfce4c2
mov byte [rbp - 0xc], 1
mov rcx, r13
nop dword [rax + rax]
lea eax, [rcx - 0x70]
xor byte [rbp + rcx - 0x10], al
inc rcx
cmp rcx, 3
jb 0x18003bbf0
mov byte [rbp - 0xc], 0
lea rdx, [rsp + 0x60]
lea rcx, [rbp - 0x10]
call fcn.18002d180
test al, al
je 0x18003bcbd
mov rax, qword [0x1800a9c50]
sub rax, qword [0x1800a9c48]
sar rax, 3
cmp rax, 1
jbe 0x18003bcbd
lea rdx, [0x1800a9d00]
call fcn.180034fd0
call fcn.1800350e0
test al, al
je 0x18003bcbd
call fcn.18003b4a0
mov rdi, rax
lea rax, [rbp - 8]
mov qword [rsp + 0x60], rax
lea rdx, [0x1800a82f8]
lea rcx, [rbp - 8]
call fcn.180002070
mov rbx, rax
lea rdx, [0x1800a8318]
lea rcx, [rbp - 0x50]
call fcn.180002070
nop
mov rdx, rbx
mov rcx, rax
call fcn.180001b70
test al, al
je 0x18003bcbd
test rdi, rdi
je 0x18003bcbd
mov eax, dword [0x1800a9a00]
cmp eax, 5
jge 0x18003bcb5
mov rcx, rdi
call fcn.1800353e0
mov rcx, rax
call fcn.18003fe20
mov eax, dword [0x1800a9a00]
inc eax
mov dword [0x1800a9a00], eax
mov rax, qword [0x1800a99f0]
mov rdx, qword [rax + 0x1c10]
movss xmm0, dword [rdx + 0x220]
cmp qword [rdx + 0x178], 0
jne 0x18003bce7
cmp qword [rax + 0x2020], 0
je 0x18003bcef
movss xmm0, dword [rdx + 0x1f0]
subss xmm0, dword [rdx + 0xd8]
movss dword [rsp + 0x60], xmm0
mov dword [rsp + 0x64], 0x42000000
mov dword [rsp + 0x40], 0xb3fce4c2
mov dword [rsp + 0x44], 0xf2fafcd2
mov word [rsp + 0x48], 0x100
mov rcx, r13
nop
lea eax, [rcx - 0x70]
xor byte [rsp + rcx + 0x40], al
inc rcx
cmp rcx, 8
jb 0x18003bd20
mov byte [rsp + 0x49], 0
lea rdx, [rsp + 0x60]
lea rcx, [rsp + 0x40]
call fcn.18002d180
test al, al
je 0x18003bd4f
mov byte [0x1800a99e4], 1
mov rbx, qword [0x1800a99f0]
lea rcx, [rbx + 0x1d88]
movss xmm1, dword [rbx + 0x159c]
movss xmm0, dword [rbx + 0x15a0]
mov dword [rsp + 0x60], recv
movss dword [rsp + 0x64], xmm1
movss dword [rsp + 0x68], xmm0
lea rdx, [rsp + 0x60]
call fcn.180017e90
mov dword [rbx + 0x159c], 0x40a00000
mov dword [rbx + 0x15a0], 0x40a00000
mov dword [rbp - 0x10], 0x9f9498aa
mov dword [rbp - 0xc], 0x1009093
mov rcx, r13
lea eax, [rcx - 8]
xor byte [rbp + rcx - 0x10], al
inc rcx
cmp rcx, 6
jb 0x18003bdb0
mov byte [rbp - 9], 0
lea rcx, [rbp - 0x10]
call fcn.18002df30
movss xmm1, dword [0x18009d134]
xorps xmm0, xmm0
call fcn.180010f00
mov dword [rbp - 0x10], 0xbbaeb8
mov byte [rbp - 0xc], 1
mov rcx, r13
nop dword [rax + rax]
lea eax, [rcx - 0x70]
xor byte [rbp + rcx - 0x10], al
inc rcx
cmp rcx, 3
jb 0x18003bdf0
mov byte [rbp - 0xc], 0
movaps xmm0, xmmword [0x18009d2a0]
movups xmmword [rsp + 0x40], xmm0
lea rdx, [rbp - 0x10]
lea rcx, [rsp + 0x40]
call fcn.18002c8c0
mov rcx, qword [0x1800a99f0]
mov rdx, qword [rcx + 0x1c10]
cmp byte [rcx + 0x1e53], 0
je 0x18003be70
cmp byte [rcx + 0x1e52], 0
jne 0x18003be70
test byte [rcx + 0x1ccc], 4
jne 0x18003bf6f
mov eax, dword [rcx + 0x1e10]
cmp eax, dword [rcx + 0x1cc8]
jne 0x18003be61
test eax, eax
je 0x18003be61
mov al, 1
jmp 0x18003be63
xor al, al
test al, al
je 0x18003bf6f
jmp 0x18003bf14
mov eax, dword [rcx + 0x1cd0]
test al, 1
je 0x18003bf6f
cmp qword [rcx + 0x1c18], rdx
je 0x18003be8f
test al, al
jns 0x18003bf6f
mov eax, dword [rcx + 0x1c5c]
test eax, eax
je 0x18003beb3
cmp eax, dword [rcx + 0x1cc8]
je 0x18003beb3
cmp byte [rcx + 0x1c69], 0
jne 0x18003beb3
cmp eax, dword [rdx + 0x54]
jne 0x18003bf6f
mov rax, qword [rcx + 0x1e08]
test rax, rax
je 0x18003bef7
mov rax, qword [rax + 0x340]
test rax, rax
je 0x18003bef7
cmp byte [rax + 0x8f], 0
je 0x18003bef7
cmp rax, qword [rdx + 0x340]
je 0x18003bef7
mov r8d, dword [rax + 0xc]
bt r8d, 0x1b
jb 0x18003bf6f
bt r8d, 0x1a
jb 0x18003bf6f
test byte [rcx + 0x1ccc], 4
jne 0x18003bf6f
mov eax, dword [rdx + 0x54]
cmp dword [rcx + 0x1cc8], eax
jne 0x18003bf14
cmp byte [rdx + 0x90], 0
jne 0x18003bf6f
movdqa xmm0, xmmword [0x18009d390]
movdqu xmmword [rsp + 0x40], xmm0
mov dword [rsp + 0x50], 0x83cfcec4
mov dword [rsp + 0x54], 0xc8d5c0d6
mov dword [rsp + 0x58], 0xcec9dbdd
mov word [rsp + 0x5c], 0x82
mov byte [rsp + 0x5e], 1
mov rcx, r13
nop dword [rax]
lea eax, [rcx - 0x70]
xor byte [rsp + rcx + 0x40], al
inc rcx
cmp rcx, 0x1d
jb 0x18003bf50
mov byte [rsp + 0x5e], 0
lea rcx, [rsp + 0x40]
call fcn.180011cd0
call fcn.18000b350
lea rdx, [0x1800a8340]
cmp qword [0x1800a8358], 0xf
cmova rdx, qword [0x1800a8340]
movdqa xmm0, xmmword [0x18009d3b0]
movdqu xmmword [rsp + 0x40], xmm0
mov dword [rsp + 0x50], 0xcacefed4
mov dword [rsp + 0x54], 0x100d1d7
mov rcx, r13
nop dword [rax]
lea eax, [rcx - 0x70]
xor byte [rsp + rcx + 0x40], al
inc rcx
cmp rcx, 0x16
jb 0x18003bfb0
mov byte [rsp + 0x57], 0
lea rcx, [rsp + 0x40]
call fcn.18002e650
test al, al
je 0x18003c15c
mov esi, r13d
mov rax, qword [0x1800a9c50]
mov rdx, qword [0x1800a9c48]
sub rax, rdx
sar rax, 3
test rax, rax
je 0x18003c110
mov qword [rsp + 0x60], rsi
mov r14, r13
mov r15, qword [r14 + rdx]
cmp dword [0x1800a9cf0], esi
sete r12b
lea rdx, [rbp - 8]
mov rcx, r15
call fcn.180040020
nop
lea rcx, [rbp - 8]
cmp qword [rbp + 0x10], 0xf
cmova rcx, qword [rbp - 8]
lea r9, [rsp + 0x60]
movzx edx, r12b
call fcn.180034500
test al, al
je 0x18003c0ae
mov dword [0x1800a9cf0], esi
mov rdi, qword [rbp + 8]
lea r9, [rbp - 8]
cmp qword [rbp + 0x10], 0xf
cmova r9, qword [rbp - 8]
mov rax, qword [0x1800a8358]
cmp rdi, rax
ja 0x18003c08d
lea rbx, [0x1800a8340]
cmp rax, 0xf
cmova rbx, qword [0x1800a8340]
mov qword [0x1800a8350], rdi
mov r8, rdi
mov rdx, r9
mov rcx, rbx
call sub.VCRUNTIME140.dll_memmove
mov byte [rdi + rbx], 0
jmp 0x18003c09c
mov rdx, rdi
lea rcx, [0x1800a8340]
call fcn.180002550
mov qword [0x1800a9cf8], r15
test r12b, r12b
je 0x18003c0ae
call fcn.1800108f0
nop
mov rdx, qword [rbp + 0x10]
cmp rdx, 0xf
jbe 0x18003c0e9
inc rdx
mov rcx, qword [rbp - 8]
mov rax, rcx
cmp rdx, 0x1000
jb 0x18003c0e4
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x18003c2d4
call fcn.18005161c
inc esi
add r14, 8
mov rcx, qword [0x1800a9c50]
mov rdx, qword [0x1800a9c48]
sub rcx, rdx
sar rcx, 3
movsxd rax, esi
cmp rax, rcx
jb 0x18003c000
mov rbx, qword [0x1800a99f0]
mov rax, qword [rbx + 0x1c10]
cmp qword [rbx + 0x1e08], rax
jne 0x18003c140
cmp byte [rbx + 0x1e6d], 0
je 0x18003c140
cmp dword [rbx + 0x1e48], 0
jne 0x18003c140
or dword [rbx + 0x1e70], 2
test dword [rax + 0xc], 0x1000000
je 0x18003c150
mov byte [rbx + 0x1b9e], 1
call fcn.180010160
mov byte [rbx + 0x1b9e], 0
call fcn.180010160
cmp byte [0x1800a99e4], 0
je 0x18003c17c
call fcn.18003abe0
cmp byte [0x1800a99e4], 0
jne 0x18003c2e0
cmp byte [0x1800a99e5], 0
je 0x18003c2e0
lea rdi, [0x1800a8360]
mov rdx, rdi
lea rcx, [rbp - 0x50]
call fcn.180002070
mov rdx, rax
lea rcx, [rbp - 8]
call fcn.18003a390
nop
mov rax, qword [0x1800a9c50]
sub rax, qword [0x1800a9c48]
sar rax, 3
cmp rax, 1
jbe 0x18003c254
lea rdx, [rbp - 8]
cmp qword [rbp + 0x10], 0xf
cmova rdx, qword [rbp - 8]
call fcn.180034fd0
call fcn.1800350e0
test al, al
je 0x18003c254
call fcn.18003b4a0
mov rsi, rax
lea rax, [rbp - 0x30]
mov qword [rsp + 0x40], rax
lea rdx, [0x1800a82f8]
lea rcx, [rbp - 0x30]
call fcn.180002070
mov rbx, rax
lea rdx, [0x1800a8318]
lea rcx, [rsp + 0x78]
call fcn.180002070
nop
mov rdx, rbx
mov rcx, rax
call fcn.180001b70
test al, al
je 0x18003c254
test rsi, rsi
je 0x18003c254
mov eax, dword [0x1800a9a00]
cmp eax, 5
jge 0x18003c24c
mov rcx, rsi
call fcn.1800353e0
mov rcx, rax
call fcn.18003fe20
mov eax, dword [0x1800a9a00]
inc eax
mov dword [0x1800a9a00], eax
mov byte [0x1800a99e5], 0
cmp qword [0x1800a8378], 0xf
cmova rdi, qword [0x1800a8360]
mov qword [0x1800a8370], r13
mov byte [rdi], 0
mov rcx, qword [0x1800a9c30]
mov rdx, qword [0x1800a9c38]
cmp rcx, rdx
je 0x18003c29b
call fcn.18003e020
mov rax, qword [0x1800a9c30]
mov qword [0x1800a9c38], rax
mov rdx, qword [rbp + 0x10]
cmp rdx, 0xf
jbe 0x18003c2e0
inc rdx
mov rcx, qword [rbp - 8]
mov rax, rcx
cmp rdx, 0x1000
jb 0x18003c2db
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x18003c2db
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.18005161c
mov rcx, qword [rbp + 0x18]
xor rcx, rsp
call fcn.180051250
lea r11, [rsp + 0x120]
mov rbx, qword [r11 + 0x30]
mov rsi, qword [r11 + 0x38]
mov rdi, qword [r11 + 0x40]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rbp
ret
call fcn.180051080
int3
call fcn.180051080
int3