Function at 0x140003a00
Capabilities:
Encode data using xor

Disassembly:
mov esp, eax
cmp dword [rbp], 0
je 0x140003af9
lea r15, [rax + 2]
jmp 0x140003a27
mov byte [r14 + 1], 1
mov eax, dword [rbp]
add rbp, rax
cmp dword [rbp], 0
je 0x140003af9
cmp qword [rbp + 0x40], 0
je 0x140003a17
mov edx, 8
mov rcx, r12
call fcn.140002c99
mov rdx, qword [rbp + 0x40]
movzx eax, word [rdx]
test ax, ax
je 0x140003a69
mov word [r12], ax
mov eax, 2
movzx ecx, word [rdx + rax]
test cx, cx
je 0x140003a69
mov word [r12 + rax], cx
add rax, 2
cmp rax, 8
jne 0x140003a51
mov rcx, r12
call fcn.140002b33
test eax, eax
je 0x140003a9f
mov rdx, r12
lea eax, [rax - 1]
lea rcx, [r15 + rax*2]
movzx eax, word [rdx]
lea r9d, [rax - 0x41]
lea r8d, [rax + 0x20]
cmp r9w, 0x1a
cmovb eax, r8d
mov word [rdx], ax
add rdx, 2
cmp rdx, rcx
jne 0x140003a7f
mov rdx, rbx
mov rcx, r12
call fcn.140002b52
cmp eax, dword [rbx + 0x120]
je 0x140003a12
cmp eax, dword [rbx + 0x130]
je 0x140003adb
cmp eax, dword [rbx + 0x40]
je 0x140003ae5
cmp eax, dword [rbx + 0x38]
je 0x140003aef
cmp eax, dword [rbx + 4]
jne 0x140003a17
mov byte [r14 + 8], 1
jmp 0x140003a17
mov byte [r14 + 5], 1
jmp 0x140003a17
mov byte [r14 + 6], 1
jmp 0x140003a17
mov byte [r14 + 7], 1
jmp 0x140003a17
cmp byte [r14 + 1], 0
jne 0x140003b0e
mov ebp, 0x28
cmp byte [r14 + 5], 0
jne 0x140003b13
jmp 0x140003b26
mov ebp, 0x28
mov rcx, qword [rsi + 0x70]
mov edx, 0x5d9
call fcn.1400034f1
sub ebp, 1
jne 0x140003b13
mov ecx, 0
call qword [rsi + 0x38]
cmp byte [r14 + 6], 0
jne 0x140003b83
cmp byte [r14 + 7], 0
jne 0x140003b83
mov ebp, dword [rbx + 0x70]
add rbp, rax
mov qword [rsp + 0xb0], 0
lea r14, [rsp + 0xe0]
lea r12, [rsp + 0xb0]
mov r9, r14
mov r8, r12
mov rdx, rbp
mov rcx, rsi
call fcn.140002f4d
test eax, eax
jg 0x140003b83
mov rcx, qword [rsi + 0x70]
mov edx, 0xc2b
call fcn.1400034f1
jmp 0x140003b5e
mov qword [rsp + 0xd0], rsi
mov edx, dword [rbx + 0x6c]
mov r8, rbx
mov rcx, r13
call fcn.140002e33
mov qword [rsp + 0xc0], rax
mov edx, dword [rbx + 0xf4]
mov r8, rbx
mov rcx, r13
call fcn.140002e33
mov qword [rsp + 0xc8], rax
mov edx, dword [rbx + 0x30]
mov r8, rbx
mov rcx, rdi
call fcn.140002e33
mov qword [rsp + 0xb0], rax
mov qword [rsp + 0x88], 0
mov edx, 0
mov rcx, rsi
call fcn.140002857
mov rbp, rax
mov r8d, 0x104
mov rdx, rax
mov ecx, 0
call qword [rsi + 0x90]
mov dword [rsp + 0x74], 0
lea r9, [rsp + 0x74]
lea r8, [rsp + 0x88]
mov rdx, rsi
mov rcx, rbp
call fcn.140002bbb
mov edx, dword [rbx + 0x24]
mov r8, rbx
mov rcx, rdi
call fcn.140002e33
mov qword [rsp + 0x48], rax
mov eax, dword [rbx + 0x11c]
xor eax, dword [rbx + 0xfc]
movsxd rdi, dword [rbx + 0x94]
add rdi, qword [rsp + 0x88]
mov ebp, dword [rdi]
mov r13d, dword [rdi + 4]
mov qword [rsp + 0x90], 0
mov qword [rsp + 0x98], 0
cmp eax, ebp
jne 0x140003cf8
mov r13d, dword [rdi + 4]
mov r12d, dword [rsp + 0x74]
add rdi, 8
lea rdx, [rbx + 0x4c]
lea rcx, [rsp + 0xa0]
mov r8d, 4
call fcn.140002911
mov byte [rsp + 0xa4], 0xd
mov byte [rsp + 0xa5], 0xa
lea r14, [rsp + 0xa0]
lea rbp, [rsp + 0x98]
lea rcx, [rdi + 1]
mov r9d, 6
mov r8, r14
mov edx, r12d
call fcn.140002895
mov rdi, rax
test rax, rax
je 0x140003f0e
mov qword [rsp + 0x20], rbx
mov r9, rsi
mov r8, rbp
mov edx, r13d
mov rcx, rax
call fcn.14000293e
test al, al
je 0x140003cb8
jmp 0x140003f0e
mov eax, dword [rbx + 0x4c]
mov dword [rsp + 0x50], eax
mov r15d, dword [rbx + 0x10c]
mov edx, ebp
mov rcx, rsi
call fcn.140002857
mov r12, rax
lea rdx, [rdi + 8]
mov r8d, ebp
mov rcx, rax
call fcn.140002911
test ebp, ebp
je 0x140003d42
mov rax, r12
sub ebp, 1
shr ebp, 2
mov ebp, ebp
lea rdx, [r12 + rbp*4 + 4]
xor dword [rax], r13d
add rax, 4
cmp rdx, rax
jne 0x140003d36
mov edx, 0
mov rcx, rsi
call fcn.140002857
mov r14, rax
movzx eax, byte [r12]
test al, al
je 0x140003d74
mov edx, 0
cbw
mov word [r14 + rdx*2], ax
add rdx, 1
movzx eax, byte [r12 + rdx]
test al, al
jne 0x140003d60
mov edx, 0
mov rcx, rsi
call fcn.140002857
mov qword [rsp + 0x58], rax
mov rdx, rax
mov ecx, 0x104
call qword [rsi + 0xc0]
mov edx, 0x28
mov rcx, rsi
call fcn.140002857
mov r13, rax
mov word [rsp + 0x82], 0x25
mov word [rsp + 0x84], pe_nt_image_headers64
mov word [rsp + 0x86], 0
mov rbp, qword [rsi]
mov r12, qword [rsi + 0x78]
lea rdi, [rsp + 0xa0]
mov edx, 8
mov rcx, rdi
call fcn.140002c99
mov rcx, rdi
call r12
lea rdx, [rsp + 0x82]
mov r8d, dword [rsp + 0xa0]
movabs al, byte [0xd5ffe9894c000000]
mov rdx, r13
mov rcx, qword [rsp + 0x58]
call fcn.140003298
mov rdx, rbx
mov rcx, r14
call fcn.140002b52
mov r13d, eax
mov dword [rsp + 0x6c], eax
mov edx, 0
mov rcx, rsi
call fcn.140002857
mov rbp, rax
mov dword [rsp + 0x78], 0
lea rdx, [rsp + 0xb0]
mov qword [rsp + 0x28], rbx
lea rax, [rsp + 0x78]
mov qword [rsp + 0x20], rax
mov r9d, r13d
mov r8, rbp
mov rcx, rsi
call fcn.140003335
mov qword [rsp + 0xa0], 0
mov dword [rsp + 0x7c], 0
lea r9, [rsp + 0x7c]
mov r8, rdi
mov rdx, rsi
mov rcx, rbp
call fcn.140002bbb
test al, al
jne 0x140003eb4
mov edx, 0
mov rcx, rsi
call fcn.140002857
mov rbp, rax
mov edi, 0
lea rax, [rsp + 0xe0]
mov qword [rsp + 0x58], rax
lea rax, [rsp + 0x90]
mov qword [rsp + 0x60], rax
jmp 0x140003f8f
mov r8d, dword [rsp + 0x78]
mov edx, dword [rsp + 0x7c]
mov rcx, qword [rsp + 0xa0]
call fcn.140003487
mov r12d, dword [rsp + 0x7c]
mov rax, qword [rsp + 0xa0]
mov qword [rsp + 0x90], rax
mov rdx, rbp
mov rcx, rsi
call fcn.14000287d