Function at 0x1802d16c0
Capabilities:
Encrypt data using des

Disassembly:
mov qword [rsp + 0x18], r8
mov word [rsp + 0x10], dx
mov qword [rsp + 8], rcx
push rdi
sub rsp, 0x190
lea rdi, [rsp + 0x20]
mov ecx, 0x5c
mov eax, 0xcccccccc
rep stosd dword [rdi], eax
mov rcx, qword [rsp + 0x1a0]
mov rax, qword [0x18045c280]
xor rax, rsp
mov qword [rsp + 0x188], rax
lea rcx, [0x1804b9133]
call fcn.1801a9330
mov dword [rsp + 0x24], 0
jmp 0x1802d1722
mov eax, dword [rsp + 0x24]
inc eax
mov dword [rsp + 0x24], eax
cmp dword [rsp + 0x24], 0x38
jae 0x1802d17ae
mov eax, dword [rsp + 0x24]
lea rcx, str.80_
movzx eax, byte [rcx + rax]
mov dword [rsp + 0x28], eax
mov eax, dword [rsp + 0x28]
and eax, 7
mov dword [rsp + 0x2c], eax
mov eax, dword [rsp + 0x28]
shr eax, 3
mov eax, eax
mov rcx, qword [rsp + 0x1a0]
movzx eax, byte [rcx + rax]
mov ecx, dword [rsp + 0x2c]
lea rdx, [0x1803fae60]
and eax, dword [rdx + rcx*4]
mov ecx, dword [rsp + 0x2c]
lea rdx, [0x1803fae60]
cmp eax, dword [rdx + rcx*4]
jne 0x1802d178b
mov dword [rsp + 0x180], 1
jmp 0x1802d1796
mov dword [rsp + 0x180], 0
mov eax, dword [rsp + 0x24]
movzx ecx, byte [rsp + 0x180]
mov byte [rsp + rax + 0xe8], cl
jmp 0x1802d1718
mov dword [rsp + 0x20], 0
jmp 0x1802d17c2
mov eax, dword [rsp + 0x20]
inc eax
mov dword [rsp + 0x20], eax
cmp dword [rsp + 0x20], 0x10
jae 0x1802d199b
movsx eax, word [rsp + 0x1a8]
cmp eax, 1
jne 0x1802d17eb
mov eax, send
sub eax, dword [rsp + 0x20]
shl eax, 1
mov dword [rsp + 0x2c], eax
jmp 0x1802d17f5
mov eax, dword [rsp + 0x20]
shl eax, 1
mov dword [rsp + 0x2c], eax
mov eax, dword [rsp + 0x2c]
inc eax
mov dword [rsp + 0x30], eax
mov eax, dword [rsp + 0x30]
mov dword [rsp + rax*4 + 0x50], 0
mov eax, dword [rsp + 0x2c]
mov dword [rsp + rax*4 + 0x50], 0
mov dword [rsp + 0x24], 0
jmp 0x1802d182b
mov eax, dword [rsp + 0x24]
inc eax
mov dword [rsp + 0x24], eax
cmp dword [rsp + 0x24], 0x1c
jae 0x1802d188b
mov eax, dword [rsp + 0x20]
lea rcx, [0x1803faf18]
movzx eax, byte [rcx + rax]
mov ecx, dword [rsp + 0x24]
add ecx, eax
mov eax, ecx
mov dword [rsp + 0x28], eax
cmp dword [rsp + 0x28], 0x1c
jae 0x1802d186d
mov eax, dword [rsp + 0x28]
mov ecx, dword [rsp + 0x24]
movzx eax, byte [rsp + rax + 0xe8]
mov byte [rsp + rcx + 0x138], al
jmp 0x1802d1889
mov eax, dword [rsp + 0x28]
sub eax, 0x1c
mov eax, eax
mov ecx, dword [rsp + 0x24]
movzx eax, byte [rsp + rax + 0xe8]
mov byte [rsp + rcx + 0x138], al
jmp 0x1802d1821
jmp 0x1802d1897
mov eax, dword [rsp + 0x24]
inc eax
mov dword [rsp + 0x24], eax
cmp dword [rsp + 0x24], 0x38
jae 0x1802d18f7
mov eax, dword [rsp + 0x20]
lea rcx, [0x1803faf18]
movzx eax, byte [rcx + rax]
mov ecx, dword [rsp + 0x24]
add ecx, eax
mov eax, ecx
mov dword [rsp + 0x28], eax
cmp dword [rsp + 0x28], 0x38
jae 0x1802d18d9
mov eax, dword [rsp + 0x28]
mov ecx, dword [rsp + 0x24]
movzx eax, byte [rsp + rax + 0xe8]
mov byte [rsp + rcx + 0x138], al
jmp 0x1802d18f5
mov eax, dword [rsp + 0x28]
sub eax, 0x1c
mov eax, eax
mov ecx, dword [rsp + 0x24]
movzx eax, byte [rsp + rax + 0xe8]
mov byte [rsp + rcx + 0x138], al
jmp 0x1802d188d
mov dword [rsp + 0x24], 0
jmp 0x1802d190b
mov eax, dword [rsp + 0x24]
inc eax
mov dword [rsp + 0x24], eax
cmp dword [rsp + 0x24], 0x18
jae 0x1802d1996
mov eax, dword [rsp + 0x24]
lea rcx, [0x1803faf28]
movzx eax, byte [rcx + rax]
movzx eax, byte [rsp + rax + 0x138]
test eax, eax
je 0x1802d1951
mov eax, dword [rsp + 0x2c]
mov ecx, dword [rsp + 0x24]
lea rdx, [0x1803fae80]
mov ecx, dword [rdx + rcx*4]
mov eax, dword [rsp + rax*4 + 0x50]
or eax, ecx
mov ecx, dword [rsp + 0x2c]
mov dword [rsp + rcx*4 + 0x50], eax
mov eax, dword [rsp + 0x24]
add eax, 0x18
mov eax, eax
lea rcx, [0x1803faf28]
movzx eax, byte [rcx + rax]
movzx eax, byte [rsp + rax + 0x138]
test eax, eax
je 0x1802d1991
mov eax, dword [rsp + 0x30]
mov ecx, dword [rsp + 0x24]
lea rdx, [0x1803fae80]
mov ecx, dword [rdx + rcx*4]
mov eax, dword [rsp + rax*4 + 0x50]
or eax, ecx
mov ecx, dword [rsp + 0x30]
mov dword [rsp + rcx*4 + 0x50], eax
jmp 0x1802d1901
jmp 0x1802d17b8
mov rdx, qword [rsp + 0x1b0]
lea rcx, [rsp + 0x50]
call fcn.1802d14a0
mov rcx, rsp
lea rdx, reloc.WS2_32.dll_closesocket
call fcn.1801a9100
mov rcx, qword [rsp + 0x188]
xor rcx, rsp
call fcn.1801a9570
add rsp, 0x190
pop rdi
ret