Function at 0x1403985c0
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.14039a6f0
cmp rbx, 0x12345678
je 0x14039863e
mov qword [rbp + 0x3f8], rax
call fcn.140398150
test rdi, rdi
sets al
cmp rdi, 0x10000
setb sil
or sil, al
rdtsc
mov r15, rdx
mov r14, rax
je 0x14039868b
xor r13d, r13d
jmp 0x140398692
cmp qword [0x14058f64c], 0x33c0
jne 0x140398b51
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.14039a950
add rax, 0x33c0
mov qword [0x14058f64c], rax
jmp 0x140398b51
cmp byte [rdi], 0
sete r13b
mov r12, rbx
test rbx, rbx
jne 0x1403986b5
mov ecx, 1
xor edx, edx
mov r8d, 0x328b2d2f
mov r9d, 0xb07028e0
call fcn.14039ad10
mov r12, rax
movzx eax, byte [0x1405acb68]
mov ecx, eax
not cl
xor al, 1
and cl, 0xfe
or cl, al
cmp cl, 0xff
mov byte [rbp + 0x45f], sil
je 0x14039870c
mov ecx, 1
mov edx, 1
mov r8d, 0x1a223a2b
mov r9d, 0x7fb4a6fe
call fcn.14039a870
test rax, rax
je 0x14039870c
test sil, sil
je 0x140398757
lea r9, [rbp + 0x450]
mov rcx, rbx
xor edx, edx
mov r8d, edi
jmp 0x1403987c1
test r12, r12
je 0x1403987d9
mov eax, dword [0x1405a9b30]
add eax, dword [r12 + 0x3c]
je 0x1403987d9
mov eax, eax
cmp dword [r12 + rax], 0x4550
jne 0x1403987d9
cmp dword [r12 + rax + 0x88], 0
je 0x140398750
cmp dword [r12 + rax + 0x8c], 0
jne 0x1403987d9
xor esi, esi
jmp 0x1403987f6
mov qword [rbp - 0x20], 0
mov dword [0x1405acb7c], 0
xor ecx, ecx
test rdi, rdi
je 0x1403987a2
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 0x140398780
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.0x14013008b.0]
cmp eax, 0xc0000138
jne 0x1403987d9
mov qword [rbp + 0x450], 0
lea rcx, [rbp - 0x20]
mov r8d, 0x400
xor edx, edx
call fcn.140446830
mov sil, 1
test r13b, r13b
je 0x1403988e9
shl r15, 0x20
or r14, r15
lea rcx, [rbp - 0x20]
mov r8d, 0x400
xor edx, edx
call fcn.140446830
rdtsc
shl rdx, 0x20
or rdx, rax
sub rdx, r14
cmp qword [0x14058f5d8], 0
je 0x140398830
mov rax, qword [0x14058f5d8]
cmp rax, rdx
jae 0x140398837
mov qword [0x14058f5d8], rdx
cmp qword [rbp + 0x450], 0
setne al
xor sil, 1
or sil, al
jne 0x140398b01
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.14039adc0
cmp eax, 0x4750412d
je 0x140398b01
mov ecx, 1
mov edx, 1
mov r8d, 0x1a223a2b
mov r9d, 0x7fb4a6fe
call fcn.14039a870
test rax, rax
je 0x140398b01
inc qword [0x14058f578]
cmp rdi, 0xffff
ja 0x1403989cd
lea r9, [rbp + 0x450]
mov rcx, rbx
xor edx, edx
mov r8d, edi
jmp 0x140398a40
mov dword [rsp + 0x20], 0x9e5a5fb3
mov ecx, 1
mov edx, 1
mov r8, rbx
mov r9d, 0x86fce13
call fcn.14039a910
test rax, rax
je 0x1403987f6
xor ecx, ecx
nop word cs:[rax + rax]
mov r13d, ecx
movzx edx, word [rax + r13*2]
test edx, edx
je 0x14039893a
cmp edx, 0x2e
je 0x14039893a
mov byte [rbp + r13 - 0x20], dl
inc ecx
jmp 0x140398920
mov eax, 0x400
sub eax, ecx
cmp eax, 2
jb 0x1403987f6
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 0x140398a8a
mov rax, qword [rbp + 0x440]
mov rcx, qword [rbp + 0x448]
cmp rcx, rax
jne 0x140398b6c
xor ecx, ecx
mov edx, 1
mov r8d, 0x4a05d9a5
mov r9d, 0x4346defa
call fcn.14039aa00
mov qword [rsp + 0x20], 1
lea rcx, [rbp + 0x430]
mov edx, 1
mov r9, rax
call fcn.14008abe0
jmp 0x140398bb6
mov qword [rbp + 0x430], 0
xor ecx, ecx
test rdi, rdi
je 0x140398a0e
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 0x1403989f0
mov word [rbp + 0x430], cx
add cx, word [0x1405acb84]
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.0x14013008b.0]
cmp eax, 0xc0000142
je 0x140398a54
cmp eax, 0xc0000138
jne 0x140398ad0
mov qword [rbp + 0x450], 0
xor eax, eax
cmp rdi, 0x10000
setae al
lea rcx, [0x14058f510]
inc qword [0x14058f5b0]
inc qword [0x14058f580]
lea rax, [rcx + rax*8]
add rax, 0x78
jmp 0x140398afe
mov rcx, rdi
mov edx, 0xa2b43513
call fcn.14039a790
mov rcx, qword [rbp + 0x440]
mov rdx, qword [rbp + 0x448]
mov r8, rdx
sub r8, rcx
cmp r8, rax
jae 0x140398b86
mov qword [rsp + 0x20], rax
lea rcx, [rbp + 0x430]
mov rdx, rax
mov r9, rdi
call fcn.14008abe0
jmp 0x140398d6e
cmp qword [rbp + 0x450], 0
je 0x140398a5f
xor eax, eax
cmp rdi, 0x10000
setae al
lea rcx, [0x14058f510]
inc qword [0x14058f598]
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.14039a910
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.14039a9e0
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 0x140398ba9
mov rcx, qword [rbp + 0x430]
jmp 0x140398bb0
mov r12, rax
add r12, rcx
mov qword [rbp + 0x440], r12
cmp rdx, 0x10
jb 0x140398ccd
mov rdx, qword [rbp + 0x430]
jmp 0x140398cd4
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 0x140398bfe
inc r12
dec r9
jmp 0x140398bd0
mov qword [rbp + 0x418], 0
mov qword [rbp + 0x420], 0xf
mov byte [rbp + 0x408], 0
test r12, r12
je 0x140398c59
cmp r12, 0xf
jbe 0x140398c37
lea rcx, [rbp + 0x408]
mov rdx, r12
call fcn.14008a200
jmp 0x140398c59
mov qword [rbp + 0x418], r12
lea rcx, [rbp + 0x408]
mov rdx, r9
mov r8, r12
call fcn.140446180
mov byte [rbp + r12 + 0x408], 0
mov r8, qword [rbp + 0x418]
cmp qword [rbp + 0x420], 0x10
jb 0x140398c73
mov r9, qword [rbp + 0x408]
jmp 0x140398c7a
lea r9, [rbp + 0x408]
mov rcx, qword [rbp + 0x440]
mov rax, qword [rbp + 0x448]
mov rdx, rax
sub rdx, rcx
cmp rdx, r8
jae 0x140398ca9
mov qword [rsp + 0x20], r8
lea rcx, [rbp + 0x430]
mov rdx, r8
call fcn.14008abe0
jmp 0x140398d15
lea r10, [rcx + r8]
mov rdx, r10
mov qword [rbp + 0x428], r10
mov qword [rbp + 0x440], r10
cmp rax, 0x10
jb 0x140398cf7
mov r12, qword [rbp + 0x430]
jmp 0x140398cfe
lea rdx, [rbp + 0x430]
mov qword [rbp + 0x428], rdx
add rcx, rdx
mov rdx, rdi
mov r8, rax
call fcn.140446180
mov rax, qword [rbp + 0x428]
mov byte [rax + r12], 0
jmp 0x140398d6e
lea r12, [rbp + 0x430]
add rcx, r12
mov rdx, r9
call fcn.140446180
mov rax, qword [rbp + 0x428]
mov byte [r12 + rax], 0
mov rax, qword [rbp + 0x420]
cmp rax, 0x10
jb 0x140398d6e
mov rcx, qword [rbp + 0x408]
lea rdx, [rax + 1]
cmp rdx, 0x1000
jb 0x140398d55
mov r8, qword [rcx - 8]
sub rcx, r8
add rcx, 0xfffffffffffffff8
cmp rcx, 0x20
jae 0x140398e61
add rax, 0x28
mov rdx, rax
mov rcx, r8
mov dword [rsp + 0x20], 0x20e5c323
mov r8d, 0x40c922e9
mov r9d, 0x75be4606
call fcn.1400a82c0
mov rax, qword [rbp + 0x440]
mov ecx, dword [rbp + 0x404]
cmp rax, rcx
jae 0x140398dea
cmp qword [rbp + 0x448], 0x10
jb 0x140398d93
mov rdx, qword [rbp + 0x430]
jmp 0x140398d9a
lea rdx, [rbp + 0x430]
lea rcx, [r13 - 0x20]
add rcx, rbp
xor r8d, r8d
test rax, rax
je 0x140398dc1
nop dword [rax]
movzx r9d, byte [rdx + r8]
mov byte [rcx + r8], r9b
inc r8d
cmp rax, r8
ja 0x140398db0
mov eax, r8d
mov byte [rcx + rax], 0
mov qword [rbp + 0x408], 0
lea rcx, [rbp - 0x20]
lea rdx, [rbp + 0x408]
call fcn.1403972d0
mov qword [rbp + 0x450], rax
mov rax, qword [rbp + 0x448]
cmp rax, 0x10
jb 0x1403987f6
mov rcx, qword [rbp + 0x430]
lea rdx, [rax + 1]
cmp rdx, 0x1000
jb 0x140398e3e
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 0x140398e5c
add rax, 0x28
mov rdx, rax
mov rcx, r8
mov dword [rsp + 0x20], 0x20e5c323
mov r8d, 0x40c922e9
mov r9d, 0x75be4606
call fcn.1400a82c0
jmp 0x1403987f6
call fcn.1403fe3cc
call fcn.1403fe3cc
int3