Function at 0x140037f60
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.140016170
mov r15, rax
test rbp, rbp
jne 0x140037fb2
lea rcx, [0x1400b6958]
lea rdx, str._home_simon_mem_.build_workdirs_bob_aew3xwii_putty_crypto_mpint.c
mov r8d, 0x48
call fcn.14007b7e4
mov qword [r15], rbp
mov rcx, r15
add rcx, 0x10
mov qword [r15 + 8], rcx
mov rdx, rdi
call fcn.1400349b0
mov r8, qword [r15]
mov rcx, qword [r15 + 8]
shl r8, 3
mov rdx, rsi
call fcn.14006e1a0
mov rbp, qword [r15]
lea rdi, [rbp*8]
mov ecx, 1
mov edx, 0x10
mov r8, rdi
call fcn.140016170
mov rsi, rax
test rbp, rbp
jne 0x140038019
lea rcx, [0x1400b6958]
lea rdx, str._home_simon_mem_.build_workdirs_bob_aew3xwii_putty_crypto_mpint.c
mov r8d, 0x48
call fcn.14007b7e4
mov qword [rsi], rbp
mov rcx, rsi
add rcx, 0x10
mov qword [rsi + 8], rcx
mov rdx, rdi
call fcn.1400349b0
mov rbp, qword [r15]
lea rdi, [rbp*8]
mov ecx, 1
mov edx, 0x10
mov r8, rdi
call fcn.140016170
mov rbx, rax
test rbp, rbp
jne 0x14003806d
lea rcx, [0x1400b6958]
lea rdx, str._home_simon_mem_.build_workdirs_bob_aew3xwii_putty_crypto_mpint.c
mov r8d, 0x48
call fcn.14007b7e4
mov qword [rbx], rbp
mov rcx, rbx
add rcx, 0x10
mov qword [rbx + 8], rcx
mov rdx, rdi
call fcn.1400349b0
cmp qword [rbx], 0
je 0x1400380b1
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 0x1400380a0
mov rax, qword [rbx + 8]
add qword [rax], 1
mov rax, qword [r15]
movabs rcx, 0x70381c0e07038
cmp rax, rcx
jb 0x1400380e7
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.14007b7e4
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.140016170
mov r14, rax
mov byte [r13 + rax + 1], 0
mov r12, r13
mov qword [rsp + 0x28], rbx
jmp 0x140038168
mov rcx, r15
mov rdx, rsi
mov r8, rbx
call fcn.1400387d0
sub r12, 1
jb 0x1400383e4
mov r9, qword [r15]
mov ecx, 0
test r9, r9
je 0x1400381e5
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 0x1400382d0
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 0x14003822b
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.14007b7e4
lea eax, [rbp + 0x30]
mov byte [r14 + r12], al
mov rax, qword [r15]
test rax, rax
je 0x140038258
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 0x140038390
cmp qword [rsi], 0
mov rbx, qword [rsp + 0x28]
je 0x140038150
xor eax, eax
jmp 0x140038292
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 0x140038150
cmp qword [r15], rax
jbe 0x1400382b0
mov rcx, qword [r15 + 8]
mov rcx, qword [rcx + rax*8]
jmp 0x1400382b2
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 0x140038270
xor edx, edx
jmp 0x140038279
mov edx, 0x2ad5
mov ebp, 1
jmp 0x1400382ed
add rbp, 1
cmp r9, rbp
je 0x1400381e5
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 0x1400382e0
movzx eax, cx
shr ecx, 0x10
lea ecx, [rcx + rcx*2]
lea ecx, [rax + rcx*2]
movzx edx, dx
add edx, 0x5fffa
jmp 0x1400382e0
mov bl, dl
mov ebp, 1
jmp 0x1400383ad
add rbp, 1
cmp rax, rbp
je 0x140038258
cmp qword [r15], rbp
jbe 0x1400383c0
mov rdx, qword [r15 + 8]
mov rdx, qword [rdx + rbp*8]
jmp 0x1400383c2
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 0x1400383a0
mov qword [rcx + rbp*8], rdx
jmp 0x1400383a0
mov rdx, qword [r15]
mov rcx, qword [r15 + 8]
shl rdx, 3
call fcn.1400349b0
mov edx, 0x10
mov rcx, r15
call fcn.1400349b0
mov rcx, r15
call fcn.140016210
mov rdx, qword [rsi]
mov rcx, qword [rsi + 8]
shl rdx, 3
call fcn.1400349b0
mov edx, 0x10
mov rcx, rsi
call fcn.1400349b0
mov rcx, rsi
call fcn.140016210
mov rdx, qword [rbx]
mov rcx, qword [rbx + 8]
shl rdx, 3
call fcn.1400349b0
mov edx, 0x10
mov rcx, rbx
call fcn.1400349b0
mov rcx, rbx
call fcn.140016210
test r13b, 1
jne 0x14003845e
mov rax, r13
jmp 0x140038486
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 0x1400384e9
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 0x1400384a0
lea r12, [r14 + r15]
lea rax, [r14 + 0x10]
mov qword [rsp + 0x28], rax
xor ecx, ecx
jmp 0x140038513
add rcx, 1
mov rax, r15
shr rax, cl
test rax, rax
je 0x140038722
mov r11, r8
shr r11, cl
mov r9d, 1
shl r9, cl
mov r13, r15
sub r13, r9
jbe 0x140038500
and r11b, 1
neg r11b
cmp r13, 8
jb 0x14003854b
cmp r14, r12
jae 0x140038555
mov rax, r12
sub rax, r9
lea rdx, [r14 + r9]
cmp rdx, rax
jae 0x140038555
mov rsi, r9
xor ebp, ebp
jmp 0x1400386f9
movzx r10d, r11b
cmp r13, 0x10
jae 0x1400385ce
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 0x140038590
jmp 0x1400386f0
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 0x140038688
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 0x140038620
jmp 0x14003868a
xor esi, esi
test r15b, 1
mov r12, rdi
je 0x1400386c3
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 0x140038500
test r13b, 8
jne 0x140038561
lea rsi, [r9 + rbp]
jmp 0x1400386f9
cmp r13, rbp
je 0x140038500
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 0x1400386f0
mov rax, r14
add rsp, 0x38
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret