Function at 0x14007ec20
Capabilities:
Encode data using xor

Disassembly:
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0xf0]
sub rsp, 0x1f0
mov qword [rbp - 0x58], 0xfffffffffffffffe
mov qword [rsp + 0x248], rbx
mov rax, qword [0x140120678]
xor rax, rsp
mov qword [rbp + 0xe0], rax
mov r14, r9
mov r15, r8
mov r12, rdx
mov rbx, rcx
mov esi, dword [rdx]
movzx eax, byte [rcx + 0x1fc0]
mov byte [rcx + 0x1fe0], al
movzx eax, byte [rcx + 0x1fc1]
mov byte [rcx + 0x1fe1], al
movzx eax, byte [rcx + 0x1fc2]
mov byte [rcx + 0x1fe2], al
movzx eax, byte [rcx + 0x1fc3]
mov byte [rcx + 0x1fe3], al
movzx eax, byte [rcx + 0x1fc4]
mov byte [rcx + 0x1fe4], al
movzx eax, byte [rcx + 0x1fc5]
mov byte [rcx + 0x1fe5], al
movzx eax, byte [rcx + 0x1fc6]
mov byte [rcx + 0x1fe6], al
movzx eax, byte [rcx + 0x1fc7]
mov byte [rcx + 0x1fe7], al
movzx eax, byte [rcx + 0x1fc8]
mov byte [rcx + 0x1fe8], al
movzx eax, byte [rcx + 0x1fc9]
mov byte [rcx + 0x1fe9], al
movzx eax, byte [rcx + 0x1fca]
mov byte [rcx + 0x1fea], al
movzx eax, byte [rcx + 0x1fcb]
mov byte [rcx + 0x1feb], al
movzx eax, byte [rcx + 0x1fcc]
mov byte [rcx + 0x1fec], al
movzx eax, byte [rcx + 0x1fcd]
mov byte [rcx + 0x1fed], al
movzx eax, byte [rcx + 0x1fce]
mov byte [rcx + 0x1fee], al
movzx eax, byte [rcx + 0x1fcf]
mov byte [rcx + 0x1fef], al
mov rcx, qword [rcx]
mov rax, qword [rcx]
mov edx, 0x226458
call qword [rax + 0x10]
mov edi, eax
test eax, eax
je 0x14007ed9b
mov dword [rsp + 0x20], eax
lea r9, str.ERROR
lea r8, [0x1400cbd78]
lea rdx, str.__s_____s___0x_lx__SendEmptyMsg___failed_for_aes_init_sbox_exp_r_n
mov ecx, 3
call fcn.14000afc0
mov dword [rsp + 0x20], edi
lea r9, str.ERROR
lea r8, [0x1400cbd78]
lea rdx, str.__s_____s___0x_lx__InitSBoxExp___failed_r_n
mov ecx, 3
call fcn.14000afc0
mov eax, edi
jmp 0x14007f3e1
mov dword [rsp + 0x38], 1
xor r13d, r13d
mov qword [rbp - 0x50], r13
xorps xmm0, xmm0
movdqu xmmword [rbp - 0x48], xmm0
movzx r9d, byte [rsp + 0x30]
lea r8, [rsp + 0x3c]
lea rdx, [rsp + 0x38]
lea rcx, [rbp - 0x50]
call fcn.14007de00
nop
lea rdx, [rbp - 0x50]
mov rcx, rbx
call fcn.14007e070
mov edi, eax
mov r8, qword [rbp - 0x50]
test r8, r8
je 0x14007ee23
mov rcx, qword [rbp - 0x40]
sub rcx, r8
sar rcx, 2
lea rdx, [rcx*4]
mov rax, r8
cmp rdx, 0x1000
jb 0x14007ee1b
add rdx, 0x27
mov r8, qword [r8 - 8]
sub rax, r8
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14007f411
mov rcx, r8
call fcn.14009fcc0
test edi, edi
je 0x14007ee51
mov dword [rsp + 0x20], edi
lea r9, str.ERROR
lea r8, [0x1400cbd78]
lea rdx, str.__s_____s___0x_lx__CalcExpSquare___failed_for_exp2_r_n
mov ecx, 3
call fcn.14000afc0
mov eax, edi
jmp 0x14007f3e1
mov r9d, 2
lea r8d, [r9 - 1]
mov edx, esi
mov rcx, rbx
call fcn.14007e310
mov edi, eax
test eax, eax
je 0x14007ee95
mov dword [rsp + 0x20], eax
lea r9, str.ERROR
lea r8, [0x1400cbd78]
lea rdx, str.__s_____s___0x_lx__CalcExpTwoPart___failed_for_exp3_r_n
mov ecx, 3
call fcn.14000afc0
mov eax, edi
jmp 0x14007f3e1
mov dword [rbp - 0x50], 3
mov dword [rbp - 0x4c], 6
mov dword [rbp - 0x48], reloc.WS2_32.dll_inet_ntoa
mov dword [rbp - 0x44], 0x18
mov dword [rbp - 0x40], gethostbyname
mov qword [rbp - 0x70], r13
xorps xmm0, xmm0
movdqu xmmword [rbp - 0x68], xmm0
movzx r9d, byte [rsp + 0x30]
lea r8, [rbp - 0x3c]
lea rdx, [rbp - 0x50]
lea rcx, [rbp - 0x70]
call fcn.14007de00
nop
lea rdx, [rbp - 0x70]
mov rcx, rbx
call fcn.14007e070
mov edi, eax
mov r8, qword [rbp - 0x70]
test r8, r8
je 0x14007ef33
mov rcx, qword [rbp - 0x60]
sub rcx, r8
sar rcx, 2
lea rdx, [rcx*4]
mov rax, r8
cmp rdx, 0x1000
jb 0x14007ef2b
add rdx, 0x27
mov r8, qword [r8 - 8]
sub rax, r8
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14007f417
mov rcx, r8
call fcn.14009fcc0
test edi, edi
je 0x14007ef61
mov dword [rsp + 0x20], edi
lea r9, str.ERROR
lea r8, [0x1400cbd78]
lea rdx, str.__s_____s___0x_lx__CalcExpSquare___failed_for_exp6_exp12_exp24_exp48_exp96_r_n
mov ecx, 3
call fcn.14000afc0
mov eax, edi
jmp 0x14007f3e1
mov dword [rsp + 0x38], 3
mov dword [rsp + 0x3c], reloc.WS2_32.dll_inet_ntoa
xorps xmm0, xmm0
movdqa xmmword [rbp - 0x30], xmm0
mov qword [rbp - 0x20], r13
movzx r9d, byte [rsp + 0x30]
lea r8, [rsp + 0x40]
lea rdx, [rsp + 0x38]
lea rcx, [rbp - 0x30]
call fcn.14007de00
nop
mov dword [rsp + 0x40], 0xf
mov dword [rsp + 0x44], gethostbyname
mov qword [rbp - 0x18], r13
xorps xmm0, xmm0
movdqa xmmword [rbp - 0x10], xmm0
movzx r9d, byte [rsp + 0x30]
lea r8, [rsp + 0x48]
lea rdx, [rsp + 0x40]
lea rcx, [rbp - 0x18]
call fcn.14007de00
nop
mov dword [rsp + 0x48], 1
mov dword [rsp + 0x4c], 0x3f
xorps xmm0, xmm0
movdqa xmmword [rbp], xmm0
mov qword [rbp + 0x10], r13
movzx r9d, byte [rsp + 0x30]
lea r8, [rsp + 0x50]
lea rdx, [rsp + 0x48]
lea rcx, [rbp]
call fcn.14007de00
nop
mov dword [rsp + 0x50], 0x3f
mov dword [rsp + 0x54], 0x40
mov qword [rbp + 0x18], r13
xorps xmm0, xmm0
movdqa xmmword [rbp + 0x20], xmm0
movzx r9d, byte [rsp + 0x30]
lea r8, [rsp + 0x58]
lea rdx, [rsp + 0x50]
lea rcx, [rbp + 0x18]
call fcn.14007de00
nop
mov dword [rsp + 0x58], 0x40
mov dword [rsp + 0x5c], 0x7f
xorps xmm0, xmm0
movdqa xmmword [rbp + 0x30], xmm0
mov qword [rbp + 0x40], r13
movzx r9d, byte [rsp + 0x30]
lea r8, [rsp + 0x60]
lea rdx, [rsp + 0x58]
lea rcx, [rbp + 0x30]
call fcn.14007de00
nop
mov dword [rsp + 0x60], 0x60
mov dword [rsp + 0x64], 0x7f
mov qword [rbp + 0x48], r13
xorps xmm0, xmm0
movdqa xmmword [rbp + 0x50], xmm0
movzx r9d, byte [rsp + 0x30]
lea r8, [rsp + 0x68]
lea rdx, [rsp + 0x60]
lea rcx, [rbp + 0x48]
call fcn.14007de00
nop
mov dword [rsp + 0x68], gethostbyname
mov dword [rsp + 0x6c], 0xbf
xorps xmm0, xmm0
movdqa xmmword [rbp + 0x60], xmm0
mov qword [rbp + 0x70], r13
movzx r9d, byte [rsp + 0x30]
lea r8, [rsp + 0x70]
lea rdx, [rsp + 0x68]
lea rcx, [rbp + 0x60]
call fcn.14007de00
nop
mov dword [rsp + 0x70], 0x18
mov dword [rsp + 0x74], 0xdf
mov qword [rbp + 0x78], r13
xorps xmm0, xmm0
movdqa xmmword [rbp + 0x80], xmm0
movzx r9d, byte [rsp + 0x30]
lea r8, [rsp + 0x78]
lea rdx, [rsp + 0x70]
lea rcx, [rbp + 0x78]
call fcn.14007de00
nop
mov dword [rsp + 0x78], reloc.WS2_32.dll_inet_ntoa
mov dword [rsp + 0x7c], 0xef
xorps xmm0, xmm0
movdqa xmmword [rbp + 0x90], xmm0
mov qword [rbp + 0xa0], r13
movzx r9d, byte [rsp + 0x30]
lea r8, [rbp - 0x80]
lea rdx, [rsp + 0x78]
lea rcx, [rbp + 0x90]
call fcn.14007de00
nop
mov dword [rbp - 0x80], 6
mov dword [rbp - 0x7c], 0xf7
mov qword [rbp + 0xa8], r13
xorps xmm0, xmm0
movdqa xmmword [rbp + 0xb0], xmm0
movzx r9d, byte [rsp + 0x30]
lea r8, [rbp - 0x78]
lea rdx, [rbp - 0x80]
lea rcx, [rbp + 0xa8]
call fcn.14007de00
nop
mov dword [rbp - 0x78], 1
mov dword [rbp - 0x74], 0xfd
xorps xmm0, xmm0
movdqa xmmword [rbp + 0xc0], xmm0
mov qword [rbp + 0xd0], r13
movzx r9d, byte [rsp + 0x30]
lea r8, [rbp - 0x70]
lea rdx, [rbp - 0x78]
lea rcx, [rbp + 0xc0]
call fcn.14007de00
nop
mov qword [rbp - 0x50], r13
xorps xmm0, xmm0
movdqu xmmword [rbp - 0x48], xmm0
movzx r9d, byte [rsp + 0x30]
lea r8, [rbp + 0xd8]
lea rdx, [rbp - 0x30]
lea rcx, [rbp - 0x50]
call fcn.14007de70
nop
lea r8, [rbp - 0x50]
lea edx, [rsi + 1]
mov rcx, rbx
call fcn.14007e1c0
mov edi, eax
add esi, 2
mov rcx, qword [rbp - 0x50]
test rcx, rcx
je 0x14007f280
lea r8, [rbp - 0x50]
mov rdx, qword [rbp - 0x48]
call fcn.14007dd70
mov rcx, qword [rbp - 0x40]
mov r8, qword [rbp - 0x50]
sub rcx, r8
movabs rax, 0x2aaaaaaaaaaaaaab
imul rcx
sar rdx, 2
mov rax, rdx
shr rax, 0x3f
add rdx, rax
lea rdx, [rdx + rdx*2]
shl rdx, 3
mov rax, r8
cmp rdx, 0x1000
jb 0x14007f26c
add rdx, 0x27
mov r8, qword [r8 - 8]
sub rax, r8
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14007f40b
mov rcx, r8
call fcn.14009fcc0
xorps xmm0, xmm0
movdqu xmmword [rbp - 0x50], xmm0
mov qword [rbp - 0x40], r13
lea r9, [fcn.140068f70]
mov edx, 0x18
lea r8d, [rdx - 0xd]
lea rcx, [rbp - 0x30]
call fcn.1400a0730
test edi, edi
je 0x14007f2c7
mov dword [rsp + 0x20], edi
lea r9, str.ERROR
lea r8, [0x1400cbd78]
lea rdx, str.__s_____s___0x_lx__CalcExpTwoPart___failed_r_n
mov ecx, 3
call fcn.14000afc0
mov eax, edi
jmp 0x14007f3e1
mov rcx, qword [rbx]
mov rax, qword [rcx]
mov edx, 0x226480
call qword [rax + 0x10]
mov edi, eax
test eax, eax
je 0x14007f328
mov dword [rsp + 0x20], eax
lea r9, str.ERROR
lea r8, [0x1400cbd78]
lea rdx, str.__s_____s___0x_lx__SendEmptyMsg___failed_for_aes_calc_sbox2_r_n
mov ecx, 3
call fcn.14000afc0
mov dword [rsp + 0x20], edi
lea r9, str.ERROR
lea r8, [0x1400cbd78]
lea rdx, str.__s_____s___0x_lx__CalcSBox2___failed_r_n
mov ecx, 3
call fcn.14000afc0
mov eax, edi
jmp 0x14007f3e1
mov dword [r12], esi
test r14, r14
je 0x14007f3df
lea rsi, [rbx + 0x2fa0]
sub r15, rbx
nop
movzx edx, byte [rsi + 0x10]
mov cl, 5
call fcn.140080a70
movzx edi, al
movzx edx, byte [rsi]
mov cl, 9
call fcn.140080a70
xor dil, al
movzx edx, byte [rsi - 0x20]
mov cl, 0xf9
call fcn.140080a70
movzx ebx, al
xor bl, dil
movzx edx, byte [rsi - 0x60]
mov cl, 0x25
call fcn.140080a70
movzx edi, al
xor dil, bl
movzx edx, byte [rsi - 0xe0]
mov cl, 0xf4
call fcn.140080a70
movzx ebx, al
xor bl, dil
movzx edx, byte [rsi - 0x1e0]
mov cl, 1
call fcn.140080a70
movzx edi, al
xor dil, bl
movzx edx, byte [rsi - 0x3e0]
mov cl, 0xb5
call fcn.140080a70
movzx ebx, al
xor bl, dil
movzx edx, byte [rsi - 0x7e0]
mov cl, 0x8f
call fcn.140080a70
xor al, bl
mov byte [r15 + rsi - 0x2fa0], al
lea rsi, [rsi + 1]
sub r14, 1
jne 0x14007f340
xor eax, eax
mov rcx, qword [rbp + 0xe0]
xor rcx, rsp
call fcn.1400a0360
mov rbx, qword [rsp + 0x248]
add rsp, 0x1f0
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
call fcn.1400a47dc
nop
call fcn.1400a47dc
int3
call fcn.1400a47dc
int3