Function at 0x180143800
Capabilities:
Encode data using xor

Disassembly:
mov qword [rsp + 0x10], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x1f]
sub rsp, 0xa0
mov rax, qword [0x1802cd010]
xor rax, rsp
mov qword [rbp + 0xf], rax
mov qword [rbp - 0x51], r9
mov r13, r8
mov qword [rbp - 0x59], r8
mov rbx, rcx
mov rdx, qword [rbp + 0x7f]
xorps xmm0, xmm0
xor eax, eax
movups xmmword [rbp - 0x49], xmm0
mov qword [rbp - 0x39], rax
lea r8, str.initCrypt_blowfish
lea rcx, [rbp - 0x49]
call fcn.180029f30
nop
mov eax, dword [r13 + 0x10]
cdq
and edx, 7
lea r14d, [rdx + rax]
sar r14d, 3
xorps xmm0, xmm0
movups xmmword [rbp - 0x31], xmm0
movups xmmword [rbp - 0x21], xmm0
movups xmmword [rbp - 0x11], xmm0
movups xmmword [rbp - 1], xmm0
lea rcx, [r13 + 0x18]
call fcn.18001fd80
lea rcx, [r13 + 0x18]
cmp eax, 0x40
jbe 0x1801438aa
call fcn.18001f920
test rax, rax
je 0x1801438d7
lea rcx, [r13 + 0x18]
call fcn.18001f920
mov r8d, 0x40
jmp 0x1801438cb
call fcn.18001f920
test rax, rax
je 0x1801438d7
lea rcx, [r13 + 0x18]
call fcn.18001fd80
mov edi, eax
lea rcx, [r13 + 0x18]
call fcn.18001f920
mov r8d, edi
mov rdx, rax
lea rcx, [rbp - 0x31]
call fcn.180018e10
xor edi, edi
mov r8d, edi
lea r13, [0x1802d9184]
mov r11d, 8
mov r9d, r11d
sub r9, r13
mov r12d, reloc.WS2_32.dll_inet_ntoa
mov r10d, r12d
sub r10, r13
mov esi, reloc.WS2_32.dll_recv
sub rsi, r13
mov r15d, shutdown
sub r15, r13
nop dword [rax]
lea rdx, [r8 + r13]
mov rcx, qword [rbx + 0xb0]
mov eax, dword [rdx - 4]
mov dword [r8 + rcx], eax
mov rcx, qword [rbx + 0xb0]
mov eax, dword [rdx]
mov dword [rcx + r8 + 4], eax
mov rcx, qword [rbx + 0xb0]
add rcx, r9
mov eax, dword [rdx + 4]
mov dword [rcx + rdx], eax
mov rcx, qword [rbx + 0xb0]
add rcx, r10
mov eax, dword [rdx + 8]
mov dword [rcx + rdx], eax
mov rcx, qword [rbx + 0xb0]
add rcx, rsi
mov eax, dword [rdx + 0xc]
mov dword [rcx + rdx], eax
mov rcx, qword [rbx + 0xb0]
add rcx, r15
mov eax, dword [rdx + 0x10]
mov dword [rcx + rdx], eax
add r8, 0x18
cmp r8, 0x48
jl 0x180143910
lea r15, [0x1802d91d4]
sub r11, r15
mov rsi, r12
sub rsi, r15
mov r9, rdi
mov r13, qword [rbp - 0x59]
mov r10d, 0x40
nop word [rax + rax]
lea r8, [r9 + r15]
mov rcx, qword [rbx + 0xb8]
mov eax, dword [r8 - 4]
mov dword [r9 + rcx], eax
mov rcx, qword [rbx + 0xb8]
mov eax, dword [r8]
mov dword [r9 + rcx + 4], eax
lea rdx, [r11 + r8]
mov rcx, qword [rbx + 0xb8]
mov eax, dword [r8 + 4]
mov dword [rdx + rcx], eax
lea rdx, [rsi + r8]
mov rcx, qword [rbx + 0xb8]
mov eax, dword [r8 + 8]
mov dword [rdx + rcx], eax
add r9, 0x10
sub r10, 1
jne 0x1801439a0
cmp r9, 0x1000
jl 0x180143991
mov r10d, edi
cmp byte [rbx + 0xc0], dil
je 0x180143da0
nop dword [rax]
mov r9, qword [rbx + 0xb0]
lea eax, [r10 + 1]
cdq
idiv r14d
movsxd rax, edx
movzx r8d, byte [rbp + rax - 0x31]
movsxd rax, r10d
movzx ecx, byte [rbp + rax - 0x31]
shl ecx, 8
or r8d, ecx
shl r8d, 8
lea eax, [r10 + 2]
cdq
idiv r14d
movsxd rax, edx
movzx ecx, byte [rbp + rax - 0x31]
or r8d, ecx
shl r8d, 8
lea eax, [r10 + 3]
cdq
idiv r14d
movsxd rax, edx
movzx ecx, byte [rbp + rax - 0x31]
or r8d, ecx
xor dword [r9 + r12 - 0xc], r8d
lea eax, [r10 + 4]
cdq
idiv r14d
movsxd r10, edx
mov r9, qword [rbx + 0xb0]
lea eax, [r10 + 1]
cdq
idiv r14d
movsxd rax, edx
movzx r8d, byte [rbp + rax - 0x31]
movzx ecx, byte [rbp + r10 - 0x31]
shl ecx, 8
or r8d, ecx
shl r8d, 8
lea eax, [r10 + 2]
cdq
idiv r14d
movsxd rax, edx
movzx ecx, byte [rbp + rax - 0x31]
or r8d, ecx
shl r8d, 8
lea eax, [r10 + 3]
cdq
idiv r14d
movsxd rax, edx
movzx ecx, byte [rbp + rax - 0x31]
or r8d, ecx
xor dword [r9 + r12 - 8], r8d
lea eax, [r10 + 4]
cdq
idiv r14d
movsxd r10, edx
mov r9, qword [rbx + 0xb0]
lea eax, [r10 + 1]
cdq
idiv r14d
movsxd rax, edx
movzx r8d, byte [rbp + rax - 0x31]
movzx ecx, byte [rbp + r10 - 0x31]
shl ecx, 8
or r8d, ecx
shl r8d, 8
lea eax, [r10 + 2]
cdq
idiv r14d
movsxd rax, edx
movzx ecx, byte [rbp + rax - 0x31]
or r8d, ecx
shl r8d, 8
lea eax, [r10 + 3]
cdq
idiv r14d
movsxd rax, edx
movzx ecx, byte [rbp + rax - 0x31]
or r8d, ecx
xor dword [r9 + r12 - 4], r8d
lea eax, [r10 + 4]
cdq
idiv r14d
movsxd r10, edx
mov r9, qword [rbx + 0xb0]
lea eax, [r10 + 1]
cdq
idiv r14d
movsxd rax, edx
movzx r8d, byte [rbp + rax - 0x31]
movzx ecx, byte [rbp + r10 - 0x31]
shl ecx, 8
or r8d, ecx
shl r8d, 8
lea eax, [r10 + 2]
cdq
idiv r14d
movsxd rax, edx
movzx ecx, byte [rbp + rax - 0x31]
or r8d, ecx
shl r8d, 8
lea eax, [r10 + 3]
cdq
idiv r14d
movsxd rax, edx
movzx ecx, byte [rbp + rax - 0x31]
or r8d, ecx
xor dword [r9 + r12], r8d
lea eax, [r10 + 4]
cdq
idiv r14d
movsxd r10, edx
mov r9, qword [rbx + 0xb0]
lea eax, [r10 + 1]
cdq
idiv r14d
movsxd rax, edx
movzx r8d, byte [rbp + rax - 0x31]
movzx ecx, byte [rbp + r10 - 0x31]
shl ecx, 8
or r8d, ecx
shl r8d, 8
lea eax, [r10 + 2]
cdq
idiv r14d
movsxd rax, edx
movzx ecx, byte [rbp + rax - 0x31]
or r8d, ecx
shl r8d, 8
lea eax, [r10 + 3]
cdq
idiv r14d
movsxd rax, edx
movzx ecx, byte [rbp + rax - 0x31]
or r8d, ecx
xor dword [r9 + r12 + 4], r8d
lea eax, [r10 + 4]
cdq
idiv r14d
movsxd r10, edx
mov r9, qword [rbx + 0xb0]
lea eax, [r10 + 1]
cdq
idiv r14d
movsxd rax, edx
movzx r8d, byte [rbp + rax - 0x31]
movzx ecx, byte [rbp + r10 - 0x31]
shl ecx, 8
or r8d, ecx
shl r8d, 8
lea eax, [r10 + 2]
cdq
idiv r14d
movsxd rax, edx
movzx ecx, byte [rbp + rax - 0x31]
or r8d, ecx
shl r8d, 8
lea eax, [r10 + 3]
cdq
idiv r14d
movsxd rax, edx
movzx ecx, byte [rbp + rax - 0x31]
or r8d, ecx
xor dword [r9 + r12 + 8], r8d
lea eax, [r10 + 4]
cdq
idiv r14d
movsxd r10, edx
mov r9, qword [rbx + 0xb0]
lea eax, [r10 + 1]
cdq
idiv r14d
movsxd rax, edx
movzx r8d, byte [rbp + rax - 0x31]
movzx ecx, byte [rbp + r10 - 0x31]
shl ecx, 8
or r8d, ecx
shl r8d, 8
lea eax, [r10 + 2]
cdq
idiv r14d
movsxd rax, edx
movzx ecx, byte [rbp + rax - 0x31]
or r8d, ecx
shl r8d, 8
lea eax, [r10 + 3]
cdq
idiv r14d
movsxd rax, edx
movzx ecx, byte [rbp + rax - 0x31]
or r8d, ecx
xor dword [r9 + r12 + 0xc], r8d
lea eax, [r10 + 4]
cdq
idiv r14d
movsxd r10, edx
mov r9, qword [rbx + 0xb0]
lea eax, [r10 + 1]
cdq
idiv r14d
movsxd rax, edx
movzx r8d, byte [rbp + rax - 0x31]
movzx ecx, byte [rbp + r10 - 0x31]
shl ecx, 8
or r8d, ecx
shl r8d, 8
lea eax, [r10 + 2]
cdq
idiv r14d
movsxd rax, edx
movzx ecx, byte [rbp + rax - 0x31]
or r8d, ecx
shl r8d, 8
lea eax, [r10 + 3]
cdq
idiv r14d
movsxd rax, edx
movzx ecx, byte [rbp + rax - 0x31]
or r8d, ecx
xor dword [r9 + r12 + 0x10], r8d
lea eax, [r10 + 4]
cdq
idiv r14d
movsxd r9, edx
lea eax, [r9 + 1]
cdq
idiv r14d
movsxd rax, edx
movzx r8d, byte [rbp + rax - 0x31]
movzx ecx, byte [rbp + r9 - 0x31]
shl ecx, 8
or r8d, ecx
shl r8d, 8
lea eax, [r9 + 2]
cdq
idiv r14d
movsxd rax, edx
movzx ecx, byte [rbp + rax - 0x31]
or r8d, ecx
shl r8d, 8
lea eax, [r9 + 3]
cdq
idiv r14d
movsxd rax, edx
movzx ecx, byte [rbp + rax - 0x31]
or r8d, ecx
mov rax, qword [rbx + 0xb0]
xor dword [r12 + rax + 0x14], r8d
lea eax, [r9 + 4]
cdq
idiv r14d
mov r10d, edx
add r12, 0x24
cmp r12, 0x54
jl 0x180143a10
jmp 0x180144118
mov r9, qword [rbx + 0xb0]
lea eax, [r10 + 2]
cdq
idiv r14d
movsxd rax, edx
movzx r8d, byte [rbp + rax - 0x31]
movsxd rax, r10d
movzx ecx, byte [rbp + rax - 0x2e]
shl ecx, 8
or r8d, ecx
shl r8d, 8
lea eax, [r10 + 1]
cdq
idiv r14d
movsxd rax, edx
movzx ecx, byte [rbp + rax - 0x31]
or r8d, ecx
shl r8d, 8
mov eax, r10d
cdq
idiv r14d
movsxd rax, edx
movzx ecx, byte [rbp + rax - 0x31]
or r8d, ecx
xor dword [r9 + r12 - 0xc], r8d
lea eax, [r10 + 4]
cdq
idiv r14d
movsxd r10, edx
mov r9, qword [rbx + 0xb0]
lea eax, [r10 + 2]
cdq
idiv r14d
movsxd rax, edx
movzx r8d, byte [rbp + rax - 0x31]
movzx ecx, byte [rbp + r10 - 0x2e]
shl ecx, 8
or r8d, ecx
shl r8d, 8
lea eax, [r10 + 1]
cdq
idiv r14d
movsxd rax, edx
movzx ecx, byte [rbp + rax - 0x31]
or r8d, ecx
shl r8d, 8
mov eax, r10d
cdq
idiv r14d
movsxd rax, edx
movzx ecx, byte [rbp + rax - 0x31]
or r8d, ecx
xor dword [r9 + r12 - 8], r8d
lea eax, [r10 + 4]
cdq
idiv r14d
movsxd r10, edx
mov r9, qword [rbx + 0xb0]
lea eax, [r10 + 2]
cdq
idiv r14d
movsxd rax, edx
movzx r8d, byte [rbp + rax - 0x31]
movzx ecx, byte [rbp + r10 - 0x2e]
shl ecx, 8
or r8d, ecx
shl r8d, 8
lea eax, [r10 + 1]
cdq
idiv r14d
movsxd rax, edx
movzx ecx, byte [rbp + rax - 0x31]
or r8d, ecx
shl r8d, 8
mov eax, r10d
cdq
idiv r14d
movsxd rax, edx
movzx ecx, byte [rbp + rax - 0x31]
or r8d, ecx
xor dword [r9 + r12 - 4], r8d
lea eax, [r10 + 4]
cdq
idiv r14d
movsxd r10, edx
mov r9, qword [rbx + 0xb0]
lea eax, [r10 + 2]
cdq
idiv r14d
movsxd rax, edx
movzx r8d, byte [rbp + rax - 0x31]
movzx ecx, byte [rbp + r10 - 0x2e]
shl ecx, 8
or r8d, ecx
shl r8d, 8
lea eax, [r10 + 1]
cdq
idiv r14d
movsxd rax, edx
movzx ecx, byte [rbp + rax - 0x31]
or r8d, ecx
shl r8d, 8
mov eax, r10d
cdq
idiv r14d
movsxd rax, edx
movzx ecx, byte [rbp + rax - 0x31]
or r8d, ecx
xor dword [r9 + r12], r8d
lea eax, [r10 + 4]
cdq
idiv r14d
movsxd r10, edx
mov r9, qword [rbx + 0xb0]
lea eax, [r10 + 2]
cdq
idiv r14d
movsxd rax, edx
movzx r8d, byte [rbp + rax - 0x31]
movzx ecx, byte [rbp + r10 - 0x2e]
shl ecx, 8
or r8d, ecx
shl r8d, 8
lea eax, [r10 + 1]
cdq
idiv r14d
movsxd rax, edx
movzx ecx, byte [rbp + rax - 0x31]
or r8d, ecx
shl r8d, 8
mov eax, r10d
cdq
idiv r14d
movsxd rax, edx
movzx ecx, byte [rbp + rax - 0x31]
or r8d, ecx
xor dword [r9 + r12 + 4], r8d
lea eax, [r10 + 4]
cdq
idiv r14d
movsxd r10, edx
mov r9, qword [rbx + 0xb0]
lea eax, [r10 + 2]
cdq
idiv r14d
movsxd rax, edx
movzx r8d, byte [rbp + rax - 0x31]
movzx ecx, byte [rbp + r10 - 0x2e]
shl ecx, 8
or r8d, ecx
shl r8d, 8
lea eax, [r10 + 1]
cdq
idiv r14d
movsxd rax, edx
movzx ecx, byte [rbp + rax - 0x31]
or r8d, ecx
shl r8d, 8
mov eax, r10d
cdq
idiv r14d
movsxd rax, edx
movzx ecx, byte [rbp + rax - 0x31]
or r8d, ecx
xor dword [r9 + r12 + 8], r8d
lea eax, [r10 + 4]
cdq
idiv r14d
movsxd r10, edx
mov r9, qword [rbx + 0xb0]
lea eax, [r10 + 2]
cdq
idiv r14d
movsxd rax, edx
movzx r8d, byte [rbp + rax - 0x31]
movzx ecx, byte [rbp + r10 - 0x2e]
shl ecx, 8
or r8d, ecx
shl r8d, 8
lea eax, [r10 + 1]
cdq
idiv r14d
movsxd rax, edx
movzx ecx, byte [rbp + rax - 0x31]
or r8d, ecx
shl r8d, 8
mov eax, r10d
cdq
idiv r14d
movsxd rax, edx
movzx ecx, byte [rbp + rax - 0x31]
or r8d, ecx
xor dword [r9 + r12 + 0xc], r8d
lea eax, [r10 + 4]
cdq
idiv r14d
movsxd r10, edx
mov r9, qword [rbx + 0xb0]
lea eax, [r10 + 2]
cdq
idiv r14d
movsxd rax, edx
movzx r8d, byte [rbp + rax - 0x31]
movzx ecx, byte [rbp + r10 - 0x2e]
shl ecx, 8
or r8d, ecx
shl r8d, 8
lea eax, [r10 + 1]
cdq
idiv r14d
movsxd rax, edx
movzx ecx, byte [rbp + rax - 0x31]
or r8d, ecx
shl r8d, 8
mov eax, r10d
cdq
idiv r14d
movsxd rax, edx
movzx ecx, byte [rbp + rax - 0x31]
or r8d, ecx
xor dword [r9 + r12 + 0x10], r8d
lea eax, [r10 + 4]
cdq
idiv r14d
movsxd r9, edx
lea eax, [r9 + 2]
cdq
idiv r14d
movsxd rax, edx
movzx r8d, byte [rbp + rax - 0x31]
movzx ecx, byte [rbp + r9 - 0x2e]
shl ecx, 8
or r8d, ecx
shl r8d, 8
lea eax, [r9 + 1]
cdq
idiv r14d
movsxd rax, edx
movzx ecx, byte [rbp + rax - 0x31]
or r8d, ecx
shl r8d, 8
mov eax, r9d
cdq
idiv r14d
movsxd rax, edx
movzx ecx, byte [rbp + rax - 0x31]
or r8d, ecx
mov rax, qword [rbx + 0xb0]
xor dword [r12 + rax + 0x14], r8d
lea eax, [r9 + 4]
cdq
idiv r14d
mov r10d, edx
add r12, 0x24
cmp r12, 0x54
jl 0x180143da0
mov dword [rbp - 0x61], edi
mov dword [rbp - 0x59], edi
mov rsi, rdi
cmp byte [rbx + 0xc0], dil
je 0x1801441d0
nop
lea r8, [rbp - 0x59]
lea rdx, [rbp - 0x61]
mov rcx, rbx
call fcn.180146300
mov rcx, qword [rbx + 0xb0]
mov eax, dword [rbp - 0x61]
mov dword [rsi + rcx], eax
mov rcx, qword [rbx + 0xb0]
mov eax, dword [rbp - 0x59]
mov dword [rcx + rsi + 4], eax
add rsi, 8
cmp rsi, 0x48
jl 0x180144130
nop word [rax + rax]
mov esi, 0x80
nop word [rax + rax]
lea r8, [rbp - 0x59]
lea rdx, [rbp - 0x61]
mov rcx, rbx
call fcn.180146300
mov rcx, qword [rbx + 0xb8]
mov eax, dword [rbp - 0x61]
mov dword [rdi + rcx], eax
mov rcx, qword [rbx + 0xb8]
mov eax, dword [rbp - 0x59]
mov dword [rcx + rdi + 4], eax
add rdi, 8
sub rsi, 1
jne 0x180144180
cmp rdi, 0x1000
jl 0x180144170
jmp 0x18014425e
lea r8, [rbp - 0x59]
lea rdx, [rbp - 0x61]
mov rcx, rbx
call fcn.180145e80
mov rcx, qword [rbx + 0xb0]
mov eax, dword [rbp - 0x61]
mov dword [rsi + rcx], eax
mov rcx, qword [rbx + 0xb0]
mov eax, dword [rbp - 0x59]
mov dword [rcx + rsi + 4], eax
add rsi, 8
cmp rsi, 0x48
jl 0x1801441d0
nop word [rax + rax]
mov esi, 0x80
nop word [rax + rax]
lea r8, [rbp - 0x59]
lea rdx, [rbp - 0x61]
mov rcx, rbx
call fcn.180145e80
mov rcx, qword [rbx + 0xb8]
mov eax, dword [rbp - 0x61]
mov dword [rdi + rcx], eax
mov rcx, qword [rbx + 0xb8]
mov eax, dword [rbp - 0x59]
mov dword [rcx + rdi + 4], eax
add rdi, 8
sub rsi, 1
jne 0x180144220
cmp rdi, 0x1000
jl 0x180144210
mov r14, qword [rbp - 0x51]
test r14, r14
je 0x1801442a1
mov eax, dword [r13 + 8]
sub eax, 3
cmp eax, 1
ja 0x1801442a1
lea rcx, [r13 + 0x50]
call fcn.18001fd80
mov esi, eax
lea rcx, [r13 + 0x50]
call fcn.18001f920
mov rdx, rax
lea rcx, [r14 + 0x4a0]
mov r9d, dword [rbx + 0xa8]
mov r8d, esi
call fcn.180141ba0
nop
lea rcx, [rbp - 0x49]
call fcn.18002a0e0
mov al, 1
mov rcx, qword [rbp + 0xf]
xor rcx, rsp
call fcn.180009610
mov rbx, qword [rsp + 0xe8]
add rsp, 0xa0
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret