Function at 0x180113e80
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.180188f30
sub rsp, rax
mov rax, qword [0x180237160]
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 0x180113f24
cmp r15d, 0x1c
je 0x180113f24
cmp r15d, 0x20
jne 0x180114637
test r9, r9
jne 0x180113f62
cmp r15d, 0x14
jne 0x180113f3e
call fcn.1800e8ab0
mov rdi, rax
mov qword [rsp + 0x48], rax
jmp 0x180113f6d
cmp r15d, 0x1c
jne 0x180113f53
call fcn.1800e8be0
mov rdi, rax
mov qword [rsp + 0x48], rax
jmp 0x180113f6d
call fcn.1800e8bf0
mov rdi, rax
mov qword [rsp + 0x48], rax
jmp 0x180113f6d
mov rcx, r9
call fcn.1800b94f0
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 0x180113fd0
mov r8, qword [rbp + 0xc8]
movsxd rax, r15d
cmp r8, rax
jae 0x180113fc0
mov edx, 0x7d
lea r9, str.cryptodsadsa_gen.c
mov dword [rsp + 0x20], 0x55
lea ecx, [rdx - 0x73]
lea r8d, [rdx - 0xf]
call fcn.1800b8900
xor eax, eax
jmp 0x180114637
lea rcx, [rbp + 8]
cmova r8, rax
mov rdx, r12
call fcn.180183a80
mov qword [rsp + 0x160], r13
mov qword [rsp + 0x158], r14
call fcn.1800fab40
mov qword [rsp + 0x70], rax
test rax, rax
je 0x180114604
call fcn.180143990
mov r12, rax
mov qword [rsp + 0x30], rax
test rax, rax
je 0x180114609
mov rcx, rax
call fcn.180143a90
mov rcx, r12
call fcn.180143b80
mov rcx, r12
mov r14, rax
call fcn.180143b80
mov rcx, r12
mov qword [rsp + 0x60], rax
call fcn.180143b80
mov rcx, r12
mov qword [rsp + 0x78], rax
call fcn.180143b80
mov rcx, r12
mov qword [rsp + 0x40], rax
call fcn.180143b80
mov rcx, r12
mov qword [rsp + 0x68], rax
call fcn.180143b80
mov rcx, r12
mov qword [rbp - 0x60], rax
call fcn.180143b80
mov rcx, r12
mov qword [rsp + 0x58], rax
call fcn.180143b80
mov rbx, rax
mov qword [rbp - 0x70], rax
test rax, rax
je 0x180114609
movsxd r13, r15d
call fcn.1800d2db0
mov r8, qword [rbp - 0x78]
dec r8d
mov rdx, rax
mov rcx, rbx
call fcn.1800d59d0
test eax, eax
je 0x180114609
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.180160610
inc dword [rsp + 0x3c]
test eax, eax
je 0x180114609
test ebx, ebx
je 0x1801140ee
lea rcx, [rbp + 8]
mov edx, r15d
call fcn.1800ba5f0
test eax, eax
jle 0x180114609
jmp 0x1801140f6
mov qword [rbp - 0x68], 0
lea rdx, [rbp + 8]
lea rcx, [rbp - 0x18]
mov r8, r13
call fcn.180183a80
lea rdx, [rbp + 8]
lea rcx, [rbp + 0x28]
mov r8, r13
call fcn.180183a80
lea r11, [r13 - 1]
test r11, r11
js 0x18011412c
nop
inc byte [rbp + r11 - 0x18]
jne 0x18011412c
dec r11
jns 0x180114120
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.180105440
test eax, eax
je 0x180114609
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.180105440
test eax, eax
je 0x180114609
xor ecx, ecx
test r15d, r15d
jle 0x1801141a1
nop word [rax + rax]
movzx eax, byte [rbp + rcx + 0x28]
inc rcx
xor byte [rbp + rcx - 0x39], al
cmp rcx, r13
jl 0x180114190
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.1800d3ed0
test rax, rax
je 0x180114609
mov rcx, qword [rsp + 0x40]
mov r9d, ebx
mov r8, r12
mov edx, 0x40
mov qword [rsp + 0x20], rsi
call fcn.180160c30
test eax, eax
jg 0x1801141ee
je 0x1801140b0
jmp 0x180114609
xor r8d, r8d
mov rcx, rsi
lea edx, [r8 + 2]
call fcn.180160610
test eax, eax
je 0x180114609
xor r8d, r8d
mov rcx, rsi
lea edx, [r8 + 3]
call fcn.180160610
test eax, eax
je 0x180114609
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 0x18011425d
mov rcx, qword [rsp + 0x50]
mov r8d, esi
xor edx, edx
call fcn.180160610
test eax, eax
je 0x180114604
mov rcx, rbx
call fcn.1800d3430
xor ebx, ebx
test edi, edi
js 0x18011430d
nop
mov rax, r12
test r12, r12
js 0x180114283
inc byte [rbp + rax - 0x18]
jne 0x180114283
dec rax
jns 0x180114278
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.180105440
test eax, eax
je 0x180114604
lea rcx, [rbp - 0x38]
mov r8, r14
mov edx, r15d
call fcn.1800d3ed0
test rax, rax
je 0x180114604
lea r8d, [r15*8]
mov rdx, r14
mov rcx, r14
imul r8d, ebx
call fcn.1800d59d0
test eax, eax
je 0x180114604
mov rax, qword [rsp + 0x78]
mov r8, r14
mov rdx, rax
mov rcx, rax
call fcn.180149420
test eax, eax
je 0x180114604
inc ebx
cmp ebx, edi
jle 0x180114270
mov rdx, qword [rbp - 0x78]
mov rbx, qword [rsp + 0x78]
dec edx
mov rcx, rbx
call fcn.1800d3cd0
test eax, eax
je 0x180114604
mov rcx, qword [rsp + 0x68]
mov rdx, rbx
call fcn.1800d3db0
test rax, rax
je 0x180114604
mov rax, qword [rsp + 0x68]
mov r8, qword [rbp - 0x70]
mov rdx, rax
mov rcx, rax
call fcn.180149420
test eax, eax
je 0x180114604
mov rdx, qword [rsp + 0x40]
mov rcx, r14
call fcn.1800d55d0
test eax, eax
je 0x180114604
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.1801475b0
test eax, eax
je 0x180114604
call fcn.1800d2db0
mov rdx, qword [rbp - 0x60]
mov rcx, r14
mov r8, rax
call fcn.1801494c0
test eax, eax
je 0x180114604
mov rdx, qword [rsp + 0x68]
mov rcx, qword [rsp + 0x58]
mov r8, r14
call fcn.1801494c0
test eax, eax
je 0x180114604
mov rdx, qword [rbp - 0x70]
mov rcx, qword [rsp + 0x58]
call fcn.1800d30c0
test eax, eax
js 0x180114409
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.180160c30
test eax, eax
jg 0x18011442b
jne 0x180114604
inc esi
cmp esi, 0x1000
jl 0x180114242
mov rdi, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
mov r12, qword [rsp + 0x30]
jmp 0x1801140b0
mov rbx, qword [rsp + 0x50]
mov edx, 2
lea r8d, [rdx - 1]
mov rcx, rbx
call fcn.180160610
test eax, eax
je 0x180114604
call fcn.1800d2db0
mov r15, qword [rsp + 0x58]
mov rdi, qword [rbp - 0x70]
mov rdx, r15
mov rcx, rdi
mov r8, rax
call fcn.1801494c0
mov r12, qword [rsp + 0x30]
test eax, eax
je 0x180114609
mov r9, qword [rsp + 0x40]
mov r8, rdi
xor edx, edx
mov rcx, r14
mov qword [rsp + 0x20], r12
call fcn.1801475b0
test eax, eax
je 0x180114609
mov edx, 2
mov rcx, rdi
call fcn.1800d3e60
test eax, eax
je 0x180114609
mov rcx, qword [rsp + 0x70]
mov r8, r12
mov rdx, r15
call fcn.1800fa6e0
test eax, eax
je 0x180114609
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.1801459d0
test eax, eax
je 0x180114609
nop dword [rax + rax]
mov rcx, qword [rsp + 0x60]
call fcn.1800d3480
test eax, eax
je 0x180114547
call fcn.1800d2db0
mov rdx, rdi
mov rcx, rdi
mov r8, rax
call fcn.180149420
test eax, eax
je 0x180114609
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.1801459d0
test eax, eax
jne 0x1801144f0
jmp 0x180114609
mov edx, 3
mov rcx, rbx
lea r8d, [rdx - 2]
call fcn.180160610
test eax, eax
je 0x180114609
mov rbx, qword [rbp - 0x48]
mov dword [rsp + 0x38], 1
nop dword [rax]
mov rcx, qword [rbx + 8]
call fcn.1800d3730
mov rcx, qword [rbx + 0x10]
call fcn.1800d3730
mov rcx, qword [rbx + 0x18]
call fcn.1800d3730
mov rcx, r15
call fcn.1800d4130
mov rcx, qword [rsp + 0x40]
mov qword [rbx + 8], rax
call fcn.1800d4130
mov rcx, qword [rsp + 0x60]
mov qword [rbx + 0x10], rax
call fcn.1800d4130
cmp qword [rbx + 8], 0
mov qword [rbx + 0x18], rax
je 0x1801145fa
cmp qword [rbx + 0x10], 0
je 0x1801145fa
test rax, rax
je 0x1801145fa
mov rax, qword [rbp - 0x58]
test rax, rax
je 0x1801145d1
mov dword [rax], esi
mov rdx, qword [rbp - 0x50]
test rdx, rdx
je 0x1801145e0
mov rax, qword [rbp - 0x80]
mov dword [rdx], eax
mov rax, qword [rbp - 0x40]
test rax, rax
je 0x180114609
lea rdx, [rbp + 8]
mov r8, r13
mov rcx, rax
call fcn.180183a80
jmp 0x180114609
mov dword [rsp + 0x38], 0
jmp 0x180114609
mov r12, qword [rsp + 0x30]
mov rcx, r12
call fcn.180143b00
mov rcx, r12
call fcn.180143a30
mov rcx, qword [rsp + 0x70]
call fcn.1800fa680
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.180183a50
add rsp, 0x168
pop r15
pop r12
pop rdi
pop rsi
pop rbx
pop rbp
ret