Function at 0x180100f70
Capabilities:
Encode data using xor

Disassembly:
push rbp
push rbx
push rsi
push rdi
push r12
push r15
lea rbp, [rsp - 0x68]
mov eax, 0x168
call fcn.18017e6d0
sub rsp, rax
mov rax, qword [0x1802658e0]
xor rax, rsp
mov qword [rbp + 0x48], rax
mov rax, qword [rbp + 0xd0]
mov r12, qword [rbp + 0xc0]
mov rsi, qword [rbp + 0xe8]
mov qword [rbp - 0x40], rax
mov rax, qword [rbp + 0xe0]
mov r15, r8
mov qword [rbp - 0x48], rcx
mov rcx, qword [rbp + 0xd8]
shr r15, 3
mov qword [rbp - 0x50], rax
xor eax, eax
mov rdi, r9
mov qword [rsp + 0x48], r9
mov rbx, rdx
mov qword [rbp - 0x68], r12
mov dword [rsp + 0x38], eax
mov dword [rsp + 0x3c], eax
mov qword [rsp + 0x30], rax
mov qword [rbp - 0x58], rcx
mov qword [rsp + 0x50], rsi
mov qword [rbp - 0x80], 2
cmp r15d, 0x14
je 0x180101014
cmp r15d, 0x1c
je 0x180101014
cmp r15d, 0x20
jne 0x180101727
test r9, r9
jne 0x180101052
cmp r15d, 0x14
jne 0x18010102e
call fcn.18004b0c0
mov rdi, rax
mov qword [rsp + 0x48], rax
jmp 0x18010105d
cmp r15d, 0x1c
jne 0x180101043
call fcn.18004b1f0
mov rdi, rax
mov qword [rsp + 0x48], rax
jmp 0x18010105d
call fcn.18004b200
mov rdi, rax
mov qword [rsp + 0x48], rax
jmp 0x18010105d
mov rcx, r9
call fcn.180056860
mov r15d, eax
mov eax, 0x200
cmp rbx, rax
cmovb rbx, rax
lea rax, [rbx + 0x3f]
and rax, 0xffffffffffffffc0
mov qword [rbp - 0x78], rax
test r12, r12
je 0x1801010c0
mov r8, qword [rbp + 0xc8]
movsxd rax, r15d
cmp r8, rax
jae 0x1801010b0
mov edx, 0x7d
lea r9, str.cryptodsadsa_gen.c
mov dword [rsp + 0x20], 0x55
lea ecx, [rdx - 0x73]
lea r8d, [rdx - 0xf]
call fcn.1800493f0
xor eax, eax
jmp 0x180101727
lea rcx, [rbp + 8]
cmova r8, rax
mov rdx, r12
call fcn.18017dd20
mov qword [rsp + 0x160], r13
mov qword [rsp + 0x158], r14
call fcn.1800c0970
mov qword [rsp + 0x70], rax
test rax, rax
je 0x1801016f4
call fcn.1800af180
mov r12, rax
mov qword [rsp + 0x30], rax
test rax, rax
je 0x1801016f9
mov rcx, rax
call fcn.1800af280
mov rcx, r12
call fcn.1800af370
mov rcx, r12
mov r14, rax
call fcn.1800af370
mov rcx, r12
mov qword [rsp + 0x60], rax
call fcn.1800af370
mov rcx, r12
mov qword [rsp + 0x78], rax
call fcn.1800af370
mov rcx, r12
mov qword [rsp + 0x40], rax
call fcn.1800af370
mov rcx, r12
mov qword [rsp + 0x68], rax
call fcn.1800af370
mov rcx, r12
mov qword [rbp - 0x60], rax
call fcn.1800af370
mov rcx, r12
mov qword [rsp + 0x58], rax
call fcn.1800af370
mov rbx, rax
mov qword [rbp - 0x70], rax
test rax, rax
je 0x1801016f9
movsxd r13, r15d
call fcn.18006f470
mov r8, qword [rbp - 0x78]
dec r8d
mov rdx, rax
mov rcx, rbx
call fcn.1800a7bc0
test eax, eax
je 0x1801016f9
nop word [rax + rax]
mov r8d, dword [rsp + 0x3c]
xor ebx, ebx
mov rcx, rsi
cmp qword [rbp - 0x68], rbx
sete bl
xor edx, edx
call fcn.1800c9de0
inc dword [rsp + 0x3c]
test eax, eax
je 0x1801016f9
test ebx, ebx
je 0x1801011de
lea rcx, [rbp + 8]
mov edx, r15d
call fcn.1800602c0
test eax, eax
jle 0x1801016f9
jmp 0x1801011e6
mov qword [rbp - 0x68], 0
lea rdx, [rbp + 8]
lea rcx, [rbp - 0x18]
mov r8, r13
call fcn.18017dd20
lea rdx, [rbp + 8]
lea rcx, [rbp + 0x28]
mov r8, r13
call fcn.18017dd20
lea r11, [r13 - 1]
test r11, r11
js 0x18010121c
nop
inc byte [rbp + r11 - 0x18]
jne 0x18010121c
dec r11
jns 0x180101210
lea r8, [rbp - 0x38]
lea rcx, [rbp + 8]
xor r9d, r9d
mov rdx, r13
mov qword [rsp + 0x28], 0
mov qword [rsp + 0x20], rdi
call fcn.18005d980
test eax, eax
je 0x1801016f9
lea r8, [rbp + 0x28]
lea rcx, [rbp - 0x18]
xor r9d, r9d
mov rdx, r13
mov qword [rsp + 0x28], 0
mov qword [rsp + 0x20], rdi
call fcn.18005d980
test eax, eax
je 0x1801016f9
xor ecx, ecx
test r15d, r15d
jle 0x180101291
nop word [rax + rax]
movzx eax, byte [rbp + rcx + 0x28]
inc rcx
xor byte [rbp + rcx - 0x39], al
cmp rcx, r13
jl 0x180101280
or byte [rbp - 0x38], 0x80
mov r8, qword [rsp + 0x40]
or byte [rbp + r13 - 0x39], 1
lea rcx, [rbp - 0x38]
mov edx, r15d
call fcn.180070560
test rax, rax
je 0x1801016f9
mov rcx, qword [rsp + 0x40]
mov r9d, ebx
mov r8, r12
mov edx, 0x40
mov qword [rsp + 0x20], rsi
call fcn.1800ca410
test eax, eax
jg 0x1801012de
je 0x1801011a0
jmp 0x1801016f9
xor r8d, r8d
mov rcx, rsi
lea edx, [r8 + 2]
call fcn.1800c9de0
test eax, eax
je 0x1801016f9
xor r8d, r8d
mov rcx, rsi
lea edx, [r8 + 3]
call fcn.1800c9de0
test eax, eax
je 0x1801016f9
mov rcx, qword [rbp - 0x78]
mov rbx, qword [rsp + 0x78]
movabs rax, 0xcccccccccccccccd
dec rcx
xor esi, esi
lea r12, [r13 - 1]
mul rcx
mov rdi, rdx
shr rdi, 7
test esi, esi
je 0x18010134d
mov rcx, qword [rsp + 0x50]
mov r8d, esi
xor edx, edx
call fcn.1800c9de0
test eax, eax
je 0x1801016f4
mov rcx, rbx
call fcn.18006faf0
xor ebx, ebx
test edi, edi
js 0x1801013fd
nop
mov rax, r12
test r12, r12
js 0x180101373
inc byte [rbp + rax - 0x18]
jne 0x180101373
dec rax
jns 0x180101368
mov rax, qword [rsp + 0x48]
lea r8, [rbp - 0x38]
lea rcx, [rbp - 0x18]
xor r9d, r9d
mov rdx, r13
mov qword [rsp + 0x28], 0
mov qword [rsp + 0x20], rax
call fcn.18005d980
test eax, eax
je 0x1801016f4
lea rcx, [rbp - 0x38]
mov r8, r14
mov edx, r15d
call fcn.180070560
test rax, rax
je 0x1801016f4
lea r8d, [r15*8]
mov rdx, r14
mov rcx, r14
imul r8d, ebx
call fcn.1800a7bc0
test eax, eax
je 0x1801016f4
mov rax, qword [rsp + 0x78]
mov r8, r14
mov rdx, rax
mov rcx, rax
call fcn.1800b13f0
test eax, eax
je 0x1801016f4
inc ebx
cmp ebx, edi
jle 0x180101360
mov rdx, qword [rbp - 0x78]
mov rbx, qword [rsp + 0x78]
dec edx
mov rcx, rbx
call fcn.180070380
test eax, eax
je 0x1801016f4
mov rcx, qword [rsp + 0x68]
mov rdx, rbx
call fcn.180070460
test rax, rax
je 0x1801016f4
mov rax, qword [rsp + 0x68]
mov r8, qword [rbp - 0x70]
mov rdx, rax
mov rcx, rax
call fcn.1800b13f0
test eax, eax
je 0x1801016f4
mov rdx, qword [rsp + 0x40]
mov rcx, r14
call fcn.1800a75d0
test eax, eax
je 0x1801016f4
mov rax, qword [rsp + 0x30]
mov r8, qword [rsp + 0x68]
mov rdx, qword [rbp - 0x60]
mov r9, r14
xor ecx, ecx
mov qword [rsp + 0x20], rax
call fcn.1800c0160
test eax, eax
je 0x1801016f4
call fcn.18006f470
mov rdx, qword [rbp - 0x60]
mov rcx, r14
mov r8, rax
call fcn.1800b1490
test eax, eax
je 0x1801016f4
mov rdx, qword [rsp + 0x68]
mov rcx, qword [rsp + 0x58]
mov r8, r14
call fcn.1800b1490
test eax, eax
je 0x1801016f4
mov rdx, qword [rbp - 0x70]
mov rcx, qword [rsp + 0x58]
call fcn.18006f780
test eax, eax
js 0x1801014f9
mov rax, qword [rsp + 0x50]
mov r8, qword [rsp + 0x30]
mov rcx, qword [rsp + 0x58]
mov r9d, 1
mov qword [rsp + 0x20], rax
lea edx, [r9 + 0x3f]
call fcn.1800ca410
test eax, eax
jg 0x18010151b
jne 0x1801016f4
inc esi
cmp esi, 0x1000
jl 0x180101332
mov rdi, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
mov r12, qword [rsp + 0x30]
jmp 0x1801011a0
mov rbx, qword [rsp + 0x50]
mov edx, 2
lea r8d, [rdx - 1]
mov rcx, rbx
call fcn.1800c9de0
test eax, eax
je 0x1801016f4
call fcn.18006f470
mov r15, qword [rsp + 0x58]
mov rdi, qword [rbp - 0x70]
mov rdx, r15
mov rcx, rdi
mov r8, rax
call fcn.1800b1490
mov r12, qword [rsp + 0x30]
test eax, eax
je 0x1801016f9
mov r9, qword [rsp + 0x40]
mov r8, rdi
xor edx, edx
mov rcx, r14
mov qword [rsp + 0x20], r12
call fcn.1800c0160
test eax, eax
je 0x1801016f9
mov edx, 2
mov rcx, rdi
call fcn.1800704f0
test eax, eax
je 0x1801016f9
mov rcx, qword [rsp + 0x70]
mov r8, r12
mov rdx, r15
call fcn.1800c0510
test eax, eax
je 0x1801016f9
mov rax, qword [rsp + 0x70]
mov rcx, qword [rsp + 0x60]
mov r9, r15
mov qword [rsp + 0x28], rax
mov r8, r14
mov rdx, rdi
mov qword [rsp + 0x20], r12
call fcn.1800c1c30
test eax, eax
je 0x1801016f9
nop dword [rax + rax]
mov rcx, qword [rsp + 0x60]
call fcn.18006fb40
test eax, eax
je 0x180101637
call fcn.18006f470
mov rdx, rdi
mov rcx, rdi
mov r8, rax
call fcn.1800b13f0
test eax, eax
je 0x1801016f9
mov rax, qword [rsp + 0x70]
mov rcx, qword [rsp + 0x60]
inc dword [rbp - 0x80]
mov qword [rsp + 0x28], rax
mov r9, r15
mov r8, r14
mov rdx, rdi
mov qword [rsp + 0x20], r12
call fcn.1800c1c30
test eax, eax
jne 0x1801015e0
jmp 0x1801016f9
mov edx, 3
mov rcx, rbx
lea r8d, [rdx - 2]
call fcn.1800c9de0
test eax, eax
je 0x1801016f9
mov rbx, qword [rbp - 0x48]
mov dword [rsp + 0x38], 1
nop dword [rax]
mov rcx, qword [rbx + 8]
call fcn.18006fde0
mov rcx, qword [rbx + 0x10]
call fcn.18006fde0
mov rcx, qword [rbx + 0x18]
call fcn.18006fde0
mov rcx, r15
call fcn.1800707c0
mov rcx, qword [rsp + 0x40]
mov qword [rbx + 8], rax
call fcn.1800707c0
mov rcx, qword [rsp + 0x60]
mov qword [rbx + 0x10], rax
call fcn.1800707c0
cmp qword [rbx + 8], 0
mov qword [rbx + 0x18], rax
je 0x1801016ea
cmp qword [rbx + 0x10], 0
je 0x1801016ea
test rax, rax
je 0x1801016ea
mov rax, qword [rbp - 0x58]
test rax, rax
je 0x1801016c1
mov dword [rax], esi
mov rdx, qword [rbp - 0x50]
test rdx, rdx
je 0x1801016d0
mov rax, qword [rbp - 0x80]
mov dword [rdx], eax
mov rax, qword [rbp - 0x40]
test rax, rax
je 0x1801016f9
lea rdx, [rbp + 8]
mov r8, r13
mov rcx, rax
call fcn.18017dd20
jmp 0x1801016f9
mov dword [rsp + 0x38], 0
jmp 0x1801016f9
mov r12, qword [rsp + 0x30]
mov rcx, r12
call fcn.1800af2f0
mov rcx, r12
call fcn.1800af220
mov rcx, qword [rsp + 0x70]
call fcn.1800c04b0
mov eax, dword [rsp + 0x38]
mov r14, qword [rsp + 0x158]
mov r13, qword [rsp + 0x160]
mov rcx, qword [rbp + 0x48]
xor rcx, rsp
call fcn.180179370
add rsp, 0x168
pop r15
pop r12
pop rdi
pop rsi
pop rbx
pop rbp
ret