Function at 0x140071d80
Capabilities:
Encode data using xor

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x38
mov rbp, qword [rcx]
mov rsi, qword [rcx + 8]
lea rdi, [rbp*8]
mov ecx, 1
mov edx, 0x10
mov r8, rdi
call fcn.1400416b0
mov r15, rax
test rbp, rbp
jne 0x140071dd2
lea rcx, [0x1400f12fe]
lea rdx, str._home_simon_mem_.build_workdirs_bob_aew3xwii_putty_crypto_mpint.c
mov r8d, 0x48
call fcn.1400b215c
mov qword [r15], rbp
mov rcx, r15
add rcx, 0x10
mov qword [r15 + 8], rcx
mov rdx, rdi
call fcn.14006dd10
mov r8, qword [r15]
mov rcx, qword [r15 + 8]
shl r8, 3
mov rdx, rsi
call fcn.1400a70b0
mov rbp, qword [r15]
lea rdi, [rbp*8]
mov ecx, 1
mov edx, 0x10
mov r8, rdi
call fcn.1400416b0
mov rsi, rax
test rbp, rbp
jne 0x140071e39
lea rcx, [0x1400f12fe]
lea rdx, str._home_simon_mem_.build_workdirs_bob_aew3xwii_putty_crypto_mpint.c
mov r8d, 0x48
call fcn.1400b215c
mov qword [rsi], rbp
mov rcx, rsi
add rcx, 0x10
mov qword [rsi + 8], rcx
mov rdx, rdi
call fcn.14006dd10
mov rbp, qword [r15]
lea rdi, [rbp*8]
mov ecx, 1
mov edx, 0x10
mov r8, rdi
call fcn.1400416b0
mov rbx, rax
test rbp, rbp
jne 0x140071e8d
lea rcx, [0x1400f12fe]
lea rdx, str._home_simon_mem_.build_workdirs_bob_aew3xwii_putty_crypto_mpint.c
mov r8d, 0x48
call fcn.1400b215c
mov qword [rbx], rbp
mov rcx, rbx
add rcx, 0x10
mov qword [rbx + 8], rcx
mov rdx, rdi
call fcn.14006dd10
cmp qword [rbx], 0
je 0x140071ed1
xor eax, eax
movabs rcx, 0xcccccccccccccccc
nop word cs:[rax + rax]
nop
mov rdx, qword [rbx + 8]
mov qword [rdx + rax*8], rcx
add rax, 1
cmp rax, qword [rbx]
jb 0x140071ec0
mov rax, qword [rbx + 8]
add qword [rax], 1
mov rax, qword [r15]
movabs rcx, 0x70381c0e07038
cmp rax, rcx
jb 0x140071f07
lea rcx, str.x__nw_____size_t_1_____146__BIGNUM_INT_BITS_
lea rdx, str._home_simon_mem_.build_workdirs_bob_aew3xwii_putty_crypto_mpint.c
mov r8d, 0x1d8
call fcn.1400b215c
mov rax, qword [r15]
imul r13, rax, 0x2480
movabs rcx, 0xe40655826010e41
mov rax, r13
mul rcx
mov qword [rsp + 0x30], r13
sub r13, rdx
shr r13, 1
add r13, rdx
shr r13, 8
mov eax, 1
cmove r13, rax
lea rcx, [r13 + 2]
mov edx, 1
mov qword [rsp + 0x20], rcx
xor r8d, r8d
call fcn.1400416b0
mov r14, rax
mov byte [r13 + rax + 1], 0
mov r12, r13
mov qword [rsp + 0x28], rbx
jmp 0x140071f88
mov rcx, r15
mov rdx, rsi
mov r8, rbx
call fcn.1400725f0
sub r12, 1
jb 0x140072204
mov r9, qword [r15]
mov ecx, 0
test r9, r9
je 0x140072005
mov r8, qword [r15 + 8]
mov rax, qword [r8]
movzx ecx, al
movzx edx, ah
lea edx, [rdx + rdx*2]
lea ecx, [rcx + rdx*2]
mov edx, eax
shr edx, 0x10
movzx edx, dl
lea edx, [rdx + rdx*2]
lea ecx, [rcx + rdx*2]
mov edx, eax
shr edx, 0x18
lea edx, [rdx + rdx*2]
lea ecx, [rcx + rdx*2]
mov rdx, rax
shr rdx, 0x20
movzx edx, dl
lea edx, [rdx + rdx*2]
lea ecx, [rcx + rdx*2]
mov rdx, rax
shr rdx, 0x28
movzx edx, dl
lea edx, [rdx + rdx*2]
lea ecx, [rcx + rdx*2]
mov rdx, rax
shr rdx, 0x30
movzx edx, dl
lea edx, [rdx + rdx*2]
lea ecx, [rcx + rdx*2]
shr rax, 0x38
lea eax, [rax + rax*2]
lea ecx, [rcx + rax*2]
cmp r9, 1
jne 0x1400720f0
mov eax, ecx
imul rax, rax, 0x19999999
shr rax, 0x20
add eax, eax
lea eax, [rax + rax*4]
mov ebp, ecx
sub ebp, eax
neg eax
add eax, ecx
add eax, 6
shr eax, 3
and eax, 0xfffffffe
lea eax, [rax + rax*4]
sub ebp, eax
cmp ebp, 0xa
jb 0x14007204b
lea rcx, str.low_digit___10
lea rdx, str._home_simon_mem_.build_workdirs_bob_aew3xwii_putty_crypto_mpint.c
mov r8d, 0x20c
call fcn.1400b215c
lea eax, [rbp + 0x30]
mov byte [r14 + r12], al
mov rax, qword [r15]
test rax, rax
je 0x140072078
mov rcx, qword [r15 + 8]
mov edx, ebp
mov rbp, qword [rcx]
xor ebx, ebx
sub rbp, rdx
setae dl
mov qword [rcx], rbp
cmp rax, 1
jne 0x1400721b0
cmp qword [rsi], 0
mov rbx, qword [rsp + 0x28]
je 0x140071f70
xor eax, eax
jmp 0x1400720b2
mov rdx, qword [r15 + 8]
mov rdx, qword [rdx + rax*8 + 8]
shl rdx, 0x3f
mov rbp, qword [rsi + 8]
or qword [rbp + rax*8], rdx
mov rax, rcx
cmp rcx, qword [rsi]
jae 0x140071f70
cmp qword [r15], rax
jbe 0x1400720d0
mov rcx, qword [r15 + 8]
mov rcx, qword [rcx + rax*8]
jmp 0x1400720d2
xor ecx, ecx
mov rdx, qword [rsi + 8]
mov qword [rdx + rax*8], rcx
mov rcx, qword [rsi + 8]
shr qword [rcx + rax*8], 1
lea rcx, [rax + 1]
cmp qword [r15], rcx
ja 0x140072090
xor edx, edx
jmp 0x140072099
mov edx, 0x2ad5
mov ebp, 1
jmp 0x14007210d
add rbp, 1
cmp r9, rbp
je 0x140072005
mov rbx, qword [r8 + rbp*8]
movzx edi, bl
lea edi, [rdi + rdi*2]
lea ecx, [rcx + rdi*2]
movzx edi, bh
lea edi, [rdi + rdi*2]
lea ecx, [rcx + rdi*2]
mov edi, ebx
shr edi, 0x10
movzx edi, dil
lea edi, [rdi + rdi*2]
lea ecx, [rcx + rdi*2]
mov eax, ebx
shr eax, 0x18
lea eax, [rax + rax*2]
lea eax, [rcx + rax*2]
mov rcx, rbx
shr rcx, 0x20
movzx ecx, cl
lea ecx, [rcx + rcx*2]
lea eax, [rax + rcx*2]
mov rcx, rbx
shr rcx, 0x28
movzx ecx, cl
lea ecx, [rcx + rcx*2]
lea eax, [rax + rcx*2]
mov rcx, rbx
shr rcx, 0x30
movzx ecx, cl
lea ecx, [rcx + rcx*2]
lea eax, [rax + rcx*2]
shr rbx, 0x38
lea ecx, [rbx + rbx*2]
lea ecx, [rax + rcx*2]
add edx, 0x2fd0
cmp edx, 0xffffd02f
jbe 0x140072100
movzx eax, cx
shr ecx, 0x10
lea ecx, [rcx + rcx*2]
lea ecx, [rax + rcx*2]
movzx edx, dx
add edx, 0x5fffa
jmp 0x140072100
mov bl, dl
mov ebp, 1
jmp 0x1400721cd
add rbp, 1
cmp rax, rbp
je 0x140072078
cmp qword [r15], rbp
jbe 0x1400721e0
mov rdx, qword [r15 + 8]
mov rdx, qword [rdx + rbp*8]
jmp 0x1400721e2
xor edx, edx
xor edi, edi
add rbx, rdx
setb dil
mov rdx, rbx
add rdx, 0xffffffffffffffff
mov rbx, rdi
adc rbx, 0
test rcx, rcx
je 0x1400721c0
mov qword [rcx + rbp*8], rdx
jmp 0x1400721c0
mov rdx, qword [r15]
mov rcx, qword [r15 + 8]
shl rdx, 3
call fcn.14006dd10
mov edx, 0x10
mov rcx, r15
call fcn.14006dd10
mov rcx, r15
call fcn.140041750
mov rdx, qword [rsi]
mov rcx, qword [rsi + 8]
shl rdx, 3
call fcn.14006dd10
mov edx, 0x10
mov rcx, rsi
call fcn.14006dd10
mov rcx, rsi
call fcn.140041750
mov rdx, qword [rbx]
mov rcx, qword [rbx + 8]
shl rdx, 3
call fcn.14006dd10
mov edx, 0x10
mov rcx, rbx
call fcn.14006dd10
mov rcx, rbx
call fcn.140041750
test r13b, 1
jne 0x14007227e
mov rax, r13
jmp 0x1400722a6
lea rax, [r13 - 1]
movzx ecx, byte [r14 + r13 - 1]
xor rcx, 0x30
add rcx, 0xffffffffffffffff
sar rcx, 0x3f
xor r13, rax
and r13, rcx
mov r8, r13
xor r8, rax
mov r13, rax
mov rax, r8
mov r15, qword [rsp + 0x20]
mov rcx, qword [rsp + 0x30]
cmp rcx, 0x3ca
jb 0x140072309
add r13, 0xffffffffffffffff
nop dword [rax]
movzx ecx, byte [r14 + r13]
xor rcx, 0x30
add rcx, 0xffffffffffffffff
sar rcx, 0x3f
xor rax, r13
and rax, rcx
lea rcx, [r13 - 1]
movzx edx, byte [r14 + r13 - 1]
xor rdx, 0x30
add rdx, 0xffffffffffffffff
sar rdx, 0x3f
mov r8, r13
xor r8, rcx
xor r8, rax
and r8, rdx
xor r8, rcx
add r13, 0xfffffffffffffffe
mov rax, r8
cmp r13, 0xffffffffffffffff
jne 0x1400722c0
lea r12, [r14 + r15]
lea rax, [r14 + 0x10]
mov qword [rsp + 0x28], rax
xor ecx, ecx
jmp 0x140072333
add rcx, 1
mov rax, r15
shr rax, cl
test rax, rax
je 0x140072542
mov r11, r8
shr r11, cl
mov r9d, 1
shl r9, cl
mov r13, r15
sub r13, r9
jbe 0x140072320
and r11b, 1
neg r11b
cmp r13, 8
jb 0x14007236b
cmp r14, r12
jae 0x140072375
mov rax, r12
sub rax, r9
lea rdx, [r14 + r9]
cmp rdx, rax
jae 0x140072375
mov rsi, r9
xor ebp, ebp
jmp 0x140072519
movzx r10d, r11b
cmp r13, 0x10
jae 0x1400723ee
xor ebp, ebp
mov rdx, rbp
mov rbp, r13
and rbp, 0xfffffffffffffff8
lea rsi, [r9 + rbp]
movd xmm0, r10d
punpcklbw xmm0, xmm0
pshuflw xmm0, xmm0, 0
lea rax, [r14 + rdx]
sub rdx, rbp
nop word cs:[rax + rax]
nop
mov rdi, qword [rax]
movq xmm1, rdi
mov rbx, qword [rax + r9]
movq xmm2, rbx
xor rbx, rdi
movq xmm3, rbx
pand xmm3, xmm0
pxor xmm1, xmm3
movq qword [rax], xmm1
pxor xmm3, xmm2
movq qword [rax + r9], xmm3
add rax, 8
add rdx, 8
jne 0x1400723b0
jmp 0x140072510
mov rdi, r12
mov rbp, r13
and rbp, 0xfffffffffffffff0
movd xmm0, r10d
punpcklbw xmm0, xmm0
pshuflw xmm0, xmm0, 0
pshufd xmm0, xmm0, 0
lea rax, [rbp - 0x10]
mov r15, rax
shr r15, 4
add r15, 1
test rax, rax
je 0x1400724a8
mov rax, qword [rsp + 0x28]
lea r12, [rax + r9]
mov rdx, r15
and rdx, 0xfffffffffffffffe
neg rdx
xor esi, esi
nop dword [rax + rax]
movdqu xmm1, xmmword [r14 + rsi]
movdqu xmm2, xmmword [r12 + rsi - 0x10]
movdqa xmm3, xmm2
pxor xmm3, xmm1
pand xmm3, xmm0
pxor xmm1, xmm3
movdqu xmmword [r14 + rsi], xmm1
pxor xmm3, xmm2
movdqu xmmword [r12 + rsi - 0x10], xmm3
movdqu xmm1, xmmword [r14 + rsi + 0x10]
movdqu xmm2, xmmword [r12 + rsi]
movdqa xmm3, xmm2
pxor xmm3, xmm1
pand xmm3, xmm0
pxor xmm1, xmm3
movdqu xmmword [r14 + rsi + 0x10], xmm1
pxor xmm3, xmm2
movdqu xmmword [r12 + rsi], xmm3
add rsi, 0x20
add rdx, 2
jne 0x140072440
jmp 0x1400724aa
xor esi, esi
test r15b, 1
mov r12, rdi
je 0x1400724e3
lea rax, [r9 + rsi]
movdqu xmm1, xmmword [r14 + rsi]
movdqu xmm2, xmmword [r14 + rax]
movdqa xmm3, xmm2
pxor xmm3, xmm1
pand xmm3, xmm0
pxor xmm1, xmm3
movdqu xmmword [r14 + rsi], xmm1
pxor xmm3, xmm2
movdqu xmmword [r14 + rax], xmm3
cmp r13, rbp
mov r15, qword [rsp + 0x20]
je 0x140072320
test r13b, 8
jne 0x140072381
lea rsi, [r9 + rbp]
jmp 0x140072519
cmp r13, rbp
je 0x140072320
mov al, byte [r14 + rbp]
mov bl, byte [r14 + rsi]
mov edx, ebx
xor dl, al
and dl, r11b
xor al, dl
mov byte [r14 + rbp], al
xor dl, bl
mov byte [r14 + rsi], dl
lea rsi, [r9 + rbp]
add rsi, 1
add rbp, 1
jmp 0x140072510
mov rax, r14
add rsp, 0x38
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret