Function at 0x615cf0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
mov edx, dword [ebp + 0xc]
sub esp, 8
xorps xmm0, xmm0
push ebx
mov ebx, dword [ebp + 0x14]
push esi
push edi
mov edi, dword [ebp + 0x18]
mov byte [ebx], 0
movups xmmword [edi], xmm0
movq qword [edi + 0x10], xmm0
cmp edx, 0x14
jb 0x615f56
mov esi, dword [ebp + 8]
cmp byte [esi], 1
jne 0x615f56
mov al, byte [esi + 1]
cmp al, 1
je 0x615d34
cmp al, 0x11
jne 0x615f56
movzx ecx, byte [esi + 2]
movzx eax, byte [esi + 3]
shl ecx, 8
or ecx, eax
lea eax, [ecx + 0x14]
mov dword [ebp - 4], eax
cmp edx, eax
jb 0x615f56
and ecx, reloc.WS2_32.dll_closesocket
jns 0x615d5e
dec ecx
or ecx, 0xfffffffc
add ecx, 1
jne 0x615f56
cmp byte [esi + 4], 0x21
jne 0x615f56
cmp byte [esi + 5], 0x12
jne 0x615f56
cmp byte [esi + 6], 0xa4
jne 0x615f56
cmp byte [esi + 7], 0x42
jne 0x615f56
push 0xc
push dword [ebp + 0x10]
lea eax, [esi + 8]
push eax
call fcn.00620550
add esp, 0xc
test eax, eax
jne 0x615f56
cmp byte [esi + 1], 1
mov edx, 0x14
mov ecx, dword [ebp - 4]
sete al
mov dword [ebp + 0xc], edx
mov byte [ebx], al
xor bl, bl
cmp ecx, edx
je 0x615f41
lea eax, [edx + 4]
cmp ecx, eax
jb 0x615f56
movzx ecx, byte [edx + esi]
add edx, esi
shl cx, 8
movzx eax, byte [edx + 1]
or cx, ax
movzx eax, cx
movzx ecx, byte [edx + 2]
shl cx, 8
mov dword [ebp - 8], eax
movzx eax, byte [edx + 3]
or cx, ax
movzx esi, cx
mov ecx, dword [ebp + 0xc]
mov eax, esi
add ecx, 4
add ecx, eax
mov dword [ebp + 0xc], ecx
cmp dword [ebp - 4], ecx
jb 0x615f56
mov eax, dword [ebp + 0x14]
cmp byte [eax], 0
mov eax, dword [ebp - 8]
je 0x615f25
cmp ax, 0x20
jne 0x615f25
cmp esi, 4
jb 0x615f56
movzx ecx, byte [edx + 6]
movzx eax, byte [edx + 7]
mov bh, byte [edx + 5]
shl cx, 8
or cx, ax
mov eax, 0x2112
xor cx, ax
movzx eax, cx
mov dword [ebp - 8], eax
cmp bh, 1
jne 0x615e9a
cmp esi, 8
jne 0x615f56
test bl, bl
jne 0x615f2f
push 4
lea eax, [edx + 8]
mov dword [edi], 1
push eax
lea esi, [edi + 4]
push esi
call fcn.006205c0
xor byte [esi], 0x21
add esp, 0xc
xor byte [edi + 5], 0x12
mov bl, bh
xor byte [edi + 6], 0xa4
xor byte [edi + 7], 0x42
mov eax, dword [ebp - 8]
mov word [edi + 0x14], ax
jmp 0x615f2f
cmp bh, 2
jne 0x615f2f
cmp esi, 0x14
jne 0x615f56
test bl, bl
jne 0x615f2f
push 0x10
lea eax, [edx + 8]
mov dword [edi], 2
push eax
lea esi, [edi + 4]
push esi
call fcn.006205c0
xor byte [esi], 0x21
lea eax, [edi + 9]
mov edx, dword [ebp + 0x10]
add esp, 0xc
xor byte [edi + 5], 0x12
mov esi, 2
xor byte [edi + 6], 0xa4
xor byte [edi + 7], 0x42
add edx, 2
movzx ecx, byte [edx - 2]
lea edx, [edx + 6]
xor byte [eax - 1], cl
lea eax, [eax + 6]
movzx ecx, byte [edx - 7]
xor byte [eax - 6], cl
movzx ecx, byte [edx - 6]
xor byte [eax - 5], cl
movzx ecx, byte [edx - 5]
xor byte [eax - 4], cl
movzx ecx, byte [edx - 4]
xor byte [eax - 3], cl
movzx ecx, byte [edx - 3]
xor byte [eax - 2], cl
sub esi, 1
jne 0x615ee5
mov eax, dword [ebp - 8]
mov bl, 1
mov word [edi + 0x14], ax
jmp 0x615f2f
mov ecx, 0x7fff
cmp ax, cx
jbe 0x615f56
mov edx, dword [ebp + 0xc]
mov ecx, dword [ebp - 4]
cmp ecx, edx
je 0x615f41
mov esi, dword [ebp + 8]
jmp 0x615dc3
mov eax, dword [ebp + 0x14]
cmp byte [eax], 0
je 0x615f4d
test bl, bl
je 0x615f56
pop edi
pop esi
xor al, al
pop ebx
mov esp, ebp
pop ebp
ret
pop edi
pop esi
mov al, 1
pop ebx
mov esp, ebp
pop ebp
ret