Function at 0x140015900
Capabilities:
Encode data using xor

Disassembly:
mov qword [rsp + 0x20], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x180]
sub rsp, 0x280
mov rax, qword [0x1400920c0]
xor rax, rsp
mov qword [rbp + 0x170], rax
mov r12, r8
mov r14, rdx
mov rdi, rcx
mov qword [rsp + 0x78], rdx
mov qword [rbp + 0xd8], r8
xor r13d, r13d
mov dword [rbp - 0x70], r13d
cmp byte [0x140092d98], r13b
jne 0x140015990
xorps xmm0, xmm0
movups xmmword [rbp + 0xf0], xmm0
mov qword [rbp + 0x100], r13
mov qword [rbp + 0x108], r13
lea r8d, [r13 + 0x52]
lea rdx, str.You_need_to_run_the_KeyAuthApp.init____function_before_any_other_KeyAuth_functions
lea rcx, [rbp + 0xf0]
call fcn.140001e00
lea rcx, [rbp + 0xf0]
call fcn.140017ec0
mov dword [rsp + 0x38], 0xf4eef7b1
mov dword [rsp + 0x3c], 0xfaf4eefe
mov word [rsp + 0x40], 0xa2
mov byte [rsp + 0x42], 1
mov rcx, r13
nop
lea eax, [rcx - 0x69]
xor byte [rsp + rcx + 0x38], al
inc rcx
cmp rcx, 9
jb 0x1400159b0
mov byte [rsp + 0x42], 0
mov dword [rsp + 0x78], 0xf7f8f6b1
mov dword [rsp + 0x7c], 0x100a1fe
mov dword [rbp - 0x80], 0xe9fcebb1
mov dword [rbp - 0x7c], 0xf0f2f5e8
mov dword [rbp - 0x78], 0x9cc4f6
mov byte [rbp - 0x74], 1
mov dword [rsp + 0x48], 0xf6f0feb1
mov dword [rsp + 0x4c], 0xa3f9f5fe
mov word [rsp + 0x50], 0x100
mov dword [rsp + 0x68], 0xffe9e1e3
mov dword [rsp + 0x6c], 0xf2f4faa6
mov word [rsp + 0x70], 0xfa
mov byte [rsp + 0x72], 1
mov rcx, r13
nop dword [rax]
nop dword [rax + rax]
lea eax, [rcx - 0x69]
xor byte [rsp + rcx + 0x48], al
inc rcx
cmp rcx, 8
jb 0x140015a30
mov byte [rsp + 0x51], 0
lea r9, [rsp + 0x30]
lea r8, [rsp + 0x50]
lea rdx, [rsp + 0x48]
lea rcx, [rbp - 0x28]
call fcn.140005df0
nop
cmp byte [rsp + 0x72], 0
je 0x140015a85
mov rcx, r13
nop dword [rax + rax]
lea eax, [rcx - 0x69]
xor byte [rsp + rcx + 0x68], al
inc rcx
cmp rcx, 9
jb 0x140015a70
mov byte [rsp + 0x72], 0
lea r9, [rsp + 0x30]
lea r8, [rsp + 0x71]
lea rdx, [rsp + 0x68]
lea rcx, [rbp + 0x18]
call fcn.140005df0
nop
lea r9, [rbp - 0x28]
lea r8, [rbp + 0x18]
movzx edx, byte [rsp + 0x30]
lea rcx, [rbp - 0x48]
call fcn.14000d930
nop
mov rdx, qword [rbp + 0x30]
cmp rdx, 0xf
jbe 0x140015af4
inc rdx
mov rcx, qword [rbp + 0x18]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140015aee
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140015aee
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.1400720a0
nop
mov rdx, qword [rbp - 0x10]
cmp rdx, 0xf
jbe 0x140015b33
inc rdx
mov rcx, qword [rbp - 0x28]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140015b2d
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140015b2d
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.1400720a0
nop
mov rdx, r12
cmp qword [r12 + 0x18], 0xf
jbe 0x140015b42
mov rdx, qword [r12]
mov r8, qword [r12 + 0x10]
lea rcx, [rbp - 0x48]
call fcn.1400059d0
movups xmm0, xmmword [rax]
movups xmmword [rbp + 0x98], xmm0
movups xmm1, xmmword [rax + 0x10]
movups xmmword [rbp + 0xa8], xmm1
mov qword [rax + 0x10], r13
mov qword [rax + 0x18], reloc.WS2_32.dll_ntohs
mov byte [rax], 0
lea r8, [rbp - 0x80]
lea rdx, [rbp + 0x98]
lea rcx, [rbp + 0x78]
call fcn.140006a30
nop
lea rdx, [rdi + 0x238]
mov r8, qword [rdx + 0x10]
cmp qword [rdx + 0x18], 0xf
jbe 0x140015b9e
mov rdx, qword [rdx]
mov rcx, rax
call fcn.1400059d0
movups xmm0, xmmword [rax]
movups xmmword [rbp + 0x58], xmm0
movups xmm1, xmmword [rax + 0x10]
movups xmmword [rbp + 0x68], xmm1
mov qword [rax + 0x10], r13
mov qword [rax + 0x18], reloc.WS2_32.dll_ntohs
mov byte [rax], 0
lea r8, [rsp + 0x78]
lea rdx, [rbp + 0x58]
lea rcx, [rbp + 0x38]
call fcn.140006790
nop
mov rdx, rdi
cmp qword [rdi + 0x18], 0xf
jbe 0x140015be4
mov rdx, qword [rdi]
mov r8, qword [rdi + 0x10]
mov rcx, rax
call fcn.1400059d0
xorps xmm0, xmm0
movups xmmword [rbp + 0xf0], xmm0
xorps xmm1, xmm1
movdqu xmmword [rbp + 0x100], xmm1
movups xmm0, xmmword [rax]
movups xmmword [rbp + 0xf0], xmm0
movups xmm1, xmmword [rax + 0x10]
movups xmmword [rbp + 0x100], xmm1
mov qword [rax + 0x10], r13
mov qword [rax + 0x18], reloc.WS2_32.dll_ntohs
mov byte [rax], 0
lea rax, [rsp + 0x38]
mov r8, 0xffffffffffffffff
inc r8
cmp byte [rax + r8], 0
jne 0x140015c35
lea rdx, [rsp + 0x38]
lea rcx, [rbp + 0xf0]
call fcn.1400059d0
xorps xmm0, xmm0
movups xmmword [rbp - 0x68], xmm0
xorps xmm1, xmm1
movdqu xmmword [rbp - 0x58], xmm1
movups xmm0, xmmword [rax]
movups xmmword [rbp - 0x68], xmm0
movups xmm1, xmmword [rax + 0x10]
movups xmmword [rbp - 0x58], xmm1
mov qword [rax + 0x10], r13
mov qword [rax + 0x18], reloc.WS2_32.dll_ntohs
mov byte [rax], 0
lea rdx, [rdi + 0x20]
mov r8, qword [rdx + 0x10]
cmp qword [rdx + 0x18], 0xf
jbe 0x140015c8f
mov rdx, qword [rdx]
lea rcx, [rbp - 0x68]
call fcn.1400059d0
movups xmm0, xmmword [rax]
movups xmmword [rbp + 0x150], xmm0
movups xmm1, xmmword [rax + 0x10]
movups xmmword [rbp + 0x160], xmm1
mov qword [rax + 0x10], r13
mov qword [rax + 0x18], reloc.WS2_32.dll_ntohs
mov byte [rax], 0
mov rdx, qword [rbp - 0x50]
cmp rdx, 0xf
jbe 0x140015cfa
inc rdx
mov rcx, qword [rbp - 0x68]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140015cf5
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140015cf5
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.1400720a0
movdqa xmm0, xmmword [0x140076150]
movdqu xmmword [rbp - 0x58], xmm0
mov byte [rbp - 0x68], 0
mov rdx, qword [rbp + 0x108]
cmp rdx, 0xf
jbe 0x140015d4f
inc rdx
mov rcx, qword [rbp + 0xf0]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140015d4a
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140015d4a
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.1400720a0
movdqa xmm0, xmmword [0x140076150]
movdqu xmmword [rbp + 0x100], xmm0
mov byte [rbp + 0xf0], 0
mov rdx, qword [rbp + 0x50]
cmp rdx, 0xf
jbe 0x140015da4
inc rdx
mov rcx, qword [rbp + 0x38]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140015d9f
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140015d9f
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.1400720a0
movdqa xmm0, xmmword [0x140076150]
movdqu xmmword [rbp + 0x48], xmm0
mov byte [rbp + 0x38], 0
mov rdx, qword [rbp + 0x70]
cmp rdx, 0xf
jbe 0x140015df4
inc rdx
mov rcx, qword [rbp + 0x58]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140015dee
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140015dee
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.1400720a0
nop
mov rdx, qword [rbp + 0x90]
cmp rdx, 0xf
jbe 0x140015e35
inc rdx
mov rcx, qword [rbp + 0x78]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140015e30
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140015e30
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.1400720a0
movdqa xmm0, xmmword [0x140076150]
movdqu xmmword [rbp + 0x88], xmm0
mov byte [rbp + 0x78], 0
mov rdx, qword [rbp + 0xb0]
cmp rdx, 0xf
jbe 0x140015e8e
inc rdx
mov rcx, qword [rbp + 0x98]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140015e88
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140015e88
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.1400720a0
nop
mov rdx, qword [rbp - 0x30]
cmp rdx, 0xf
jbe 0x140015ecc
inc rdx
mov rcx, qword [rbp - 0x48]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140015ec7
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140015ec7
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.1400720a0
movdqa xmm0, xmmword [0x140076150]
movdqu xmmword [rbp - 0x38], xmm0
mov byte [rbp - 0x48], 0
lea rax, [rbp - 0x28]
mov qword [rsp + 0x58], rax
lea rdx, [rdi + 0x80]
lea rcx, [rbp - 0x28]
call fcn.140003250
mov rbx, rax
lea rdx, [rbp + 0x150]
lea rcx, [rbp + 0x18]
call fcn.140003250
nop
mov r8, rbx
mov rdx, rax
lea rcx, [rbp + 0x130]
call fcn.14001e510
nop
mov qword [rbp + 0xd0], r13
mov byte [rsp + 0x20], 0
mov r9b, 1
lea r8, [rbp + 0x98]
lea rdx, [rbp + 0x130]
lea rcx, [rbp + 0xe0]
call fcn.14000ad40
nop
mov dword [rsp + 0x58], 0xe9eafdfa
mov dword [rsp + 0x5c], 0xf8fbfa
mov byte [rsp + 0x60], 1
mov rcx, r13
nop
lea eax, [rcx - 0x69]
xor byte [rsp + rcx + 0x58], al
inc rcx
cmp rcx, 7
jb 0x140015f60
mov byte [rsp + 0x60], 0
lea r9, [rsp + 0x30]
lea r8, [rsp + 0x5f]
lea rdx, [rsp + 0x58]
lea rcx, [rbp - 0x48]
call fcn.140005df0
nop
mov rbx, qword [rsp + 0x38]
movzx ecx, byte [rbp + 0xe0]
test cl, cl
jne 0x140015fba
mov byte [rbp + 0xe0], 1
call fcn.140009370
mov qword [rbp + 0xe8], rax
movzx ecx, byte [rbp + 0xe0]
jmp 0x140015fc1
mov rax, qword [rbp + 0xe8]
cmp cl, 1
jne 0x140015fd5
lea rdx, [rbp - 0x48]
mov rcx, rax
call fcn.14000f840
mov rbx, rax
xorps xmm0, xmm0
movups xmmword [rbp + 0x110], xmm0
movdqa xmm1, xmmword [0x140076150]
movdqu xmmword [rbp + 0x120], xmm1
mov byte [rbp + 0x110], 0
mov dword [rbp - 0x70], 0x2ffe
cmp byte [rbx], 3
jne 0x140016014
mov rdx, qword [rbx + 8]
lea rax, [rbp + 0x110]
cmp rax, rdx
je 0x140016032
jmp 0x140016017
mov rdx, r13
mov r8, qword [rdx + 0x10]
cmp qword [rdx + 0x18], 0xf
jbe 0x140016025
mov rdx, qword [rdx]
lea rcx, [rbp + 0x110]
call fcn.1400116f0
nop
mov rdx, qword [rbp - 0x30]
cmp rdx, 0xf
jbe 0x140016070
inc rdx
mov rcx, qword [rbp - 0x48]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14001606b
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x14001606b
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.1400720a0
movdqa xmm0, xmmword [0x140076150]
movdqu xmmword [rbp - 0x38], xmm0
mov byte [rbp - 0x48], 0
lea rdx, [rbp + 0xe0]
lea rcx, [rbp - 0x80]
call fcn.14000d4b0
mov rdx, rax
mov rcx, rdi
call fcn.14001c320
mov dword [rsp + 0x38], 0xf9faede4
mov dword [rsp + 0x3c], 0xeeeffe
mov byte [rsp + 0x40], 1
mov rcx, r13
nop dword [rax]
nop dword [rax + rax]
lea eax, [rcx - 0x69]
xor byte [rsp + rcx + 0x38], al
inc rcx
cmp rcx, 7
jb 0x1400160c0
mov byte [rsp + 0x40], 0
lea r9, [rsp + 0x30]
lea r8, [rsp + 0x3f]
lea rdx, [rsp + 0x38]
lea rcx, [rbp - 0x28]
call fcn.140005df0
nop
cmp byte [rbp + 0xe0], 0
jne 0x14001610c
mov byte [rbp + 0xe0], 1
call fcn.140009370
mov qword [rbp + 0xe8], rax
jmp 0x140016113
mov rax, qword [rbp + 0xe8]
cmp byte [rbp + 0xe0], 1
jne 0x14001612d
lea rdx, [rbp - 0x28]
mov rcx, rax
call fcn.14000f840
mov rcx, rax
jmp 0x140016132
mov rcx, qword [rsp + 0x38]
lea rax, [rcx + 8]
cmp byte [rcx], 4
cmovne rax, r13
movzx ebx, byte [rax]
mov rdx, qword [rbp - 0x10]
cmp rdx, 0xf
jbe 0x14001617e
inc rdx
mov rcx, qword [rbp - 0x28]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140016179
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140016179
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.1400720a0
test bl, bl
je 0x1400163b9
mov dword [rsp + 0x48], 0xeef7f7f4
mov dword [rsp + 0x4c], 0xede9f2fe
mov word [rsp + 0x50], 0x100
mov rcx, r13
lea eax, [rcx - 0x69]
xor byte [rsp + rcx + 0x48], al
inc rcx
cmp rcx, 8
jb 0x1400161a0
mov byte [rsp + 0x51], 0
lea r9, [rsp + 0x30]
lea r8, [rsp + 0x50]
lea rdx, [rsp + 0x48]
lea rcx, [rbp - 0x68]
call fcn.140005df0
nop
mov rbx, qword [rsp + 0x38]
movzx ecx, byte [rbp + 0xe0]
test cl, cl
jne 0x1400161fa
mov byte [rbp + 0xe0], 1
call fcn.140009370
mov qword [rbp + 0xe8], rax
movzx ecx, byte [rbp + 0xe0]
jmp 0x140016201
mov rax, qword [rbp + 0xe8]
cmp cl, 1
jne 0x140016215
lea rdx, [rbp - 0x68]
mov rcx, rax
call fcn.14000f840
mov rbx, rax
xorps xmm0, xmm0
movups xmmword [rbp - 8], xmm0
movdqa xmm1, xmmword [0x140076150]
movdqu xmmword [rbp + 8], xmm1
mov byte [rbp - 8], 0
mov dword [rbp - 0x70], 0xbdffe
cmp byte [rbx], 3
jne 0x140016248
mov rdx, qword [rbx + 8]
lea rax, [rbp - 8]
cmp rax, rdx
je 0x140016263
jmp 0x14001624b
mov rdx, r13
mov r8, qword [rdx + 0x10]
cmp qword [rdx + 0x18], 0xf
jbe 0x140016259
mov rdx, qword [rdx]
lea rcx, [rbp - 8]
call fcn.1400116f0
nop
lea rdx, [rbp - 8]
lea rcx, [rbp + 0xf0]
call fcn.140019720
nop
mov rdx, qword [rbp + 0x10]
cmp rdx, 0xf
jbe 0x1400162b2
inc rdx
mov rcx, qword [rbp - 8]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400162ad
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x1400162ad
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.1400720a0
movdqa xmm0, xmmword [0x140076150]
movdqu xmmword [rbp + 8], xmm0
mov byte [rbp - 8], 0
mov rdx, qword [rbp - 0x50]
cmp rdx, 0xf
jbe 0x140016301
inc rdx
mov rcx, qword [rbp - 0x68]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400162fc
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x1400162fc
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.1400720a0
movdqa xmm0, xmmword [0x140076150]
movdqu xmmword [rbp - 0x58], xmm0
mov byte [rbp - 0x68], 0
lea rdx, [rbp + 0xf0]
lea rcx, [rbp - 0x28]
call fcn.140003250
mov rdi, rax
mov qword [rsp + 0x38], rax
mov rsi, qword [rax + 0x10]
cmp qword [rax + 0x18], 0xf
jbe 0x14001633d
add rsi, qword [rax]
mov r15, qword [rax]
jmp 0x140016343
add rsi, rdi
mov r15, rdi
mov qword [r14], r13
mov qword [r14 + 8], r13
mov qword [r14 + 0x10], r13
sub rsi, r15
je 0x140016377
mov rdx, rsi
mov rcx, r14
call fcn.140010300
mov rbx, qword [r14]
mov r8, rsi
mov rdx, r15
mov rcx, rbx
call sub.VCRUNTIME140.dll_memmove
lea rax, [rsi + rbx]
mov qword [r14 + 8], rax
mov rcx, rdi
call fcn.140003930
nop
mov r8, qword [rbp + 0x108]
cmp r8, 0xf
jbe 0x1400163a0
mov rdx, qword [rbp + 0xf0]
lea rcx, [rbp + 0xf0]
call fcn.140005950
movdqa xmm0, xmmword [0x140076150]
movdqu xmmword [rbp + 0x100], xmm0
mov byte [rbp + 0xf0], 0
jmp 0x1400163c4
mov qword [r14], r13
mov qword [r14 + 8], r13
mov qword [r14 + 0x10], r13
mov r8, qword [rbp + 0x128]
cmp r8, 0xf
jbe 0x1400163e4
mov rdx, qword [rbp + 0x110]
lea rcx, [rbp + 0x110]
call fcn.140005950
movdqa xmm0, xmmword [0x140076150]
mov byte [rbp + 0x110], 0
movdqu xmmword [rbp + 0x120], xmm0
movzx edx, byte [rbp + 0xe0]
lea rcx, [rbp + 0xe8]
call fcn.140015380
nop
mov r8, qword [rbp + 0x148]
cmp r8, 0xf
jbe 0x14001642f
mov rdx, qword [rbp + 0x130]
lea rcx, [rbp + 0x130]
call fcn.140005950
movdqa xmm0, xmmword [0x140076150]
mov byte [rbp + 0x130], 0
movdqu xmmword [rbp + 0x140], xmm0
mov r8, qword [rbp + 0x168]
cmp r8, 0xf
jbe 0x140016467
mov rdx, qword [rbp + 0x150]
lea rcx, [rbp + 0x150]
call fcn.140005950
nop
mov rcx, r12
call fcn.1400115f0
mov rax, r14
mov rcx, qword [rbp + 0x170]
xor rcx, rsp
call fcn.140072400
mov rbx, qword [rsp + 0x2d8]
add rsp, 0x280
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret