Function at 0x14038a2e0
Capabilities:
Encode data using xor
Execute anti-debugging instructions

Disassembly:
push rbp
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbx
sub rsp, 0x4e8
lea rbp, [rsp + 0x80]
mov qword [rbp + 0x460], 0xfffffffffffffffe
mov rdi, rdx
mov rbx, rcx
mov qword [rbp + 0x450], 0
xor ecx, ecx
xor edx, edx
mov r8d, 0xc9eb496
call fcn.14038c410
cmp rbx, 0x12345678
je 0x14038a35e
mov qword [rbp + 0x3f8], rax
call fcn.140389e70
test rdi, rdi
sets al
cmp rdi, 0x10000
setb sil
or sil, al
rdtsc
mov r15, rdx
mov r14, rax
je 0x14038a3ab
xor r13d, r13d
jmp 0x14038a3b2
cmp qword [0x140575dbc], 0x33c0
jne 0x14038a871
xorps xmm0, xmm0
movups xmmword [rsp + 0x20], xmm0
mov dword [rsp + 0x38], 0x328b2d2f
mov dword [rsp + 0x30], 0xaed649b8
mov ecx, 1
xor edx, edx
xor r8d, r8d
xor r9d, r9d
call fcn.14038c670
add rax, 0x33c0
mov qword [0x140575dbc], rax
jmp 0x14038a871
cmp byte [rdi], 0
sete r13b
mov r12, rbx
test rbx, rbx
jne 0x14038a3d5
mov ecx, 1
xor edx, edx
mov r8d, 0x328b2d2f
mov r9d, 0xb07028e0
call fcn.14038ca30
mov r12, rax
movzx eax, byte [0x140591f70]
mov ecx, eax
not cl
xor al, 1
and cl, 0xfe
or cl, al
cmp cl, 0xff
mov byte [rbp + 0x45f], sil
je 0x14038a42c
mov ecx, 1
mov edx, 1
mov r8d, 0x1a223a2b
mov r9d, 0x7fb4a6fe
call fcn.14038c590
test rax, rax
je 0x14038a42c
test sil, sil
je 0x14038a477
lea r9, [rbp + 0x450]
mov rcx, rbx
xor edx, edx
mov r8d, edi
jmp 0x14038a4e1
test r12, r12
je 0x14038a4f9
mov eax, dword [0x14058f0a0]
add eax, dword [r12 + 0x3c]
je 0x14038a4f9
mov eax, eax
cmp dword [r12 + rax], 0x4550
jne 0x14038a4f9
cmp dword [r12 + rax + 0x88], 0
je 0x14038a470
cmp dword [r12 + rax + 0x8c], 0
jne 0x14038a4f9
xor esi, esi
jmp 0x14038a516
mov qword [rbp - 0x20], 0
mov dword [0x140591f84], 0
xor ecx, ecx
test rdi, rdi
je 0x14038a4c2
mov edx, 1
xor r8d, r8d
nop dword [rax + rax]
xor r9d, r9d
cmp byte [rdi + rcx], 0
setne r9b
movzx r8d, r8b
cmove r8d, edx
add rcx, r9
mov r9d, r8d
xor r9b, 0xfe
test r9b, r8b
je 0x14038a4a0
mov word [rbp - 0x20], cx
inc ecx
mov word [rbp - 0x1e], cx
mov qword [rbp - 0x18], rdi
lea rdx, [rbp - 0x20]
lea r9, [rbp + 0x450]
mov rcx, rbx
xor r8d, r8d
call qword [case.0x1401460cb.0]
cmp eax, 0xc0000138
jne 0x14038a4f9
mov qword [rbp + 0x450], 0
lea rcx, [rbp - 0x20]
mov r8d, 0x400
xor edx, edx
call fcn.140430d20
mov sil, 1
test r13b, r13b
je 0x14038a609
shl r15, 0x20
or r14, r15
lea rcx, [rbp - 0x20]
mov r8d, 0x400
xor edx, edx
call fcn.140430d20
rdtsc
shl rdx, 0x20
or rdx, rax
sub rdx, r14
cmp qword [0x140575d48], 0
je 0x14038a550
mov rax, qword [0x140575d48]
cmp rax, rdx
jae 0x14038a557
mov qword [0x140575d48], rdx
cmp qword [rbp + 0x450], 0
setne al
xor sil, 1
or sil, al
jne 0x14038a821
xorps xmm0, xmm0
movups xmmword [rsp + 0x30], xmm0
movups xmmword [rsp + 0x20], xmm0
mov dword [rsp + 0x58], 0xe85d991f
mov dword [rsp + 0x50], 0x823e013c
mov dword [rsp + 0x48], 0x7d2bc423
mov qword [rsp + 0x40], 0
mov ecx, 1
mov edx, 1
xor r8d, r8d
xor r9d, r9d
call fcn.14038cae0
cmp eax, 0x4750412d
je 0x14038a821
mov ecx, 1
mov edx, 1
mov r8d, 0x1a223a2b
mov r9d, 0x7fb4a6fe
call fcn.14038c590
test rax, rax
je 0x14038a821
inc qword [0x140575ce8]
cmp rdi, 0xffff
ja 0x14038a6ed
lea r9, [rbp + 0x450]
mov rcx, rbx
xor edx, edx
mov r8d, edi
jmp 0x14038a760
mov dword [rsp + 0x20], 0x9e5a5fb3
mov ecx, 1
mov edx, 1
mov r8, rbx
mov r9d, 0x86fce13
call fcn.14038c630
test rax, rax
je 0x14038a516
xor ecx, ecx
nop word cs:[rax + rax]
mov r13d, ecx
movzx edx, word [rax + r13*2]
test edx, edx
je 0x14038a65a
cmp edx, 0x2e
je 0x14038a65a
mov byte [rbp + r13 - 0x20], dl
inc ecx
jmp 0x14038a640
mov eax, 0x400
sub eax, ecx
cmp eax, 2
jb 0x14038a516
mov dword [rbp + 0x404], eax
mov qword [rbp + 0x448], 0xf
mov qword [rbp + 0x440], 1
mov word [rbp + 0x430], 0x2e
cmp byte [rbp + 0x45f], 0
je 0x14038a7aa
mov rax, qword [rbp + 0x440]
mov rcx, qword [rbp + 0x448]
cmp rcx, rax
jne 0x14038a88c
xor ecx, ecx
mov edx, 1
mov r8d, 0x4a05d9a5
mov r9d, 0x4346defa
call fcn.14038c720
mov qword [rsp + 0x20], 1
lea rcx, [rbp + 0x430]
mov edx, 1
mov r9, rax
call fcn.14008cd50
jmp 0x14038a8d6
mov qword [rbp + 0x430], 0
xor ecx, ecx
test rdi, rdi
je 0x14038a72e
mov edx, 1
xor r8d, r8d
nop word [rax + rax]
mov r9, rcx
xor ecx, ecx
cmp byte [rdi + r9], 0
setne cl
movzx r8d, r8b
cmove r8d, edx
add rcx, r9
test r8b, 1
je 0x14038a710
mov word [rbp + 0x430], cx
add cx, word [0x14058eb9c]
inc ecx
mov word [rbp + 0x432], cx
mov qword [rbp + 0x438], rdi
lea rdx, [rbp + 0x430]
lea r9, [rbp + 0x450]
mov rcx, rbx
xor r8d, r8d
call qword [case.0x1401460cb.0]
cmp eax, 0xc0000142
je 0x14038a774
cmp eax, 0xc0000138
jne 0x14038a7f0
mov qword [rbp + 0x450], 0
xor eax, eax
cmp rdi, 0x10000
setae al
lea rcx, [0x140575c80]
inc qword [0x140575d20]
inc qword [0x140575cf0]
lea rax, [rcx + rax*8]
add rax, 0x78
jmp 0x14038a81e
mov rcx, rdi
mov edx, 0xa2b43513
call fcn.14038c4b0
mov rcx, qword [rbp + 0x440]
mov rdx, qword [rbp + 0x448]
mov r8, rdx
sub r8, rcx
cmp r8, rax
jae 0x14038a8a6
mov qword [rsp + 0x20], rax
lea rcx, [rbp + 0x430]
mov rdx, rax
mov r9, rdi
call fcn.14008cd50
jmp 0x14038aa8e
cmp qword [rbp + 0x450], 0
je 0x14038a77f
xor eax, eax
cmp rdi, 0x10000
setae al
lea rcx, [0x140575c80]
inc qword [0x140575d08]
lea rax, [rcx + rax*8]
add rax, 0x90
inc qword [rax]
mov dword [rsp + 0x20], 0x9e5a5fb3
xor esi, esi
xor ecx, ecx
xor edx, edx
mov r8, qword [rbp + 0x3f8]
mov r9d, 0x86fce13
call fcn.14038c630
movzx edx, byte [rbp + 0x45f]
xor edx, 0xc0000139
cmp qword [rbp + 0x450], 0
cmovne edx, esi
mov dword [rsp + 0x20], 0x5d7769bc
xor ecx, ecx
xor r8d, r8d
mov r9d, 0x27a19030
call fcn.14038c700
mov rax, qword [rbp + 0x450]
add rsp, 0x4e8
pop rbx
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
pop rbp
ret
lea rdx, [rax + 1]
mov qword [rbp + 0x440], rdx
cmp rcx, 0x10
jb 0x14038a8c9
mov rcx, qword [rbp + 0x430]
jmp 0x14038a8d0
mov r12, rax
add r12, rcx
mov qword [rbp + 0x440], r12
cmp rdx, 0x10
jb 0x14038a9ed
mov rdx, qword [rbp + 0x430]
jmp 0x14038a9f4
lea rcx, [rbp + 0x430]
mov word [rcx + rax], 0x23
movzx edx, di
mov r12d, 1
lea r9, [rbp + 0x3f4]
movabs r8, 0xcccccccccccccccd
mov rcx, rdx
mov rax, rdx
mul r8
shr rdx, 3
lea eax, [rdx + rdx]
lea eax, [rax + rax*4]
mov r10d, ecx
sub r10d, eax
or r10b, 0x30
mov byte [r9], r10b
cmp rcx, 0xa
jb 0x14038a91e
inc r12
dec r9
jmp 0x14038a8f0
mov qword [rbp + 0x418], 0
mov qword [rbp + 0x420], 0xf
mov byte [rbp + 0x408], 0
test r12, r12
je 0x14038a979
cmp r12, 0xf
jbe 0x14038a957
lea rcx, [rbp + 0x408]
mov rdx, r12
call fcn.14008c390
jmp 0x14038a979
mov qword [rbp + 0x418], r12
lea rcx, [rbp + 0x408]
mov rdx, r9
mov r8, r12
call fcn.140430670
mov byte [rbp + r12 + 0x408], 0
mov r8, qword [rbp + 0x418]
cmp qword [rbp + 0x420], 0x10
jb 0x14038a993
mov r9, qword [rbp + 0x408]
jmp 0x14038a99a
lea r9, [rbp + 0x408]
mov rcx, qword [rbp + 0x440]
mov rax, qword [rbp + 0x448]
mov rdx, rax
sub rdx, rcx
cmp rdx, r8
jae 0x14038a9c9
mov qword [rsp + 0x20], r8
lea rcx, [rbp + 0x430]
mov rdx, r8
call fcn.14008cd50
jmp 0x14038aa35
lea r10, [rcx + r8]
mov rdx, r10
mov qword [rbp + 0x428], r10
mov qword [rbp + 0x440], r10
cmp rax, 0x10
jb 0x14038aa17
mov r12, qword [rbp + 0x430]
jmp 0x14038aa1e
lea rdx, [rbp + 0x430]
mov qword [rbp + 0x428], rdx
add rcx, rdx
mov rdx, rdi
mov r8, rax
call fcn.140430670
mov rax, qword [rbp + 0x428]
mov byte [rax + r12], 0
jmp 0x14038aa8e
lea r12, [rbp + 0x430]
add rcx, r12
mov rdx, r9
call fcn.140430670
mov rax, qword [rbp + 0x428]
mov byte [r12 + rax], 0
mov rax, qword [rbp + 0x420]
cmp rax, 0x10
jb 0x14038aa8e
mov rcx, qword [rbp + 0x408]
lea rdx, [rax + 1]
cmp rdx, 0x1000
jb 0x14038aa75
mov r8, qword [rcx - 8]
sub rcx, r8
add rcx, 0xfffffffffffffff8
cmp rcx, 0x20
jae 0x14038ab81
add rax, 0x28
mov rdx, rax
mov rcx, r8
mov dword [rsp + 0x20], 0x20e5c323
mov r8d, 0x40c922e9
mov r9d, 0x75be4606
call fcn.1400ab9e0
mov rax, qword [rbp + 0x440]
mov ecx, dword [rbp + 0x404]
cmp rax, rcx
jae 0x14038ab0a
cmp qword [rbp + 0x448], 0x10
jb 0x14038aab3
mov rdx, qword [rbp + 0x430]
jmp 0x14038aaba
lea rdx, [rbp + 0x430]
lea rcx, [r13 - 0x20]
add rcx, rbp
xor r8d, r8d
test rax, rax
je 0x14038aae1
nop dword [rax]
movzx r9d, byte [rdx + r8]
mov byte [rcx + r8], r9b
inc r8d
cmp rax, r8
ja 0x14038aad0
mov eax, r8d
mov byte [rcx + rax], 0
mov qword [rbp + 0x408], 0
lea rcx, [rbp - 0x20]
lea rdx, [rbp + 0x408]
call fcn.140388ff0
mov qword [rbp + 0x450], rax
mov rax, qword [rbp + 0x448]
cmp rax, 0x10
jb 0x14038a516
mov rcx, qword [rbp + 0x430]
lea rdx, [rax + 1]
cmp rdx, 0x1000
jb 0x14038ab5e
mov r8, qword [rcx - 8]
mov rdx, rcx
xor rdx, 0xfffffffffffffff8
movabs r9, 0x7ffffffffffffff8
and r9, rcx
lea rcx, [rdx + r9*2]
sub rcx, r8
cmp rcx, 0x20
jae 0x14038ab7c
add rax, 0x28
mov rdx, rax
mov rcx, r8
mov dword [rsp + 0x20], 0x20e5c323
mov r8d, 0x40c922e9
mov r9d, 0x75be4606
call fcn.1400ab9e0
jmp 0x14038a516
call fcn.1403e88ec
call fcn.1403e88ec
int3