Function at 0x180138040
Capabilities:
Authenticate hmac
Encode data using xor

Disassembly:
mov rax, rsp
mov qword [rax + 0x18], r8
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rax - 0x558]
sub rsp, 0x620
mov qword [rbp - 0x38], 0xfffffffffffffffe
mov qword [rax + 8], rbx
mov r13, rcx
xor ebx, ebx
mov qword [rsp + 0x40], 0xba49
mov dword [rsp + 0x48], 0xff410000
mov byte [rsp + 0x4c], 0xe2
mov qword [rbp + 0x568], rdx
lea r8d, [rbx + 8]
lea rdx, [rbp + 0x568]
lea rcx, [rsp + 0x42]
call qword [sym.imp.VCRUNTIME140.dll_memcpy]
xorps xmm0, xmm0
movups xmmword [rsp + 0x70], xmm0
lea edi, [rbx + 9]
mov qword [rbp - 0x80], rdi
mov qword [rbp - 0x78], 0xf
mov r8d, edi
lea rdx, [0x180164cd8]
lea rcx, [rsp + 0x70]
call qword [sym.imp.VCRUNTIME140.dll_memcpy]
mov byte [rsp + 0x79], bl
lea rcx, [rsp + 0x70]
cmp qword [rbp - 0x78], 0x10
cmovae rcx, qword [rsp + 0x70]
call qword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov r12, rax
mov dword [rsp + 0x20], 0x50
mov eax, dword [rsp + 0x20]
xor al, 0x52
mov byte [rsp + 0x24], al
mov eax, dword [rsp + 0x20]
inc al
xor al, 0x74
mov byte [rsp + 0x25], al
mov eax, dword [rsp + 0x20]
add al, 2
xor al, 0x6c
mov byte [rsp + 0x26], al
mov eax, dword [rsp + 0x20]
add al, 3
xor al, 0x70
mov byte [rsp + 0x27], al
mov eax, dword [rsp + 0x20]
add al, 4
xor al, 0x57
mov byte [rsp + 0x28], al
mov eax, dword [rsp + 0x20]
add al, 5
xor al, 0x6f
mov byte [rsp + 0x29], al
mov eax, dword [rsp + 0x20]
add al, 6
xor al, 0x77
mov byte [rsp + 0x2a], al
mov eax, dword [rsp + 0x20]
add al, 7
xor al, 0x36
mov byte [rsp + 0x2b], al
mov eax, dword [rsp + 0x20]
add al, 8
xor al, 0x34
mov byte [rsp + 0x2c], al
mov eax, dword [rsp + 0x20]
add al, dil
xor al, 0x43
mov byte [rsp + 0x2d], al
mov eax, dword [rsp + 0x20]
add al, 0xa
xor al, 0x74
mov byte [rsp + 0x2e], al
mov eax, dword [rsp + 0x20]
add al, 0xb
xor al, 0x78
mov byte [rsp + 0x2f], al
mov eax, dword [rsp + 0x20]
add al, 0xc
xor al, 0x46
mov byte [rsp + 0x30], al
mov eax, dword [rsp + 0x20]
add al, 0xd
xor al, 0x72
mov byte [rsp + 0x31], al
mov eax, dword [rsp + 0x20]
add al, 0xe
xor al, 0x6f
mov byte [rsp + 0x32], al
mov eax, dword [rsp + 0x20]
add al, 0xf
xor al, 0x6d
mov byte [rsp + 0x33], al
mov eax, dword [rsp + 0x20]
add al, 0x10
xor al, 0x41
mov byte [rsp + 0x34], al
mov eax, dword [rsp + 0x20]
add al, 0x11
xor al, 0x6d
mov byte [rsp + 0x35], al
mov eax, dword [rsp + 0x20]
add al, 0x12
xor al, 0x64
mov byte [rsp + 0x36], al
mov eax, dword [rsp + 0x20]
add al, 0x13
xor al, 0x36
mov byte [rsp + 0x37], al
mov eax, dword [rsp + 0x20]
add al, 0x14
xor al, 0x34
mov byte [rsp + 0x38], al
xor eax, eax
mov byte [rsp + 0x39], al
mov al, byte [rsp + 0x24]
mov edx, ebx
mov al, byte [rsp + rdx + 0x24]
mov ecx, dword [rsp + 0x20]
add cl, dl
xor cl, al
mov byte [rsp + rdx + 0x24], cl
inc rdx
cmp rdx, 0x15
jb 0x1801381fc
mov byte [rsp + 0x39], bl
lea rdx, [rsp + 0x24]
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov r14, rax
xor edx, edx
lea r8d, [rdx + 0x16]
lea rcx, [rsp + 0x24]
call qword [sym.imp.VCRUNTIME140.dll_memset]
test r14, r14
je 0x18013852c
sub r14, r12
mov byte [rbp - 0x30], bl
xor edx, edx
mov r8d, 0x103
lea rcx, [rbp - 0x2f]
call sub.VCRUNTIME140.dll_memset
mov edx, dword [r13 + 0x10]
lea rcx, [rbp - 0x70]
call fcn.1800dd2d0
nop
mov rdi, qword [rbp - 0x70]
mov r15, qword [rbp - 0x68]
cmp rdi, r15
je 0x1801384f4
mov rax, rdi
lea rcx, [rbp + 0xe0]
mov edx, 8
movups xmm0, xmmword [rax]
movups xmmword [rcx], xmm0
movups xmm1, xmmword [rax + 0x10]
movups xmmword [rcx + 0x10], xmm1
movups xmm0, xmmword [rax + 0x20]
movups xmmword [rcx + 0x20], xmm0
movups xmm1, xmmword [rax + 0x30]
movups xmmword [rcx + 0x30], xmm1
movups xmm0, xmmword [rax + 0x40]
movups xmmword [rcx + 0x40], xmm0
movups xmm1, xmmword [rax + 0x50]
movups xmmword [rcx + 0x50], xmm1
movups xmm0, xmmword [rax + 0x60]
movups xmmword [rcx + 0x60], xmm0
lea rcx, [rcx + 0x80]
movups xmm1, xmmword [rax + 0x70]
movups xmmword [rcx - 0x10], xmm1
lea rax, [rax + 0x80]
sub rdx, 1
jne 0x180138289
movups xmm0, xmmword [rax]
movups xmmword [rcx], xmm0
movups xmm1, xmmword [rax + 0x10]
movups xmmword [rcx + 0x10], xmm1
movups xmm0, xmmword [rax + 0x20]
movups xmmword [rcx + 0x20], xmm0
mov rax, qword [rax + 0x30]
mov qword [rcx + 0x30], rax
mov r9d, 0x104
lea r8, [rbp - 0x30]
mov rsi, qword [rbp + 0x108]
mov rdx, rsi
mov rcx, qword [r13]
call qword [sym.imp.KERNEL32.dll_K32GetModuleFileNameExA]
test eax, eax
je 0x1801384a1
xorps xmm0, xmm0
movups xmmword [rsp + 0x50], xmm0
mov qword [rsp + 0x60], rbx
mov qword [rsp + 0x68], rbx
lea rax, [rbp - 0x30]
or r8, 0xffffffffffffffff
inc r8
cmp byte [rax + r8], bl
jne 0x180138339
lea rdx, [rbp - 0x30]
lea rcx, [rsp + 0x50]
call fcn.18000c7ac
nop
lea r8, [rsp + 0x50]
cmp qword [rsp + 0x68], 0x10
setae r9b
cmovae r8, qword [rsp + 0x50]
mov rdx, qword [rsp + 0x60]
test rdx, rdx
je 0x180138454
lea rax, [rdx - 1]
or r10, 0xffffffffffffffff
mov rcx, r10
cmp rax, r10
cmovb rcx, rax
add rcx, r8
jmp 0x180138397
cmp rcx, r8
je 0x180138454
dec rcx
cmp byte [rcx], 0x5c
jne 0x18013838b
sub rcx, r8
cmp rcx, r10
je 0x180138454
inc rcx
cmp rcx, rdx
jae 0x180138454
xorps xmm0, xmm0
movups xmmword [rbp - 0x58], xmm0
mov qword [rbp - 0x48], rbx
mov qword [rbp - 0x40], rbx
ja 0x180138588
sub rdx, rcx
mov r8, r10
cmp rdx, r10
cmovb r8, rdx
lea rdx, [rsp + 0x50]
test r9b, r9b
cmovne rdx, qword [rsp + 0x50]
add rdx, rcx
lea rcx, [rbp - 0x58]
call fcn.18000c7ac
mov rdx, qword [rsp + 0x68]
cmp rdx, 0x10
jb 0x18013842d
inc rdx
mov rcx, qword [rsp + 0x50]
mov rax, rcx
cmp rdx, 0x1000
jb 0x180138428
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x1801384ad
call fcn.180157a14
mov qword [rsp + 0x60], rbx
mov qword [rsp + 0x68], 0xf
mov byte [rsp + 0x50], bl
mov r8d, 0x20
lea rdx, [rbp - 0x58]
lea rcx, [rsp + 0x50]
call qword [sym.imp.VCRUNTIME140.dll_memcpy]
lea rdx, [rsp + 0x70]
lea rcx, [rsp + 0x50]
call fcn.180156dc8
nop
mov rdx, qword [rsp + 0x68]
test al, al
jne 0x1801384b4
cmp rdx, 0x10
jb 0x1801384a1
inc rdx
mov rcx, qword [rsp + 0x50]
mov rax, rcx
cmp rdx, 0x1000
jb 0x18013849c
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x1801384e3
call fcn.180157a14
add rdi, 0x438
jmp 0x180138271
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
nop
cmp rdx, 0x10
jb 0x1801384ef
inc rdx
mov rcx, qword [rsp + 0x50]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1801384ea
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x1801384ea
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.180157a14
test rsi, rsi
jne 0x1801384f7
mov rsi, r12
lea rdi, [rsi + r14]
mov r9d, 0xd
lea r8, [rsp + 0x40]
mov rdx, rdi
mov rcx, qword [r13]
call fcn.18013a778
test eax, eax
je 0x180138522
mov rax, qword [rbp + 0x570]
mov qword [rax], rdi
mov bl, 1
lea rcx, [rbp - 0x70]
call fcn.1800ebb44
nop
mov rdx, qword [rbp - 0x78]
cmp rdx, 0x10
jb 0x18013856b
inc rdx
mov rcx, qword [rsp + 0x70]
mov rax, rcx
cmp rdx, 0x1000
jb 0x180138566
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x180138566
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.180157a14
mov al, bl
mov rbx, qword [rsp + 0x660]
add rsp, 0x620
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
call fcn.18001ce2c
nop
int3