Function at 0x14001ebb0
Capabilities:
Encode data using xor

Disassembly:
mov r11, rsp
push rbp
lea rbp, [r11 - 0x5f]
sub rsp, 0xe0
mov rax, qword [0x1403c6da0]
xor rax, rsp
mov qword [rbp + 7], rax
cmp dword [0x1403f2160], 0
mov qword [r11 + 0x18], rbx
mov qword [r11 - 0x10], rsi
mov qword [r11 - 0x18], rdi
mov qword [r11 - 0x20], r12
mov qword [r11 - 0x38], r15
movaps xmmword [r11 - 0x48], xmm6
movapd xmm6, xmm2
mov r15d, edx
mov qword [rbp - 0x29], rcx
je 0x14001ec6e
mov rax, qword [0x1403f2188]
test rax, rax
je 0x14001ec1d
mov edx, reloc.WSOCK32.dll_send
lea r8, str..crypto_randmd_rand.c
mov r9d, 0xdc
lea ecx, [rdx - 0xe]
call rax
mov rax, qword [0x1403f2198]
test rax, rax
jne 0x14001ec31
call qword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
jmp 0x14001ec33
call rax
xor ebx, ebx
cmp dword [0x1403f2164], eax
mov rax, qword [0x1403f2188]
mov r12d, ebx
sete r12b
mov dword [rbp - 0x39], r12d
test rax, rax
je 0x14001ec67
lea r8, str..crypto_randmd_rand.c
lea edx, [rbx + 0x13]
lea ecx, [rbx + 6]
mov r9d, 0xde
call rax
test r12d, r12d
jne 0x14001ec99
jmp 0x14001ec76
xor ebx, ebx
mov r12d, ebx
mov dword [rbp - 0x39], ebx
mov rax, qword [0x1403f2188]
test rax, rax
je 0x14001ec99
mov edx, reloc.WSOCK32.dll_select
lea r8, str..crypto_randmd_rand.c
mov r9d, 0xe3
lea ecx, [rdx - 9]
call rax
movsxd rcx, dword [0x1403f2148]
mov eax, dword [0x1403f2150]
mov r8d, dword [0x1403f2154]
mov dword [rbp - 0x31], eax
mov rax, qword [0x1403f04e8]
mov rsi, rcx
mov qword [rbp - 0x11], rax
mov rax, qword [0x1403f04f0]
add ecx, r15d
mov qword [rbp - 9], rax
mov eax, dword [0x1403f04f8]
mov dword [rbp - 0x2d], r8d
mov dword [0x1403f2148], ecx
mov dword [rbp - 1], eax
cmp ecx, 0x3ff
jl 0x14001ed14
mov eax, 0x7fdff7fd
mov dword [0x1403f209c], 0x3ff
imul ecx
sub edx, ecx
sar edx, 9
mov eax, edx
shr eax, 0x1f
add edx, eax
imul edx, edx, 0x3ff
add ecx, edx
mov dword [0x1403f2148], ecx
jmp 0x14001ed2c
mov eax, dword [0x1403f209c]
cmp eax, 0x3ff
jge 0x14001ed2c
cmp ecx, eax
cmovg eax, ecx
mov dword [0x1403f209c], eax
mov eax, 0x66666667
mov ecx, r15d
imul r15d
sar edx, 3
mov eax, edx
shr eax, 0x1f
add edx, eax
lea eax, [rdx + rdx*4]
shl eax, 2
sub ecx, eax
mov eax, ebx
test ecx, ecx
setg al
add eax, edx
add r8d, eax
mov dword [0x1403f2154], r8d
test r12d, r12d
jne 0x14001ed84
mov rax, qword [0x1403f2188]
test rax, rax
je 0x14001ed84
lea edx, [r12 + 0x12]
lea r8, str..crypto_randmd_rand.c
mov r9d, 0x103
lea ecx, [rdx - 8]
call rax
xor r8d, r8d
mov rdi, rsi
mov ecx, r8d
mov qword [rbp - 0x59], r8
mov qword [rbp - 0x51], r8
mov qword [rbp - 0x49], r8
mov qword [rbp - 0x41], rcx
test r15d, r15d
jle 0x14001f02e
mov eax, 0xcccccccd
lea ecx, [r15 - 1]
mov qword [rsp + 0xc0], r13
mov qword [rsp + 0xb8], r14
mul ecx
shr edx, 4
lea eax, [rdx + 1]
mov qword [rbp - 0x19], rax
mov r12d, reloc.WSOCK32.dll_sendto
mov r14d, r15d
lea rcx, [0x140340af0]
cmp r15d, r12d
mov qword [rbp - 0x21], rcx
cmovg r14d, r12d
and dword [rbp - 0x49], 0xfffffffd
cmp qword [rbp - 0x51], 0
je 0x14001ee00
test r8, r8
je 0x14001ee00
cmp dword [r8], 0x40
je 0x14001eebe
lea rdx, [rbp - 0x21]
lea rcx, [rbp - 0x59]
call fcn.14002a890
test eax, eax
je 0x14001eec6
mov r8, qword [rbp - 0x59]
mov r13, qword [rbp - 0x21]
cmp r8, r13
je 0x14001eebe
test r8, r8
je 0x14001ee6e
cmp dword [r8 + 0x60], 0
je 0x14001ee6e
mov rax, qword [0x1403f20b0]
mov r12, qword [rbp - 0x41]
test rax, rax
je 0x14001ee49
xor edx, edx
mov rcx, r12
call rax
mov rcx, r12
call qword [fcn.14025db40]
mov r11, qword [0x1403f20b0]
test r11, r11
je 0x14001ee68
mov edx, 1
xor ecx, ecx
call r11
mov r12d, reloc.WSOCK32.dll_sendto
mov qword [rbp - 0x59], r13
mov ecx, dword [r13 + 0x60]
mov r8, r13
test ecx, ecx
je 0x14001eebe
lea rdx, str..cryptoevpdigest.c
mov r8d, 0x131
call fcn.14000dc90
mov qword [rbp - 0x41], rax
test rax, rax
jne 0x14001eeba
lea r9, str..cryptoevpdigest.c
lea ecx, [rax + 6]
lea r8d, [rax + 0x41]
mov edx, 0x80
mov dword [rsp + 0x20], 0x134
call fcn.14000c930
jmp 0x14001eec6
mov r8, qword [rbp - 0x59]
lea rcx, [rbp - 0x59]
call qword [r8 + reloc.WSOCK32.dll_recv]
mov rax, qword [rbp - 0x59]
lea rdx, [rbp - 0x11]
lea rcx, [rbp - 0x59]
mov r8, r12
call qword [rax + Ordinal_26]
lea r12d, [r14 + rsi - 0x3ff]
movsxd rdx, esi
lea rcx, [rbp - 0x59]
test r12d, r12d
jle 0x14001ef12
mov eax, r14d
lea r13, [0x1403f00d0]
sub eax, r12d
add rdx, r13
movsxd r8, eax
mov rax, qword [rbp - 0x59]
call qword [rax + Ordinal_26]
movsxd r8, r12d
mov rdx, r13
lea rcx, [rbp - 0x59]
jmp 0x14001ef1f
lea rax, [0x1403f00d0]
movsxd r8, r14d
add rdx, rax
mov rax, qword [rbp - 0x59]
call qword [rax + Ordinal_26]
mov r13, qword [rbp - 0x29]
mov rax, qword [rbp - 0x59]
movsxd r12, r14d
lea rcx, [rbp - 0x59]
mov rdx, r13
mov r8, r12
call qword [rax + Ordinal_26]
mov rax, qword [rbp - 0x59]
lea rdx, [rbp - 0x31]
lea rcx, [rbp - 0x59]
mov r8d, 8
call qword [rax + Ordinal_26]
mov r11, qword [rbp - 0x59]
cmp dword [r11 + 8], 0x40
jle 0x14001ef87
lea r9, str.ctx__digest__md_size___EVP_MAX_MD_SIZE
lea rdx, str..cryptoevpdigest.c
lea rcx, str._s__d_:_OpenSSL_internal_error__assertion_failed:__s_n
mov r8d, 0x159
call fcn.140024400
call fcn.140264f80
mov r11, qword [rbp - 0x59]
lea rdx, [rbp - 0x11]
lea rcx, [rbp - 0x59]
call qword [r11 + reloc.WLDAP32.dll_Ordinal_32]
mov r11, qword [rbp - 0x59]
mov rax, qword [r11 + 0x30]
test rax, rax
je 0x14001efae
lea rcx, [rbp - 0x59]
call rax
or dword [rbp - 0x49], 2
mov r11, qword [rbp - 0x59]
movsxd r8, dword [r11 + 0x60]
mov rcx, qword [rbp - 0x41]
xor edx, edx
call fcn.14025e980
inc dword [rbp - 0x2d]
add r13, r12
mov qword [rbp - 0x29], r13
mov rcx, rbx
test r14d, r14d
jle 0x14001f004
lea rdx, [0x1403f00d0]
nop word [rax + rax]
movzx eax, byte [rbp + rcx - 0x11]
inc rdi
inc esi
xor byte [rdi + rdx - 1], al
cmp rdi, 0x3ff
jl 0x14001effc
mov esi, ebx
mov rdi, rbx
inc rcx
cmp rcx, r12
jl 0x14001efe0
mov r8, qword [rbp - 0x59]
sub r15d, 0x14
dec qword [rbp - 0x19]
jne 0x14001edcb
mov rcx, qword [rbp - 0x41]
mov r12d, dword [rbp - 0x39]
mov r14, qword [rsp + 0xb8]
mov r13, qword [rsp + 0xc0]
mov r15, qword [rsp + 0xb0]
mov rsi, qword [rsp + 0xd8]
test r8, r8
je 0x14001f0b6
mov rax, qword [r8 + 0x30]
test rax, rax
je 0x14001f060
test byte [rbp - 0x49], 2
jne 0x14001f060
lea rcx, [rbp - 0x59]
call rax
mov rcx, qword [rbp - 0x41]
mov r8, qword [rbp - 0x59]
test r8, r8
je 0x14001f0b6
movsxd rax, dword [r8 + 0x60]
test eax, eax
je 0x14001f0b6
test rcx, rcx
je 0x14001f0b6
test byte [rbp - 0x49], 4
jne 0x14001f0b6
mov rdx, rax
call fcn.140020010
mov rax, qword [0x1403f20b0]
mov rdi, qword [rbp - 0x41]
test rax, rax
je 0x14001f097
xor edx, edx
mov rcx, rdi
call rax
mov rcx, rdi
call qword [fcn.14025db40]
mov r11, qword [0x1403f20b0]
test r11, r11
je 0x14001f0b6
mov edx, 1
xor ecx, ecx
call r11
mov rcx, qword [rbp - 0x51]
mov rdi, qword [rsp + 0xd0]
test rcx, rcx
je 0x14001f0cc
call fcn.14001fc80
xor eax, eax
mov qword [rbp - 0x59], rax
mov qword [rbp - 0x51], rax
mov qword [rbp - 0x49], rax
mov qword [rbp - 0x41], rax
test r12d, r12d
jne 0x14001f106
mov rax, qword [0x1403f2188]
test rax, rax
je 0x14001f106
lea edx, [r12 + 0x12]
lea r8, str..crypto_randmd_rand.c
mov r9d, 0x12e
lea ecx, [rdx - 9]
call rax
lea rcx, [0x1403f04e8]
nop dword [rax]
movzx eax, byte [rbp + rbx - 0x11]
add rbx, 5
xor byte [rbx + rcx - 5], al
movzx eax, byte [rbp + rbx - 0x15]
xor byte [rbx + rcx - 4], al
movzx eax, byte [rbp + rbx - 0x14]
xor byte [rbx + rcx - 3], al
movzx eax, byte [rbp + rbx - 0x13]
xor byte [rbx + rcx - 2], al
movzx eax, byte [rbp + rbx - 0x12]
xor byte [rbx + rcx - 1], al
cmp rbx, 0x14
jl 0x14001f110
movsd xmm0, qword [0x14035ef70]
movsd xmm1, qword [0x1403f2158]
mov rbx, qword [rsp + 0x100]
comisd xmm0, xmm1
jbe 0x14001f171
addsd xmm1, xmm6
movsd qword [0x1403f2158], xmm1
movaps xmm6, xmmword [rsp + 0xa0]
test r12d, r12d
mov r12, qword [rsp + 0xc8]
jne 0x14001f1a9
mov rax, qword [0x1403f2188]
test rax, rax
je 0x14001f1a9
mov edx, reloc.WSOCK32.dll_select
lea r8, str..crypto_randmd_rand.c
mov r9d, 0x139
lea ecx, [rdx - 8]
call rax
mov rcx, qword [rbp + 7]
xor rcx, rsp
call fcn.14025db20
add rsp, 0xe0
pop rbp
ret